source: trunk/gsdl/configure@ 700

Last change on this file since 700 was 700, checked in by sjboddie, 25 years ago

* empty log message *

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 97.6 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
577CFLAGS=-g
578
579
580# Extract the first word of "gcc", so it can be a program name with args.
581set dummy gcc; ac_word=$2
582echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
583echo "configure:584: checking for $ac_word" >&5
584if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
585 echo $ac_n "(cached) $ac_c" 1>&6
586else
587 if test -n "$CC"; then
588 ac_cv_prog_CC="$CC" # Let the user override the test.
589else
590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
591 ac_dummy="$PATH"
592 for ac_dir in $ac_dummy; do
593 test -z "$ac_dir" && ac_dir=.
594 if test -f $ac_dir/$ac_word; then
595 ac_cv_prog_CC="gcc"
596 break
597 fi
598 done
599 IFS="$ac_save_ifs"
600fi
601fi
602CC="$ac_cv_prog_CC"
603if test -n "$CC"; then
604 echo "$ac_t""$CC" 1>&6
605else
606 echo "$ac_t""no" 1>&6
607fi
608
609if test -z "$CC"; then
610 # Extract the first word of "cc", so it can be a program name with args.
611set dummy cc; ac_word=$2
612echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
613echo "configure:614: checking for $ac_word" >&5
614if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
615 echo $ac_n "(cached) $ac_c" 1>&6
616else
617 if test -n "$CC"; then
618 ac_cv_prog_CC="$CC" # Let the user override the test.
619else
620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
621 ac_prog_rejected=no
622 ac_dummy="$PATH"
623 for ac_dir in $ac_dummy; do
624 test -z "$ac_dir" && ac_dir=.
625 if test -f $ac_dir/$ac_word; then
626 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
627 ac_prog_rejected=yes
628 continue
629 fi
630 ac_cv_prog_CC="cc"
631 break
632 fi
633 done
634 IFS="$ac_save_ifs"
635if test $ac_prog_rejected = yes; then
636 # We found a bogon in the path, so make sure we never use it.
637 set dummy $ac_cv_prog_CC
638 shift
639 if test $# -gt 0; then
640 # We chose a different compiler from the bogus one.
641 # However, it has the same basename, so the bogon will be chosen
642 # first if we set CC to just the basename; use the full file name.
643 shift
644 set dummy "$ac_dir/$ac_word" "$@"
645 shift
646 ac_cv_prog_CC="$@"
647 fi
648fi
649fi
650fi
651CC="$ac_cv_prog_CC"
652if test -n "$CC"; then
653 echo "$ac_t""$CC" 1>&6
654else
655 echo "$ac_t""no" 1>&6
656fi
657
658 if test -z "$CC"; then
659 case "`uname -s`" in
660 *win32* | *WIN32*)
661 # Extract the first word of "cl", so it can be a program name with args.
662set dummy cl; ac_word=$2
663echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
664echo "configure:665: checking for $ac_word" >&5
665if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
666 echo $ac_n "(cached) $ac_c" 1>&6
667else
668 if test -n "$CC"; then
669 ac_cv_prog_CC="$CC" # Let the user override the test.
670else
671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
672 ac_dummy="$PATH"
673 for ac_dir in $ac_dummy; do
674 test -z "$ac_dir" && ac_dir=.
675 if test -f $ac_dir/$ac_word; then
676 ac_cv_prog_CC="cl"
677 break
678 fi
679 done
680 IFS="$ac_save_ifs"
681fi
682fi
683CC="$ac_cv_prog_CC"
684if test -n "$CC"; then
685 echo "$ac_t""$CC" 1>&6
686else
687 echo "$ac_t""no" 1>&6
688fi
689 ;;
690 esac
691 fi
692 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
693fi
694
695echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
696echo "configure:697: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
697
698ac_ext=c
699# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
700ac_cpp='$CPP $CPPFLAGS'
701ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
702ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
703cross_compiling=$ac_cv_prog_cc_cross
704
705cat > conftest.$ac_ext << EOF
706
707#line 708 "configure"
708#include "confdefs.h"
709
710main(){return(0);}
711EOF
712if { (eval echo configure:713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
713 ac_cv_prog_cc_works=yes
714 # If we can't run a trivial program, we are probably using a cross compiler.
715 if (./conftest; exit) 2>/dev/null; then
716 ac_cv_prog_cc_cross=no
717 else
718 ac_cv_prog_cc_cross=yes
719 fi
720else
721 echo "configure: failed program was:" >&5
722 cat conftest.$ac_ext >&5
723 ac_cv_prog_cc_works=no
724fi
725rm -fr conftest*
726ac_ext=c
727# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
728ac_cpp='$CPP $CPPFLAGS'
729ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
730ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
731cross_compiling=$ac_cv_prog_cc_cross
732
733echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
734if test $ac_cv_prog_cc_works = no; then
735 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
736fi
737echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
738echo "configure:739: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
739echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
740cross_compiling=$ac_cv_prog_cc_cross
741
742echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
743echo "configure:744: checking whether we are using GNU C" >&5
744if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
745 echo $ac_n "(cached) $ac_c" 1>&6
746else
747 cat > conftest.c <<EOF
748#ifdef __GNUC__
749 yes;
750#endif
751EOF
752if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
753 ac_cv_prog_gcc=yes
754else
755 ac_cv_prog_gcc=no
756fi
757fi
758
759echo "$ac_t""$ac_cv_prog_gcc" 1>&6
760
761if test $ac_cv_prog_gcc = yes; then
762 GCC=yes
763else
764 GCC=
765fi
766
767ac_test_CFLAGS="${CFLAGS+set}"
768ac_save_CFLAGS="$CFLAGS"
769CFLAGS=
770echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
771echo "configure:772: checking whether ${CC-cc} accepts -g" >&5
772if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
773 echo $ac_n "(cached) $ac_c" 1>&6
774else
775 echo 'void f(){}' > conftest.c
776if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
777 ac_cv_prog_cc_g=yes
778else
779 ac_cv_prog_cc_g=no
780fi
781rm -f conftest*
782
783fi
784
785echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
786if test "$ac_test_CFLAGS" = set; then
787 CFLAGS="$ac_save_CFLAGS"
788elif test $ac_cv_prog_cc_g = yes; then
789 if test "$GCC" = yes; then
790 CFLAGS="-g -O2"
791 else
792 CFLAGS="-g"
793 fi
794else
795 if test "$GCC" = yes; then
796 CFLAGS="-O2"
797 else
798 CFLAGS=
799 fi
800fi
801
802for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
803do
804# Extract the first word of "$ac_prog", so it can be a program name with args.
805set dummy $ac_prog; ac_word=$2
806echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
807echo "configure:808: checking for $ac_word" >&5
808if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
810else
811 if test -n "$CXX"; then
812 ac_cv_prog_CXX="$CXX" # Let the user override the test.
813else
814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
815 ac_dummy="$PATH"
816 for ac_dir in $ac_dummy; do
817 test -z "$ac_dir" && ac_dir=.
818 if test -f $ac_dir/$ac_word; then
819 ac_cv_prog_CXX="$ac_prog"
820 break
821 fi
822 done
823 IFS="$ac_save_ifs"
824fi
825fi
826CXX="$ac_cv_prog_CXX"
827if test -n "$CXX"; then
828 echo "$ac_t""$CXX" 1>&6
829else
830 echo "$ac_t""no" 1>&6
831fi
832
833test -n "$CXX" && break
834done
835test -n "$CXX" || CXX="gcc"
836
837
838echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
839echo "configure:840: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
840
841ac_ext=C
842# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
843ac_cpp='$CXXCPP $CPPFLAGS'
844ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
845ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
846cross_compiling=$ac_cv_prog_cxx_cross
847
848cat > conftest.$ac_ext << EOF
849
850#line 851 "configure"
851#include "confdefs.h"
852
853int main(){return(0);}
854EOF
855if { (eval echo configure:856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
856 ac_cv_prog_cxx_works=yes
857 # If we can't run a trivial program, we are probably using a cross compiler.
858 if (./conftest; exit) 2>/dev/null; then
859 ac_cv_prog_cxx_cross=no
860 else
861 ac_cv_prog_cxx_cross=yes
862 fi
863else
864 echo "configure: failed program was:" >&5
865 cat conftest.$ac_ext >&5
866 ac_cv_prog_cxx_works=no
867fi
868rm -fr conftest*
869ac_ext=c
870# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
871ac_cpp='$CPP $CPPFLAGS'
872ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
873ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
874cross_compiling=$ac_cv_prog_cc_cross
875
876echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
877if test $ac_cv_prog_cxx_works = no; then
878 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
879fi
880echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
881echo "configure:882: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
882echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
883cross_compiling=$ac_cv_prog_cxx_cross
884
885echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
886echo "configure:887: checking whether we are using GNU C++" >&5
887if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
889else
890 cat > conftest.C <<EOF
891#ifdef __GNUC__
892 yes;
893#endif
894EOF
895if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
896 ac_cv_prog_gxx=yes
897else
898 ac_cv_prog_gxx=no
899fi
900fi
901
902echo "$ac_t""$ac_cv_prog_gxx" 1>&6
903
904if test $ac_cv_prog_gxx = yes; then
905 GXX=yes
906else
907 GXX=
908fi
909
910ac_test_CXXFLAGS="${CXXFLAGS+set}"
911ac_save_CXXFLAGS="$CXXFLAGS"
912CXXFLAGS=
913echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
914echo "configure:915: checking whether ${CXX-g++} accepts -g" >&5
915if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
916 echo $ac_n "(cached) $ac_c" 1>&6
917else
918 echo 'void f(){}' > conftest.cc
919if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
920 ac_cv_prog_cxx_g=yes
921else
922 ac_cv_prog_cxx_g=no
923fi
924rm -f conftest*
925
926fi
927
928echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
929if test "$ac_test_CXXFLAGS" = set; then
930 CXXFLAGS="$ac_save_CXXFLAGS"
931elif test $ac_cv_prog_cxx_g = yes; then
932 if test "$GXX" = yes; then
933 CXXFLAGS="-g -O2"
934 else
935 CXXFLAGS="-g"
936 fi
937else
938 if test "$GXX" = yes; then
939 CXXFLAGS="-O2"
940 else
941 CXXFLAGS=
942 fi
943fi
944
945for ac_prog in mawk gawk nawk awk
946do
947# Extract the first word of "$ac_prog", so it can be a program name with args.
948set dummy $ac_prog; ac_word=$2
949echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
950echo "configure:951: checking for $ac_word" >&5
951if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
952 echo $ac_n "(cached) $ac_c" 1>&6
953else
954 if test -n "$AWK"; then
955 ac_cv_prog_AWK="$AWK" # Let the user override the test.
956else
957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
958 ac_dummy="$PATH"
959 for ac_dir in $ac_dummy; do
960 test -z "$ac_dir" && ac_dir=.
961 if test -f $ac_dir/$ac_word; then
962 ac_cv_prog_AWK="$ac_prog"
963 break
964 fi
965 done
966 IFS="$ac_save_ifs"
967fi
968fi
969AWK="$ac_cv_prog_AWK"
970if test -n "$AWK"; then
971 echo "$ac_t""$AWK" 1>&6
972else
973 echo "$ac_t""no" 1>&6
974fi
975
976test -n "$AWK" && break
977done
978
979for ac_prog in 'bison -y' byacc
980do
981# Extract the first word of "$ac_prog", so it can be a program name with args.
982set dummy $ac_prog; ac_word=$2
983echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
984echo "configure:985: checking for $ac_word" >&5
985if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6
987else
988 if test -n "$YACC"; then
989 ac_cv_prog_YACC="$YACC" # Let the user override the test.
990else
991 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
992 ac_dummy="$PATH"
993 for ac_dir in $ac_dummy; do
994 test -z "$ac_dir" && ac_dir=.
995 if test -f $ac_dir/$ac_word; then
996 ac_cv_prog_YACC="$ac_prog"
997 break
998 fi
999 done
1000 IFS="$ac_save_ifs"
1001fi
1002fi
1003YACC="$ac_cv_prog_YACC"
1004if test -n "$YACC"; then
1005 echo "$ac_t""$YACC" 1>&6
1006else
1007 echo "$ac_t""no" 1>&6
1008fi
1009
1010test -n "$YACC" && break
1011done
1012test -n "$YACC" || YACC="yacc"
1013
1014echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1015echo "configure:1016: checking whether ln -s works" >&5
1016if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1017 echo $ac_n "(cached) $ac_c" 1>&6
1018else
1019 rm -f conftestdata
1020if ln -s X conftestdata 2>/dev/null
1021then
1022 rm -f conftestdata
1023 ac_cv_prog_LN_S="ln -s"
1024else
1025 ac_cv_prog_LN_S=ln
1026fi
1027fi
1028LN_S="$ac_cv_prog_LN_S"
1029if test "$ac_cv_prog_LN_S" = "ln -s"; then
1030 echo "$ac_t""yes" 1>&6
1031else
1032 echo "$ac_t""no" 1>&6
1033fi
1034
1035echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1036echo "configure:1037: checking whether ${MAKE-make} sets \${MAKE}" >&5
1037set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1038if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1040else
1041 cat > conftestmake <<\EOF
1042all:
1043 @echo 'ac_maketemp="${MAKE}"'
1044EOF
1045# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1046eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1047if test -n "$ac_maketemp"; then
1048 eval ac_cv_prog_make_${ac_make}_set=yes
1049else
1050 eval ac_cv_prog_make_${ac_make}_set=no
1051fi
1052rm -f conftestmake
1053fi
1054if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1055 echo "$ac_t""yes" 1>&6
1056 SET_MAKE=
1057else
1058 echo "$ac_t""no" 1>&6
1059 SET_MAKE="MAKE=${MAKE-make}"
1060fi
1061
1062# Extract the first word of "ranlib", so it can be a program name with args.
1063set dummy ranlib; ac_word=$2
1064echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1065echo "configure:1066: checking for $ac_word" >&5
1066if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1067 echo $ac_n "(cached) $ac_c" 1>&6
1068else
1069 if test -n "$RANLIB"; then
1070 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1071else
1072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1073 ac_dummy="$PATH"
1074 for ac_dir in $ac_dummy; do
1075 test -z "$ac_dir" && ac_dir=.
1076 if test -f $ac_dir/$ac_word; then
1077 ac_cv_prog_RANLIB="ranlib"
1078 break
1079 fi
1080 done
1081 IFS="$ac_save_ifs"
1082 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1083fi
1084fi
1085RANLIB="$ac_cv_prog_RANLIB"
1086if test -n "$RANLIB"; then
1087 echo "$ac_t""$RANLIB" 1>&6
1088else
1089 echo "$ac_t""no" 1>&6
1090fi
1091
1092
1093
1094echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1095echo "configure:1096: checking how to run the C preprocessor" >&5
1096# On Suns, sometimes $CPP names a directory.
1097if test -n "$CPP" && test -d "$CPP"; then
1098 CPP=
1099fi
1100if test -z "$CPP"; then
1101if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1103else
1104 # This must be in double quotes, not single quotes, because CPP may get
1105 # substituted into the Makefile and "${CC-cc}" will confuse make.
1106 CPP="${CC-cc} -E"
1107 # On the NeXT, cc -E runs the code through the compiler's parser,
1108 # not just through cpp.
1109 cat > conftest.$ac_ext <<EOF
1110#line 1111 "configure"
1111#include "confdefs.h"
1112#include <assert.h>
1113Syntax Error
1114EOF
1115ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1116{ (eval echo configure:1117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1117ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1118if test -z "$ac_err"; then
1119 :
1120else
1121 echo "$ac_err" >&5
1122 echo "configure: failed program was:" >&5
1123 cat conftest.$ac_ext >&5
1124 rm -rf conftest*
1125 CPP="${CC-cc} -E -traditional-cpp"
1126 cat > conftest.$ac_ext <<EOF
1127#line 1128 "configure"
1128#include "confdefs.h"
1129#include <assert.h>
1130Syntax Error
1131EOF
1132ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1133{ (eval echo configure:1134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1134ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1135if test -z "$ac_err"; then
1136 :
1137else
1138 echo "$ac_err" >&5
1139 echo "configure: failed program was:" >&5
1140 cat conftest.$ac_ext >&5
1141 rm -rf conftest*
1142 CPP="${CC-cc} -nologo -E"
1143 cat > conftest.$ac_ext <<EOF
1144#line 1145 "configure"
1145#include "confdefs.h"
1146#include <assert.h>
1147Syntax Error
1148EOF
1149ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1150{ (eval echo configure:1151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1151ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1152if test -z "$ac_err"; then
1153 :
1154else
1155 echo "$ac_err" >&5
1156 echo "configure: failed program was:" >&5
1157 cat conftest.$ac_ext >&5
1158 rm -rf conftest*
1159 CPP=/lib/cpp
1160fi
1161rm -f conftest*
1162fi
1163rm -f conftest*
1164fi
1165rm -f conftest*
1166 ac_cv_prog_CPP="$CPP"
1167fi
1168 CPP="$ac_cv_prog_CPP"
1169else
1170 ac_cv_prog_CPP="$CPP"
1171fi
1172echo "$ac_t""$CPP" 1>&6
1173
1174echo $ac_n "checking for AIX""... $ac_c" 1>&6
1175echo "configure:1176: checking for AIX" >&5
1176cat > conftest.$ac_ext <<EOF
1177#line 1178 "configure"
1178#include "confdefs.h"
1179#ifdef _AIX
1180 yes
1181#endif
1182
1183EOF
1184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1185 egrep "yes" >/dev/null 2>&1; then
1186 rm -rf conftest*
1187 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1188#define _ALL_SOURCE 1
1189EOF
1190
1191else
1192 rm -rf conftest*
1193 echo "$ac_t""no" 1>&6
1194fi
1195rm -f conftest*
1196
1197
1198echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1199echo "configure:1200: checking for POSIXized ISC" >&5
1200if test -d /etc/conf/kconfig.d &&
1201 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1202then
1203 echo "$ac_t""yes" 1>&6
1204 ISC=yes # If later tests want to check for ISC.
1205 cat >> confdefs.h <<\EOF
1206#define _POSIX_SOURCE 1
1207EOF
1208
1209 if test "$GCC" = yes; then
1210 CC="$CC -posix"
1211 else
1212 CC="$CC -Xp"
1213 fi
1214else
1215 echo "$ac_t""no" 1>&6
1216 ISC=
1217fi
1218
1219ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1220echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1221echo "configure:1222: checking for minix/config.h" >&5
1222if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1223 echo $ac_n "(cached) $ac_c" 1>&6
1224else
1225 cat > conftest.$ac_ext <<EOF
1226#line 1227 "configure"
1227#include "confdefs.h"
1228#include <minix/config.h>
1229EOF
1230ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1231{ (eval echo configure:1232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1232ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1233if test -z "$ac_err"; then
1234 rm -rf conftest*
1235 eval "ac_cv_header_$ac_safe=yes"
1236else
1237 echo "$ac_err" >&5
1238 echo "configure: failed program was:" >&5
1239 cat conftest.$ac_ext >&5
1240 rm -rf conftest*
1241 eval "ac_cv_header_$ac_safe=no"
1242fi
1243rm -f conftest*
1244fi
1245if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1246 echo "$ac_t""yes" 1>&6
1247 MINIX=yes
1248else
1249 echo "$ac_t""no" 1>&6
1250MINIX=
1251fi
1252
1253if test "$MINIX" = yes; then
1254 cat >> confdefs.h <<\EOF
1255#define _POSIX_SOURCE 1
1256EOF
1257
1258 cat >> confdefs.h <<\EOF
1259#define _POSIX_1_SOURCE 2
1260EOF
1261
1262 cat >> confdefs.h <<\EOF
1263#define _MINIX 1
1264EOF
1265
1266fi
1267
1268echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1269echo "configure:1270: checking for ${CC-cc} option to accept ANSI C" >&5
1270if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
1271 echo $ac_n "(cached) $ac_c" 1>&6
1272else
1273 ac_cv_prog_cc_stdc=no
1274ac_save_CFLAGS="$CFLAGS"
1275# Don't try gcc -ansi; that turns off useful extensions and
1276# breaks some systems' header files.
1277# AIX -qlanglvl=ansi
1278# Ultrix and OSF/1 -std1
1279# HP-UX -Aa -D_HPUX_SOURCE
1280# SVR4 -Xc
1281for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
1282do
1283 CFLAGS="$ac_save_CFLAGS $ac_arg"
1284 cat > conftest.$ac_ext <<EOF
1285#line 1286 "configure"
1286#include "confdefs.h"
1287#if !defined(__STDC__) || __STDC__ != 1
1288choke me
1289#endif
1290
1291int main() {
1292int test (int i, double x);
1293struct s1 {int (*f) (int a);};
1294struct s2 {int (*f) (double a);};
1295; return 0; }
1296EOF
1297if { (eval echo configure:1298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1298 rm -rf conftest*
1299 ac_cv_prog_cc_stdc="$ac_arg"; break
1300else
1301 echo "configure: failed program was:" >&5
1302 cat conftest.$ac_ext >&5
1303fi
1304rm -f conftest*
1305done
1306CFLAGS="$ac_save_CFLAGS"
1307
1308fi
1309
1310echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
1311case "x$ac_cv_prog_cc_stdc" in
1312 x|xno) ;;
1313 *) CC="$CC $ac_cv_prog_cc_stdc" ;;
1314esac
1315
1316
1317echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
1318echo "configure:1319: checking for function prototypes" >&5
1319if test "$ac_cv_prog_cc_stdc" != no; then
1320 echo "$ac_t""yes" 1>&6
1321 cat >> confdefs.h <<\EOF
1322#define PROTOTYPES 1
1323EOF
1324
1325 U= ANSI2KNR=
1326else
1327 echo "$ac_t""no" 1>&6
1328 U=_ ANSI2KNR=ansi2knr
1329fi
1330
1331echo $ac_n "checking for working const""... $ac_c" 1>&6
1332echo "configure:1333: checking for working const" >&5
1333if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1335else
1336 cat > conftest.$ac_ext <<EOF
1337#line 1338 "configure"
1338#include "confdefs.h"
1339
1340int main() {
1341
1342/* Ultrix mips cc rejects this. */
1343typedef int charset[2]; const charset x;
1344/* SunOS 4.1.1 cc rejects this. */
1345char const *const *ccp;
1346char **p;
1347/* NEC SVR4.0.2 mips cc rejects this. */
1348struct point {int x, y;};
1349static struct point const zero = {0,0};
1350/* AIX XL C 1.02.0.0 rejects this.
1351 It does not let you subtract one const X* pointer from another in an arm
1352 of an if-expression whose if-part is not a constant expression */
1353const char *g = "string";
1354ccp = &g + (g ? g-g : 0);
1355/* HPUX 7.0 cc rejects these. */
1356++ccp;
1357p = (char**) ccp;
1358ccp = (char const *const *) p;
1359{ /* SCO 3.2v4 cc rejects this. */
1360 char *t;
1361 char const *s = 0 ? (char *) 0 : (char const *) 0;
1362
1363 *t++ = 0;
1364}
1365{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1366 int x[] = {25, 17};
1367 const int *foo = &x[0];
1368 ++foo;
1369}
1370{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1371 typedef const int *iptr;
1372 iptr p = 0;
1373 ++p;
1374}
1375{ /* AIX XL C 1.02.0.0 rejects this saying
1376 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1377 struct s { int j; const int *ap[3]; };
1378 struct s *b; b->j = 5;
1379}
1380{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1381 const int foo = 10;
1382}
1383
1384; return 0; }
1385EOF
1386if { (eval echo configure:1387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1387 rm -rf conftest*
1388 ac_cv_c_const=yes
1389else
1390 echo "configure: failed program was:" >&5
1391 cat conftest.$ac_ext >&5
1392 rm -rf conftest*
1393 ac_cv_c_const=no
1394fi
1395rm -f conftest*
1396fi
1397
1398echo "$ac_t""$ac_cv_c_const" 1>&6
1399if test $ac_cv_c_const = no; then
1400 cat >> confdefs.h <<\EOF
1401#define const
1402EOF
1403
1404fi
1405
1406echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1407echo "configure:1408: checking for ANSI C header files" >&5
1408if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1409 echo $ac_n "(cached) $ac_c" 1>&6
1410else
1411 cat > conftest.$ac_ext <<EOF
1412#line 1413 "configure"
1413#include "confdefs.h"
1414#include <stdlib.h>
1415#include <stdarg.h>
1416#include <string.h>
1417#include <float.h>
1418EOF
1419ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1420{ (eval echo configure:1421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1421ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1422if test -z "$ac_err"; then
1423 rm -rf conftest*
1424 ac_cv_header_stdc=yes
1425else
1426 echo "$ac_err" >&5
1427 echo "configure: failed program was:" >&5
1428 cat conftest.$ac_ext >&5
1429 rm -rf conftest*
1430 ac_cv_header_stdc=no
1431fi
1432rm -f conftest*
1433
1434if test $ac_cv_header_stdc = yes; then
1435 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1436cat > conftest.$ac_ext <<EOF
1437#line 1438 "configure"
1438#include "confdefs.h"
1439#include <string.h>
1440EOF
1441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1442 egrep "memchr" >/dev/null 2>&1; then
1443 :
1444else
1445 rm -rf conftest*
1446 ac_cv_header_stdc=no
1447fi
1448rm -f conftest*
1449
1450fi
1451
1452if test $ac_cv_header_stdc = yes; then
1453 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1454cat > conftest.$ac_ext <<EOF
1455#line 1456 "configure"
1456#include "confdefs.h"
1457#include <stdlib.h>
1458EOF
1459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1460 egrep "free" >/dev/null 2>&1; then
1461 :
1462else
1463 rm -rf conftest*
1464 ac_cv_header_stdc=no
1465fi
1466rm -f conftest*
1467
1468fi
1469
1470if test $ac_cv_header_stdc = yes; then
1471 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1472if test "$cross_compiling" = yes; then
1473 :
1474else
1475 cat > conftest.$ac_ext <<EOF
1476#line 1477 "configure"
1477#include "confdefs.h"
1478#include <ctype.h>
1479#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1480#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1481#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1482int main () { int i; for (i = 0; i < 256; i++)
1483if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1484exit (0); }
1485
1486EOF
1487if { (eval echo configure:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1488then
1489 :
1490else
1491 echo "configure: failed program was:" >&5
1492 cat conftest.$ac_ext >&5
1493 rm -fr conftest*
1494 ac_cv_header_stdc=no
1495fi
1496rm -fr conftest*
1497fi
1498
1499fi
1500fi
1501
1502echo "$ac_t""$ac_cv_header_stdc" 1>&6
1503if test $ac_cv_header_stdc = yes; then
1504 cat >> confdefs.h <<\EOF
1505#define STDC_HEADERS 1
1506EOF
1507
1508fi
1509
1510echo $ac_n "checking for off_t""... $ac_c" 1>&6
1511echo "configure:1512: checking for off_t" >&5
1512if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1513 echo $ac_n "(cached) $ac_c" 1>&6
1514else
1515 cat > conftest.$ac_ext <<EOF
1516#line 1517 "configure"
1517#include "confdefs.h"
1518#include <sys/types.h>
1519#if STDC_HEADERS
1520#include <stdlib.h>
1521#include <stddef.h>
1522#endif
1523EOF
1524if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1525 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1526 rm -rf conftest*
1527 ac_cv_type_off_t=yes
1528else
1529 rm -rf conftest*
1530 ac_cv_type_off_t=no
1531fi
1532rm -f conftest*
1533
1534fi
1535echo "$ac_t""$ac_cv_type_off_t" 1>&6
1536if test $ac_cv_type_off_t = no; then
1537 cat >> confdefs.h <<\EOF
1538#define off_t long
1539EOF
1540
1541fi
1542
1543echo $ac_n "checking for size_t""... $ac_c" 1>&6
1544echo "configure:1545: checking for size_t" >&5
1545if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1546 echo $ac_n "(cached) $ac_c" 1>&6
1547else
1548 cat > conftest.$ac_ext <<EOF
1549#line 1550 "configure"
1550#include "confdefs.h"
1551#include <sys/types.h>
1552#if STDC_HEADERS
1553#include <stdlib.h>
1554#include <stddef.h>
1555#endif
1556EOF
1557if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1558 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1559 rm -rf conftest*
1560 ac_cv_type_size_t=yes
1561else
1562 rm -rf conftest*
1563 ac_cv_type_size_t=no
1564fi
1565rm -f conftest*
1566
1567fi
1568echo "$ac_t""$ac_cv_type_size_t" 1>&6
1569if test $ac_cv_type_size_t = no; then
1570 cat >> confdefs.h <<\EOF
1571#define size_t unsigned
1572EOF
1573
1574fi
1575
1576echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1577echo "configure:1578: checking whether time.h and sys/time.h may both be included" >&5
1578if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1579 echo $ac_n "(cached) $ac_c" 1>&6
1580else
1581 cat > conftest.$ac_ext <<EOF
1582#line 1583 "configure"
1583#include "confdefs.h"
1584#include <sys/types.h>
1585#include <sys/time.h>
1586#include <time.h>
1587int main() {
1588struct tm *tp;
1589; return 0; }
1590EOF
1591if { (eval echo configure:1592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1592 rm -rf conftest*
1593 ac_cv_header_time=yes
1594else
1595 echo "configure: failed program was:" >&5
1596 cat conftest.$ac_ext >&5
1597 rm -rf conftest*
1598 ac_cv_header_time=no
1599fi
1600rm -f conftest*
1601fi
1602
1603echo "$ac_t""$ac_cv_header_time" 1>&6
1604if test $ac_cv_header_time = yes; then
1605 cat >> confdefs.h <<\EOF
1606#define TIME_WITH_SYS_TIME 1
1607EOF
1608
1609fi
1610
1611echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1612echo "configure:1613: checking whether struct tm is in sys/time.h or time.h" >&5
1613if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1614 echo $ac_n "(cached) $ac_c" 1>&6
1615else
1616 cat > conftest.$ac_ext <<EOF
1617#line 1618 "configure"
1618#include "confdefs.h"
1619#include <sys/types.h>
1620#include <time.h>
1621int main() {
1622struct tm *tp; tp->tm_sec;
1623; return 0; }
1624EOF
1625if { (eval echo configure:1626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1626 rm -rf conftest*
1627 ac_cv_struct_tm=time.h
1628else
1629 echo "configure: failed program was:" >&5
1630 cat conftest.$ac_ext >&5
1631 rm -rf conftest*
1632 ac_cv_struct_tm=sys/time.h
1633fi
1634rm -f conftest*
1635fi
1636
1637echo "$ac_t""$ac_cv_struct_tm" 1>&6
1638if test $ac_cv_struct_tm = sys/time.h; then
1639 cat >> confdefs.h <<\EOF
1640#define TM_IN_SYS_TIME 1
1641EOF
1642
1643fi
1644
1645
1646if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
1647cat > conftest.$ac_ext <<EOF
1648#line 1649 "configure"
1649#include "confdefs.h"
1650#include <stdio.h>
1651
1652int main() {
1653 FILE *rubbish = popen("yes", "r");
1654; return 0; }
1655EOF
1656if { (eval echo configure:1657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1657 :
1658else
1659 echo "configure: failed program was:" >&5
1660 cat conftest.$ac_ext >&5
1661 rm -rf conftest*
1662 CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
1663fi
1664rm -f conftest*
1665fi
1666
1667
1668echo $ac_n "checking for main in -lg""... $ac_c" 1>&6
1669echo "configure:1670: checking for main in -lg" >&5
1670ac_lib_var=`echo g'_'main | sed 'y%./+-%__p_%'`
1671if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1672 echo $ac_n "(cached) $ac_c" 1>&6
1673else
1674 ac_save_LIBS="$LIBS"
1675LIBS="-lg $LIBS"
1676cat > conftest.$ac_ext <<EOF
1677#line 1678 "configure"
1678#include "confdefs.h"
1679
1680int main() {
1681main()
1682; return 0; }
1683EOF
1684if { (eval echo configure:1685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1685 rm -rf conftest*
1686 eval "ac_cv_lib_$ac_lib_var=yes"
1687else
1688 echo "configure: failed program was:" >&5
1689 cat conftest.$ac_ext >&5
1690 rm -rf conftest*
1691 eval "ac_cv_lib_$ac_lib_var=no"
1692fi
1693rm -f conftest*
1694LIBS="$ac_save_LIBS"
1695
1696fi
1697if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1698 echo "$ac_t""yes" 1>&6
1699 ac_tr_lib=HAVE_LIB`echo g | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1700 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1701 cat >> confdefs.h <<EOF
1702#define $ac_tr_lib 1
1703EOF
1704
1705 LIBS="-lg $LIBS"
1706
1707else
1708 echo "$ac_t""no" 1>&6
1709fi
1710
1711echo $ac_n "checking for main in -lgdbm""... $ac_c" 1>&6
1712echo "configure:1713: checking for main in -lgdbm" >&5
1713ac_lib_var=`echo gdbm'_'main | sed 'y%./+-%__p_%'`
1714if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1715 echo $ac_n "(cached) $ac_c" 1>&6
1716else
1717 ac_save_LIBS="$LIBS"
1718LIBS="-lgdbm $LIBS"
1719cat > conftest.$ac_ext <<EOF
1720#line 1721 "configure"
1721#include "confdefs.h"
1722
1723int main() {
1724main()
1725; return 0; }
1726EOF
1727if { (eval echo configure:1728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1728 rm -rf conftest*
1729 eval "ac_cv_lib_$ac_lib_var=yes"
1730else
1731 echo "configure: failed program was:" >&5
1732 cat conftest.$ac_ext >&5
1733 rm -rf conftest*
1734 eval "ac_cv_lib_$ac_lib_var=no"
1735fi
1736rm -f conftest*
1737LIBS="$ac_save_LIBS"
1738
1739fi
1740if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1741 echo "$ac_t""yes" 1>&6
1742 ac_tr_lib=HAVE_LIB`echo gdbm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1743 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1744 cat >> confdefs.h <<EOF
1745#define $ac_tr_lib 1
1746EOF
1747
1748 LIBS="-lgdbm $LIBS"
1749
1750else
1751 echo "$ac_t""no" 1>&6
1752fi
1753
1754echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1755echo "configure:1756: checking for main in -lm" >&5
1756ac_lib_var=`echo m'_'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="-lm $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 m | 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="-lm $LIBS"
1792
1793else
1794 echo "$ac_t""no" 1>&6
1795fi
1796
1797echo $ac_n "checking for main in -lstdc""... $ac_c" 1>&6
1798echo "configure:1799: checking for main in -lstdc" >&5
1799ac_lib_var=`echo stdc'_'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="-lstdc $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 stdc | 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="-lstdc $LIBS"
1835
1836else
1837 echo "$ac_t""no" 1>&6
1838fi
1839
1840
1841ac_header_dirent=no
1842for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1843do
1844ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1845echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1846echo "configure:1847: checking for $ac_hdr that defines DIR" >&5
1847if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1849else
1850 cat > conftest.$ac_ext <<EOF
1851#line 1852 "configure"
1852#include "confdefs.h"
1853#include <sys/types.h>
1854#include <$ac_hdr>
1855int main() {
1856DIR *dirp = 0;
1857; return 0; }
1858EOF
1859if { (eval echo configure:1860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1860 rm -rf conftest*
1861 eval "ac_cv_header_dirent_$ac_safe=yes"
1862else
1863 echo "configure: failed program was:" >&5
1864 cat conftest.$ac_ext >&5
1865 rm -rf conftest*
1866 eval "ac_cv_header_dirent_$ac_safe=no"
1867fi
1868rm -f conftest*
1869fi
1870if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1871 echo "$ac_t""yes" 1>&6
1872 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1873 cat >> confdefs.h <<EOF
1874#define $ac_tr_hdr 1
1875EOF
1876 ac_header_dirent=$ac_hdr; break
1877else
1878 echo "$ac_t""no" 1>&6
1879fi
1880done
1881# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1882if test $ac_header_dirent = dirent.h; then
1883echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1884echo "configure:1885: checking for opendir in -ldir" >&5
1885ac_lib_var=`echo dir'_'opendir | 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="-ldir $LIBS"
1891cat > conftest.$ac_ext <<EOF
1892#line 1893 "configure"
1893#include "confdefs.h"
1894/* Override any gcc2 internal prototype to avoid an error. */
1895/* We use char because int might match the return type of a gcc2
1896 builtin and then its argument prototype would still apply. */
1897char opendir();
1898
1899int main() {
1900opendir()
1901; return 0; }
1902EOF
1903if { (eval echo configure:1904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1904 rm -rf conftest*
1905 eval "ac_cv_lib_$ac_lib_var=yes"
1906else
1907 echo "configure: failed program was:" >&5
1908 cat conftest.$ac_ext >&5
1909 rm -rf conftest*
1910 eval "ac_cv_lib_$ac_lib_var=no"
1911fi
1912rm -f conftest*
1913LIBS="$ac_save_LIBS"
1914
1915fi
1916if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1917 echo "$ac_t""yes" 1>&6
1918 LIBS="$LIBS -ldir"
1919else
1920 echo "$ac_t""no" 1>&6
1921fi
1922
1923else
1924echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1925echo "configure:1926: checking for opendir in -lx" >&5
1926ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1927if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1928 echo $ac_n "(cached) $ac_c" 1>&6
1929else
1930 ac_save_LIBS="$LIBS"
1931LIBS="-lx $LIBS"
1932cat > conftest.$ac_ext <<EOF
1933#line 1934 "configure"
1934#include "confdefs.h"
1935/* Override any gcc2 internal prototype to avoid an error. */
1936/* We use char because int might match the return type of a gcc2
1937 builtin and then its argument prototype would still apply. */
1938char opendir();
1939
1940int main() {
1941opendir()
1942; return 0; }
1943EOF
1944if { (eval echo configure:1945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1945 rm -rf conftest*
1946 eval "ac_cv_lib_$ac_lib_var=yes"
1947else
1948 echo "configure: failed program was:" >&5
1949 cat conftest.$ac_ext >&5
1950 rm -rf conftest*
1951 eval "ac_cv_lib_$ac_lib_var=no"
1952fi
1953rm -f conftest*
1954LIBS="$ac_save_LIBS"
1955
1956fi
1957if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1958 echo "$ac_t""yes" 1>&6
1959 LIBS="$LIBS -lx"
1960else
1961 echo "$ac_t""no" 1>&6
1962fi
1963
1964fi
1965
1966echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1967echo "configure:1968: checking for ANSI C header files" >&5
1968if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1969 echo $ac_n "(cached) $ac_c" 1>&6
1970else
1971 cat > conftest.$ac_ext <<EOF
1972#line 1973 "configure"
1973#include "confdefs.h"
1974#include <stdlib.h>
1975#include <stdarg.h>
1976#include <string.h>
1977#include <float.h>
1978EOF
1979ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1980{ (eval echo configure:1981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1981ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1982if test -z "$ac_err"; then
1983 rm -rf conftest*
1984 ac_cv_header_stdc=yes
1985else
1986 echo "$ac_err" >&5
1987 echo "configure: failed program was:" >&5
1988 cat conftest.$ac_ext >&5
1989 rm -rf conftest*
1990 ac_cv_header_stdc=no
1991fi
1992rm -f conftest*
1993
1994if test $ac_cv_header_stdc = yes; then
1995 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1996cat > conftest.$ac_ext <<EOF
1997#line 1998 "configure"
1998#include "confdefs.h"
1999#include <string.h>
2000EOF
2001if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2002 egrep "memchr" >/dev/null 2>&1; then
2003 :
2004else
2005 rm -rf conftest*
2006 ac_cv_header_stdc=no
2007fi
2008rm -f conftest*
2009
2010fi
2011
2012if test $ac_cv_header_stdc = yes; then
2013 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2014cat > conftest.$ac_ext <<EOF
2015#line 2016 "configure"
2016#include "confdefs.h"
2017#include <stdlib.h>
2018EOF
2019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2020 egrep "free" >/dev/null 2>&1; then
2021 :
2022else
2023 rm -rf conftest*
2024 ac_cv_header_stdc=no
2025fi
2026rm -f conftest*
2027
2028fi
2029
2030if test $ac_cv_header_stdc = yes; then
2031 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2032if test "$cross_compiling" = yes; then
2033 :
2034else
2035 cat > conftest.$ac_ext <<EOF
2036#line 2037 "configure"
2037#include "confdefs.h"
2038#include <ctype.h>
2039#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2040#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2041#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2042int main () { int i; for (i = 0; i < 256; i++)
2043if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2044exit (0); }
2045
2046EOF
2047if { (eval echo configure:2048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2048then
2049 :
2050else
2051 echo "configure: failed program was:" >&5
2052 cat conftest.$ac_ext >&5
2053 rm -fr conftest*
2054 ac_cv_header_stdc=no
2055fi
2056rm -fr conftest*
2057fi
2058
2059fi
2060fi
2061
2062echo "$ac_t""$ac_cv_header_stdc" 1>&6
2063if test $ac_cv_header_stdc = yes; then
2064 cat >> confdefs.h <<\EOF
2065#define STDC_HEADERS 1
2066EOF
2067
2068fi
2069
2070for ac_hdr in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
2071do
2072ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2073echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2074echo "configure:2075: checking for $ac_hdr" >&5
2075if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2077else
2078 cat > conftest.$ac_ext <<EOF
2079#line 2080 "configure"
2080#include "confdefs.h"
2081#include <$ac_hdr>
2082EOF
2083ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2084{ (eval echo configure:2085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2085ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2086if test -z "$ac_err"; then
2087 rm -rf conftest*
2088 eval "ac_cv_header_$ac_safe=yes"
2089else
2090 echo "$ac_err" >&5
2091 echo "configure: failed program was:" >&5
2092 cat conftest.$ac_ext >&5
2093 rm -rf conftest*
2094 eval "ac_cv_header_$ac_safe=no"
2095fi
2096rm -f conftest*
2097fi
2098if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2099 echo "$ac_t""yes" 1>&6
2100 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2101 cat >> confdefs.h <<EOF
2102#define $ac_tr_hdr 1
2103EOF
2104
2105else
2106 echo "$ac_t""no" 1>&6
2107fi
2108done
2109
2110cat > conftest.$ac_ext <<EOF
2111#line 2112 "configure"
2112#include "confdefs.h"
2113#include <stdio.h>
2114EOF
2115if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2116 egrep "fread" >/dev/null 2>&1; then
2117 rm -rf conftest*
2118 cat >> confdefs.h <<\EOF
2119#define HAVE_FREAD_DECL 1
2120EOF
2121
2122fi
2123rm -f conftest*
2124
2125cat > conftest.$ac_ext <<EOF
2126#line 2127 "configure"
2127#include "confdefs.h"
2128#include <stdio.h>
2129EOF
2130if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2131 egrep "fgetc" >/dev/null 2>&1; then
2132 rm -rf conftest*
2133 cat >> confdefs.h <<\EOF
2134#define HAVE_FGETC_DECL 1
2135EOF
2136
2137fi
2138rm -f conftest*
2139
2140cat > conftest.$ac_ext <<EOF
2141#line 2142 "configure"
2142#include "confdefs.h"
2143#include <sys/procfs.h>
2144EOF
2145if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2146 egrep "pr_brksize" >/dev/null 2>&1; then
2147 rm -rf conftest*
2148 cat >> confdefs.h <<\EOF
2149#define HAVE_PR_BRKSIZE 1
2150EOF
2151
2152fi
2153rm -f conftest*
2154
2155
2156# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2157# for constant arguments. Useless!
2158echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2159echo "configure:2160: checking for working alloca.h" >&5
2160if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2162else
2163 cat > conftest.$ac_ext <<EOF
2164#line 2165 "configure"
2165#include "confdefs.h"
2166#include <alloca.h>
2167int main() {
2168char *p = alloca(2 * sizeof(int));
2169; return 0; }
2170EOF
2171if { (eval echo configure:2172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2172 rm -rf conftest*
2173 ac_cv_header_alloca_h=yes
2174else
2175 echo "configure: failed program was:" >&5
2176 cat conftest.$ac_ext >&5
2177 rm -rf conftest*
2178 ac_cv_header_alloca_h=no
2179fi
2180rm -f conftest*
2181fi
2182
2183echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2184if test $ac_cv_header_alloca_h = yes; then
2185 cat >> confdefs.h <<\EOF
2186#define HAVE_ALLOCA_H 1
2187EOF
2188
2189fi
2190
2191echo $ac_n "checking for alloca""... $ac_c" 1>&6
2192echo "configure:2193: checking for alloca" >&5
2193if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2194 echo $ac_n "(cached) $ac_c" 1>&6
2195else
2196 cat > conftest.$ac_ext <<EOF
2197#line 2198 "configure"
2198#include "confdefs.h"
2199
2200#ifdef __GNUC__
2201# define alloca __builtin_alloca
2202#else
2203# ifdef _MSC_VER
2204# include <malloc.h>
2205# define alloca _alloca
2206# else
2207# if HAVE_ALLOCA_H
2208# include <alloca.h>
2209# else
2210# ifdef _AIX
2211 #pragma alloca
2212# else
2213# ifndef alloca /* predefined by HP cc +Olibcalls */
2214char *alloca ();
2215# endif
2216# endif
2217# endif
2218# endif
2219#endif
2220
2221int main() {
2222char *p = (char *) alloca(1);
2223; return 0; }
2224EOF
2225if { (eval echo configure:2226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2226 rm -rf conftest*
2227 ac_cv_func_alloca_works=yes
2228else
2229 echo "configure: failed program was:" >&5
2230 cat conftest.$ac_ext >&5
2231 rm -rf conftest*
2232 ac_cv_func_alloca_works=no
2233fi
2234rm -f conftest*
2235fi
2236
2237echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2238if test $ac_cv_func_alloca_works = yes; then
2239 cat >> confdefs.h <<\EOF
2240#define HAVE_ALLOCA 1
2241EOF
2242
2243fi
2244
2245if test $ac_cv_func_alloca_works = no; then
2246 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2247 # that cause trouble. Some versions do not even contain alloca or
2248 # contain a buggy version. If you still want to use their alloca,
2249 # use ar to extract alloca.o from them instead of compiling alloca.c.
2250 ALLOCA=alloca.${ac_objext}
2251 cat >> confdefs.h <<\EOF
2252#define C_ALLOCA 1
2253EOF
2254
2255
2256echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2257echo "configure:2258: checking whether alloca needs Cray hooks" >&5
2258if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
2260else
2261 cat > conftest.$ac_ext <<EOF
2262#line 2263 "configure"
2263#include "confdefs.h"
2264#if defined(CRAY) && ! defined(CRAY2)
2265webecray
2266#else
2267wenotbecray
2268#endif
2269
2270EOF
2271if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2272 egrep "webecray" >/dev/null 2>&1; then
2273 rm -rf conftest*
2274 ac_cv_os_cray=yes
2275else
2276 rm -rf conftest*
2277 ac_cv_os_cray=no
2278fi
2279rm -f conftest*
2280
2281fi
2282
2283echo "$ac_t""$ac_cv_os_cray" 1>&6
2284if test $ac_cv_os_cray = yes; then
2285for ac_func in _getb67 GETB67 getb67; do
2286 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2287echo "configure:2288: checking for $ac_func" >&5
2288if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2289 echo $ac_n "(cached) $ac_c" 1>&6
2290else
2291 cat > conftest.$ac_ext <<EOF
2292#line 2293 "configure"
2293#include "confdefs.h"
2294/* System header to define __stub macros and hopefully few prototypes,
2295 which can conflict with char $ac_func(); below. */
2296#include <assert.h>
2297/* Override any gcc2 internal prototype to avoid an error. */
2298/* We use char because int might match the return type of a gcc2
2299 builtin and then its argument prototype would still apply. */
2300char $ac_func();
2301
2302int main() {
2303
2304/* The GNU C library defines this for functions which it implements
2305 to always fail with ENOSYS. Some functions are actually named
2306 something starting with __ and the normal name is an alias. */
2307#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2308choke me
2309#else
2310$ac_func();
2311#endif
2312
2313; return 0; }
2314EOF
2315if { (eval echo configure:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2316 rm -rf conftest*
2317 eval "ac_cv_func_$ac_func=yes"
2318else
2319 echo "configure: failed program was:" >&5
2320 cat conftest.$ac_ext >&5
2321 rm -rf conftest*
2322 eval "ac_cv_func_$ac_func=no"
2323fi
2324rm -f conftest*
2325fi
2326
2327if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2328 echo "$ac_t""yes" 1>&6
2329 cat >> confdefs.h <<EOF
2330#define CRAY_STACKSEG_END $ac_func
2331EOF
2332
2333 break
2334else
2335 echo "$ac_t""no" 1>&6
2336fi
2337
2338done
2339fi
2340
2341echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2342echo "configure:2343: checking stack direction for C alloca" >&5
2343if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2345else
2346 if test "$cross_compiling" = yes; then
2347 ac_cv_c_stack_direction=0
2348else
2349 cat > conftest.$ac_ext <<EOF
2350#line 2351 "configure"
2351#include "confdefs.h"
2352find_stack_direction ()
2353{
2354 static char *addr = 0;
2355 auto char dummy;
2356 if (addr == 0)
2357 {
2358 addr = &dummy;
2359 return find_stack_direction ();
2360 }
2361 else
2362 return (&dummy > addr) ? 1 : -1;
2363}
2364main ()
2365{
2366 exit (find_stack_direction() < 0);
2367}
2368EOF
2369if { (eval echo configure:2370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2370then
2371 ac_cv_c_stack_direction=1
2372else
2373 echo "configure: failed program was:" >&5
2374 cat conftest.$ac_ext >&5
2375 rm -fr conftest*
2376 ac_cv_c_stack_direction=-1
2377fi
2378rm -fr conftest*
2379fi
2380
2381fi
2382
2383echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2384cat >> confdefs.h <<EOF
2385#define STACK_DIRECTION $ac_cv_c_stack_direction
2386EOF
2387
2388fi
2389
2390if test $ac_cv_prog_gcc = yes; then
2391 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2392echo "configure:2393: checking whether ${CC-cc} needs -traditional" >&5
2393if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2395else
2396 ac_pattern="Autoconf.*'x'"
2397 cat > conftest.$ac_ext <<EOF
2398#line 2399 "configure"
2399#include "confdefs.h"
2400#include <sgtty.h>
2401Autoconf TIOCGETP
2402EOF
2403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2404 egrep "$ac_pattern" >/dev/null 2>&1; then
2405 rm -rf conftest*
2406 ac_cv_prog_gcc_traditional=yes
2407else
2408 rm -rf conftest*
2409 ac_cv_prog_gcc_traditional=no
2410fi
2411rm -f conftest*
2412
2413
2414 if test $ac_cv_prog_gcc_traditional = no; then
2415 cat > conftest.$ac_ext <<EOF
2416#line 2417 "configure"
2417#include "confdefs.h"
2418#include <termio.h>
2419Autoconf TCGETA
2420EOF
2421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2422 egrep "$ac_pattern" >/dev/null 2>&1; then
2423 rm -rf conftest*
2424 ac_cv_prog_gcc_traditional=yes
2425fi
2426rm -f conftest*
2427
2428 fi
2429fi
2430
2431echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2432 if test $ac_cv_prog_gcc_traditional = yes; then
2433 CC="$CC -traditional"
2434 fi
2435fi
2436
2437echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2438echo "configure:2439: checking return type of signal handlers" >&5
2439if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2441else
2442 cat > conftest.$ac_ext <<EOF
2443#line 2444 "configure"
2444#include "confdefs.h"
2445#include <sys/types.h>
2446#include <signal.h>
2447#ifdef signal
2448#undef signal
2449#endif
2450#ifdef __cplusplus
2451extern "C" void (*signal (int, void (*)(int)))(int);
2452#else
2453void (*signal ()) ();
2454#endif
2455
2456int main() {
2457int i;
2458; return 0; }
2459EOF
2460if { (eval echo configure:2461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2461 rm -rf conftest*
2462 ac_cv_type_signal=void
2463else
2464 echo "configure: failed program was:" >&5
2465 cat conftest.$ac_ext >&5
2466 rm -rf conftest*
2467 ac_cv_type_signal=int
2468fi
2469rm -f conftest*
2470fi
2471
2472echo "$ac_t""$ac_cv_type_signal" 1>&6
2473cat >> confdefs.h <<EOF
2474#define RETSIGTYPE $ac_cv_type_signal
2475EOF
2476
2477
2478echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2479echo "configure:2480: checking for vprintf" >&5
2480if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2482else
2483 cat > conftest.$ac_ext <<EOF
2484#line 2485 "configure"
2485#include "confdefs.h"
2486/* System header to define __stub macros and hopefully few prototypes,
2487 which can conflict with char vprintf(); below. */
2488#include <assert.h>
2489/* Override any gcc2 internal prototype to avoid an error. */
2490/* We use char because int might match the return type of a gcc2
2491 builtin and then its argument prototype would still apply. */
2492char vprintf();
2493
2494int main() {
2495
2496/* The GNU C library defines this for functions which it implements
2497 to always fail with ENOSYS. Some functions are actually named
2498 something starting with __ and the normal name is an alias. */
2499#if defined (__stub_vprintf) || defined (__stub___vprintf)
2500choke me
2501#else
2502vprintf();
2503#endif
2504
2505; return 0; }
2506EOF
2507if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2508 rm -rf conftest*
2509 eval "ac_cv_func_vprintf=yes"
2510else
2511 echo "configure: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2513 rm -rf conftest*
2514 eval "ac_cv_func_vprintf=no"
2515fi
2516rm -f conftest*
2517fi
2518
2519if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2520 echo "$ac_t""yes" 1>&6
2521 cat >> confdefs.h <<\EOF
2522#define HAVE_VPRINTF 1
2523EOF
2524
2525else
2526 echo "$ac_t""no" 1>&6
2527fi
2528
2529if test "$ac_cv_func_vprintf" != yes; then
2530echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2531echo "configure:2532: checking for _doprnt" >&5
2532if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2533 echo $ac_n "(cached) $ac_c" 1>&6
2534else
2535 cat > conftest.$ac_ext <<EOF
2536#line 2537 "configure"
2537#include "confdefs.h"
2538/* System header to define __stub macros and hopefully few prototypes,
2539 which can conflict with char _doprnt(); below. */
2540#include <assert.h>
2541/* Override any gcc2 internal prototype to avoid an error. */
2542/* We use char because int might match the return type of a gcc2
2543 builtin and then its argument prototype would still apply. */
2544char _doprnt();
2545
2546int main() {
2547
2548/* The GNU C library defines this for functions which it implements
2549 to always fail with ENOSYS. Some functions are actually named
2550 something starting with __ and the normal name is an alias. */
2551#if defined (__stub__doprnt) || defined (__stub____doprnt)
2552choke me
2553#else
2554_doprnt();
2555#endif
2556
2557; return 0; }
2558EOF
2559if { (eval echo configure:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2560 rm -rf conftest*
2561 eval "ac_cv_func__doprnt=yes"
2562else
2563 echo "configure: failed program was:" >&5
2564 cat conftest.$ac_ext >&5
2565 rm -rf conftest*
2566 eval "ac_cv_func__doprnt=no"
2567fi
2568rm -f conftest*
2569fi
2570
2571if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2572 echo "$ac_t""yes" 1>&6
2573 cat >> confdefs.h <<\EOF
2574#define HAVE_DOPRNT 1
2575EOF
2576
2577else
2578 echo "$ac_t""no" 1>&6
2579fi
2580
2581fi
2582
2583for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize
2584do
2585echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2586echo "configure:2587: checking for $ac_func" >&5
2587if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2589else
2590 cat > conftest.$ac_ext <<EOF
2591#line 2592 "configure"
2592#include "confdefs.h"
2593/* System header to define __stub macros and hopefully few prototypes,
2594 which can conflict with char $ac_func(); below. */
2595#include <assert.h>
2596/* Override any gcc2 internal prototype to avoid an error. */
2597/* We use char because int might match the return type of a gcc2
2598 builtin and then its argument prototype would still apply. */
2599char $ac_func();
2600
2601int main() {
2602
2603/* The GNU C library defines this for functions which it implements
2604 to always fail with ENOSYS. Some functions are actually named
2605 something starting with __ and the normal name is an alias. */
2606#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2607choke me
2608#else
2609$ac_func();
2610#endif
2611
2612; return 0; }
2613EOF
2614if { (eval echo configure:2615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2615 rm -rf conftest*
2616 eval "ac_cv_func_$ac_func=yes"
2617else
2618 echo "configure: failed program was:" >&5
2619 cat conftest.$ac_ext >&5
2620 rm -rf conftest*
2621 eval "ac_cv_func_$ac_func=no"
2622fi
2623rm -f conftest*
2624fi
2625
2626if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2627 echo "$ac_t""yes" 1>&6
2628 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2629 cat >> confdefs.h <<EOF
2630#define $ac_tr_func 1
2631EOF
2632
2633else
2634 echo "$ac_t""no" 1>&6
2635fi
2636done
2637
2638for ac_func in ftruncate strstr strcasecmp
2639do
2640echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2641echo "configure:2642: checking for $ac_func" >&5
2642if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2644else
2645 cat > conftest.$ac_ext <<EOF
2646#line 2647 "configure"
2647#include "confdefs.h"
2648/* System header to define __stub macros and hopefully few prototypes,
2649 which can conflict with char $ac_func(); below. */
2650#include <assert.h>
2651/* Override any gcc2 internal prototype to avoid an error. */
2652/* We use char because int might match the return type of a gcc2
2653 builtin and then its argument prototype would still apply. */
2654char $ac_func();
2655
2656int main() {
2657
2658/* The GNU C library defines this for functions which it implements
2659 to always fail with ENOSYS. Some functions are actually named
2660 something starting with __ and the normal name is an alias. */
2661#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2662choke me
2663#else
2664$ac_func();
2665#endif
2666
2667; return 0; }
2668EOF
2669if { (eval echo configure:2670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2670 rm -rf conftest*
2671 eval "ac_cv_func_$ac_func=yes"
2672else
2673 echo "configure: failed program was:" >&5
2674 cat conftest.$ac_ext >&5
2675 rm -rf conftest*
2676 eval "ac_cv_func_$ac_func=no"
2677fi
2678rm -f conftest*
2679fi
2680
2681if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2682 echo "$ac_t""yes" 1>&6
2683 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2684 cat >> confdefs.h <<EOF
2685#define $ac_tr_func 1
2686EOF
2687
2688else
2689 echo "$ac_t""no" 1>&6
2690LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2691fi
2692done
2693
2694
2695
2696
2697# *** Custom checking (based on GNU tar configure.in) ***
2698# ---------------------------------------------------------------------------
2699echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
2700echo "configure:2701: checking for HP-UX needing gmalloc" >&5
2701if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
2702 echo "$ac_t""yes" 1>&6
2703 LIBOBJS="$LIBOBJS gmalloc.o"
2704 cat >> confdefs.h <<\EOF
2705#define HAVE_VALLOC 1
2706EOF
2707
2708else
2709 echo "$ac_t""no" 1>&6
2710 for ac_func in valloc
2711do
2712echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2713echo "configure:2714: checking for $ac_func" >&5
2714if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2715 echo $ac_n "(cached) $ac_c" 1>&6
2716else
2717 cat > conftest.$ac_ext <<EOF
2718#line 2719 "configure"
2719#include "confdefs.h"
2720/* System header to define __stub macros and hopefully few prototypes,
2721 which can conflict with char $ac_func(); below. */
2722#include <assert.h>
2723/* Override any gcc2 internal prototype to avoid an error. */
2724/* We use char because int might match the return type of a gcc2
2725 builtin and then its argument prototype would still apply. */
2726char $ac_func();
2727
2728int main() {
2729
2730/* The GNU C library defines this for functions which it implements
2731 to always fail with ENOSYS. Some functions are actually named
2732 something starting with __ and the normal name is an alias. */
2733#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2734choke me
2735#else
2736$ac_func();
2737#endif
2738
2739; return 0; }
2740EOF
2741if { (eval echo configure:2742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2742 rm -rf conftest*
2743 eval "ac_cv_func_$ac_func=yes"
2744else
2745 echo "configure: failed program was:" >&5
2746 cat conftest.$ac_ext >&5
2747 rm -rf conftest*
2748 eval "ac_cv_func_$ac_func=no"
2749fi
2750rm -f conftest*
2751fi
2752
2753if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2754 echo "$ac_t""yes" 1>&6
2755 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2756 cat >> confdefs.h <<EOF
2757#define $ac_tr_func 1
2758EOF
2759
2760else
2761 echo "$ac_t""no" 1>&6
2762fi
2763done
2764
2765fi
2766
2767echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
2768echo "configure:2769: checking if malloc debugging is wanted" >&5
2769# Check whether --with-dmalloc or --without-dmalloc was given.
2770if test "${with_dmalloc+set}" = set; then
2771 withval="$with_dmalloc"
2772 if test "$withval" = yes; then
2773 echo "$ac_t""yes" 1>&6
2774 cat >> confdefs.h <<\EOF
2775#define WITH_DMALLOC 1
2776EOF
2777
2778 LIBS="$LIBS -ldmalloc"
2779 LDFLAGS="$LDFLAGS -g"
2780else
2781 echo "$ac_t""no" 1>&6
2782fi
2783else
2784 echo "$ac_t""no" 1>&6
2785fi
2786
2787
2788echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
2789echo "configure:2790: checking which of rx or regex is wanted" >&5
2790# Check whether --with-regex or --without-regex was given.
2791if test "${with_regex+set}" = set; then
2792 withval="$with_regex"
2793 if test "$withval" = yes; then
2794 ac_with_regex=1
2795 echo "$ac_t""regex" 1>&6
2796 cat >> confdefs.h <<\EOF
2797#define WITH_REGEX 1
2798EOF
2799
2800 LIBOBJS="$LIBOBJS regex.o"
2801fi
2802fi
2803
2804if test -z "$ac_with_regex"; then
2805 echo "$ac_t""rx" 1>&6
2806 echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
2807echo "configure:2808: checking for re_rx_search" >&5
2808if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
2809 echo $ac_n "(cached) $ac_c" 1>&6
2810else
2811 cat > conftest.$ac_ext <<EOF
2812#line 2813 "configure"
2813#include "confdefs.h"
2814/* System header to define __stub macros and hopefully few prototypes,
2815 which can conflict with char re_rx_search(); below. */
2816#include <assert.h>
2817/* Override any gcc2 internal prototype to avoid an error. */
2818/* We use char because int might match the return type of a gcc2
2819 builtin and then its argument prototype would still apply. */
2820char re_rx_search();
2821
2822int main() {
2823
2824/* The GNU C library defines this for functions which it implements
2825 to always fail with ENOSYS. Some functions are actually named
2826 something starting with __ and the normal name is an alias. */
2827#if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
2828choke me
2829#else
2830re_rx_search();
2831#endif
2832
2833; return 0; }
2834EOF
2835if { (eval echo configure:2836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2836 rm -rf conftest*
2837 eval "ac_cv_func_re_rx_search=yes"
2838else
2839 echo "configure: failed program was:" >&5
2840 cat conftest.$ac_ext >&5
2841 rm -rf conftest*
2842 eval "ac_cv_func_re_rx_search=no"
2843fi
2844rm -f conftest*
2845fi
2846
2847if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
2848 echo "$ac_t""yes" 1>&6
2849 :
2850else
2851 echo "$ac_t""no" 1>&6
2852LIBOBJS="$LIBOBJS rx.o"
2853fi
2854
2855fi
2856
2857
2858# ---------------------------------------------------------------------------
2859if test "$ac_cv_func_alloca" = 'no'; then
2860 LIBOBJS="$LIBOBJS xmalloc.o error.o"
2861fi
2862
2863
2864# ---------------------------------------------------------------------------
2865
2866ac_ext=C
2867# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2868ac_cpp='$CXXCPP $CPPFLAGS'
2869ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2870ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2871cross_compiling=$ac_cv_prog_cxx_cross
2872
2873
2874echo $ac_n "checking "that the GDBM library is available"""... $ac_c" 1>&6
2875echo "configure:2876: checking "that the GDBM library is available"" >&5
2876cat > conftest.$ac_ext <<EOF
2877#line 2878 "configure"
2878#include "confdefs.h"
2879#include <gdbm.h>
2880
2881int main() {
2882
2883; return 0; }
2884EOF
2885if { (eval echo configure:2886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2886 rm -rf conftest*
2887 success=yes
2888else
2889 echo "configure: failed program was:" >&5
2890 cat conftest.$ac_ext >&5
2891 rm -rf conftest*
2892 success=no
2893
2894fi
2895rm -f conftest*
2896echo "$ac_t""$success" 1>&6
2897if test $success = "no"; then
2898{ echo "configure: error: "GDBM Library not available - cannot install"" 1>&2; exit 1; }
2899fi
2900
2901echo $ac_n "checking "that Perl 5 is available"""... $ac_c" 1>&6
2902echo "configure:2903: checking "that Perl 5 is available"" >&5
2903success="no"
2904pl_path="$PATH"
2905IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
2906for pl_dir in $pl_path; do
2907 test -z "$pl_dir" && pl_dir=.
2908 if test -x $pl_dir/perl; then
2909 success="yes"
2910 break
2911 fi
2912done
2913IFS="$pl_save_ifs"
2914
2915if test $success = "yes"; then
2916try=`perl configtest.pl` || try="0"
2917try=`expr $try \> 5.000`
2918if test $try = "1"; then
2919echo "$ac_t"""yes"" 1>&6
2920else
2921success="no"
2922fi
2923fi
2924
2925if test $success = "no"; then
2926echo "$ac_t"""no"" 1>&6
2927{ echo "configure: error: "Perl 5 not available - cannot install"" 1>&2; exit 1; }
2928fi
2929
2930success=no
2931echo $ac_n "checking "whether STL library has known faults"""... $ac_c" 1>&6
2932echo "configure:2933: checking "whether STL library has known faults"" >&5
2933
2934cat > conftest.$ac_ext <<EOF
2935#line 2936 "configure"
2936#include "confdefs.h"
2937#include <vector>
2938
2939int main() {
2940
2941; return 0; }
2942EOF
2943if { (eval echo configure:2944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2944 rm -rf conftest*
2945 success=yes
2946else
2947 echo "configure: failed program was:" >&5
2948 cat conftest.$ac_ext >&5
2949fi
2950rm -f conftest*
2951
2952if test $success = "no"; then
2953cat > conftest.$ac_ext <<EOF
2954#line 2955 "configure"
2955#include "confdefs.h"
2956#include <vector.h>
2957
2958int main() {
2959
2960; return 0; }
2961EOF
2962if { (eval echo configure:2963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2963 rm -rf conftest*
2964 success="yes"
2965else
2966 echo "configure: failed program was:" >&5
2967 cat conftest.$ac_ext >&5
2968fi
2969rm -f conftest*
2970fi
2971
2972if test $success = "no"; then
2973cat > conftest.$ac_ext <<EOF
2974#line 2975 "configure"
2975#include "confdefs.h"
2976#include <ospace\\std\\vector>
2977
2978int main() {
2979
2980; return 0; }
2981EOF
2982if { (eval echo configure:2983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2983 rm -rf conftest*
2984 success="yes"
2985else
2986 echo "configure: failed program was:" >&5
2987 cat conftest.$ac_ext >&5
2988fi
2989rm -f conftest*
2990fi
2991
2992if test $success = yes; then
2993echo "$ac_t"""no"" 1>&6
2994else
2995echo "$ac_t"""yes"" 1>&6
2996{ echo "configure: error: "STL Broken - Obtain newer version of GNU C Compiler"" 1>&2; exit 1; }
2997fi
2998
2999gsdlos=`uname | tr A-Z a-z`
3000
3001
3002echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
3003echo "configure:3004: checking for HP-UX needing gmalloc" >&5
3004if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
3005 echo "$ac_t""yes" 1>&6
3006 LIBOBJS="$LIBOBJS gmalloc.o"
3007 cat >> confdefs.h <<\EOF
3008#define HAVE_VALLOC 1
3009EOF
3010
3011else
3012 echo "$ac_t""no" 1>&6
3013 for ac_func in valloc
3014do
3015echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3016echo "configure:3017: checking for $ac_func" >&5
3017if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3018 echo $ac_n "(cached) $ac_c" 1>&6
3019else
3020 cat > conftest.$ac_ext <<EOF
3021#line 3022 "configure"
3022#include "confdefs.h"
3023/* System header to define __stub macros and hopefully few prototypes,
3024 which can conflict with char $ac_func(); below. */
3025#include <assert.h>
3026/* Override any gcc2 internal prototype to avoid an error. */
3027#ifdef __cplusplus
3028extern "C"
3029#endif
3030/* We use char because int might match the return type of a gcc2
3031 builtin and then its argument prototype would still apply. */
3032char $ac_func();
3033
3034int main() {
3035
3036/* The GNU C library defines this for functions which it implements
3037 to always fail with ENOSYS. Some functions are actually named
3038 something starting with __ and the normal name is an alias. */
3039#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3040choke me
3041#else
3042$ac_func();
3043#endif
3044
3045; return 0; }
3046EOF
3047if { (eval echo configure:3048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3048 rm -rf conftest*
3049 eval "ac_cv_func_$ac_func=yes"
3050else
3051 echo "configure: failed program was:" >&5
3052 cat conftest.$ac_ext >&5
3053 rm -rf conftest*
3054 eval "ac_cv_func_$ac_func=no"
3055fi
3056rm -f conftest*
3057fi
3058
3059if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3060 echo "$ac_t""yes" 1>&6
3061 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3062 cat >> confdefs.h <<EOF
3063#define $ac_tr_func 1
3064EOF
3065
3066else
3067 echo "$ac_t""no" 1>&6
3068fi
3069done
3070
3071fi
3072
3073echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
3074echo "configure:3075: checking if malloc debugging is wanted" >&5
3075# Check whether --with-dmalloc or --without-dmalloc was given.
3076if test "${with_dmalloc+set}" = set; then
3077 withval="$with_dmalloc"
3078 if test "$withval" = yes; then
3079 echo "$ac_t""yes" 1>&6
3080 cat >> confdefs.h <<\EOF
3081#define WITH_DMALLOC 1
3082EOF
3083
3084 LIBS="$LIBS -ldmalloc"
3085 LDFLAGS="$LDFLAGS -g"
3086else
3087 echo "$ac_t""no" 1>&6
3088fi
3089else
3090 echo "$ac_t""no" 1>&6
3091fi
3092
3093
3094echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
3095echo "configure:3096: checking which of rx or regex is wanted" >&5
3096# Check whether --with-regex or --without-regex was given.
3097if test "${with_regex+set}" = set; then
3098 withval="$with_regex"
3099 if test "$withval" = yes; then
3100 ac_with_regex=1
3101 echo "$ac_t""regex" 1>&6
3102 cat >> confdefs.h <<\EOF
3103#define WITH_REGEX 1
3104EOF
3105
3106 LIBOBJS="$LIBOBJS regex.o"
3107fi
3108fi
3109
3110if test -z "$ac_with_regex"; then
3111 echo "$ac_t""rx" 1>&6
3112 echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
3113echo "configure:3114: checking for re_rx_search" >&5
3114if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
3115 echo $ac_n "(cached) $ac_c" 1>&6
3116else
3117 cat > conftest.$ac_ext <<EOF
3118#line 3119 "configure"
3119#include "confdefs.h"
3120/* System header to define __stub macros and hopefully few prototypes,
3121 which can conflict with char re_rx_search(); below. */
3122#include <assert.h>
3123/* Override any gcc2 internal prototype to avoid an error. */
3124#ifdef __cplusplus
3125extern "C"
3126#endif
3127/* We use char because int might match the return type of a gcc2
3128 builtin and then its argument prototype would still apply. */
3129char re_rx_search();
3130
3131int main() {
3132
3133/* The GNU C library defines this for functions which it implements
3134 to always fail with ENOSYS. Some functions are actually named
3135 something starting with __ and the normal name is an alias. */
3136#if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
3137choke me
3138#else
3139re_rx_search();
3140#endif
3141
3142; return 0; }
3143EOF
3144if { (eval echo configure:3145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3145 rm -rf conftest*
3146 eval "ac_cv_func_re_rx_search=yes"
3147else
3148 echo "configure: failed program was:" >&5
3149 cat conftest.$ac_ext >&5
3150 rm -rf conftest*
3151 eval "ac_cv_func_re_rx_search=no"
3152fi
3153rm -f conftest*
3154fi
3155
3156if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
3157 echo "$ac_t""yes" 1>&6
3158 :
3159else
3160 echo "$ac_t""no" 1>&6
3161LIBOBJS="$LIBOBJS rx.o"
3162fi
3163
3164fi
3165
3166
3167# ---------------------------------------------------------------------------
3168if test "$ac_cv_func_alloca" = 'no'; then
3169 LIBOBJS="$LIBOBJS xmalloc.o error.o"
3170fi
3171
3172
3173# ---------------------------------------------------------------------------
3174
3175trap '' 1 2 15
3176cat > confcache <<\EOF
3177# This file is a shell script that caches the results of configure
3178# tests run on this system so they can be shared between configure
3179# scripts and configure runs. It is not useful on other systems.
3180# If it contains results you don't want to keep, you may remove or edit it.
3181#
3182# By default, configure uses ./config.cache as the cache file,
3183# creating it if it does not exist already. You can give configure
3184# the --cache-file=FILE option to use a different cache file; that is
3185# what configure does when it calls configure scripts in
3186# subdirectories, so they share the cache.
3187# Giving --cache-file=/dev/null disables caching, for debugging configure.
3188# config.status only pays attention to the cache file if you give it the
3189# --recheck option to rerun configure.
3190#
3191EOF
3192# The following way of writing the cache mishandles newlines in values,
3193# but we know of no workaround that is simple, portable, and efficient.
3194# So, don't put newlines in cache variables' values.
3195# Ultrix sh set writes to stderr and can't be redirected directly,
3196# and sets the high bit in the cache file unless we assign to the vars.
3197(set) 2>&1 |
3198 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3199 *ac_space=\ *)
3200 # `set' does not quote correctly, so add quotes (double-quote substitution
3201 # turns \\\\ into \\, and sed turns \\ into \).
3202 sed -n \
3203 -e "s/'/'\\\\''/g" \
3204 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3205 ;;
3206 *)
3207 # `set' quotes correctly as required by POSIX, so do not add quotes.
3208 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3209 ;;
3210 esac >> confcache
3211if cmp -s $cache_file confcache; then
3212 :
3213else
3214 if test -w $cache_file; then
3215 echo "updating cache $cache_file"
3216 cat confcache > $cache_file
3217 else
3218 echo "not updating unwritable cache $cache_file"
3219 fi
3220fi
3221rm -f confcache
3222
3223trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3224
3225test "x$prefix" = xNONE && prefix=$ac_default_prefix
3226# Let make expand exec_prefix.
3227test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3228
3229# Any assignment to VPATH causes Sun make to only execute
3230# the first set of double-colon rules, so remove it if not needed.
3231# If there is a colon in the path, we need to keep it.
3232if test "x$srcdir" = x.; then
3233 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3234fi
3235
3236trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3237
3238DEFS=-DHAVE_CONFIG_H
3239
3240# Without the "./", some shells look in PATH for config.status.
3241: ${CONFIG_STATUS=./config.status}
3242
3243echo creating $CONFIG_STATUS
3244rm -f $CONFIG_STATUS
3245cat > $CONFIG_STATUS <<EOF
3246#! /bin/sh
3247# Generated automatically by configure.
3248# Run this file to recreate the current configuration.
3249# This directory was configured as follows,
3250# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3251#
3252# $0 $ac_configure_args
3253#
3254# Compiler output produced by configure, useful for debugging
3255# configure, is in ./config.log if it exists.
3256
3257ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3258for ac_option
3259do
3260 case "\$ac_option" in
3261 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3262 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3263 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3264 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3265 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3266 exit 0 ;;
3267 -help | --help | --hel | --he | --h)
3268 echo "\$ac_cs_usage"; exit 0 ;;
3269 *) echo "\$ac_cs_usage"; exit 1 ;;
3270 esac
3271done
3272
3273ac_given_srcdir=$srcdir
3274
3275trap 'rm -fr `echo "packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile
3276 packages/mg/src/scripts/Makefile packages/mg/lib/Makefile
3277 src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile
3278 src/db2txt/Makefile lib/Makefile collect/cstr/src/recpt/Makefile
3279 collect/niupepa/src/recpt/Makefile Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3280EOF
3281cat >> $CONFIG_STATUS <<EOF
3282
3283# Protect against being on the right side of a sed subst in config.status.
3284sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3285 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3286$ac_vpsub
3287$extrasub
3288s%@SHELL@%$SHELL%g
3289s%@CFLAGS@%$CFLAGS%g
3290s%@CPPFLAGS@%$CPPFLAGS%g
3291s%@CXXFLAGS@%$CXXFLAGS%g
3292s%@FFLAGS@%$FFLAGS%g
3293s%@DEFS@%$DEFS%g
3294s%@LDFLAGS@%$LDFLAGS%g
3295s%@LIBS@%$LIBS%g
3296s%@exec_prefix@%$exec_prefix%g
3297s%@prefix@%$prefix%g
3298s%@program_transform_name@%$program_transform_name%g
3299s%@bindir@%$bindir%g
3300s%@sbindir@%$sbindir%g
3301s%@libexecdir@%$libexecdir%g
3302s%@datadir@%$datadir%g
3303s%@sysconfdir@%$sysconfdir%g
3304s%@sharedstatedir@%$sharedstatedir%g
3305s%@localstatedir@%$localstatedir%g
3306s%@libdir@%$libdir%g
3307s%@includedir@%$includedir%g
3308s%@oldincludedir@%$oldincludedir%g
3309s%@infodir@%$infodir%g
3310s%@mandir@%$mandir%g
3311s%@PACKAGE@%$PACKAGE%g
3312s%@VERSION@%$VERSION%g
3313s%@USE_FASTCGI@%$USE_FASTCGI%g
3314s%@CC@%$CC%g
3315s%@CXX@%$CXX%g
3316s%@AWK@%$AWK%g
3317s%@YACC@%$YACC%g
3318s%@LN_S@%$LN_S%g
3319s%@SET_MAKE@%$SET_MAKE%g
3320s%@RANLIB@%$RANLIB%g
3321s%@CPP@%$CPP%g
3322s%@U@%$U%g
3323s%@ANSI2KNR@%$ANSI2KNR%g
3324s%@ALLOCA@%$ALLOCA%g
3325s%@LIBOBJS@%$LIBOBJS%g
3326s%@gsdlos@%$gsdlos%g
3327
3328CEOF
3329EOF
3330
3331cat >> $CONFIG_STATUS <<\EOF
3332
3333# Split the substitutions into bite-sized pieces for seds with
3334# small command number limits, like on Digital OSF/1 and HP-UX.
3335ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3336ac_file=1 # Number of current file.
3337ac_beg=1 # First line for current file.
3338ac_end=$ac_max_sed_cmds # Line after last line for current file.
3339ac_more_lines=:
3340ac_sed_cmds=""
3341while $ac_more_lines; do
3342 if test $ac_beg -gt 1; then
3343 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3344 else
3345 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3346 fi
3347 if test ! -s conftest.s$ac_file; then
3348 ac_more_lines=false
3349 rm -f conftest.s$ac_file
3350 else
3351 if test -z "$ac_sed_cmds"; then
3352 ac_sed_cmds="sed -f conftest.s$ac_file"
3353 else
3354 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3355 fi
3356 ac_file=`expr $ac_file + 1`
3357 ac_beg=$ac_end
3358 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3359 fi
3360done
3361if test -z "$ac_sed_cmds"; then
3362 ac_sed_cmds=cat
3363fi
3364EOF
3365
3366cat >> $CONFIG_STATUS <<EOF
3367
3368CONFIG_FILES=\${CONFIG_FILES-"packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile
3369 packages/mg/src/scripts/Makefile packages/mg/lib/Makefile
3370 src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile
3371 src/db2txt/Makefile lib/Makefile collect/cstr/src/recpt/Makefile
3372 collect/niupepa/src/recpt/Makefile Makefile"}
3373EOF
3374cat >> $CONFIG_STATUS <<\EOF
3375for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3376 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3377 case "$ac_file" in
3378 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3379 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3380 *) ac_file_in="${ac_file}.in" ;;
3381 esac
3382
3383 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3384
3385 # Remove last slash and all that follows it. Not all systems have dirname.
3386 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3387 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3388 # The file is in a subdirectory.
3389 test ! -d "$ac_dir" && mkdir "$ac_dir"
3390 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3391 # A "../" for each directory in $ac_dir_suffix.
3392 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3393 else
3394 ac_dir_suffix= ac_dots=
3395 fi
3396
3397 case "$ac_given_srcdir" in
3398 .) srcdir=.
3399 if test -z "$ac_dots"; then top_srcdir=.
3400 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3401 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3402 *) # Relative path.
3403 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3404 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3405 esac
3406
3407
3408 echo creating "$ac_file"
3409 rm -f "$ac_file"
3410 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3411 case "$ac_file" in
3412 *Makefile*) ac_comsub="1i\\
3413# $configure_input" ;;
3414 *) ac_comsub= ;;
3415 esac
3416
3417 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3418 sed -e "$ac_comsub
3419s%@configure_input@%$configure_input%g
3420s%@srcdir@%$srcdir%g
3421s%@top_srcdir@%$top_srcdir%g
3422" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3423fi; done
3424rm -f conftest.s*
3425
3426# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3427# NAME is the cpp macro being defined and VALUE is the value it is being given.
3428#
3429# ac_d sets the value in "#define NAME VALUE" lines.
3430ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3431ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3432ac_dC='\3'
3433ac_dD='%g'
3434# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3435ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3436ac_uB='\([ ]\)%\1#\2define\3'
3437ac_uC=' '
3438ac_uD='\4%g'
3439# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3440ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3441ac_eB='$%\1#\2define\3'
3442ac_eC=' '
3443ac_eD='%g'
3444
3445if test "${CONFIG_HEADERS+set}" != set; then
3446EOF
3447cat >> $CONFIG_STATUS <<EOF
3448 CONFIG_HEADERS="config.h"
3449EOF
3450cat >> $CONFIG_STATUS <<\EOF
3451fi
3452for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3453 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3454 case "$ac_file" in
3455 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3456 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3457 *) ac_file_in="${ac_file}.in" ;;
3458 esac
3459
3460 echo creating $ac_file
3461
3462 rm -f conftest.frag conftest.in conftest.out
3463 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3464 cat $ac_file_inputs > conftest.in
3465
3466EOF
3467
3468# Transform confdefs.h into a sed script conftest.vals that substitutes
3469# the proper values into config.h.in to produce config.h. And first:
3470# Protect against being on the right side of a sed subst in config.status.
3471# Protect against being in an unquoted here document in config.status.
3472rm -f conftest.vals
3473cat > conftest.hdr <<\EOF
3474s/[\\&%]/\\&/g
3475s%[\\$`]%\\&%g
3476s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3477s%ac_d%ac_u%gp
3478s%ac_u%ac_e%gp
3479EOF
3480sed -n -f conftest.hdr confdefs.h > conftest.vals
3481rm -f conftest.hdr
3482
3483# This sed command replaces #undef with comments. This is necessary, for
3484# example, in the case of _POSIX_SOURCE, which is predefined and required
3485# on some systems where configure will not decide to define it.
3486cat >> conftest.vals <<\EOF
3487s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3488EOF
3489
3490# Break up conftest.vals because some shells have a limit on
3491# the size of here documents, and old seds have small limits too.
3492
3493rm -f conftest.tail
3494while :
3495do
3496 ac_lines=`grep -c . conftest.vals`
3497 # grep -c gives empty output for an empty file on some AIX systems.
3498 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3499 # Write a limited-size here document to conftest.frag.
3500 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3501 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3502 echo 'CEOF
3503 sed -f conftest.frag conftest.in > conftest.out
3504 rm -f conftest.in
3505 mv conftest.out conftest.in
3506' >> $CONFIG_STATUS
3507 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3508 rm -f conftest.vals
3509 mv conftest.tail conftest.vals
3510done
3511rm -f conftest.vals
3512
3513cat >> $CONFIG_STATUS <<\EOF
3514 rm -f conftest.frag conftest.h
3515 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3516 cat conftest.in >> conftest.h
3517 rm -f conftest.in
3518 if cmp -s $ac_file conftest.h 2>/dev/null; then
3519 echo "$ac_file is unchanged"
3520 rm -f conftest.h
3521 else
3522 # Remove last slash and all that follows it. Not all systems have dirname.
3523 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3524 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3525 # The file is in a subdirectory.
3526 test ! -d "$ac_dir" && mkdir "$ac_dir"
3527 fi
3528 rm -f $ac_file
3529 mv conftest.h $ac_file
3530 fi
3531fi; done
3532
3533EOF
3534cat >> $CONFIG_STATUS <<EOF
3535
3536EOF
3537cat >> $CONFIG_STATUS <<\EOF
3538
3539exit 0
3540EOF
3541chmod +x $CONFIG_STATUS
3542rm -fr confdefs* $ac_clean_files
3543test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3544
3545
3546
3547
3548
Note: See TracBrowser for help on using the repository browser.