Annotation of parser3/configure, revision 1.113
1.1 paf 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.86 paf 3: # Generated by GNU Autoconf 2.59.
1.1 paf 4: #
1.86 paf 5: # Copyright (C) 2003 Free Software Foundation, Inc.
1.1 paf 6: # This configure script is free software; the Free Software Foundation
7: # gives unlimited permission to copy, distribute and modify it.
1.62 paf 8: ## --------------------- ##
9: ## M4sh Initialization. ##
10: ## --------------------- ##
11:
12: # Be Bourne compatible
13: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14: emulate sh
15: NULLCMD=:
16: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17: # is contrary to our usage. Disable this feature.
18: alias -g '${1+"$@"}'='"$@"'
19: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20: set -o posix
21: fi
1.86 paf 22: DUALCASE=1; export DUALCASE # for MKS sh
1.62 paf 23:
24: # Support unset when possible.
1.86 paf 25: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.62 paf 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
1.86 paf 44: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.62 paf 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
1.86 paf 221: test -d ./-p && rmdir ./-p
1.62 paf 222: as_mkdir_p=false
223: fi
224:
225: as_executable_p="test -f"
226:
227: # Sed expression to map a string onto a valid CPP name.
1.86 paf 228: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 229:
230: # Sed expression to map a string onto a valid variable name.
1.86 paf 231: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 232:
233:
234: # IFS
235: # We need space, tab and new line, in precisely that order.
236: as_nl='
237: '
238: IFS=" $as_nl"
239:
240: # CDPATH.
241: $as_unset CDPATH
242:
1.1 paf 243:
1.62 paf 244: # Name of the host.
245: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246: # so uname gets run too.
247: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248:
249: exec 6>&1
250:
251: #
252: # Initializations.
253: #
1.1 paf 254: ac_default_prefix=/usr/local
1.62 paf 255: ac_config_libobj_dir=.
256: cross_compiling=no
257: subdirs=
258: MFLAGS=
259: MAKEFLAGS=
260: SHELL=${CONFIG_SHELL-/bin/sh}
261:
262: # Maximum number of lines to put in a shell here document.
263: # This variable seems obsolete. It should probably be removed, and
264: # only ac_max_sed_lines should be used.
265: : ${ac_max_here_lines=38}
266:
267: # Identity of this package.
268: PACKAGE_NAME=
269: PACKAGE_TARNAME=
270: PACKAGE_VERSION=
271: PACKAGE_STRING=
272: PACKAGE_BUGREPORT=
273:
274: ac_unique_file="README"
275: ac_subdirs_all="$ac_subdirs_all src/lib/ltdl"
276: # Factoring default headers for most tests.
277: ac_includes_default="\
278: #include <stdio.h>
279: #if HAVE_SYS_TYPES_H
280: # include <sys/types.h>
281: #endif
282: #if HAVE_SYS_STAT_H
283: # include <sys/stat.h>
284: #endif
285: #if STDC_HEADERS
286: # include <stdlib.h>
287: # include <stddef.h>
288: #else
289: # if HAVE_STDLIB_H
290: # include <stdlib.h>
291: # endif
292: #endif
293: #if HAVE_STRING_H
294: # if !STDC_HEADERS && HAVE_MEMORY_H
295: # include <memory.h>
296: # endif
297: # include <string.h>
298: #endif
299: #if HAVE_STRINGS_H
300: # include <strings.h>
301: #endif
302: #if HAVE_INTTYPES_H
303: # include <inttypes.h>
304: #else
305: # if HAVE_STDINT_H
306: # include <stdint.h>
307: # endif
308: #endif
309: #if HAVE_UNISTD_H
310: # include <unistd.h>
311: #endif"
312:
1.100 misha 313: 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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar P3S build build_cpu build_vendor build_os host host_cpu host_vendor host_os RANLIB ac_ct_RANLIB YACC CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE commentcharset_windows1251 commentcharset_windows1250 commentcharset_windows1257 commentcharset_koi8r dll_extension mysql_client pgsql_client oracle_client sqlite_client CPP_LIBS GC_LIBS PCRE_INCLUDES PCRE_LIBS XML_INCLUDES XML_LIBS MIME_INCLUDES MIME_LIBS APACHE13 COMPILE_APACHE13_MODULE_TRUE COMPILE_APACHE13_MODULE_FALSE INCLTDL LIBLTDL subdirs LIBADD_DL CPP EGREP LIBOBJS LTLIBOBJS'
1.62 paf 314: ac_subst_files=''
1.1 paf 315:
316: # Initialize some variables set by options.
1.62 paf 317: ac_init_help=
318: ac_init_version=false
1.1 paf 319: # The variables have the same names as the options, with
320: # dashes changed to underlines.
1.62 paf 321: cache_file=/dev/null
1.1 paf 322: exec_prefix=NONE
323: no_create=
324: no_recursion=
325: prefix=NONE
326: program_prefix=NONE
327: program_suffix=NONE
328: program_transform_name=s,x,x,
329: silent=
330: site=
331: srcdir=
332: verbose=
333: x_includes=NONE
334: x_libraries=NONE
1.62 paf 335:
336: # Installation directory options.
337: # These are left unexpanded so users can "make install exec_prefix=/foo"
338: # and all the variables that are supposed to be based on exec_prefix
339: # by default will actually change.
340: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1 paf 341: bindir='${exec_prefix}/bin'
342: sbindir='${exec_prefix}/sbin'
343: libexecdir='${exec_prefix}/libexec'
344: datadir='${prefix}/share'
345: sysconfdir='${prefix}/etc'
346: sharedstatedir='${prefix}/com'
347: localstatedir='${prefix}/var'
348: libdir='${exec_prefix}/lib'
349: includedir='${prefix}/include'
350: oldincludedir='/usr/include'
351: infodir='${prefix}/info'
352: mandir='${prefix}/man'
353:
354: ac_prev=
355: for ac_option
356: do
357: # If the previous option needs an argument, assign it.
358: if test -n "$ac_prev"; then
359: eval "$ac_prev=\$ac_option"
360: ac_prev=
361: continue
362: fi
363:
1.62 paf 364: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 paf 365:
366: # Accept the important Cygnus configure options, so we can diagnose typos.
367:
1.62 paf 368: case $ac_option in
1.1 paf 369:
370: -bindir | --bindir | --bindi | --bind | --bin | --bi)
371: ac_prev=bindir ;;
372: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.62 paf 373: bindir=$ac_optarg ;;
1.1 paf 374:
375: -build | --build | --buil | --bui | --bu)
1.62 paf 376: ac_prev=build_alias ;;
1.1 paf 377: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.62 paf 378: build_alias=$ac_optarg ;;
1.1 paf 379:
380: -cache-file | --cache-file | --cache-fil | --cache-fi \
381: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382: ac_prev=cache_file ;;
383: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.62 paf 385: cache_file=$ac_optarg ;;
386:
387: --config-cache | -C)
388: cache_file=config.cache ;;
1.1 paf 389:
390: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391: ac_prev=datadir ;;
392: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393: | --da=*)
1.62 paf 394: datadir=$ac_optarg ;;
1.1 paf 395:
396: -disable-* | --disable-*)
1.62 paf 397: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 paf 398: # Reject names that are not valid shell variable names.
1.62 paf 399: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401: { (exit 1); exit 1; }; }
402: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403: eval "enable_$ac_feature=no" ;;
1.1 paf 404:
405: -enable-* | --enable-*)
1.62 paf 406: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 paf 407: # Reject names that are not valid shell variable names.
1.62 paf 408: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410: { (exit 1); exit 1; }; }
411: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412: case $ac_option in
413: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 paf 414: *) ac_optarg=yes ;;
415: esac
1.62 paf 416: eval "enable_$ac_feature='$ac_optarg'" ;;
1.1 paf 417:
418: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420: | --exec | --exe | --ex)
421: ac_prev=exec_prefix ;;
422: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424: | --exec=* | --exe=* | --ex=*)
1.62 paf 425: exec_prefix=$ac_optarg ;;
1.1 paf 426:
427: -gas | --gas | --ga | --g)
428: # Obsolete; use --with-gas.
429: with_gas=yes ;;
430:
1.62 paf 431: -help | --help | --hel | --he | -h)
432: ac_init_help=long ;;
433: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434: ac_init_help=recursive ;;
435: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436: ac_init_help=short ;;
1.1 paf 437:
438: -host | --host | --hos | --ho)
1.62 paf 439: ac_prev=host_alias ;;
1.1 paf 440: -host=* | --host=* | --hos=* | --ho=*)
1.62 paf 441: host_alias=$ac_optarg ;;
1.1 paf 442:
443: -includedir | --includedir | --includedi | --included | --include \
444: | --includ | --inclu | --incl | --inc)
445: ac_prev=includedir ;;
446: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.62 paf 448: includedir=$ac_optarg ;;
1.1 paf 449:
450: -infodir | --infodir | --infodi | --infod | --info | --inf)
451: ac_prev=infodir ;;
452: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.62 paf 453: infodir=$ac_optarg ;;
1.1 paf 454:
455: -libdir | --libdir | --libdi | --libd)
456: ac_prev=libdir ;;
457: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.62 paf 458: libdir=$ac_optarg ;;
1.1 paf 459:
460: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461: | --libexe | --libex | --libe)
462: ac_prev=libexecdir ;;
463: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464: | --libexe=* | --libex=* | --libe=*)
1.62 paf 465: libexecdir=$ac_optarg ;;
1.1 paf 466:
467: -localstatedir | --localstatedir | --localstatedi | --localstated \
468: | --localstate | --localstat | --localsta | --localst \
469: | --locals | --local | --loca | --loc | --lo)
470: ac_prev=localstatedir ;;
471: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.62 paf 474: localstatedir=$ac_optarg ;;
1.1 paf 475:
476: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477: ac_prev=mandir ;;
478: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.62 paf 479: mandir=$ac_optarg ;;
1.1 paf 480:
481: -nfp | --nfp | --nf)
482: # Obsolete; use --without-fp.
483: with_fp=no ;;
484:
485: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.62 paf 486: | --no-cr | --no-c | -n)
1.1 paf 487: no_create=yes ;;
488:
489: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491: no_recursion=yes ;;
492:
493: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495: | --oldin | --oldi | --old | --ol | --o)
496: ac_prev=oldincludedir ;;
497: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.62 paf 500: oldincludedir=$ac_optarg ;;
1.1 paf 501:
502: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503: ac_prev=prefix ;;
504: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.62 paf 505: prefix=$ac_optarg ;;
1.1 paf 506:
507: -program-prefix | --program-prefix | --program-prefi | --program-pref \
508: | --program-pre | --program-pr | --program-p)
509: ac_prev=program_prefix ;;
510: -program-prefix=* | --program-prefix=* | --program-prefi=* \
511: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.62 paf 512: program_prefix=$ac_optarg ;;
1.1 paf 513:
514: -program-suffix | --program-suffix | --program-suffi | --program-suff \
515: | --program-suf | --program-su | --program-s)
516: ac_prev=program_suffix ;;
517: -program-suffix=* | --program-suffix=* | --program-suffi=* \
518: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.62 paf 519: program_suffix=$ac_optarg ;;
1.1 paf 520:
521: -program-transform-name | --program-transform-name \
522: | --program-transform-nam | --program-transform-na \
523: | --program-transform-n | --program-transform- \
524: | --program-transform | --program-transfor \
525: | --program-transfo | --program-transf \
526: | --program-trans | --program-tran \
527: | --progr-tra | --program-tr | --program-t)
528: ac_prev=program_transform_name ;;
529: -program-transform-name=* | --program-transform-name=* \
530: | --program-transform-nam=* | --program-transform-na=* \
531: | --program-transform-n=* | --program-transform-=* \
532: | --program-transform=* | --program-transfor=* \
533: | --program-transfo=* | --program-transf=* \
534: | --program-trans=* | --program-tran=* \
535: | --progr-tra=* | --program-tr=* | --program-t=*)
1.62 paf 536: program_transform_name=$ac_optarg ;;
1.1 paf 537:
538: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539: | -silent | --silent | --silen | --sile | --sil)
540: silent=yes ;;
541:
542: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543: ac_prev=sbindir ;;
544: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545: | --sbi=* | --sb=*)
1.62 paf 546: sbindir=$ac_optarg ;;
1.1 paf 547:
548: -sharedstatedir | --sharedstatedir | --sharedstatedi \
549: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550: | --sharedst | --shareds | --shared | --share | --shar \
551: | --sha | --sh)
552: ac_prev=sharedstatedir ;;
553: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556: | --sha=* | --sh=*)
1.62 paf 557: sharedstatedir=$ac_optarg ;;
1.1 paf 558:
559: -site | --site | --sit)
560: ac_prev=site ;;
561: -site=* | --site=* | --sit=*)
1.62 paf 562: site=$ac_optarg ;;
1.1 paf 563:
564: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565: ac_prev=srcdir ;;
566: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.62 paf 567: srcdir=$ac_optarg ;;
1.1 paf 568:
569: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570: | --syscon | --sysco | --sysc | --sys | --sy)
571: ac_prev=sysconfdir ;;
572: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.62 paf 574: sysconfdir=$ac_optarg ;;
1.1 paf 575:
576: -target | --target | --targe | --targ | --tar | --ta | --t)
1.62 paf 577: ac_prev=target_alias ;;
1.1 paf 578: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.62 paf 579: target_alias=$ac_optarg ;;
1.1 paf 580:
581: -v | -verbose | --verbose | --verbos | --verbo | --verb)
582: verbose=yes ;;
583:
1.62 paf 584: -version | --version | --versio | --versi | --vers | -V)
585: ac_init_version=: ;;
1.1 paf 586:
587: -with-* | --with-*)
1.62 paf 588: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 paf 589: # Reject names that are not valid shell variable names.
1.62 paf 590: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591: { echo "$as_me: error: invalid package name: $ac_package" >&2
592: { (exit 1); exit 1; }; }
1.1 paf 593: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.62 paf 594: case $ac_option in
595: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 paf 596: *) ac_optarg=yes ;;
597: esac
1.62 paf 598: eval "with_$ac_package='$ac_optarg'" ;;
1.1 paf 599:
600: -without-* | --without-*)
1.62 paf 601: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 paf 602: # Reject names that are not valid shell variable names.
1.62 paf 603: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604: { echo "$as_me: error: invalid package name: $ac_package" >&2
605: { (exit 1); exit 1; }; }
606: ac_package=`echo $ac_package | sed 's/-/_/g'`
607: eval "with_$ac_package=no" ;;
1.1 paf 608:
609: --x)
610: # Obsolete; use --with-x.
611: with_x=yes ;;
612:
613: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614: | --x-incl | --x-inc | --x-in | --x-i)
615: ac_prev=x_includes ;;
616: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.62 paf 618: x_includes=$ac_optarg ;;
1.1 paf 619:
620: -x-libraries | --x-libraries | --x-librarie | --x-librari \
621: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622: ac_prev=x_libraries ;;
623: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.62 paf 625: x_libraries=$ac_optarg ;;
1.1 paf 626:
1.62 paf 627: -*) { echo "$as_me: error: unrecognized option: $ac_option
628: Try \`$0 --help' for more information." >&2
629: { (exit 1); exit 1; }; }
1.1 paf 630: ;;
631:
1.62 paf 632: *=*)
633: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634: # Reject names that are not valid shell variable names.
635: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637: { (exit 1); exit 1; }; }
638: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639: eval "$ac_envvar='$ac_optarg'"
640: export $ac_envvar ;;
641:
1.1 paf 642: *)
1.62 paf 643: # FIXME: should be removed in autoconf 3.0.
644: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 paf 648: ;;
649:
650: esac
651: done
652:
653: if test -n "$ac_prev"; then
1.62 paf 654: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655: { echo "$as_me: error: missing argument to $ac_option" >&2
656: { (exit 1); exit 1; }; }
1.1 paf 657: fi
658:
1.62 paf 659: # Be sure to have absolute paths.
660: for ac_var in exec_prefix prefix
661: do
662: eval ac_val=$`echo $ac_var`
663: case $ac_val in
664: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666: { (exit 1); exit 1; }; };;
667: esac
668: done
1.1 paf 669:
1.62 paf 670: # Be sure to have absolute paths.
671: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1.86 paf 672: localstatedir libdir includedir oldincludedir infodir mandir
1.1 paf 673: do
1.62 paf 674: eval ac_val=$`echo $ac_var`
675: case $ac_val in
676: [\\/$]* | ?:[\\/]* ) ;;
677: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678: { (exit 1); exit 1; }; };;
1.1 paf 679: esac
680: done
681:
1.62 paf 682: # There might be people who depend on the old broken behavior: `$host'
683: # used to hold the argument of --host etc.
684: # FIXME: To remove some day.
685: build=$build_alias
686: host=$host_alias
687: target=$target_alias
688:
689: # FIXME: To remove some day.
690: if test "x$host_alias" != x; then
691: if test "x$build_alias" = x; then
692: cross_compiling=maybe
693: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694: If a cross compiler is detected then cross compile mode will be used." >&2
695: elif test "x$build_alias" != "x$host_alias"; then
696: cross_compiling=yes
697: fi
698: fi
699:
700: ac_tool_prefix=
701: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 paf 702:
1.62 paf 703: test "$silent" = yes && exec 6>/dev/null
1.1 paf 704:
705:
706: # Find the source files, if location was not specified.
707: if test -z "$srcdir"; then
708: ac_srcdir_defaulted=yes
709: # Try the directory containing this script, then its parent.
1.62 paf 710: ac_confdir=`(dirname "$0") 2>/dev/null ||
711: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 712: X"$0" : 'X\(//\)[^/]' \| \
713: X"$0" : 'X\(//\)$' \| \
714: X"$0" : 'X\(/\)' \| \
715: . : '\(.\)' 2>/dev/null ||
1.62 paf 716: echo X"$0" |
717: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719: /^X\(\/\/\)$/{ s//\1/; q; }
720: /^X\(\/\).*/{ s//\1/; q; }
721: s/.*/./; q'`
1.1 paf 722: srcdir=$ac_confdir
723: if test ! -r $srcdir/$ac_unique_file; then
724: srcdir=..
725: fi
726: else
727: ac_srcdir_defaulted=no
728: fi
729: if test ! -r $srcdir/$ac_unique_file; then
730: if test "$ac_srcdir_defaulted" = yes; then
1.62 paf 731: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732: { (exit 1); exit 1; }; }
1.1 paf 733: else
1.62 paf 734: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735: { (exit 1); exit 1; }; }
1.1 paf 736: fi
737: fi
1.62 paf 738: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740: { (exit 1); exit 1; }; }
741: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742: ac_env_build_alias_set=${build_alias+set}
743: ac_env_build_alias_value=$build_alias
744: ac_cv_env_build_alias_set=${build_alias+set}
745: ac_cv_env_build_alias_value=$build_alias
746: ac_env_host_alias_set=${host_alias+set}
747: ac_env_host_alias_value=$host_alias
748: ac_cv_env_host_alias_set=${host_alias+set}
749: ac_cv_env_host_alias_value=$host_alias
750: ac_env_target_alias_set=${target_alias+set}
751: ac_env_target_alias_value=$target_alias
752: ac_cv_env_target_alias_set=${target_alias+set}
753: ac_cv_env_target_alias_value=$target_alias
1.66 paf 754: ac_env_CXX_set=${CXX+set}
755: ac_env_CXX_value=$CXX
756: ac_cv_env_CXX_set=${CXX+set}
757: ac_cv_env_CXX_value=$CXX
758: ac_env_CXXFLAGS_set=${CXXFLAGS+set}
759: ac_env_CXXFLAGS_value=$CXXFLAGS
760: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
761: ac_cv_env_CXXFLAGS_value=$CXXFLAGS
762: ac_env_LDFLAGS_set=${LDFLAGS+set}
763: ac_env_LDFLAGS_value=$LDFLAGS
764: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765: ac_cv_env_LDFLAGS_value=$LDFLAGS
766: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767: ac_env_CPPFLAGS_value=$CPPFLAGS
768: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
1.62 paf 770: ac_env_CC_set=${CC+set}
771: ac_env_CC_value=$CC
772: ac_cv_env_CC_set=${CC+set}
773: ac_cv_env_CC_value=$CC
774: ac_env_CFLAGS_set=${CFLAGS+set}
775: ac_env_CFLAGS_value=$CFLAGS
776: ac_cv_env_CFLAGS_set=${CFLAGS+set}
777: ac_cv_env_CFLAGS_value=$CFLAGS
1.66 paf 778: ac_env_CPP_set=${CPP+set}
779: ac_env_CPP_value=$CPP
780: ac_cv_env_CPP_set=${CPP+set}
781: ac_cv_env_CPP_value=$CPP
1.62 paf 782:
783: #
784: # Report the --help message.
785: #
786: if test "$ac_init_help" = "long"; then
787: # Omit some internal or obsolete options to make the list less imposing.
788: # This message is too long to be a string in the A/UX 3.1 sh.
789: cat <<_ACEOF
790: \`configure' configures this package to adapt to many kinds of systems.
791:
792: Usage: $0 [OPTION]... [VAR=VALUE]...
793:
794: To assign environment variables (e.g., CC, CFLAGS...), specify them as
795: VAR=VALUE. See below for descriptions of some of the useful variables.
796:
797: Defaults for the options are specified in brackets.
798:
799: Configuration:
800: -h, --help display this help and exit
801: --help=short display options specific to this package
802: --help=recursive display the short help of all the included packages
803: -V, --version display version information and exit
804: -q, --quiet, --silent do not print \`checking...' messages
805: --cache-file=FILE cache test results in FILE [disabled]
806: -C, --config-cache alias for \`--cache-file=config.cache'
807: -n, --no-create do not create output files
808: --srcdir=DIR find the sources in DIR [configure dir or \`..']
809:
810: _ACEOF
811:
812: cat <<_ACEOF
813: Installation directories:
814: --prefix=PREFIX install architecture-independent files in PREFIX
1.86 paf 815: [$ac_default_prefix]
1.62 paf 816: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.86 paf 817: [PREFIX]
1.62 paf 818:
819: By default, \`make install' will install all the files in
820: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
821: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
822: for instance \`--prefix=\$HOME'.
823:
824: For better control, use the options below.
825:
826: Fine tuning of the installation directories:
827: --bindir=DIR user executables [EPREFIX/bin]
828: --sbindir=DIR system admin executables [EPREFIX/sbin]
829: --libexecdir=DIR program executables [EPREFIX/libexec]
830: --datadir=DIR read-only architecture-independent data [PREFIX/share]
831: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
832: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
833: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
834: --libdir=DIR object code libraries [EPREFIX/lib]
835: --includedir=DIR C header files [PREFIX/include]
836: --oldincludedir=DIR C header files for non-gcc [/usr/include]
837: --infodir=DIR info documentation [PREFIX/info]
838: --mandir=DIR man documentation [PREFIX/man]
839: _ACEOF
840:
841: cat <<\_ACEOF
842:
843: Program names:
844: --program-prefix=PREFIX prepend PREFIX to installed program names
845: --program-suffix=SUFFIX append SUFFIX to installed program names
846: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
847:
848: System types:
849: --build=BUILD configure for building on BUILD [guessed]
850: --host=HOST cross-compile to build programs to run on HOST [BUILD]
851: _ACEOF
852: fi
853:
854: if test -n "$ac_init_help"; then
855:
856: cat <<\_ACEOF
857:
858: Optional Features:
859: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.86 paf 861: --disable-dependency-tracking speeds up one-time build
862: --enable-dependency-tracking do not reject slow dependency extractors
1.67 paf 863: --disable-safe-mode to enable reading and executing
1.62 paf 864: files belonging to group+user other then effective
1.94 misha 865: --disable-execs to disable any execs
1.62 paf 866: (file::exec, file::cgi, unix mail:send)
1.94 misha 867: --disable-stringstream to disable stringstream usage.
868: when disabled table.save use more memory but it's safer on freebsd 4.x
1.62 paf 869:
870: Optional Packages:
871: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.71 paf 873: --with-build-warnings to enable build-time compiler warnings if gcc is used
1.67 paf 874: --with-assertions to enable assertions
1.62 paf 875: --with-charsets=CHARSET,CHARSET,... Enables charsets in root config (windows-1251,
876: windows-1250 windows-1257 koi8-r; Default is windows-1251)
877: --with-mysql-client=mysqlclientlib?withparams
878: MySQL client dynamic library to root config
879: --with-pgsql-client=pgsqlclientlib?withparams
880: PgSQL client dynamic library to root config
881: --with-oracle-client=oracleclientlib?withparams
882: Oracle client dynamic library
1.92 misha 883: --with-sqlite-client=sqliteclientlib?withparams
884: SQLite client dynamic library to root config
1.62 paf 885: --with-pathlink=LKEY put dynamic libraries paths to binary
886: using linker key (-R, -rpath-link)
1.67 paf 887: --with-dynamic-stdcpp link libstdc++ dynamically
888: by default, libstdc++ is linked statically
1.62 paf 889: --with-sjlj-exceptions enable simple 'throw' from dynamic library
1.67 paf 890: --with-shared-gc=D D is the directory where
891: Boehm garbage collecting library is installed (shared lib)
892: --with-static-gc=D D is the directory where
893: Boehm garbage collecting library is installed (static lib)
1.100 misha 894: --with-static-pcre=D D is the directory where
895: PCRE library is installed (static lib)
1.62 paf 896: --with-shared-xml=D D is the directory where
897: Gnome XML libraries are installed (shared libs)
898: --with-static-xml=D D is the directory where
899: Gnome XML libraries are installed (static libs)
1.90 paf 900: --with-glib-config=FILE FILE is glib library
901: configuration file (search for glib*-config)
1.62 paf 902: --with-shared-mailreceive=D is the directory where
1.67 paf 903: Gnome MIME library is installed (shared lib)
1.62 paf 904: --with-static-mailreceive=D is the directory where
905: Gnome MIME library is installed (static lib)
906: \"--with-sendmail=COMMAND\" forces this command to send mail.
907: example: \"--with-sendmail=/usr/sbin/sendmail -t\"
908: (makes parser ignore user-defined sendmail commands)
909: --with-apache13=D D is the Apache13 source distribution directory
910: builds library for apache_module using that dir
911: (do not add /src)
912:
913: Some influential environment variables:
1.66 paf 914: CXX C++ compiler command
915: CXXFLAGS C++ compiler flags
1.62 paf 916: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
917: nonstandard directory <lib dir>
918: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
919: headers in a nonstandard directory <include dir>
1.66 paf 920: CC C compiler command
921: CFLAGS C compiler flags
922: CPP C preprocessor
1.62 paf 923:
924: Use these variables to override the choices made by `configure' or to help
925: it to find libraries and programs with nonstandard names/locations.
926:
927: _ACEOF
928: fi
929:
930: if test "$ac_init_help" = "recursive"; then
931: # If there are subdirs, report their specific --help.
932: ac_popdir=`pwd`
933: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
934: test -d $ac_dir || continue
935: ac_builddir=.
936:
937: if test "$ac_dir" != .; then
938: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
939: # A "../" for each directory in $ac_dir_suffix.
940: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
941: else
942: ac_dir_suffix= ac_top_builddir=
943: fi
944:
945: case $srcdir in
946: .) # No --srcdir option. We are building in place.
947: ac_srcdir=.
948: if test -z "$ac_top_builddir"; then
949: ac_top_srcdir=.
950: else
951: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
952: fi ;;
953: [\\/]* | ?:[\\/]* ) # Absolute path.
954: ac_srcdir=$srcdir$ac_dir_suffix;
955: ac_top_srcdir=$srcdir ;;
956: *) # Relative path.
957: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
958: ac_top_srcdir=$ac_top_builddir$srcdir ;;
959: esac
1.86 paf 960:
961: # Do not use `cd foo && pwd` to compute absolute paths, because
962: # the directories may not exist.
963: case `pwd` in
964: .) ac_abs_builddir="$ac_dir";;
965: *)
966: case "$ac_dir" in
967: .) ac_abs_builddir=`pwd`;;
968: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
969: *) ac_abs_builddir=`pwd`/"$ac_dir";;
970: esac;;
971: esac
972: case $ac_abs_builddir in
973: .) ac_abs_top_builddir=${ac_top_builddir}.;;
974: *)
975: case ${ac_top_builddir}. in
976: .) ac_abs_top_builddir=$ac_abs_builddir;;
977: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
978: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
979: esac;;
980: esac
981: case $ac_abs_builddir in
982: .) ac_abs_srcdir=$ac_srcdir;;
983: *)
984: case $ac_srcdir in
985: .) ac_abs_srcdir=$ac_abs_builddir;;
986: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
987: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
988: esac;;
989: esac
990: case $ac_abs_builddir in
991: .) ac_abs_top_srcdir=$ac_top_srcdir;;
992: *)
993: case $ac_top_srcdir in
994: .) ac_abs_top_srcdir=$ac_abs_builddir;;
995: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
996: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
997: esac;;
998: esac
1.62 paf 999:
1000: cd $ac_dir
1001: # Check for guested configure; otherwise get Cygnus style configure.
1002: if test -f $ac_srcdir/configure.gnu; then
1003: echo
1004: $SHELL $ac_srcdir/configure.gnu --help=recursive
1005: elif test -f $ac_srcdir/configure; then
1006: echo
1007: $SHELL $ac_srcdir/configure --help=recursive
1008: elif test -f $ac_srcdir/configure.ac ||
1.86 paf 1009: test -f $ac_srcdir/configure.in; then
1.62 paf 1010: echo
1011: $ac_configure --help
1012: else
1013: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1014: fi
1015: cd $ac_popdir
1016: done
1017: fi
1018:
1019: test -n "$ac_init_help" && exit 0
1020: if $ac_init_version; then
1021: cat <<\_ACEOF
1022:
1.86 paf 1023: Copyright (C) 2003 Free Software Foundation, Inc.
1.62 paf 1024: This configure script is free software; the Free Software Foundation
1025: gives unlimited permission to copy, distribute and modify it.
1026: _ACEOF
1027: exit 0
1028: fi
1029: exec 5>config.log
1030: cat >&5 <<_ACEOF
1031: This file contains any messages produced by compilers while
1032: running configure, to aid debugging if configure makes a mistake.
1033:
1034: It was created by $as_me, which was
1.86 paf 1035: generated by GNU Autoconf 2.59. Invocation command line was
1.62 paf 1036:
1037: $ $0 $@
1038:
1039: _ACEOF
1040: {
1041: cat <<_ASUNAME
1042: ## --------- ##
1043: ## Platform. ##
1044: ## --------- ##
1045:
1046: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1047: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1048: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1049: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1050: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1051:
1052: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1053: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1054:
1055: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1056: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1057: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1058: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1059: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1060: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1061: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1062:
1063: _ASUNAME
1064:
1065: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1066: for as_dir in $PATH
1067: do
1068: IFS=$as_save_IFS
1069: test -z "$as_dir" && as_dir=.
1070: echo "PATH: $as_dir"
1071: done
1.1 paf 1072:
1.62 paf 1073: } >&5
1074:
1075: cat >&5 <<_ACEOF
1076:
1077:
1078: ## ----------- ##
1079: ## Core tests. ##
1080: ## ----------- ##
1081:
1082: _ACEOF
1083:
1084:
1085: # Keep a trace of the command line.
1086: # Strip out --no-create and --no-recursion so they do not pile up.
1087: # Strip out --silent because we don't want to record it for future runs.
1088: # Also quote any args containing shell meta-characters.
1089: # Make two passes to allow for proper duplicate-argument suppression.
1090: ac_configure_args=
1091: ac_configure_args0=
1092: ac_configure_args1=
1093: ac_sep=
1094: ac_must_keep_next=false
1095: for ac_pass in 1 2
1096: do
1097: for ac_arg
1098: do
1099: case $ac_arg in
1100: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1101: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102: | -silent | --silent | --silen | --sile | --sil)
1103: continue ;;
1104: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1105: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1106: esac
1107: case $ac_pass in
1108: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1109: 2)
1110: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1111: if test $ac_must_keep_next = true; then
1.86 paf 1112: ac_must_keep_next=false # Got value, back to normal.
1.62 paf 1113: else
1.86 paf 1114: case $ac_arg in
1115: *=* | --config-cache | -C | -disable-* | --disable-* \
1116: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1117: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1118: | -with-* | --with-* | -without-* | --without-* | --x)
1119: case "$ac_configure_args0 " in
1120: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1121: esac
1122: ;;
1123: -* ) ac_must_keep_next=true ;;
1124: esac
1.62 paf 1125: fi
1126: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1127: # Get rid of the leading space.
1128: ac_sep=" "
1129: ;;
1130: esac
1131: done
1132: done
1133: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1134: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1135:
1136: # When interrupted or exit'd, cleanup temporary files, and complete
1137: # config.log. We remove comments because anyway the quotes in there
1138: # would cause problems or look ugly.
1139: # WARNING: Be sure not to use single quotes in there, as some shells,
1140: # such as our DU 5.0 friend, will then `close' the trap.
1141: trap 'exit_status=$?
1142: # Save into config.log some information that might help in debugging.
1143: {
1144: echo
1145:
1146: cat <<\_ASBOX
1147: ## ---------------- ##
1148: ## Cache variables. ##
1149: ## ---------------- ##
1150: _ASBOX
1151: echo
1152: # The following way of writing the cache mishandles newlines in values,
1153: {
1154: (set) 2>&1 |
1155: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1156: *ac_space=\ *)
1157: sed -n \
1.86 paf 1158: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1159: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1.62 paf 1160: ;;
1161: *)
1162: sed -n \
1.86 paf 1163: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.62 paf 1164: ;;
1165: esac;
1166: }
1167: echo
1168:
1169: cat <<\_ASBOX
1170: ## ----------------- ##
1171: ## Output variables. ##
1172: ## ----------------- ##
1173: _ASBOX
1174: echo
1175: for ac_var in $ac_subst_vars
1176: do
1177: eval ac_val=$`echo $ac_var`
1178: echo "$ac_var='"'"'$ac_val'"'"'"
1179: done | sort
1180: echo
1181:
1182: if test -n "$ac_subst_files"; then
1183: cat <<\_ASBOX
1184: ## ------------- ##
1185: ## Output files. ##
1186: ## ------------- ##
1187: _ASBOX
1188: echo
1189: for ac_var in $ac_subst_files
1190: do
1191: eval ac_val=$`echo $ac_var`
1.86 paf 1192: echo "$ac_var='"'"'$ac_val'"'"'"
1.62 paf 1193: done | sort
1194: echo
1195: fi
1196:
1197: if test -s confdefs.h; then
1198: cat <<\_ASBOX
1199: ## ----------- ##
1200: ## confdefs.h. ##
1201: ## ----------- ##
1202: _ASBOX
1203: echo
1204: sed "/^$/d" confdefs.h | sort
1205: echo
1206: fi
1207: test "$ac_signal" != 0 &&
1208: echo "$as_me: caught signal $ac_signal"
1209: echo "$as_me: exit $exit_status"
1210: } >&5
1.86 paf 1211: rm -f core *.core &&
1.62 paf 1212: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1213: exit $exit_status
1214: ' 0
1215: for ac_signal in 1 2 13 15; do
1216: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1217: done
1218: ac_signal=0
1219:
1220: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1221: rm -rf conftest* confdefs.h
1222: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1223: echo >confdefs.h
1224:
1225: # Predefined preprocessor variables.
1226:
1227: cat >>confdefs.h <<_ACEOF
1228: #define PACKAGE_NAME "$PACKAGE_NAME"
1229: _ACEOF
1230:
1231:
1232: cat >>confdefs.h <<_ACEOF
1233: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1234: _ACEOF
1235:
1236:
1237: cat >>confdefs.h <<_ACEOF
1238: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1239: _ACEOF
1240:
1241:
1242: cat >>confdefs.h <<_ACEOF
1243: #define PACKAGE_STRING "$PACKAGE_STRING"
1244: _ACEOF
1245:
1246:
1247: cat >>confdefs.h <<_ACEOF
1248: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1249: _ACEOF
1250:
1251:
1252: # Let the site file select an alternate cache file if it wants to.
1.1 paf 1253: # Prefer explicitly selected file to automatically selected ones.
1254: if test -z "$CONFIG_SITE"; then
1255: if test "x$prefix" != xNONE; then
1256: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1257: else
1258: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1259: fi
1260: fi
1261: for ac_site_file in $CONFIG_SITE; do
1262: if test -r "$ac_site_file"; then
1.62 paf 1263: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1264: echo "$as_me: loading site script $ac_site_file" >&6;}
1265: sed 's/^/| /' "$ac_site_file" >&5
1.1 paf 1266: . "$ac_site_file"
1267: fi
1268: done
1269:
1270: if test -r "$cache_file"; then
1.62 paf 1271: # Some versions of bash will fail to source /dev/null (special
1272: # files actually), so we avoid doing that.
1273: if test -f "$cache_file"; then
1274: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1275: echo "$as_me: loading cache $cache_file" >&6;}
1276: case $cache_file in
1277: [\\/]* | ?:[\\/]* ) . $cache_file;;
1278: *) . ./$cache_file;;
1279: esac
1280: fi
1.1 paf 1281: else
1.62 paf 1282: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1283: echo "$as_me: creating cache $cache_file" >&6;}
1284: >$cache_file
1285: fi
1286:
1287: # Check that the precious variables saved in the cache have kept the same
1288: # value.
1289: ac_cache_corrupted=false
1290: for ac_var in `(set) 2>&1 |
1.86 paf 1291: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.62 paf 1292: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1293: eval ac_new_set=\$ac_env_${ac_var}_set
1294: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1295: eval ac_new_val="\$ac_env_${ac_var}_value"
1296: case $ac_old_set,$ac_new_set in
1297: set,)
1298: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1299: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1300: ac_cache_corrupted=: ;;
1301: ,set)
1302: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1303: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1304: ac_cache_corrupted=: ;;
1305: ,);;
1306: *)
1307: if test "x$ac_old_val" != "x$ac_new_val"; then
1.86 paf 1308: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.62 paf 1309: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.86 paf 1310: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.62 paf 1311: echo "$as_me: former value: $ac_old_val" >&2;}
1.86 paf 1312: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.62 paf 1313: echo "$as_me: current value: $ac_new_val" >&2;}
1.86 paf 1314: ac_cache_corrupted=:
1.62 paf 1315: fi;;
1316: esac
1317: # Pass precious variables to config.status.
1318: if test "$ac_new_set" = set; then
1319: case $ac_new_val in
1320: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1321: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1322: *) ac_arg=$ac_var=$ac_new_val ;;
1323: esac
1324: case " $ac_configure_args " in
1325: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1326: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1327: esac
1328: fi
1329: done
1330: if $ac_cache_corrupted; then
1331: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1332: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1333: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1334: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1335: { (exit 1); exit 1; }; }
1.1 paf 1336: fi
1337:
1338: ac_ext=c
1339: ac_cpp='$CPP $CPPFLAGS'
1.62 paf 1340: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1341: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1342: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1343:
1344:
1345:
1346:
1347:
1348:
1349:
1350:
1351:
1352:
1353:
1.1 paf 1354:
1355:
1.62 paf 1356:
1357:
1358:
1359:
1360:
1361:
1.63 paf 1362:
1363:
1.86 paf 1364: am__api_version="1.9"
1.1 paf 1365: ac_aux_dir=
1366: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1367: if test -f $ac_dir/install-sh; then
1368: ac_aux_dir=$ac_dir
1369: ac_install_sh="$ac_aux_dir/install-sh -c"
1370: break
1371: elif test -f $ac_dir/install.sh; then
1372: ac_aux_dir=$ac_dir
1373: ac_install_sh="$ac_aux_dir/install.sh -c"
1374: break
1.62 paf 1375: elif test -f $ac_dir/shtool; then
1376: ac_aux_dir=$ac_dir
1377: ac_install_sh="$ac_aux_dir/shtool install -c"
1378: break
1.1 paf 1379: fi
1380: done
1381: if test -z "$ac_aux_dir"; then
1.62 paf 1382: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1383: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1384: { (exit 1); exit 1; }; }
1385: fi
1386: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1387: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1388: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 paf 1389:
1390: # Find a good install program. We prefer a C program (faster),
1391: # so one script is as good as another. But avoid the broken or
1392: # incompatible versions:
1393: # SysV /etc/install, /usr/sbin/install
1394: # SunOS /usr/etc/install
1395: # IRIX /sbin/install
1396: # AIX /bin/install
1.62 paf 1397: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 1398: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1399: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1400: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 1401: # OS/2's system install, which has a completely different semantic
1.1 paf 1402: # ./install, which can be erroneously created by make from ./install.sh.
1.62 paf 1403: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1404: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 paf 1405: if test -z "$INSTALL"; then
1.62 paf 1406: if test "${ac_cv_path_install+set}" = set; then
1407: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1408: else
1.62 paf 1409: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1410: for as_dir in $PATH
1411: do
1412: IFS=$as_save_IFS
1413: test -z "$as_dir" && as_dir=.
1414: # Account for people who put trailing slashes in PATH elements.
1415: case $as_dir/ in
1416: ./ | .// | /cC/* | \
1417: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.86 paf 1418: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.62 paf 1419: /usr/ucb/* ) ;;
1420: *)
1421: # OSF1 and SCO ODT 3.0 have their own names for install.
1422: # Don't use installbsd from OSF since it installs stuff as root
1423: # by default.
1424: for ac_prog in ginstall scoinst install; do
1425: for ac_exec_ext in '' $ac_executable_extensions; do
1.86 paf 1426: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1427: if test $ac_prog = install &&
1428: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1429: # AIX install. It has an incompatible calling convention.
1430: :
1431: elif test $ac_prog = install &&
1432: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1433: # program-specific install script used by HP pwplus--don't use.
1434: :
1435: else
1436: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1437: break 3
1438: fi
1439: fi
1.1 paf 1440: done
1.62 paf 1441: done
1442: ;;
1443: esac
1444: done
1445:
1.1 paf 1446:
1447: fi
1448: if test "${ac_cv_path_install+set}" = set; then
1.62 paf 1449: INSTALL=$ac_cv_path_install
1.1 paf 1450: else
1451: # As a last resort, use the slow shell script. We don't cache a
1452: # path for INSTALL within a source directory, because that will
1453: # break other packages using the cache if that directory is
1454: # removed, or if the path is relative.
1.62 paf 1455: INSTALL=$ac_install_sh
1.1 paf 1456: fi
1457: fi
1.62 paf 1458: echo "$as_me:$LINENO: result: $INSTALL" >&5
1459: echo "${ECHO_T}$INSTALL" >&6
1.1 paf 1460:
1461: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1462: # It thinks the first close brace ends the variable substitution.
1463: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1464:
1.62 paf 1465: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 1466:
1467: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1468:
1.62 paf 1469: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1470: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 paf 1471: # Just in case
1472: sleep 1
1.62 paf 1473: echo timestamp > conftest.file
1.1 paf 1474: # Do `set' in a subshell so we don't clobber the current shell's
1475: # arguments. Must try -L first in case configure is actually a
1476: # symlink; some systems play weird games with the mod time of symlinks
1477: # (eg FreeBSD returns the mod time of the symlink's containing
1478: # directory).
1479: if (
1.62 paf 1480: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1 paf 1481: if test "$*" = "X"; then
1482: # -L didn't work.
1.62 paf 1483: set X `ls -t $srcdir/configure conftest.file`
1.1 paf 1484: fi
1.62 paf 1485: rm -f conftest.file
1486: if test "$*" != "X $srcdir/configure conftest.file" \
1487: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 paf 1488:
1489: # If neither matched, then we have a broken ls. This can happen
1490: # if, for instance, CONFIG_SHELL is bash and it inherits a
1491: # broken ls alias from the environment. This has actually
1492: # happened. Such a system could not be considered "sane".
1.62 paf 1493: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1494: alias in your environment" >&5
1495: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1496: alias in your environment" >&2;}
1497: { (exit 1); exit 1; }; }
1.1 paf 1498: fi
1499:
1.62 paf 1500: test "$2" = conftest.file
1.1 paf 1501: )
1502: then
1503: # Ok.
1504: :
1505: else
1.62 paf 1506: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1507: Check your system clock" >&5
1508: echo "$as_me: error: newly created file is older than distributed files!
1509: Check your system clock" >&2;}
1510: { (exit 1); exit 1; }; }
1.1 paf 1511: fi
1.62 paf 1512: echo "$as_me:$LINENO: result: yes" >&5
1513: echo "${ECHO_T}yes" >&6
1.1 paf 1514: test "$program_prefix" != NONE &&
1.62 paf 1515: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 paf 1516: # Use a double $ so make ignores it.
1517: test "$program_suffix" != NONE &&
1.62 paf 1518: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1519: # Double any \ or $. echo might interpret backslashes.
1520: # By default was `s,x,x', remove it if useless.
1521: cat <<\_ACEOF >conftest.sed
1522: s/[\\$]/&&/g;s/;s,x,x,$//
1523: _ACEOF
1524: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1525: rm conftest.sed
1526:
1527: # expand $ac_aux_dir to an absolute path
1528: am_aux_dir=`cd $ac_aux_dir && pwd`
1529:
1530: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1531: # Use eval to expand $SHELL
1532: if eval "$MISSING --run true"; then
1533: am_missing_run="$MISSING --run "
1534: else
1535: am_missing_run=
1536: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1537: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1538: fi
1539:
1.86 paf 1540: if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1541: # We used to keeping the `.' as first argument, in order to
1542: # allow $(mkdir_p) to be used without argument. As in
1543: # $(mkdir_p) $(somedir)
1544: # where $(somedir) is conditionally defined. However this is wrong
1545: # for two reasons:
1546: # 1. if the package is installed by a user who cannot write `.'
1547: # make install will fail,
1548: # 2. the above comment should most certainly read
1549: # $(mkdir_p) $(DESTDIR)$(somedir)
1550: # so it does not work when $(somedir) is undefined and
1551: # $(DESTDIR) is not.
1552: # To support the latter case, we have to write
1553: # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1554: # so the `.' trick is pointless.
1555: mkdir_p='mkdir -p --'
1556: else
1557: # On NextStep and OpenStep, the `mkdir' command does not
1558: # recognize any option. It will interpret all options as
1559: # directories to create, and then abort because `.' already
1560: # exists.
1561: for d in ./-p ./--version;
1562: do
1563: test -d $d && rmdir $d
1564: done
1565: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1566: if test -f "$ac_aux_dir/mkinstalldirs"; then
1567: mkdir_p='$(mkinstalldirs)'
1568: else
1569: mkdir_p='$(install_sh) -d'
1570: fi
1571: fi
1572:
1.62 paf 1573: for ac_prog in gawk mawk nawk awk
1574: do
1575: # Extract the first word of "$ac_prog", so it can be a program name with args.
1576: set dummy $ac_prog; ac_word=$2
1577: echo "$as_me:$LINENO: checking for $ac_word" >&5
1578: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1579: if test "${ac_cv_prog_AWK+set}" = set; then
1580: echo $ECHO_N "(cached) $ECHO_C" >&6
1581: else
1582: if test -n "$AWK"; then
1583: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1584: else
1585: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586: for as_dir in $PATH
1587: do
1588: IFS=$as_save_IFS
1589: test -z "$as_dir" && as_dir=.
1590: for ac_exec_ext in '' $ac_executable_extensions; do
1591: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1592: ac_cv_prog_AWK="$ac_prog"
1593: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1594: break 2
1595: fi
1596: done
1597: done
1598:
1599: fi
1600: fi
1601: AWK=$ac_cv_prog_AWK
1602: if test -n "$AWK"; then
1603: echo "$as_me:$LINENO: result: $AWK" >&5
1604: echo "${ECHO_T}$AWK" >&6
1605: else
1606: echo "$as_me:$LINENO: result: no" >&5
1607: echo "${ECHO_T}no" >&6
1608: fi
1.1 paf 1609:
1.62 paf 1610: test -n "$AWK" && break
1611: done
1.1 paf 1612:
1.62 paf 1613: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1614: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1.86 paf 1615: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.62 paf 1616: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1617: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1618: else
1.62 paf 1619: cat >conftest.make <<\_ACEOF
1.1 paf 1620: all:
1.62 paf 1621: @echo 'ac_maketemp="$(MAKE)"'
1622: _ACEOF
1.1 paf 1623: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.62 paf 1624: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 paf 1625: if test -n "$ac_maketemp"; then
1626: eval ac_cv_prog_make_${ac_make}_set=yes
1627: else
1628: eval ac_cv_prog_make_${ac_make}_set=no
1629: fi
1.62 paf 1630: rm -f conftest.make
1.1 paf 1631: fi
1632: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.62 paf 1633: echo "$as_me:$LINENO: result: yes" >&5
1634: echo "${ECHO_T}yes" >&6
1.1 paf 1635: SET_MAKE=
1636: else
1.62 paf 1637: echo "$as_me:$LINENO: result: no" >&5
1638: echo "${ECHO_T}no" >&6
1.1 paf 1639: SET_MAKE="MAKE=${MAKE-make}"
1640: fi
1641:
1.86 paf 1642: rm -rf .tst 2>/dev/null
1643: mkdir .tst 2>/dev/null
1644: if test -d .tst; then
1645: am__leading_dot=.
1646: else
1647: am__leading_dot=_
1648: fi
1649: rmdir .tst 2>/dev/null
1650:
1651: # test to see if srcdir already configured
1.62 paf 1652: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1653: test -f $srcdir/config.status; then
1654: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1655: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1656: { (exit 1); exit 1; }; }
1657: fi
1658:
1659: # test whether we have cygpath
1660: if test -z "$CYGPATH_W"; then
1661: if (cygpath --version) >/dev/null 2>/dev/null; then
1662: CYGPATH_W='cygpath -w'
1663: else
1664: CYGPATH_W=echo
1665: fi
1666: fi
1667:
1668:
1669: # Define the identity of the package.
1670: PACKAGE=parser
1.106 misha 1671: VERSION=3.4.0b
1.1 paf 1672:
1673:
1.62 paf 1674: # Some tools Automake needs.
1675:
1676: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1677:
1678:
1679: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1680:
1681:
1682: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1683:
1684:
1685: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1686:
1687:
1688: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 paf 1689:
1.62 paf 1690: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1 paf 1691:
1.62 paf 1692: # Installed binaries are usually stripped using `strip' when the user
1693: # run `make install-strip'. However `strip' might not be the right
1694: # tool to use in cross-compilation environments, therefore Automake
1695: # will honor the `STRIP' environment variable to overrule this program.
1696: if test "$cross_compiling" != no; then
1697: if test -n "$ac_tool_prefix"; then
1698: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1699: set dummy ${ac_tool_prefix}strip; ac_word=$2
1700: echo "$as_me:$LINENO: checking for $ac_word" >&5
1701: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702: if test "${ac_cv_prog_STRIP+set}" = set; then
1703: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1704: else
1.62 paf 1705: if test -n "$STRIP"; then
1706: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1707: else
1708: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709: for as_dir in $PATH
1710: do
1711: IFS=$as_save_IFS
1712: test -z "$as_dir" && as_dir=.
1713: for ac_exec_ext in '' $ac_executable_extensions; do
1714: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1716: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717: break 2
1718: fi
1719: done
1720: done
1721:
1722: fi
1723: fi
1724: STRIP=$ac_cv_prog_STRIP
1725: if test -n "$STRIP"; then
1726: echo "$as_me:$LINENO: result: $STRIP" >&5
1727: echo "${ECHO_T}$STRIP" >&6
1728: else
1729: echo "$as_me:$LINENO: result: no" >&5
1730: echo "${ECHO_T}no" >&6
1.1 paf 1731: fi
1732:
1.62 paf 1733: fi
1734: if test -z "$ac_cv_prog_STRIP"; then
1735: ac_ct_STRIP=$STRIP
1736: # Extract the first word of "strip", so it can be a program name with args.
1737: set dummy strip; ac_word=$2
1738: echo "$as_me:$LINENO: checking for $ac_word" >&5
1739: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1740: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1741: echo $ECHO_N "(cached) $ECHO_C" >&6
1742: else
1743: if test -n "$ac_ct_STRIP"; then
1744: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 paf 1745: else
1.62 paf 1746: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747: for as_dir in $PATH
1748: do
1749: IFS=$as_save_IFS
1750: test -z "$as_dir" && as_dir=.
1751: for ac_exec_ext in '' $ac_executable_extensions; do
1752: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1753: ac_cv_prog_ac_ct_STRIP="strip"
1754: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1755: break 2
1756: fi
1757: done
1758: done
1759:
1760: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1761: fi
1.1 paf 1762: fi
1.62 paf 1763: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1764: if test -n "$ac_ct_STRIP"; then
1765: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1766: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 paf 1767: else
1.62 paf 1768: echo "$as_me:$LINENO: result: no" >&5
1769: echo "${ECHO_T}no" >&6
1.1 paf 1770: fi
1771:
1.62 paf 1772: STRIP=$ac_ct_STRIP
1.1 paf 1773: else
1.62 paf 1774: STRIP="$ac_cv_prog_STRIP"
1.1 paf 1775: fi
1776:
1777: fi
1.62 paf 1778: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1779:
1780: # We need awk for the "check" target. The system "awk" is bad on
1781: # some platforms.
1.86 paf 1782: # Always define AMTAR for backward compatibility.
1783:
1784: AMTAR=${AMTAR-"${am_missing_run}tar"}
1785:
1786: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1787:
1788:
1.62 paf 1789:
1.1 paf 1790:
1791:
1792:
1.12 paf 1793: P3S=`cd $srcdir/src ; pwd`
1.1 paf 1794:
1795:
1.41 paf 1796: # Make sure we can run config.sub.
1.62 paf 1797: $ac_config_sub sun4 >/dev/null 2>&1 ||
1798: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1799: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1800: { (exit 1); exit 1; }; }
1801:
1802: echo "$as_me:$LINENO: checking build system type" >&5
1803: echo $ECHO_N "checking build system type... $ECHO_C" >&6
1804: if test "${ac_cv_build+set}" = set; then
1805: echo $ECHO_N "(cached) $ECHO_C" >&6
1806: else
1807: ac_cv_build_alias=$build_alias
1808: test -z "$ac_cv_build_alias" &&
1809: ac_cv_build_alias=`$ac_config_guess`
1810: test -z "$ac_cv_build_alias" &&
1811: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1812: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1813: { (exit 1); exit 1; }; }
1814: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1815: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1816: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1817: { (exit 1); exit 1; }; }
1818:
1819: fi
1820: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1821: echo "${ECHO_T}$ac_cv_build" >&6
1822: build=$ac_cv_build
1823: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1824: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1825: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1826:
1827:
1828: echo "$as_me:$LINENO: checking host system type" >&5
1829: echo $ECHO_N "checking host system type... $ECHO_C" >&6
1830: if test "${ac_cv_host+set}" = set; then
1831: echo $ECHO_N "(cached) $ECHO_C" >&6
1832: else
1833: ac_cv_host_alias=$host_alias
1834: test -z "$ac_cv_host_alias" &&
1835: ac_cv_host_alias=$ac_cv_build_alias
1836: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1837: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1838: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1839: { (exit 1); exit 1; }; }
1840:
1841: fi
1842: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1843: echo "${ECHO_T}$ac_cv_host" >&6
1844: host=$ac_cv_host
1845: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1846: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1847: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.81 paf 1848:
1849:
1850:
1851: PARSER_VERSION="$VERSION (compiled on $host)"
1852: echo "/* automatically generated by configure */" > $srcdir/src/include/pa_version.h.new
1853: echo "/* edit configure.in to change version number */" >> $srcdir/src/include/pa_version.h.new
1854: echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> $srcdir/src/include/pa_version.h.new
1855: cmp $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h >/dev/null 2>&1
1856: if test $? -ne 0 ; then
1857: rm -f $srcdir/src/include/pa_version.h && mv $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h && \
1858: echo Updated $srcdir/src/include/pa_version.h
1859: else
1860: rm -f $srcdir/src/include/pa_version.h.new
1861: fi
1862:
1.41 paf 1863:
1864:
1865:
1.67 paf 1866: case $host_os in
1867: *cygwin* )
1868: cat >>confdefs.h <<\_ACEOF
1869: #define CYGWIN
1870: _ACEOF
1871: ;;
1872: esac
1.41 paf 1873:
1.1 paf 1874: # Find a good install program. We prefer a C program (faster),
1875: # so one script is as good as another. But avoid the broken or
1876: # incompatible versions:
1877: # SysV /etc/install, /usr/sbin/install
1878: # SunOS /usr/etc/install
1879: # IRIX /sbin/install
1880: # AIX /bin/install
1.62 paf 1881: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 1882: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1883: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1884: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 1885: # OS/2's system install, which has a completely different semantic
1.1 paf 1886: # ./install, which can be erroneously created by make from ./install.sh.
1.62 paf 1887: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1888: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 paf 1889: if test -z "$INSTALL"; then
1.62 paf 1890: if test "${ac_cv_path_install+set}" = set; then
1891: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1892: else
1.62 paf 1893: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894: for as_dir in $PATH
1895: do
1896: IFS=$as_save_IFS
1897: test -z "$as_dir" && as_dir=.
1898: # Account for people who put trailing slashes in PATH elements.
1899: case $as_dir/ in
1900: ./ | .// | /cC/* | \
1901: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.86 paf 1902: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.62 paf 1903: /usr/ucb/* ) ;;
1904: *)
1905: # OSF1 and SCO ODT 3.0 have their own names for install.
1906: # Don't use installbsd from OSF since it installs stuff as root
1907: # by default.
1908: for ac_prog in ginstall scoinst install; do
1909: for ac_exec_ext in '' $ac_executable_extensions; do
1.86 paf 1910: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1911: if test $ac_prog = install &&
1912: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1913: # AIX install. It has an incompatible calling convention.
1914: :
1915: elif test $ac_prog = install &&
1916: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1917: # program-specific install script used by HP pwplus--don't use.
1918: :
1919: else
1920: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1921: break 3
1922: fi
1923: fi
1.1 paf 1924: done
1.62 paf 1925: done
1926: ;;
1927: esac
1928: done
1929:
1.1 paf 1930:
1931: fi
1932: if test "${ac_cv_path_install+set}" = set; then
1.62 paf 1933: INSTALL=$ac_cv_path_install
1.1 paf 1934: else
1935: # As a last resort, use the slow shell script. We don't cache a
1936: # path for INSTALL within a source directory, because that will
1937: # break other packages using the cache if that directory is
1938: # removed, or if the path is relative.
1.62 paf 1939: INSTALL=$ac_install_sh
1.1 paf 1940: fi
1941: fi
1.62 paf 1942: echo "$as_me:$LINENO: result: $INSTALL" >&5
1943: echo "${ECHO_T}$INSTALL" >&6
1.1 paf 1944:
1945: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1946: # It thinks the first close brace ends the variable substitution.
1947: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1948:
1.62 paf 1949: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 1950:
1951: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1952:
1.62 paf 1953: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1954: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1.86 paf 1955: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.62 paf 1956: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1957: echo $ECHO_N "(cached) $ECHO_C" >&6
1.41 paf 1958: else
1.62 paf 1959: cat >conftest.make <<\_ACEOF
1.41 paf 1960: all:
1.62 paf 1961: @echo 'ac_maketemp="$(MAKE)"'
1962: _ACEOF
1.41 paf 1963: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.62 paf 1964: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.41 paf 1965: if test -n "$ac_maketemp"; then
1966: eval ac_cv_prog_make_${ac_make}_set=yes
1967: else
1968: eval ac_cv_prog_make_${ac_make}_set=no
1969: fi
1.62 paf 1970: rm -f conftest.make
1.41 paf 1971: fi
1972: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.62 paf 1973: echo "$as_me:$LINENO: result: yes" >&5
1974: echo "${ECHO_T}yes" >&6
1.41 paf 1975: SET_MAKE=
1976: else
1.62 paf 1977: echo "$as_me:$LINENO: result: no" >&5
1978: echo "${ECHO_T}no" >&6
1.41 paf 1979: SET_MAKE="MAKE=${MAKE-make}"
1980: fi
1981:
1.62 paf 1982: if test -n "$ac_tool_prefix"; then
1983: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1984: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1985: echo "$as_me:$LINENO: checking for $ac_word" >&5
1986: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987: if test "${ac_cv_prog_RANLIB+set}" = set; then
1988: echo $ECHO_N "(cached) $ECHO_C" >&6
1.41 paf 1989: else
1990: if test -n "$RANLIB"; then
1991: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1992: else
1.62 paf 1993: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994: for as_dir in $PATH
1995: do
1996: IFS=$as_save_IFS
1997: test -z "$as_dir" && as_dir=.
1998: for ac_exec_ext in '' $ac_executable_extensions; do
1999: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2001: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002: break 2
2003: fi
2004: done
2005: done
2006:
1.41 paf 2007: fi
2008: fi
1.62 paf 2009: RANLIB=$ac_cv_prog_RANLIB
1.41 paf 2010: if test -n "$RANLIB"; then
1.62 paf 2011: echo "$as_me:$LINENO: result: $RANLIB" >&5
2012: echo "${ECHO_T}$RANLIB" >&6
2013: else
2014: echo "$as_me:$LINENO: result: no" >&5
2015: echo "${ECHO_T}no" >&6
2016: fi
2017:
2018: fi
2019: if test -z "$ac_cv_prog_RANLIB"; then
2020: ac_ct_RANLIB=$RANLIB
2021: # Extract the first word of "ranlib", so it can be a program name with args.
2022: set dummy ranlib; ac_word=$2
2023: echo "$as_me:$LINENO: checking for $ac_word" >&5
2024: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2025: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2026: echo $ECHO_N "(cached) $ECHO_C" >&6
2027: else
2028: if test -n "$ac_ct_RANLIB"; then
2029: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2030: else
2031: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032: for as_dir in $PATH
2033: do
2034: IFS=$as_save_IFS
2035: test -z "$as_dir" && as_dir=.
2036: for ac_exec_ext in '' $ac_executable_extensions; do
2037: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2038: ac_cv_prog_ac_ct_RANLIB="ranlib"
2039: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040: break 2
2041: fi
2042: done
2043: done
2044:
2045: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2046: fi
2047: fi
2048: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2049: if test -n "$ac_ct_RANLIB"; then
2050: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2051: echo "${ECHO_T}$ac_ct_RANLIB" >&6
2052: else
2053: echo "$as_me:$LINENO: result: no" >&5
2054: echo "${ECHO_T}no" >&6
2055: fi
2056:
2057: RANLIB=$ac_ct_RANLIB
1.41 paf 2058: else
1.62 paf 2059: RANLIB="$ac_cv_prog_RANLIB"
1.41 paf 2060: fi
2061:
1.62 paf 2062: for ac_prog in gawk mawk nawk awk
1.41 paf 2063: do
1.62 paf 2064: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 2065: set dummy $ac_prog; ac_word=$2
1.62 paf 2066: echo "$as_me:$LINENO: checking for $ac_word" >&5
2067: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2068: if test "${ac_cv_prog_AWK+set}" = set; then
2069: echo $ECHO_N "(cached) $ECHO_C" >&6
1.41 paf 2070: else
2071: if test -n "$AWK"; then
2072: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2073: else
1.62 paf 2074: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075: for as_dir in $PATH
2076: do
2077: IFS=$as_save_IFS
2078: test -z "$as_dir" && as_dir=.
2079: for ac_exec_ext in '' $ac_executable_extensions; do
2080: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2081: ac_cv_prog_AWK="$ac_prog"
2082: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083: break 2
2084: fi
2085: done
2086: done
2087:
1.41 paf 2088: fi
2089: fi
1.62 paf 2090: AWK=$ac_cv_prog_AWK
1.41 paf 2091: if test -n "$AWK"; then
1.62 paf 2092: echo "$as_me:$LINENO: result: $AWK" >&5
2093: echo "${ECHO_T}$AWK" >&6
1.41 paf 2094: else
1.62 paf 2095: echo "$as_me:$LINENO: result: no" >&5
2096: echo "${ECHO_T}no" >&6
1.41 paf 2097: fi
2098:
1.62 paf 2099: test -n "$AWK" && break
1.41 paf 2100: done
2101:
2102:
2103: for ac_prog in 'bison -y' byacc
2104: do
1.62 paf 2105: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 2106: set dummy $ac_prog; ac_word=$2
1.62 paf 2107: echo "$as_me:$LINENO: checking for $ac_word" >&5
2108: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2109: if test "${ac_cv_prog_YACC+set}" = set; then
2110: echo $ECHO_N "(cached) $ECHO_C" >&6
1.41 paf 2111: else
2112: if test -n "$YACC"; then
2113: ac_cv_prog_YACC="$YACC" # Let the user override the test.
2114: else
1.62 paf 2115: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116: for as_dir in $PATH
2117: do
2118: IFS=$as_save_IFS
2119: test -z "$as_dir" && as_dir=.
2120: for ac_exec_ext in '' $ac_executable_extensions; do
2121: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2122: ac_cv_prog_YACC="$ac_prog"
2123: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124: break 2
2125: fi
2126: done
2127: done
2128:
1.41 paf 2129: fi
2130: fi
1.62 paf 2131: YACC=$ac_cv_prog_YACC
1.41 paf 2132: if test -n "$YACC"; then
1.62 paf 2133: echo "$as_me:$LINENO: result: $YACC" >&5
2134: echo "${ECHO_T}$YACC" >&6
1.41 paf 2135: else
1.62 paf 2136: echo "$as_me:$LINENO: result: no" >&5
2137: echo "${ECHO_T}no" >&6
1.41 paf 2138: fi
2139:
1.62 paf 2140: test -n "$YACC" && break
1.41 paf 2141: done
2142: test -n "$YACC" || YACC="yacc"
2143:
2144: if test "$YACC" != "bison -y"; then
1.67 paf 2145: { echo "$as_me:$LINENO: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&5
1.62 paf 2146: echo "$as_me: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&2;}
1.41 paf 2147: else
1.67 paf 2148: echo "$as_me:$LINENO: checking bison version" >&5
1.62 paf 2149: echo $ECHO_N "checking bison version... $ECHO_C" >&6
1.67 paf 2150: oldIFS=$IFS; IFS=.
2151: set `bison -V | sed -e 's/^GNU Bison version //' -e 's/^bison (GNU Bison) //' -e 's/$/./'`
2152: IFS=$oldIFS
2153: if test "$1" = "1" -a "$2" -lt "25"; then
2154: { echo "$as_me:$LINENO: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&5
1.62 paf 2155: echo "$as_me: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&2;}
1.67 paf 2156: fi
2157: echo "$as_me:$LINENO: result: $1.$2 (ok)" >&5
1.62 paf 2158: echo "${ECHO_T}$1.$2 (ok)" >&6
2159: fi
2160:
1.66 paf 2161: ac_ext=cc
2162: ac_cpp='$CXXCPP $CPPFLAGS'
2163: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2164: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2165: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.62 paf 2166: if test -n "$ac_tool_prefix"; then
1.66 paf 2167: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2168: do
2169: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2170: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.62 paf 2171: echo "$as_me:$LINENO: checking for $ac_word" >&5
2172: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.66 paf 2173: if test "${ac_cv_prog_CXX+set}" = set; then
1.62 paf 2174: echo $ECHO_N "(cached) $ECHO_C" >&6
2175: else
1.66 paf 2176: if test -n "$CXX"; then
2177: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.62 paf 2178: else
2179: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180: for as_dir in $PATH
2181: do
2182: IFS=$as_save_IFS
2183: test -z "$as_dir" && as_dir=.
2184: for ac_exec_ext in '' $ac_executable_extensions; do
2185: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 2186: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.62 paf 2187: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188: break 2
2189: fi
2190: done
2191: done
2192:
2193: fi
2194: fi
1.66 paf 2195: CXX=$ac_cv_prog_CXX
2196: if test -n "$CXX"; then
2197: echo "$as_me:$LINENO: result: $CXX" >&5
2198: echo "${ECHO_T}$CXX" >&6
1.62 paf 2199: else
2200: echo "$as_me:$LINENO: result: no" >&5
2201: echo "${ECHO_T}no" >&6
1.41 paf 2202: fi
2203:
1.66 paf 2204: test -n "$CXX" && break
2205: done
1.62 paf 2206: fi
1.66 paf 2207: if test -z "$CXX"; then
2208: ac_ct_CXX=$CXX
2209: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2210: do
2211: # Extract the first word of "$ac_prog", so it can be a program name with args.
2212: set dummy $ac_prog; ac_word=$2
1.62 paf 2213: echo "$as_me:$LINENO: checking for $ac_word" >&5
2214: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.66 paf 2215: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1.62 paf 2216: echo $ECHO_N "(cached) $ECHO_C" >&6
2217: else
1.66 paf 2218: if test -n "$ac_ct_CXX"; then
2219: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1.62 paf 2220: else
2221: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222: for as_dir in $PATH
2223: do
2224: IFS=$as_save_IFS
2225: test -z "$as_dir" && as_dir=.
2226: for ac_exec_ext in '' $ac_executable_extensions; do
2227: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 2228: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.62 paf 2229: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230: break 2
2231: fi
2232: done
2233: done
2234:
2235: fi
2236: fi
1.66 paf 2237: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2238: if test -n "$ac_ct_CXX"; then
2239: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2240: echo "${ECHO_T}$ac_ct_CXX" >&6
1.62 paf 2241: else
2242: echo "$as_me:$LINENO: result: no" >&5
2243: echo "${ECHO_T}no" >&6
2244: fi
2245:
1.66 paf 2246: test -n "$ac_ct_CXX" && break
2247: done
2248: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2249:
2250: CXX=$ac_ct_CXX
1.62 paf 2251: fi
2252:
1.66 paf 2253:
2254: # Provide some information about the compiler.
2255: echo "$as_me:$LINENO:" \
2256: "checking for C++ compiler version" >&5
2257: ac_compiler=`set X $ac_compile; echo $2`
2258: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2259: (eval $ac_compiler --version </dev/null >&5) 2>&5
2260: ac_status=$?
2261: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262: (exit $ac_status); }
2263: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2264: (eval $ac_compiler -v </dev/null >&5) 2>&5
2265: ac_status=$?
2266: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267: (exit $ac_status); }
2268: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2269: (eval $ac_compiler -V </dev/null >&5) 2>&5
2270: ac_status=$?
2271: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272: (exit $ac_status); }
2273:
2274: cat >conftest.$ac_ext <<_ACEOF
2275: /* confdefs.h. */
2276: _ACEOF
2277: cat confdefs.h >>conftest.$ac_ext
2278: cat >>conftest.$ac_ext <<_ACEOF
2279: /* end confdefs.h. */
2280:
2281: int
2282: main ()
2283: {
2284:
2285: ;
2286: return 0;
2287: }
2288: _ACEOF
2289: ac_clean_files_save=$ac_clean_files
2290: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2291: # Try to create an executable without -o first, disregard a.out.
2292: # It will help us diagnose broken compilers, and finding out an intuition
2293: # of exeext.
1.86 paf 2294: echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2295: echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1.66 paf 2296: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2297: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2298: (eval $ac_link_default) 2>&5
2299: ac_status=$?
2300: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301: (exit $ac_status); }; then
2302: # Find the output, starting from the most likely. This scheme is
2303: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2304: # resort.
2305:
2306: # Be careful to initialize this variable, since it used to be cached.
2307: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2308: ac_cv_exeext=
2309: # b.out is created by i960 compilers.
2310: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1.62 paf 2311: do
1.66 paf 2312: test -f "$ac_file" || continue
2313: case $ac_file in
2314: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1.86 paf 2315: ;;
1.66 paf 2316: conftest.$ac_ext )
1.86 paf 2317: # This is the source file.
2318: ;;
1.66 paf 2319: [ab].out )
1.86 paf 2320: # We found the default executable, but exeext='' is most
2321: # certainly right.
2322: break;;
1.66 paf 2323: *.* )
1.86 paf 2324: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2325: # FIXME: I believe we export ac_cv_exeext for Libtool,
2326: # but it would be cool to find out if it's true. Does anybody
2327: # maintain Libtool? --akim.
2328: export ac_cv_exeext
2329: break;;
1.66 paf 2330: * )
1.86 paf 2331: break;;
1.66 paf 2332: esac
1.62 paf 2333: done
1.66 paf 2334: else
2335: echo "$as_me: failed program was:" >&5
2336: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 2337:
1.66 paf 2338: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2339: See \`config.log' for more details." >&5
2340: echo "$as_me: error: C++ compiler cannot create executables
2341: See \`config.log' for more details." >&2;}
2342: { (exit 77); exit 77; }; }
1.1 paf 2343: fi
1.66 paf 2344:
2345: ac_exeext=$ac_cv_exeext
2346: echo "$as_me:$LINENO: result: $ac_file" >&5
2347: echo "${ECHO_T}$ac_file" >&6
2348:
2349: # Check the compiler produces executables we can run. If not, either
2350: # the compiler is broken, or we cross compile.
2351: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2352: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2353: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2354: # If not cross compiling, check that we can run a simple program.
2355: if test "$cross_compiling" != yes; then
2356: if { ac_try='./$ac_file'
2357: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358: (eval $ac_try) 2>&5
2359: ac_status=$?
2360: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361: (exit $ac_status); }; }; then
2362: cross_compiling=no
2363: else
2364: if test "$cross_compiling" = maybe; then
2365: cross_compiling=yes
2366: else
2367: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2368: If you meant to cross compile, use \`--host'.
2369: See \`config.log' for more details." >&5
2370: echo "$as_me: error: cannot run C++ compiled programs.
2371: If you meant to cross compile, use \`--host'.
2372: See \`config.log' for more details." >&2;}
2373: { (exit 1); exit 1; }; }
2374: fi
2375: fi
1.1 paf 2376: fi
1.66 paf 2377: echo "$as_me:$LINENO: result: yes" >&5
2378: echo "${ECHO_T}yes" >&6
1.62 paf 2379:
1.66 paf 2380: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2381: ac_clean_files=$ac_clean_files_save
2382: # Check the compiler produces executables we can run. If not, either
1.62 paf 2383: # the compiler is broken, or we cross compile.
2384: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2385: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2386: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2387: echo "${ECHO_T}$cross_compiling" >&6
2388:
2389: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2390: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2391: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2392: (eval $ac_link) 2>&5
2393: ac_status=$?
2394: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395: (exit $ac_status); }; then
2396: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2397: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2398: # work properly (i.e., refer to `conftest.exe'), while it won't with
2399: # `rm'.
2400: for ac_file in conftest.exe conftest conftest.*; do
2401: test -f "$ac_file" || continue
2402: case $ac_file in
2403: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2404: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.86 paf 2405: export ac_cv_exeext
2406: break;;
1.62 paf 2407: * ) break;;
2408: esac
2409: done
2410: else
2411: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2412: See \`config.log' for more details." >&5
2413: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2414: See \`config.log' for more details." >&2;}
2415: { (exit 1); exit 1; }; }
2416: fi
2417:
2418: rm -f conftest$ac_cv_exeext
2419: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2420: echo "${ECHO_T}$ac_cv_exeext" >&6
2421:
2422: rm -f conftest.$ac_ext
2423: EXEEXT=$ac_cv_exeext
2424: ac_exeext=$EXEEXT
2425: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2426: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2427: if test "${ac_cv_objext+set}" = set; then
2428: echo $ECHO_N "(cached) $ECHO_C" >&6
2429: else
2430: cat >conftest.$ac_ext <<_ACEOF
2431: /* confdefs.h. */
2432: _ACEOF
2433: cat confdefs.h >>conftest.$ac_ext
2434: cat >>conftest.$ac_ext <<_ACEOF
2435: /* end confdefs.h. */
2436:
2437: int
2438: main ()
2439: {
2440:
2441: ;
2442: return 0;
2443: }
2444: _ACEOF
2445: rm -f conftest.o conftest.obj
2446: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447: (eval $ac_compile) 2>&5
2448: ac_status=$?
2449: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450: (exit $ac_status); }; then
2451: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2452: case $ac_file in
2453: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2454: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2455: break;;
2456: esac
2457: done
2458: else
2459: echo "$as_me: failed program was:" >&5
2460: sed 's/^/| /' conftest.$ac_ext >&5
2461:
2462: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2463: See \`config.log' for more details." >&5
2464: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2465: See \`config.log' for more details." >&2;}
2466: { (exit 1); exit 1; }; }
2467: fi
2468:
2469: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2470: fi
1.66 paf 2471: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2472: echo "${ECHO_T}$ac_cv_objext" >&6
2473: OBJEXT=$ac_cv_objext
2474: ac_objext=$OBJEXT
2475: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2476: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2477: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1.62 paf 2478: echo $ECHO_N "(cached) $ECHO_C" >&6
2479: else
1.66 paf 2480: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 2481: /* confdefs.h. */
2482: _ACEOF
2483: cat confdefs.h >>conftest.$ac_ext
2484: cat >>conftest.$ac_ext <<_ACEOF
2485: /* end confdefs.h. */
1.66 paf 2486:
1.62 paf 2487: int
2488: main ()
2489: {
1.66 paf 2490: #ifndef __GNUC__
2491: choke me
2492: #endif
2493:
1.62 paf 2494: ;
2495: return 0;
2496: }
2497: _ACEOF
1.66 paf 2498: rm -f conftest.$ac_objext
1.62 paf 2499: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 2500: (eval $ac_compile) 2>conftest.er1
1.62 paf 2501: ac_status=$?
1.86 paf 2502: grep -v '^ *+' conftest.er1 >conftest.err
2503: rm -f conftest.er1
2504: cat conftest.err >&5
1.62 paf 2505: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506: (exit $ac_status); } &&
1.86 paf 2507: { ac_try='test -z "$ac_cxx_werror_flag"
2508: || test ! -s conftest.err'
2509: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510: (eval $ac_try) 2>&5
2511: ac_status=$?
2512: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513: (exit $ac_status); }; } &&
2514: { ac_try='test -s conftest.$ac_objext'
1.62 paf 2515: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516: (eval $ac_try) 2>&5
2517: ac_status=$?
2518: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519: (exit $ac_status); }; }; then
1.66 paf 2520: ac_compiler_gnu=yes
1.62 paf 2521: else
2522: echo "$as_me: failed program was:" >&5
2523: sed 's/^/| /' conftest.$ac_ext >&5
1.1 paf 2524:
1.66 paf 2525: ac_compiler_gnu=no
1.1 paf 2526: fi
1.86 paf 2527: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 2528: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1 paf 2529:
2530: fi
1.66 paf 2531: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2532: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2533: GXX=`test $ac_compiler_gnu = yes && echo yes`
2534: ac_test_CXXFLAGS=${CXXFLAGS+set}
2535: ac_save_CXXFLAGS=$CXXFLAGS
2536: CXXFLAGS="-g"
2537: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2538: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2539: if test "${ac_cv_prog_cxx_g+set}" = set; then
2540: echo $ECHO_N "(cached) $ECHO_C" >&6
2541: else
2542: cat >conftest.$ac_ext <<_ACEOF
2543: /* confdefs.h. */
2544: _ACEOF
2545: cat confdefs.h >>conftest.$ac_ext
2546: cat >>conftest.$ac_ext <<_ACEOF
2547: /* end confdefs.h. */
1.1 paf 2548:
1.66 paf 2549: int
2550: main ()
2551: {
1.1 paf 2552:
1.66 paf 2553: ;
2554: return 0;
2555: }
1.62 paf 2556: _ACEOF
2557: rm -f conftest.$ac_objext
2558: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 2559: (eval $ac_compile) 2>conftest.er1
1.62 paf 2560: ac_status=$?
1.86 paf 2561: grep -v '^ *+' conftest.er1 >conftest.err
2562: rm -f conftest.er1
2563: cat conftest.err >&5
1.62 paf 2564: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565: (exit $ac_status); } &&
1.86 paf 2566: { ac_try='test -z "$ac_cxx_werror_flag"
2567: || test ! -s conftest.err'
2568: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569: (eval $ac_try) 2>&5
2570: ac_status=$?
2571: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572: (exit $ac_status); }; } &&
2573: { ac_try='test -s conftest.$ac_objext'
1.62 paf 2574: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575: (eval $ac_try) 2>&5
2576: ac_status=$?
2577: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578: (exit $ac_status); }; }; then
1.66 paf 2579: ac_cv_prog_cxx_g=yes
2580: else
2581: echo "$as_me: failed program was:" >&5
2582: sed 's/^/| /' conftest.$ac_ext >&5
2583:
2584: ac_cv_prog_cxx_g=no
2585: fi
1.86 paf 2586: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 2587: fi
2588: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2589: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2590: if test "$ac_test_CXXFLAGS" = set; then
2591: CXXFLAGS=$ac_save_CXXFLAGS
2592: elif test $ac_cv_prog_cxx_g = yes; then
2593: if test "$GXX" = yes; then
2594: CXXFLAGS="-g -O2"
2595: else
2596: CXXFLAGS="-g"
2597: fi
2598: else
2599: if test "$GXX" = yes; then
2600: CXXFLAGS="-O2"
2601: else
2602: CXXFLAGS=
2603: fi
2604: fi
2605: for ac_declaration in \
1.86 paf 2606: '' \
1.62 paf 2607: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2608: 'extern "C" void std::exit (int); using std::exit;' \
2609: 'extern "C" void exit (int) throw ();' \
2610: 'extern "C" void exit (int);' \
2611: 'void exit (int);'
1.1 paf 2612: do
1.62 paf 2613: cat >conftest.$ac_ext <<_ACEOF
2614: /* confdefs.h. */
2615: _ACEOF
2616: cat confdefs.h >>conftest.$ac_ext
2617: cat >>conftest.$ac_ext <<_ACEOF
2618: /* end confdefs.h. */
1.86 paf 2619: $ac_declaration
1.62 paf 2620: #include <stdlib.h>
2621: int
2622: main ()
2623: {
2624: exit (42);
2625: ;
2626: return 0;
2627: }
2628: _ACEOF
2629: rm -f conftest.$ac_objext
2630: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 2631: (eval $ac_compile) 2>conftest.er1
1.62 paf 2632: ac_status=$?
1.86 paf 2633: grep -v '^ *+' conftest.er1 >conftest.err
2634: rm -f conftest.er1
2635: cat conftest.err >&5
1.62 paf 2636: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637: (exit $ac_status); } &&
1.86 paf 2638: { ac_try='test -z "$ac_cxx_werror_flag"
2639: || test ! -s conftest.err'
2640: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641: (eval $ac_try) 2>&5
2642: ac_status=$?
2643: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644: (exit $ac_status); }; } &&
2645: { ac_try='test -s conftest.$ac_objext'
1.62 paf 2646: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647: (eval $ac_try) 2>&5
2648: ac_status=$?
2649: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650: (exit $ac_status); }; }; then
2651: :
1.1 paf 2652: else
1.62 paf 2653: echo "$as_me: failed program was:" >&5
2654: sed 's/^/| /' conftest.$ac_ext >&5
2655:
2656: continue
2657: fi
1.86 paf 2658: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 2659: cat >conftest.$ac_ext <<_ACEOF
2660: /* confdefs.h. */
2661: _ACEOF
2662: cat confdefs.h >>conftest.$ac_ext
2663: cat >>conftest.$ac_ext <<_ACEOF
2664: /* end confdefs.h. */
2665: $ac_declaration
2666: int
2667: main ()
2668: {
2669: exit (42);
2670: ;
2671: return 0;
2672: }
2673: _ACEOF
2674: rm -f conftest.$ac_objext
2675: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 2676: (eval $ac_compile) 2>conftest.er1
1.62 paf 2677: ac_status=$?
1.86 paf 2678: grep -v '^ *+' conftest.er1 >conftest.err
2679: rm -f conftest.er1
2680: cat conftest.err >&5
1.62 paf 2681: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682: (exit $ac_status); } &&
1.86 paf 2683: { ac_try='test -z "$ac_cxx_werror_flag"
2684: || test ! -s conftest.err'
2685: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686: (eval $ac_try) 2>&5
2687: ac_status=$?
2688: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689: (exit $ac_status); }; } &&
2690: { ac_try='test -s conftest.$ac_objext'
1.62 paf 2691: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692: (eval $ac_try) 2>&5
2693: ac_status=$?
2694: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695: (exit $ac_status); }; }; then
2696: break
1.1 paf 2697: else
1.62 paf 2698: echo "$as_me: failed program was:" >&5
2699: sed 's/^/| /' conftest.$ac_ext >&5
2700:
1.1 paf 2701: fi
1.86 paf 2702: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 2703: done
2704: rm -f conftest*
2705: if test -n "$ac_declaration"; then
2706: echo '#ifdef __cplusplus' >>confdefs.h
2707: echo $ac_declaration >>confdefs.h
2708: echo '#endif' >>confdefs.h
1.1 paf 2709: fi
1.62 paf 2710:
2711: ac_ext=c
2712: ac_cpp='$CPP $CPPFLAGS'
2713: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2714: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2715: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.86 paf 2716: DEPDIR="${am__leading_dot}deps"
1.62 paf 2717:
2718: ac_config_commands="$ac_config_commands depfiles"
2719:
2720:
2721: am_make=${MAKE-make}
2722: cat > confinc << 'END'
1.86 paf 2723: am__doit:
1.62 paf 2724: @echo done
1.86 paf 2725: .PHONY: am__doit
1.62 paf 2726: END
2727: # If we don't find an include directive, just comment out the code.
2728: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2729: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2730: am__include="#"
2731: am__quote=
2732: _am_result=none
2733: # First try GNU make style include.
2734: echo "include confinc" > confmf
2735: # We grep out `Entering directory' and `Leaving directory'
2736: # messages which can occur if `w' ends up in MAKEFLAGS.
2737: # In particular we don't look at `^make:' because GNU make might
2738: # be invoked under some other name (usually "gmake"), in which
2739: # case it prints its new name instead of `make'.
2740: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2741: am__include=include
2742: am__quote=
2743: _am_result=GNU
2744: fi
2745: # Now try BSD make style include.
2746: if test "$am__include" = "#"; then
2747: echo '.include "confinc"' > confmf
2748: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2749: am__include=.include
2750: am__quote="\""
2751: _am_result=BSD
2752: fi
2753: fi
2754:
2755:
2756: echo "$as_me:$LINENO: result: $_am_result" >&5
2757: echo "${ECHO_T}$_am_result" >&6
2758: rm -f confinc confmf
2759:
2760: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2761: if test "${enable_dependency_tracking+set}" = set; then
2762: enableval="$enable_dependency_tracking"
2763:
2764: fi;
2765: if test "x$enable_dependency_tracking" != xno; then
2766: am_depcomp="$ac_aux_dir/depcomp"
2767: AMDEPBACKSLASH='\'
1.1 paf 2768: fi
2769:
1.62 paf 2770:
2771: if test "x$enable_dependency_tracking" != xno; then
2772: AMDEP_TRUE=
2773: AMDEP_FALSE='#'
2774: else
2775: AMDEP_TRUE='#'
2776: AMDEP_FALSE=
2777: fi
1.1 paf 2778:
2779:
2780:
2781:
1.66 paf 2782: depcc="$CXX" am_compiler_list=
1.1 paf 2783:
1.62 paf 2784: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2785: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
1.66 paf 2786: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
1.62 paf 2787: echo $ECHO_N "(cached) $ECHO_C" >&6
2788: else
2789: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2790: # We make a subdir and do the tests there. Otherwise we can end up
2791: # making bogus files that we don't know about and never remove. For
2792: # instance it was reported that on HP-UX the gcc test will end up
2793: # making a dummy file named `D' -- because `-MD' means `put the output
2794: # in D'.
2795: mkdir conftest.dir
2796: # Copy depcomp to subdir because otherwise we won't find it if we're
2797: # using a relative directory.
2798: cp "$am_depcomp" conftest.dir
2799: cd conftest.dir
1.86 paf 2800: # We will build objects and dependencies in a subdirectory because
2801: # it helps to detect inapplicable dependency modes. For instance
2802: # both Tru64's cc and ICC support -MD to output dependencies as a
2803: # side effect of compilation, but ICC will put the dependencies in
2804: # the current directory while Tru64 will put them in the object
2805: # directory.
2806: mkdir sub
1.1 paf 2807:
1.66 paf 2808: am_cv_CXX_dependencies_compiler_type=none
1.62 paf 2809: if test "$am_compiler_list" = ""; then
2810: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.1 paf 2811: fi
1.62 paf 2812: for depmode in $am_compiler_list; do
1.86 paf 2813: # Setup a source with many dependencies, because some compilers
2814: # like to wrap large dependency lists on column 80 (with \), and
2815: # we should not choose a depcomp mode which is confused by this.
2816: #
1.62 paf 2817: # We need to recreate these files for each test, as the compiler may
2818: # overwrite some of them when testing with obscure command lines.
2819: # This happens at least with the AIX C compiler.
1.86 paf 2820: : > sub/conftest.c
2821: for i in 1 2 3 4 5 6; do
2822: echo '#include "conftst'$i'.h"' >> sub/conftest.c
2823: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2824: # Solaris 8's {/usr,}/bin/sh.
2825: touch sub/conftst$i.h
2826: done
2827: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 2828:
2829: case $depmode in
2830: nosideeffect)
2831: # after this tag, mechanisms are not by side-effect, so they'll
2832: # only be used when explicitly requested
2833: if test "x$enable_dependency_tracking" = xyes; then
2834: continue
2835: else
2836: break
2837: fi
2838: ;;
2839: none) break ;;
2840: esac
2841: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2842: # mode. It turns out that the SunPro C++ compiler does not properly
2843: # handle `-M -o', and we need to detect this.
2844: if depmode=$depmode \
1.86 paf 2845: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2846: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2847: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2848: >/dev/null 2>conftest.err &&
2849: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2850: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.62 paf 2851: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 2852: # icc doesn't choke on unknown options, it will just issue warnings
2853: # or remarks (even with -Werror). So we grep stderr for any message
2854: # that says an option was ignored or not supported.
2855: # When given -MP, icc 7.0 and 7.1 complain thusly:
2856: # icc: Command line warning: ignoring option '-M'; no argument required
2857: # The diagnosis changed in icc 8.0:
2858: # icc: Command line remark: option '-MP' not supported
2859: if (grep 'ignoring option' conftest.err ||
2860: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2861: am_cv_CXX_dependencies_compiler_type=$depmode
2862: break
2863: fi
1.66 paf 2864: fi
2865: done
2866:
2867: cd ..
2868: rm -rf conftest.dir
2869: else
2870: am_cv_CXX_dependencies_compiler_type=none
2871: fi
2872:
2873: fi
2874: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2875: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2876: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2877:
2878:
2879:
2880: if
2881: test "x$enable_dependency_tracking" != xno \
2882: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2883: am__fastdepCXX_TRUE=
2884: am__fastdepCXX_FALSE='#'
2885: else
2886: am__fastdepCXX_TRUE='#'
2887: am__fastdepCXX_FALSE=
2888: fi
2889:
2890:
2891: ac_ext=c
2892: ac_cpp='$CPP $CPPFLAGS'
2893: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2894: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2895: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2896: if test -n "$ac_tool_prefix"; then
2897: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2898: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2899: echo "$as_me:$LINENO: checking for $ac_word" >&5
2900: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2901: if test "${ac_cv_prog_CC+set}" = set; then
2902: echo $ECHO_N "(cached) $ECHO_C" >&6
2903: else
2904: if test -n "$CC"; then
2905: ac_cv_prog_CC="$CC" # Let the user override the test.
2906: else
2907: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908: for as_dir in $PATH
2909: do
2910: IFS=$as_save_IFS
2911: test -z "$as_dir" && as_dir=.
2912: for ac_exec_ext in '' $ac_executable_extensions; do
2913: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2914: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2915: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2916: break 2
2917: fi
2918: done
2919: done
2920:
2921: fi
2922: fi
2923: CC=$ac_cv_prog_CC
2924: if test -n "$CC"; then
2925: echo "$as_me:$LINENO: result: $CC" >&5
2926: echo "${ECHO_T}$CC" >&6
2927: else
2928: echo "$as_me:$LINENO: result: no" >&5
2929: echo "${ECHO_T}no" >&6
2930: fi
2931:
2932: fi
2933: if test -z "$ac_cv_prog_CC"; then
2934: ac_ct_CC=$CC
2935: # Extract the first word of "gcc", so it can be a program name with args.
2936: set dummy gcc; ac_word=$2
2937: echo "$as_me:$LINENO: checking for $ac_word" >&5
2938: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2939: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2940: echo $ECHO_N "(cached) $ECHO_C" >&6
2941: else
2942: if test -n "$ac_ct_CC"; then
2943: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2944: else
2945: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946: for as_dir in $PATH
2947: do
2948: IFS=$as_save_IFS
2949: test -z "$as_dir" && as_dir=.
2950: for ac_exec_ext in '' $ac_executable_extensions; do
2951: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2952: ac_cv_prog_ac_ct_CC="gcc"
2953: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2954: break 2
2955: fi
2956: done
2957: done
2958:
2959: fi
2960: fi
2961: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2962: if test -n "$ac_ct_CC"; then
2963: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2964: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 paf 2965: else
1.66 paf 2966: echo "$as_me:$LINENO: result: no" >&5
2967: echo "${ECHO_T}no" >&6
1.62 paf 2968: fi
2969:
1.66 paf 2970: CC=$ac_ct_CC
2971: else
2972: CC="$ac_cv_prog_CC"
1.1 paf 2973: fi
1.62 paf 2974:
1.66 paf 2975: if test -z "$CC"; then
2976: if test -n "$ac_tool_prefix"; then
2977: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2978: set dummy ${ac_tool_prefix}cc; ac_word=$2
2979: echo "$as_me:$LINENO: checking for $ac_word" >&5
2980: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2981: if test "${ac_cv_prog_CC+set}" = set; then
2982: echo $ECHO_N "(cached) $ECHO_C" >&6
2983: else
2984: if test -n "$CC"; then
2985: ac_cv_prog_CC="$CC" # Let the user override the test.
2986: else
2987: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988: for as_dir in $PATH
2989: do
2990: IFS=$as_save_IFS
2991: test -z "$as_dir" && as_dir=.
2992: for ac_exec_ext in '' $ac_executable_extensions; do
2993: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994: ac_cv_prog_CC="${ac_tool_prefix}cc"
2995: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2996: break 2
2997: fi
2998: done
2999: done
1.62 paf 3000:
1.66 paf 3001: fi
3002: fi
3003: CC=$ac_cv_prog_CC
3004: if test -n "$CC"; then
3005: echo "$as_me:$LINENO: result: $CC" >&5
3006: echo "${ECHO_T}$CC" >&6
1.62 paf 3007: else
1.66 paf 3008: echo "$as_me:$LINENO: result: no" >&5
3009: echo "${ECHO_T}no" >&6
1.1 paf 3010: fi
3011:
1.66 paf 3012: fi
3013: if test -z "$ac_cv_prog_CC"; then
3014: ac_ct_CC=$CC
3015: # Extract the first word of "cc", so it can be a program name with args.
3016: set dummy cc; ac_word=$2
3017: echo "$as_me:$LINENO: checking for $ac_word" >&5
3018: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3019: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3020: echo $ECHO_N "(cached) $ECHO_C" >&6
3021: else
3022: if test -n "$ac_ct_CC"; then
3023: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3024: else
3025: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026: for as_dir in $PATH
3027: do
3028: IFS=$as_save_IFS
3029: test -z "$as_dir" && as_dir=.
3030: for ac_exec_ext in '' $ac_executable_extensions; do
3031: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3032: ac_cv_prog_ac_ct_CC="cc"
3033: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3034: break 2
3035: fi
3036: done
3037: done
1.62 paf 3038:
1.66 paf 3039: fi
3040: fi
3041: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3042: if test -n "$ac_ct_CC"; then
3043: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3044: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 paf 3045: else
1.66 paf 3046: echo "$as_me:$LINENO: result: no" >&5
3047: echo "${ECHO_T}no" >&6
3048: fi
1.62 paf 3049:
1.66 paf 3050: CC=$ac_ct_CC
1.1 paf 3051: else
1.66 paf 3052: CC="$ac_cv_prog_CC"
3053: fi
1.62 paf 3054:
1.1 paf 3055: fi
1.66 paf 3056: if test -z "$CC"; then
3057: # Extract the first word of "cc", so it can be a program name with args.
3058: set dummy cc; ac_word=$2
3059: echo "$as_me:$LINENO: checking for $ac_word" >&5
3060: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3061: if test "${ac_cv_prog_CC+set}" = set; then
3062: echo $ECHO_N "(cached) $ECHO_C" >&6
3063: else
3064: if test -n "$CC"; then
3065: ac_cv_prog_CC="$CC" # Let the user override the test.
3066: else
3067: ac_prog_rejected=no
3068: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069: for as_dir in $PATH
3070: do
3071: IFS=$as_save_IFS
3072: test -z "$as_dir" && as_dir=.
3073: for ac_exec_ext in '' $ac_executable_extensions; do
3074: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3075: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3076: ac_prog_rejected=yes
3077: continue
3078: fi
3079: ac_cv_prog_CC="cc"
3080: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081: break 2
3082: fi
3083: done
1.62 paf 3084: done
3085:
1.66 paf 3086: if test $ac_prog_rejected = yes; then
3087: # We found a bogon in the path, so make sure we never use it.
3088: set dummy $ac_cv_prog_CC
3089: shift
3090: if test $# != 0; then
3091: # We chose a different compiler from the bogus one.
3092: # However, it has the same basename, so the bogon will be chosen
3093: # first if we set CC to just the basename; use the full file name.
3094: shift
3095: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3096: fi
3097: fi
3098: fi
3099: fi
3100: CC=$ac_cv_prog_CC
3101: if test -n "$CC"; then
3102: echo "$as_me:$LINENO: result: $CC" >&5
3103: echo "${ECHO_T}$CC" >&6
3104: else
3105: echo "$as_me:$LINENO: result: no" >&5
3106: echo "${ECHO_T}no" >&6
1.1 paf 3107: fi
3108:
1.66 paf 3109: fi
3110: if test -z "$CC"; then
3111: if test -n "$ac_tool_prefix"; then
3112: for ac_prog in cl
1.62 paf 3113: do
3114: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3115: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3116: echo "$as_me:$LINENO: checking for $ac_word" >&5
3117: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.66 paf 3118: if test "${ac_cv_prog_CC+set}" = set; then
1.62 paf 3119: echo $ECHO_N "(cached) $ECHO_C" >&6
3120: else
1.66 paf 3121: if test -n "$CC"; then
3122: ac_cv_prog_CC="$CC" # Let the user override the test.
1.62 paf 3123: else
3124: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125: for as_dir in $PATH
3126: do
3127: IFS=$as_save_IFS
3128: test -z "$as_dir" && as_dir=.
3129: for ac_exec_ext in '' $ac_executable_extensions; do
3130: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3131: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.62 paf 3132: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3133: break 2
3134: fi
3135: done
3136: done
1.1 paf 3137:
1.62 paf 3138: fi
3139: fi
1.66 paf 3140: CC=$ac_cv_prog_CC
3141: if test -n "$CC"; then
3142: echo "$as_me:$LINENO: result: $CC" >&5
3143: echo "${ECHO_T}$CC" >&6
1.1 paf 3144: else
1.62 paf 3145: echo "$as_me:$LINENO: result: no" >&5
3146: echo "${ECHO_T}no" >&6
1.1 paf 3147: fi
3148:
1.66 paf 3149: test -n "$CC" && break
1.62 paf 3150: done
3151: fi
1.66 paf 3152: if test -z "$CC"; then
3153: ac_ct_CC=$CC
3154: for ac_prog in cl
1.62 paf 3155: do
3156: # Extract the first word of "$ac_prog", so it can be a program name with args.
3157: set dummy $ac_prog; ac_word=$2
3158: echo "$as_me:$LINENO: checking for $ac_word" >&5
3159: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.66 paf 3160: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.62 paf 3161: echo $ECHO_N "(cached) $ECHO_C" >&6
3162: else
1.66 paf 3163: if test -n "$ac_ct_CC"; then
3164: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 paf 3165: else
1.62 paf 3166: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167: for as_dir in $PATH
3168: do
3169: IFS=$as_save_IFS
3170: test -z "$as_dir" && as_dir=.
3171: for ac_exec_ext in '' $ac_executable_extensions; do
3172: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3173: ac_cv_prog_ac_ct_CC="$ac_prog"
1.62 paf 3174: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3175: break 2
3176: fi
3177: done
3178: done
3179:
3180: fi
3181: fi
1.66 paf 3182: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3183: if test -n "$ac_ct_CC"; then
3184: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3185: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 paf 3186: else
1.62 paf 3187: echo "$as_me:$LINENO: result: no" >&5
3188: echo "${ECHO_T}no" >&6
1.1 paf 3189: fi
3190:
1.66 paf 3191: test -n "$ac_ct_CC" && break
3192: done
3193:
3194: CC=$ac_ct_CC
3195: fi
3196:
3197: fi
1.62 paf 3198:
1.1 paf 3199:
1.66 paf 3200: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3201: See \`config.log' for more details." >&5
3202: echo "$as_me: error: no acceptable C compiler found in \$PATH
3203: See \`config.log' for more details." >&2;}
3204: { (exit 1); exit 1; }; }
1.62 paf 3205:
3206: # Provide some information about the compiler.
3207: echo "$as_me:$LINENO:" \
1.66 paf 3208: "checking for C compiler version" >&5
1.62 paf 3209: ac_compiler=`set X $ac_compile; echo $2`
3210: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3211: (eval $ac_compiler --version </dev/null >&5) 2>&5
3212: ac_status=$?
3213: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214: (exit $ac_status); }
3215: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3216: (eval $ac_compiler -v </dev/null >&5) 2>&5
3217: ac_status=$?
3218: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219: (exit $ac_status); }
3220: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3221: (eval $ac_compiler -V </dev/null >&5) 2>&5
3222: ac_status=$?
3223: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224: (exit $ac_status); }
3225:
1.66 paf 3226: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3227: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3228: if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.62 paf 3229: echo $ECHO_N "(cached) $ECHO_C" >&6
3230: else
3231: cat >conftest.$ac_ext <<_ACEOF
3232: /* confdefs.h. */
3233: _ACEOF
3234: cat confdefs.h >>conftest.$ac_ext
3235: cat >>conftest.$ac_ext <<_ACEOF
3236: /* end confdefs.h. */
3237:
3238: int
3239: main ()
3240: {
3241: #ifndef __GNUC__
3242: choke me
3243: #endif
3244:
3245: ;
3246: return 0;
3247: }
3248: _ACEOF
3249: rm -f conftest.$ac_objext
3250: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3251: (eval $ac_compile) 2>conftest.er1
1.62 paf 3252: ac_status=$?
1.86 paf 3253: grep -v '^ *+' conftest.er1 >conftest.err
3254: rm -f conftest.er1
3255: cat conftest.err >&5
1.62 paf 3256: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257: (exit $ac_status); } &&
1.86 paf 3258: { ac_try='test -z "$ac_c_werror_flag"
3259: || test ! -s conftest.err'
3260: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261: (eval $ac_try) 2>&5
3262: ac_status=$?
3263: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264: (exit $ac_status); }; } &&
3265: { ac_try='test -s conftest.$ac_objext'
1.62 paf 3266: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267: (eval $ac_try) 2>&5
3268: ac_status=$?
3269: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270: (exit $ac_status); }; }; then
3271: ac_compiler_gnu=yes
3272: else
3273: echo "$as_me: failed program was:" >&5
3274: sed 's/^/| /' conftest.$ac_ext >&5
3275:
3276: ac_compiler_gnu=no
3277: fi
1.86 paf 3278: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 3279: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.62 paf 3280:
3281: fi
1.66 paf 3282: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3283: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3284: GCC=`test $ac_compiler_gnu = yes && echo yes`
3285: ac_test_CFLAGS=${CFLAGS+set}
3286: ac_save_CFLAGS=$CFLAGS
3287: CFLAGS="-g"
3288: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3289: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3290: if test "${ac_cv_prog_cc_g+set}" = set; then
1.62 paf 3291: echo $ECHO_N "(cached) $ECHO_C" >&6
3292: else
3293: cat >conftest.$ac_ext <<_ACEOF
3294: /* confdefs.h. */
3295: _ACEOF
3296: cat confdefs.h >>conftest.$ac_ext
3297: cat >>conftest.$ac_ext <<_ACEOF
3298: /* end confdefs.h. */
3299:
3300: int
3301: main ()
3302: {
3303:
3304: ;
3305: return 0;
3306: }
3307: _ACEOF
3308: rm -f conftest.$ac_objext
3309: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3310: (eval $ac_compile) 2>conftest.er1
1.62 paf 3311: ac_status=$?
1.86 paf 3312: grep -v '^ *+' conftest.er1 >conftest.err
3313: rm -f conftest.er1
3314: cat conftest.err >&5
1.62 paf 3315: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316: (exit $ac_status); } &&
1.86 paf 3317: { ac_try='test -z "$ac_c_werror_flag"
3318: || test ! -s conftest.err'
3319: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320: (eval $ac_try) 2>&5
3321: ac_status=$?
3322: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323: (exit $ac_status); }; } &&
3324: { ac_try='test -s conftest.$ac_objext'
1.62 paf 3325: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326: (eval $ac_try) 2>&5
3327: ac_status=$?
3328: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329: (exit $ac_status); }; }; then
1.66 paf 3330: ac_cv_prog_cc_g=yes
1.62 paf 3331: else
3332: echo "$as_me: failed program was:" >&5
3333: sed 's/^/| /' conftest.$ac_ext >&5
3334:
1.66 paf 3335: ac_cv_prog_cc_g=no
1.62 paf 3336: fi
1.86 paf 3337: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 3338: fi
1.66 paf 3339: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3340: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3341: if test "$ac_test_CFLAGS" = set; then
3342: CFLAGS=$ac_save_CFLAGS
3343: elif test $ac_cv_prog_cc_g = yes; then
3344: if test "$GCC" = yes; then
3345: CFLAGS="-g -O2"
1.1 paf 3346: else
1.66 paf 3347: CFLAGS="-g"
1.1 paf 3348: fi
3349: else
1.66 paf 3350: if test "$GCC" = yes; then
3351: CFLAGS="-O2"
1.1 paf 3352: else
1.66 paf 3353: CFLAGS=
1.1 paf 3354: fi
3355: fi
1.66 paf 3356: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3357: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3358: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3359: echo $ECHO_N "(cached) $ECHO_C" >&6
3360: else
3361: ac_cv_prog_cc_stdc=no
3362: ac_save_CC=$CC
3363: cat >conftest.$ac_ext <<_ACEOF
3364: /* confdefs.h. */
3365: _ACEOF
3366: cat confdefs.h >>conftest.$ac_ext
3367: cat >>conftest.$ac_ext <<_ACEOF
3368: /* end confdefs.h. */
3369: #include <stdarg.h>
3370: #include <stdio.h>
3371: #include <sys/types.h>
3372: #include <sys/stat.h>
3373: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3374: struct buf { int x; };
3375: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3376: static char *e (p, i)
3377: char **p;
3378: int i;
3379: {
3380: return p[i];
3381: }
3382: static char *f (char * (*g) (char **, int), char **p, ...)
3383: {
3384: char *s;
3385: va_list v;
3386: va_start (v,p);
3387: s = g (p, va_arg (v,int));
3388: va_end (v);
3389: return s;
3390: }
1.86 paf 3391:
3392: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3393: function prototypes and stuff, but not '\xHH' hex character constants.
3394: These don't provoke an error unfortunately, instead are silently treated
3395: as 'x'. The following induces an error, until -std1 is added to get
3396: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3397: array size at least. It's necessary to write '\x00'==0 to get something
3398: that's true only with -std1. */
3399: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3400:
1.66 paf 3401: int test (int i, double x);
3402: struct s1 {int (*f) (int a);};
3403: struct s2 {int (*f) (double a);};
3404: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3405: int argc;
3406: char **argv;
3407: int
3408: main ()
3409: {
3410: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3411: ;
3412: return 0;
3413: }
3414: _ACEOF
3415: # Don't try gcc -ansi; that turns off useful extensions and
3416: # breaks some systems' header files.
3417: # AIX -qlanglvl=ansi
3418: # Ultrix and OSF/1 -std1
3419: # HP-UX 10.20 and later -Ae
3420: # HP-UX older versions -Aa -D_HPUX_SOURCE
3421: # SVR4 -Xc -D__EXTENSIONS__
3422: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3423: do
3424: CC="$ac_save_CC $ac_arg"
3425: rm -f conftest.$ac_objext
3426: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3427: (eval $ac_compile) 2>conftest.er1
1.66 paf 3428: ac_status=$?
1.86 paf 3429: grep -v '^ *+' conftest.er1 >conftest.err
3430: rm -f conftest.er1
3431: cat conftest.err >&5
1.66 paf 3432: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433: (exit $ac_status); } &&
1.86 paf 3434: { ac_try='test -z "$ac_c_werror_flag"
3435: || test ! -s conftest.err'
3436: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437: (eval $ac_try) 2>&5
3438: ac_status=$?
3439: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440: (exit $ac_status); }; } &&
3441: { ac_try='test -s conftest.$ac_objext'
1.66 paf 3442: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443: (eval $ac_try) 2>&5
3444: ac_status=$?
3445: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446: (exit $ac_status); }; }; then
3447: ac_cv_prog_cc_stdc=$ac_arg
3448: break
3449: else
3450: echo "$as_me: failed program was:" >&5
3451: sed 's/^/| /' conftest.$ac_ext >&5
3452:
3453: fi
1.86 paf 3454: rm -f conftest.err conftest.$ac_objext
1.66 paf 3455: done
3456: rm -f conftest.$ac_ext conftest.$ac_objext
3457: CC=$ac_save_CC
3458:
3459: fi
3460:
3461: case "x$ac_cv_prog_cc_stdc" in
3462: x|xno)
3463: echo "$as_me:$LINENO: result: none needed" >&5
3464: echo "${ECHO_T}none needed" >&6 ;;
3465: *)
3466: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3467: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3468: CC="$CC $ac_cv_prog_cc_stdc" ;;
3469: esac
3470:
3471: # Some people use a C++ compiler to compile C. Since we use `exit',
3472: # in C++ we need to declare it. In case someone uses the same compiler
3473: # for both compiling C and C++ we need to have the C++ compiler decide
3474: # the declaration of exit, since it's the most demanding environment.
3475: cat >conftest.$ac_ext <<_ACEOF
3476: #ifndef __cplusplus
3477: choke me
3478: #endif
3479: _ACEOF
3480: rm -f conftest.$ac_objext
3481: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3482: (eval $ac_compile) 2>conftest.er1
1.66 paf 3483: ac_status=$?
1.86 paf 3484: grep -v '^ *+' conftest.er1 >conftest.err
3485: rm -f conftest.er1
3486: cat conftest.err >&5
1.66 paf 3487: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488: (exit $ac_status); } &&
1.86 paf 3489: { ac_try='test -z "$ac_c_werror_flag"
3490: || test ! -s conftest.err'
3491: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492: (eval $ac_try) 2>&5
3493: ac_status=$?
3494: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495: (exit $ac_status); }; } &&
3496: { ac_try='test -s conftest.$ac_objext'
1.66 paf 3497: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498: (eval $ac_try) 2>&5
3499: ac_status=$?
3500: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501: (exit $ac_status); }; }; then
3502: for ac_declaration in \
1.86 paf 3503: '' \
1.62 paf 3504: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3505: 'extern "C" void std::exit (int); using std::exit;' \
3506: 'extern "C" void exit (int) throw ();' \
3507: 'extern "C" void exit (int);' \
3508: 'void exit (int);'
3509: do
3510: cat >conftest.$ac_ext <<_ACEOF
3511: /* confdefs.h. */
3512: _ACEOF
3513: cat confdefs.h >>conftest.$ac_ext
3514: cat >>conftest.$ac_ext <<_ACEOF
3515: /* end confdefs.h. */
1.86 paf 3516: $ac_declaration
1.62 paf 3517: #include <stdlib.h>
3518: int
3519: main ()
3520: {
3521: exit (42);
3522: ;
3523: return 0;
3524: }
3525: _ACEOF
3526: rm -f conftest.$ac_objext
3527: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3528: (eval $ac_compile) 2>conftest.er1
1.62 paf 3529: ac_status=$?
1.86 paf 3530: grep -v '^ *+' conftest.er1 >conftest.err
3531: rm -f conftest.er1
3532: cat conftest.err >&5
1.62 paf 3533: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534: (exit $ac_status); } &&
1.86 paf 3535: { ac_try='test -z "$ac_c_werror_flag"
3536: || test ! -s conftest.err'
3537: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538: (eval $ac_try) 2>&5
3539: ac_status=$?
3540: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541: (exit $ac_status); }; } &&
3542: { ac_try='test -s conftest.$ac_objext'
1.62 paf 3543: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544: (eval $ac_try) 2>&5
3545: ac_status=$?
3546: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547: (exit $ac_status); }; }; then
3548: :
3549: else
3550: echo "$as_me: failed program was:" >&5
3551: sed 's/^/| /' conftest.$ac_ext >&5
3552:
3553: continue
3554: fi
1.86 paf 3555: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 3556: cat >conftest.$ac_ext <<_ACEOF
3557: /* confdefs.h. */
3558: _ACEOF
3559: cat confdefs.h >>conftest.$ac_ext
3560: cat >>conftest.$ac_ext <<_ACEOF
3561: /* end confdefs.h. */
3562: $ac_declaration
3563: int
3564: main ()
3565: {
3566: exit (42);
3567: ;
3568: return 0;
3569: }
3570: _ACEOF
3571: rm -f conftest.$ac_objext
3572: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3573: (eval $ac_compile) 2>conftest.er1
1.62 paf 3574: ac_status=$?
1.86 paf 3575: grep -v '^ *+' conftest.er1 >conftest.err
3576: rm -f conftest.er1
3577: cat conftest.err >&5
1.62 paf 3578: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579: (exit $ac_status); } &&
1.86 paf 3580: { ac_try='test -z "$ac_c_werror_flag"
3581: || test ! -s conftest.err'
3582: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583: (eval $ac_try) 2>&5
3584: ac_status=$?
3585: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586: (exit $ac_status); }; } &&
3587: { ac_try='test -s conftest.$ac_objext'
1.62 paf 3588: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589: (eval $ac_try) 2>&5
3590: ac_status=$?
3591: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592: (exit $ac_status); }; }; then
3593: break
3594: else
3595: echo "$as_me: failed program was:" >&5
3596: sed 's/^/| /' conftest.$ac_ext >&5
3597:
3598: fi
1.86 paf 3599: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 3600: done
3601: rm -f conftest*
3602: if test -n "$ac_declaration"; then
3603: echo '#ifdef __cplusplus' >>confdefs.h
3604: echo $ac_declaration >>confdefs.h
3605: echo '#endif' >>confdefs.h
3606: fi
3607:
1.66 paf 3608: else
3609: echo "$as_me: failed program was:" >&5
3610: sed 's/^/| /' conftest.$ac_ext >&5
3611:
3612: fi
1.86 paf 3613: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 3614: ac_ext=c
3615: ac_cpp='$CPP $CPPFLAGS'
3616: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3619:
1.66 paf 3620: depcc="$CC" am_compiler_list=
1.62 paf 3621:
3622: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3623: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
1.66 paf 3624: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1.62 paf 3625: echo $ECHO_N "(cached) $ECHO_C" >&6
3626: else
3627: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3628: # We make a subdir and do the tests there. Otherwise we can end up
3629: # making bogus files that we don't know about and never remove. For
3630: # instance it was reported that on HP-UX the gcc test will end up
3631: # making a dummy file named `D' -- because `-MD' means `put the output
3632: # in D'.
3633: mkdir conftest.dir
3634: # Copy depcomp to subdir because otherwise we won't find it if we're
3635: # using a relative directory.
3636: cp "$am_depcomp" conftest.dir
3637: cd conftest.dir
1.86 paf 3638: # We will build objects and dependencies in a subdirectory because
3639: # it helps to detect inapplicable dependency modes. For instance
3640: # both Tru64's cc and ICC support -MD to output dependencies as a
3641: # side effect of compilation, but ICC will put the dependencies in
3642: # the current directory while Tru64 will put them in the object
3643: # directory.
3644: mkdir sub
1.62 paf 3645:
1.66 paf 3646: am_cv_CC_dependencies_compiler_type=none
1.62 paf 3647: if test "$am_compiler_list" = ""; then
3648: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3649: fi
3650: for depmode in $am_compiler_list; do
1.86 paf 3651: # Setup a source with many dependencies, because some compilers
3652: # like to wrap large dependency lists on column 80 (with \), and
3653: # we should not choose a depcomp mode which is confused by this.
3654: #
1.62 paf 3655: # We need to recreate these files for each test, as the compiler may
3656: # overwrite some of them when testing with obscure command lines.
3657: # This happens at least with the AIX C compiler.
1.86 paf 3658: : > sub/conftest.c
3659: for i in 1 2 3 4 5 6; do
3660: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3661: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3662: # Solaris 8's {/usr,}/bin/sh.
3663: touch sub/conftst$i.h
3664: done
3665: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 3666:
3667: case $depmode in
3668: nosideeffect)
3669: # after this tag, mechanisms are not by side-effect, so they'll
3670: # only be used when explicitly requested
3671: if test "x$enable_dependency_tracking" = xyes; then
3672: continue
3673: else
3674: break
3675: fi
3676: ;;
3677: none) break ;;
3678: esac
3679: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3680: # mode. It turns out that the SunPro C++ compiler does not properly
3681: # handle `-M -o', and we need to detect this.
1.66 paf 3682: if depmode=$depmode \
1.86 paf 3683: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3684: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3685: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3686: >/dev/null 2>conftest.err &&
3687: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3688: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.66 paf 3689: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 3690: # icc doesn't choke on unknown options, it will just issue warnings
3691: # or remarks (even with -Werror). So we grep stderr for any message
3692: # that says an option was ignored or not supported.
3693: # When given -MP, icc 7.0 and 7.1 complain thusly:
3694: # icc: Command line warning: ignoring option '-M'; no argument required
3695: # The diagnosis changed in icc 8.0:
3696: # icc: Command line remark: option '-MP' not supported
3697: if (grep 'ignoring option' conftest.err ||
3698: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3699: am_cv_CC_dependencies_compiler_type=$depmode
3700: break
3701: fi
1.66 paf 3702: fi
3703: done
3704:
3705: cd ..
3706: rm -rf conftest.dir
3707: else
3708: am_cv_CC_dependencies_compiler_type=none
3709: fi
3710:
3711: fi
3712: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3713: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3714: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3715:
3716:
3717:
3718: if
3719: test "x$enable_dependency_tracking" != xno \
3720: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3721: am__fastdepCC_TRUE=
3722: am__fastdepCC_FALSE='#'
3723: else
3724: am__fastdepCC_TRUE='#'
3725: am__fastdepCC_FALSE=
3726: fi
3727:
3728:
3729: ac_ext=c
3730: ac_cpp='$CPP $CPPFLAGS'
3731: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734:
1.67 paf 3735:
1.66 paf 3736: echo "$as_me:$LINENO: checking for inline" >&5
3737: echo $ECHO_N "checking for inline... $ECHO_C" >&6
3738: if test "${ac_cv_c_inline+set}" = set; then
3739: echo $ECHO_N "(cached) $ECHO_C" >&6
3740: else
3741: ac_cv_c_inline=no
3742: for ac_kw in inline __inline__ __inline; do
3743: cat >conftest.$ac_ext <<_ACEOF
3744: /* confdefs.h. */
3745: _ACEOF
3746: cat confdefs.h >>conftest.$ac_ext
3747: cat >>conftest.$ac_ext <<_ACEOF
3748: /* end confdefs.h. */
3749: #ifndef __cplusplus
3750: typedef int foo_t;
3751: static $ac_kw foo_t static_foo () {return 0; }
3752: $ac_kw foo_t foo () {return 0; }
3753: #endif
1.62 paf 3754:
1.66 paf 3755: _ACEOF
3756: rm -f conftest.$ac_objext
3757: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3758: (eval $ac_compile) 2>conftest.er1
1.66 paf 3759: ac_status=$?
1.86 paf 3760: grep -v '^ *+' conftest.er1 >conftest.err
3761: rm -f conftest.er1
3762: cat conftest.err >&5
1.66 paf 3763: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764: (exit $ac_status); } &&
1.86 paf 3765: { ac_try='test -z "$ac_c_werror_flag"
3766: || test ! -s conftest.err'
3767: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768: (eval $ac_try) 2>&5
3769: ac_status=$?
3770: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771: (exit $ac_status); }; } &&
3772: { ac_try='test -s conftest.$ac_objext'
1.66 paf 3773: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774: (eval $ac_try) 2>&5
3775: ac_status=$?
3776: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777: (exit $ac_status); }; }; then
3778: ac_cv_c_inline=$ac_kw; break
1.62 paf 3779: else
1.66 paf 3780: echo "$as_me: failed program was:" >&5
3781: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 3782:
3783: fi
1.86 paf 3784: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 3785: done
1.62 paf 3786:
3787: fi
1.66 paf 3788: echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3789: echo "${ECHO_T}$ac_cv_c_inline" >&6
1.86 paf 3790:
3791:
1.66 paf 3792: case $ac_cv_c_inline in
3793: inline | yes) ;;
1.86 paf 3794: *)
3795: case $ac_cv_c_inline in
3796: no) ac_val=;;
3797: *) ac_val=$ac_cv_c_inline;;
3798: esac
3799: cat >>confdefs.h <<_ACEOF
3800: #ifndef __cplusplus
3801: #define inline $ac_val
3802: #endif
1.66 paf 3803: _ACEOF
1.86 paf 3804: ;;
1.66 paf 3805: esac
1.1 paf 3806:
1.71 paf 3807:
3808:
3809:
3810: # Check whether --with-build-warnings or --without-build-warnings was given.
3811: if test "${with_build_warnings+set}" = set; then
3812: withval="$with_build_warnings"
3813: { echo "$as_me:$LINENO: WARNING: enabling compiler warnings" >&5
3814: echo "$as_me: WARNING: enabling compiler warnings" >&2;}
3815: CXXFLAGS="$CXXFLAGS -W -Wall -Wstrict-prototypes -Wmissing-prototypes"
3816:
3817: fi;
1.1 paf 3818:
3819:
1.67 paf 3820:
3821: # Check whether --with-assertions or --without-assertions was given.
3822: if test "${with_assertions+set}" = set; then
3823: withval="$with_assertions"
3824: { echo "$as_me:$LINENO: WARNING: enabling assertions" >&5
3825: echo "$as_me: WARNING: enabling assertions" >&2;}
3826:
3827: else
3828:
3829: cat >>confdefs.h <<\_ACEOF
3830: #define NDEBUG
3831: _ACEOF
3832:
3833:
3834: fi;
3835:
1.94 misha 3836:
1.60 paf 3837: # Check whether --enable-safe-mode or --disable-safe-mode was given.
3838: if test "${enable_safe_mode+set}" = set; then
3839: enableval="$enable_safe_mode"
1.62 paf 3840:
1.67 paf 3841: SAFE_MODE=$enableval
1.60 paf 3842:
1.1 paf 3843:
1.62 paf 3844: fi;
1.60 paf 3845: if test "$SAFE_MODE" = "no"; then
1.62 paf 3846: { echo "$as_me:$LINENO: WARNING: enabling reading of files belonging to group+user other then effective" >&5
3847: echo "$as_me: WARNING: enabling reading of files belonging to group+user other then effective" >&2;}
1.60 paf 3848: else
1.62 paf 3849:
3850: cat >>confdefs.h <<\_ACEOF
3851: #define PA_SAFE_MODE
3852: _ACEOF
1.1 paf 3853:
3854: fi
3855:
1.94 misha 3856:
1.13 paf 3857: # Check whether --enable-execs or --disable-execs was given.
3858: if test "${enable_execs+set}" = set; then
3859: enableval="$enable_execs"
1.62 paf 3860:
1.13 paf 3861: if test "$enableval" = "no"; then
1.62 paf 3862: { echo "$as_me:$LINENO: WARNING: disabling file execs" >&5
3863: echo "$as_me: WARNING: disabling file execs" >&2;}
3864:
3865: cat >>confdefs.h <<\_ACEOF
3866: #define NO_PA_EXECS
3867: _ACEOF
1.13 paf 3868:
3869: fi
3870:
3871:
1.62 paf 3872: fi;
1.13 paf 3873:
1.60 paf 3874:
1.94 misha 3875: # Check whether --enable-stringstream or --disable-stringstream was given.
3876: if test "${enable_stringstream+set}" = set; then
3877: enableval="$enable_stringstream"
3878:
3879: if test "$enableval" = "no"; then
3880: { echo "$as_me:$LINENO: WARNING: disabling stringstream usage" >&5
3881: echo "$as_me: WARNING: disabling stringstream usage" >&2;}
3882:
3883: cat >>confdefs.h <<\_ACEOF
3884: #define NO_STRINGSTREAM
3885: _ACEOF
3886:
3887: fi
3888:
3889:
3890: fi;
3891:
3892:
1.18 paf 3893: srccharsetsdir=$srcdir/etc/parser3.charsets
1.17 paf 3894: CHARSETS_REQUESTED="windows-1251"
1.62 paf 3895:
1.17 paf 3896: # Check whether --with-charsets or --without-charsets was given.
3897: if test "${with_charsets+set}" = set; then
3898: withval="$with_charsets"
3899: CHARSETS_REQUESTED=`echo $withval | sed -e 's/,/ /g'`
1.62 paf 3900: fi;
1.17 paf 3901:
1.18 paf 3902: # Checking whether all requested charsets have corresponding .cfg files
3903: for c in $CHARSETS_REQUESTED; do
3904: if test \! -f $srccharsetsdir/$c.cfg; then
1.62 paf 3905: { { echo "$as_me:$LINENO: error: bad charset requested \"$c\" - file $srccharsetsdir/$c.cfg not found" >&5
3906: echo "$as_me: error: bad charset requested \"$c\" - file $srccharsetsdir/$c.cfg not found" >&2;}
3907: { (exit 1); exit 1; }; }
1.18 paf 3908: fi
3909: done
1.17 paf 3910:
1.18 paf 3911: # Switching on commentcharset_XXX='#'
1.17 paf 3912:
3913:
3914: commentcharset_windows1251='#'
1.18 paf 3915: for c in $CHARSETS_REQUESTED; do
1.17 paf 3916: if test "windows-1251" = "$c"; then
1.62 paf 3917: { echo "$as_me:$LINENO: WARNING: enabling charset windows-1251" >&5
3918: echo "$as_me: WARNING: enabling charset windows-1251" >&2;}
1.18 paf 3919: commentcharset_windows1251=
1.17 paf 3920: fi
3921: done
1.62 paf 3922:
1.17 paf 3923:
3924:
3925: commentcharset_windows1250='#'
1.18 paf 3926: for c in $CHARSETS_REQUESTED; do
1.17 paf 3927: if test "windows-1250" = "$c"; then
1.62 paf 3928: { echo "$as_me:$LINENO: WARNING: enabling charset windows-1250" >&5
3929: echo "$as_me: WARNING: enabling charset windows-1250" >&2;}
1.18 paf 3930: commentcharset_windows1250=
1.17 paf 3931: fi
3932: done
1.62 paf 3933:
1.17 paf 3934:
3935:
3936: commentcharset_windows1257='#'
1.18 paf 3937: for c in $CHARSETS_REQUESTED; do
1.17 paf 3938: if test "windows-1257" = "$c"; then
1.62 paf 3939: { echo "$as_me:$LINENO: WARNING: enabling charset windows-1257" >&5
3940: echo "$as_me: WARNING: enabling charset windows-1257" >&2;}
1.18 paf 3941: commentcharset_windows1257=
1.17 paf 3942: fi
3943: done
1.62 paf 3944:
1.17 paf 3945:
3946:
3947: commentcharset_koi8r='#'
1.18 paf 3948: for c in $CHARSETS_REQUESTED; do
1.17 paf 3949: if test "koi8-r" = "$c"; then
1.62 paf 3950: { echo "$as_me:$LINENO: WARNING: enabling charset koi8-r" >&5
3951: echo "$as_me: WARNING: enabling charset koi8-r" >&2;}
1.18 paf 3952: commentcharset_koi8r=
1.17 paf 3953: fi
3954: done
3955:
3956:
3957:
1.62 paf 3958:
3959: echo "$as_me:$LINENO: checking for dynamic-link library extension" >&5
3960: echo $ECHO_N "checking for dynamic-link library extension... $ECHO_C" >&6
1.40 paf 3961: case "$host_os" in
3962: hpux9* | hpux10* | hpux11*)
1.67 paf 3963: dll_extension=sl
3964: ;;
1.40 paf 3965: cygwin)
1.67 paf 3966: dll_extension=dll
3967: ;;
1.40 paf 3968: *)
1.67 paf 3969: dll_extension=so
1.40 paf 3970: esac
1.62 paf 3971: echo "$as_me:$LINENO: result: $dll_extension" >&5
3972: echo "${ECHO_T}$dll_extension" >&6
3973:
1.40 paf 3974:
3975:
1.17 paf 3976: # Check whether --with-mysql-client or --without-mysql-client was given.
3977: if test "${with_mysql_client+set}" = set; then
3978: withval="$with_mysql_client"
3979: mysql_client=$withval
3980:
3981: else
1.62 paf 3982: echo "$as_me:$LINENO: checking for mysql client" >&5
3983: echo $ECHO_N "checking for mysql client... $ECHO_C" >&6
1.17 paf 3984: for lib in \
1.40 paf 3985: /usr/local/lib/mysql/libmysqlclient.$dll_extension \
3986: /usr/local/lib/libmysqlclient.$dll_extension \
3987: /usr/lib/libmysqlclient.$dll_extension; do
1.17 paf 3988: if test -f $lib; then mysql_client=$lib; fi
3989: done
3990:
3991: if test -z "$mysql_client"; then
3992: mysql_client="-configure could not guess-"
1.66 paf 3993: echo "$as_me:$LINENO: result: could not guess" >&5
3994: echo "${ECHO_T}could not guess" >&6
1.17 paf 3995: else
1.62 paf 3996: echo "$as_me:$LINENO: result: $mysql_client" >&5
3997: echo "${ECHO_T}$mysql_client" >&6
1.17 paf 3998: fi
3999:
4000:
1.62 paf 4001: fi;
1.17 paf 4002:
4003:
4004:
1.92 misha 4005:
1.17 paf 4006: # Check whether --with-pgsql-client or --without-pgsql-client was given.
4007: if test "${with_pgsql_client+set}" = set; then
4008: withval="$with_pgsql_client"
1.92 misha 4009: pgsql_client=$withval
1.17 paf 4010:
4011: else
1.62 paf 4012: echo "$as_me:$LINENO: checking for pgsql client" >&5
4013: echo $ECHO_N "checking for pgsql client... $ECHO_C" >&6
1.17 paf 4014: for lib in \
1.40 paf 4015: /usr/local/pgsql/lib/libpq.$dll_extension \
4016: /usr/local/lib/libpq.$dll_extension \
4017: /usr/lib/libpq.$dll_extension; do
1.17 paf 4018: if test -f $lib; then pgsql_client=$lib; fi
4019: done
4020:
4021: if test -z "$pgsql_client"; then
4022: pgsql_client="-configure could not guess-"
1.66 paf 4023: echo "$as_me:$LINENO: result: could not guess" >&5
4024: echo "${ECHO_T}could not guess" >&6
1.17 paf 4025: else
1.62 paf 4026: echo "$as_me:$LINENO: result: $pgsql_client" >&5
4027: echo "${ECHO_T}$pgsql_client" >&6
1.17 paf 4028: fi
4029:
4030:
1.62 paf 4031: fi;
1.17 paf 4032:
4033:
4034:
1.92 misha 4035:
1.17 paf 4036: # Check whether --with-oracle-client or --without-oracle-client was given.
4037: if test "${with_oracle_client+set}" = set; then
4038: withval="$with_oracle_client"
4039: oracle_client=$withval
4040:
4041: else
1.62 paf 4042: echo "$as_me:$LINENO: checking for oracle client" >&5
4043: echo $ECHO_N "checking for oracle client... $ECHO_C" >&6
1.40 paf 4044: lib=$ORACLE_HOME/lib/libclntsh.$dll_extension
1.17 paf 4045: if test -f $lib; then oracle_client=$lib; fi
4046:
4047: if test -z "$oracle_client"; then
4048: oracle_client="-configure could not guess-"
1.66 paf 4049: echo "$as_me:$LINENO: result: could not guess" >&5
4050: echo "${ECHO_T}could not guess" >&6
1.17 paf 4051: else
4052: oracle_client="$oracle_client?ORACLE_HOME=$ORACLE_HOME&ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data"
1.62 paf 4053: echo "$as_me:$LINENO: result: $oracle_client" >&5
4054: echo "${ECHO_T}$oracle_client" >&6
1.17 paf 4055: fi
4056:
4057:
1.62 paf 4058: fi;
1.17 paf 4059:
4060:
4061:
4062:
1.92 misha 4063: # Check whether --with-sqlite-client or --without-sqlite-client was given.
4064: if test "${with_sqlite_client+set}" = set; then
4065: withval="$with_sqlite_client"
4066: sqlite_client=$withval
4067:
4068: else
4069: echo "$as_me:$LINENO: checking for sqlite_client client" >&5
4070: echo $ECHO_N "checking for sqlite_client client... $ECHO_C" >&6
4071: for lib in \
4072: /usr/local/sqlite/lib/sqlite3.$dll_extension \
4073: /usr/local/lib/sqlite3.$dll_extension \
4074: /usr/lib/sqlite3.$dll_extension; do
4075: if test -f $lib; then sqlite_client=$lib; fi
4076: done
4077:
4078: if test -z "$sqlite_client"; then
4079: sqlite_client="-configure could not guess-"
4080: echo "$as_me:$LINENO: result: could not guess" >&5
4081: echo "${ECHO_T}could not guess" >&6
4082: else
4083: echo "$as_me:$LINENO: result: $sqlite_client" >&5
4084: echo "${ECHO_T}$sqlite_client" >&6
4085: fi
4086:
4087:
4088: fi;
4089:
4090:
4091:
4092:
1.14 paf 4093:
1.1 paf 4094: # Check whether --with-pathlink or --without-pathlink was given.
4095: if test "${with_pathlink+set}" = set; then
4096: withval="$with_pathlink"
4097: LD_PATHLINK=$withval
4098:
1.62 paf 4099: fi;
1.1 paf 4100:
1.67 paf 4101: # Check whether --with-dynamic-stdcpp or --without-dynamic-stdcpp was given.
4102: if test "${with_dynamic_stdcpp+set}" = set; then
4103: withval="$with_dynamic_stdcpp"
1.59 paf 4104:
1.67 paf 4105: { echo "$as_me:$LINENO: WARNING: libstdc++ will be linked dynamically: this is probably incompatible with other platforms" >&5
4106: echo "$as_me: WARNING: libstdc++ will be linked dynamically: this is probably incompatible with other platforms" >&2;}
4107: # this is for apache, it's linked with gcc and need to know
4108: # and it would not harm linking with c++ toolchain
4109: CPP_LIBS="-lstdc++"
1.59 paf 4110:
4111: else
4112:
1.67 paf 4113: CPP_LIBS="-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic"
1.59 paf 4114:
1.67 paf 4115: fi;
1.59 paf 4116:
1.62 paf 4117:
4118:
1.37 paf 4119: # Check whether --with-sjlj-exceptions or --without-sjlj-exceptions was given.
4120: if test "${with_sjlj_exceptions+set}" = set; then
4121: withval="$with_sjlj_exceptions"
1.62 paf 4122:
4123: cat >>confdefs.h <<\_ACEOF
4124: #define PA_WITH_SJLJ_EXCEPTIONS
4125: _ACEOF
1.37 paf 4126:
4127:
1.62 paf 4128: fi;
1.37 paf 4129:
1.67 paf 4130: GC_LIB_NAME=gc
4131:
4132: # Check whether --with-shared-gc or --without-shared-gc was given.
4133: if test "${with_shared_gc+set}" = set; then
4134: withval="$with_shared_gc"
4135:
4136: GC_LIBS="-L$withval -l$GC_LIB_NAME"
4137:
4138: fi;
4139:
4140: # Check whether --with-static-gc or --without-static-gc was given.
4141: if test "${with_static_gc+set}" = set; then
4142: withval="$with_static_gc"
4143:
4144: GC_LIBS="-L$withval -Wl,-Bstatic -l$GC_LIB_NAME -Wl,-Bdynamic"
4145:
4146: fi;
4147: if test -z "$GC_LIBS"; then
4148: #undefined? use any found in system
4149: GC_LIBS="-l$GC_LIB_NAME"
4150: { echo "$as_me:$LINENO: WARNING: neither --with-shared/static-gc were specified, hoping linker would find it" >&5
4151: echo "$as_me: WARNING: neither --with-shared/static-gc were specified, hoping linker would find it" >&2;}
4152: fi
4153:
4154: echo "$as_me:$LINENO: checking for libgc" >&5
4155: echo $ECHO_N "checking for libgc... $ECHO_C" >&6
4156: SAVE_LIBS=$LIBS
4157: LIBS="$LIBS $GC_LIBS"
4158: cat >conftest.$ac_ext <<_ACEOF
4159: /* confdefs.h. */
4160: _ACEOF
4161: cat confdefs.h >>conftest.$ac_ext
4162: cat >>conftest.$ac_ext <<_ACEOF
4163: /* end confdefs.h. */
4164:
4165: extern int GC_dont_gc;
4166:
4167: int
4168: main ()
4169: {
4170:
4171: GC_dont_gc=0;
4172:
4173: ;
4174: return 0;
4175: }
4176: _ACEOF
4177: rm -f conftest.$ac_objext conftest$ac_exeext
4178: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 4179: (eval $ac_link) 2>conftest.er1
1.67 paf 4180: ac_status=$?
1.86 paf 4181: grep -v '^ *+' conftest.er1 >conftest.err
4182: rm -f conftest.er1
4183: cat conftest.err >&5
1.67 paf 4184: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185: (exit $ac_status); } &&
1.86 paf 4186: { ac_try='test -z "$ac_c_werror_flag"
4187: || test ! -s conftest.err'
4188: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189: (eval $ac_try) 2>&5
4190: ac_status=$?
4191: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192: (exit $ac_status); }; } &&
4193: { ac_try='test -s conftest$ac_exeext'
1.67 paf 4194: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195: (eval $ac_try) 2>&5
4196: ac_status=$?
4197: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198: (exit $ac_status); }; }; then
4199: echo "$as_me:$LINENO: result: yes" >&5
4200: echo "${ECHO_T}yes" >&6
4201:
4202: else
4203: echo "$as_me: failed program was:" >&5
4204: sed 's/^/| /' conftest.$ac_ext >&5
4205:
4206: echo "$as_me:$LINENO: result: no" >&5
4207: echo "${ECHO_T}no" >&6
4208: { { echo "$as_me:$LINENO: error: please specify path to libgc: --with-shared-gc OR --with-static-gc" >&5
4209: echo "$as_me: error: please specify path to libgc: --with-shared-gc OR --with-static-gc" >&2;}
4210: { (exit 1); exit 1; }; }
4211:
4212: fi
1.86 paf 4213: rm -f conftest.err conftest.$ac_objext \
4214: conftest$ac_exeext conftest.$ac_ext
1.67 paf 4215:
4216: LIBS=$SAVE_LIBS
4217:
1.1 paf 4218:
1.15 paf 4219:
1.100 misha 4220: # Check whether --with-static-pcre or --without-static-pcre was given.
4221: if test "${with_static_pcre+set}" = set; then
4222: withval="$with_static_pcre"
4223:
4224: PCRE=$withval
4225: PCREINC="$PCRE/include"
4226: PCRELIB="$PCRE/lib"
4227:
4228: if test \! -d $PCREINC -o \! -d $PCRELIB; then
4229: { { echo "$as_me:$LINENO: error: $PCRE does not seem to be valid PCRE installation directory" >&5
4230: echo "$as_me: error: $PCRE does not seem to be valid PCRE installation directory" >&2;}
4231: { (exit 1); exit 1; }; }
4232: fi
4233:
4234: PCRE_INCLUDES="-I$PCREINC"
4235: PCRE_LIBS="$PCRELIB/libpcre.a"
4236:
4237: fi;
4238:
4239:
4240:
4241:
4242:
1.66 paf 4243: # Check whether --with-shared-xml or --without-shared-xml was given.
4244: if test "${with_shared_xml+set}" = set; then
4245: withval="$with_shared_xml"
4246:
1.67 paf 4247: GNOME_XML=$withval
4248: XMLBIN="$GNOME_XML/bin"
4249: XMLINC="$GNOME_XML/include"
4250: XMLLIB="$GNOME_XML/lib"
1.66 paf 4251:
1.67 paf 4252: if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
4253: { { echo "$as_me:$LINENO: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&5
1.66 paf 4254: echo "$as_me: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&2;}
4255: { (exit 1); exit 1; }; }
1.67 paf 4256: fi
1.66 paf 4257:
4258:
4259: cat >>confdefs.h <<\_ACEOF
4260: #define XML
4261: _ACEOF
4262:
4263:
1.67 paf 4264: LIBXML2_SO_NAME=`cd $XMLLIB ; ls libxml2.?? libxml2.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
4265: LIBXSLT_SO_NAME=`cd $XMLLIB ; ls libxslt.?? libxslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
4266: LIBEXSLT_SO_NAME=`cd $XMLLIB ; ls libexslt.?? libexslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
4267:
1.90 paf 4268: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libxml2"
4269: XML_LIBS="-L$XMLLIB -l$LIBXML2_SO_NAME -l$LIBXSLT_SO_NAME -l$LIBEXSLT_SO_NAME"
1.67 paf 4270: if test \! -z "$LD_PATHLINK"; then
1.66 paf 4271: XML_LIBS="$XML_LIBS -Wl,$LD_PATHLINK -Wl,$XMLLIB"
1.67 paf 4272: fi
1.66 paf 4273:
4274: fi;
4275:
4276: # Check whether --with-static-xml or --without-static-xml was given.
4277: if test "${with_static_xml+set}" = set; then
4278: withval="$with_static_xml"
4279:
1.67 paf 4280: GNOME_XML=$withval
4281: XMLBIN="$GNOME_XML/bin"
4282: XMLINC="$GNOME_XML/include"
4283: XMLLIB="$GNOME_XML/lib"
1.66 paf 4284:
1.67 paf 4285: if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
4286: { { echo "$as_me:$LINENO: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&5
1.66 paf 4287: echo "$as_me: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&2;}
4288: { (exit 1); exit 1; }; }
1.67 paf 4289: fi
1.66 paf 4290:
4291:
4292: cat >>confdefs.h <<\_ACEOF
4293: #define XML
4294: _ACEOF
4295:
4296:
1.90 paf 4297: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libxml2"
4298: XML_LIBS="$XMLLIB/libxslt.a $XMLLIB/libexslt.a $XMLLIB/libxml2.a"
4299:
4300: fi;
1.66 paf 4301:
4302:
4303:
4304:
1.90 paf 4305: # Check whether --with-glib-config or --without-glib-config was given.
4306: if test "${with_glib_config+set}" = set; then
4307: withval="$with_glib_config"
4308: GLIB_CONFIG=$withval
4309:
4310: fi;
1.66 paf 4311:
4312:
4313: # Check whether --with-shared-mailreceive or --without-shared-mailreceive was given.
4314: if test "${with_shared_mailreceive+set}" = set; then
4315: withval="$with_shared_mailreceive"
4316:
1.67 paf 4317: GNOME_MIME=$withval
4318: MIMEBIN="$GNOME_MIME/bin"
4319: MIMEINC="$GNOME_MIME/include"
4320: MIMELIB="$GNOME_MIME/lib"
1.66 paf 4321:
1.67 paf 4322: if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
4323: { { echo "$as_me:$LINENO: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&5
1.66 paf 4324: echo "$as_me: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&2;}
4325: { (exit 1); exit 1; }; }
1.67 paf 4326: fi
1.66 paf 4327:
4328:
4329: cat >>confdefs.h <<\_ACEOF
4330: #define WITH_MAILRECEIVE
4331: _ACEOF
4332:
4333:
1.67 paf 4334: LIBMIME_SO_NAME=`cd $MIMELIB ; ls libgmime.?? libgmime.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1.66 paf 4335:
1.67 paf 4336: if test -z "$GLIB_CONFIG"; then
1.90 paf 4337: GLIB_CONFIG=$XMLBIN/glib-config
1.67 paf 4338: if test \! -x $GLIB_CONFIG; then
1.90 paf 4339: GLIB_CONFIG=$XMLBIN/glib2-config
4340: if test \! -x $GLIB_CONFIG; then
4341: GLIB_CONFIG=glib-config
4342: fi
1.67 paf 4343: fi
4344: fi
4345: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
4346: GLIB_LIBS=`$GLIB_CONFIG --libs`
1.66 paf 4347:
1.67 paf 4348: MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
4349: MIME_LIBS="$GLIB_LIBS -L$MIMELIB -l$LIBMIME_SO_NAME"
4350: if test \! -z "$LD_PATHLINK"; then
1.66 paf 4351: MIME_LIBS="$MIME_LIBS -Wl,$LD_PATHLINK -Wl,$MIMELIB"
1.67 paf 4352: fi
1.66 paf 4353:
4354: fi;
4355:
4356: # Check whether --with-static-mailreceive or --without-static-mailreceive was given.
4357: if test "${with_static_mailreceive+set}" = set; then
4358: withval="$with_static_mailreceive"
4359:
1.67 paf 4360: GNOME_MIME=$withval
4361: MIMEBIN="$GNOME_MIME/bin"
4362: MIMEINC="$GNOME_MIME/include"
4363: MIMELIB="$GNOME_MIME/lib"
1.66 paf 4364:
1.67 paf 4365: if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
4366: { { echo "$as_me:$LINENO: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&5
1.66 paf 4367: echo "$as_me: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&2;}
4368: { (exit 1); exit 1; }; }
1.67 paf 4369: fi
1.66 paf 4370:
4371:
4372: cat >>confdefs.h <<\_ACEOF
4373: #define WITH_MAILRECEIVE
4374: _ACEOF
4375:
4376:
1.67 paf 4377: if test -z "$GLIB_CONFIG"; then
1.90 paf 4378: GLIB_CONFIG=$XMLBIN/glib-config
1.67 paf 4379: if test \! -x $GLIB_CONFIG; then
1.90 paf 4380: GLIB_CONFIG=$XMLBIN/glib2-config
4381: if test \! -x $GLIB_CONFIG; then
4382: GLIB_CONFIG=glib-config
4383: fi
1.67 paf 4384: fi
4385: fi
4386: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1.66 paf 4387:
1.67 paf 4388: GLIB_DIR=`$GLIB_CONFIG --libs | sed 's/.*-L\([^ ]*\).*/\1/'`
4389: GLIB_NAME=`$GLIB_CONFIG --libs | sed 's/.*-l\([^ ]*\).*/\1/'`
4390: MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
4391: MIME_LIBS="$MIMELIB/libgmime.a $GLIB_DIR/lib$GLIB_NAME.a"
1.66 paf 4392:
4393: fi;
4394:
4395:
4396:
4397:
4398:
4399: # Check whether --with-sendmail or --without-sendmail was given.
4400: if test "${with_sendmail+set}" = set; then
4401: withval="$with_sendmail"
4402:
4403: cat >>confdefs.h <<_ACEOF
4404: #define PA_FORCED_SENDMAIL "$withval"
4405: _ACEOF
4406:
4407:
4408: fi;
4409:
4410:
4411:
4412: # Check whether --with-apache13 or --without-apache13 was given.
4413: if test "${with_apache13+set}" = set; then
4414: withval="$with_apache13"
4415: APACHE13=$withval
1.67 paf 4416: if test \! -f "$APACHE13/src/include/httpd.h"; then
4417: { { echo "$as_me:$LINENO: error: $APACHE13 does not seem to be valid Apache13 source distribution directory" >&5
1.66 paf 4418: echo "$as_me: error: $APACHE13 does not seem to be valid Apache13 source distribution directory" >&2;}
4419: { (exit 1); exit 1; }; }
1.67 paf 4420: fi
1.7 paf 4421:
1.62 paf 4422: fi;
1.7 paf 4423:
4424:
1.62 paf 4425:
1.66 paf 4426: if test -n "$APACHE13"; then
4427: COMPILE_APACHE13_MODULE_TRUE=
4428: COMPILE_APACHE13_MODULE_FALSE='#'
4429: else
4430: COMPILE_APACHE13_MODULE_TRUE='#'
4431: COMPILE_APACHE13_MODULE_FALSE=
4432: fi
1.1 paf 4433:
4434:
4435:
1.66 paf 4436: LIBLTDL='${top_builddir}/'src/lib/ltdl/libltdlc.a
4437: INCLTDL='-I${top_srcdir}/'src/lib/ltdl
1.62 paf 4438:
4439:
1.7 paf 4440:
1.1 paf 4441:
4442:
4443:
1.66 paf 4444: subdirs="$subdirs src/lib/ltdl"
1.62 paf 4445:
1.10 paf 4446:
1.66 paf 4447: LIBADD_DL=
1.10 paf 4448:
1.62 paf 4449:
1.66 paf 4450: echo "$as_me:$LINENO: checking for shl_load" >&5
4451: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
4452: if test "${ac_cv_func_shl_load+set}" = set; then
4453: echo $ECHO_N "(cached) $ECHO_C" >&6
4454: else
4455: cat >conftest.$ac_ext <<_ACEOF
4456: /* confdefs.h. */
1.62 paf 4457: _ACEOF
1.66 paf 4458: cat confdefs.h >>conftest.$ac_ext
4459: cat >>conftest.$ac_ext <<_ACEOF
4460: /* end confdefs.h. */
1.86 paf 4461: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
4462: For example, HP-UX 11i <limits.h> declares gettimeofday. */
4463: #define shl_load innocuous_shl_load
4464:
1.66 paf 4465: /* System header to define __stub macros and hopefully few prototypes,
4466: which can conflict with char shl_load (); below.
4467: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4468: <limits.h> exists even on freestanding compilers. */
1.86 paf 4469:
1.66 paf 4470: #ifdef __STDC__
4471: # include <limits.h>
4472: #else
4473: # include <assert.h>
4474: #endif
1.86 paf 4475:
4476: #undef shl_load
4477:
1.66 paf 4478: /* Override any gcc2 internal prototype to avoid an error. */
4479: #ifdef __cplusplus
4480: extern "C"
4481: {
4482: #endif
4483: /* We use char because int might match the return type of a gcc2
4484: builtin and then its argument prototype would still apply. */
4485: char shl_load ();
4486: /* The GNU C library defines this for functions which it implements
4487: to always fail with ENOSYS. Some functions are actually named
4488: something starting with __ and the normal name is an alias. */
4489: #if defined (__stub_shl_load) || defined (__stub___shl_load)
4490: choke me
4491: #else
4492: char (*f) () = shl_load;
4493: #endif
4494: #ifdef __cplusplus
4495: }
4496: #endif
1.10 paf 4497:
1.66 paf 4498: int
4499: main ()
4500: {
4501: return f != shl_load;
4502: ;
4503: return 0;
4504: }
4505: _ACEOF
4506: rm -f conftest.$ac_objext conftest$ac_exeext
4507: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 4508: (eval $ac_link) 2>conftest.er1
1.66 paf 4509: ac_status=$?
1.86 paf 4510: grep -v '^ *+' conftest.er1 >conftest.err
4511: rm -f conftest.er1
4512: cat conftest.err >&5
1.66 paf 4513: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514: (exit $ac_status); } &&
1.86 paf 4515: { ac_try='test -z "$ac_c_werror_flag"
4516: || test ! -s conftest.err'
4517: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518: (eval $ac_try) 2>&5
4519: ac_status=$?
4520: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521: (exit $ac_status); }; } &&
4522: { ac_try='test -s conftest$ac_exeext'
1.66 paf 4523: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524: (eval $ac_try) 2>&5
4525: ac_status=$?
4526: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527: (exit $ac_status); }; }; then
4528: ac_cv_func_shl_load=yes
4529: else
4530: echo "$as_me: failed program was:" >&5
4531: sed 's/^/| /' conftest.$ac_ext >&5
1.10 paf 4532:
1.66 paf 4533: ac_cv_func_shl_load=no
4534: fi
1.86 paf 4535: rm -f conftest.err conftest.$ac_objext \
4536: conftest$ac_exeext conftest.$ac_ext
1.66 paf 4537: fi
4538: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
4539: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
4540: if test $ac_cv_func_shl_load = yes; then
1.10 paf 4541:
1.66 paf 4542: cat >>confdefs.h <<\_ACEOF
4543: #define HAVE_SHL_LOAD 1
4544: _ACEOF
1.10 paf 4545:
1.66 paf 4546: else
4547: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
4548: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
4549: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
4550: echo $ECHO_N "(cached) $ECHO_C" >&6
4551: else
4552: ac_check_lib_save_LIBS=$LIBS
4553: LIBS="-ldld $LIBS"
4554: cat >conftest.$ac_ext <<_ACEOF
4555: /* confdefs.h. */
4556: _ACEOF
4557: cat confdefs.h >>conftest.$ac_ext
4558: cat >>conftest.$ac_ext <<_ACEOF
4559: /* end confdefs.h. */
1.10 paf 4560:
1.66 paf 4561: /* Override any gcc2 internal prototype to avoid an error. */
4562: #ifdef __cplusplus
4563: extern "C"
4564: #endif
4565: /* We use char because int might match the return type of a gcc2
4566: builtin and then its argument prototype would still apply. */
4567: char shl_load ();
4568: int
4569: main ()
4570: {
4571: shl_load ();
4572: ;
4573: return 0;
4574: }
4575: _ACEOF
4576: rm -f conftest.$ac_objext conftest$ac_exeext
4577: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 4578: (eval $ac_link) 2>conftest.er1
1.66 paf 4579: ac_status=$?
1.86 paf 4580: grep -v '^ *+' conftest.er1 >conftest.err
4581: rm -f conftest.er1
4582: cat conftest.err >&5
1.66 paf 4583: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584: (exit $ac_status); } &&
1.86 paf 4585: { ac_try='test -z "$ac_c_werror_flag"
4586: || test ! -s conftest.err'
4587: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588: (eval $ac_try) 2>&5
4589: ac_status=$?
4590: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591: (exit $ac_status); }; } &&
4592: { ac_try='test -s conftest$ac_exeext'
1.66 paf 4593: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594: (eval $ac_try) 2>&5
4595: ac_status=$?
4596: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597: (exit $ac_status); }; }; then
4598: ac_cv_lib_dld_shl_load=yes
4599: else
4600: echo "$as_me: failed program was:" >&5
4601: sed 's/^/| /' conftest.$ac_ext >&5
1.10 paf 4602:
1.66 paf 4603: ac_cv_lib_dld_shl_load=no
4604: fi
1.86 paf 4605: rm -f conftest.err conftest.$ac_objext \
4606: conftest$ac_exeext conftest.$ac_ext
1.66 paf 4607: LIBS=$ac_check_lib_save_LIBS
4608: fi
4609: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
4610: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
4611: if test $ac_cv_lib_dld_shl_load = yes; then
1.1 paf 4612:
1.66 paf 4613: cat >>confdefs.h <<\_ACEOF
4614: #define HAVE_SHL_LOAD 1
4615: _ACEOF
1.1 paf 4616:
1.66 paf 4617: LIBADD_DL="$LIBADD_DL -ldld"
4618: else
4619: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4620: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4621: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4622: echo $ECHO_N "(cached) $ECHO_C" >&6
4623: else
4624: ac_check_lib_save_LIBS=$LIBS
4625: LIBS="-ldl $LIBS"
4626: cat >conftest.$ac_ext <<_ACEOF
4627: /* confdefs.h. */
4628: _ACEOF
4629: cat confdefs.h >>conftest.$ac_ext
4630: cat >>conftest.$ac_ext <<_ACEOF
4631: /* end confdefs.h. */
1.62 paf 4632:
1.66 paf 4633: /* Override any gcc2 internal prototype to avoid an error. */
4634: #ifdef __cplusplus
4635: extern "C"
4636: #endif
4637: /* We use char because int might match the return type of a gcc2
4638: builtin and then its argument prototype would still apply. */
4639: char dlopen ();
4640: int
4641: main ()
4642: {
4643: dlopen ();
4644: ;
4645: return 0;
4646: }
4647: _ACEOF
4648: rm -f conftest.$ac_objext conftest$ac_exeext
4649: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 4650: (eval $ac_link) 2>conftest.er1
1.66 paf 4651: ac_status=$?
1.86 paf 4652: grep -v '^ *+' conftest.er1 >conftest.err
4653: rm -f conftest.er1
4654: cat conftest.err >&5
1.66 paf 4655: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656: (exit $ac_status); } &&
1.86 paf 4657: { ac_try='test -z "$ac_c_werror_flag"
4658: || test ! -s conftest.err'
4659: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660: (eval $ac_try) 2>&5
4661: ac_status=$?
4662: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663: (exit $ac_status); }; } &&
4664: { ac_try='test -s conftest$ac_exeext'
1.66 paf 4665: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666: (eval $ac_try) 2>&5
4667: ac_status=$?
4668: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669: (exit $ac_status); }; }; then
4670: ac_cv_lib_dl_dlopen=yes
4671: else
4672: echo "$as_me: failed program was:" >&5
4673: sed 's/^/| /' conftest.$ac_ext >&5
1.29 paf 4674:
1.66 paf 4675: ac_cv_lib_dl_dlopen=no
4676: fi
1.86 paf 4677: rm -f conftest.err conftest.$ac_objext \
4678: conftest$ac_exeext conftest.$ac_ext
1.66 paf 4679: LIBS=$ac_check_lib_save_LIBS
4680: fi
4681: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4682: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4683: if test $ac_cv_lib_dl_dlopen = yes; then
1.29 paf 4684:
1.62 paf 4685: cat >>confdefs.h <<\_ACEOF
1.66 paf 4686: #define HAVE_LIBDL 1
1.62 paf 4687: _ACEOF
4688:
1.66 paf 4689: LIBADD_DL="-ldl"
4690: else
4691: cat >conftest.$ac_ext <<_ACEOF
4692: /* confdefs.h. */
4693: _ACEOF
4694: cat confdefs.h >>conftest.$ac_ext
4695: cat >>conftest.$ac_ext <<_ACEOF
4696: /* end confdefs.h. */
4697: #if HAVE_DLFCN_H
4698: # include <dlfcn.h>
4699: #endif
1.62 paf 4700:
1.66 paf 4701: int
4702: main ()
4703: {
4704: dlopen(0, 0);
4705: ;
4706: return 0;
4707: }
4708: _ACEOF
4709: rm -f conftest.$ac_objext conftest$ac_exeext
4710: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 4711: (eval $ac_link) 2>conftest.er1
1.66 paf 4712: ac_status=$?
1.86 paf 4713: grep -v '^ *+' conftest.er1 >conftest.err
4714: rm -f conftest.er1
4715: cat conftest.err >&5
1.66 paf 4716: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717: (exit $ac_status); } &&
1.86 paf 4718: { ac_try='test -z "$ac_c_werror_flag"
4719: || test ! -s conftest.err'
4720: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721: (eval $ac_try) 2>&5
4722: ac_status=$?
4723: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724: (exit $ac_status); }; } &&
4725: { ac_try='test -s conftest$ac_exeext'
1.66 paf 4726: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727: (eval $ac_try) 2>&5
4728: ac_status=$?
4729: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730: (exit $ac_status); }; }; then
1.29 paf 4731:
1.66 paf 4732: cat >>confdefs.h <<\_ACEOF
4733: #define HAVE_LIBDL 1
4734: _ACEOF
1.29 paf 4735:
1.66 paf 4736: else
4737: echo "$as_me: failed program was:" >&5
4738: sed 's/^/| /' conftest.$ac_ext >&5
1.29 paf 4739:
1.66 paf 4740: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
4741: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
4742: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
4743: echo $ECHO_N "(cached) $ECHO_C" >&6
4744: else
4745: ac_check_lib_save_LIBS=$LIBS
4746: LIBS="-lsvld $LIBS"
4747: cat >conftest.$ac_ext <<_ACEOF
4748: /* confdefs.h. */
4749: _ACEOF
4750: cat confdefs.h >>conftest.$ac_ext
4751: cat >>conftest.$ac_ext <<_ACEOF
4752: /* end confdefs.h. */
1.29 paf 4753:
1.66 paf 4754: /* Override any gcc2 internal prototype to avoid an error. */
4755: #ifdef __cplusplus
4756: extern "C"
4757: #endif
4758: /* We use char because int might match the return type of a gcc2
4759: builtin and then its argument prototype would still apply. */
4760: char dlopen ();
4761: int
4762: main ()
4763: {
4764: dlopen ();
4765: ;
4766: return 0;
4767: }
4768: _ACEOF
4769: rm -f conftest.$ac_objext conftest$ac_exeext
4770: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 4771: (eval $ac_link) 2>conftest.er1
1.66 paf 4772: ac_status=$?
1.86 paf 4773: grep -v '^ *+' conftest.er1 >conftest.err
4774: rm -f conftest.er1
4775: cat conftest.err >&5
1.66 paf 4776: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777: (exit $ac_status); } &&
1.86 paf 4778: { ac_try='test -z "$ac_c_werror_flag"
4779: || test ! -s conftest.err'
4780: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781: (eval $ac_try) 2>&5
4782: ac_status=$?
4783: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784: (exit $ac_status); }; } &&
4785: { ac_try='test -s conftest$ac_exeext'
1.66 paf 4786: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787: (eval $ac_try) 2>&5
4788: ac_status=$?
4789: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790: (exit $ac_status); }; }; then
4791: ac_cv_lib_svld_dlopen=yes
4792: else
4793: echo "$as_me: failed program was:" >&5
4794: sed 's/^/| /' conftest.$ac_ext >&5
1.29 paf 4795:
1.66 paf 4796: ac_cv_lib_svld_dlopen=no
4797: fi
1.86 paf 4798: rm -f conftest.err conftest.$ac_objext \
4799: conftest$ac_exeext conftest.$ac_ext
1.66 paf 4800: LIBS=$ac_check_lib_save_LIBS
4801: fi
4802: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
4803: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
4804: if test $ac_cv_lib_svld_dlopen = yes; then
1.62 paf 4805:
4806: cat >>confdefs.h <<\_ACEOF
1.66 paf 4807: #define HAVE_LIBDL 1
1.62 paf 4808: _ACEOF
1.29 paf 4809:
1.66 paf 4810: LIBADD_DL="-lsvld"
4811: else
4812: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
4813: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
4814: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
4815: echo $ECHO_N "(cached) $ECHO_C" >&6
4816: else
4817: ac_check_lib_save_LIBS=$LIBS
4818: LIBS="-ldld $LIBS"
4819: cat >conftest.$ac_ext <<_ACEOF
4820: /* confdefs.h. */
4821: _ACEOF
4822: cat confdefs.h >>conftest.$ac_ext
4823: cat >>conftest.$ac_ext <<_ACEOF
4824: /* end confdefs.h. */
1.29 paf 4825:
1.66 paf 4826: /* Override any gcc2 internal prototype to avoid an error. */
4827: #ifdef __cplusplus
4828: extern "C"
4829: #endif
4830: /* We use char because int might match the return type of a gcc2
4831: builtin and then its argument prototype would still apply. */
4832: char dld_link ();
4833: int
4834: main ()
4835: {
4836: dld_link ();
4837: ;
4838: return 0;
4839: }
4840: _ACEOF
4841: rm -f conftest.$ac_objext conftest$ac_exeext
4842: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 4843: (eval $ac_link) 2>conftest.er1
1.66 paf 4844: ac_status=$?
1.86 paf 4845: grep -v '^ *+' conftest.er1 >conftest.err
4846: rm -f conftest.er1
4847: cat conftest.err >&5
1.66 paf 4848: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849: (exit $ac_status); } &&
1.86 paf 4850: { ac_try='test -z "$ac_c_werror_flag"
4851: || test ! -s conftest.err'
4852: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853: (eval $ac_try) 2>&5
4854: ac_status=$?
4855: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856: (exit $ac_status); }; } &&
4857: { ac_try='test -s conftest$ac_exeext'
1.66 paf 4858: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859: (eval $ac_try) 2>&5
4860: ac_status=$?
4861: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862: (exit $ac_status); }; }; then
4863: ac_cv_lib_dld_dld_link=yes
4864: else
4865: echo "$as_me: failed program was:" >&5
4866: sed 's/^/| /' conftest.$ac_ext >&5
1.29 paf 4867:
1.66 paf 4868: ac_cv_lib_dld_dld_link=no
4869: fi
1.86 paf 4870: rm -f conftest.err conftest.$ac_objext \
4871: conftest$ac_exeext conftest.$ac_ext
1.66 paf 4872: LIBS=$ac_check_lib_save_LIBS
4873: fi
4874: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
4875: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
4876: if test $ac_cv_lib_dld_dld_link = yes; then
1.29 paf 4877:
1.66 paf 4878: cat >>confdefs.h <<\_ACEOF
4879: #define HAVE_DLD 1
1.62 paf 4880: _ACEOF
1.16 paf 4881:
1.66 paf 4882: LIBADD_DL="$LIBADD_DL -ldld"
1.16 paf 4883:
1.66 paf 4884: fi
1.16 paf 4885:
4886:
1.66 paf 4887: fi
1.12 paf 4888:
4889:
1.66 paf 4890: fi
1.86 paf 4891: rm -f conftest.err conftest.$ac_objext \
4892: conftest$ac_exeext conftest.$ac_ext
1.12 paf 4893:
4894: fi
4895:
4896:
1.66 paf 4897: fi
1.62 paf 4898:
1.1 paf 4899:
1.66 paf 4900: fi
1.1 paf 4901:
4902:
1.66 paf 4903: if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
4904: LIBS_SAVE="$LIBS"
4905: LIBS="$LIBS $LIBADD_DL"
1.1 paf 4906:
1.66 paf 4907: for ac_func in dlerror
4908: do
4909: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4910: echo "$as_me:$LINENO: checking for $ac_func" >&5
4911: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4912: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.62 paf 4913: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 4914: else
1.64 paf 4915: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 4916: /* confdefs.h. */
4917: _ACEOF
4918: cat confdefs.h >>conftest.$ac_ext
4919: cat >>conftest.$ac_ext <<_ACEOF
4920: /* end confdefs.h. */
1.86 paf 4921: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4922: For example, HP-UX 11i <limits.h> declares gettimeofday. */
4923: #define $ac_func innocuous_$ac_func
4924:
1.64 paf 4925: /* System header to define __stub macros and hopefully few prototypes,
1.66 paf 4926: which can conflict with char $ac_func (); below.
1.64 paf 4927: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4928: <limits.h> exists even on freestanding compilers. */
1.86 paf 4929:
1.64 paf 4930: #ifdef __STDC__
4931: # include <limits.h>
4932: #else
4933: # include <assert.h>
4934: #endif
1.86 paf 4935:
4936: #undef $ac_func
4937:
1.8 paf 4938: /* Override any gcc2 internal prototype to avoid an error. */
4939: #ifdef __cplusplus
4940: extern "C"
1.64 paf 4941: {
1.8 paf 4942: #endif
4943: /* We use char because int might match the return type of a gcc2
1.62 paf 4944: builtin and then its argument prototype would still apply. */
1.66 paf 4945: char $ac_func ();
1.64 paf 4946: /* The GNU C library defines this for functions which it implements
4947: to always fail with ENOSYS. Some functions are actually named
4948: something starting with __ and the normal name is an alias. */
1.66 paf 4949: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.64 paf 4950: choke me
4951: #else
1.66 paf 4952: char (*f) () = $ac_func;
1.64 paf 4953: #endif
4954: #ifdef __cplusplus
4955: }
4956: #endif
4957:
1.62 paf 4958: int
4959: main ()
4960: {
1.66 paf 4961: return f != $ac_func;
1.62 paf 4962: ;
4963: return 0;
4964: }
4965: _ACEOF
4966: rm -f conftest.$ac_objext conftest$ac_exeext
4967: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 4968: (eval $ac_link) 2>conftest.er1
1.62 paf 4969: ac_status=$?
1.86 paf 4970: grep -v '^ *+' conftest.er1 >conftest.err
4971: rm -f conftest.er1
4972: cat conftest.err >&5
1.62 paf 4973: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974: (exit $ac_status); } &&
1.86 paf 4975: { ac_try='test -z "$ac_c_werror_flag"
4976: || test ! -s conftest.err'
4977: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978: (eval $ac_try) 2>&5
4979: ac_status=$?
4980: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981: (exit $ac_status); }; } &&
4982: { ac_try='test -s conftest$ac_exeext'
1.62 paf 4983: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984: (eval $ac_try) 2>&5
4985: ac_status=$?
4986: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987: (exit $ac_status); }; }; then
1.66 paf 4988: eval "$as_ac_var=yes"
1.62 paf 4989: else
4990: echo "$as_me: failed program was:" >&5
4991: sed 's/^/| /' conftest.$ac_ext >&5
4992:
1.66 paf 4993: eval "$as_ac_var=no"
1.62 paf 4994: fi
1.86 paf 4995: rm -f conftest.err conftest.$ac_objext \
4996: conftest$ac_exeext conftest.$ac_ext
1.62 paf 4997: fi
1.66 paf 4998: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4999: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5000: if test `eval echo '${'$as_ac_var'}'` = yes; then
5001: cat >>confdefs.h <<_ACEOF
5002: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5003: _ACEOF
5004:
5005: fi
5006: done
5007:
5008: LIBS="$LIBS_SAVE"
5009: fi
5010:
5011:
1.64 paf 5012:
5013:
1.79 paf 5014: echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5015: echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5016: if test "${ac_cv_c_bigendian+set}" = set; then
5017: echo $ECHO_N "(cached) $ECHO_C" >&6
5018: else
5019: # See if sys/param.h defines the BYTE_ORDER macro.
5020: cat >conftest.$ac_ext <<_ACEOF
5021: /* confdefs.h. */
5022: _ACEOF
5023: cat confdefs.h >>conftest.$ac_ext
5024: cat >>conftest.$ac_ext <<_ACEOF
5025: /* end confdefs.h. */
5026: #include <sys/types.h>
5027: #include <sys/param.h>
5028:
5029: int
5030: main ()
5031: {
5032: #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5033: bogus endian macros
5034: #endif
5035:
5036: ;
5037: return 0;
5038: }
5039: _ACEOF
5040: rm -f conftest.$ac_objext
5041: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 5042: (eval $ac_compile) 2>conftest.er1
1.79 paf 5043: ac_status=$?
1.86 paf 5044: grep -v '^ *+' conftest.er1 >conftest.err
5045: rm -f conftest.er1
5046: cat conftest.err >&5
1.79 paf 5047: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048: (exit $ac_status); } &&
1.86 paf 5049: { ac_try='test -z "$ac_c_werror_flag"
5050: || test ! -s conftest.err'
5051: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052: (eval $ac_try) 2>&5
5053: ac_status=$?
5054: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055: (exit $ac_status); }; } &&
5056: { ac_try='test -s conftest.$ac_objext'
1.79 paf 5057: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058: (eval $ac_try) 2>&5
5059: ac_status=$?
5060: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061: (exit $ac_status); }; }; then
5062: # It does; now see whether it defined to BIG_ENDIAN or not.
5063: cat >conftest.$ac_ext <<_ACEOF
5064: /* confdefs.h. */
5065: _ACEOF
5066: cat confdefs.h >>conftest.$ac_ext
5067: cat >>conftest.$ac_ext <<_ACEOF
5068: /* end confdefs.h. */
5069: #include <sys/types.h>
5070: #include <sys/param.h>
5071:
5072: int
5073: main ()
5074: {
5075: #if BYTE_ORDER != BIG_ENDIAN
5076: not big endian
5077: #endif
5078:
5079: ;
5080: return 0;
5081: }
5082: _ACEOF
5083: rm -f conftest.$ac_objext
5084: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 5085: (eval $ac_compile) 2>conftest.er1
1.79 paf 5086: ac_status=$?
1.86 paf 5087: grep -v '^ *+' conftest.er1 >conftest.err
5088: rm -f conftest.er1
5089: cat conftest.err >&5
1.79 paf 5090: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091: (exit $ac_status); } &&
1.86 paf 5092: { ac_try='test -z "$ac_c_werror_flag"
5093: || test ! -s conftest.err'
5094: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095: (eval $ac_try) 2>&5
5096: ac_status=$?
5097: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098: (exit $ac_status); }; } &&
5099: { ac_try='test -s conftest.$ac_objext'
1.79 paf 5100: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101: (eval $ac_try) 2>&5
5102: ac_status=$?
5103: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104: (exit $ac_status); }; }; then
5105: ac_cv_c_bigendian=yes
5106: else
5107: echo "$as_me: failed program was:" >&5
5108: sed 's/^/| /' conftest.$ac_ext >&5
5109:
5110: ac_cv_c_bigendian=no
5111: fi
1.86 paf 5112: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.79 paf 5113: else
5114: echo "$as_me: failed program was:" >&5
5115: sed 's/^/| /' conftest.$ac_ext >&5
5116:
5117: # It does not; compile a test program.
5118: if test "$cross_compiling" = yes; then
5119: # try to guess the endianness by grepping values into an object file
5120: ac_cv_c_bigendian=unknown
5121: cat >conftest.$ac_ext <<_ACEOF
5122: /* confdefs.h. */
5123: _ACEOF
5124: cat confdefs.h >>conftest.$ac_ext
5125: cat >>conftest.$ac_ext <<_ACEOF
5126: /* end confdefs.h. */
5127: short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5128: short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5129: void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5130: short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5131: short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5132: void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5133: int
5134: main ()
5135: {
5136: _ascii (); _ebcdic ();
5137: ;
5138: return 0;
5139: }
5140: _ACEOF
5141: rm -f conftest.$ac_objext
5142: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 5143: (eval $ac_compile) 2>conftest.er1
1.79 paf 5144: ac_status=$?
1.86 paf 5145: grep -v '^ *+' conftest.er1 >conftest.err
5146: rm -f conftest.er1
5147: cat conftest.err >&5
1.79 paf 5148: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149: (exit $ac_status); } &&
1.86 paf 5150: { ac_try='test -z "$ac_c_werror_flag"
5151: || test ! -s conftest.err'
5152: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153: (eval $ac_try) 2>&5
5154: ac_status=$?
5155: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156: (exit $ac_status); }; } &&
5157: { ac_try='test -s conftest.$ac_objext'
1.79 paf 5158: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159: (eval $ac_try) 2>&5
5160: ac_status=$?
5161: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162: (exit $ac_status); }; }; then
5163: if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5164: ac_cv_c_bigendian=yes
5165: fi
5166: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5167: if test "$ac_cv_c_bigendian" = unknown; then
5168: ac_cv_c_bigendian=no
5169: else
5170: # finding both strings is unlikely to happen, but who knows?
5171: ac_cv_c_bigendian=unknown
5172: fi
5173: fi
5174: else
5175: echo "$as_me: failed program was:" >&5
5176: sed 's/^/| /' conftest.$ac_ext >&5
5177:
5178: fi
1.86 paf 5179: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.79 paf 5180: else
5181: cat >conftest.$ac_ext <<_ACEOF
5182: /* confdefs.h. */
5183: _ACEOF
5184: cat confdefs.h >>conftest.$ac_ext
5185: cat >>conftest.$ac_ext <<_ACEOF
5186: /* end confdefs.h. */
5187: int
5188: main ()
5189: {
5190: /* Are we little or big endian? From Harbison&Steele. */
5191: union
5192: {
5193: long l;
5194: char c[sizeof (long)];
5195: } u;
5196: u.l = 1;
5197: exit (u.c[sizeof (long) - 1] == 1);
5198: }
5199: _ACEOF
5200: rm -f conftest$ac_exeext
5201: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5202: (eval $ac_link) 2>&5
5203: ac_status=$?
5204: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5206: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207: (eval $ac_try) 2>&5
5208: ac_status=$?
5209: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210: (exit $ac_status); }; }; then
5211: ac_cv_c_bigendian=no
5212: else
5213: echo "$as_me: program exited with status $ac_status" >&5
5214: echo "$as_me: failed program was:" >&5
5215: sed 's/^/| /' conftest.$ac_ext >&5
5216:
5217: ( exit $ac_status )
5218: ac_cv_c_bigendian=yes
5219: fi
1.86 paf 5220: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.79 paf 5221: fi
5222: fi
1.86 paf 5223: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.79 paf 5224: fi
5225: echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5226: echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5227: case $ac_cv_c_bigendian in
5228: yes)
5229:
5230: cat >>confdefs.h <<\_ACEOF
5231: #define PA_BIG_ENDIAN
5232: _ACEOF
5233:
5234: ;;
5235: no)
5236:
5237: cat >>confdefs.h <<\_ACEOF
5238: #define PA_LITTLE_ENDIAN
5239: _ACEOF
5240:
5241: ;;
5242: *)
5243: { { echo "$as_me:$LINENO: error: word endianness not determined for some obscure reason" >&5
5244: echo "$as_me: error: word endianness not determined for some obscure reason" >&2;}
5245: { (exit 1); exit 1; }; }
5246: ;;
5247: esac
5248:
5249:
1.66 paf 5250: ac_ext=c
5251: ac_cpp='$CPP $CPPFLAGS'
5252: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5253: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5254: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5255: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5256: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5257: # On Suns, sometimes $CPP names a directory.
5258: if test -n "$CPP" && test -d "$CPP"; then
5259: CPP=
5260: fi
5261: if test -z "$CPP"; then
5262: if test "${ac_cv_prog_CPP+set}" = set; then
1.62 paf 5263: echo $ECHO_N "(cached) $ECHO_C" >&6
5264: else
1.66 paf 5265: # Double quotes because CPP needs to be expanded
5266: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5267: do
5268: ac_preproc_ok=false
5269: for ac_c_preproc_warn_flag in '' yes
5270: do
5271: # Use a header file that comes with gcc, so configuring glibc
5272: # with a fresh cross-compiler works.
5273: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5274: # <limits.h> exists even on freestanding compilers.
5275: # On the NeXT, cc -E runs the code through the compiler's parser,
5276: # not just through cpp. "Syntax error" is here to catch this case.
5277: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 5278: /* confdefs.h. */
5279: _ACEOF
5280: cat confdefs.h >>conftest.$ac_ext
5281: cat >>conftest.$ac_ext <<_ACEOF
5282: /* end confdefs.h. */
1.66 paf 5283: #ifdef __STDC__
5284: # include <limits.h>
5285: #else
5286: # include <assert.h>
1.8 paf 5287: #endif
1.86 paf 5288: Syntax error
1.62 paf 5289: _ACEOF
1.66 paf 5290: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5291: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.62 paf 5292: ac_status=$?
1.66 paf 5293: grep -v '^ *+' conftest.er1 >conftest.err
5294: rm -f conftest.er1
5295: cat conftest.err >&5
1.62 paf 5296: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 5297: (exit $ac_status); } >/dev/null; then
5298: if test -s conftest.err; then
5299: ac_cpp_err=$ac_c_preproc_warn_flag
1.86 paf 5300: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.66 paf 5301: else
5302: ac_cpp_err=
5303: fi
5304: else
5305: ac_cpp_err=yes
5306: fi
5307: if test -z "$ac_cpp_err"; then
5308: :
1.62 paf 5309: else
5310: echo "$as_me: failed program was:" >&5
5311: sed 's/^/| /' conftest.$ac_ext >&5
5312:
1.66 paf 5313: # Broken: fails on valid input.
5314: continue
1.62 paf 5315: fi
1.66 paf 5316: rm -f conftest.err conftest.$ac_ext
1.64 paf 5317:
1.66 paf 5318: # OK, works on sane cases. Now check whether non-existent headers
5319: # can be detected and how.
5320: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 5321: /* confdefs.h. */
5322: _ACEOF
5323: cat confdefs.h >>conftest.$ac_ext
5324: cat >>conftest.$ac_ext <<_ACEOF
5325: /* end confdefs.h. */
1.66 paf 5326: #include <ac_nonexistent.h>
1.62 paf 5327: _ACEOF
1.66 paf 5328: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5329: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.62 paf 5330: ac_status=$?
1.66 paf 5331: grep -v '^ *+' conftest.er1 >conftest.err
5332: rm -f conftest.er1
5333: cat conftest.err >&5
1.62 paf 5334: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 5335: (exit $ac_status); } >/dev/null; then
5336: if test -s conftest.err; then
5337: ac_cpp_err=$ac_c_preproc_warn_flag
1.86 paf 5338: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.66 paf 5339: else
5340: ac_cpp_err=
5341: fi
5342: else
5343: ac_cpp_err=yes
5344: fi
5345: if test -z "$ac_cpp_err"; then
5346: # Broken: success on invalid input.
5347: continue
1.62 paf 5348: else
5349: echo "$as_me: failed program was:" >&5
5350: sed 's/^/| /' conftest.$ac_ext >&5
5351:
1.66 paf 5352: # Passes both tests.
5353: ac_preproc_ok=:
5354: break
1.62 paf 5355: fi
1.66 paf 5356: rm -f conftest.err conftest.$ac_ext
5357:
5358: done
5359: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5360: rm -f conftest.err conftest.$ac_ext
5361: if $ac_preproc_ok; then
5362: break
1.62 paf 5363: fi
1.64 paf 5364:
1.66 paf 5365: done
5366: ac_cv_prog_CPP=$CPP
1.64 paf 5367:
1.66 paf 5368: fi
5369: CPP=$ac_cv_prog_CPP
1.64 paf 5370: else
1.66 paf 5371: ac_cv_prog_CPP=$CPP
5372: fi
5373: echo "$as_me:$LINENO: result: $CPP" >&5
5374: echo "${ECHO_T}$CPP" >&6
5375: ac_preproc_ok=false
5376: for ac_c_preproc_warn_flag in '' yes
5377: do
5378: # Use a header file that comes with gcc, so configuring glibc
5379: # with a fresh cross-compiler works.
5380: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5381: # <limits.h> exists even on freestanding compilers.
5382: # On the NeXT, cc -E runs the code through the compiler's parser,
5383: # not just through cpp. "Syntax error" is here to catch this case.
1.64 paf 5384: cat >conftest.$ac_ext <<_ACEOF
5385: /* confdefs.h. */
5386: _ACEOF
5387: cat confdefs.h >>conftest.$ac_ext
5388: cat >>conftest.$ac_ext <<_ACEOF
5389: /* end confdefs.h. */
1.66 paf 5390: #ifdef __STDC__
5391: # include <limits.h>
5392: #else
5393: # include <assert.h>
1.64 paf 5394: #endif
1.86 paf 5395: Syntax error
1.64 paf 5396: _ACEOF
1.66 paf 5397: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5398: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.64 paf 5399: ac_status=$?
1.66 paf 5400: grep -v '^ *+' conftest.er1 >conftest.err
5401: rm -f conftest.er1
5402: cat conftest.err >&5
1.64 paf 5403: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 5404: (exit $ac_status); } >/dev/null; then
5405: if test -s conftest.err; then
5406: ac_cpp_err=$ac_c_preproc_warn_flag
1.86 paf 5407: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.66 paf 5408: else
5409: ac_cpp_err=
5410: fi
5411: else
5412: ac_cpp_err=yes
5413: fi
5414: if test -z "$ac_cpp_err"; then
5415: :
1.62 paf 5416: else
1.64 paf 5417: echo "$as_me: failed program was:" >&5
5418: sed 's/^/| /' conftest.$ac_ext >&5
5419:
1.66 paf 5420: # Broken: fails on valid input.
5421: continue
5422: fi
5423: rm -f conftest.err conftest.$ac_ext
5424:
5425: # OK, works on sane cases. Now check whether non-existent headers
5426: # can be detected and how.
5427: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 5428: /* confdefs.h. */
5429: _ACEOF
5430: cat confdefs.h >>conftest.$ac_ext
5431: cat >>conftest.$ac_ext <<_ACEOF
5432: /* end confdefs.h. */
1.66 paf 5433: #include <ac_nonexistent.h>
1.62 paf 5434: _ACEOF
1.66 paf 5435: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5436: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.62 paf 5437: ac_status=$?
1.66 paf 5438: grep -v '^ *+' conftest.er1 >conftest.err
5439: rm -f conftest.er1
5440: cat conftest.err >&5
1.62 paf 5441: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 5442: (exit $ac_status); } >/dev/null; then
5443: if test -s conftest.err; then
5444: ac_cpp_err=$ac_c_preproc_warn_flag
1.86 paf 5445: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.66 paf 5446: else
5447: ac_cpp_err=
5448: fi
5449: else
5450: ac_cpp_err=yes
5451: fi
5452: if test -z "$ac_cpp_err"; then
5453: # Broken: success on invalid input.
5454: continue
1.62 paf 5455: else
5456: echo "$as_me: failed program was:" >&5
5457: sed 's/^/| /' conftest.$ac_ext >&5
5458:
1.66 paf 5459: # Passes both tests.
5460: ac_preproc_ok=:
5461: break
1.62 paf 5462: fi
1.66 paf 5463: rm -f conftest.err conftest.$ac_ext
5464:
5465: done
5466: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5467: rm -f conftest.err conftest.$ac_ext
5468: if $ac_preproc_ok; then
5469: :
5470: else
5471: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5472: See \`config.log' for more details." >&5
5473: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5474: See \`config.log' for more details." >&2;}
5475: { (exit 1); exit 1; }; }
1.62 paf 5476: fi
1.64 paf 5477:
1.66 paf 5478: ac_ext=c
5479: ac_cpp='$CPP $CPPFLAGS'
5480: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5481: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5482: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5483:
1.1 paf 5484:
1.66 paf 5485: echo "$as_me:$LINENO: checking for egrep" >&5
5486: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5487: if test "${ac_cv_prog_egrep+set}" = set; then
5488: echo $ECHO_N "(cached) $ECHO_C" >&6
1.64 paf 5489: else
1.66 paf 5490: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5491: then ac_cv_prog_egrep='grep -E'
5492: else ac_cv_prog_egrep='egrep'
5493: fi
5494: fi
5495: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5496: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5497: EGREP=$ac_cv_prog_egrep
5498:
5499:
5500: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5501: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5502: if test "${ac_cv_header_stdc+set}" = set; then
1.62 paf 5503: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 paf 5504: else
1.66 paf 5505: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 5506: /* confdefs.h. */
5507: _ACEOF
5508: cat confdefs.h >>conftest.$ac_ext
5509: cat >>conftest.$ac_ext <<_ACEOF
5510: /* end confdefs.h. */
1.66 paf 5511: #include <stdlib.h>
5512: #include <stdarg.h>
5513: #include <string.h>
5514: #include <float.h>
1.62 paf 5515:
5516: int
5517: main ()
5518: {
1.66 paf 5519:
1.62 paf 5520: ;
5521: return 0;
5522: }
5523: _ACEOF
1.66 paf 5524: rm -f conftest.$ac_objext
5525: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 5526: (eval $ac_compile) 2>conftest.er1
1.62 paf 5527: ac_status=$?
1.86 paf 5528: grep -v '^ *+' conftest.er1 >conftest.err
5529: rm -f conftest.er1
5530: cat conftest.err >&5
1.62 paf 5531: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532: (exit $ac_status); } &&
1.86 paf 5533: { ac_try='test -z "$ac_c_werror_flag"
5534: || test ! -s conftest.err'
5535: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536: (eval $ac_try) 2>&5
5537: ac_status=$?
5538: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539: (exit $ac_status); }; } &&
5540: { ac_try='test -s conftest.$ac_objext'
1.62 paf 5541: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542: (eval $ac_try) 2>&5
5543: ac_status=$?
5544: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545: (exit $ac_status); }; }; then
1.66 paf 5546: ac_cv_header_stdc=yes
1.62 paf 5547: else
5548: echo "$as_me: failed program was:" >&5
5549: sed 's/^/| /' conftest.$ac_ext >&5
5550:
1.66 paf 5551: ac_cv_header_stdc=no
1.62 paf 5552: fi
1.86 paf 5553: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.64 paf 5554:
1.66 paf 5555: if test $ac_cv_header_stdc = yes; then
5556: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5557: cat >conftest.$ac_ext <<_ACEOF
5558: /* confdefs.h. */
1.62 paf 5559: _ACEOF
1.66 paf 5560: cat confdefs.h >>conftest.$ac_ext
5561: cat >>conftest.$ac_ext <<_ACEOF
5562: /* end confdefs.h. */
5563: #include <string.h>
1.64 paf 5564:
1.66 paf 5565: _ACEOF
5566: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5567: $EGREP "memchr" >/dev/null 2>&1; then
5568: :
5569: else
5570: ac_cv_header_stdc=no
1.64 paf 5571: fi
1.66 paf 5572: rm -f conftest*
1.64 paf 5573:
5574: fi
5575:
1.66 paf 5576: if test $ac_cv_header_stdc = yes; then
5577: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5578: cat >conftest.$ac_ext <<_ACEOF
5579: /* confdefs.h. */
5580: _ACEOF
5581: cat confdefs.h >>conftest.$ac_ext
5582: cat >>conftest.$ac_ext <<_ACEOF
5583: /* end confdefs.h. */
5584: #include <stdlib.h>
1.64 paf 5585:
1.66 paf 5586: _ACEOF
5587: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5588: $EGREP "free" >/dev/null 2>&1; then
5589: :
5590: else
5591: ac_cv_header_stdc=no
1.64 paf 5592: fi
1.66 paf 5593: rm -f conftest*
1.64 paf 5594:
5595: fi
5596:
1.66 paf 5597: if test $ac_cv_header_stdc = yes; then
5598: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5599: if test "$cross_compiling" = yes; then
5600: :
1.64 paf 5601: else
5602: cat >conftest.$ac_ext <<_ACEOF
5603: /* confdefs.h. */
5604: _ACEOF
5605: cat confdefs.h >>conftest.$ac_ext
5606: cat >>conftest.$ac_ext <<_ACEOF
5607: /* end confdefs.h. */
1.66 paf 5608: #include <ctype.h>
5609: #if ((' ' & 0x0FF) == 0x020)
5610: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5611: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1.64 paf 5612: #else
1.66 paf 5613: # define ISLOWER(c) \
1.86 paf 5614: (('a' <= (c) && (c) <= 'i') \
5615: || ('j' <= (c) && (c) <= 'r') \
5616: || ('s' <= (c) && (c) <= 'z'))
1.66 paf 5617: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1.64 paf 5618: #endif
5619:
1.66 paf 5620: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.64 paf 5621: int
5622: main ()
5623: {
1.66 paf 5624: int i;
5625: for (i = 0; i < 256; i++)
5626: if (XOR (islower (i), ISLOWER (i))
1.86 paf 5627: || toupper (i) != TOUPPER (i))
1.66 paf 5628: exit(2);
5629: exit (0);
1.64 paf 5630: }
5631: _ACEOF
1.66 paf 5632: rm -f conftest$ac_exeext
1.64 paf 5633: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5634: (eval $ac_link) 2>&5
5635: ac_status=$?
5636: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 5637: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.64 paf 5638: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639: (eval $ac_try) 2>&5
5640: ac_status=$?
5641: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642: (exit $ac_status); }; }; then
1.66 paf 5643: :
1.64 paf 5644: else
1.66 paf 5645: echo "$as_me: program exited with status $ac_status" >&5
5646: echo "$as_me: failed program was:" >&5
1.64 paf 5647: sed 's/^/| /' conftest.$ac_ext >&5
5648:
1.66 paf 5649: ( exit $ac_status )
5650: ac_cv_header_stdc=no
5651: fi
1.86 paf 5652: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.66 paf 5653: fi
1.64 paf 5654: fi
5655: fi
1.66 paf 5656: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5657: echo "${ECHO_T}$ac_cv_header_stdc" >&6
5658: if test $ac_cv_header_stdc = yes; then
5659:
5660: cat >>confdefs.h <<\_ACEOF
5661: #define STDC_HEADERS 1
1.64 paf 5662: _ACEOF
5663:
5664: fi
5665:
1.66 paf 5666: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5667:
5668:
5669:
5670:
5671:
1.1 paf 5672:
5673:
1.62 paf 5674:
5675:
1.66 paf 5676: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
1.86 paf 5677: inttypes.h stdint.h unistd.h
1.66 paf 5678: do
5679: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5680: echo "$as_me:$LINENO: checking for $ac_header" >&5
5681: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5682: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.62 paf 5683: echo $ECHO_N "(cached) $ECHO_C" >&6
5684: else
5685: cat >conftest.$ac_ext <<_ACEOF
5686: /* confdefs.h. */
5687: _ACEOF
5688: cat confdefs.h >>conftest.$ac_ext
5689: cat >>conftest.$ac_ext <<_ACEOF
5690: /* end confdefs.h. */
1.66 paf 5691: $ac_includes_default
5692:
5693: #include <$ac_header>
1.62 paf 5694: _ACEOF
1.66 paf 5695: rm -f conftest.$ac_objext
5696: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 5697: (eval $ac_compile) 2>conftest.er1
1.66 paf 5698: ac_status=$?
1.86 paf 5699: grep -v '^ *+' conftest.er1 >conftest.err
5700: rm -f conftest.er1
5701: cat conftest.err >&5
1.66 paf 5702: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703: (exit $ac_status); } &&
1.86 paf 5704: { ac_try='test -z "$ac_c_werror_flag"
5705: || test ! -s conftest.err'
5706: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707: (eval $ac_try) 2>&5
5708: ac_status=$?
5709: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710: (exit $ac_status); }; } &&
5711: { ac_try='test -s conftest.$ac_objext'
1.66 paf 5712: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713: (eval $ac_try) 2>&5
1.62 paf 5714: ac_status=$?
5715: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 5716: (exit $ac_status); }; }; then
5717: eval "$as_ac_Header=yes"
1.62 paf 5718: else
5719: echo "$as_me: failed program was:" >&5
5720: sed 's/^/| /' conftest.$ac_ext >&5
5721:
1.66 paf 5722: eval "$as_ac_Header=no"
5723: fi
1.86 paf 5724: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 5725: fi
5726: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5727: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5728: if test `eval echo '${'$as_ac_Header'}'` = yes; then
5729: cat >>confdefs.h <<_ACEOF
5730: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5731: _ACEOF
5732:
1.1 paf 5733: fi
5734:
1.66 paf 5735: done
5736:
5737:
5738: echo "$as_me:$LINENO: checking for size_t" >&5
5739: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5740: if test "${ac_cv_type_size_t+set}" = set; then
5741: echo $ECHO_N "(cached) $ECHO_C" >&6
5742: else
1.62 paf 5743: cat >conftest.$ac_ext <<_ACEOF
5744: /* confdefs.h. */
5745: _ACEOF
5746: cat confdefs.h >>conftest.$ac_ext
5747: cat >>conftest.$ac_ext <<_ACEOF
5748: /* end confdefs.h. */
1.66 paf 5749: $ac_includes_default
5750: int
5751: main ()
5752: {
5753: if ((size_t *) 0)
5754: return 0;
5755: if (sizeof (size_t))
5756: return 0;
5757: ;
5758: return 0;
5759: }
1.62 paf 5760: _ACEOF
1.66 paf 5761: rm -f conftest.$ac_objext
5762: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 5763: (eval $ac_compile) 2>conftest.er1
1.66 paf 5764: ac_status=$?
1.86 paf 5765: grep -v '^ *+' conftest.er1 >conftest.err
5766: rm -f conftest.er1
5767: cat conftest.err >&5
1.66 paf 5768: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769: (exit $ac_status); } &&
1.86 paf 5770: { ac_try='test -z "$ac_c_werror_flag"
5771: || test ! -s conftest.err'
5772: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773: (eval $ac_try) 2>&5
5774: ac_status=$?
5775: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776: (exit $ac_status); }; } &&
5777: { ac_try='test -s conftest.$ac_objext'
1.66 paf 5778: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779: (eval $ac_try) 2>&5
1.62 paf 5780: ac_status=$?
5781: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 5782: (exit $ac_status); }; }; then
5783: ac_cv_type_size_t=yes
1.1 paf 5784: else
1.62 paf 5785: echo "$as_me: failed program was:" >&5
5786: sed 's/^/| /' conftest.$ac_ext >&5
5787:
1.66 paf 5788: ac_cv_type_size_t=no
1.1 paf 5789: fi
1.86 paf 5790: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 5791: fi
1.66 paf 5792: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5793: echo "${ECHO_T}$ac_cv_type_size_t" >&6
5794: if test $ac_cv_type_size_t = yes; then
5795: :
5796: else
1.1 paf 5797:
1.66 paf 5798: cat >>confdefs.h <<_ACEOF
5799: #define size_t unsigned
5800: _ACEOF
1.62 paf 5801:
5802: fi
1.66 paf 5803:
5804: echo "$as_me:$LINENO: checking for off_t" >&5
5805: echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5806: if test "${ac_cv_type_off_t+set}" = set; then
5807: echo $ECHO_N "(cached) $ECHO_C" >&6
1.62 paf 5808: else
5809: cat >conftest.$ac_ext <<_ACEOF
5810: /* confdefs.h. */
5811: _ACEOF
5812: cat confdefs.h >>conftest.$ac_ext
5813: cat >>conftest.$ac_ext <<_ACEOF
5814: /* end confdefs.h. */
1.66 paf 5815: $ac_includes_default
5816: int
5817: main ()
5818: {
5819: if ((off_t *) 0)
5820: return 0;
5821: if (sizeof (off_t))
5822: return 0;
5823: ;
5824: return 0;
5825: }
1.62 paf 5826: _ACEOF
1.66 paf 5827: rm -f conftest.$ac_objext
5828: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 5829: (eval $ac_compile) 2>conftest.er1
1.66 paf 5830: ac_status=$?
1.86 paf 5831: grep -v '^ *+' conftest.er1 >conftest.err
5832: rm -f conftest.er1
5833: cat conftest.err >&5
1.66 paf 5834: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835: (exit $ac_status); } &&
1.86 paf 5836: { ac_try='test -z "$ac_c_werror_flag"
5837: || test ! -s conftest.err'
5838: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839: (eval $ac_try) 2>&5
5840: ac_status=$?
5841: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842: (exit $ac_status); }; } &&
5843: { ac_try='test -s conftest.$ac_objext'
1.66 paf 5844: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845: (eval $ac_try) 2>&5
1.62 paf 5846: ac_status=$?
5847: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 5848: (exit $ac_status); }; }; then
5849: ac_cv_type_off_t=yes
1.62 paf 5850: else
1.66 paf 5851: echo "$as_me: failed program was:" >&5
5852: sed 's/^/| /' conftest.$ac_ext >&5
5853:
5854: ac_cv_type_off_t=no
5855: fi
1.86 paf 5856: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 5857: fi
1.66 paf 5858: echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5859: echo "${ECHO_T}$ac_cv_type_off_t" >&6
5860: if test $ac_cv_type_off_t = yes; then
1.62 paf 5861: :
5862: else
1.1 paf 5863:
1.66 paf 5864: cat >>confdefs.h <<_ACEOF
5865: #define off_t long
5866: _ACEOF
5867:
1.62 paf 5868: fi
1.1 paf 5869:
1.66 paf 5870: echo "$as_me:$LINENO: checking for ssize_t" >&5
5871: echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
5872: if test "${ac_cv_type_ssize_t+set}" = set; then
5873: echo $ECHO_N "(cached) $ECHO_C" >&6
5874: else
1.62 paf 5875: cat >conftest.$ac_ext <<_ACEOF
5876: /* confdefs.h. */
5877: _ACEOF
5878: cat confdefs.h >>conftest.$ac_ext
5879: cat >>conftest.$ac_ext <<_ACEOF
5880: /* end confdefs.h. */
1.66 paf 5881: $ac_includes_default
5882: int
5883: main ()
5884: {
5885: if ((ssize_t *) 0)
5886: return 0;
5887: if (sizeof (ssize_t))
5888: return 0;
5889: ;
5890: return 0;
5891: }
1.62 paf 5892: _ACEOF
1.66 paf 5893: rm -f conftest.$ac_objext
5894: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 5895: (eval $ac_compile) 2>conftest.er1
1.66 paf 5896: ac_status=$?
1.86 paf 5897: grep -v '^ *+' conftest.er1 >conftest.err
5898: rm -f conftest.er1
5899: cat conftest.err >&5
1.66 paf 5900: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901: (exit $ac_status); } &&
1.86 paf 5902: { ac_try='test -z "$ac_c_werror_flag"
5903: || test ! -s conftest.err'
5904: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5905: (eval $ac_try) 2>&5
5906: ac_status=$?
5907: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908: (exit $ac_status); }; } &&
5909: { ac_try='test -s conftest.$ac_objext'
1.66 paf 5910: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911: (eval $ac_try) 2>&5
1.62 paf 5912: ac_status=$?
5913: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 5914: (exit $ac_status); }; }; then
5915: ac_cv_type_ssize_t=yes
1.1 paf 5916: else
1.62 paf 5917: echo "$as_me: failed program was:" >&5
5918: sed 's/^/| /' conftest.$ac_ext >&5
5919:
1.66 paf 5920: ac_cv_type_ssize_t=no
5921: fi
1.86 paf 5922: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 5923: fi
1.66 paf 5924: echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
5925: echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
5926: if test $ac_cv_type_ssize_t = yes; then
1.1 paf 5927: :
5928: else
1.66 paf 5929:
5930: cat >>confdefs.h <<_ACEOF
5931: #define ssize_t int
5932: _ACEOF
5933:
1.1 paf 5934: fi
1.62 paf 5935:
5936:
5937:
5938:
1.66 paf 5939: echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5940: echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5941: if test "${ac_cv_header_time+set}" = set; then
1.62 paf 5942: echo $ECHO_N "(cached) $ECHO_C" >&6
5943: else
5944: cat >conftest.$ac_ext <<_ACEOF
5945: /* confdefs.h. */
5946: _ACEOF
5947: cat confdefs.h >>conftest.$ac_ext
5948: cat >>conftest.$ac_ext <<_ACEOF
5949: /* end confdefs.h. */
1.66 paf 5950: #include <sys/types.h>
5951: #include <sys/time.h>
5952: #include <time.h>
1.62 paf 5953:
5954: int
5955: main ()
5956: {
1.66 paf 5957: if ((struct tm *) 0)
5958: return 0;
1.62 paf 5959: ;
5960: return 0;
5961: }
5962: _ACEOF
5963: rm -f conftest.$ac_objext
5964: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 5965: (eval $ac_compile) 2>conftest.er1
1.62 paf 5966: ac_status=$?
1.86 paf 5967: grep -v '^ *+' conftest.er1 >conftest.err
5968: rm -f conftest.er1
5969: cat conftest.err >&5
1.62 paf 5970: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971: (exit $ac_status); } &&
1.86 paf 5972: { ac_try='test -z "$ac_c_werror_flag"
5973: || test ! -s conftest.err'
5974: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975: (eval $ac_try) 2>&5
5976: ac_status=$?
5977: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978: (exit $ac_status); }; } &&
5979: { ac_try='test -s conftest.$ac_objext'
1.62 paf 5980: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5981: (eval $ac_try) 2>&5
5982: ac_status=$?
5983: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984: (exit $ac_status); }; }; then
1.66 paf 5985: ac_cv_header_time=yes
1.1 paf 5986: else
1.62 paf 5987: echo "$as_me: failed program was:" >&5
5988: sed 's/^/| /' conftest.$ac_ext >&5
5989:
1.66 paf 5990: ac_cv_header_time=no
1.1 paf 5991: fi
1.86 paf 5992: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 5993: fi
5994: echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5995: echo "${ECHO_T}$ac_cv_header_time" >&6
5996: if test $ac_cv_header_time = yes; then
1.1 paf 5997:
1.66 paf 5998: cat >>confdefs.h <<\_ACEOF
5999: #define TIME_WITH_SYS_TIME 1
1.62 paf 6000: _ACEOF
6001:
1.1 paf 6002: fi
6003:
6004:
1.62 paf 6005:
1.1 paf 6006:
1.66 paf 6007:
6008:
6009:
6010:
6011:
6012:
6013:
6014:
6015:
6016:
6017:
6018:
6019:
6020:
6021:
6022:
6023:
6024:
6025:
6026:
6027:
6028:
6029:
6030:
6031:
6032:
6033:
6034:
1.67 paf 6035: for ac_header in assert.h \
6036: signal.h \
1.66 paf 6037: unistd.h \
6038: process.h \
6039: stddef.h \
6040: stdarg.h \
6041: fcntl.h \
6042: sys/stat.h \
6043: io.h \
6044: stdio.h \
6045: errno.h \
6046: ctype.h \
6047: math.h \
6048: crypt.h \
6049: time.h sys/time.h \
6050: string.h \
6051: direct.h \
6052: setjmp.h \
6053: memory.h \
6054: sys/file.h \
6055: sys/locking.h \
6056: sys/types.h \
6057: sys/select.h \
6058: sys/resource.h \
6059: winsock.h \
6060: sys/socket.h \
6061: netinet/in.h \
6062: arpa/inet.h \
6063: netdb.h
6064:
6065: do
6066: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6067: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6068: echo "$as_me:$LINENO: checking for $ac_header" >&5
6069: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6070: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6071: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 6072: fi
1.66 paf 6073: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6074: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1 paf 6075: else
1.66 paf 6076: # Is the header compilable?
6077: echo "$as_me:$LINENO: checking $ac_header usability" >&5
6078: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6079: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 6080: /* confdefs.h. */
6081: _ACEOF
6082: cat confdefs.h >>conftest.$ac_ext
6083: cat >>conftest.$ac_ext <<_ACEOF
6084: /* end confdefs.h. */
1.66 paf 6085: $ac_includes_default
6086: #include <$ac_header>
1.62 paf 6087: _ACEOF
1.66 paf 6088: rm -f conftest.$ac_objext
6089: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 6090: (eval $ac_compile) 2>conftest.er1
1.62 paf 6091: ac_status=$?
1.86 paf 6092: grep -v '^ *+' conftest.er1 >conftest.err
6093: rm -f conftest.er1
6094: cat conftest.err >&5
1.62 paf 6095: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 6096: (exit $ac_status); } &&
1.86 paf 6097: { ac_try='test -z "$ac_c_werror_flag"
6098: || test ! -s conftest.err'
6099: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100: (eval $ac_try) 2>&5
6101: ac_status=$?
6102: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103: (exit $ac_status); }; } &&
6104: { ac_try='test -s conftest.$ac_objext'
1.62 paf 6105: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106: (eval $ac_try) 2>&5
6107: ac_status=$?
6108: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109: (exit $ac_status); }; }; then
1.66 paf 6110: ac_header_compiler=yes
1.1 paf 6111: else
1.66 paf 6112: echo "$as_me: failed program was:" >&5
1.62 paf 6113: sed 's/^/| /' conftest.$ac_ext >&5
6114:
1.66 paf 6115: ac_header_compiler=no
1.1 paf 6116: fi
1.86 paf 6117: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 6118: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6119: echo "${ECHO_T}$ac_header_compiler" >&6
6120:
6121: # Is the header present?
6122: echo "$as_me:$LINENO: checking $ac_header presence" >&5
6123: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6124: cat >conftest.$ac_ext <<_ACEOF
6125: /* confdefs.h. */
6126: _ACEOF
6127: cat confdefs.h >>conftest.$ac_ext
6128: cat >>conftest.$ac_ext <<_ACEOF
6129: /* end confdefs.h. */
6130: #include <$ac_header>
6131: _ACEOF
6132: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6133: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6134: ac_status=$?
6135: grep -v '^ *+' conftest.er1 >conftest.err
6136: rm -f conftest.er1
6137: cat conftest.err >&5
6138: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139: (exit $ac_status); } >/dev/null; then
6140: if test -s conftest.err; then
6141: ac_cpp_err=$ac_c_preproc_warn_flag
1.86 paf 6142: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.66 paf 6143: else
6144: ac_cpp_err=
6145: fi
6146: else
6147: ac_cpp_err=yes
1.1 paf 6148: fi
1.66 paf 6149: if test -z "$ac_cpp_err"; then
6150: ac_header_preproc=yes
6151: else
6152: echo "$as_me: failed program was:" >&5
6153: sed 's/^/| /' conftest.$ac_ext >&5
6154:
6155: ac_header_preproc=no
1.1 paf 6156: fi
1.66 paf 6157: rm -f conftest.err conftest.$ac_ext
6158: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6159: echo "${ECHO_T}$ac_header_preproc" >&6
6160:
6161: # So? What about this header?
1.86 paf 6162: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6163: yes:no: )
1.66 paf 6164: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6165: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.86 paf 6166: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6167: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6168: ac_header_preproc=yes
1.66 paf 6169: ;;
1.86 paf 6170: no:yes:* )
1.66 paf 6171: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6172: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.86 paf 6173: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6174: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6175: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6176: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6177: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6178: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.66 paf 6179: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6180: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.86 paf 6181: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6182: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.66 paf 6183: (
6184: cat <<\_ASBOX
1.86 paf 6185: ## ------------------------------------------ ##
6186: ## Report this to the AC_PACKAGE_NAME lists. ##
6187: ## ------------------------------------------ ##
1.66 paf 6188: _ASBOX
6189: ) |
6190: sed "s/^/$as_me: WARNING: /" >&2
6191: ;;
6192: esac
6193: echo "$as_me:$LINENO: checking for $ac_header" >&5
6194: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6195: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6196: echo $ECHO_N "(cached) $ECHO_C" >&6
6197: else
1.86 paf 6198: eval "$as_ac_Header=\$ac_header_preproc"
1.1 paf 6199: fi
1.66 paf 6200: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6201: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1 paf 6202:
1.66 paf 6203: fi
6204: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6205: cat >>confdefs.h <<_ACEOF
6206: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.62 paf 6207: _ACEOF
6208:
6209: fi
6210:
1.66 paf 6211: done
1.62 paf 6212:
6213:
6214:
1.66 paf 6215: case "$host" in
1.107 misha 6216: *-freebsd4*)
6217:
6218: cat >>confdefs.h <<\_ACEOF
6219: #define FREEBSD4
6220: _ACEOF
6221:
6222: ;;
1.66 paf 6223: *-sunos5.6* | *-solaris2.6*)
1.62 paf 6224:
1.66 paf 6225: echo "$as_me:$LINENO: checking for main in -lxnet" >&5
6226: echo $ECHO_N "checking for main in -lxnet... $ECHO_C" >&6
6227: if test "${ac_cv_lib_xnet_main+set}" = set; then
1.62 paf 6228: echo $ECHO_N "(cached) $ECHO_C" >&6
6229: else
1.66 paf 6230: ac_check_lib_save_LIBS=$LIBS
6231: LIBS="-lxnet $LIBS"
6232: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 6233: /* confdefs.h. */
6234: _ACEOF
6235: cat confdefs.h >>conftest.$ac_ext
6236: cat >>conftest.$ac_ext <<_ACEOF
6237: /* end confdefs.h. */
6238:
1.66 paf 6239:
6240: int
6241: main ()
6242: {
6243: main ();
6244: ;
6245: return 0;
6246: }
1.62 paf 6247: _ACEOF
1.66 paf 6248: rm -f conftest.$ac_objext conftest$ac_exeext
6249: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 6250: (eval $ac_link) 2>conftest.er1
1.62 paf 6251: ac_status=$?
1.86 paf 6252: grep -v '^ *+' conftest.er1 >conftest.err
6253: rm -f conftest.er1
6254: cat conftest.err >&5
1.62 paf 6255: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256: (exit $ac_status); } &&
1.86 paf 6257: { ac_try='test -z "$ac_c_werror_flag"
6258: || test ! -s conftest.err'
6259: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260: (eval $ac_try) 2>&5
6261: ac_status=$?
6262: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263: (exit $ac_status); }; } &&
6264: { ac_try='test -s conftest$ac_exeext'
1.62 paf 6265: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266: (eval $ac_try) 2>&5
6267: ac_status=$?
6268: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269: (exit $ac_status); }; }; then
1.66 paf 6270: ac_cv_lib_xnet_main=yes
1.62 paf 6271: else
6272: echo "$as_me: failed program was:" >&5
6273: sed 's/^/| /' conftest.$ac_ext >&5
6274:
1.66 paf 6275: ac_cv_lib_xnet_main=no
1.62 paf 6276: fi
1.86 paf 6277: rm -f conftest.err conftest.$ac_objext \
6278: conftest$ac_exeext conftest.$ac_ext
1.66 paf 6279: LIBS=$ac_check_lib_save_LIBS
1.62 paf 6280: fi
1.66 paf 6281: echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_main" >&5
6282: echo "${ECHO_T}$ac_cv_lib_xnet_main" >&6
6283: if test $ac_cv_lib_xnet_main = yes; then
1.62 paf 6284: cat >>confdefs.h <<_ACEOF
1.66 paf 6285: #define HAVE_LIBXNET 1
1.62 paf 6286: _ACEOF
1.1 paf 6287:
1.66 paf 6288: LIBS="-lxnet $LIBS"
6289:
1.1 paf 6290: fi
6291:
1.66 paf 6292: ;;
6293: *-sunos5* | *-solaris2*)
1.62 paf 6294:
1.66 paf 6295: echo "$as_me:$LINENO: checking for main in -lsocket" >&5
6296: echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
6297: if test "${ac_cv_lib_socket_main+set}" = set; then
1.62 paf 6298: echo $ECHO_N "(cached) $ECHO_C" >&6
6299: else
1.66 paf 6300: ac_check_lib_save_LIBS=$LIBS
6301: LIBS="-lsocket $LIBS"
6302: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 6303: /* confdefs.h. */
6304: _ACEOF
6305: cat confdefs.h >>conftest.$ac_ext
6306: cat >>conftest.$ac_ext <<_ACEOF
6307: /* end confdefs.h. */
1.66 paf 6308:
6309:
1.62 paf 6310: int
6311: main ()
6312: {
1.66 paf 6313: main ();
1.62 paf 6314: ;
6315: return 0;
6316: }
6317: _ACEOF
1.66 paf 6318: rm -f conftest.$ac_objext conftest$ac_exeext
6319: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 6320: (eval $ac_link) 2>conftest.er1
1.62 paf 6321: ac_status=$?
1.86 paf 6322: grep -v '^ *+' conftest.er1 >conftest.err
6323: rm -f conftest.er1
6324: cat conftest.err >&5
1.62 paf 6325: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326: (exit $ac_status); } &&
1.86 paf 6327: { ac_try='test -z "$ac_c_werror_flag"
6328: || test ! -s conftest.err'
6329: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330: (eval $ac_try) 2>&5
6331: ac_status=$?
6332: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333: (exit $ac_status); }; } &&
6334: { ac_try='test -s conftest$ac_exeext'
1.62 paf 6335: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336: (eval $ac_try) 2>&5
6337: ac_status=$?
6338: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339: (exit $ac_status); }; }; then
1.66 paf 6340: ac_cv_lib_socket_main=yes
1.1 paf 6341: else
1.62 paf 6342: echo "$as_me: failed program was:" >&5
6343: sed 's/^/| /' conftest.$ac_ext >&5
6344:
1.66 paf 6345: ac_cv_lib_socket_main=no
1.1 paf 6346: fi
1.86 paf 6347: rm -f conftest.err conftest.$ac_objext \
6348: conftest$ac_exeext conftest.$ac_ext
1.66 paf 6349: LIBS=$ac_check_lib_save_LIBS
1.62 paf 6350: fi
1.66 paf 6351: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
6352: echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
6353: if test $ac_cv_lib_socket_main = yes; then
6354: cat >>confdefs.h <<_ACEOF
6355: #define HAVE_LIBSOCKET 1
6356: _ACEOF
1.1 paf 6357:
1.66 paf 6358: LIBS="-lsocket $LIBS"
1.1 paf 6359:
6360: fi
6361:
1.66 paf 6362:
6363: echo "$as_me:$LINENO: checking for main in -lnsl" >&5
6364: echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
6365: if test "${ac_cv_lib_nsl_main+set}" = set; then
1.62 paf 6366: echo $ECHO_N "(cached) $ECHO_C" >&6
6367: else
1.66 paf 6368: ac_check_lib_save_LIBS=$LIBS
6369: LIBS="-lnsl $LIBS"
6370: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 6371: /* confdefs.h. */
6372: _ACEOF
6373: cat confdefs.h >>conftest.$ac_ext
6374: cat >>conftest.$ac_ext <<_ACEOF
6375: /* end confdefs.h. */
1.66 paf 6376:
6377:
1.62 paf 6378: int
6379: main ()
6380: {
1.66 paf 6381: main ();
1.62 paf 6382: ;
6383: return 0;
6384: }
6385: _ACEOF
1.66 paf 6386: rm -f conftest.$ac_objext conftest$ac_exeext
6387: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 6388: (eval $ac_link) 2>conftest.er1
1.62 paf 6389: ac_status=$?
1.86 paf 6390: grep -v '^ *+' conftest.er1 >conftest.err
6391: rm -f conftest.er1
6392: cat conftest.err >&5
1.62 paf 6393: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394: (exit $ac_status); } &&
1.86 paf 6395: { ac_try='test -z "$ac_c_werror_flag"
6396: || test ! -s conftest.err'
6397: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398: (eval $ac_try) 2>&5
6399: ac_status=$?
6400: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401: (exit $ac_status); }; } &&
6402: { ac_try='test -s conftest$ac_exeext'
1.62 paf 6403: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404: (eval $ac_try) 2>&5
6405: ac_status=$?
6406: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407: (exit $ac_status); }; }; then
1.66 paf 6408: ac_cv_lib_nsl_main=yes
1.30 paf 6409: else
1.62 paf 6410: echo "$as_me: failed program was:" >&5
6411: sed 's/^/| /' conftest.$ac_ext >&5
6412:
1.66 paf 6413: ac_cv_lib_nsl_main=no
1.30 paf 6414: fi
1.86 paf 6415: rm -f conftest.err conftest.$ac_objext \
6416: conftest$ac_exeext conftest.$ac_ext
1.66 paf 6417: LIBS=$ac_check_lib_save_LIBS
1.62 paf 6418: fi
1.66 paf 6419: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
6420: echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
6421: if test $ac_cv_lib_nsl_main = yes; then
6422: cat >>confdefs.h <<_ACEOF
6423: #define HAVE_LIBNSL 1
6424: _ACEOF
1.30 paf 6425:
1.66 paf 6426: LIBS="-lnsl $LIBS"
1.30 paf 6427:
6428: fi
6429:
1.66 paf 6430: ;;
6431: *-nec-sysv4*)
6432:
6433: echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6434: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6435: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
1.62 paf 6436: echo $ECHO_N "(cached) $ECHO_C" >&6
6437: else
1.66 paf 6438: ac_check_lib_save_LIBS=$LIBS
6439: LIBS="-lnsl $LIBS"
6440: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 6441: /* confdefs.h. */
6442: _ACEOF
6443: cat confdefs.h >>conftest.$ac_ext
6444: cat >>conftest.$ac_ext <<_ACEOF
6445: /* end confdefs.h. */
1.66 paf 6446:
6447: /* Override any gcc2 internal prototype to avoid an error. */
6448: #ifdef __cplusplus
6449: extern "C"
6450: #endif
6451: /* We use char because int might match the return type of a gcc2
6452: builtin and then its argument prototype would still apply. */
6453: char gethostbyname ();
1.62 paf 6454: int
6455: main ()
6456: {
1.66 paf 6457: gethostbyname ();
1.62 paf 6458: ;
6459: return 0;
6460: }
6461: _ACEOF
1.66 paf 6462: rm -f conftest.$ac_objext conftest$ac_exeext
6463: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 6464: (eval $ac_link) 2>conftest.er1
1.62 paf 6465: ac_status=$?
1.86 paf 6466: grep -v '^ *+' conftest.er1 >conftest.err
6467: rm -f conftest.er1
6468: cat conftest.err >&5
1.62 paf 6469: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470: (exit $ac_status); } &&
1.86 paf 6471: { ac_try='test -z "$ac_c_werror_flag"
6472: || test ! -s conftest.err'
6473: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474: (eval $ac_try) 2>&5
6475: ac_status=$?
6476: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477: (exit $ac_status); }; } &&
6478: { ac_try='test -s conftest$ac_exeext'
1.62 paf 6479: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480: (eval $ac_try) 2>&5
6481: ac_status=$?
6482: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483: (exit $ac_status); }; }; then
1.66 paf 6484: ac_cv_lib_nsl_gethostbyname=yes
1.30 paf 6485: else
1.62 paf 6486: echo "$as_me: failed program was:" >&5
6487: sed 's/^/| /' conftest.$ac_ext >&5
6488:
1.66 paf 6489: ac_cv_lib_nsl_gethostbyname=no
1.30 paf 6490: fi
1.86 paf 6491: rm -f conftest.err conftest.$ac_objext \
6492: conftest$ac_exeext conftest.$ac_ext
1.66 paf 6493: LIBS=$ac_check_lib_save_LIBS
1.62 paf 6494: fi
1.66 paf 6495: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6496: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6497: if test $ac_cv_lib_nsl_gethostbyname = yes; then
6498: cat >>confdefs.h <<_ACEOF
6499: #define HAVE_LIBNSL 1
6500: _ACEOF
1.30 paf 6501:
1.66 paf 6502: LIBS="-lnsl $LIBS"
1.30 paf 6503:
6504: fi
6505:
6506:
1.66 paf 6507: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6508: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
6509: if test "${ac_cv_lib_socket_socket+set}" = set; then
1.62 paf 6510: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 paf 6511: else
1.66 paf 6512: ac_check_lib_save_LIBS=$LIBS
6513: LIBS="-lsocket $LIBS"
6514: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 6515: /* confdefs.h. */
6516: _ACEOF
6517: cat confdefs.h >>conftest.$ac_ext
6518: cat >>conftest.$ac_ext <<_ACEOF
6519: /* end confdefs.h. */
6520:
1.66 paf 6521: /* Override any gcc2 internal prototype to avoid an error. */
6522: #ifdef __cplusplus
6523: extern "C"
6524: #endif
6525: /* We use char because int might match the return type of a gcc2
6526: builtin and then its argument prototype would still apply. */
6527: char socket ();
1.62 paf 6528: int
6529: main ()
6530: {
1.66 paf 6531: socket ();
1.62 paf 6532: ;
6533: return 0;
6534: }
6535: _ACEOF
1.66 paf 6536: rm -f conftest.$ac_objext conftest$ac_exeext
6537: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 6538: (eval $ac_link) 2>conftest.er1
1.62 paf 6539: ac_status=$?
1.86 paf 6540: grep -v '^ *+' conftest.er1 >conftest.err
6541: rm -f conftest.er1
6542: cat conftest.err >&5
1.62 paf 6543: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544: (exit $ac_status); } &&
1.86 paf 6545: { ac_try='test -z "$ac_c_werror_flag"
6546: || test ! -s conftest.err'
6547: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548: (eval $ac_try) 2>&5
6549: ac_status=$?
6550: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551: (exit $ac_status); }; } &&
6552: { ac_try='test -s conftest$ac_exeext'
1.62 paf 6553: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554: (eval $ac_try) 2>&5
6555: ac_status=$?
6556: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557: (exit $ac_status); }; }; then
1.66 paf 6558: ac_cv_lib_socket_socket=yes
1.8 paf 6559: else
1.62 paf 6560: echo "$as_me: failed program was:" >&5
6561: sed 's/^/| /' conftest.$ac_ext >&5
6562:
1.66 paf 6563: ac_cv_lib_socket_socket=no
1.8 paf 6564: fi
1.86 paf 6565: rm -f conftest.err conftest.$ac_objext \
6566: conftest$ac_exeext conftest.$ac_ext
1.66 paf 6567: LIBS=$ac_check_lib_save_LIBS
1.8 paf 6568: fi
1.66 paf 6569: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6570: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
6571: if test $ac_cv_lib_socket_socket = yes; then
6572: cat >>confdefs.h <<_ACEOF
6573: #define HAVE_LIBSOCKET 1
6574: _ACEOF
1.8 paf 6575:
1.66 paf 6576: LIBS="-lsocket $LIBS"
1.8 paf 6577:
6578: fi
6579:
1.66 paf 6580: ;;
6581: *-cygwin*)
1.8 paf 6582:
1.66 paf 6583: cat >>confdefs.h <<\_ACEOF
6584: #define WIN32
6585: _ACEOF
1.62 paf 6586:
6587:
1.66 paf 6588: echo "$as_me:$LINENO: checking for socket in -lwsock32" >&5
6589: echo $ECHO_N "checking for socket in -lwsock32... $ECHO_C" >&6
6590: if test "${ac_cv_lib_wsock32_socket+set}" = set; then
1.62 paf 6591: echo $ECHO_N "(cached) $ECHO_C" >&6
6592: else
1.66 paf 6593: ac_check_lib_save_LIBS=$LIBS
6594: LIBS="-lwsock32 $LIBS"
1.62 paf 6595: cat >conftest.$ac_ext <<_ACEOF
6596: /* confdefs.h. */
6597: _ACEOF
6598: cat confdefs.h >>conftest.$ac_ext
6599: cat >>conftest.$ac_ext <<_ACEOF
6600: /* end confdefs.h. */
1.66 paf 6601:
6602: /* Override any gcc2 internal prototype to avoid an error. */
6603: #ifdef __cplusplus
6604: extern "C"
6605: #endif
6606: /* We use char because int might match the return type of a gcc2
6607: builtin and then its argument prototype would still apply. */
6608: char socket ();
6609: int
6610: main ()
6611: {
6612: socket ();
6613: ;
6614: return 0;
6615: }
1.62 paf 6616: _ACEOF
1.66 paf 6617: rm -f conftest.$ac_objext conftest$ac_exeext
6618: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 6619: (eval $ac_link) 2>conftest.er1
1.62 paf 6620: ac_status=$?
1.86 paf 6621: grep -v '^ *+' conftest.er1 >conftest.err
6622: rm -f conftest.er1
6623: cat conftest.err >&5
1.62 paf 6624: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625: (exit $ac_status); } &&
1.86 paf 6626: { ac_try='test -z "$ac_c_werror_flag"
6627: || test ! -s conftest.err'
6628: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629: (eval $ac_try) 2>&5
6630: ac_status=$?
6631: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632: (exit $ac_status); }; } &&
6633: { ac_try='test -s conftest$ac_exeext'
1.62 paf 6634: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635: (eval $ac_try) 2>&5
6636: ac_status=$?
6637: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638: (exit $ac_status); }; }; then
1.66 paf 6639: ac_cv_lib_wsock32_socket=yes
1.62 paf 6640: else
6641: echo "$as_me: failed program was:" >&5
6642: sed 's/^/| /' conftest.$ac_ext >&5
6643:
1.66 paf 6644: ac_cv_lib_wsock32_socket=no
6645: fi
1.86 paf 6646: rm -f conftest.err conftest.$ac_objext \
6647: conftest$ac_exeext conftest.$ac_ext
1.66 paf 6648: LIBS=$ac_check_lib_save_LIBS
6649: fi
6650: echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_socket" >&5
6651: echo "${ECHO_T}$ac_cv_lib_wsock32_socket" >&6
6652: if test $ac_cv_lib_wsock32_socket = yes; then
6653: cat >>confdefs.h <<_ACEOF
6654: #define HAVE_LIBWSOCK32 1
6655: _ACEOF
6656:
6657: LIBS="-lwsock32 $LIBS"
6658:
1.62 paf 6659: fi
6660:
1.66 paf 6661: ;;
6662: # never tested this, only theoretically by letter from demos about parser2 build
6663: *-hpux*)
6664:
6665: echo "$as_me:$LINENO: checking for main in -lnsl" >&5
6666: echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
6667: if test "${ac_cv_lib_nsl_main+set}" = set; then
6668: echo $ECHO_N "(cached) $ECHO_C" >&6
6669: else
6670: ac_check_lib_save_LIBS=$LIBS
6671: LIBS="-lnsl $LIBS"
1.62 paf 6672: cat >conftest.$ac_ext <<_ACEOF
6673: /* confdefs.h. */
6674: _ACEOF
6675: cat confdefs.h >>conftest.$ac_ext
6676: cat >>conftest.$ac_ext <<_ACEOF
6677: /* end confdefs.h. */
1.66 paf 6678:
6679:
6680: int
6681: main ()
6682: {
6683: main ();
6684: ;
6685: return 0;
6686: }
1.62 paf 6687: _ACEOF
1.66 paf 6688: rm -f conftest.$ac_objext conftest$ac_exeext
6689: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 6690: (eval $ac_link) 2>conftest.er1
1.66 paf 6691: ac_status=$?
1.86 paf 6692: grep -v '^ *+' conftest.er1 >conftest.err
6693: rm -f conftest.er1
6694: cat conftest.err >&5
1.66 paf 6695: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696: (exit $ac_status); } &&
1.86 paf 6697: { ac_try='test -z "$ac_c_werror_flag"
6698: || test ! -s conftest.err'
6699: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700: (eval $ac_try) 2>&5
6701: ac_status=$?
6702: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703: (exit $ac_status); }; } &&
6704: { ac_try='test -s conftest$ac_exeext'
1.66 paf 6705: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706: (eval $ac_try) 2>&5
1.62 paf 6707: ac_status=$?
6708: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 6709: (exit $ac_status); }; }; then
6710: ac_cv_lib_nsl_main=yes
1.62 paf 6711: else
6712: echo "$as_me: failed program was:" >&5
6713: sed 's/^/| /' conftest.$ac_ext >&5
6714:
1.66 paf 6715: ac_cv_lib_nsl_main=no
1.62 paf 6716: fi
1.86 paf 6717: rm -f conftest.err conftest.$ac_objext \
6718: conftest$ac_exeext conftest.$ac_ext
1.66 paf 6719: LIBS=$ac_check_lib_save_LIBS
1.1 paf 6720: fi
1.66 paf 6721: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
6722: echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
6723: if test $ac_cv_lib_nsl_main = yes; then
1.62 paf 6724: cat >>confdefs.h <<_ACEOF
1.66 paf 6725: #define HAVE_LIBNSL 1
1.62 paf 6726: _ACEOF
6727:
1.66 paf 6728: LIBS="-lnsl $LIBS"
6729:
1.1 paf 6730: fi
1.62 paf 6731:
1.66 paf 6732: ;;
6733: esac
1.1 paf 6734:
6735:
1.66 paf 6736: echo "$as_me:$LINENO: checking for sin in -lm" >&5
6737: echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
6738: if test "${ac_cv_lib_m_sin+set}" = set; then
1.62 paf 6739: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 6740: else
1.62 paf 6741: ac_check_lib_save_LIBS=$LIBS
1.66 paf 6742: LIBS="-lm $LIBS"
1.62 paf 6743: cat >conftest.$ac_ext <<_ACEOF
6744: /* confdefs.h. */
6745: _ACEOF
6746: cat confdefs.h >>conftest.$ac_ext
6747: cat >>conftest.$ac_ext <<_ACEOF
6748: /* end confdefs.h. */
6749:
1.66 paf 6750: /* Override any gcc2 internal prototype to avoid an error. */
6751: #ifdef __cplusplus
6752: extern "C"
6753: #endif
6754: /* We use char because int might match the return type of a gcc2
6755: builtin and then its argument prototype would still apply. */
6756: char sin ();
1.62 paf 6757: int
6758: main ()
6759: {
1.66 paf 6760: sin ();
1.62 paf 6761: ;
6762: return 0;
6763: }
6764: _ACEOF
6765: rm -f conftest.$ac_objext conftest$ac_exeext
6766: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 6767: (eval $ac_link) 2>conftest.er1
1.62 paf 6768: ac_status=$?
1.86 paf 6769: grep -v '^ *+' conftest.er1 >conftest.err
6770: rm -f conftest.er1
6771: cat conftest.err >&5
1.62 paf 6772: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773: (exit $ac_status); } &&
1.86 paf 6774: { ac_try='test -z "$ac_c_werror_flag"
6775: || test ! -s conftest.err'
6776: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777: (eval $ac_try) 2>&5
6778: ac_status=$?
6779: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780: (exit $ac_status); }; } &&
6781: { ac_try='test -s conftest$ac_exeext'
1.62 paf 6782: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783: (eval $ac_try) 2>&5
6784: ac_status=$?
6785: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786: (exit $ac_status); }; }; then
1.66 paf 6787: ac_cv_lib_m_sin=yes
1.62 paf 6788: else
6789: echo "$as_me: failed program was:" >&5
6790: sed 's/^/| /' conftest.$ac_ext >&5
6791:
1.66 paf 6792: ac_cv_lib_m_sin=no
1.62 paf 6793: fi
1.86 paf 6794: rm -f conftest.err conftest.$ac_objext \
6795: conftest$ac_exeext conftest.$ac_ext
1.62 paf 6796: LIBS=$ac_check_lib_save_LIBS
6797: fi
1.66 paf 6798: echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6799: echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
6800: if test $ac_cv_lib_m_sin = yes; then
1.62 paf 6801: cat >>confdefs.h <<_ACEOF
1.66 paf 6802: #define HAVE_LIBM 1
1.62 paf 6803: _ACEOF
1.1 paf 6804:
1.66 paf 6805: LIBS="-lm $LIBS"
1.1 paf 6806:
6807: fi
6808:
1.62 paf 6809:
1.66 paf 6810:
6811: echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
6812: echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
6813: if test "${ac_cv_lib_crypt_crypt+set}" = set; then
1.62 paf 6814: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 6815: else
1.62 paf 6816: ac_check_lib_save_LIBS=$LIBS
1.66 paf 6817: LIBS="-lcrypt $LIBS"
1.62 paf 6818: cat >conftest.$ac_ext <<_ACEOF
6819: /* confdefs.h. */
6820: _ACEOF
6821: cat confdefs.h >>conftest.$ac_ext
6822: cat >>conftest.$ac_ext <<_ACEOF
6823: /* end confdefs.h. */
6824:
1.66 paf 6825: /* Override any gcc2 internal prototype to avoid an error. */
6826: #ifdef __cplusplus
6827: extern "C"
6828: #endif
6829: /* We use char because int might match the return type of a gcc2
6830: builtin and then its argument prototype would still apply. */
6831: char crypt ();
1.62 paf 6832: int
6833: main ()
6834: {
1.66 paf 6835: crypt ();
1.62 paf 6836: ;
6837: return 0;
6838: }
6839: _ACEOF
6840: rm -f conftest.$ac_objext conftest$ac_exeext
6841: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 6842: (eval $ac_link) 2>conftest.er1
1.62 paf 6843: ac_status=$?
1.86 paf 6844: grep -v '^ *+' conftest.er1 >conftest.err
6845: rm -f conftest.er1
6846: cat conftest.err >&5
1.62 paf 6847: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848: (exit $ac_status); } &&
1.86 paf 6849: { ac_try='test -z "$ac_c_werror_flag"
6850: || test ! -s conftest.err'
6851: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852: (eval $ac_try) 2>&5
6853: ac_status=$?
6854: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855: (exit $ac_status); }; } &&
6856: { ac_try='test -s conftest$ac_exeext'
1.62 paf 6857: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858: (eval $ac_try) 2>&5
6859: ac_status=$?
6860: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861: (exit $ac_status); }; }; then
1.66 paf 6862: ac_cv_lib_crypt_crypt=yes
1.62 paf 6863: else
6864: echo "$as_me: failed program was:" >&5
6865: sed 's/^/| /' conftest.$ac_ext >&5
6866:
1.66 paf 6867: ac_cv_lib_crypt_crypt=no
1.62 paf 6868: fi
1.86 paf 6869: rm -f conftest.err conftest.$ac_objext \
6870: conftest$ac_exeext conftest.$ac_ext
1.62 paf 6871: LIBS=$ac_check_lib_save_LIBS
6872: fi
1.66 paf 6873: echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
6874: echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
6875: if test $ac_cv_lib_crypt_crypt = yes; then
1.62 paf 6876: cat >>confdefs.h <<_ACEOF
1.66 paf 6877: #define HAVE_LIBCRYPT 1
1.62 paf 6878: _ACEOF
1.1 paf 6879:
1.66 paf 6880: LIBS="-lcrypt $LIBS"
6881:
6882: fi
6883:
6884:
6885:
6886:
6887:
6888:
6889:
6890:
6891:
6892:
6893:
6894:
1.80 paf 6895:
1.92 misha 6896:
1.112 misha 6897:
1.67 paf 6898: for ac_func in flock \
1.66 paf 6899: _locking \
6900: fcntl \
6901: lockf \
6902: ftruncate \
1.112 misha 6903: fchmod \
1.66 paf 6904: getrusage \
6905: gettimeofday \
6906: crypt \
1.80 paf 6907: sigsetjmp \
1.92 misha 6908: siglongjmp \
6909: unsetenv
1.66 paf 6910:
6911: do
6912: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6913: echo "$as_me:$LINENO: checking for $ac_func" >&5
6914: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6915: if eval "test \"\${$as_ac_var+set}\" = set"; then
6916: echo $ECHO_N "(cached) $ECHO_C" >&6
6917: else
6918: cat >conftest.$ac_ext <<_ACEOF
6919: /* confdefs.h. */
6920: _ACEOF
6921: cat confdefs.h >>conftest.$ac_ext
6922: cat >>conftest.$ac_ext <<_ACEOF
6923: /* end confdefs.h. */
1.86 paf 6924: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6925: For example, HP-UX 11i <limits.h> declares gettimeofday. */
6926: #define $ac_func innocuous_$ac_func
6927:
1.66 paf 6928: /* System header to define __stub macros and hopefully few prototypes,
6929: which can conflict with char $ac_func (); below.
6930: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6931: <limits.h> exists even on freestanding compilers. */
1.86 paf 6932:
1.66 paf 6933: #ifdef __STDC__
6934: # include <limits.h>
6935: #else
6936: # include <assert.h>
6937: #endif
1.86 paf 6938:
6939: #undef $ac_func
6940:
1.66 paf 6941: /* Override any gcc2 internal prototype to avoid an error. */
6942: #ifdef __cplusplus
6943: extern "C"
6944: {
6945: #endif
6946: /* We use char because int might match the return type of a gcc2
6947: builtin and then its argument prototype would still apply. */
6948: char $ac_func ();
6949: /* The GNU C library defines this for functions which it implements
6950: to always fail with ENOSYS. Some functions are actually named
6951: something starting with __ and the normal name is an alias. */
6952: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6953: choke me
6954: #else
6955: char (*f) () = $ac_func;
6956: #endif
6957: #ifdef __cplusplus
6958: }
6959: #endif
1.62 paf 6960:
6961: int
6962: main ()
6963: {
1.66 paf 6964: return f != $ac_func;
1.62 paf 6965: ;
6966: return 0;
6967: }
6968: _ACEOF
6969: rm -f conftest.$ac_objext conftest$ac_exeext
6970: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 6971: (eval $ac_link) 2>conftest.er1
1.62 paf 6972: ac_status=$?
1.86 paf 6973: grep -v '^ *+' conftest.er1 >conftest.err
6974: rm -f conftest.er1
6975: cat conftest.err >&5
1.62 paf 6976: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977: (exit $ac_status); } &&
1.86 paf 6978: { ac_try='test -z "$ac_c_werror_flag"
6979: || test ! -s conftest.err'
6980: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981: (eval $ac_try) 2>&5
6982: ac_status=$?
6983: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984: (exit $ac_status); }; } &&
6985: { ac_try='test -s conftest$ac_exeext'
1.62 paf 6986: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987: (eval $ac_try) 2>&5
6988: ac_status=$?
6989: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990: (exit $ac_status); }; }; then
1.66 paf 6991: eval "$as_ac_var=yes"
1.62 paf 6992: else
6993: echo "$as_me: failed program was:" >&5
6994: sed 's/^/| /' conftest.$ac_ext >&5
6995:
1.66 paf 6996: eval "$as_ac_var=no"
1.62 paf 6997: fi
1.86 paf 6998: rm -f conftest.err conftest.$ac_objext \
6999: conftest$ac_exeext conftest.$ac_ext
1.62 paf 7000: fi
1.66 paf 7001: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7002: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7003: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.62 paf 7004: cat >>confdefs.h <<_ACEOF
1.66 paf 7005: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.62 paf 7006: _ACEOF
1.1 paf 7007:
1.66 paf 7008: fi
7009: done
7010:
1.1 paf 7011:
7012:
1.67 paf 7013: pa_func=sigsetjmp
7014: echo "$as_me:$LINENO: checking for (maybe built-in) function $pa_func" >&5
7015: echo $ECHO_N "checking for (maybe built-in) function $pa_func... $ECHO_C" >&6
7016: cat >conftest.$ac_ext <<_ACEOF
7017: /* confdefs.h. */
7018: _ACEOF
7019: cat confdefs.h >>conftest.$ac_ext
7020: cat >>conftest.$ac_ext <<_ACEOF
7021: /* end confdefs.h. */
7022:
7023: #ifdef HAVE_SETJMP_H
7024: # include <setjmp.h>
7025: #endif
7026:
7027: int
7028: main ()
7029: {
7030:
7031: $pa_func(0,0);
7032:
7033: ;
7034: return 0;
7035: }
7036: _ACEOF
7037: rm -f conftest.$ac_objext
7038: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 7039: (eval $ac_compile) 2>conftest.er1
1.67 paf 7040: ac_status=$?
1.86 paf 7041: grep -v '^ *+' conftest.er1 >conftest.err
7042: rm -f conftest.er1
7043: cat conftest.err >&5
1.67 paf 7044: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045: (exit $ac_status); } &&
1.86 paf 7046: { ac_try='test -z "$ac_c_werror_flag"
7047: || test ! -s conftest.err'
7048: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049: (eval $ac_try) 2>&5
7050: ac_status=$?
7051: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052: (exit $ac_status); }; } &&
7053: { ac_try='test -s conftest.$ac_objext'
1.67 paf 7054: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055: (eval $ac_try) 2>&5
7056: ac_status=$?
7057: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058: (exit $ac_status); }; }; then
7059: echo "$as_me:$LINENO: result: yes" >&5
7060: echo "${ECHO_T}yes" >&6
7061: cat >>confdefs.h <<_ACEOF
7062: #define `echo "HAVE_$pa_func" | $as_tr_cpp` 1
7063: _ACEOF
7064:
7065:
7066: else
7067: echo "$as_me: failed program was:" >&5
7068: sed 's/^/| /' conftest.$ac_ext >&5
7069:
7070: echo "$as_me:$LINENO: result: no" >&5
7071: echo "${ECHO_T}no" >&6
7072:
7073: fi
1.86 paf 7074: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.67 paf 7075:
7076:
7077:
7078: ac_ext=cc
7079: ac_cpp='$CXXCPP $CPPFLAGS'
7080: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7081: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7082: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7083:
7084:
7085:
7086:
7087:
7088:
7089:
7090: for pa_func in trunc \
7091: round \
7092: sign
7093:
7094: do
7095:
7096: echo "$as_me:$LINENO: checking for (maybe built-in) math function $pa_func" >&5
7097: echo $ECHO_N "checking for (maybe built-in) math function $pa_func... $ECHO_C" >&6
7098: cat >conftest.$ac_ext <<_ACEOF
7099: /* confdefs.h. */
7100: _ACEOF
7101: cat confdefs.h >>conftest.$ac_ext
7102: cat >>conftest.$ac_ext <<_ACEOF
7103: /* end confdefs.h. */
7104:
7105: #ifdef HAVE_MATH_H
7106: # include <math.h>
7107: #endif
7108:
7109: int
7110: main ()
7111: {
7112:
7113: double result=$pa_func(1.6);
7114:
7115: ;
7116: return 0;
7117: }
7118: _ACEOF
7119: rm -f conftest.$ac_objext
7120: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 7121: (eval $ac_compile) 2>conftest.er1
1.67 paf 7122: ac_status=$?
1.86 paf 7123: grep -v '^ *+' conftest.er1 >conftest.err
7124: rm -f conftest.er1
7125: cat conftest.err >&5
1.67 paf 7126: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127: (exit $ac_status); } &&
1.86 paf 7128: { ac_try='test -z "$ac_cxx_werror_flag"
7129: || test ! -s conftest.err'
7130: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131: (eval $ac_try) 2>&5
7132: ac_status=$?
7133: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134: (exit $ac_status); }; } &&
7135: { ac_try='test -s conftest.$ac_objext'
1.67 paf 7136: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137: (eval $ac_try) 2>&5
7138: ac_status=$?
7139: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140: (exit $ac_status); }; }; then
7141: echo "$as_me:$LINENO: result: yes" >&5
7142: echo "${ECHO_T}yes" >&6
7143: cat >>confdefs.h <<_ACEOF
7144: #define `echo "HAVE_$pa_func" | $as_tr_cpp` 1
7145: _ACEOF
7146:
7147: else
7148: echo "$as_me: failed program was:" >&5
7149: sed 's/^/| /' conftest.$ac_ext >&5
7150:
7151: echo "$as_me:$LINENO: result: no" >&5
7152: echo "${ECHO_T}no" >&6
7153:
7154: fi
1.86 paf 7155: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.67 paf 7156:
7157: done
7158:
7159: ac_ext=c
7160: ac_cpp='$CPP $CPPFLAGS'
7161: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7162: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7163: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7164:
7165:
7166:
1.62 paf 7167:
1.66 paf 7168: for ac_func in qsort
7169: do
7170: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7171: echo "$as_me:$LINENO: checking for $ac_func" >&5
7172: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7173: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.62 paf 7174: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 7175: else
1.66 paf 7176: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 7177: /* confdefs.h. */
7178: _ACEOF
7179: cat confdefs.h >>conftest.$ac_ext
7180: cat >>conftest.$ac_ext <<_ACEOF
7181: /* end confdefs.h. */
1.86 paf 7182: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7183: For example, HP-UX 11i <limits.h> declares gettimeofday. */
7184: #define $ac_func innocuous_$ac_func
7185:
1.66 paf 7186: /* System header to define __stub macros and hopefully few prototypes,
7187: which can conflict with char $ac_func (); below.
7188: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7189: <limits.h> exists even on freestanding compilers. */
1.86 paf 7190:
1.66 paf 7191: #ifdef __STDC__
7192: # include <limits.h>
7193: #else
7194: # include <assert.h>
7195: #endif
1.86 paf 7196:
7197: #undef $ac_func
7198:
1.1 paf 7199: /* Override any gcc2 internal prototype to avoid an error. */
7200: #ifdef __cplusplus
7201: extern "C"
1.66 paf 7202: {
1.1 paf 7203: #endif
7204: /* We use char because int might match the return type of a gcc2
1.62 paf 7205: builtin and then its argument prototype would still apply. */
1.66 paf 7206: char $ac_func ();
7207: /* The GNU C library defines this for functions which it implements
7208: to always fail with ENOSYS. Some functions are actually named
7209: something starting with __ and the normal name is an alias. */
7210: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7211: choke me
7212: #else
7213: char (*f) () = $ac_func;
7214: #endif
7215: #ifdef __cplusplus
7216: }
7217: #endif
7218:
1.62 paf 7219: int
7220: main ()
7221: {
1.66 paf 7222: return f != $ac_func;
1.62 paf 7223: ;
7224: return 0;
7225: }
7226: _ACEOF
7227: rm -f conftest.$ac_objext conftest$ac_exeext
7228: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 7229: (eval $ac_link) 2>conftest.er1
1.62 paf 7230: ac_status=$?
1.86 paf 7231: grep -v '^ *+' conftest.er1 >conftest.err
7232: rm -f conftest.er1
7233: cat conftest.err >&5
1.62 paf 7234: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235: (exit $ac_status); } &&
1.86 paf 7236: { ac_try='test -z "$ac_c_werror_flag"
7237: || test ! -s conftest.err'
7238: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239: (eval $ac_try) 2>&5
7240: ac_status=$?
7241: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242: (exit $ac_status); }; } &&
7243: { ac_try='test -s conftest$ac_exeext'
1.62 paf 7244: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7245: (eval $ac_try) 2>&5
7246: ac_status=$?
7247: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248: (exit $ac_status); }; }; then
1.66 paf 7249: eval "$as_ac_var=yes"
1.62 paf 7250: else
7251: echo "$as_me: failed program was:" >&5
7252: sed 's/^/| /' conftest.$ac_ext >&5
7253:
1.66 paf 7254: eval "$as_ac_var=no"
1.62 paf 7255: fi
1.86 paf 7256: rm -f conftest.err conftest.$ac_objext \
7257: conftest$ac_exeext conftest.$ac_ext
1.62 paf 7258: fi
1.66 paf 7259: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7260: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7261: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.62 paf 7262: cat >>confdefs.h <<_ACEOF
1.66 paf 7263: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.62 paf 7264: _ACEOF
1.1 paf 7265:
1.66 paf 7266: else
7267: { { echo "$as_me:$LINENO: error: No qsort library function." >&5
7268: echo "$as_me: error: No qsort library function." >&2;}
7269: { (exit 1); exit 1; }; }
1.1 paf 7270: fi
1.66 paf 7271: done
1.1 paf 7272:
7273:
1.62 paf 7274:
1.66 paf 7275: echo "$as_me:$LINENO: checking for timezone variable" >&5
7276: echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6
1.62 paf 7277: cat >conftest.$ac_ext <<_ACEOF
7278: /* confdefs.h. */
7279: _ACEOF
7280: cat confdefs.h >>conftest.$ac_ext
7281: cat >>conftest.$ac_ext <<_ACEOF
7282: /* end confdefs.h. */
1.66 paf 7283: #include <time.h>
1.62 paf 7284: int
7285: main ()
7286: {
1.66 paf 7287:
7288: time_t test=timezone;
7289:
1.62 paf 7290: ;
7291: return 0;
7292: }
7293: _ACEOF
1.66 paf 7294: rm -f conftest.$ac_objext
7295: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 7296: (eval $ac_compile) 2>conftest.er1
1.62 paf 7297: ac_status=$?
1.86 paf 7298: grep -v '^ *+' conftest.er1 >conftest.err
7299: rm -f conftest.er1
7300: cat conftest.err >&5
1.62 paf 7301: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302: (exit $ac_status); } &&
1.86 paf 7303: { ac_try='test -z "$ac_c_werror_flag"
7304: || test ! -s conftest.err'
7305: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306: (eval $ac_try) 2>&5
7307: ac_status=$?
7308: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309: (exit $ac_status); }; } &&
7310: { ac_try='test -s conftest.$ac_objext'
1.62 paf 7311: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312: (eval $ac_try) 2>&5
7313: ac_status=$?
7314: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315: (exit $ac_status); }; }; then
1.66 paf 7316: cat >>confdefs.h <<\_ACEOF
7317: #define HAVE_TIMEZONE 1
7318: _ACEOF
7319:
7320: echo "$as_me:$LINENO: result: yes" >&5
7321: echo "${ECHO_T}yes" >&6
1.62 paf 7322: else
7323: echo "$as_me: failed program was:" >&5
7324: sed 's/^/| /' conftest.$ac_ext >&5
7325:
1.66 paf 7326: echo "$as_me:$LINENO: result: no" >&5
7327: echo "${ECHO_T}no" >&6
1.62 paf 7328: fi
1.86 paf 7329: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 7330:
1.66 paf 7331: echo "$as_me:$LINENO: checking for daylight variable" >&5
7332: echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6
1.62 paf 7333: cat >conftest.$ac_ext <<_ACEOF
7334: /* confdefs.h. */
7335: _ACEOF
7336: cat confdefs.h >>conftest.$ac_ext
7337: cat >>conftest.$ac_ext <<_ACEOF
7338: /* end confdefs.h. */
1.66 paf 7339: #include <time.h>
1.62 paf 7340: int
7341: main ()
7342: {
1.66 paf 7343:
7344: int test=daylight;
7345:
1.62 paf 7346: ;
7347: return 0;
7348: }
7349: _ACEOF
1.66 paf 7350: rm -f conftest.$ac_objext
7351: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 7352: (eval $ac_compile) 2>conftest.er1
1.62 paf 7353: ac_status=$?
1.86 paf 7354: grep -v '^ *+' conftest.er1 >conftest.err
7355: rm -f conftest.er1
7356: cat conftest.err >&5
1.62 paf 7357: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358: (exit $ac_status); } &&
1.86 paf 7359: { ac_try='test -z "$ac_c_werror_flag"
7360: || test ! -s conftest.err'
7361: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362: (eval $ac_try) 2>&5
7363: ac_status=$?
7364: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365: (exit $ac_status); }; } &&
7366: { ac_try='test -s conftest.$ac_objext'
1.62 paf 7367: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368: (eval $ac_try) 2>&5
7369: ac_status=$?
7370: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371: (exit $ac_status); }; }; then
1.66 paf 7372: cat >>confdefs.h <<\_ACEOF
7373: #define HAVE_DAYLIGHT 1
7374: _ACEOF
7375:
7376: echo "$as_me:$LINENO: result: yes" >&5
7377: echo "${ECHO_T}yes" >&6
1.62 paf 7378: else
7379: echo "$as_me: failed program was:" >&5
7380: sed 's/^/| /' conftest.$ac_ext >&5
7381:
1.66 paf 7382: echo "$as_me:$LINENO: result: no" >&5
7383: echo "${ECHO_T}no" >&6
1.62 paf 7384: fi
1.86 paf 7385: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 7386:
1.66 paf 7387: echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
7388: echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
1.62 paf 7389: cat >conftest.$ac_ext <<_ACEOF
7390: /* confdefs.h. */
7391: _ACEOF
7392: cat confdefs.h >>conftest.$ac_ext
7393: cat >>conftest.$ac_ext <<_ACEOF
7394: /* end confdefs.h. */
1.66 paf 7395: #include <time.h>
1.62 paf 7396: int
7397: main ()
7398: {
1.66 paf 7399: struct tm tm;
7400: tm.tm_gmtoff=0;
7401:
1.62 paf 7402: ;
7403: return 0;
7404: }
7405: _ACEOF
1.66 paf 7406: rm -f conftest.$ac_objext
7407: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 7408: (eval $ac_compile) 2>conftest.er1
1.62 paf 7409: ac_status=$?
1.86 paf 7410: grep -v '^ *+' conftest.er1 >conftest.err
7411: rm -f conftest.er1
7412: cat conftest.err >&5
1.62 paf 7413: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414: (exit $ac_status); } &&
1.86 paf 7415: { ac_try='test -z "$ac_c_werror_flag"
7416: || test ! -s conftest.err'
7417: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418: (eval $ac_try) 2>&5
7419: ac_status=$?
7420: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421: (exit $ac_status); }; } &&
7422: { ac_try='test -s conftest.$ac_objext'
1.62 paf 7423: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7424: (eval $ac_try) 2>&5
7425: ac_status=$?
7426: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427: (exit $ac_status); }; }; then
1.66 paf 7428: cat >>confdefs.h <<\_ACEOF
7429: #define HAVE_TM_GMTOFF 1
7430: _ACEOF
7431:
7432: echo "$as_me:$LINENO: result: yes" >&5
7433: echo "${ECHO_T}yes" >&6
1.62 paf 7434: else
7435: echo "$as_me: failed program was:" >&5
7436: sed 's/^/| /' conftest.$ac_ext >&5
7437:
1.66 paf 7438: echo "$as_me:$LINENO: result: no" >&5
7439: echo "${ECHO_T}no" >&6
1.62 paf 7440: fi
1.86 paf 7441: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 7442:
1.66 paf 7443: echo "$as_me:$LINENO: checking for tm_tzadj in struct tm" >&5
7444: echo $ECHO_N "checking for tm_tzadj in struct tm... $ECHO_C" >&6
1.62 paf 7445: cat >conftest.$ac_ext <<_ACEOF
7446: /* confdefs.h. */
7447: _ACEOF
7448: cat confdefs.h >>conftest.$ac_ext
7449: cat >>conftest.$ac_ext <<_ACEOF
7450: /* end confdefs.h. */
1.66 paf 7451: #include <time.h>
1.62 paf 7452: int
7453: main ()
7454: {
1.66 paf 7455: struct tm tm;
7456: tm.tm_tzadj=0;
7457:
1.62 paf 7458: ;
7459: return 0;
7460: }
7461: _ACEOF
1.66 paf 7462: rm -f conftest.$ac_objext
7463: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 7464: (eval $ac_compile) 2>conftest.er1
1.62 paf 7465: ac_status=$?
1.86 paf 7466: grep -v '^ *+' conftest.er1 >conftest.err
7467: rm -f conftest.er1
7468: cat conftest.err >&5
1.62 paf 7469: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470: (exit $ac_status); } &&
1.86 paf 7471: { ac_try='test -z "$ac_c_werror_flag"
7472: || test ! -s conftest.err'
7473: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474: (eval $ac_try) 2>&5
7475: ac_status=$?
7476: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477: (exit $ac_status); }; } &&
7478: { ac_try='test -s conftest.$ac_objext'
1.62 paf 7479: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480: (eval $ac_try) 2>&5
7481: ac_status=$?
7482: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483: (exit $ac_status); }; }; then
1.66 paf 7484: cat >>confdefs.h <<\_ACEOF
7485: #define HAVE_TM_TZADJ 1
7486: _ACEOF
7487:
7488: echo "$as_me:$LINENO: result: yes" >&5
7489: echo "${ECHO_T}yes" >&6
1.62 paf 7490: else
7491: echo "$as_me: failed program was:" >&5
7492: sed 's/^/| /' conftest.$ac_ext >&5
7493:
1.66 paf 7494: echo "$as_me:$LINENO: result: no" >&5
7495: echo "${ECHO_T}no" >&6
1.62 paf 7496: fi
1.86 paf 7497: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.31 paf 7498:
7499:
7500:
7501:
1.1 paf 7502:
7503:
7504:
1.62 paf 7505:
7506:
7507:
7508:
7509:
7510:
7511:
7512:
7513:
7514:
7515:
7516:
7517:
7518:
7519:
7520:
7521:
7522:
7523:
7524:
7525:
7526:
7527:
7528:
7529:
7530:
7531: ac_config_headers="$ac_config_headers src/include/pa_config_auto.h"
7532:
1.103 misha 7533: ac_config_files="$ac_config_files Makefile src/Makefile src/types/Makefile src/classes/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/lib/Makefile src/lib/gd/Makefile src/lib/smtp/Makefile src/lib/gc/Makefile src/lib/gc/include/Makefile src/lib/pcre/Makefile src/lib/cord/Makefile src/lib/cord/include/Makefile src/lib/cord/include/private/Makefile src/lib/ltdl/Makefile src/lib/md5/Makefile src/lib/sdbm/Makefile src/lib/sdbm/apr-include/Makefile src/targets/Makefile src/targets/cgi/Makefile src/targets/apache13core/Makefile src/targets/apache13/Makefile src/targets/apache13/p3runConfigure src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile bin/Makefile bin/auto.p.dist"
1.62 paf 7534: cat >confcache <<\_ACEOF
1.1 paf 7535: # This file is a shell script that caches the results of configure
7536: # tests run on this system so they can be shared between configure
1.62 paf 7537: # scripts and configure runs, see configure's option --config-cache.
7538: # It is not useful on other systems. If it contains results you don't
7539: # want to keep, you may remove or edit it.
1.1 paf 7540: #
1.62 paf 7541: # config.status only pays attention to the cache file if you give it
7542: # the --recheck option to rerun configure.
1.1 paf 7543: #
1.62 paf 7544: # `ac_cv_env_foo' variables (set or unset) will be overridden when
7545: # loading this file, other *unset* `ac_cv_foo' will be assigned the
7546: # following values.
7547:
7548: _ACEOF
7549:
1.1 paf 7550: # The following way of writing the cache mishandles newlines in values,
7551: # but we know of no workaround that is simple, portable, and efficient.
7552: # So, don't put newlines in cache variables' values.
7553: # Ultrix sh set writes to stderr and can't be redirected directly,
7554: # and sets the high bit in the cache file unless we assign to the vars.
1.62 paf 7555: {
7556: (set) 2>&1 |
7557: case `(ac_space=' '; set | grep ac_space) 2>&1` in
7558: *ac_space=\ *)
7559: # `set' does not quote correctly, so add quotes (double-quote
7560: # substitution turns \\\\ into \\, and sed turns \\ into \).
7561: sed -n \
1.86 paf 7562: "s/'/'\\\\''/g;
7563: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.62 paf 7564: ;;
7565: *)
7566: # `set' quotes correctly as required by POSIX, so do not add quotes.
7567: sed -n \
1.86 paf 7568: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.62 paf 7569: ;;
7570: esac;
7571: } |
7572: sed '
7573: t clear
7574: : clear
7575: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7576: t end
7577: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7578: : end' >>confcache
7579: if diff $cache_file confcache >/dev/null 2>&1; then :; else
1.1 paf 7580: if test -w $cache_file; then
1.62 paf 7581: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7582: cat confcache >$cache_file
1.1 paf 7583: else
7584: echo "not updating unwritable cache $cache_file"
7585: fi
7586: fi
7587: rm -f confcache
7588:
7589: test "x$prefix" = xNONE && prefix=$ac_default_prefix
7590: # Let make expand exec_prefix.
7591: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7592:
1.62 paf 7593: # VPATH may cause trouble with some makes, so we remove $(srcdir),
7594: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7595: # trailing colons and then remove the whole line if VPATH becomes empty
7596: # (actually we leave an empty line to preserve line numbers).
1.1 paf 7597: if test "x$srcdir" = x.; then
1.86 paf 7598: ac_vpsub='/^[ ]*VPATH[ ]*=/{
1.62 paf 7599: s/:*\$(srcdir):*/:/;
7600: s/:*\${srcdir}:*/:/;
7601: s/:*@srcdir@:*/:/;
1.86 paf 7602: s/^\([^=]*=[ ]*\):*/\1/;
1.62 paf 7603: s/:*$//;
1.86 paf 7604: s/^[^=]*=[ ]*$//;
1.62 paf 7605: }'
1.1 paf 7606: fi
7607:
1.62 paf 7608: DEFS=-DHAVE_CONFIG_H
7609:
7610: ac_libobjs=
7611: ac_ltlibobjs=
7612: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7613: # 1. Remove the extension, and $U if already installed.
7614: ac_i=`echo "$ac_i" |
1.86 paf 7615: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
1.62 paf 7616: # 2. Add them.
7617: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7618: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7619: done
7620: LIBOBJS=$ac_libobjs
7621:
7622: LTLIBOBJS=$ac_ltlibobjs
1.1 paf 7623:
7624:
1.62 paf 7625: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7626: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7627: Usually this means the macro was only invoked conditionally." >&5
7628: echo "$as_me: error: conditional \"AMDEP\" was never defined.
7629: Usually this means the macro was only invoked conditionally." >&2;}
7630: { (exit 1); exit 1; }; }
7631: fi
1.66 paf 7632: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7633: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
1.62 paf 7634: Usually this means the macro was only invoked conditionally." >&5
1.66 paf 7635: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
1.62 paf 7636: Usually this means the macro was only invoked conditionally." >&2;}
7637: { (exit 1); exit 1; }; }
7638: fi
1.66 paf 7639: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7640: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
1.62 paf 7641: Usually this means the macro was only invoked conditionally." >&5
1.66 paf 7642: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
1.62 paf 7643: Usually this means the macro was only invoked conditionally." >&2;}
7644: { (exit 1); exit 1; }; }
7645: fi
7646: if test -z "${COMPILE_APACHE13_MODULE_TRUE}" && test -z "${COMPILE_APACHE13_MODULE_FALSE}"; then
7647: { { echo "$as_me:$LINENO: error: conditional \"COMPILE_APACHE13_MODULE\" was never defined.
7648: Usually this means the macro was only invoked conditionally." >&5
7649: echo "$as_me: error: conditional \"COMPILE_APACHE13_MODULE\" was never defined.
7650: Usually this means the macro was only invoked conditionally." >&2;}
7651: { (exit 1); exit 1; }; }
7652: fi
7653:
1.1 paf 7654: : ${CONFIG_STATUS=./config.status}
1.62 paf 7655: ac_clean_files_save=$ac_clean_files
7656: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7657: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7658: echo "$as_me: creating $CONFIG_STATUS" >&6;}
7659: cat >$CONFIG_STATUS <<_ACEOF
7660: #! $SHELL
7661: # Generated by $as_me.
7662: # Run this file to recreate the current configuration.
7663: # Compiler output produced by configure, useful for debugging
7664: # configure, is in config.log if it exists.
7665:
7666: debug=false
7667: ac_cs_recheck=false
7668: ac_cs_silent=false
7669: SHELL=\${CONFIG_SHELL-$SHELL}
7670: _ACEOF
7671:
7672: cat >>$CONFIG_STATUS <<\_ACEOF
7673: ## --------------------- ##
7674: ## M4sh Initialization. ##
7675: ## --------------------- ##
7676:
7677: # Be Bourne compatible
7678: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7679: emulate sh
7680: NULLCMD=:
7681: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7682: # is contrary to our usage. Disable this feature.
7683: alias -g '${1+"$@"}'='"$@"'
7684: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7685: set -o posix
7686: fi
1.86 paf 7687: DUALCASE=1; export DUALCASE # for MKS sh
1.62 paf 7688:
7689: # Support unset when possible.
1.86 paf 7690: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.62 paf 7691: as_unset=unset
7692: else
7693: as_unset=false
7694: fi
7695:
7696:
7697: # Work around bugs in pre-3.0 UWIN ksh.
7698: $as_unset ENV MAIL MAILPATH
7699: PS1='$ '
7700: PS2='> '
7701: PS4='+ '
7702:
7703: # NLS nuisances.
7704: for as_var in \
7705: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7706: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7707: LC_TELEPHONE LC_TIME
7708: do
1.86 paf 7709: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.62 paf 7710: eval $as_var=C; export $as_var
7711: else
7712: $as_unset $as_var
7713: fi
7714: done
1.1 paf 7715:
1.62 paf 7716: # Required to use basename.
7717: if expr a : '\(a\)' >/dev/null 2>&1; then
7718: as_expr=expr
7719: else
7720: as_expr=false
7721: fi
7722:
7723: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7724: as_basename=basename
7725: else
7726: as_basename=false
7727: fi
7728:
7729:
7730: # Name of the executable.
7731: as_me=`$as_basename "$0" ||
7732: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7733: X"$0" : 'X\(//\)$' \| \
7734: X"$0" : 'X\(/\)$' \| \
7735: . : '\(.\)' 2>/dev/null ||
7736: echo X/"$0" |
7737: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7738: /^X\/\(\/\/\)$/{ s//\1/; q; }
7739: /^X\/\(\/\).*/{ s//\1/; q; }
7740: s/.*/./; q'`
7741:
7742:
7743: # PATH needs CR, and LINENO needs CR and PATH.
7744: # Avoid depending upon Character Ranges.
7745: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7746: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7747: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7748: as_cr_digits='0123456789'
7749: as_cr_alnum=$as_cr_Letters$as_cr_digits
7750:
7751: # The user is always right.
7752: if test "${PATH_SEPARATOR+set}" != set; then
7753: echo "#! /bin/sh" >conf$$.sh
7754: echo "exit 0" >>conf$$.sh
7755: chmod +x conf$$.sh
7756: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7757: PATH_SEPARATOR=';'
7758: else
7759: PATH_SEPARATOR=:
7760: fi
7761: rm -f conf$$.sh
7762: fi
7763:
7764:
7765: as_lineno_1=$LINENO
7766: as_lineno_2=$LINENO
7767: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7768: test "x$as_lineno_1" != "x$as_lineno_2" &&
7769: test "x$as_lineno_3" = "x$as_lineno_2" || {
7770: # Find who we are. Look in the path if we contain no path at all
7771: # relative or not.
7772: case $0 in
7773: *[\\/]* ) as_myself=$0 ;;
7774: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775: for as_dir in $PATH
7776: do
7777: IFS=$as_save_IFS
7778: test -z "$as_dir" && as_dir=.
7779: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7780: done
7781:
7782: ;;
7783: esac
7784: # We did not find ourselves, most probably we were run as `sh COMMAND'
7785: # in which case we are not to be found in the path.
7786: if test "x$as_myself" = x; then
7787: as_myself=$0
7788: fi
7789: if test ! -f "$as_myself"; then
7790: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7791: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7792: { (exit 1); exit 1; }; }
7793: fi
7794: case $CONFIG_SHELL in
7795: '')
7796: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7798: do
7799: IFS=$as_save_IFS
7800: test -z "$as_dir" && as_dir=.
7801: for as_base in sh bash ksh sh5; do
7802: case $as_dir in
7803: /*)
7804: if ("$as_dir/$as_base" -c '
7805: as_lineno_1=$LINENO
7806: as_lineno_2=$LINENO
7807: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7808: test "x$as_lineno_1" != "x$as_lineno_2" &&
7809: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7810: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7811: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7812: CONFIG_SHELL=$as_dir/$as_base
7813: export CONFIG_SHELL
7814: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7815: fi;;
7816: esac
7817: done
7818: done
7819: ;;
7820: esac
7821:
7822: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7823: # uniformly replaced by the line number. The first 'sed' inserts a
7824: # line-number line before each line; the second 'sed' does the real
7825: # work. The second script uses 'N' to pair each line-number line
7826: # with the numbered line, and appends trailing '-' during
7827: # substitution so that $LINENO is not a special case at line end.
7828: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7829: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7830: sed '=' <$as_myself |
7831: sed '
7832: N
7833: s,$,-,
7834: : loop
7835: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7836: t loop
7837: s,-$,,
7838: s,^['$as_cr_digits']*\n,,
7839: ' >$as_me.lineno &&
7840: chmod +x $as_me.lineno ||
7841: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7842: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7843: { (exit 1); exit 1; }; }
7844:
7845: # Don't try to exec as it changes $[0], causing all sort of problems
7846: # (the dirname of $[0] is not the place where we might find the
7847: # original and so on. Autoconf is especially sensible to this).
7848: . ./$as_me.lineno
7849: # Exit status is that of the last command.
7850: exit
7851: }
7852:
7853:
7854: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7855: *c*,-n*) ECHO_N= ECHO_C='
7856: ' ECHO_T=' ' ;;
7857: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7858: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7859: esac
7860:
7861: if expr a : '\(a\)' >/dev/null 2>&1; then
7862: as_expr=expr
7863: else
7864: as_expr=false
7865: fi
7866:
7867: rm -f conf$$ conf$$.exe conf$$.file
7868: echo >conf$$.file
7869: if ln -s conf$$.file conf$$ 2>/dev/null; then
7870: # We could just check for DJGPP; but this test a) works b) is more generic
7871: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7872: if test -f conf$$.exe; then
7873: # Don't use ln at all; we don't have any links
7874: as_ln_s='cp -p'
7875: else
7876: as_ln_s='ln -s'
7877: fi
7878: elif ln conf$$.file conf$$ 2>/dev/null; then
7879: as_ln_s=ln
7880: else
7881: as_ln_s='cp -p'
7882: fi
7883: rm -f conf$$ conf$$.exe conf$$.file
7884:
7885: if mkdir -p . 2>/dev/null; then
7886: as_mkdir_p=:
7887: else
1.86 paf 7888: test -d ./-p && rmdir ./-p
1.62 paf 7889: as_mkdir_p=false
7890: fi
7891:
7892: as_executable_p="test -f"
7893:
7894: # Sed expression to map a string onto a valid CPP name.
1.86 paf 7895: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 7896:
7897: # Sed expression to map a string onto a valid variable name.
1.86 paf 7898: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 7899:
7900:
7901: # IFS
7902: # We need space, tab and new line, in precisely that order.
7903: as_nl='
7904: '
7905: IFS=" $as_nl"
7906:
7907: # CDPATH.
7908: $as_unset CDPATH
7909:
7910: exec 6>&1
7911:
7912: # Open the log real soon, to keep \$[0] and so on meaningful, and to
7913: # report actual input values of CONFIG_FILES etc. instead of their
7914: # values after options handling. Logging --version etc. is OK.
7915: exec 5>>config.log
7916: {
7917: echo
7918: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7919: ## Running $as_me. ##
7920: _ASBOX
7921: } >&5
7922: cat >&5 <<_CSEOF
7923:
7924: This file was extended by $as_me, which was
1.86 paf 7925: generated by GNU Autoconf 2.59. Invocation command line was
1.62 paf 7926:
7927: CONFIG_FILES = $CONFIG_FILES
7928: CONFIG_HEADERS = $CONFIG_HEADERS
7929: CONFIG_LINKS = $CONFIG_LINKS
7930: CONFIG_COMMANDS = $CONFIG_COMMANDS
7931: $ $0 $@
7932:
7933: _CSEOF
7934: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7935: echo >&5
7936: _ACEOF
7937:
7938: # Files that config.status was made for.
7939: if test -n "$ac_config_files"; then
7940: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7941: fi
7942:
7943: if test -n "$ac_config_headers"; then
7944: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7945: fi
7946:
7947: if test -n "$ac_config_links"; then
7948: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7949: fi
7950:
7951: if test -n "$ac_config_commands"; then
7952: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7953: fi
7954:
7955: cat >>$CONFIG_STATUS <<\_ACEOF
7956:
7957: ac_cs_usage="\
7958: \`$as_me' instantiates files from templates according to the
7959: current configuration.
7960:
7961: Usage: $0 [OPTIONS] [FILE]...
7962:
7963: -h, --help print this help, then exit
7964: -V, --version print version number, then exit
7965: -q, --quiet do not print progress messages
7966: -d, --debug don't remove temporary files
7967: --recheck update $as_me by reconfiguring in the same conditions
7968: --file=FILE[:TEMPLATE]
1.86 paf 7969: instantiate the configuration file FILE
1.62 paf 7970: --header=FILE[:TEMPLATE]
1.86 paf 7971: instantiate the configuration header FILE
1.62 paf 7972:
7973: Configuration files:
7974: $config_files
7975:
7976: Configuration headers:
7977: $config_headers
7978:
7979: Configuration commands:
7980: $config_commands
7981:
7982: Report bugs to <bug-autoconf@gnu.org>."
7983: _ACEOF
7984:
7985: cat >>$CONFIG_STATUS <<_ACEOF
7986: ac_cs_version="\\
7987: config.status
1.86 paf 7988: configured by $0, generated by GNU Autoconf 2.59,
1.62 paf 7989: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7990:
1.86 paf 7991: Copyright (C) 2003 Free Software Foundation, Inc.
1.62 paf 7992: This config.status script is free software; the Free Software Foundation
7993: gives unlimited permission to copy, distribute and modify it."
7994: srcdir=$srcdir
7995: INSTALL="$INSTALL"
7996: _ACEOF
7997:
7998: cat >>$CONFIG_STATUS <<\_ACEOF
7999: # If no file are specified by the user, then we need to provide default
8000: # value. By we need to know if files were specified by the user.
8001: ac_need_defaults=:
8002: while test $# != 0
8003: do
8004: case $1 in
8005: --*=*)
8006: ac_option=`expr "x$1" : 'x\([^=]*\)='`
8007: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8008: ac_shift=:
8009: ;;
8010: -*)
8011: ac_option=$1
8012: ac_optarg=$2
8013: ac_shift=shift
8014: ;;
8015: *) # This is not an option, so the user has probably given explicit
8016: # arguments.
8017: ac_option=$1
8018: ac_need_defaults=false;;
8019: esac
8020:
8021: case $ac_option in
8022: # Handling of the options.
8023: _ACEOF
8024: cat >>$CONFIG_STATUS <<\_ACEOF
8025: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8026: ac_cs_recheck=: ;;
8027: --version | --vers* | -V )
8028: echo "$ac_cs_version"; exit 0 ;;
8029: --he | --h)
8030: # Conflict between --help and --header
8031: { { echo "$as_me:$LINENO: error: ambiguous option: $1
8032: Try \`$0 --help' for more information." >&5
8033: echo "$as_me: error: ambiguous option: $1
8034: Try \`$0 --help' for more information." >&2;}
8035: { (exit 1); exit 1; }; };;
8036: --help | --hel | -h )
8037: echo "$ac_cs_usage"; exit 0 ;;
8038: --debug | --d* | -d )
8039: debug=: ;;
8040: --file | --fil | --fi | --f )
8041: $ac_shift
8042: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8043: ac_need_defaults=false;;
8044: --header | --heade | --head | --hea )
8045: $ac_shift
8046: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8047: ac_need_defaults=false;;
8048: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8049: | -silent | --silent | --silen | --sile | --sil | --si | --s)
8050: ac_cs_silent=: ;;
8051:
8052: # This is an error.
8053: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8054: Try \`$0 --help' for more information." >&5
8055: echo "$as_me: error: unrecognized option: $1
8056: Try \`$0 --help' for more information." >&2;}
8057: { (exit 1); exit 1; }; } ;;
8058:
8059: *) ac_config_targets="$ac_config_targets $1" ;;
8060:
8061: esac
8062: shift
8063: done
8064:
8065: ac_configure_extra_args=
8066:
8067: if $ac_cs_silent; then
8068: exec 6>/dev/null
8069: ac_configure_extra_args="$ac_configure_extra_args --silent"
8070: fi
8071:
8072: _ACEOF
8073: cat >>$CONFIG_STATUS <<_ACEOF
8074: if \$ac_cs_recheck; then
8075: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8076: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8077: fi
8078:
8079: _ACEOF
8080:
8081: cat >>$CONFIG_STATUS <<_ACEOF
1.1 paf 8082: #
1.62 paf 8083: # INIT-COMMANDS section.
1.1 paf 8084: #
8085:
1.62 paf 8086: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8087:
8088: _ACEOF
8089:
8090:
8091:
8092: cat >>$CONFIG_STATUS <<\_ACEOF
8093: for ac_config_target in $ac_config_targets
1.1 paf 8094: do
1.62 paf 8095: case "$ac_config_target" in
8096: # Handling of arguments.
8097: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8098: "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8099: "src/types/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/types/Makefile" ;;
8100: "src/classes/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/classes/Makefile" ;;
8101: "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
8102: "src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
8103: "src/sql/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
8104: "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
1.73 paf 8105: "src/lib/gd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gd/Makefile" ;;
8106: "src/lib/smtp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/smtp/Makefile" ;;
1.67 paf 8107: "src/lib/gc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gc/Makefile" ;;
8108: "src/lib/gc/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gc/include/Makefile" ;;
1.103 misha 8109: "src/lib/pcre/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/pcre/Makefile" ;;
1.67 paf 8110: "src/lib/cord/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/cord/Makefile" ;;
8111: "src/lib/cord/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/Makefile" ;;
8112: "src/lib/cord/include/private/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/private/Makefile" ;;
1.62 paf 8113: "src/lib/ltdl/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/ltdl/Makefile" ;;
8114: "src/lib/md5/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/md5/Makefile" ;;
1.70 paf 8115: "src/lib/sdbm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/Makefile" ;;
8116: "src/lib/sdbm/apr-include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/apr-include/Makefile" ;;
1.62 paf 8117: "src/targets/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/Makefile" ;;
8118: "src/targets/cgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/cgi/Makefile" ;;
1.68 paf 8119: "src/targets/apache13core/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/apache13core/Makefile" ;;
1.62 paf 8120: "src/targets/apache13/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/apache13/Makefile" ;;
8121: "src/targets/apache13/p3runConfigure" ) CONFIG_FILES="$CONFIG_FILES src/targets/apache13/p3runConfigure" ;;
8122: "src/targets/isapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/isapi/Makefile" ;;
8123: "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
8124: "etc/parser3.charsets/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/parser3.charsets/Makefile" ;;
8125: "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
8126: "bin/auto.p.dist" ) CONFIG_FILES="$CONFIG_FILES bin/auto.p.dist" ;;
8127: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8128: "src/include/pa_config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pa_config_auto.h" ;;
8129: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8130: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8131: { (exit 1); exit 1; }; };;
1.1 paf 8132: esac
8133: done
8134:
1.62 paf 8135: # If the user did not use the arguments to specify the items to instantiate,
8136: # then the envvar interface is used. Set only those that are not.
8137: # We use the long form for the default assignment because of an extremely
8138: # bizarre bug on SunOS 4.1.3.
8139: if $ac_need_defaults; then
8140: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8141: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8142: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8143: fi
8144:
8145: # Have a temporary directory for convenience. Make it in the build tree
8146: # simply because there is no reason to put it here, and in addition,
8147: # creating and moving files from /tmp can sometimes cause problems.
8148: # Create a temporary directory, and hook for its removal unless debugging.
8149: $debug ||
8150: {
8151: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8152: trap '{ (exit 1); exit 1; }' 1 2 13 15
8153: }
8154:
8155: # Create a (secure) tmp directory for tmp files.
8156:
8157: {
8158: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8159: test -n "$tmp" && test -d "$tmp"
8160: } ||
8161: {
8162: tmp=./confstat$$-$RANDOM
8163: (umask 077 && mkdir $tmp)
8164: } ||
8165: {
8166: echo "$me: cannot create a temporary directory in ." >&2
8167: { (exit 1); exit 1; }
8168: }
8169:
8170: _ACEOF
1.1 paf 8171:
1.62 paf 8172: cat >>$CONFIG_STATUS <<_ACEOF
8173:
8174: #
8175: # CONFIG_FILES section.
8176: #
1.1 paf 8177:
1.62 paf 8178: # No need to generate the scripts if there are no CONFIG_FILES.
8179: # This happens for instance when ./config.status config.h
8180: if test -n "\$CONFIG_FILES"; then
8181: # Protect against being on the right side of a sed subst in config.status.
8182: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8183: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8184: s,@SHELL@,$SHELL,;t t
8185: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8186: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8187: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8188: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8189: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8190: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8191: s,@exec_prefix@,$exec_prefix,;t t
8192: s,@prefix@,$prefix,;t t
8193: s,@program_transform_name@,$program_transform_name,;t t
8194: s,@bindir@,$bindir,;t t
8195: s,@sbindir@,$sbindir,;t t
8196: s,@libexecdir@,$libexecdir,;t t
8197: s,@datadir@,$datadir,;t t
8198: s,@sysconfdir@,$sysconfdir,;t t
8199: s,@sharedstatedir@,$sharedstatedir,;t t
8200: s,@localstatedir@,$localstatedir,;t t
8201: s,@libdir@,$libdir,;t t
8202: s,@includedir@,$includedir,;t t
8203: s,@oldincludedir@,$oldincludedir,;t t
8204: s,@infodir@,$infodir,;t t
8205: s,@mandir@,$mandir,;t t
8206: s,@build_alias@,$build_alias,;t t
8207: s,@host_alias@,$host_alias,;t t
8208: s,@target_alias@,$target_alias,;t t
8209: s,@DEFS@,$DEFS,;t t
8210: s,@ECHO_C@,$ECHO_C,;t t
8211: s,@ECHO_N@,$ECHO_N,;t t
8212: s,@ECHO_T@,$ECHO_T,;t t
8213: s,@LIBS@,$LIBS,;t t
8214: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8215: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8216: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8217: s,@CYGPATH_W@,$CYGPATH_W,;t t
8218: s,@PACKAGE@,$PACKAGE,;t t
8219: s,@VERSION@,$VERSION,;t t
8220: s,@ACLOCAL@,$ACLOCAL,;t t
8221: s,@AUTOCONF@,$AUTOCONF,;t t
8222: s,@AUTOMAKE@,$AUTOMAKE,;t t
8223: s,@AUTOHEADER@,$AUTOHEADER,;t t
8224: s,@MAKEINFO@,$MAKEINFO,;t t
8225: s,@install_sh@,$install_sh,;t t
8226: s,@STRIP@,$STRIP,;t t
8227: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8228: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
1.86 paf 8229: s,@mkdir_p@,$mkdir_p,;t t
1.62 paf 8230: s,@AWK@,$AWK,;t t
8231: s,@SET_MAKE@,$SET_MAKE,;t t
1.86 paf 8232: s,@am__leading_dot@,$am__leading_dot,;t t
8233: s,@AMTAR@,$AMTAR,;t t
8234: s,@am__tar@,$am__tar,;t t
8235: s,@am__untar@,$am__untar,;t t
1.62 paf 8236: s,@P3S@,$P3S,;t t
8237: s,@build@,$build,;t t
8238: s,@build_cpu@,$build_cpu,;t t
8239: s,@build_vendor@,$build_vendor,;t t
8240: s,@build_os@,$build_os,;t t
8241: s,@host@,$host,;t t
8242: s,@host_cpu@,$host_cpu,;t t
8243: s,@host_vendor@,$host_vendor,;t t
8244: s,@host_os@,$host_os,;t t
8245: s,@RANLIB@,$RANLIB,;t t
8246: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8247: s,@YACC@,$YACC,;t t
1.66 paf 8248: s,@CXX@,$CXX,;t t
8249: s,@CXXFLAGS@,$CXXFLAGS,;t t
1.62 paf 8250: s,@LDFLAGS@,$LDFLAGS,;t t
8251: s,@CPPFLAGS@,$CPPFLAGS,;t t
1.66 paf 8252: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
1.62 paf 8253: s,@EXEEXT@,$EXEEXT,;t t
8254: s,@OBJEXT@,$OBJEXT,;t t
8255: s,@DEPDIR@,$DEPDIR,;t t
8256: s,@am__include@,$am__include,;t t
8257: s,@am__quote@,$am__quote,;t t
8258: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8259: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8260: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
1.66 paf 8261: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
8262: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
8263: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
8264: s,@CC@,$CC,;t t
8265: s,@CFLAGS@,$CFLAGS,;t t
8266: s,@ac_ct_CC@,$ac_ct_CC,;t t
1.62 paf 8267: s,@CCDEPMODE@,$CCDEPMODE,;t t
8268: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8269: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8270: s,@commentcharset_windows1251@,$commentcharset_windows1251,;t t
8271: s,@commentcharset_windows1250@,$commentcharset_windows1250,;t t
8272: s,@commentcharset_windows1257@,$commentcharset_windows1257,;t t
8273: s,@commentcharset_koi8r@,$commentcharset_koi8r,;t t
8274: s,@dll_extension@,$dll_extension,;t t
8275: s,@mysql_client@,$mysql_client,;t t
8276: s,@pgsql_client@,$pgsql_client,;t t
8277: s,@oracle_client@,$oracle_client,;t t
1.92 misha 8278: s,@sqlite_client@,$sqlite_client,;t t
1.67 paf 8279: s,@CPP_LIBS@,$CPP_LIBS,;t t
8280: s,@GC_LIBS@,$GC_LIBS,;t t
1.100 misha 8281: s,@PCRE_INCLUDES@,$PCRE_INCLUDES,;t t
8282: s,@PCRE_LIBS@,$PCRE_LIBS,;t t
1.62 paf 8283: s,@XML_INCLUDES@,$XML_INCLUDES,;t t
8284: s,@XML_LIBS@,$XML_LIBS,;t t
8285: s,@MIME_INCLUDES@,$MIME_INCLUDES,;t t
8286: s,@MIME_LIBS@,$MIME_LIBS,;t t
8287: s,@APACHE13@,$APACHE13,;t t
8288: s,@COMPILE_APACHE13_MODULE_TRUE@,$COMPILE_APACHE13_MODULE_TRUE,;t t
8289: s,@COMPILE_APACHE13_MODULE_FALSE@,$COMPILE_APACHE13_MODULE_FALSE,;t t
8290: s,@INCLTDL@,$INCLTDL,;t t
8291: s,@LIBLTDL@,$LIBLTDL,;t t
8292: s,@subdirs@,$subdirs,;t t
8293: s,@LIBADD_DL@,$LIBADD_DL,;t t
1.66 paf 8294: s,@CPP@,$CPP,;t t
8295: s,@EGREP@,$EGREP,;t t
1.62 paf 8296: s,@LIBOBJS@,$LIBOBJS,;t t
8297: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1.1 paf 8298: CEOF
8299:
1.62 paf 8300: _ACEOF
1.1 paf 8301:
1.62 paf 8302: cat >>$CONFIG_STATUS <<\_ACEOF
8303: # Split the substitutions into bite-sized pieces for seds with
8304: # small command number limits, like on Digital OSF/1 and HP-UX.
8305: ac_max_sed_lines=48
8306: ac_sed_frag=1 # Number of current file.
8307: ac_beg=1 # First line for current file.
8308: ac_end=$ac_max_sed_lines # Line after last line for current file.
8309: ac_more_lines=:
8310: ac_sed_cmds=
8311: while $ac_more_lines; do
8312: if test $ac_beg -gt 1; then
8313: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8314: else
8315: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8316: fi
8317: if test ! -s $tmp/subs.frag; then
8318: ac_more_lines=false
1.1 paf 8319: else
1.62 paf 8320: # The purpose of the label and of the branching condition is to
8321: # speed up the sed processing (if there are no `@' at all, there
8322: # is no need to browse any of the substitutions).
8323: # These are the two extra sed commands mentioned above.
8324: (echo ':t
8325: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8326: if test -z "$ac_sed_cmds"; then
1.86 paf 8327: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
1.62 paf 8328: else
1.86 paf 8329: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
1.62 paf 8330: fi
8331: ac_sed_frag=`expr $ac_sed_frag + 1`
8332: ac_beg=$ac_end
8333: ac_end=`expr $ac_end + $ac_max_sed_lines`
1.1 paf 8334: fi
1.62 paf 8335: done
8336: if test -z "$ac_sed_cmds"; then
8337: ac_sed_cmds=cat
1.1 paf 8338: fi
1.62 paf 8339: fi # test -n "$CONFIG_FILES"
1.1 paf 8340:
1.62 paf 8341: _ACEOF
8342: cat >>$CONFIG_STATUS <<\_ACEOF
8343: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1.1 paf 8344: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.62 paf 8345: case $ac_file in
8346: - | *:- | *:-:* ) # input from stdin
1.86 paf 8347: cat >$tmp/stdin
8348: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8349: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.62 paf 8350: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.86 paf 8351: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.62 paf 8352: * ) ac_file_in=$ac_file.in ;;
1.1 paf 8353: esac
8354:
1.62 paf 8355: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8356: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8357: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 8358: X"$ac_file" : 'X\(//\)[^/]' \| \
8359: X"$ac_file" : 'X\(//\)$' \| \
8360: X"$ac_file" : 'X\(/\)' \| \
8361: . : '\(.\)' 2>/dev/null ||
1.62 paf 8362: echo X"$ac_file" |
8363: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8364: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8365: /^X\(\/\/\)$/{ s//\1/; q; }
8366: /^X\(\/\).*/{ s//\1/; q; }
8367: s/.*/./; q'`
8368: { if $as_mkdir_p; then
8369: mkdir -p "$ac_dir"
8370: else
8371: as_dir="$ac_dir"
8372: as_dirs=
8373: while test ! -d "$as_dir"; do
8374: as_dirs="$as_dir $as_dirs"
8375: as_dir=`(dirname "$as_dir") 2>/dev/null ||
8376: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 8377: X"$as_dir" : 'X\(//\)[^/]' \| \
8378: X"$as_dir" : 'X\(//\)$' \| \
8379: X"$as_dir" : 'X\(/\)' \| \
8380: . : '\(.\)' 2>/dev/null ||
1.62 paf 8381: echo X"$as_dir" |
8382: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8383: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8384: /^X\(\/\/\)$/{ s//\1/; q; }
8385: /^X\(\/\).*/{ s//\1/; q; }
8386: s/.*/./; q'`
8387: done
8388: test ! -n "$as_dirs" || mkdir $as_dirs
8389: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8390: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8391: { (exit 1); exit 1; }; }; }
8392:
8393: ac_builddir=.
8394:
8395: if test "$ac_dir" != .; then
8396: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8397: # A "../" for each directory in $ac_dir_suffix.
8398: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8399: else
8400: ac_dir_suffix= ac_top_builddir=
8401: fi
8402:
8403: case $srcdir in
8404: .) # No --srcdir option. We are building in place.
8405: ac_srcdir=.
8406: if test -z "$ac_top_builddir"; then
8407: ac_top_srcdir=.
8408: else
8409: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8410: fi ;;
8411: [\\/]* | ?:[\\/]* ) # Absolute path.
8412: ac_srcdir=$srcdir$ac_dir_suffix;
8413: ac_top_srcdir=$srcdir ;;
8414: *) # Relative path.
8415: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8416: ac_top_srcdir=$ac_top_builddir$srcdir ;;
8417: esac
1.86 paf 8418:
8419: # Do not use `cd foo && pwd` to compute absolute paths, because
8420: # the directories may not exist.
8421: case `pwd` in
8422: .) ac_abs_builddir="$ac_dir";;
8423: *)
8424: case "$ac_dir" in
8425: .) ac_abs_builddir=`pwd`;;
8426: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8427: *) ac_abs_builddir=`pwd`/"$ac_dir";;
8428: esac;;
8429: esac
8430: case $ac_abs_builddir in
8431: .) ac_abs_top_builddir=${ac_top_builddir}.;;
8432: *)
8433: case ${ac_top_builddir}. in
8434: .) ac_abs_top_builddir=$ac_abs_builddir;;
8435: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8436: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8437: esac;;
8438: esac
8439: case $ac_abs_builddir in
8440: .) ac_abs_srcdir=$ac_srcdir;;
8441: *)
8442: case $ac_srcdir in
8443: .) ac_abs_srcdir=$ac_abs_builddir;;
8444: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8445: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8446: esac;;
8447: esac
8448: case $ac_abs_builddir in
8449: .) ac_abs_top_srcdir=$ac_top_srcdir;;
8450: *)
8451: case $ac_top_srcdir in
8452: .) ac_abs_top_srcdir=$ac_abs_builddir;;
8453: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8454: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8455: esac;;
8456: esac
1.62 paf 8457:
1.1 paf 8458:
1.62 paf 8459: case $INSTALL in
8460: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8461: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1.1 paf 8462: esac
8463:
1.62 paf 8464: if test x"$ac_file" != x-; then
8465: { echo "$as_me:$LINENO: creating $ac_file" >&5
8466: echo "$as_me: creating $ac_file" >&6;}
8467: rm -f "$ac_file"
8468: fi
8469: # Let's still pretend it is `configure' which instantiates (i.e., don't
8470: # use $as_me), people would be surprised to read:
8471: # /* config.h. Generated by config.status. */
8472: if test x"$ac_file" = x-; then
8473: configure_input=
8474: else
8475: configure_input="$ac_file. "
8476: fi
8477: configure_input=$configure_input"Generated from `echo $ac_file_in |
1.86 paf 8478: sed 's,.*/,,'` by configure."
1.62 paf 8479:
8480: # First look for the input files in the build tree, otherwise in the
8481: # src tree.
8482: ac_file_inputs=`IFS=:
8483: for f in $ac_file_in; do
8484: case $f in
8485: -) echo $tmp/stdin ;;
8486: [\\/$]*)
1.86 paf 8487: # Absolute (can't be DOS-style, as IFS=:)
8488: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.62 paf 8489: echo "$as_me: error: cannot find input file: $f" >&2;}
8490: { (exit 1); exit 1; }; }
1.86 paf 8491: echo "$f";;
1.62 paf 8492: *) # Relative
1.86 paf 8493: if test -f "$f"; then
8494: # Build tree
8495: echo "$f"
8496: elif test -f "$srcdir/$f"; then
8497: # Source tree
8498: echo "$srcdir/$f"
8499: else
8500: # /dev/null tree
8501: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.62 paf 8502: echo "$as_me: error: cannot find input file: $f" >&2;}
8503: { (exit 1); exit 1; }; }
1.86 paf 8504: fi;;
1.62 paf 8505: esac
8506: done` || { (exit 1); exit 1; }
8507: _ACEOF
8508: cat >>$CONFIG_STATUS <<_ACEOF
8509: sed "$ac_vpsub
8510: $extrasub
8511: _ACEOF
8512: cat >>$CONFIG_STATUS <<\_ACEOF
8513: :t
8514: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8515: s,@configure_input@,$configure_input,;t t
8516: s,@srcdir@,$ac_srcdir,;t t
8517: s,@abs_srcdir@,$ac_abs_srcdir,;t t
8518: s,@top_srcdir@,$ac_top_srcdir,;t t
8519: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8520: s,@builddir@,$ac_builddir,;t t
8521: s,@abs_builddir@,$ac_abs_builddir,;t t
8522: s,@top_builddir@,$ac_top_builddir,;t t
8523: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8524: s,@INSTALL@,$ac_INSTALL,;t t
8525: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8526: rm -f $tmp/stdin
8527: if test x"$ac_file" != x-; then
8528: mv $tmp/out $ac_file
8529: else
8530: cat $tmp/out
8531: rm -f $tmp/out
8532: fi
1.1 paf 8533:
1.62 paf 8534: done
8535: _ACEOF
8536: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 paf 8537:
1.62 paf 8538: #
8539: # CONFIG_HEADER section.
8540: #
1.1 paf 8541:
8542: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8543: # NAME is the cpp macro being defined and VALUE is the value it is being given.
8544: #
8545: # ac_d sets the value in "#define NAME VALUE" lines.
1.86 paf 8546: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8547: ac_dB='[ ].*$,\1#\2'
1.62 paf 8548: ac_dC=' '
8549: ac_dD=',;t'
8550: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1.86 paf 8551: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1.62 paf 8552: ac_uB='$,\1#\2define\3'
1.1 paf 8553: ac_uC=' '
1.62 paf 8554: ac_uD=',;t'
8555:
8556: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 paf 8557: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.62 paf 8558: case $ac_file in
8559: - | *:- | *:-:* ) # input from stdin
1.86 paf 8560: cat >$tmp/stdin
8561: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8562: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.62 paf 8563: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.86 paf 8564: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.62 paf 8565: * ) ac_file_in=$ac_file.in ;;
1.1 paf 8566: esac
8567:
1.62 paf 8568: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8569: echo "$as_me: creating $ac_file" >&6;}
1.1 paf 8570:
1.62 paf 8571: # First look for the input files in the build tree, otherwise in the
8572: # src tree.
8573: ac_file_inputs=`IFS=:
8574: for f in $ac_file_in; do
8575: case $f in
8576: -) echo $tmp/stdin ;;
8577: [\\/$]*)
1.86 paf 8578: # Absolute (can't be DOS-style, as IFS=:)
8579: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.62 paf 8580: echo "$as_me: error: cannot find input file: $f" >&2;}
8581: { (exit 1); exit 1; }; }
1.86 paf 8582: # Do quote $f, to prevent DOS paths from being IFS'd.
8583: echo "$f";;
1.62 paf 8584: *) # Relative
1.86 paf 8585: if test -f "$f"; then
8586: # Build tree
8587: echo "$f"
8588: elif test -f "$srcdir/$f"; then
8589: # Source tree
8590: echo "$srcdir/$f"
8591: else
8592: # /dev/null tree
8593: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.62 paf 8594: echo "$as_me: error: cannot find input file: $f" >&2;}
8595: { (exit 1); exit 1; }; }
1.86 paf 8596: fi;;
1.62 paf 8597: esac
8598: done` || { (exit 1); exit 1; }
8599: # Remove the trailing spaces.
1.86 paf 8600: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
1.62 paf 8601:
8602: _ACEOF
8603:
8604: # Transform confdefs.h into two sed scripts, `conftest.defines' and
8605: # `conftest.undefs', that substitutes the proper values into
8606: # config.h.in to produce config.h. The first handles `#define'
8607: # templates, and the second `#undef' templates.
8608: # And first: Protect against being on the right side of a sed subst in
8609: # config.status. Protect against being in an unquoted here document
8610: # in config.status.
8611: rm -f conftest.defines conftest.undefs
8612: # Using a here document instead of a string reduces the quoting nightmare.
8613: # Putting comments in sed scripts is not portable.
8614: #
8615: # `end' is used to avoid that the second main sed command (meant for
8616: # 0-ary CPP macros) applies to n-ary macro definitions.
8617: # See the Autoconf documentation for `clear'.
8618: cat >confdef2sed.sed <<\_ACEOF
8619: s/[\\&,]/\\&/g
8620: s,[\\$`],\\&,g
8621: t clear
8622: : clear
1.86 paf 8623: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
1.62 paf 8624: t end
1.86 paf 8625: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
1.62 paf 8626: : end
8627: _ACEOF
8628: # If some macros were called several times there might be several times
8629: # the same #defines, which is useless. Nevertheless, we may not want to
8630: # sort them, since we want the *last* AC-DEFINE to be honored.
8631: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8632: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8633: rm -f confdef2sed.sed
1.1 paf 8634:
8635: # This sed command replaces #undef with comments. This is necessary, for
8636: # example, in the case of _POSIX_SOURCE, which is predefined and required
8637: # on some systems where configure will not decide to define it.
1.62 paf 8638: cat >>conftest.undefs <<\_ACEOF
1.86 paf 8639: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
1.62 paf 8640: _ACEOF
8641:
8642: # Break up conftest.defines because some shells have a limit on the size
8643: # of here documents, and old seds have small limits too (100 cmds).
8644: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
1.86 paf 8645: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
1.62 paf 8646: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8647: echo ' :' >>$CONFIG_STATUS
8648: rm -f conftest.tail
8649: while grep . conftest.defines >/dev/null
8650: do
8651: # Write a limited-size here document to $tmp/defines.sed.
8652: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8653: # Speed up: don't consider the non `#define' lines.
1.86 paf 8654: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
1.62 paf 8655: # Work around the forget-to-reset-the-flag bug.
8656: echo 't clr' >>$CONFIG_STATUS
8657: echo ': clr' >>$CONFIG_STATUS
8658: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8659: echo 'CEOF
8660: sed -f $tmp/defines.sed $tmp/in >$tmp/out
8661: rm -f $tmp/in
8662: mv $tmp/out $tmp/in
8663: ' >>$CONFIG_STATUS
8664: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8665: rm -f conftest.defines
8666: mv conftest.tail conftest.defines
8667: done
8668: rm -f conftest.defines
8669: echo ' fi # grep' >>$CONFIG_STATUS
8670: echo >>$CONFIG_STATUS
8671:
8672: # Break up conftest.undefs because some shells have a limit on the size
8673: # of here documents, and old seds have small limits too (100 cmds).
8674: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 paf 8675: rm -f conftest.tail
1.62 paf 8676: while grep . conftest.undefs >/dev/null
1.1 paf 8677: do
1.62 paf 8678: # Write a limited-size here document to $tmp/undefs.sed.
8679: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8680: # Speed up: don't consider the non `#undef'
1.86 paf 8681: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
1.62 paf 8682: # Work around the forget-to-reset-the-flag bug.
8683: echo 't clr' >>$CONFIG_STATUS
8684: echo ': clr' >>$CONFIG_STATUS
8685: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 paf 8686: echo 'CEOF
1.62 paf 8687: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8688: rm -f $tmp/in
8689: mv $tmp/out $tmp/in
8690: ' >>$CONFIG_STATUS
8691: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8692: rm -f conftest.undefs
8693: mv conftest.tail conftest.undefs
8694: done
8695: rm -f conftest.undefs
8696:
8697: cat >>$CONFIG_STATUS <<\_ACEOF
8698: # Let's still pretend it is `configure' which instantiates (i.e., don't
8699: # use $as_me), people would be surprised to read:
8700: # /* config.h. Generated by config.status. */
8701: if test x"$ac_file" = x-; then
8702: echo "/* Generated by configure. */" >$tmp/config.h
8703: else
8704: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8705: fi
8706: cat $tmp/in >>$tmp/config.h
8707: rm -f $tmp/in
8708: if test x"$ac_file" != x-; then
8709: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8710: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8711: echo "$as_me: $ac_file is unchanged" >&6;}
8712: else
8713: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8714: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 8715: X"$ac_file" : 'X\(//\)[^/]' \| \
8716: X"$ac_file" : 'X\(//\)$' \| \
8717: X"$ac_file" : 'X\(/\)' \| \
8718: . : '\(.\)' 2>/dev/null ||
1.62 paf 8719: echo X"$ac_file" |
8720: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8721: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8722: /^X\(\/\/\)$/{ s//\1/; q; }
8723: /^X\(\/\).*/{ s//\1/; q; }
8724: s/.*/./; q'`
8725: { if $as_mkdir_p; then
8726: mkdir -p "$ac_dir"
8727: else
8728: as_dir="$ac_dir"
8729: as_dirs=
8730: while test ! -d "$as_dir"; do
8731: as_dirs="$as_dir $as_dirs"
8732: as_dir=`(dirname "$as_dir") 2>/dev/null ||
8733: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 8734: X"$as_dir" : 'X\(//\)[^/]' \| \
8735: X"$as_dir" : 'X\(//\)$' \| \
8736: X"$as_dir" : 'X\(/\)' \| \
8737: . : '\(.\)' 2>/dev/null ||
1.62 paf 8738: echo X"$as_dir" |
8739: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8740: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8741: /^X\(\/\/\)$/{ s//\1/; q; }
8742: /^X\(\/\).*/{ s//\1/; q; }
8743: s/.*/./; q'`
8744: done
8745: test ! -n "$as_dirs" || mkdir $as_dirs
8746: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8747: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8748: { (exit 1); exit 1; }; }; }
8749:
8750: rm -f $ac_file
8751: mv $tmp/config.h $ac_file
8752: fi
8753: else
8754: cat $tmp/config.h
8755: rm -f $tmp/config.h
8756: fi
1.86 paf 8757: # Compute $ac_file's index in $config_headers.
8758: _am_stamp_count=1
8759: for _am_header in $config_headers :; do
8760: case $_am_header in
8761: $ac_file | $ac_file:* )
8762: break ;;
8763: * )
8764: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8765: esac
8766: done
1.62 paf 8767: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
8768: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 8769: X$ac_file : 'X\(//\)[^/]' \| \
8770: X$ac_file : 'X\(//\)$' \| \
8771: X$ac_file : 'X\(/\)' \| \
8772: . : '\(.\)' 2>/dev/null ||
1.62 paf 8773: echo X$ac_file |
8774: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8775: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8776: /^X\(\/\/\)$/{ s//\1/; q; }
8777: /^X\(\/\).*/{ s//\1/; q; }
8778: s/.*/./; q'`/stamp-h$_am_stamp_count
8779: done
8780: _ACEOF
8781: cat >>$CONFIG_STATUS <<\_ACEOF
8782:
8783: #
8784: # CONFIG_COMMANDS section.
8785: #
8786: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8787: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8788: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8789: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8790: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 8791: X"$ac_dest" : 'X\(//\)[^/]' \| \
8792: X"$ac_dest" : 'X\(//\)$' \| \
8793: X"$ac_dest" : 'X\(/\)' \| \
8794: . : '\(.\)' 2>/dev/null ||
1.62 paf 8795: echo X"$ac_dest" |
8796: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8797: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8798: /^X\(\/\/\)$/{ s//\1/; q; }
8799: /^X\(\/\).*/{ s//\1/; q; }
8800: s/.*/./; q'`
1.86 paf 8801: { if $as_mkdir_p; then
8802: mkdir -p "$ac_dir"
8803: else
8804: as_dir="$ac_dir"
8805: as_dirs=
8806: while test ! -d "$as_dir"; do
8807: as_dirs="$as_dir $as_dirs"
8808: as_dir=`(dirname "$as_dir") 2>/dev/null ||
8809: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8810: X"$as_dir" : 'X\(//\)[^/]' \| \
8811: X"$as_dir" : 'X\(//\)$' \| \
8812: X"$as_dir" : 'X\(/\)' \| \
8813: . : '\(.\)' 2>/dev/null ||
8814: echo X"$as_dir" |
8815: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8816: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8817: /^X\(\/\/\)$/{ s//\1/; q; }
8818: /^X\(\/\).*/{ s//\1/; q; }
8819: s/.*/./; q'`
8820: done
8821: test ! -n "$as_dirs" || mkdir $as_dirs
8822: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8823: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8824: { (exit 1); exit 1; }; }; }
8825:
1.62 paf 8826: ac_builddir=.
8827:
8828: if test "$ac_dir" != .; then
8829: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8830: # A "../" for each directory in $ac_dir_suffix.
8831: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8832: else
8833: ac_dir_suffix= ac_top_builddir=
8834: fi
8835:
8836: case $srcdir in
8837: .) # No --srcdir option. We are building in place.
8838: ac_srcdir=.
8839: if test -z "$ac_top_builddir"; then
8840: ac_top_srcdir=.
8841: else
8842: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8843: fi ;;
8844: [\\/]* | ?:[\\/]* ) # Absolute path.
8845: ac_srcdir=$srcdir$ac_dir_suffix;
8846: ac_top_srcdir=$srcdir ;;
8847: *) # Relative path.
8848: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8849: ac_top_srcdir=$ac_top_builddir$srcdir ;;
8850: esac
1.86 paf 8851:
8852: # Do not use `cd foo && pwd` to compute absolute paths, because
8853: # the directories may not exist.
8854: case `pwd` in
8855: .) ac_abs_builddir="$ac_dir";;
8856: *)
8857: case "$ac_dir" in
8858: .) ac_abs_builddir=`pwd`;;
8859: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8860: *) ac_abs_builddir=`pwd`/"$ac_dir";;
8861: esac;;
8862: esac
8863: case $ac_abs_builddir in
8864: .) ac_abs_top_builddir=${ac_top_builddir}.;;
8865: *)
8866: case ${ac_top_builddir}. in
8867: .) ac_abs_top_builddir=$ac_abs_builddir;;
8868: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8869: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8870: esac;;
8871: esac
8872: case $ac_abs_builddir in
8873: .) ac_abs_srcdir=$ac_srcdir;;
8874: *)
8875: case $ac_srcdir in
8876: .) ac_abs_srcdir=$ac_abs_builddir;;
8877: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8878: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8879: esac;;
8880: esac
8881: case $ac_abs_builddir in
8882: .) ac_abs_top_srcdir=$ac_top_srcdir;;
8883: *)
8884: case $ac_top_srcdir in
8885: .) ac_abs_top_srcdir=$ac_abs_builddir;;
8886: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8887: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8888: esac;;
8889: esac
1.62 paf 8890:
8891:
8892: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8893: echo "$as_me: executing $ac_dest commands" >&6;}
8894: case $ac_dest in
8895: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8896: # Strip MF so we end up with the name of the file.
8897: mf=`echo "$mf" | sed -e 's/:.*$//'`
8898: # Check whether this is an Automake generated Makefile or not.
8899: # We used to match only the files named `Makefile.in', but
8900: # some people rename them; so instead we look at the file content.
8901: # Grep'ing the first line is not enough: some people post-process
8902: # each Makefile.in and add a new line on top of each file to say so.
8903: # So let's grep whole file.
8904: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8905: dirpart=`(dirname "$mf") 2>/dev/null ||
8906: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 8907: X"$mf" : 'X\(//\)[^/]' \| \
8908: X"$mf" : 'X\(//\)$' \| \
8909: X"$mf" : 'X\(/\)' \| \
8910: . : '\(.\)' 2>/dev/null ||
1.62 paf 8911: echo X"$mf" |
8912: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8913: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8914: /^X\(\/\/\)$/{ s//\1/; q; }
8915: /^X\(\/\).*/{ s//\1/; q; }
8916: s/.*/./; q'`
8917: else
8918: continue
8919: fi
1.86 paf 8920: # Extract the definition of DEPDIR, am__include, and am__quote
8921: # from the Makefile without running `make'.
8922: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1.62 paf 8923: test -z "$DEPDIR" && continue
1.86 paf 8924: am__include=`sed -n 's/^am__include = //p' < "$mf"`
8925: test -z "am__include" && continue
8926: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1.62 paf 8927: # When using ansi2knr, U may be empty or an underscore; expand it
1.86 paf 8928: U=`sed -n 's/^U = //p' < "$mf"`
8929: # Find all dependency output files, they are included files with
8930: # $(DEPDIR) in their names. We invoke sed twice because it is the
8931: # simplest approach to changing $(DEPDIR) to its actual value in the
8932: # expansion.
8933: for file in `sed -n "
8934: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1.62 paf 8935: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8936: # Make sure the directory exists.
8937: test -f "$dirpart/$file" && continue
8938: fdir=`(dirname "$file") 2>/dev/null ||
8939: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 8940: X"$file" : 'X\(//\)[^/]' \| \
8941: X"$file" : 'X\(//\)$' \| \
8942: X"$file" : 'X\(/\)' \| \
8943: . : '\(.\)' 2>/dev/null ||
1.62 paf 8944: echo X"$file" |
8945: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8946: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8947: /^X\(\/\/\)$/{ s//\1/; q; }
8948: /^X\(\/\).*/{ s//\1/; q; }
8949: s/.*/./; q'`
8950: { if $as_mkdir_p; then
8951: mkdir -p $dirpart/$fdir
8952: else
8953: as_dir=$dirpart/$fdir
8954: as_dirs=
8955: while test ! -d "$as_dir"; do
8956: as_dirs="$as_dir $as_dirs"
8957: as_dir=`(dirname "$as_dir") 2>/dev/null ||
8958: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 8959: X"$as_dir" : 'X\(//\)[^/]' \| \
8960: X"$as_dir" : 'X\(//\)$' \| \
8961: X"$as_dir" : 'X\(/\)' \| \
8962: . : '\(.\)' 2>/dev/null ||
1.62 paf 8963: echo X"$as_dir" |
8964: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8965: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8966: /^X\(\/\/\)$/{ s//\1/; q; }
8967: /^X\(\/\).*/{ s//\1/; q; }
8968: s/.*/./; q'`
8969: done
8970: test ! -n "$as_dirs" || mkdir $as_dirs
8971: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8972: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8973: { (exit 1); exit 1; }; }; }
1.1 paf 8974:
1.62 paf 8975: # echo "creating $dirpart/$file"
8976: echo '# dummy' > "$dirpart/$file"
8977: done
8978: done
8979: ;;
8980: esac
8981: done
8982: _ACEOF
8983:
8984: cat >>$CONFIG_STATUS <<\_ACEOF
8985:
8986: { (exit 0); exit 0; }
8987: _ACEOF
1.1 paf 8988: chmod +x $CONFIG_STATUS
1.62 paf 8989: ac_clean_files=$ac_clean_files_save
8990:
1.1 paf 8991:
1.62 paf 8992: # configure is writing to config.log, and then calls config.status.
8993: # config.status does its own redirection, appending to config.log.
8994: # Unfortunately, on DOS this fails, as config.log is still kept open
8995: # by configure, so config.status won't be able to write to it; its
8996: # output is simply discarded. So we exec the FD to /dev/null,
8997: # effectively closing config.log, so it can be properly (re)opened and
8998: # appended to by config.status. When coming back to configure, we
8999: # need to make the FD available again.
9000: if test "$no_create" != yes; then
9001: ac_cs_success=:
9002: ac_config_status_args=
9003: test "$silent" = yes &&
9004: ac_config_status_args="$ac_config_status_args --quiet"
9005: exec 5>/dev/null
9006: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9007: exec 5>>config.log
9008: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9009: # would make configure fail if this is the last instruction.
9010: $ac_cs_success || { (exit 1); exit 1; }
9011: fi
9012:
9013: #
9014: # CONFIG_SUBDIRS section.
9015: #
1.1 paf 9016: if test "$no_recursion" != yes; then
9017:
9018: # Remove --cache-file and --srcdir arguments so they do not pile up.
9019: ac_sub_configure_args=
9020: ac_prev=
9021: for ac_arg in $ac_configure_args; do
9022: if test -n "$ac_prev"; then
9023: ac_prev=
9024: continue
9025: fi
1.62 paf 9026: case $ac_arg in
1.1 paf 9027: -cache-file | --cache-file | --cache-fil | --cache-fi \
9028: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9029: ac_prev=cache_file ;;
9030: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.62 paf 9031: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9032: | --c=*)
9033: ;;
9034: --config-cache | -C)
1.1 paf 9035: ;;
9036: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9037: ac_prev=srcdir ;;
9038: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9039: ;;
1.62 paf 9040: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9041: ac_prev=prefix ;;
9042: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9043: ;;
1.1 paf 9044: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9045: esac
9046: done
9047:
1.62 paf 9048: # Always prepend --prefix to ensure using the same prefix
9049: # in subdir configurations.
9050: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
9051:
9052: ac_popdir=`pwd`
9053: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 paf 9054:
9055: # Do not complain, so a configure script can configure whichever
9056: # parts of a large source tree are present.
1.62 paf 9057: test -d $srcdir/$ac_dir || continue
1.1 paf 9058:
1.62 paf 9059: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
9060: echo "$as_me: configuring in $ac_dir" >&6;}
9061: { if $as_mkdir_p; then
9062: mkdir -p "$ac_dir"
9063: else
9064: as_dir="$ac_dir"
9065: as_dirs=
9066: while test ! -d "$as_dir"; do
9067: as_dirs="$as_dir $as_dirs"
9068: as_dir=`(dirname "$as_dir") 2>/dev/null ||
9069: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 9070: X"$as_dir" : 'X\(//\)[^/]' \| \
9071: X"$as_dir" : 'X\(//\)$' \| \
9072: X"$as_dir" : 'X\(/\)' \| \
9073: . : '\(.\)' 2>/dev/null ||
1.62 paf 9074: echo X"$as_dir" |
9075: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9076: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9077: /^X\(\/\/\)$/{ s//\1/; q; }
9078: /^X\(\/\).*/{ s//\1/; q; }
9079: s/.*/./; q'`
9080: done
9081: test ! -n "$as_dirs" || mkdir $as_dirs
9082: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9083: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9084: { (exit 1); exit 1; }; }; }
9085:
9086: ac_builddir=.
9087:
9088: if test "$ac_dir" != .; then
9089: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9090: # A "../" for each directory in $ac_dir_suffix.
9091: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9092: else
9093: ac_dir_suffix= ac_top_builddir=
9094: fi
9095:
9096: case $srcdir in
9097: .) # No --srcdir option. We are building in place.
9098: ac_srcdir=.
9099: if test -z "$ac_top_builddir"; then
9100: ac_top_srcdir=.
9101: else
9102: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9103: fi ;;
9104: [\\/]* | ?:[\\/]* ) # Absolute path.
9105: ac_srcdir=$srcdir$ac_dir_suffix;
9106: ac_top_srcdir=$srcdir ;;
9107: *) # Relative path.
9108: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9109: ac_top_srcdir=$ac_top_builddir$srcdir ;;
9110: esac
1.86 paf 9111:
9112: # Do not use `cd foo && pwd` to compute absolute paths, because
9113: # the directories may not exist.
9114: case `pwd` in
9115: .) ac_abs_builddir="$ac_dir";;
9116: *)
9117: case "$ac_dir" in
9118: .) ac_abs_builddir=`pwd`;;
9119: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9120: *) ac_abs_builddir=`pwd`/"$ac_dir";;
9121: esac;;
9122: esac
9123: case $ac_abs_builddir in
9124: .) ac_abs_top_builddir=${ac_top_builddir}.;;
9125: *)
9126: case ${ac_top_builddir}. in
9127: .) ac_abs_top_builddir=$ac_abs_builddir;;
9128: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9129: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9130: esac;;
9131: esac
9132: case $ac_abs_builddir in
9133: .) ac_abs_srcdir=$ac_srcdir;;
9134: *)
9135: case $ac_srcdir in
9136: .) ac_abs_srcdir=$ac_abs_builddir;;
9137: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9138: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9139: esac;;
9140: esac
9141: case $ac_abs_builddir in
9142: .) ac_abs_top_srcdir=$ac_top_srcdir;;
9143: *)
9144: case $ac_top_srcdir in
9145: .) ac_abs_top_srcdir=$ac_abs_builddir;;
9146: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9147: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9148: esac;;
9149: esac
1.1 paf 9150:
9151:
1.62 paf 9152: cd $ac_dir
1.1 paf 9153:
9154: # Check for guested configure; otherwise get Cygnus style configure.
1.62 paf 9155: if test -f $ac_srcdir/configure.gnu; then
9156: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
9157: elif test -f $ac_srcdir/configure; then
9158: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
9159: elif test -f $ac_srcdir/configure.in; then
1.1 paf 9160: ac_sub_configure=$ac_configure
9161: else
1.62 paf 9162: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
9163: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 paf 9164: ac_sub_configure=
9165: fi
9166:
9167: # The recursion is here.
9168: if test -n "$ac_sub_configure"; then
9169: # Make the cache file name correct relative to the subdirectory.
1.62 paf 9170: case $cache_file in
9171: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.1 paf 9172: *) # Relative path.
1.86 paf 9173: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 paf 9174: esac
9175:
1.62 paf 9176: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9177: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 paf 9178: # The eval makes quoting arguments work.
1.62 paf 9179: eval $ac_sub_configure $ac_sub_configure_args \
1.86 paf 9180: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
9181: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
1.62 paf 9182: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
9183: { (exit 1); exit 1; }; }
1.1 paf 9184: fi
9185:
9186: cd $ac_popdir
9187: done
9188: fi
9189:
E-mail: