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