source: main/tags/2.30/gsdl/configure@ 25339

Last change on this file since 25339 was 1722, checked in by jrm21, 23 years ago

Check to see if CFLAGS is already set in environment, and if so, don't
override

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 105.1 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --with-dmalloc use dmalloc, as in
16 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz"
17ac_help="$ac_help
18 --with-regex use older regex in lieu of GNU rx for matching"
19ac_help="$ac_help
20 --with-dmalloc use dmalloc, as in
21 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz"
22ac_help="$ac_help
23 --with-regex use older regex in lieu of GNU rx for matching"
24
25# Initialize some variables set by options.
26# The variables have the same names as the options, with
27# dashes changed to underlines.
28build=NONE
29cache_file=./config.cache
30exec_prefix=NONE
31host=NONE
32no_create=
33nonopt=NONE
34no_recursion=
35prefix=NONE
36program_prefix=NONE
37program_suffix=NONE
38program_transform_name=s,x,x,
39silent=
40site=
41srcdir=
42target=NONE
43verbose=
44x_includes=NONE
45x_libraries=NONE
46bindir='${exec_prefix}/bin'
47sbindir='${exec_prefix}/sbin'
48libexecdir='${exec_prefix}/libexec'
49datadir='${prefix}/share'
50sysconfdir='${prefix}/etc'
51sharedstatedir='${prefix}/com'
52localstatedir='${prefix}/var'
53libdir='${exec_prefix}/lib'
54includedir='${prefix}/include'
55oldincludedir='/usr/include'
56infodir='${prefix}/info'
57mandir='${prefix}/man'
58
59# Initialize some other variables.
60subdirs=
61MFLAGS= MAKEFLAGS=
62SHELL=${CONFIG_SHELL-/bin/sh}
63# Maximum number of lines to put in a shell here document.
64ac_max_here_lines=12
65
66ac_prev=
67for ac_option
68do
69
70 # If the previous option needs an argument, assign it.
71 if test -n "$ac_prev"; then
72 eval "$ac_prev=\$ac_option"
73 ac_prev=
74 continue
75 fi
76
77 case "$ac_option" in
78 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
79 *) ac_optarg= ;;
80 esac
81
82 # Accept the important Cygnus configure options, so we can diagnose typos.
83
84 case "$ac_option" in
85
86 -bindir | --bindir | --bindi | --bind | --bin | --bi)
87 ac_prev=bindir ;;
88 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
89 bindir="$ac_optarg" ;;
90
91 -build | --build | --buil | --bui | --bu)
92 ac_prev=build ;;
93 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
94 build="$ac_optarg" ;;
95
96 -cache-file | --cache-file | --cache-fil | --cache-fi \
97 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
98 ac_prev=cache_file ;;
99 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
100 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
101 cache_file="$ac_optarg" ;;
102
103 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
104 ac_prev=datadir ;;
105 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
106 | --da=*)
107 datadir="$ac_optarg" ;;
108
109 -disable-* | --disable-*)
110 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 fi
115 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116 eval "enable_${ac_feature}=no" ;;
117
118 -enable-* | --enable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 fi
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125 case "$ac_option" in
126 *=*) ;;
127 *) ac_optarg=yes ;;
128 esac
129 eval "enable_${ac_feature}='$ac_optarg'" ;;
130
131 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
132 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
133 | --exec | --exe | --ex)
134 ac_prev=exec_prefix ;;
135 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
136 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
137 | --exec=* | --exe=* | --ex=*)
138 exec_prefix="$ac_optarg" ;;
139
140 -gas | --gas | --ga | --g)
141 # Obsolete; use --with-gas.
142 with_gas=yes ;;
143
144 -help | --help | --hel | --he)
145 # Omit some internal or obsolete options to make the list less imposing.
146 # This message is too long to be a string in the A/UX 3.1 sh.
147 cat << EOF
148Usage: configure [options] [host]
149Options: [defaults in brackets after descriptions]
150Configuration:
151 --cache-file=FILE cache test results in FILE
152 --help print this message
153 --no-create do not create output files
154 --quiet, --silent do not print \`checking...' messages
155 --version print the version of autoconf that created configure
156Directory and file names:
157 --prefix=PREFIX install architecture-independent files in PREFIX
158 [$ac_default_prefix]
159 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
160 [same as prefix]
161 --bindir=DIR user executables in DIR [EPREFIX/bin]
162 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
163 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
164 --datadir=DIR read-only architecture-independent data in DIR
165 [PREFIX/share]
166 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
167 --sharedstatedir=DIR modifiable architecture-independent data in DIR
168 [PREFIX/com]
169 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
170 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
171 --includedir=DIR C header files in DIR [PREFIX/include]
172 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
173 --infodir=DIR info documentation in DIR [PREFIX/info]
174 --mandir=DIR man documentation in DIR [PREFIX/man]
175 --srcdir=DIR find the sources in DIR [configure dir or ..]
176 --program-prefix=PREFIX prepend PREFIX to installed program names
177 --program-suffix=SUFFIX append SUFFIX to installed program names
178 --program-transform-name=PROGRAM
179 run sed PROGRAM on installed program names
180EOF
181 cat << EOF
182Host type:
183 --build=BUILD configure for building on BUILD [BUILD=HOST]
184 --host=HOST configure for HOST [guessed]
185 --target=TARGET configure for TARGET [TARGET=HOST]
186Features and packages:
187 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
188 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
189 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
190 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
191 --x-includes=DIR X include files are in DIR
192 --x-libraries=DIR X library files are in DIR
193EOF
194 if test -n "$ac_help"; then
195 echo "--enable and --with options recognized:$ac_help"
196 fi
197 exit 0 ;;
198
199 -host | --host | --hos | --ho)
200 ac_prev=host ;;
201 -host=* | --host=* | --hos=* | --ho=*)
202 host="$ac_optarg" ;;
203
204 -includedir | --includedir | --includedi | --included | --include \
205 | --includ | --inclu | --incl | --inc)
206 ac_prev=includedir ;;
207 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
208 | --includ=* | --inclu=* | --incl=* | --inc=*)
209 includedir="$ac_optarg" ;;
210
211 -infodir | --infodir | --infodi | --infod | --info | --inf)
212 ac_prev=infodir ;;
213 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
214 infodir="$ac_optarg" ;;
215
216 -libdir | --libdir | --libdi | --libd)
217 ac_prev=libdir ;;
218 -libdir=* | --libdir=* | --libdi=* | --libd=*)
219 libdir="$ac_optarg" ;;
220
221 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
222 | --libexe | --libex | --libe)
223 ac_prev=libexecdir ;;
224 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
225 | --libexe=* | --libex=* | --libe=*)
226 libexecdir="$ac_optarg" ;;
227
228 -localstatedir | --localstatedir | --localstatedi | --localstated \
229 | --localstate | --localstat | --localsta | --localst \
230 | --locals | --local | --loca | --loc | --lo)
231 ac_prev=localstatedir ;;
232 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
233 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
234 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
235 localstatedir="$ac_optarg" ;;
236
237 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
238 ac_prev=mandir ;;
239 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
240 mandir="$ac_optarg" ;;
241
242 -nfp | --nfp | --nf)
243 # Obsolete; use --without-fp.
244 with_fp=no ;;
245
246 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
247 | --no-cr | --no-c)
248 no_create=yes ;;
249
250 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
251 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
252 no_recursion=yes ;;
253
254 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
255 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
256 | --oldin | --oldi | --old | --ol | --o)
257 ac_prev=oldincludedir ;;
258 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
259 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
260 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
261 oldincludedir="$ac_optarg" ;;
262
263 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
264 ac_prev=prefix ;;
265 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
266 prefix="$ac_optarg" ;;
267
268 -program-prefix | --program-prefix | --program-prefi | --program-pref \
269 | --program-pre | --program-pr | --program-p)
270 ac_prev=program_prefix ;;
271 -program-prefix=* | --program-prefix=* | --program-prefi=* \
272 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
273 program_prefix="$ac_optarg" ;;
274
275 -program-suffix | --program-suffix | --program-suffi | --program-suff \
276 | --program-suf | --program-su | --program-s)
277 ac_prev=program_suffix ;;
278 -program-suffix=* | --program-suffix=* | --program-suffi=* \
279 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
280 program_suffix="$ac_optarg" ;;
281
282 -program-transform-name | --program-transform-name \
283 | --program-transform-nam | --program-transform-na \
284 | --program-transform-n | --program-transform- \
285 | --program-transform | --program-transfor \
286 | --program-transfo | --program-transf \
287 | --program-trans | --program-tran \
288 | --progr-tra | --program-tr | --program-t)
289 ac_prev=program_transform_name ;;
290 -program-transform-name=* | --program-transform-name=* \
291 | --program-transform-nam=* | --program-transform-na=* \
292 | --program-transform-n=* | --program-transform-=* \
293 | --program-transform=* | --program-transfor=* \
294 | --program-transfo=* | --program-transf=* \
295 | --program-trans=* | --program-tran=* \
296 | --progr-tra=* | --program-tr=* | --program-t=*)
297 program_transform_name="$ac_optarg" ;;
298
299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
300 | -silent | --silent | --silen | --sile | --sil)
301 silent=yes ;;
302
303 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
304 ac_prev=sbindir ;;
305 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
306 | --sbi=* | --sb=*)
307 sbindir="$ac_optarg" ;;
308
309 -sharedstatedir | --sharedstatedir | --sharedstatedi \
310 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
311 | --sharedst | --shareds | --shared | --share | --shar \
312 | --sha | --sh)
313 ac_prev=sharedstatedir ;;
314 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
315 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
316 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
317 | --sha=* | --sh=*)
318 sharedstatedir="$ac_optarg" ;;
319
320 -site | --site | --sit)
321 ac_prev=site ;;
322 -site=* | --site=* | --sit=*)
323 site="$ac_optarg" ;;
324
325 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
326 ac_prev=srcdir ;;
327 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
328 srcdir="$ac_optarg" ;;
329
330 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
331 | --syscon | --sysco | --sysc | --sys | --sy)
332 ac_prev=sysconfdir ;;
333 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
334 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
335 sysconfdir="$ac_optarg" ;;
336
337 -target | --target | --targe | --targ | --tar | --ta | --t)
338 ac_prev=target ;;
339 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
340 target="$ac_optarg" ;;
341
342 -v | -verbose | --verbose | --verbos | --verbo | --verb)
343 verbose=yes ;;
344
345 -version | --version | --versio | --versi | --vers)
346 echo "configure generated by autoconf version 2.13"
347 exit 0 ;;
348
349 -with-* | --with-*)
350 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
351 # Reject names that are not valid shell variable names.
352 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
353 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
354 fi
355 ac_package=`echo $ac_package| sed 's/-/_/g'`
356 case "$ac_option" in
357 *=*) ;;
358 *) ac_optarg=yes ;;
359 esac
360 eval "with_${ac_package}='$ac_optarg'" ;;
361
362 -without-* | --without-*)
363 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 fi
368 ac_package=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}=no" ;;
370
371 --x)
372 # Obsolete; use --with-x.
373 with_x=yes ;;
374
375 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
376 | --x-incl | --x-inc | --x-in | --x-i)
377 ac_prev=x_includes ;;
378 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
379 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
380 x_includes="$ac_optarg" ;;
381
382 -x-libraries | --x-libraries | --x-librarie | --x-librari \
383 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
384 ac_prev=x_libraries ;;
385 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
386 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
387 x_libraries="$ac_optarg" ;;
388
389 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
390 ;;
391
392 *)
393 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
394 echo "configure: warning: $ac_option: invalid host type" 1>&2
395 fi
396 if test "x$nonopt" != xNONE; then
397 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
398 fi
399 nonopt="$ac_option"
400 ;;
401
402 esac
403done
404
405if test -n "$ac_prev"; then
406 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
407fi
408
409trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
410
411# File descriptor usage:
412# 0 standard input
413# 1 file creation
414# 2 errors and warnings
415# 3 some systems may open it to /dev/tty
416# 4 used on the Kubota Titan
417# 6 checking for... messages and results
418# 5 compiler messages saved in config.log
419if test "$silent" = yes; then
420 exec 6>/dev/null
421else
422 exec 6>&1
423fi
424exec 5>./config.log
425
426echo "\
427This file contains any messages produced by compilers while
428running configure, to aid debugging if configure makes a mistake.
429" 1>&5
430
431# Strip out --no-create and --no-recursion so they do not pile up.
432# Also quote any args containing shell metacharacters.
433ac_configure_args=
434for ac_arg
435do
436 case "$ac_arg" in
437 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
438 | --no-cr | --no-c) ;;
439 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
440 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
441 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
442 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
443 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
444 esac
445done
446
447# NLS nuisances.
448# Only set these to C if already set. These must not be set unconditionally
449# because not all systems understand e.g. LANG=C (notably SCO).
450# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
451# Non-C LC_CTYPE values break the ctype check.
452if test "${LANG+set}" = set; then LANG=C; export LANG; fi
453if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
454if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
455if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
456
457# confdefs.h avoids OS command line length limits that DEFS can exceed.
458rm -rf conftest* confdefs.h
459# AIX cpp loses on an empty file, so make sure it contains at least a newline.
460echo > confdefs.h
461
462# A filename unique to this package, relative to the directory that
463# configure is in, which we can look for to find out if srcdir is correct.
464ac_unique_file=lib/text_t.h
465
466# Find the source files, if location was not specified.
467if test -z "$srcdir"; then
468 ac_srcdir_defaulted=yes
469 # Try the directory containing this script, then its parent.
470 ac_prog=$0
471 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
472 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
473 srcdir=$ac_confdir
474 if test ! -r $srcdir/$ac_unique_file; then
475 srcdir=..
476 fi
477else
478 ac_srcdir_defaulted=no
479fi
480if test ! -r $srcdir/$ac_unique_file; then
481 if test "$ac_srcdir_defaulted" = yes; then
482 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
483 else
484 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
485 fi
486fi
487srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
488
489# Prefer explicitly selected file to automatically selected ones.
490if test -z "$CONFIG_SITE"; then
491 if test "x$prefix" != xNONE; then
492 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
493 else
494 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
495 fi
496fi
497for ac_site_file in $CONFIG_SITE; do
498 if test -r "$ac_site_file"; then
499 echo "loading site script $ac_site_file"
500 . "$ac_site_file"
501 fi
502done
503
504if test -r "$cache_file"; then
505 echo "loading cache $cache_file"
506 . $cache_file
507else
508 echo "creating cache $cache_file"
509 > $cache_file
510fi
511
512ac_ext=c
513# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
514ac_cpp='$CPP $CPPFLAGS'
515ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
516ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
517cross_compiling=$ac_cv_prog_cc_cross
518
519ac_exeext=
520ac_objext=o
521if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
522 # Stardent Vistra SVR4 grep lacks -e, says [email protected].
523 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
524 ac_n= ac_c='
525' ac_t=' '
526 else
527 ac_n=-n ac_c= ac_t=
528 fi
529else
530 ac_n= ac_c='\c' ac_t=
531fi
532
533
534
535if test "$program_transform_name" = s,x,x,; then
536 program_transform_name=
537else
538 # Double any \ or $. echo might interpret backslashes.
539 cat <<\EOF_SED > conftestsed
540s,\\,\\\\,g; s,\$,$$,g
541EOF_SED
542 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
543 rm -f conftestsed
544fi
545test "$program_prefix" != NONE &&
546 program_transform_name="s,^,${program_prefix},; $program_transform_name"
547# Use a double $ so make ignores it.
548test "$program_suffix" != NONE &&
549 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
550
551# sed with no file args requires a program.
552test "$program_transform_name" = "" && program_transform_name="s,x,x,"
553
554
555PACKAGE=gsdl
556VERSION=2.1
557cat >> confdefs.h <<EOF
558#define PACKAGE "$PACKAGE"
559EOF
560
561cat >> confdefs.h <<EOF
562#define VERSION "$VERSION"
563EOF
564
565
566
567
568USE_FASTCGI=0
569if test USE_FASTCGI = 1; then
570cat >> confdefs.h <<\EOF
571#define USE_FASTCGI 1
572EOF
573
574
575fi
576
577LDFLAGS=
578if test -z "$CFLAGS"; then
579CFLAGS=-O2
580fi
581
582
583# Extract the first word of "gcc", so it can be a program name with args.
584set dummy gcc; ac_word=$2
585echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
586echo "configure:587: checking for $ac_word" >&5
587if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
588 echo $ac_n "(cached) $ac_c" 1>&6
589else
590 if test -n "$CC"; then
591 ac_cv_prog_CC="$CC" # Let the user override the test.
592else
593 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
594 ac_dummy="$PATH"
595 for ac_dir in $ac_dummy; do
596 test -z "$ac_dir" && ac_dir=.
597 if test -f $ac_dir/$ac_word; then
598 ac_cv_prog_CC="gcc"
599 break
600 fi
601 done
602 IFS="$ac_save_ifs"
603fi
604fi
605CC="$ac_cv_prog_CC"
606if test -n "$CC"; then
607 echo "$ac_t""$CC" 1>&6
608else
609 echo "$ac_t""no" 1>&6
610fi
611
612if test -z "$CC"; then
613 # Extract the first word of "cc", so it can be a program name with args.
614set dummy cc; ac_word=$2
615echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
616echo "configure:617: checking for $ac_word" >&5
617if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
618 echo $ac_n "(cached) $ac_c" 1>&6
619else
620 if test -n "$CC"; then
621 ac_cv_prog_CC="$CC" # Let the user override the test.
622else
623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
624 ac_prog_rejected=no
625 ac_dummy="$PATH"
626 for ac_dir in $ac_dummy; do
627 test -z "$ac_dir" && ac_dir=.
628 if test -f $ac_dir/$ac_word; then
629 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
630 ac_prog_rejected=yes
631 continue
632 fi
633 ac_cv_prog_CC="cc"
634 break
635 fi
636 done
637 IFS="$ac_save_ifs"
638if test $ac_prog_rejected = yes; then
639 # We found a bogon in the path, so make sure we never use it.
640 set dummy $ac_cv_prog_CC
641 shift
642 if test $# -gt 0; then
643 # We chose a different compiler from the bogus one.
644 # However, it has the same basename, so the bogon will be chosen
645 # first if we set CC to just the basename; use the full file name.
646 shift
647 set dummy "$ac_dir/$ac_word" "$@"
648 shift
649 ac_cv_prog_CC="$@"
650 fi
651fi
652fi
653fi
654CC="$ac_cv_prog_CC"
655if test -n "$CC"; then
656 echo "$ac_t""$CC" 1>&6
657else
658 echo "$ac_t""no" 1>&6
659fi
660
661 if test -z "$CC"; then
662 case "`uname -s`" in
663 *win32* | *WIN32*)
664 # Extract the first word of "cl", so it can be a program name with args.
665set dummy cl; ac_word=$2
666echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
667echo "configure:668: checking for $ac_word" >&5
668if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
669 echo $ac_n "(cached) $ac_c" 1>&6
670else
671 if test -n "$CC"; then
672 ac_cv_prog_CC="$CC" # Let the user override the test.
673else
674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
675 ac_dummy="$PATH"
676 for ac_dir in $ac_dummy; do
677 test -z "$ac_dir" && ac_dir=.
678 if test -f $ac_dir/$ac_word; then
679 ac_cv_prog_CC="cl"
680 break
681 fi
682 done
683 IFS="$ac_save_ifs"
684fi
685fi
686CC="$ac_cv_prog_CC"
687if test -n "$CC"; then
688 echo "$ac_t""$CC" 1>&6
689else
690 echo "$ac_t""no" 1>&6
691fi
692 ;;
693 esac
694 fi
695 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
696fi
697
698echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
699echo "configure:700: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
700
701ac_ext=c
702# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
703ac_cpp='$CPP $CPPFLAGS'
704ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
705ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
706cross_compiling=$ac_cv_prog_cc_cross
707
708cat > conftest.$ac_ext << EOF
709
710#line 711 "configure"
711#include "confdefs.h"
712
713main(){return(0);}
714EOF
715if { (eval echo configure:716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
716 ac_cv_prog_cc_works=yes
717 # If we can't run a trivial program, we are probably using a cross compiler.
718 if (./conftest; exit) 2>/dev/null; then
719 ac_cv_prog_cc_cross=no
720 else
721 ac_cv_prog_cc_cross=yes
722 fi
723else
724 echo "configure: failed program was:" >&5
725 cat conftest.$ac_ext >&5
726 ac_cv_prog_cc_works=no
727fi
728rm -fr conftest*
729ac_ext=c
730# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
731ac_cpp='$CPP $CPPFLAGS'
732ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
733ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
734cross_compiling=$ac_cv_prog_cc_cross
735
736echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
737if test $ac_cv_prog_cc_works = no; then
738 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
739fi
740echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
741echo "configure:742: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
742echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
743cross_compiling=$ac_cv_prog_cc_cross
744
745echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
746echo "configure:747: checking whether we are using GNU C" >&5
747if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
748 echo $ac_n "(cached) $ac_c" 1>&6
749else
750 cat > conftest.c <<EOF
751#ifdef __GNUC__
752 yes;
753#endif
754EOF
755if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
756 ac_cv_prog_gcc=yes
757else
758 ac_cv_prog_gcc=no
759fi
760fi
761
762echo "$ac_t""$ac_cv_prog_gcc" 1>&6
763
764if test $ac_cv_prog_gcc = yes; then
765 GCC=yes
766else
767 GCC=
768fi
769
770ac_test_CFLAGS="${CFLAGS+set}"
771ac_save_CFLAGS="$CFLAGS"
772CFLAGS=
773echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
774echo "configure:775: checking whether ${CC-cc} accepts -g" >&5
775if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
776 echo $ac_n "(cached) $ac_c" 1>&6
777else
778 echo 'void f(){}' > conftest.c
779if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
780 ac_cv_prog_cc_g=yes
781else
782 ac_cv_prog_cc_g=no
783fi
784rm -f conftest*
785
786fi
787
788echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
789if test "$ac_test_CFLAGS" = set; then
790 CFLAGS="$ac_save_CFLAGS"
791elif test $ac_cv_prog_cc_g = yes; then
792 if test "$GCC" = yes; then
793 CFLAGS="-g -O2"
794 else
795 CFLAGS="-g"
796 fi
797else
798 if test "$GCC" = yes; then
799 CFLAGS="-O2"
800 else
801 CFLAGS=
802 fi
803fi
804
805for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
806do
807# Extract the first word of "$ac_prog", so it can be a program name with args.
808set dummy $ac_prog; ac_word=$2
809echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
810echo "configure:811: checking for $ac_word" >&5
811if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
812 echo $ac_n "(cached) $ac_c" 1>&6
813else
814 if test -n "$CXX"; then
815 ac_cv_prog_CXX="$CXX" # Let the user override the test.
816else
817 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
818 ac_dummy="$PATH"
819 for ac_dir in $ac_dummy; do
820 test -z "$ac_dir" && ac_dir=.
821 if test -f $ac_dir/$ac_word; then
822 ac_cv_prog_CXX="$ac_prog"
823 break
824 fi
825 done
826 IFS="$ac_save_ifs"
827fi
828fi
829CXX="$ac_cv_prog_CXX"
830if test -n "$CXX"; then
831 echo "$ac_t""$CXX" 1>&6
832else
833 echo "$ac_t""no" 1>&6
834fi
835
836test -n "$CXX" && break
837done
838test -n "$CXX" || CXX="gcc"
839
840
841echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
842echo "configure:843: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
843
844ac_ext=C
845# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
846ac_cpp='$CXXCPP $CPPFLAGS'
847ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
848ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
849cross_compiling=$ac_cv_prog_cxx_cross
850
851cat > conftest.$ac_ext << EOF
852
853#line 854 "configure"
854#include "confdefs.h"
855
856int main(){return(0);}
857EOF
858if { (eval echo configure:859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
859 ac_cv_prog_cxx_works=yes
860 # If we can't run a trivial program, we are probably using a cross compiler.
861 if (./conftest; exit) 2>/dev/null; then
862 ac_cv_prog_cxx_cross=no
863 else
864 ac_cv_prog_cxx_cross=yes
865 fi
866else
867 echo "configure: failed program was:" >&5
868 cat conftest.$ac_ext >&5
869 ac_cv_prog_cxx_works=no
870fi
871rm -fr conftest*
872ac_ext=c
873# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
874ac_cpp='$CPP $CPPFLAGS'
875ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
876ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
877cross_compiling=$ac_cv_prog_cc_cross
878
879echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
880if test $ac_cv_prog_cxx_works = no; then
881 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
882fi
883echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
884echo "configure:885: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
885echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
886cross_compiling=$ac_cv_prog_cxx_cross
887
888echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
889echo "configure:890: checking whether we are using GNU C++" >&5
890if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
891 echo $ac_n "(cached) $ac_c" 1>&6
892else
893 cat > conftest.C <<EOF
894#ifdef __GNUC__
895 yes;
896#endif
897EOF
898if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
899 ac_cv_prog_gxx=yes
900else
901 ac_cv_prog_gxx=no
902fi
903fi
904
905echo "$ac_t""$ac_cv_prog_gxx" 1>&6
906
907if test $ac_cv_prog_gxx = yes; then
908 GXX=yes
909else
910 GXX=
911fi
912
913ac_test_CXXFLAGS="${CXXFLAGS+set}"
914ac_save_CXXFLAGS="$CXXFLAGS"
915CXXFLAGS=
916echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
917echo "configure:918: checking whether ${CXX-g++} accepts -g" >&5
918if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
919 echo $ac_n "(cached) $ac_c" 1>&6
920else
921 echo 'void f(){}' > conftest.cc
922if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
923 ac_cv_prog_cxx_g=yes
924else
925 ac_cv_prog_cxx_g=no
926fi
927rm -f conftest*
928
929fi
930
931echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
932if test "$ac_test_CXXFLAGS" = set; then
933 CXXFLAGS="$ac_save_CXXFLAGS"
934elif test $ac_cv_prog_cxx_g = yes; then
935 if test "$GXX" = yes; then
936 CXXFLAGS="-g -O2"
937 else
938 CXXFLAGS="-g"
939 fi
940else
941 if test "$GXX" = yes; then
942 CXXFLAGS="-O2"
943 else
944 CXXFLAGS=
945 fi
946fi
947
948for ac_prog in mawk gawk nawk awk
949do
950# Extract the first word of "$ac_prog", so it can be a program name with args.
951set dummy $ac_prog; ac_word=$2
952echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
953echo "configure:954: checking for $ac_word" >&5
954if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
955 echo $ac_n "(cached) $ac_c" 1>&6
956else
957 if test -n "$AWK"; then
958 ac_cv_prog_AWK="$AWK" # Let the user override the test.
959else
960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
961 ac_dummy="$PATH"
962 for ac_dir in $ac_dummy; do
963 test -z "$ac_dir" && ac_dir=.
964 if test -f $ac_dir/$ac_word; then
965 ac_cv_prog_AWK="$ac_prog"
966 break
967 fi
968 done
969 IFS="$ac_save_ifs"
970fi
971fi
972AWK="$ac_cv_prog_AWK"
973if test -n "$AWK"; then
974 echo "$ac_t""$AWK" 1>&6
975else
976 echo "$ac_t""no" 1>&6
977fi
978
979test -n "$AWK" && break
980done
981
982for ac_prog in 'bison -y' byacc
983do
984# Extract the first word of "$ac_prog", so it can be a program name with args.
985set dummy $ac_prog; ac_word=$2
986echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
987echo "configure:988: checking for $ac_word" >&5
988if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
990else
991 if test -n "$YACC"; then
992 ac_cv_prog_YACC="$YACC" # Let the user override the test.
993else
994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
995 ac_dummy="$PATH"
996 for ac_dir in $ac_dummy; do
997 test -z "$ac_dir" && ac_dir=.
998 if test -f $ac_dir/$ac_word; then
999 ac_cv_prog_YACC="$ac_prog"
1000 break
1001 fi
1002 done
1003 IFS="$ac_save_ifs"
1004fi
1005fi
1006YACC="$ac_cv_prog_YACC"
1007if test -n "$YACC"; then
1008 echo "$ac_t""$YACC" 1>&6
1009else
1010 echo "$ac_t""no" 1>&6
1011fi
1012
1013test -n "$YACC" && break
1014done
1015test -n "$YACC" || YACC="yacc"
1016
1017ac_aux_dir=
1018for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1019 if test -f $ac_dir/install-sh; then
1020 ac_aux_dir=$ac_dir
1021 ac_install_sh="$ac_aux_dir/install-sh -c"
1022 break
1023 elif test -f $ac_dir/install.sh; then
1024 ac_aux_dir=$ac_dir
1025 ac_install_sh="$ac_aux_dir/install.sh -c"
1026 break
1027 fi
1028done
1029if test -z "$ac_aux_dir"; then
1030 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1031fi
1032ac_config_guess=$ac_aux_dir/config.guess
1033ac_config_sub=$ac_aux_dir/config.sub
1034ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1035
1036# Find a good install program. We prefer a C program (faster),
1037# so one script is as good as another. But avoid the broken or
1038# incompatible versions:
1039# SysV /etc/install, /usr/sbin/install
1040# SunOS /usr/etc/install
1041# IRIX /sbin/install
1042# AIX /bin/install
1043# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1044# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1045# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1046# ./install, which can be erroneously created by make from ./install.sh.
1047echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1048echo "configure:1049: checking for a BSD compatible install" >&5
1049if test -z "$INSTALL"; then
1050if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1051 echo $ac_n "(cached) $ac_c" 1>&6
1052else
1053 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1054 for ac_dir in $PATH; do
1055 # Account for people who put trailing slashes in PATH elements.
1056 case "$ac_dir/" in
1057 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1058 *)
1059 # OSF1 and SCO ODT 3.0 have their own names for install.
1060 # Don't use installbsd from OSF since it installs stuff as root
1061 # by default.
1062 for ac_prog in ginstall scoinst install; do
1063 if test -f $ac_dir/$ac_prog; then
1064 if test $ac_prog = install &&
1065 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1066 # AIX install. It has an incompatible calling convention.
1067 :
1068 else
1069 ac_cv_path_install="$ac_dir/$ac_prog -c"
1070 break 2
1071 fi
1072 fi
1073 done
1074 ;;
1075 esac
1076 done
1077 IFS="$ac_save_IFS"
1078
1079fi
1080 if test "${ac_cv_path_install+set}" = set; then
1081 INSTALL="$ac_cv_path_install"
1082 else
1083 # As a last resort, use the slow shell script. We don't cache a
1084 # path for INSTALL within a source directory, because that will
1085 # break other packages using the cache if that directory is
1086 # removed, or if the path is relative.
1087 INSTALL="$ac_install_sh"
1088 fi
1089fi
1090echo "$ac_t""$INSTALL" 1>&6
1091
1092# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1093# It thinks the first close brace ends the variable substitution.
1094test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1095
1096test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1097
1098test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1099
1100echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1101echo "configure:1102: checking whether ln -s works" >&5
1102if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1103 echo $ac_n "(cached) $ac_c" 1>&6
1104else
1105 rm -f conftestdata
1106if ln -s X conftestdata 2>/dev/null
1107then
1108 rm -f conftestdata
1109 ac_cv_prog_LN_S="ln -s"
1110else
1111 ac_cv_prog_LN_S=ln
1112fi
1113fi
1114LN_S="$ac_cv_prog_LN_S"
1115if test "$ac_cv_prog_LN_S" = "ln -s"; then
1116 echo "$ac_t""yes" 1>&6
1117else
1118 echo "$ac_t""no" 1>&6
1119fi
1120
1121echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1122echo "configure:1123: checking whether ${MAKE-make} sets \${MAKE}" >&5
1123set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1124if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1126else
1127 cat > conftestmake <<\EOF
1128all:
1129 @echo 'ac_maketemp="${MAKE}"'
1130EOF
1131# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1132eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1133if test -n "$ac_maketemp"; then
1134 eval ac_cv_prog_make_${ac_make}_set=yes
1135else
1136 eval ac_cv_prog_make_${ac_make}_set=no
1137fi
1138rm -f conftestmake
1139fi
1140if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1141 echo "$ac_t""yes" 1>&6
1142 SET_MAKE=
1143else
1144 echo "$ac_t""no" 1>&6
1145 SET_MAKE="MAKE=${MAKE-make}"
1146fi
1147
1148# Extract the first word of "ranlib", so it can be a program name with args.
1149set dummy ranlib; ac_word=$2
1150echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1151echo "configure:1152: checking for $ac_word" >&5
1152if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1154else
1155 if test -n "$RANLIB"; then
1156 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1157else
1158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1159 ac_dummy="$PATH"
1160 for ac_dir in $ac_dummy; do
1161 test -z "$ac_dir" && ac_dir=.
1162 if test -f $ac_dir/$ac_word; then
1163 ac_cv_prog_RANLIB="ranlib"
1164 break
1165 fi
1166 done
1167 IFS="$ac_save_ifs"
1168 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1169fi
1170fi
1171RANLIB="$ac_cv_prog_RANLIB"
1172if test -n "$RANLIB"; then
1173 echo "$ac_t""$RANLIB" 1>&6
1174else
1175 echo "$ac_t""no" 1>&6
1176fi
1177
1178
1179
1180echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1181echo "configure:1182: checking how to run the C preprocessor" >&5
1182# On Suns, sometimes $CPP names a directory.
1183if test -n "$CPP" && test -d "$CPP"; then
1184 CPP=
1185fi
1186if test -z "$CPP"; then
1187if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1188 echo $ac_n "(cached) $ac_c" 1>&6
1189else
1190 # This must be in double quotes, not single quotes, because CPP may get
1191 # substituted into the Makefile and "${CC-cc}" will confuse make.
1192 CPP="${CC-cc} -E"
1193 # On the NeXT, cc -E runs the code through the compiler's parser,
1194 # not just through cpp.
1195 cat > conftest.$ac_ext <<EOF
1196#line 1197 "configure"
1197#include "confdefs.h"
1198#include <assert.h>
1199Syntax Error
1200EOF
1201ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1202{ (eval echo configure:1203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1203ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1204if test -z "$ac_err"; then
1205 :
1206else
1207 echo "$ac_err" >&5
1208 echo "configure: failed program was:" >&5
1209 cat conftest.$ac_ext >&5
1210 rm -rf conftest*
1211 CPP="${CC-cc} -E -traditional-cpp"
1212 cat > conftest.$ac_ext <<EOF
1213#line 1214 "configure"
1214#include "confdefs.h"
1215#include <assert.h>
1216Syntax Error
1217EOF
1218ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1219{ (eval echo configure:1220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1220ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1221if test -z "$ac_err"; then
1222 :
1223else
1224 echo "$ac_err" >&5
1225 echo "configure: failed program was:" >&5
1226 cat conftest.$ac_ext >&5
1227 rm -rf conftest*
1228 CPP="${CC-cc} -nologo -E"
1229 cat > conftest.$ac_ext <<EOF
1230#line 1231 "configure"
1231#include "confdefs.h"
1232#include <assert.h>
1233Syntax Error
1234EOF
1235ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1236{ (eval echo configure:1237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1237ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1238if test -z "$ac_err"; then
1239 :
1240else
1241 echo "$ac_err" >&5
1242 echo "configure: failed program was:" >&5
1243 cat conftest.$ac_ext >&5
1244 rm -rf conftest*
1245 CPP=/lib/cpp
1246fi
1247rm -f conftest*
1248fi
1249rm -f conftest*
1250fi
1251rm -f conftest*
1252 ac_cv_prog_CPP="$CPP"
1253fi
1254 CPP="$ac_cv_prog_CPP"
1255else
1256 ac_cv_prog_CPP="$CPP"
1257fi
1258echo "$ac_t""$CPP" 1>&6
1259
1260echo $ac_n "checking for AIX""... $ac_c" 1>&6
1261echo "configure:1262: checking for AIX" >&5
1262cat > conftest.$ac_ext <<EOF
1263#line 1264 "configure"
1264#include "confdefs.h"
1265#ifdef _AIX
1266 yes
1267#endif
1268
1269EOF
1270if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1271 egrep "yes" >/dev/null 2>&1; then
1272 rm -rf conftest*
1273 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1274#define _ALL_SOURCE 1
1275EOF
1276
1277else
1278 rm -rf conftest*
1279 echo "$ac_t""no" 1>&6
1280fi
1281rm -f conftest*
1282
1283
1284echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1285echo "configure:1286: checking for POSIXized ISC" >&5
1286if test -d /etc/conf/kconfig.d &&
1287 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1288then
1289 echo "$ac_t""yes" 1>&6
1290 ISC=yes # If later tests want to check for ISC.
1291 cat >> confdefs.h <<\EOF
1292#define _POSIX_SOURCE 1
1293EOF
1294
1295 if test "$GCC" = yes; then
1296 CC="$CC -posix"
1297 else
1298 CC="$CC -Xp"
1299 fi
1300else
1301 echo "$ac_t""no" 1>&6
1302 ISC=
1303fi
1304
1305ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1306echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1307echo "configure:1308: checking for minix/config.h" >&5
1308if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1309 echo $ac_n "(cached) $ac_c" 1>&6
1310else
1311 cat > conftest.$ac_ext <<EOF
1312#line 1313 "configure"
1313#include "confdefs.h"
1314#include <minix/config.h>
1315EOF
1316ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1317{ (eval echo configure:1318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1318ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1319if test -z "$ac_err"; then
1320 rm -rf conftest*
1321 eval "ac_cv_header_$ac_safe=yes"
1322else
1323 echo "$ac_err" >&5
1324 echo "configure: failed program was:" >&5
1325 cat conftest.$ac_ext >&5
1326 rm -rf conftest*
1327 eval "ac_cv_header_$ac_safe=no"
1328fi
1329rm -f conftest*
1330fi
1331if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1332 echo "$ac_t""yes" 1>&6
1333 MINIX=yes
1334else
1335 echo "$ac_t""no" 1>&6
1336MINIX=
1337fi
1338
1339if test "$MINIX" = yes; then
1340 cat >> confdefs.h <<\EOF
1341#define _POSIX_SOURCE 1
1342EOF
1343
1344 cat >> confdefs.h <<\EOF
1345#define _POSIX_1_SOURCE 2
1346EOF
1347
1348 cat >> confdefs.h <<\EOF
1349#define _MINIX 1
1350EOF
1351
1352fi
1353
1354echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1355echo "configure:1356: checking for ${CC-cc} option to accept ANSI C" >&5
1356if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1358else
1359 ac_cv_prog_cc_stdc=no
1360ac_save_CFLAGS="$CFLAGS"
1361# Don't try gcc -ansi; that turns off useful extensions and
1362# breaks some systems' header files.
1363# AIX -qlanglvl=ansi
1364# Ultrix and OSF/1 -std1
1365# HP-UX -Aa -D_HPUX_SOURCE
1366# SVR4 -Xc
1367for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
1368do
1369 CFLAGS="$ac_save_CFLAGS $ac_arg"
1370 cat > conftest.$ac_ext <<EOF
1371#line 1372 "configure"
1372#include "confdefs.h"
1373#if !defined(__STDC__) || __STDC__ != 1
1374choke me
1375#endif
1376
1377int main() {
1378int test (int i, double x);
1379struct s1 {int (*f) (int a);};
1380struct s2 {int (*f) (double a);};
1381; return 0; }
1382EOF
1383if { (eval echo configure:1384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1384 rm -rf conftest*
1385 ac_cv_prog_cc_stdc="$ac_arg"; break
1386else
1387 echo "configure: failed program was:" >&5
1388 cat conftest.$ac_ext >&5
1389fi
1390rm -f conftest*
1391done
1392CFLAGS="$ac_save_CFLAGS"
1393
1394fi
1395
1396echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
1397case "x$ac_cv_prog_cc_stdc" in
1398 x|xno) ;;
1399 *) CC="$CC $ac_cv_prog_cc_stdc" ;;
1400esac
1401
1402
1403echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
1404echo "configure:1405: checking for function prototypes" >&5
1405if test "$ac_cv_prog_cc_stdc" != no; then
1406 echo "$ac_t""yes" 1>&6
1407 cat >> confdefs.h <<\EOF
1408#define PROTOTYPES 1
1409EOF
1410
1411 U= ANSI2KNR=
1412else
1413 echo "$ac_t""no" 1>&6
1414 U=_ ANSI2KNR=ansi2knr
1415fi
1416
1417echo $ac_n "checking for working const""... $ac_c" 1>&6
1418echo "configure:1419: checking for working const" >&5
1419if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1421else
1422 cat > conftest.$ac_ext <<EOF
1423#line 1424 "configure"
1424#include "confdefs.h"
1425
1426int main() {
1427
1428/* Ultrix mips cc rejects this. */
1429typedef int charset[2]; const charset x;
1430/* SunOS 4.1.1 cc rejects this. */
1431char const *const *ccp;
1432char **p;
1433/* NEC SVR4.0.2 mips cc rejects this. */
1434struct point {int x, y;};
1435static struct point const zero = {0,0};
1436/* AIX XL C 1.02.0.0 rejects this.
1437 It does not let you subtract one const X* pointer from another in an arm
1438 of an if-expression whose if-part is not a constant expression */
1439const char *g = "string";
1440ccp = &g + (g ? g-g : 0);
1441/* HPUX 7.0 cc rejects these. */
1442++ccp;
1443p = (char**) ccp;
1444ccp = (char const *const *) p;
1445{ /* SCO 3.2v4 cc rejects this. */
1446 char *t;
1447 char const *s = 0 ? (char *) 0 : (char const *) 0;
1448
1449 *t++ = 0;
1450}
1451{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1452 int x[] = {25, 17};
1453 const int *foo = &x[0];
1454 ++foo;
1455}
1456{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1457 typedef const int *iptr;
1458 iptr p = 0;
1459 ++p;
1460}
1461{ /* AIX XL C 1.02.0.0 rejects this saying
1462 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1463 struct s { int j; const int *ap[3]; };
1464 struct s *b; b->j = 5;
1465}
1466{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1467 const int foo = 10;
1468}
1469
1470; return 0; }
1471EOF
1472if { (eval echo configure:1473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1473 rm -rf conftest*
1474 ac_cv_c_const=yes
1475else
1476 echo "configure: failed program was:" >&5
1477 cat conftest.$ac_ext >&5
1478 rm -rf conftest*
1479 ac_cv_c_const=no
1480fi
1481rm -f conftest*
1482fi
1483
1484echo "$ac_t""$ac_cv_c_const" 1>&6
1485if test $ac_cv_c_const = no; then
1486 cat >> confdefs.h <<\EOF
1487#define const
1488EOF
1489
1490fi
1491
1492echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1493echo "configure:1494: checking for ANSI C header files" >&5
1494if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1496else
1497 cat > conftest.$ac_ext <<EOF
1498#line 1499 "configure"
1499#include "confdefs.h"
1500#include <stdlib.h>
1501#include <stdarg.h>
1502#include <string.h>
1503#include <float.h>
1504EOF
1505ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1506{ (eval echo configure:1507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1507ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1508if test -z "$ac_err"; then
1509 rm -rf conftest*
1510 ac_cv_header_stdc=yes
1511else
1512 echo "$ac_err" >&5
1513 echo "configure: failed program was:" >&5
1514 cat conftest.$ac_ext >&5
1515 rm -rf conftest*
1516 ac_cv_header_stdc=no
1517fi
1518rm -f conftest*
1519
1520if test $ac_cv_header_stdc = yes; then
1521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1522cat > conftest.$ac_ext <<EOF
1523#line 1524 "configure"
1524#include "confdefs.h"
1525#include <string.h>
1526EOF
1527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1528 egrep "memchr" >/dev/null 2>&1; then
1529 :
1530else
1531 rm -rf conftest*
1532 ac_cv_header_stdc=no
1533fi
1534rm -f conftest*
1535
1536fi
1537
1538if test $ac_cv_header_stdc = yes; then
1539 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1540cat > conftest.$ac_ext <<EOF
1541#line 1542 "configure"
1542#include "confdefs.h"
1543#include <stdlib.h>
1544EOF
1545if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1546 egrep "free" >/dev/null 2>&1; then
1547 :
1548else
1549 rm -rf conftest*
1550 ac_cv_header_stdc=no
1551fi
1552rm -f conftest*
1553
1554fi
1555
1556if test $ac_cv_header_stdc = yes; then
1557 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1558if test "$cross_compiling" = yes; then
1559 :
1560else
1561 cat > conftest.$ac_ext <<EOF
1562#line 1563 "configure"
1563#include "confdefs.h"
1564#include <ctype.h>
1565#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1566#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1567#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1568int main () { int i; for (i = 0; i < 256; i++)
1569if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1570exit (0); }
1571
1572EOF
1573if { (eval echo configure:1574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1574then
1575 :
1576else
1577 echo "configure: failed program was:" >&5
1578 cat conftest.$ac_ext >&5
1579 rm -fr conftest*
1580 ac_cv_header_stdc=no
1581fi
1582rm -fr conftest*
1583fi
1584
1585fi
1586fi
1587
1588echo "$ac_t""$ac_cv_header_stdc" 1>&6
1589if test $ac_cv_header_stdc = yes; then
1590 cat >> confdefs.h <<\EOF
1591#define STDC_HEADERS 1
1592EOF
1593
1594fi
1595
1596echo $ac_n "checking for off_t""... $ac_c" 1>&6
1597echo "configure:1598: checking for off_t" >&5
1598if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1599 echo $ac_n "(cached) $ac_c" 1>&6
1600else
1601 cat > conftest.$ac_ext <<EOF
1602#line 1603 "configure"
1603#include "confdefs.h"
1604#include <sys/types.h>
1605#if STDC_HEADERS
1606#include <stdlib.h>
1607#include <stddef.h>
1608#endif
1609EOF
1610if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1611 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1612 rm -rf conftest*
1613 ac_cv_type_off_t=yes
1614else
1615 rm -rf conftest*
1616 ac_cv_type_off_t=no
1617fi
1618rm -f conftest*
1619
1620fi
1621echo "$ac_t""$ac_cv_type_off_t" 1>&6
1622if test $ac_cv_type_off_t = no; then
1623 cat >> confdefs.h <<\EOF
1624#define off_t long
1625EOF
1626
1627fi
1628
1629echo $ac_n "checking for size_t""... $ac_c" 1>&6
1630echo "configure:1631: checking for size_t" >&5
1631if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1632 echo $ac_n "(cached) $ac_c" 1>&6
1633else
1634 cat > conftest.$ac_ext <<EOF
1635#line 1636 "configure"
1636#include "confdefs.h"
1637#include <sys/types.h>
1638#if STDC_HEADERS
1639#include <stdlib.h>
1640#include <stddef.h>
1641#endif
1642EOF
1643if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1644 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1645 rm -rf conftest*
1646 ac_cv_type_size_t=yes
1647else
1648 rm -rf conftest*
1649 ac_cv_type_size_t=no
1650fi
1651rm -f conftest*
1652
1653fi
1654echo "$ac_t""$ac_cv_type_size_t" 1>&6
1655if test $ac_cv_type_size_t = no; then
1656 cat >> confdefs.h <<\EOF
1657#define size_t unsigned
1658EOF
1659
1660fi
1661
1662echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1663echo "configure:1664: checking whether time.h and sys/time.h may both be included" >&5
1664if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1665 echo $ac_n "(cached) $ac_c" 1>&6
1666else
1667 cat > conftest.$ac_ext <<EOF
1668#line 1669 "configure"
1669#include "confdefs.h"
1670#include <sys/types.h>
1671#include <sys/time.h>
1672#include <time.h>
1673int main() {
1674struct tm *tp;
1675; return 0; }
1676EOF
1677if { (eval echo configure:1678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1678 rm -rf conftest*
1679 ac_cv_header_time=yes
1680else
1681 echo "configure: failed program was:" >&5
1682 cat conftest.$ac_ext >&5
1683 rm -rf conftest*
1684 ac_cv_header_time=no
1685fi
1686rm -f conftest*
1687fi
1688
1689echo "$ac_t""$ac_cv_header_time" 1>&6
1690if test $ac_cv_header_time = yes; then
1691 cat >> confdefs.h <<\EOF
1692#define TIME_WITH_SYS_TIME 1
1693EOF
1694
1695fi
1696
1697echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1698echo "configure:1699: checking whether struct tm is in sys/time.h or time.h" >&5
1699if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1701else
1702 cat > conftest.$ac_ext <<EOF
1703#line 1704 "configure"
1704#include "confdefs.h"
1705#include <sys/types.h>
1706#include <time.h>
1707int main() {
1708struct tm *tp; tp->tm_sec;
1709; return 0; }
1710EOF
1711if { (eval echo configure:1712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1712 rm -rf conftest*
1713 ac_cv_struct_tm=time.h
1714else
1715 echo "configure: failed program was:" >&5
1716 cat conftest.$ac_ext >&5
1717 rm -rf conftest*
1718 ac_cv_struct_tm=sys/time.h
1719fi
1720rm -f conftest*
1721fi
1722
1723echo "$ac_t""$ac_cv_struct_tm" 1>&6
1724if test $ac_cv_struct_tm = sys/time.h; then
1725 cat >> confdefs.h <<\EOF
1726#define TM_IN_SYS_TIME 1
1727EOF
1728
1729fi
1730
1731
1732if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
1733cat > conftest.$ac_ext <<EOF
1734#line 1735 "configure"
1735#include "confdefs.h"
1736#include <stdio.h>
1737
1738int main() {
1739 FILE *rubbish = popen("yes", "r");
1740; return 0; }
1741EOF
1742if { (eval echo configure:1743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1743 :
1744else
1745 echo "configure: failed program was:" >&5
1746 cat conftest.$ac_ext >&5
1747 rm -rf conftest*
1748 CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
1749fi
1750rm -f conftest*
1751fi
1752
1753
1754echo $ac_n "checking for main in -lg""... $ac_c" 1>&6
1755echo "configure:1756: checking for main in -lg" >&5
1756ac_lib_var=`echo g'_'main | sed 'y%./+-%__p_%'`
1757if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1758 echo $ac_n "(cached) $ac_c" 1>&6
1759else
1760 ac_save_LIBS="$LIBS"
1761LIBS="-lg $LIBS"
1762cat > conftest.$ac_ext <<EOF
1763#line 1764 "configure"
1764#include "confdefs.h"
1765
1766int main() {
1767main()
1768; return 0; }
1769EOF
1770if { (eval echo configure:1771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1771 rm -rf conftest*
1772 eval "ac_cv_lib_$ac_lib_var=yes"
1773else
1774 echo "configure: failed program was:" >&5
1775 cat conftest.$ac_ext >&5
1776 rm -rf conftest*
1777 eval "ac_cv_lib_$ac_lib_var=no"
1778fi
1779rm -f conftest*
1780LIBS="$ac_save_LIBS"
1781
1782fi
1783if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1784 echo "$ac_t""yes" 1>&6
1785 ac_tr_lib=HAVE_LIB`echo g | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1786 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1787 cat >> confdefs.h <<EOF
1788#define $ac_tr_lib 1
1789EOF
1790
1791 LIBS="-lg $LIBS"
1792
1793else
1794 echo "$ac_t""no" 1>&6
1795fi
1796
1797echo $ac_n "checking for main in -lgdbm""... $ac_c" 1>&6
1798echo "configure:1799: checking for main in -lgdbm" >&5
1799ac_lib_var=`echo gdbm'_'main | sed 'y%./+-%__p_%'`
1800if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1802else
1803 ac_save_LIBS="$LIBS"
1804LIBS="-lgdbm $LIBS"
1805cat > conftest.$ac_ext <<EOF
1806#line 1807 "configure"
1807#include "confdefs.h"
1808
1809int main() {
1810main()
1811; return 0; }
1812EOF
1813if { (eval echo configure:1814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1814 rm -rf conftest*
1815 eval "ac_cv_lib_$ac_lib_var=yes"
1816else
1817 echo "configure: failed program was:" >&5
1818 cat conftest.$ac_ext >&5
1819 rm -rf conftest*
1820 eval "ac_cv_lib_$ac_lib_var=no"
1821fi
1822rm -f conftest*
1823LIBS="$ac_save_LIBS"
1824
1825fi
1826if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1827 echo "$ac_t""yes" 1>&6
1828 ac_tr_lib=HAVE_LIB`echo gdbm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1829 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1830 cat >> confdefs.h <<EOF
1831#define $ac_tr_lib 1
1832EOF
1833
1834 LIBS="-lgdbm $LIBS"
1835
1836else
1837 echo "$ac_t""no" 1>&6
1838fi
1839
1840echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1841echo "configure:1842: checking for main in -lm" >&5
1842ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
1843if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1845else
1846 ac_save_LIBS="$LIBS"
1847LIBS="-lm $LIBS"
1848cat > conftest.$ac_ext <<EOF
1849#line 1850 "configure"
1850#include "confdefs.h"
1851
1852int main() {
1853main()
1854; return 0; }
1855EOF
1856if { (eval echo configure:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1857 rm -rf conftest*
1858 eval "ac_cv_lib_$ac_lib_var=yes"
1859else
1860 echo "configure: failed program was:" >&5
1861 cat conftest.$ac_ext >&5
1862 rm -rf conftest*
1863 eval "ac_cv_lib_$ac_lib_var=no"
1864fi
1865rm -f conftest*
1866LIBS="$ac_save_LIBS"
1867
1868fi
1869if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1870 echo "$ac_t""yes" 1>&6
1871 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1872 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1873 cat >> confdefs.h <<EOF
1874#define $ac_tr_lib 1
1875EOF
1876
1877 LIBS="-lm $LIBS"
1878
1879else
1880 echo "$ac_t""no" 1>&6
1881fi
1882
1883echo $ac_n "checking for main in -lstdc++""... $ac_c" 1>&6
1884echo "configure:1885: checking for main in -lstdc++" >&5
1885ac_lib_var=`echo stdc++'_'main | sed 'y%./+-%__p_%'`
1886if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1887 echo $ac_n "(cached) $ac_c" 1>&6
1888else
1889 ac_save_LIBS="$LIBS"
1890LIBS="-lstdc++ $LIBS"
1891cat > conftest.$ac_ext <<EOF
1892#line 1893 "configure"
1893#include "confdefs.h"
1894
1895int main() {
1896main()
1897; return 0; }
1898EOF
1899if { (eval echo configure:1900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1900 rm -rf conftest*
1901 eval "ac_cv_lib_$ac_lib_var=yes"
1902else
1903 echo "configure: failed program was:" >&5
1904 cat conftest.$ac_ext >&5
1905 rm -rf conftest*
1906 eval "ac_cv_lib_$ac_lib_var=no"
1907fi
1908rm -f conftest*
1909LIBS="$ac_save_LIBS"
1910
1911fi
1912if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1913 echo "$ac_t""yes" 1>&6
1914 ac_tr_lib=HAVE_LIB`echo stdc++ | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1915 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1916 cat >> confdefs.h <<EOF
1917#define $ac_tr_lib 1
1918EOF
1919
1920 LIBS="-lstdc++ $LIBS"
1921
1922else
1923 echo "$ac_t""no" 1>&6
1924fi
1925
1926echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
1927echo "configure:1928: checking for main in -lcrypt" >&5
1928ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
1929if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1931else
1932 ac_save_LIBS="$LIBS"
1933LIBS="-lcrypt $LIBS"
1934cat > conftest.$ac_ext <<EOF
1935#line 1936 "configure"
1936#include "confdefs.h"
1937
1938int main() {
1939main()
1940; return 0; }
1941EOF
1942if { (eval echo configure:1943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1943 rm -rf conftest*
1944 eval "ac_cv_lib_$ac_lib_var=yes"
1945else
1946 echo "configure: failed program was:" >&5
1947 cat conftest.$ac_ext >&5
1948 rm -rf conftest*
1949 eval "ac_cv_lib_$ac_lib_var=no"
1950fi
1951rm -f conftest*
1952LIBS="$ac_save_LIBS"
1953
1954fi
1955if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1956 echo "$ac_t""yes" 1>&6
1957 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1958 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1959 cat >> confdefs.h <<EOF
1960#define $ac_tr_lib 1
1961EOF
1962
1963 LIBS="-lcrypt $LIBS"
1964
1965else
1966 echo "$ac_t""no" 1>&6
1967fi
1968
1969
1970
1971ac_header_dirent=no
1972for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1973do
1974ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1975echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1976echo "configure:1977: checking for $ac_hdr that defines DIR" >&5
1977if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1978 echo $ac_n "(cached) $ac_c" 1>&6
1979else
1980 cat > conftest.$ac_ext <<EOF
1981#line 1982 "configure"
1982#include "confdefs.h"
1983#include <sys/types.h>
1984#include <$ac_hdr>
1985int main() {
1986DIR *dirp = 0;
1987; return 0; }
1988EOF
1989if { (eval echo configure:1990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1990 rm -rf conftest*
1991 eval "ac_cv_header_dirent_$ac_safe=yes"
1992else
1993 echo "configure: failed program was:" >&5
1994 cat conftest.$ac_ext >&5
1995 rm -rf conftest*
1996 eval "ac_cv_header_dirent_$ac_safe=no"
1997fi
1998rm -f conftest*
1999fi
2000if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2001 echo "$ac_t""yes" 1>&6
2002 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2003 cat >> confdefs.h <<EOF
2004#define $ac_tr_hdr 1
2005EOF
2006 ac_header_dirent=$ac_hdr; break
2007else
2008 echo "$ac_t""no" 1>&6
2009fi
2010done
2011# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2012if test $ac_header_dirent = dirent.h; then
2013echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2014echo "configure:2015: checking for opendir in -ldir" >&5
2015ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2016if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2018else
2019 ac_save_LIBS="$LIBS"
2020LIBS="-ldir $LIBS"
2021cat > conftest.$ac_ext <<EOF
2022#line 2023 "configure"
2023#include "confdefs.h"
2024/* Override any gcc2 internal prototype to avoid an error. */
2025/* We use char because int might match the return type of a gcc2
2026 builtin and then its argument prototype would still apply. */
2027char opendir();
2028
2029int main() {
2030opendir()
2031; return 0; }
2032EOF
2033if { (eval echo configure:2034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2034 rm -rf conftest*
2035 eval "ac_cv_lib_$ac_lib_var=yes"
2036else
2037 echo "configure: failed program was:" >&5
2038 cat conftest.$ac_ext >&5
2039 rm -rf conftest*
2040 eval "ac_cv_lib_$ac_lib_var=no"
2041fi
2042rm -f conftest*
2043LIBS="$ac_save_LIBS"
2044
2045fi
2046if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2047 echo "$ac_t""yes" 1>&6
2048 LIBS="$LIBS -ldir"
2049else
2050 echo "$ac_t""no" 1>&6
2051fi
2052
2053else
2054echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2055echo "configure:2056: checking for opendir in -lx" >&5
2056ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2057if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2059else
2060 ac_save_LIBS="$LIBS"
2061LIBS="-lx $LIBS"
2062cat > conftest.$ac_ext <<EOF
2063#line 2064 "configure"
2064#include "confdefs.h"
2065/* Override any gcc2 internal prototype to avoid an error. */
2066/* We use char because int might match the return type of a gcc2
2067 builtin and then its argument prototype would still apply. */
2068char opendir();
2069
2070int main() {
2071opendir()
2072; return 0; }
2073EOF
2074if { (eval echo configure:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2075 rm -rf conftest*
2076 eval "ac_cv_lib_$ac_lib_var=yes"
2077else
2078 echo "configure: failed program was:" >&5
2079 cat conftest.$ac_ext >&5
2080 rm -rf conftest*
2081 eval "ac_cv_lib_$ac_lib_var=no"
2082fi
2083rm -f conftest*
2084LIBS="$ac_save_LIBS"
2085
2086fi
2087if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2088 echo "$ac_t""yes" 1>&6
2089 LIBS="$LIBS -lx"
2090else
2091 echo "$ac_t""no" 1>&6
2092fi
2093
2094fi
2095
2096echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2097echo "configure:2098: checking for ANSI C header files" >&5
2098if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2100else
2101 cat > conftest.$ac_ext <<EOF
2102#line 2103 "configure"
2103#include "confdefs.h"
2104#include <stdlib.h>
2105#include <stdarg.h>
2106#include <string.h>
2107#include <float.h>
2108EOF
2109ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2110{ (eval echo configure:2111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2111ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2112if test -z "$ac_err"; then
2113 rm -rf conftest*
2114 ac_cv_header_stdc=yes
2115else
2116 echo "$ac_err" >&5
2117 echo "configure: failed program was:" >&5
2118 cat conftest.$ac_ext >&5
2119 rm -rf conftest*
2120 ac_cv_header_stdc=no
2121fi
2122rm -f conftest*
2123
2124if test $ac_cv_header_stdc = yes; then
2125 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2126cat > conftest.$ac_ext <<EOF
2127#line 2128 "configure"
2128#include "confdefs.h"
2129#include <string.h>
2130EOF
2131if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2132 egrep "memchr" >/dev/null 2>&1; then
2133 :
2134else
2135 rm -rf conftest*
2136 ac_cv_header_stdc=no
2137fi
2138rm -f conftest*
2139
2140fi
2141
2142if test $ac_cv_header_stdc = yes; then
2143 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2144cat > conftest.$ac_ext <<EOF
2145#line 2146 "configure"
2146#include "confdefs.h"
2147#include <stdlib.h>
2148EOF
2149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2150 egrep "free" >/dev/null 2>&1; then
2151 :
2152else
2153 rm -rf conftest*
2154 ac_cv_header_stdc=no
2155fi
2156rm -f conftest*
2157
2158fi
2159
2160if test $ac_cv_header_stdc = yes; then
2161 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2162if test "$cross_compiling" = yes; then
2163 :
2164else
2165 cat > conftest.$ac_ext <<EOF
2166#line 2167 "configure"
2167#include "confdefs.h"
2168#include <ctype.h>
2169#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2170#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2171#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2172int main () { int i; for (i = 0; i < 256; i++)
2173if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2174exit (0); }
2175
2176EOF
2177if { (eval echo configure:2178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2178then
2179 :
2180else
2181 echo "configure: failed program was:" >&5
2182 cat conftest.$ac_ext >&5
2183 rm -fr conftest*
2184 ac_cv_header_stdc=no
2185fi
2186rm -fr conftest*
2187fi
2188
2189fi
2190fi
2191
2192echo "$ac_t""$ac_cv_header_stdc" 1>&6
2193if test $ac_cv_header_stdc = yes; then
2194 cat >> confdefs.h <<\EOF
2195#define STDC_HEADERS 1
2196EOF
2197
2198fi
2199
2200for ac_hdr in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
2201do
2202ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2203echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2204echo "configure:2205: checking for $ac_hdr" >&5
2205if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2206 echo $ac_n "(cached) $ac_c" 1>&6
2207else
2208 cat > conftest.$ac_ext <<EOF
2209#line 2210 "configure"
2210#include "confdefs.h"
2211#include <$ac_hdr>
2212EOF
2213ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2214{ (eval echo configure:2215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2215ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2216if test -z "$ac_err"; then
2217 rm -rf conftest*
2218 eval "ac_cv_header_$ac_safe=yes"
2219else
2220 echo "$ac_err" >&5
2221 echo "configure: failed program was:" >&5
2222 cat conftest.$ac_ext >&5
2223 rm -rf conftest*
2224 eval "ac_cv_header_$ac_safe=no"
2225fi
2226rm -f conftest*
2227fi
2228if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2229 echo "$ac_t""yes" 1>&6
2230 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2231 cat >> confdefs.h <<EOF
2232#define $ac_tr_hdr 1
2233EOF
2234
2235else
2236 echo "$ac_t""no" 1>&6
2237fi
2238done
2239
2240cat > conftest.$ac_ext <<EOF
2241#line 2242 "configure"
2242#include "confdefs.h"
2243#include <stdio.h>
2244EOF
2245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2246 egrep "fread" >/dev/null 2>&1; then
2247 rm -rf conftest*
2248 cat >> confdefs.h <<\EOF
2249#define HAVE_FREAD_DECL 1
2250EOF
2251
2252fi
2253rm -f conftest*
2254
2255cat > conftest.$ac_ext <<EOF
2256#line 2257 "configure"
2257#include "confdefs.h"
2258#include <stdio.h>
2259EOF
2260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2261 egrep "fgetc" >/dev/null 2>&1; then
2262 rm -rf conftest*
2263 cat >> confdefs.h <<\EOF
2264#define HAVE_FGETC_DECL 1
2265EOF
2266
2267fi
2268rm -f conftest*
2269
2270cat > conftest.$ac_ext <<EOF
2271#line 2272 "configure"
2272#include "confdefs.h"
2273#include <sys/procfs.h>
2274EOF
2275if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2276 egrep "pr_brksize" >/dev/null 2>&1; then
2277 rm -rf conftest*
2278 cat >> confdefs.h <<\EOF
2279#define HAVE_PR_BRKSIZE 1
2280EOF
2281
2282fi
2283rm -f conftest*
2284
2285
2286# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2287# for constant arguments. Useless!
2288echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2289echo "configure:2290: checking for working alloca.h" >&5
2290if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2292else
2293 cat > conftest.$ac_ext <<EOF
2294#line 2295 "configure"
2295#include "confdefs.h"
2296#include <alloca.h>
2297int main() {
2298char *p = alloca(2 * sizeof(int));
2299; return 0; }
2300EOF
2301if { (eval echo configure:2302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2302 rm -rf conftest*
2303 ac_cv_header_alloca_h=yes
2304else
2305 echo "configure: failed program was:" >&5
2306 cat conftest.$ac_ext >&5
2307 rm -rf conftest*
2308 ac_cv_header_alloca_h=no
2309fi
2310rm -f conftest*
2311fi
2312
2313echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2314if test $ac_cv_header_alloca_h = yes; then
2315 cat >> confdefs.h <<\EOF
2316#define HAVE_ALLOCA_H 1
2317EOF
2318
2319fi
2320
2321echo $ac_n "checking for alloca""... $ac_c" 1>&6
2322echo "configure:2323: checking for alloca" >&5
2323if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2324 echo $ac_n "(cached) $ac_c" 1>&6
2325else
2326 cat > conftest.$ac_ext <<EOF
2327#line 2328 "configure"
2328#include "confdefs.h"
2329
2330#ifdef __GNUC__
2331# define alloca __builtin_alloca
2332#else
2333# ifdef _MSC_VER
2334# include <malloc.h>
2335# define alloca _alloca
2336# else
2337# if HAVE_ALLOCA_H
2338# include <alloca.h>
2339# else
2340# ifdef _AIX
2341 #pragma alloca
2342# else
2343# ifndef alloca /* predefined by HP cc +Olibcalls */
2344char *alloca ();
2345# endif
2346# endif
2347# endif
2348# endif
2349#endif
2350
2351int main() {
2352char *p = (char *) alloca(1);
2353; return 0; }
2354EOF
2355if { (eval echo configure:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2356 rm -rf conftest*
2357 ac_cv_func_alloca_works=yes
2358else
2359 echo "configure: failed program was:" >&5
2360 cat conftest.$ac_ext >&5
2361 rm -rf conftest*
2362 ac_cv_func_alloca_works=no
2363fi
2364rm -f conftest*
2365fi
2366
2367echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2368if test $ac_cv_func_alloca_works = yes; then
2369 cat >> confdefs.h <<\EOF
2370#define HAVE_ALLOCA 1
2371EOF
2372
2373fi
2374
2375if test $ac_cv_func_alloca_works = no; then
2376 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2377 # that cause trouble. Some versions do not even contain alloca or
2378 # contain a buggy version. If you still want to use their alloca,
2379 # use ar to extract alloca.o from them instead of compiling alloca.c.
2380 ALLOCA=alloca.${ac_objext}
2381 cat >> confdefs.h <<\EOF
2382#define C_ALLOCA 1
2383EOF
2384
2385
2386echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2387echo "configure:2388: checking whether alloca needs Cray hooks" >&5
2388if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2389 echo $ac_n "(cached) $ac_c" 1>&6
2390else
2391 cat > conftest.$ac_ext <<EOF
2392#line 2393 "configure"
2393#include "confdefs.h"
2394#if defined(CRAY) && ! defined(CRAY2)
2395webecray
2396#else
2397wenotbecray
2398#endif
2399
2400EOF
2401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2402 egrep "webecray" >/dev/null 2>&1; then
2403 rm -rf conftest*
2404 ac_cv_os_cray=yes
2405else
2406 rm -rf conftest*
2407 ac_cv_os_cray=no
2408fi
2409rm -f conftest*
2410
2411fi
2412
2413echo "$ac_t""$ac_cv_os_cray" 1>&6
2414if test $ac_cv_os_cray = yes; then
2415for ac_func in _getb67 GETB67 getb67; do
2416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2417echo "configure:2418: checking for $ac_func" >&5
2418if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2419 echo $ac_n "(cached) $ac_c" 1>&6
2420else
2421 cat > conftest.$ac_ext <<EOF
2422#line 2423 "configure"
2423#include "confdefs.h"
2424/* System header to define __stub macros and hopefully few prototypes,
2425 which can conflict with char $ac_func(); below. */
2426#include <assert.h>
2427/* Override any gcc2 internal prototype to avoid an error. */
2428/* We use char because int might match the return type of a gcc2
2429 builtin and then its argument prototype would still apply. */
2430char $ac_func();
2431
2432int main() {
2433
2434/* The GNU C library defines this for functions which it implements
2435 to always fail with ENOSYS. Some functions are actually named
2436 something starting with __ and the normal name is an alias. */
2437#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2438choke me
2439#else
2440$ac_func();
2441#endif
2442
2443; return 0; }
2444EOF
2445if { (eval echo configure:2446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2446 rm -rf conftest*
2447 eval "ac_cv_func_$ac_func=yes"
2448else
2449 echo "configure: failed program was:" >&5
2450 cat conftest.$ac_ext >&5
2451 rm -rf conftest*
2452 eval "ac_cv_func_$ac_func=no"
2453fi
2454rm -f conftest*
2455fi
2456
2457if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2458 echo "$ac_t""yes" 1>&6
2459 cat >> confdefs.h <<EOF
2460#define CRAY_STACKSEG_END $ac_func
2461EOF
2462
2463 break
2464else
2465 echo "$ac_t""no" 1>&6
2466fi
2467
2468done
2469fi
2470
2471echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2472echo "configure:2473: checking stack direction for C alloca" >&5
2473if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2475else
2476 if test "$cross_compiling" = yes; then
2477 ac_cv_c_stack_direction=0
2478else
2479 cat > conftest.$ac_ext <<EOF
2480#line 2481 "configure"
2481#include "confdefs.h"
2482find_stack_direction ()
2483{
2484 static char *addr = 0;
2485 auto char dummy;
2486 if (addr == 0)
2487 {
2488 addr = &dummy;
2489 return find_stack_direction ();
2490 }
2491 else
2492 return (&dummy > addr) ? 1 : -1;
2493}
2494main ()
2495{
2496 exit (find_stack_direction() < 0);
2497}
2498EOF
2499if { (eval echo configure:2500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2500then
2501 ac_cv_c_stack_direction=1
2502else
2503 echo "configure: failed program was:" >&5
2504 cat conftest.$ac_ext >&5
2505 rm -fr conftest*
2506 ac_cv_c_stack_direction=-1
2507fi
2508rm -fr conftest*
2509fi
2510
2511fi
2512
2513echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2514cat >> confdefs.h <<EOF
2515#define STACK_DIRECTION $ac_cv_c_stack_direction
2516EOF
2517
2518fi
2519
2520if test $ac_cv_prog_gcc = yes; then
2521 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2522echo "configure:2523: checking whether ${CC-cc} needs -traditional" >&5
2523if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2524 echo $ac_n "(cached) $ac_c" 1>&6
2525else
2526 ac_pattern="Autoconf.*'x'"
2527 cat > conftest.$ac_ext <<EOF
2528#line 2529 "configure"
2529#include "confdefs.h"
2530#include <sgtty.h>
2531Autoconf TIOCGETP
2532EOF
2533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2534 egrep "$ac_pattern" >/dev/null 2>&1; then
2535 rm -rf conftest*
2536 ac_cv_prog_gcc_traditional=yes
2537else
2538 rm -rf conftest*
2539 ac_cv_prog_gcc_traditional=no
2540fi
2541rm -f conftest*
2542
2543
2544 if test $ac_cv_prog_gcc_traditional = no; then
2545 cat > conftest.$ac_ext <<EOF
2546#line 2547 "configure"
2547#include "confdefs.h"
2548#include <termio.h>
2549Autoconf TCGETA
2550EOF
2551if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2552 egrep "$ac_pattern" >/dev/null 2>&1; then
2553 rm -rf conftest*
2554 ac_cv_prog_gcc_traditional=yes
2555fi
2556rm -f conftest*
2557
2558 fi
2559fi
2560
2561echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2562 if test $ac_cv_prog_gcc_traditional = yes; then
2563 CC="$CC -traditional"
2564 fi
2565fi
2566
2567echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2568echo "configure:2569: checking return type of signal handlers" >&5
2569if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2570 echo $ac_n "(cached) $ac_c" 1>&6
2571else
2572 cat > conftest.$ac_ext <<EOF
2573#line 2574 "configure"
2574#include "confdefs.h"
2575#include <sys/types.h>
2576#include <signal.h>
2577#ifdef signal
2578#undef signal
2579#endif
2580#ifdef __cplusplus
2581extern "C" void (*signal (int, void (*)(int)))(int);
2582#else
2583void (*signal ()) ();
2584#endif
2585
2586int main() {
2587int i;
2588; return 0; }
2589EOF
2590if { (eval echo configure:2591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2591 rm -rf conftest*
2592 ac_cv_type_signal=void
2593else
2594 echo "configure: failed program was:" >&5
2595 cat conftest.$ac_ext >&5
2596 rm -rf conftest*
2597 ac_cv_type_signal=int
2598fi
2599rm -f conftest*
2600fi
2601
2602echo "$ac_t""$ac_cv_type_signal" 1>&6
2603cat >> confdefs.h <<EOF
2604#define RETSIGTYPE $ac_cv_type_signal
2605EOF
2606
2607
2608echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2609echo "configure:2610: checking for vprintf" >&5
2610if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2611 echo $ac_n "(cached) $ac_c" 1>&6
2612else
2613 cat > conftest.$ac_ext <<EOF
2614#line 2615 "configure"
2615#include "confdefs.h"
2616/* System header to define __stub macros and hopefully few prototypes,
2617 which can conflict with char vprintf(); below. */
2618#include <assert.h>
2619/* Override any gcc2 internal prototype to avoid an error. */
2620/* We use char because int might match the return type of a gcc2
2621 builtin and then its argument prototype would still apply. */
2622char vprintf();
2623
2624int main() {
2625
2626/* The GNU C library defines this for functions which it implements
2627 to always fail with ENOSYS. Some functions are actually named
2628 something starting with __ and the normal name is an alias. */
2629#if defined (__stub_vprintf) || defined (__stub___vprintf)
2630choke me
2631#else
2632vprintf();
2633#endif
2634
2635; return 0; }
2636EOF
2637if { (eval echo configure:2638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2638 rm -rf conftest*
2639 eval "ac_cv_func_vprintf=yes"
2640else
2641 echo "configure: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2643 rm -rf conftest*
2644 eval "ac_cv_func_vprintf=no"
2645fi
2646rm -f conftest*
2647fi
2648
2649if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2650 echo "$ac_t""yes" 1>&6
2651 cat >> confdefs.h <<\EOF
2652#define HAVE_VPRINTF 1
2653EOF
2654
2655else
2656 echo "$ac_t""no" 1>&6
2657fi
2658
2659if test "$ac_cv_func_vprintf" != yes; then
2660echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2661echo "configure:2662: checking for _doprnt" >&5
2662if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
2664else
2665 cat > conftest.$ac_ext <<EOF
2666#line 2667 "configure"
2667#include "confdefs.h"
2668/* System header to define __stub macros and hopefully few prototypes,
2669 which can conflict with char _doprnt(); below. */
2670#include <assert.h>
2671/* Override any gcc2 internal prototype to avoid an error. */
2672/* We use char because int might match the return type of a gcc2
2673 builtin and then its argument prototype would still apply. */
2674char _doprnt();
2675
2676int main() {
2677
2678/* The GNU C library defines this for functions which it implements
2679 to always fail with ENOSYS. Some functions are actually named
2680 something starting with __ and the normal name is an alias. */
2681#if defined (__stub__doprnt) || defined (__stub____doprnt)
2682choke me
2683#else
2684_doprnt();
2685#endif
2686
2687; return 0; }
2688EOF
2689if { (eval echo configure:2690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2690 rm -rf conftest*
2691 eval "ac_cv_func__doprnt=yes"
2692else
2693 echo "configure: failed program was:" >&5
2694 cat conftest.$ac_ext >&5
2695 rm -rf conftest*
2696 eval "ac_cv_func__doprnt=no"
2697fi
2698rm -f conftest*
2699fi
2700
2701if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2702 echo "$ac_t""yes" 1>&6
2703 cat >> confdefs.h <<\EOF
2704#define HAVE_DOPRNT 1
2705EOF
2706
2707else
2708 echo "$ac_t""no" 1>&6
2709fi
2710
2711fi
2712
2713for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
2714do
2715echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2716echo "configure:2717: checking for $ac_func" >&5
2717if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2718 echo $ac_n "(cached) $ac_c" 1>&6
2719else
2720 cat > conftest.$ac_ext <<EOF
2721#line 2722 "configure"
2722#include "confdefs.h"
2723/* System header to define __stub macros and hopefully few prototypes,
2724 which can conflict with char $ac_func(); below. */
2725#include <assert.h>
2726/* Override any gcc2 internal prototype to avoid an error. */
2727/* We use char because int might match the return type of a gcc2
2728 builtin and then its argument prototype would still apply. */
2729char $ac_func();
2730
2731int main() {
2732
2733/* The GNU C library defines this for functions which it implements
2734 to always fail with ENOSYS. Some functions are actually named
2735 something starting with __ and the normal name is an alias. */
2736#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2737choke me
2738#else
2739$ac_func();
2740#endif
2741
2742; return 0; }
2743EOF
2744if { (eval echo configure:2745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2745 rm -rf conftest*
2746 eval "ac_cv_func_$ac_func=yes"
2747else
2748 echo "configure: failed program was:" >&5
2749 cat conftest.$ac_ext >&5
2750 rm -rf conftest*
2751 eval "ac_cv_func_$ac_func=no"
2752fi
2753rm -f conftest*
2754fi
2755
2756if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2757 echo "$ac_t""yes" 1>&6
2758 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2759 cat >> confdefs.h <<EOF
2760#define $ac_tr_func 1
2761EOF
2762
2763else
2764 echo "$ac_t""no" 1>&6
2765fi
2766done
2767
2768for ac_func in ftruncate strstr strcasecmp
2769do
2770echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2771echo "configure:2772: checking for $ac_func" >&5
2772if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2774else
2775 cat > conftest.$ac_ext <<EOF
2776#line 2777 "configure"
2777#include "confdefs.h"
2778/* System header to define __stub macros and hopefully few prototypes,
2779 which can conflict with char $ac_func(); below. */
2780#include <assert.h>
2781/* Override any gcc2 internal prototype to avoid an error. */
2782/* We use char because int might match the return type of a gcc2
2783 builtin and then its argument prototype would still apply. */
2784char $ac_func();
2785
2786int main() {
2787
2788/* The GNU C library defines this for functions which it implements
2789 to always fail with ENOSYS. Some functions are actually named
2790 something starting with __ and the normal name is an alias. */
2791#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2792choke me
2793#else
2794$ac_func();
2795#endif
2796
2797; return 0; }
2798EOF
2799if { (eval echo configure:2800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2800 rm -rf conftest*
2801 eval "ac_cv_func_$ac_func=yes"
2802else
2803 echo "configure: failed program was:" >&5
2804 cat conftest.$ac_ext >&5
2805 rm -rf conftest*
2806 eval "ac_cv_func_$ac_func=no"
2807fi
2808rm -f conftest*
2809fi
2810
2811if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2812 echo "$ac_t""yes" 1>&6
2813 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2814 cat >> confdefs.h <<EOF
2815#define $ac_tr_func 1
2816EOF
2817
2818else
2819 echo "$ac_t""no" 1>&6
2820LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2821fi
2822done
2823
2824
2825
2826
2827# *** Custom checking (based on GNU tar configure.in) ***
2828# ---------------------------------------------------------------------------
2829echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
2830echo "configure:2831: checking for HP-UX needing gmalloc" >&5
2831if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
2832 echo "$ac_t""yes" 1>&6
2833 LIBOBJS="$LIBOBJS gmalloc.o"
2834 cat >> confdefs.h <<\EOF
2835#define HAVE_VALLOC 1
2836EOF
2837
2838else
2839 echo "$ac_t""no" 1>&6
2840 for ac_func in valloc
2841do
2842echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2843echo "configure:2844: checking for $ac_func" >&5
2844if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2845 echo $ac_n "(cached) $ac_c" 1>&6
2846else
2847 cat > conftest.$ac_ext <<EOF
2848#line 2849 "configure"
2849#include "confdefs.h"
2850/* System header to define __stub macros and hopefully few prototypes,
2851 which can conflict with char $ac_func(); below. */
2852#include <assert.h>
2853/* Override any gcc2 internal prototype to avoid an error. */
2854/* We use char because int might match the return type of a gcc2
2855 builtin and then its argument prototype would still apply. */
2856char $ac_func();
2857
2858int main() {
2859
2860/* The GNU C library defines this for functions which it implements
2861 to always fail with ENOSYS. Some functions are actually named
2862 something starting with __ and the normal name is an alias. */
2863#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2864choke me
2865#else
2866$ac_func();
2867#endif
2868
2869; return 0; }
2870EOF
2871if { (eval echo configure:2872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2872 rm -rf conftest*
2873 eval "ac_cv_func_$ac_func=yes"
2874else
2875 echo "configure: failed program was:" >&5
2876 cat conftest.$ac_ext >&5
2877 rm -rf conftest*
2878 eval "ac_cv_func_$ac_func=no"
2879fi
2880rm -f conftest*
2881fi
2882
2883if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2884 echo "$ac_t""yes" 1>&6
2885 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2886 cat >> confdefs.h <<EOF
2887#define $ac_tr_func 1
2888EOF
2889
2890else
2891 echo "$ac_t""no" 1>&6
2892fi
2893done
2894
2895fi
2896
2897echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
2898echo "configure:2899: checking if malloc debugging is wanted" >&5
2899# Check whether --with-dmalloc or --without-dmalloc was given.
2900if test "${with_dmalloc+set}" = set; then
2901 withval="$with_dmalloc"
2902 if test "$withval" = yes; then
2903 echo "$ac_t""yes" 1>&6
2904 cat >> confdefs.h <<\EOF
2905#define WITH_DMALLOC 1
2906EOF
2907
2908 LIBS="$LIBS -ldmalloc"
2909 LDFLAGS="$LDFLAGS -g"
2910else
2911 echo "$ac_t""no" 1>&6
2912fi
2913else
2914 echo "$ac_t""no" 1>&6
2915fi
2916
2917
2918echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
2919echo "configure:2920: checking which of rx or regex is wanted" >&5
2920# Check whether --with-regex or --without-regex was given.
2921if test "${with_regex+set}" = set; then
2922 withval="$with_regex"
2923 if test "$withval" = yes; then
2924 ac_with_regex=1
2925 echo "$ac_t""regex" 1>&6
2926 cat >> confdefs.h <<\EOF
2927#define WITH_REGEX 1
2928EOF
2929
2930 LIBOBJS="$LIBOBJS regex.o"
2931fi
2932fi
2933
2934if test -z "$ac_with_regex"; then
2935 echo "$ac_t""rx" 1>&6
2936 echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
2937echo "configure:2938: checking for re_rx_search" >&5
2938if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2940else
2941 cat > conftest.$ac_ext <<EOF
2942#line 2943 "configure"
2943#include "confdefs.h"
2944/* System header to define __stub macros and hopefully few prototypes,
2945 which can conflict with char re_rx_search(); below. */
2946#include <assert.h>
2947/* Override any gcc2 internal prototype to avoid an error. */
2948/* We use char because int might match the return type of a gcc2
2949 builtin and then its argument prototype would still apply. */
2950char re_rx_search();
2951
2952int main() {
2953
2954/* The GNU C library defines this for functions which it implements
2955 to always fail with ENOSYS. Some functions are actually named
2956 something starting with __ and the normal name is an alias. */
2957#if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
2958choke me
2959#else
2960re_rx_search();
2961#endif
2962
2963; return 0; }
2964EOF
2965if { (eval echo configure:2966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2966 rm -rf conftest*
2967 eval "ac_cv_func_re_rx_search=yes"
2968else
2969 echo "configure: failed program was:" >&5
2970 cat conftest.$ac_ext >&5
2971 rm -rf conftest*
2972 eval "ac_cv_func_re_rx_search=no"
2973fi
2974rm -f conftest*
2975fi
2976
2977if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
2978 echo "$ac_t""yes" 1>&6
2979 :
2980else
2981 echo "$ac_t""no" 1>&6
2982LIBOBJS="$LIBOBJS rx.o"
2983fi
2984
2985fi
2986
2987
2988# ---------------------------------------------------------------------------
2989if test "$ac_cv_func_alloca" = 'no'; then
2990 LIBOBJS="$LIBOBJS xmalloc.o error.o"
2991fi
2992
2993
2994# ---------------------------------------------------------------------------
2995
2996ac_ext=C
2997# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2998ac_cpp='$CXXCPP $CPPFLAGS'
2999ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3000ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3001cross_compiling=$ac_cv_prog_cxx_cross
3002
3003
3004echo $ac_n "checking "that the GDBM library is available"""... $ac_c" 1>&6
3005echo "configure:3006: checking "that the GDBM library is available"" >&5
3006cat > conftest.$ac_ext <<EOF
3007#line 3008 "configure"
3008#include "confdefs.h"
3009#include <gdbm.h>
3010
3011int main() {
3012
3013; return 0; }
3014EOF
3015if { (eval echo configure:3016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3016 rm -rf conftest*
3017 success=yes
3018else
3019 echo "configure: failed program was:" >&5
3020 cat conftest.$ac_ext >&5
3021 rm -rf conftest*
3022 success=no
3023
3024fi
3025rm -f conftest*
3026echo "$ac_t""$success" 1>&6
3027if test $success = "no"; then
3028{ echo "configure: error: "GDBM Library not available - cannot install"" 1>&2; exit 1; }
3029fi
3030
3031echo $ac_n "checking "that Perl 5 is available"""... $ac_c" 1>&6
3032echo "configure:3033: checking "that Perl 5 is available"" >&5
3033success="no"
3034pl_path="$PATH"
3035IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
3036for pl_dir in $pl_path; do
3037 test -z "$pl_dir" && pl_dir=.
3038 if test -x $pl_dir/perl; then
3039 success="yes"
3040 break
3041 fi
3042done
3043IFS="$pl_save_ifs"
3044
3045if test $success = "yes"; then
3046try=`perl configtest.pl` || try="0"
3047try=`expr $try \> 5.000`
3048if test $try = "1"; then
3049echo "$ac_t"""yes"" 1>&6
3050else
3051success="no"
3052fi
3053fi
3054
3055if test $success = "no"; then
3056echo "$ac_t"""no"" 1>&6
3057{ echo "configure: error: "Perl 5 not available - cannot install"" 1>&2; exit 1; }
3058fi
3059
3060success=no
3061echo $ac_n "checking "whether STL library has known faults"""... $ac_c" 1>&6
3062echo "configure:3063: checking "whether STL library has known faults"" >&5
3063
3064cat > conftest.$ac_ext <<EOF
3065#line 3066 "configure"
3066#include "confdefs.h"
3067#include <vector>
3068
3069int main() {
3070
3071; return 0; }
3072EOF
3073if { (eval echo configure:3074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3074 rm -rf conftest*
3075 success=yes
3076else
3077 echo "configure: failed program was:" >&5
3078 cat conftest.$ac_ext >&5
3079fi
3080rm -f conftest*
3081
3082if test $success = "no"; then
3083cat > conftest.$ac_ext <<EOF
3084#line 3085 "configure"
3085#include "confdefs.h"
3086#include <vector.h>
3087
3088int main() {
3089
3090; return 0; }
3091EOF
3092if { (eval echo configure:3093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3093 rm -rf conftest*
3094 success="yes"
3095else
3096 echo "configure: failed program was:" >&5
3097 cat conftest.$ac_ext >&5
3098fi
3099rm -f conftest*
3100fi
3101
3102if test $success = "no"; then
3103cat > conftest.$ac_ext <<EOF
3104#line 3105 "configure"
3105#include "confdefs.h"
3106#include <ospace\\std\\vector>
3107
3108int main() {
3109
3110; return 0; }
3111EOF
3112if { (eval echo configure:3113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3113 rm -rf conftest*
3114 success="yes"
3115else
3116 echo "configure: failed program was:" >&5
3117 cat conftest.$ac_ext >&5
3118fi
3119rm -f conftest*
3120fi
3121
3122if test $success = yes; then
3123echo "$ac_t"""no"" 1>&6
3124else
3125echo "$ac_t"""yes"" 1>&6
3126{ echo "configure: error: "STL Broken - Obtain newer version of GNU C Compiler"" 1>&2; exit 1; }
3127fi
3128
3129gsdlos=`uname | tr A-Z a-z`
3130
3131
3132echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
3133echo "configure:3134: checking for HP-UX needing gmalloc" >&5
3134if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
3135 echo "$ac_t""yes" 1>&6
3136 LIBOBJS="$LIBOBJS gmalloc.o"
3137 cat >> confdefs.h <<\EOF
3138#define HAVE_VALLOC 1
3139EOF
3140
3141else
3142 echo "$ac_t""no" 1>&6
3143 for ac_func in valloc
3144do
3145echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3146echo "configure:3147: checking for $ac_func" >&5
3147if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3148 echo $ac_n "(cached) $ac_c" 1>&6
3149else
3150 cat > conftest.$ac_ext <<EOF
3151#line 3152 "configure"
3152#include "confdefs.h"
3153/* System header to define __stub macros and hopefully few prototypes,
3154 which can conflict with char $ac_func(); below. */
3155#include <assert.h>
3156/* Override any gcc2 internal prototype to avoid an error. */
3157#ifdef __cplusplus
3158extern "C"
3159#endif
3160/* We use char because int might match the return type of a gcc2
3161 builtin and then its argument prototype would still apply. */
3162char $ac_func();
3163
3164int main() {
3165
3166/* The GNU C library defines this for functions which it implements
3167 to always fail with ENOSYS. Some functions are actually named
3168 something starting with __ and the normal name is an alias. */
3169#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3170choke me
3171#else
3172$ac_func();
3173#endif
3174
3175; return 0; }
3176EOF
3177if { (eval echo configure:3178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3178 rm -rf conftest*
3179 eval "ac_cv_func_$ac_func=yes"
3180else
3181 echo "configure: failed program was:" >&5
3182 cat conftest.$ac_ext >&5
3183 rm -rf conftest*
3184 eval "ac_cv_func_$ac_func=no"
3185fi
3186rm -f conftest*
3187fi
3188
3189if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3190 echo "$ac_t""yes" 1>&6
3191 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3192 cat >> confdefs.h <<EOF
3193#define $ac_tr_func 1
3194EOF
3195
3196else
3197 echo "$ac_t""no" 1>&6
3198fi
3199done
3200
3201fi
3202
3203echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
3204echo "configure:3205: checking if malloc debugging is wanted" >&5
3205# Check whether --with-dmalloc or --without-dmalloc was given.
3206if test "${with_dmalloc+set}" = set; then
3207 withval="$with_dmalloc"
3208 if test "$withval" = yes; then
3209 echo "$ac_t""yes" 1>&6
3210 cat >> confdefs.h <<\EOF
3211#define WITH_DMALLOC 1
3212EOF
3213
3214 LIBS="$LIBS -ldmalloc"
3215 LDFLAGS="$LDFLAGS -g"
3216else
3217 echo "$ac_t""no" 1>&6
3218fi
3219else
3220 echo "$ac_t""no" 1>&6
3221fi
3222
3223
3224echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
3225echo "configure:3226: checking which of rx or regex is wanted" >&5
3226# Check whether --with-regex or --without-regex was given.
3227if test "${with_regex+set}" = set; then
3228 withval="$with_regex"
3229 if test "$withval" = yes; then
3230 ac_with_regex=1
3231 echo "$ac_t""regex" 1>&6
3232 cat >> confdefs.h <<\EOF
3233#define WITH_REGEX 1
3234EOF
3235
3236 LIBOBJS="$LIBOBJS regex.o"
3237fi
3238fi
3239
3240if test -z "$ac_with_regex"; then
3241 echo "$ac_t""rx" 1>&6
3242 echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
3243echo "configure:3244: checking for re_rx_search" >&5
3244if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
3245 echo $ac_n "(cached) $ac_c" 1>&6
3246else
3247 cat > conftest.$ac_ext <<EOF
3248#line 3249 "configure"
3249#include "confdefs.h"
3250/* System header to define __stub macros and hopefully few prototypes,
3251 which can conflict with char re_rx_search(); below. */
3252#include <assert.h>
3253/* Override any gcc2 internal prototype to avoid an error. */
3254#ifdef __cplusplus
3255extern "C"
3256#endif
3257/* We use char because int might match the return type of a gcc2
3258 builtin and then its argument prototype would still apply. */
3259char re_rx_search();
3260
3261int main() {
3262
3263/* The GNU C library defines this for functions which it implements
3264 to always fail with ENOSYS. Some functions are actually named
3265 something starting with __ and the normal name is an alias. */
3266#if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
3267choke me
3268#else
3269re_rx_search();
3270#endif
3271
3272; return 0; }
3273EOF
3274if { (eval echo configure:3275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3275 rm -rf conftest*
3276 eval "ac_cv_func_re_rx_search=yes"
3277else
3278 echo "configure: failed program was:" >&5
3279 cat conftest.$ac_ext >&5
3280 rm -rf conftest*
3281 eval "ac_cv_func_re_rx_search=no"
3282fi
3283rm -f conftest*
3284fi
3285
3286if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
3287 echo "$ac_t""yes" 1>&6
3288 :
3289else
3290 echo "$ac_t""no" 1>&6
3291LIBOBJS="$LIBOBJS rx.o"
3292fi
3293
3294fi
3295
3296
3297# ---------------------------------------------------------------------------
3298if test "$ac_cv_func_alloca" = 'no'; then
3299 LIBOBJS="$LIBOBJS xmalloc.o error.o"
3300fi
3301
3302
3303# ---------------------------------------------------------------------------
3304
3305subdirs="packages"
3306
3307
3308trap '' 1 2 15
3309cat > confcache <<\EOF
3310# This file is a shell script that caches the results of configure
3311# tests run on this system so they can be shared between configure
3312# scripts and configure runs. It is not useful on other systems.
3313# If it contains results you don't want to keep, you may remove or edit it.
3314#
3315# By default, configure uses ./config.cache as the cache file,
3316# creating it if it does not exist already. You can give configure
3317# the --cache-file=FILE option to use a different cache file; that is
3318# what configure does when it calls configure scripts in
3319# subdirectories, so they share the cache.
3320# Giving --cache-file=/dev/null disables caching, for debugging configure.
3321# config.status only pays attention to the cache file if you give it the
3322# --recheck option to rerun configure.
3323#
3324EOF
3325# The following way of writing the cache mishandles newlines in values,
3326# but we know of no workaround that is simple, portable, and efficient.
3327# So, don't put newlines in cache variables' values.
3328# Ultrix sh set writes to stderr and can't be redirected directly,
3329# and sets the high bit in the cache file unless we assign to the vars.
3330(set) 2>&1 |
3331 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3332 *ac_space=\ *)
3333 # `set' does not quote correctly, so add quotes (double-quote substitution
3334 # turns \\\\ into \\, and sed turns \\ into \).
3335 sed -n \
3336 -e "s/'/'\\\\''/g" \
3337 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3338 ;;
3339 *)
3340 # `set' quotes correctly as required by POSIX, so do not add quotes.
3341 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3342 ;;
3343 esac >> confcache
3344if cmp -s $cache_file confcache; then
3345 :
3346else
3347 if test -w $cache_file; then
3348 echo "updating cache $cache_file"
3349 cat confcache > $cache_file
3350 else
3351 echo "not updating unwritable cache $cache_file"
3352 fi
3353fi
3354rm -f confcache
3355
3356trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3357
3358test "x$prefix" = xNONE && prefix=$ac_default_prefix
3359# Let make expand exec_prefix.
3360test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3361
3362# Any assignment to VPATH causes Sun make to only execute
3363# the first set of double-colon rules, so remove it if not needed.
3364# If there is a colon in the path, we need to keep it.
3365if test "x$srcdir" = x.; then
3366 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3367fi
3368
3369trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3370
3371DEFS=-DHAVE_CONFIG_H
3372
3373# Without the "./", some shells look in PATH for config.status.
3374: ${CONFIG_STATUS=./config.status}
3375
3376echo creating $CONFIG_STATUS
3377rm -f $CONFIG_STATUS
3378cat > $CONFIG_STATUS <<EOF
3379#! /bin/sh
3380# Generated automatically by configure.
3381# Run this file to recreate the current configuration.
3382# This directory was configured as follows,
3383# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3384#
3385# $0 $ac_configure_args
3386#
3387# Compiler output produced by configure, useful for debugging
3388# configure, is in ./config.log if it exists.
3389
3390ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3391for ac_option
3392do
3393 case "\$ac_option" in
3394 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3395 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3396 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3397 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3398 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3399 exit 0 ;;
3400 -help | --help | --hel | --he | --h)
3401 echo "\$ac_cs_usage"; exit 0 ;;
3402 *) echo "\$ac_cs_usage"; exit 1 ;;
3403 esac
3404done
3405
3406ac_given_srcdir=$srcdir
3407ac_given_INSTALL="$INSTALL"
3408
3409trap 'rm -fr `echo "packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile
3410 packages/mg/src/scripts/Makefile packages/mg/lib/Makefile src/mgpp/Makefile
3411 src/mgpp/lib/Makefile src/mgpp/text/Makefile
3412 src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile
3413 src/db2txt/Makefile lib/Makefile Makefile src/getpw/Makefile
3414 src/phind/generate/Makefile src/phind/host/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3415EOF
3416cat >> $CONFIG_STATUS <<EOF
3417
3418# Protect against being on the right side of a sed subst in config.status.
3419sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3420 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3421$ac_vpsub
3422$extrasub
3423s%@SHELL@%$SHELL%g
3424s%@CFLAGS@%$CFLAGS%g
3425s%@CPPFLAGS@%$CPPFLAGS%g
3426s%@CXXFLAGS@%$CXXFLAGS%g
3427s%@FFLAGS@%$FFLAGS%g
3428s%@DEFS@%$DEFS%g
3429s%@LDFLAGS@%$LDFLAGS%g
3430s%@LIBS@%$LIBS%g
3431s%@exec_prefix@%$exec_prefix%g
3432s%@prefix@%$prefix%g
3433s%@program_transform_name@%$program_transform_name%g
3434s%@bindir@%$bindir%g
3435s%@sbindir@%$sbindir%g
3436s%@libexecdir@%$libexecdir%g
3437s%@datadir@%$datadir%g
3438s%@sysconfdir@%$sysconfdir%g
3439s%@sharedstatedir@%$sharedstatedir%g
3440s%@localstatedir@%$localstatedir%g
3441s%@libdir@%$libdir%g
3442s%@includedir@%$includedir%g
3443s%@oldincludedir@%$oldincludedir%g
3444s%@infodir@%$infodir%g
3445s%@mandir@%$mandir%g
3446s%@PACKAGE@%$PACKAGE%g
3447s%@VERSION@%$VERSION%g
3448s%@USE_FASTCGI@%$USE_FASTCGI%g
3449s%@CC@%$CC%g
3450s%@CXX@%$CXX%g
3451s%@AWK@%$AWK%g
3452s%@YACC@%$YACC%g
3453s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3454s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3455s%@INSTALL_DATA@%$INSTALL_DATA%g
3456s%@LN_S@%$LN_S%g
3457s%@SET_MAKE@%$SET_MAKE%g
3458s%@RANLIB@%$RANLIB%g
3459s%@CPP@%$CPP%g
3460s%@U@%$U%g
3461s%@ANSI2KNR@%$ANSI2KNR%g
3462s%@ALLOCA@%$ALLOCA%g
3463s%@LIBOBJS@%$LIBOBJS%g
3464s%@gsdlos@%$gsdlos%g
3465s%@subdirs@%$subdirs%g
3466
3467CEOF
3468EOF
3469
3470cat >> $CONFIG_STATUS <<\EOF
3471
3472# Split the substitutions into bite-sized pieces for seds with
3473# small command number limits, like on Digital OSF/1 and HP-UX.
3474ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3475ac_file=1 # Number of current file.
3476ac_beg=1 # First line for current file.
3477ac_end=$ac_max_sed_cmds # Line after last line for current file.
3478ac_more_lines=:
3479ac_sed_cmds=""
3480while $ac_more_lines; do
3481 if test $ac_beg -gt 1; then
3482 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3483 else
3484 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3485 fi
3486 if test ! -s conftest.s$ac_file; then
3487 ac_more_lines=false
3488 rm -f conftest.s$ac_file
3489 else
3490 if test -z "$ac_sed_cmds"; then
3491 ac_sed_cmds="sed -f conftest.s$ac_file"
3492 else
3493 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3494 fi
3495 ac_file=`expr $ac_file + 1`
3496 ac_beg=$ac_end
3497 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3498 fi
3499done
3500if test -z "$ac_sed_cmds"; then
3501 ac_sed_cmds=cat
3502fi
3503EOF
3504
3505cat >> $CONFIG_STATUS <<EOF
3506
3507CONFIG_FILES=\${CONFIG_FILES-"packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile
3508 packages/mg/src/scripts/Makefile packages/mg/lib/Makefile src/mgpp/Makefile
3509 src/mgpp/lib/Makefile src/mgpp/text/Makefile
3510 src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile
3511 src/db2txt/Makefile lib/Makefile Makefile src/getpw/Makefile
3512 src/phind/generate/Makefile src/phind/host/Makefile"}
3513EOF
3514cat >> $CONFIG_STATUS <<\EOF
3515for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3516 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3517 case "$ac_file" in
3518 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3519 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3520 *) ac_file_in="${ac_file}.in" ;;
3521 esac
3522
3523 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3524
3525 # Remove last slash and all that follows it. Not all systems have dirname.
3526 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3527 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3528 # The file is in a subdirectory.
3529 test ! -d "$ac_dir" && mkdir "$ac_dir"
3530 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3531 # A "../" for each directory in $ac_dir_suffix.
3532 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3533 else
3534 ac_dir_suffix= ac_dots=
3535 fi
3536
3537 case "$ac_given_srcdir" in
3538 .) srcdir=.
3539 if test -z "$ac_dots"; then top_srcdir=.
3540 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3541 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3542 *) # Relative path.
3543 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3544 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3545 esac
3546
3547 case "$ac_given_INSTALL" in
3548 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3549 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3550 esac
3551
3552 echo creating "$ac_file"
3553 rm -f "$ac_file"
3554 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3555 case "$ac_file" in
3556 *Makefile*) ac_comsub="1i\\
3557# $configure_input" ;;
3558 *) ac_comsub= ;;
3559 esac
3560
3561 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3562 sed -e "$ac_comsub
3563s%@configure_input@%$configure_input%g
3564s%@srcdir@%$srcdir%g
3565s%@top_srcdir@%$top_srcdir%g
3566s%@INSTALL@%$INSTALL%g
3567" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3568fi; done
3569rm -f conftest.s*
3570
3571# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3572# NAME is the cpp macro being defined and VALUE is the value it is being given.
3573#
3574# ac_d sets the value in "#define NAME VALUE" lines.
3575ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3576ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3577ac_dC='\3'
3578ac_dD='%g'
3579# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3580ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3581ac_uB='\([ ]\)%\1#\2define\3'
3582ac_uC=' '
3583ac_uD='\4%g'
3584# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3585ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3586ac_eB='$%\1#\2define\3'
3587ac_eC=' '
3588ac_eD='%g'
3589
3590if test "${CONFIG_HEADERS+set}" != set; then
3591EOF
3592cat >> $CONFIG_STATUS <<EOF
3593 CONFIG_HEADERS="config.h"
3594EOF
3595cat >> $CONFIG_STATUS <<\EOF
3596fi
3597for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3598 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3599 case "$ac_file" in
3600 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3601 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3602 *) ac_file_in="${ac_file}.in" ;;
3603 esac
3604
3605 echo creating $ac_file
3606
3607 rm -f conftest.frag conftest.in conftest.out
3608 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3609 cat $ac_file_inputs > conftest.in
3610
3611EOF
3612
3613# Transform confdefs.h into a sed script conftest.vals that substitutes
3614# the proper values into config.h.in to produce config.h. And first:
3615# Protect against being on the right side of a sed subst in config.status.
3616# Protect against being in an unquoted here document in config.status.
3617rm -f conftest.vals
3618cat > conftest.hdr <<\EOF
3619s/[\\&%]/\\&/g
3620s%[\\$`]%\\&%g
3621s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3622s%ac_d%ac_u%gp
3623s%ac_u%ac_e%gp
3624EOF
3625sed -n -f conftest.hdr confdefs.h > conftest.vals
3626rm -f conftest.hdr
3627
3628# This sed command replaces #undef with comments. This is necessary, for
3629# example, in the case of _POSIX_SOURCE, which is predefined and required
3630# on some systems where configure will not decide to define it.
3631cat >> conftest.vals <<\EOF
3632s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3633EOF
3634
3635# Break up conftest.vals because some shells have a limit on
3636# the size of here documents, and old seds have small limits too.
3637
3638rm -f conftest.tail
3639while :
3640do
3641 ac_lines=`grep -c . conftest.vals`
3642 # grep -c gives empty output for an empty file on some AIX systems.
3643 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3644 # Write a limited-size here document to conftest.frag.
3645 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3646 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3647 echo 'CEOF
3648 sed -f conftest.frag conftest.in > conftest.out
3649 rm -f conftest.in
3650 mv conftest.out conftest.in
3651' >> $CONFIG_STATUS
3652 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3653 rm -f conftest.vals
3654 mv conftest.tail conftest.vals
3655done
3656rm -f conftest.vals
3657
3658cat >> $CONFIG_STATUS <<\EOF
3659 rm -f conftest.frag conftest.h
3660 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3661 cat conftest.in >> conftest.h
3662 rm -f conftest.in
3663 if cmp -s $ac_file conftest.h 2>/dev/null; then
3664 echo "$ac_file is unchanged"
3665 rm -f conftest.h
3666 else
3667 # Remove last slash and all that follows it. Not all systems have dirname.
3668 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3669 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3670 # The file is in a subdirectory.
3671 test ! -d "$ac_dir" && mkdir "$ac_dir"
3672 fi
3673 rm -f $ac_file
3674 mv conftest.h $ac_file
3675 fi
3676fi; done
3677
3678EOF
3679cat >> $CONFIG_STATUS <<EOF
3680
3681EOF
3682cat >> $CONFIG_STATUS <<\EOF
3683
3684exit 0
3685EOF
3686chmod +x $CONFIG_STATUS
3687rm -fr confdefs* $ac_clean_files
3688test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3689
3690if test "$no_recursion" != yes; then
3691
3692 # Remove --cache-file and --srcdir arguments so they do not pile up.
3693 ac_sub_configure_args=
3694 ac_prev=
3695 for ac_arg in $ac_configure_args; do
3696 if test -n "$ac_prev"; then
3697 ac_prev=
3698 continue
3699 fi
3700 case "$ac_arg" in
3701 -cache-file | --cache-file | --cache-fil | --cache-fi \
3702 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3703 ac_prev=cache_file ;;
3704 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3705 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3706 ;;
3707 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3708 ac_prev=srcdir ;;
3709 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3710 ;;
3711 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3712 esac
3713 done
3714
3715 for ac_config_dir in packages; do
3716
3717 # Do not complain, so a configure script can configure whichever
3718 # parts of a large source tree are present.
3719 if test ! -d $srcdir/$ac_config_dir; then
3720 continue
3721 fi
3722
3723 echo configuring in $ac_config_dir
3724
3725 case "$srcdir" in
3726 .) ;;
3727 *)
3728 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3729 else
3730 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3731 fi
3732 ;;
3733 esac
3734
3735 ac_popdir=`pwd`
3736 cd $ac_config_dir
3737
3738 # A "../" for each directory in /$ac_config_dir.
3739 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3740
3741 case "$srcdir" in
3742 .) # No --srcdir option. We are building in place.
3743 ac_sub_srcdir=$srcdir ;;
3744 /*) # Absolute path.
3745 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3746 *) # Relative path.
3747 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3748 esac
3749
3750 # Check for guested configure; otherwise get Cygnus style configure.
3751 if test -f $ac_sub_srcdir/configure; then
3752 ac_sub_configure=$ac_sub_srcdir/configure
3753 elif test -f $ac_sub_srcdir/configure.in; then
3754 ac_sub_configure=$ac_configure
3755 else
3756 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3757 ac_sub_configure=
3758 fi
3759
3760 # The recursion is here.
3761 if test -n "$ac_sub_configure"; then
3762
3763 # Make the cache file name correct relative to the subdirectory.
3764 case "$cache_file" in
3765 /*) ac_sub_cache_file=$cache_file ;;
3766 *) # Relative path.
3767 ac_sub_cache_file="$ac_dots$cache_file" ;;
3768 esac
3769 case "$ac_given_INSTALL" in
3770 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3771 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3772 esac
3773
3774 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3775 # The eval makes quoting arguments work.
3776 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3777 then :
3778 else
3779 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3780 fi
3781 fi
3782
3783 cd $ac_popdir
3784 done
3785fi
3786
3787
3788
3789
Note: See TracBrowser for help on using the repository browser.