source: main/tags/2.31/gsdl/configure@ 25382

Last change on this file since 25382 was 2051, checked in by jrm21, 23 years ago

removed a check for HP-UX - gmalloc which was in here twice.

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