source: trunk/gsdl/configure@ 2204

Last change on this file since 2204 was 2204, checked in by say1, 23 years ago

fixes to corba config

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 102.2 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 export USE_CORBA=1
583else
584 export 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 export MICO_DIR=$enableval
597else
598 export 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
1224#moved CORBA MICO directory test to get version of MICO
1225if test $USE_CORBA = 1; then
1226
1227if test $MICO_DIR = default; then
1228#do something
1229MICO_INC="-I packages/mico/mico/include"
1230else
1231#build the micotest program
1232MICO_INC= ""
1233if test $MICO_DIR != yes; then
1234MICO_INC="-I $MICO_DIR"
1235fi
1236fi
1237
1238#get MICO_VER value
1239sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
1240sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
1241MICO_VER=`./micotest` || MICO_VER=0
1242sh -c "rm micotest"
1243sh -c "rm micotest.o"
1244
1245#do test of MICO_VER
1246if test MICO_VER != 0; then
1247cat >> confdefs.h <<\EOF
1248#define MICO_VER 1
1249EOF
1250
1251
1252fi
1253#end USE_CORBA test
1254fi
1255
1256echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1257echo "configure:1258: checking how to run the C preprocessor" >&5
1258# On Suns, sometimes $CPP names a directory.
1259if test -n "$CPP" && test -d "$CPP"; then
1260 CPP=
1261fi
1262if test -z "$CPP"; then
1263if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1265else
1266 # This must be in double quotes, not single quotes, because CPP may get
1267 # substituted into the Makefile and "${CC-cc}" will confuse make.
1268 CPP="${CC-cc} -E"
1269 # On the NeXT, cc -E runs the code through the compiler's parser,
1270 # not just through cpp.
1271 cat > conftest.$ac_ext <<EOF
1272#line 1273 "configure"
1273#include "confdefs.h"
1274#include <assert.h>
1275Syntax Error
1276EOF
1277ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1278{ (eval echo configure:1279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1279ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1280if test -z "$ac_err"; then
1281 :
1282else
1283 echo "$ac_err" >&5
1284 echo "configure: failed program was:" >&5
1285 cat conftest.$ac_ext >&5
1286 rm -rf conftest*
1287 CPP="${CC-cc} -E -traditional-cpp"
1288 cat > conftest.$ac_ext <<EOF
1289#line 1290 "configure"
1290#include "confdefs.h"
1291#include <assert.h>
1292Syntax Error
1293EOF
1294ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1295{ (eval echo configure:1296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1296ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1297if test -z "$ac_err"; then
1298 :
1299else
1300 echo "$ac_err" >&5
1301 echo "configure: failed program was:" >&5
1302 cat conftest.$ac_ext >&5
1303 rm -rf conftest*
1304 CPP="${CC-cc} -nologo -E"
1305 cat > conftest.$ac_ext <<EOF
1306#line 1307 "configure"
1307#include "confdefs.h"
1308#include <assert.h>
1309Syntax Error
1310EOF
1311ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1312{ (eval echo configure:1313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1313ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1314if test -z "$ac_err"; then
1315 :
1316else
1317 echo "$ac_err" >&5
1318 echo "configure: failed program was:" >&5
1319 cat conftest.$ac_ext >&5
1320 rm -rf conftest*
1321 CPP=/lib/cpp
1322fi
1323rm -f conftest*
1324fi
1325rm -f conftest*
1326fi
1327rm -f conftest*
1328 ac_cv_prog_CPP="$CPP"
1329fi
1330 CPP="$ac_cv_prog_CPP"
1331else
1332 ac_cv_prog_CPP="$CPP"
1333fi
1334echo "$ac_t""$CPP" 1>&6
1335
1336echo $ac_n "checking for AIX""... $ac_c" 1>&6
1337echo "configure:1338: checking for AIX" >&5
1338cat > conftest.$ac_ext <<EOF
1339#line 1340 "configure"
1340#include "confdefs.h"
1341#ifdef _AIX
1342 yes
1343#endif
1344
1345EOF
1346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1347 egrep "yes" >/dev/null 2>&1; then
1348 rm -rf conftest*
1349 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1350#define _ALL_SOURCE 1
1351EOF
1352
1353else
1354 rm -rf conftest*
1355 echo "$ac_t""no" 1>&6
1356fi
1357rm -f conftest*
1358
1359
1360echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1361echo "configure:1362: checking for POSIXized ISC" >&5
1362if test -d /etc/conf/kconfig.d &&
1363 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1364then
1365 echo "$ac_t""yes" 1>&6
1366 ISC=yes # If later tests want to check for ISC.
1367 cat >> confdefs.h <<\EOF
1368#define _POSIX_SOURCE 1
1369EOF
1370
1371 if test "$GCC" = yes; then
1372 CC="$CC -posix"
1373 else
1374 CC="$CC -Xp"
1375 fi
1376else
1377 echo "$ac_t""no" 1>&6
1378 ISC=
1379fi
1380
1381ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1382echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1383echo "configure:1384: checking for minix/config.h" >&5
1384if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1385 echo $ac_n "(cached) $ac_c" 1>&6
1386else
1387 cat > conftest.$ac_ext <<EOF
1388#line 1389 "configure"
1389#include "confdefs.h"
1390#include <minix/config.h>
1391EOF
1392ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1393{ (eval echo configure:1394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1394ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1395if test -z "$ac_err"; then
1396 rm -rf conftest*
1397 eval "ac_cv_header_$ac_safe=yes"
1398else
1399 echo "$ac_err" >&5
1400 echo "configure: failed program was:" >&5
1401 cat conftest.$ac_ext >&5
1402 rm -rf conftest*
1403 eval "ac_cv_header_$ac_safe=no"
1404fi
1405rm -f conftest*
1406fi
1407if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1408 echo "$ac_t""yes" 1>&6
1409 MINIX=yes
1410else
1411 echo "$ac_t""no" 1>&6
1412MINIX=
1413fi
1414
1415if test "$MINIX" = yes; then
1416 cat >> confdefs.h <<\EOF
1417#define _POSIX_SOURCE 1
1418EOF
1419
1420 cat >> confdefs.h <<\EOF
1421#define _POSIX_1_SOURCE 2
1422EOF
1423
1424 cat >> confdefs.h <<\EOF
1425#define _MINIX 1
1426EOF
1427
1428fi
1429
1430echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1431echo "configure:1432: checking for ${CC-cc} option to accept ANSI C" >&5
1432if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
1433 echo $ac_n "(cached) $ac_c" 1>&6
1434else
1435 ac_cv_prog_cc_stdc=no
1436ac_save_CFLAGS="$CFLAGS"
1437# Don't try gcc -ansi; that turns off useful extensions and
1438# breaks some systems' header files.
1439# AIX -qlanglvl=ansi
1440# Ultrix and OSF/1 -std1
1441# HP-UX -Aa -D_HPUX_SOURCE
1442# SVR4 -Xc
1443for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
1444do
1445 CFLAGS="$ac_save_CFLAGS $ac_arg"
1446 cat > conftest.$ac_ext <<EOF
1447#line 1448 "configure"
1448#include "confdefs.h"
1449#if !defined(__STDC__) || __STDC__ != 1
1450choke me
1451#endif
1452
1453int main() {
1454int test (int i, double x);
1455struct s1 {int (*f) (int a);};
1456struct s2 {int (*f) (double a);};
1457; return 0; }
1458EOF
1459if { (eval echo configure:1460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1460 rm -rf conftest*
1461 ac_cv_prog_cc_stdc="$ac_arg"; break
1462else
1463 echo "configure: failed program was:" >&5
1464 cat conftest.$ac_ext >&5
1465fi
1466rm -f conftest*
1467done
1468CFLAGS="$ac_save_CFLAGS"
1469
1470fi
1471
1472echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
1473case "x$ac_cv_prog_cc_stdc" in
1474 x|xno) ;;
1475 *) CC="$CC $ac_cv_prog_cc_stdc" ;;
1476esac
1477
1478
1479echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
1480echo "configure:1481: checking for function prototypes" >&5
1481if test "$ac_cv_prog_cc_stdc" != no; then
1482 echo "$ac_t""yes" 1>&6
1483 cat >> confdefs.h <<\EOF
1484#define PROTOTYPES 1
1485EOF
1486
1487 U= ANSI2KNR=
1488else
1489 echo "$ac_t""no" 1>&6
1490 U=_ ANSI2KNR=ansi2knr
1491fi
1492
1493echo $ac_n "checking for working const""... $ac_c" 1>&6
1494echo "configure:1495: checking for working const" >&5
1495if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1497else
1498 cat > conftest.$ac_ext <<EOF
1499#line 1500 "configure"
1500#include "confdefs.h"
1501
1502int main() {
1503
1504/* Ultrix mips cc rejects this. */
1505typedef int charset[2]; const charset x;
1506/* SunOS 4.1.1 cc rejects this. */
1507char const *const *ccp;
1508char **p;
1509/* NEC SVR4.0.2 mips cc rejects this. */
1510struct point {int x, y;};
1511static struct point const zero = {0,0};
1512/* AIX XL C 1.02.0.0 rejects this.
1513 It does not let you subtract one const X* pointer from another in an arm
1514 of an if-expression whose if-part is not a constant expression */
1515const char *g = "string";
1516ccp = &g + (g ? g-g : 0);
1517/* HPUX 7.0 cc rejects these. */
1518++ccp;
1519p = (char**) ccp;
1520ccp = (char const *const *) p;
1521{ /* SCO 3.2v4 cc rejects this. */
1522 char *t;
1523 char const *s = 0 ? (char *) 0 : (char const *) 0;
1524
1525 *t++ = 0;
1526}
1527{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1528 int x[] = {25, 17};
1529 const int *foo = &x[0];
1530 ++foo;
1531}
1532{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1533 typedef const int *iptr;
1534 iptr p = 0;
1535 ++p;
1536}
1537{ /* AIX XL C 1.02.0.0 rejects this saying
1538 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1539 struct s { int j; const int *ap[3]; };
1540 struct s *b; b->j = 5;
1541}
1542{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1543 const int foo = 10;
1544}
1545
1546; return 0; }
1547EOF
1548if { (eval echo configure:1549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1549 rm -rf conftest*
1550 ac_cv_c_const=yes
1551else
1552 echo "configure: failed program was:" >&5
1553 cat conftest.$ac_ext >&5
1554 rm -rf conftest*
1555 ac_cv_c_const=no
1556fi
1557rm -f conftest*
1558fi
1559
1560echo "$ac_t""$ac_cv_c_const" 1>&6
1561if test $ac_cv_c_const = no; then
1562 cat >> confdefs.h <<\EOF
1563#define const
1564EOF
1565
1566fi
1567
1568echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1569echo "configure:1570: checking for ANSI C header files" >&5
1570if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1572else
1573 cat > conftest.$ac_ext <<EOF
1574#line 1575 "configure"
1575#include "confdefs.h"
1576#include <stdlib.h>
1577#include <stdarg.h>
1578#include <string.h>
1579#include <float.h>
1580EOF
1581ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1582{ (eval echo configure:1583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1583ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1584if test -z "$ac_err"; then
1585 rm -rf conftest*
1586 ac_cv_header_stdc=yes
1587else
1588 echo "$ac_err" >&5
1589 echo "configure: failed program was:" >&5
1590 cat conftest.$ac_ext >&5
1591 rm -rf conftest*
1592 ac_cv_header_stdc=no
1593fi
1594rm -f conftest*
1595
1596if test $ac_cv_header_stdc = yes; then
1597 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1598cat > conftest.$ac_ext <<EOF
1599#line 1600 "configure"
1600#include "confdefs.h"
1601#include <string.h>
1602EOF
1603if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1604 egrep "memchr" >/dev/null 2>&1; then
1605 :
1606else
1607 rm -rf conftest*
1608 ac_cv_header_stdc=no
1609fi
1610rm -f conftest*
1611
1612fi
1613
1614if test $ac_cv_header_stdc = yes; then
1615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1616cat > conftest.$ac_ext <<EOF
1617#line 1618 "configure"
1618#include "confdefs.h"
1619#include <stdlib.h>
1620EOF
1621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1622 egrep "free" >/dev/null 2>&1; then
1623 :
1624else
1625 rm -rf conftest*
1626 ac_cv_header_stdc=no
1627fi
1628rm -f conftest*
1629
1630fi
1631
1632if test $ac_cv_header_stdc = yes; then
1633 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1634if test "$cross_compiling" = yes; then
1635 :
1636else
1637 cat > conftest.$ac_ext <<EOF
1638#line 1639 "configure"
1639#include "confdefs.h"
1640#include <ctype.h>
1641#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1642#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1643#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1644int main () { int i; for (i = 0; i < 256; i++)
1645if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1646exit (0); }
1647
1648EOF
1649if { (eval echo configure:1650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1650then
1651 :
1652else
1653 echo "configure: failed program was:" >&5
1654 cat conftest.$ac_ext >&5
1655 rm -fr conftest*
1656 ac_cv_header_stdc=no
1657fi
1658rm -fr conftest*
1659fi
1660
1661fi
1662fi
1663
1664echo "$ac_t""$ac_cv_header_stdc" 1>&6
1665if test $ac_cv_header_stdc = yes; then
1666 cat >> confdefs.h <<\EOF
1667#define STDC_HEADERS 1
1668EOF
1669
1670fi
1671
1672echo $ac_n "checking for off_t""... $ac_c" 1>&6
1673echo "configure:1674: checking for off_t" >&5
1674if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1676else
1677 cat > conftest.$ac_ext <<EOF
1678#line 1679 "configure"
1679#include "confdefs.h"
1680#include <sys/types.h>
1681#if STDC_HEADERS
1682#include <stdlib.h>
1683#include <stddef.h>
1684#endif
1685EOF
1686if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1687 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1688 rm -rf conftest*
1689 ac_cv_type_off_t=yes
1690else
1691 rm -rf conftest*
1692 ac_cv_type_off_t=no
1693fi
1694rm -f conftest*
1695
1696fi
1697echo "$ac_t""$ac_cv_type_off_t" 1>&6
1698if test $ac_cv_type_off_t = no; then
1699 cat >> confdefs.h <<\EOF
1700#define off_t long
1701EOF
1702
1703fi
1704
1705echo $ac_n "checking for size_t""... $ac_c" 1>&6
1706echo "configure:1707: checking for size_t" >&5
1707if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1709else
1710 cat > conftest.$ac_ext <<EOF
1711#line 1712 "configure"
1712#include "confdefs.h"
1713#include <sys/types.h>
1714#if STDC_HEADERS
1715#include <stdlib.h>
1716#include <stddef.h>
1717#endif
1718EOF
1719if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1720 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1721 rm -rf conftest*
1722 ac_cv_type_size_t=yes
1723else
1724 rm -rf conftest*
1725 ac_cv_type_size_t=no
1726fi
1727rm -f conftest*
1728
1729fi
1730echo "$ac_t""$ac_cv_type_size_t" 1>&6
1731if test $ac_cv_type_size_t = no; then
1732 cat >> confdefs.h <<\EOF
1733#define size_t unsigned
1734EOF
1735
1736fi
1737
1738echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1739echo "configure:1740: checking whether time.h and sys/time.h may both be included" >&5
1740if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1741 echo $ac_n "(cached) $ac_c" 1>&6
1742else
1743 cat > conftest.$ac_ext <<EOF
1744#line 1745 "configure"
1745#include "confdefs.h"
1746#include <sys/types.h>
1747#include <sys/time.h>
1748#include <time.h>
1749int main() {
1750struct tm *tp;
1751; return 0; }
1752EOF
1753if { (eval echo configure:1754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1754 rm -rf conftest*
1755 ac_cv_header_time=yes
1756else
1757 echo "configure: failed program was:" >&5
1758 cat conftest.$ac_ext >&5
1759 rm -rf conftest*
1760 ac_cv_header_time=no
1761fi
1762rm -f conftest*
1763fi
1764
1765echo "$ac_t""$ac_cv_header_time" 1>&6
1766if test $ac_cv_header_time = yes; then
1767 cat >> confdefs.h <<\EOF
1768#define TIME_WITH_SYS_TIME 1
1769EOF
1770
1771fi
1772
1773echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1774echo "configure:1775: checking whether struct tm is in sys/time.h or time.h" >&5
1775if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1777else
1778 cat > conftest.$ac_ext <<EOF
1779#line 1780 "configure"
1780#include "confdefs.h"
1781#include <sys/types.h>
1782#include <time.h>
1783int main() {
1784struct tm *tp; tp->tm_sec;
1785; return 0; }
1786EOF
1787if { (eval echo configure:1788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1788 rm -rf conftest*
1789 ac_cv_struct_tm=time.h
1790else
1791 echo "configure: failed program was:" >&5
1792 cat conftest.$ac_ext >&5
1793 rm -rf conftest*
1794 ac_cv_struct_tm=sys/time.h
1795fi
1796rm -f conftest*
1797fi
1798
1799echo "$ac_t""$ac_cv_struct_tm" 1>&6
1800if test $ac_cv_struct_tm = sys/time.h; then
1801 cat >> confdefs.h <<\EOF
1802#define TM_IN_SYS_TIME 1
1803EOF
1804
1805fi
1806
1807
1808if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
1809cat > conftest.$ac_ext <<EOF
1810#line 1811 "configure"
1811#include "confdefs.h"
1812#include <stdio.h>
1813
1814int main() {
1815 FILE *rubbish = popen("yes", "r");
1816; return 0; }
1817EOF
1818if { (eval echo configure:1819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1819 :
1820else
1821 echo "configure: failed program was:" >&5
1822 cat conftest.$ac_ext >&5
1823 rm -rf conftest*
1824 CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
1825fi
1826rm -f conftest*
1827fi
1828
1829
1830echo $ac_n "checking for main in -lg""... $ac_c" 1>&6
1831echo "configure:1832: checking for main in -lg" >&5
1832ac_lib_var=`echo g'_'main | sed 'y%./+-%__p_%'`
1833if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1834 echo $ac_n "(cached) $ac_c" 1>&6
1835else
1836 ac_save_LIBS="$LIBS"
1837LIBS="-lg $LIBS"
1838cat > conftest.$ac_ext <<EOF
1839#line 1840 "configure"
1840#include "confdefs.h"
1841
1842int main() {
1843main()
1844; return 0; }
1845EOF
1846if { (eval echo configure:1847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1847 rm -rf conftest*
1848 eval "ac_cv_lib_$ac_lib_var=yes"
1849else
1850 echo "configure: failed program was:" >&5
1851 cat conftest.$ac_ext >&5
1852 rm -rf conftest*
1853 eval "ac_cv_lib_$ac_lib_var=no"
1854fi
1855rm -f conftest*
1856LIBS="$ac_save_LIBS"
1857
1858fi
1859if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1860 echo "$ac_t""yes" 1>&6
1861 ac_tr_lib=HAVE_LIB`echo g | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1862 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1863 cat >> confdefs.h <<EOF
1864#define $ac_tr_lib 1
1865EOF
1866
1867 LIBS="-lg $LIBS"
1868
1869else
1870 echo "$ac_t""no" 1>&6
1871fi
1872
1873echo $ac_n "checking for main in -lgdbm""... $ac_c" 1>&6
1874echo "configure:1875: checking for main in -lgdbm" >&5
1875ac_lib_var=`echo gdbm'_'main | sed 'y%./+-%__p_%'`
1876if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1878else
1879 ac_save_LIBS="$LIBS"
1880LIBS="-lgdbm $LIBS"
1881cat > conftest.$ac_ext <<EOF
1882#line 1883 "configure"
1883#include "confdefs.h"
1884
1885int main() {
1886main()
1887; return 0; }
1888EOF
1889if { (eval echo configure:1890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1890 rm -rf conftest*
1891 eval "ac_cv_lib_$ac_lib_var=yes"
1892else
1893 echo "configure: failed program was:" >&5
1894 cat conftest.$ac_ext >&5
1895 rm -rf conftest*
1896 eval "ac_cv_lib_$ac_lib_var=no"
1897fi
1898rm -f conftest*
1899LIBS="$ac_save_LIBS"
1900
1901fi
1902if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1903 echo "$ac_t""yes" 1>&6
1904 ac_tr_lib=HAVE_LIB`echo gdbm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1905 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1906 cat >> confdefs.h <<EOF
1907#define $ac_tr_lib 1
1908EOF
1909
1910 LIBS="-lgdbm $LIBS"
1911
1912else
1913 echo "$ac_t""no" 1>&6
1914fi
1915
1916echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1917echo "configure:1918: checking for main in -lm" >&5
1918ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
1919if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1920 echo $ac_n "(cached) $ac_c" 1>&6
1921else
1922 ac_save_LIBS="$LIBS"
1923LIBS="-lm $LIBS"
1924cat > conftest.$ac_ext <<EOF
1925#line 1926 "configure"
1926#include "confdefs.h"
1927
1928int main() {
1929main()
1930; return 0; }
1931EOF
1932if { (eval echo configure:1933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1933 rm -rf conftest*
1934 eval "ac_cv_lib_$ac_lib_var=yes"
1935else
1936 echo "configure: failed program was:" >&5
1937 cat conftest.$ac_ext >&5
1938 rm -rf conftest*
1939 eval "ac_cv_lib_$ac_lib_var=no"
1940fi
1941rm -f conftest*
1942LIBS="$ac_save_LIBS"
1943
1944fi
1945if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1946 echo "$ac_t""yes" 1>&6
1947 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1948 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1949 cat >> confdefs.h <<EOF
1950#define $ac_tr_lib 1
1951EOF
1952
1953 LIBS="-lm $LIBS"
1954
1955else
1956 echo "$ac_t""no" 1>&6
1957fi
1958
1959echo $ac_n "checking for main in -lstdc++""... $ac_c" 1>&6
1960echo "configure:1961: checking for main in -lstdc++" >&5
1961ac_lib_var=`echo stdc++'_'main | sed 'y%./+-%__p_%'`
1962if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1963 echo $ac_n "(cached) $ac_c" 1>&6
1964else
1965 ac_save_LIBS="$LIBS"
1966LIBS="-lstdc++ $LIBS"
1967cat > conftest.$ac_ext <<EOF
1968#line 1969 "configure"
1969#include "confdefs.h"
1970
1971int main() {
1972main()
1973; return 0; }
1974EOF
1975if { (eval echo configure:1976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1976 rm -rf conftest*
1977 eval "ac_cv_lib_$ac_lib_var=yes"
1978else
1979 echo "configure: failed program was:" >&5
1980 cat conftest.$ac_ext >&5
1981 rm -rf conftest*
1982 eval "ac_cv_lib_$ac_lib_var=no"
1983fi
1984rm -f conftest*
1985LIBS="$ac_save_LIBS"
1986
1987fi
1988if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1989 echo "$ac_t""yes" 1>&6
1990 ac_tr_lib=HAVE_LIB`echo stdc++ | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1991 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1992 cat >> confdefs.h <<EOF
1993#define $ac_tr_lib 1
1994EOF
1995
1996 LIBS="-lstdc++ $LIBS"
1997
1998else
1999 echo "$ac_t""no" 1>&6
2000fi
2001
2002echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
2003echo "configure:2004: checking for main in -lcrypt" >&5
2004ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
2005if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2006 echo $ac_n "(cached) $ac_c" 1>&6
2007else
2008 ac_save_LIBS="$LIBS"
2009LIBS="-lcrypt $LIBS"
2010cat > conftest.$ac_ext <<EOF
2011#line 2012 "configure"
2012#include "confdefs.h"
2013
2014int main() {
2015main()
2016; return 0; }
2017EOF
2018if { (eval echo configure:2019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2019 rm -rf conftest*
2020 eval "ac_cv_lib_$ac_lib_var=yes"
2021else
2022 echo "configure: failed program was:" >&5
2023 cat conftest.$ac_ext >&5
2024 rm -rf conftest*
2025 eval "ac_cv_lib_$ac_lib_var=no"
2026fi
2027rm -f conftest*
2028LIBS="$ac_save_LIBS"
2029
2030fi
2031if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2032 echo "$ac_t""yes" 1>&6
2033 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2034 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2035 cat >> confdefs.h <<EOF
2036#define $ac_tr_lib 1
2037EOF
2038
2039 LIBS="-lcrypt $LIBS"
2040
2041else
2042 echo "$ac_t""no" 1>&6
2043fi
2044
2045
2046
2047ac_header_dirent=no
2048for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2049do
2050ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2051echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2052echo "configure:2053: checking for $ac_hdr that defines DIR" >&5
2053if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2054 echo $ac_n "(cached) $ac_c" 1>&6
2055else
2056 cat > conftest.$ac_ext <<EOF
2057#line 2058 "configure"
2058#include "confdefs.h"
2059#include <sys/types.h>
2060#include <$ac_hdr>
2061int main() {
2062DIR *dirp = 0;
2063; return 0; }
2064EOF
2065if { (eval echo configure:2066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2066 rm -rf conftest*
2067 eval "ac_cv_header_dirent_$ac_safe=yes"
2068else
2069 echo "configure: failed program was:" >&5
2070 cat conftest.$ac_ext >&5
2071 rm -rf conftest*
2072 eval "ac_cv_header_dirent_$ac_safe=no"
2073fi
2074rm -f conftest*
2075fi
2076if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2077 echo "$ac_t""yes" 1>&6
2078 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2079 cat >> confdefs.h <<EOF
2080#define $ac_tr_hdr 1
2081EOF
2082 ac_header_dirent=$ac_hdr; break
2083else
2084 echo "$ac_t""no" 1>&6
2085fi
2086done
2087# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2088if test $ac_header_dirent = dirent.h; then
2089echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2090echo "configure:2091: checking for opendir in -ldir" >&5
2091ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2092if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2093 echo $ac_n "(cached) $ac_c" 1>&6
2094else
2095 ac_save_LIBS="$LIBS"
2096LIBS="-ldir $LIBS"
2097cat > conftest.$ac_ext <<EOF
2098#line 2099 "configure"
2099#include "confdefs.h"
2100/* Override any gcc2 internal prototype to avoid an error. */
2101/* We use char because int might match the return type of a gcc2
2102 builtin and then its argument prototype would still apply. */
2103char opendir();
2104
2105int main() {
2106opendir()
2107; return 0; }
2108EOF
2109if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2110 rm -rf conftest*
2111 eval "ac_cv_lib_$ac_lib_var=yes"
2112else
2113 echo "configure: failed program was:" >&5
2114 cat conftest.$ac_ext >&5
2115 rm -rf conftest*
2116 eval "ac_cv_lib_$ac_lib_var=no"
2117fi
2118rm -f conftest*
2119LIBS="$ac_save_LIBS"
2120
2121fi
2122if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2123 echo "$ac_t""yes" 1>&6
2124 LIBS="$LIBS -ldir"
2125else
2126 echo "$ac_t""no" 1>&6
2127fi
2128
2129else
2130echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2131echo "configure:2132: checking for opendir in -lx" >&5
2132ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2133if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2134 echo $ac_n "(cached) $ac_c" 1>&6
2135else
2136 ac_save_LIBS="$LIBS"
2137LIBS="-lx $LIBS"
2138cat > conftest.$ac_ext <<EOF
2139#line 2140 "configure"
2140#include "confdefs.h"
2141/* Override any gcc2 internal prototype to avoid an error. */
2142/* We use char because int might match the return type of a gcc2
2143 builtin and then its argument prototype would still apply. */
2144char opendir();
2145
2146int main() {
2147opendir()
2148; return 0; }
2149EOF
2150if { (eval echo configure:2151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2151 rm -rf conftest*
2152 eval "ac_cv_lib_$ac_lib_var=yes"
2153else
2154 echo "configure: failed program was:" >&5
2155 cat conftest.$ac_ext >&5
2156 rm -rf conftest*
2157 eval "ac_cv_lib_$ac_lib_var=no"
2158fi
2159rm -f conftest*
2160LIBS="$ac_save_LIBS"
2161
2162fi
2163if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2164 echo "$ac_t""yes" 1>&6
2165 LIBS="$LIBS -lx"
2166else
2167 echo "$ac_t""no" 1>&6
2168fi
2169
2170fi
2171
2172echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2173echo "configure:2174: checking for ANSI C header files" >&5
2174if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2175 echo $ac_n "(cached) $ac_c" 1>&6
2176else
2177 cat > conftest.$ac_ext <<EOF
2178#line 2179 "configure"
2179#include "confdefs.h"
2180#include <stdlib.h>
2181#include <stdarg.h>
2182#include <string.h>
2183#include <float.h>
2184EOF
2185ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2186{ (eval echo configure:2187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2187ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2188if test -z "$ac_err"; then
2189 rm -rf conftest*
2190 ac_cv_header_stdc=yes
2191else
2192 echo "$ac_err" >&5
2193 echo "configure: failed program was:" >&5
2194 cat conftest.$ac_ext >&5
2195 rm -rf conftest*
2196 ac_cv_header_stdc=no
2197fi
2198rm -f conftest*
2199
2200if test $ac_cv_header_stdc = yes; then
2201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2202cat > conftest.$ac_ext <<EOF
2203#line 2204 "configure"
2204#include "confdefs.h"
2205#include <string.h>
2206EOF
2207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2208 egrep "memchr" >/dev/null 2>&1; then
2209 :
2210else
2211 rm -rf conftest*
2212 ac_cv_header_stdc=no
2213fi
2214rm -f conftest*
2215
2216fi
2217
2218if test $ac_cv_header_stdc = yes; then
2219 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2220cat > conftest.$ac_ext <<EOF
2221#line 2222 "configure"
2222#include "confdefs.h"
2223#include <stdlib.h>
2224EOF
2225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2226 egrep "free" >/dev/null 2>&1; then
2227 :
2228else
2229 rm -rf conftest*
2230 ac_cv_header_stdc=no
2231fi
2232rm -f conftest*
2233
2234fi
2235
2236if test $ac_cv_header_stdc = yes; then
2237 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2238if test "$cross_compiling" = yes; then
2239 :
2240else
2241 cat > conftest.$ac_ext <<EOF
2242#line 2243 "configure"
2243#include "confdefs.h"
2244#include <ctype.h>
2245#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2246#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2247#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2248int main () { int i; for (i = 0; i < 256; i++)
2249if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2250exit (0); }
2251
2252EOF
2253if { (eval echo configure:2254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2254then
2255 :
2256else
2257 echo "configure: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2259 rm -fr conftest*
2260 ac_cv_header_stdc=no
2261fi
2262rm -fr conftest*
2263fi
2264
2265fi
2266fi
2267
2268echo "$ac_t""$ac_cv_header_stdc" 1>&6
2269if test $ac_cv_header_stdc = yes; then
2270 cat >> confdefs.h <<\EOF
2271#define STDC_HEADERS 1
2272EOF
2273
2274fi
2275
2276for ac_hdr in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
2277do
2278ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2279echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2280echo "configure:2281: checking for $ac_hdr" >&5
2281if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2283else
2284 cat > conftest.$ac_ext <<EOF
2285#line 2286 "configure"
2286#include "confdefs.h"
2287#include <$ac_hdr>
2288EOF
2289ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2290{ (eval echo configure:2291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2291ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2292if test -z "$ac_err"; then
2293 rm -rf conftest*
2294 eval "ac_cv_header_$ac_safe=yes"
2295else
2296 echo "$ac_err" >&5
2297 echo "configure: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2299 rm -rf conftest*
2300 eval "ac_cv_header_$ac_safe=no"
2301fi
2302rm -f conftest*
2303fi
2304if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2305 echo "$ac_t""yes" 1>&6
2306 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2307 cat >> confdefs.h <<EOF
2308#define $ac_tr_hdr 1
2309EOF
2310
2311else
2312 echo "$ac_t""no" 1>&6
2313fi
2314done
2315
2316cat > conftest.$ac_ext <<EOF
2317#line 2318 "configure"
2318#include "confdefs.h"
2319#include <stdio.h>
2320EOF
2321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2322 egrep "fread" >/dev/null 2>&1; then
2323 rm -rf conftest*
2324 cat >> confdefs.h <<\EOF
2325#define HAVE_FREAD_DECL 1
2326EOF
2327
2328fi
2329rm -f conftest*
2330
2331cat > conftest.$ac_ext <<EOF
2332#line 2333 "configure"
2333#include "confdefs.h"
2334#include <stdio.h>
2335EOF
2336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2337 egrep "fgetc" >/dev/null 2>&1; then
2338 rm -rf conftest*
2339 cat >> confdefs.h <<\EOF
2340#define HAVE_FGETC_DECL 1
2341EOF
2342
2343fi
2344rm -f conftest*
2345
2346cat > conftest.$ac_ext <<EOF
2347#line 2348 "configure"
2348#include "confdefs.h"
2349#include <sys/procfs.h>
2350EOF
2351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2352 egrep "pr_brksize" >/dev/null 2>&1; then
2353 rm -rf conftest*
2354 cat >> confdefs.h <<\EOF
2355#define HAVE_PR_BRKSIZE 1
2356EOF
2357
2358fi
2359rm -f conftest*
2360
2361
2362# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2363# for constant arguments. Useless!
2364echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2365echo "configure:2366: checking for working alloca.h" >&5
2366if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2367 echo $ac_n "(cached) $ac_c" 1>&6
2368else
2369 cat > conftest.$ac_ext <<EOF
2370#line 2371 "configure"
2371#include "confdefs.h"
2372#include <alloca.h>
2373int main() {
2374char *p = alloca(2 * sizeof(int));
2375; return 0; }
2376EOF
2377if { (eval echo configure:2378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2378 rm -rf conftest*
2379 ac_cv_header_alloca_h=yes
2380else
2381 echo "configure: failed program was:" >&5
2382 cat conftest.$ac_ext >&5
2383 rm -rf conftest*
2384 ac_cv_header_alloca_h=no
2385fi
2386rm -f conftest*
2387fi
2388
2389echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2390if test $ac_cv_header_alloca_h = yes; then
2391 cat >> confdefs.h <<\EOF
2392#define HAVE_ALLOCA_H 1
2393EOF
2394
2395fi
2396
2397echo $ac_n "checking for alloca""... $ac_c" 1>&6
2398echo "configure:2399: checking for alloca" >&5
2399if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2401else
2402 cat > conftest.$ac_ext <<EOF
2403#line 2404 "configure"
2404#include "confdefs.h"
2405
2406#ifdef __GNUC__
2407# define alloca __builtin_alloca
2408#else
2409# ifdef _MSC_VER
2410# include <malloc.h>
2411# define alloca _alloca
2412# else
2413# if HAVE_ALLOCA_H
2414# include <alloca.h>
2415# else
2416# ifdef _AIX
2417 #pragma alloca
2418# else
2419# ifndef alloca /* predefined by HP cc +Olibcalls */
2420char *alloca ();
2421# endif
2422# endif
2423# endif
2424# endif
2425#endif
2426
2427int main() {
2428char *p = (char *) alloca(1);
2429; return 0; }
2430EOF
2431if { (eval echo configure:2432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2432 rm -rf conftest*
2433 ac_cv_func_alloca_works=yes
2434else
2435 echo "configure: failed program was:" >&5
2436 cat conftest.$ac_ext >&5
2437 rm -rf conftest*
2438 ac_cv_func_alloca_works=no
2439fi
2440rm -f conftest*
2441fi
2442
2443echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2444if test $ac_cv_func_alloca_works = yes; then
2445 cat >> confdefs.h <<\EOF
2446#define HAVE_ALLOCA 1
2447EOF
2448
2449fi
2450
2451if test $ac_cv_func_alloca_works = no; then
2452 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2453 # that cause trouble. Some versions do not even contain alloca or
2454 # contain a buggy version. If you still want to use their alloca,
2455 # use ar to extract alloca.o from them instead of compiling alloca.c.
2456 ALLOCA=alloca.${ac_objext}
2457 cat >> confdefs.h <<\EOF
2458#define C_ALLOCA 1
2459EOF
2460
2461
2462echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2463echo "configure:2464: checking whether alloca needs Cray hooks" >&5
2464if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2466else
2467 cat > conftest.$ac_ext <<EOF
2468#line 2469 "configure"
2469#include "confdefs.h"
2470#if defined(CRAY) && ! defined(CRAY2)
2471webecray
2472#else
2473wenotbecray
2474#endif
2475
2476EOF
2477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2478 egrep "webecray" >/dev/null 2>&1; then
2479 rm -rf conftest*
2480 ac_cv_os_cray=yes
2481else
2482 rm -rf conftest*
2483 ac_cv_os_cray=no
2484fi
2485rm -f conftest*
2486
2487fi
2488
2489echo "$ac_t""$ac_cv_os_cray" 1>&6
2490if test $ac_cv_os_cray = yes; then
2491for ac_func in _getb67 GETB67 getb67; do
2492 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2493echo "configure:2494: checking for $ac_func" >&5
2494if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2495 echo $ac_n "(cached) $ac_c" 1>&6
2496else
2497 cat > conftest.$ac_ext <<EOF
2498#line 2499 "configure"
2499#include "confdefs.h"
2500/* System header to define __stub macros and hopefully few prototypes,
2501 which can conflict with char $ac_func(); below. */
2502#include <assert.h>
2503/* Override any gcc2 internal prototype to avoid an error. */
2504/* We use char because int might match the return type of a gcc2
2505 builtin and then its argument prototype would still apply. */
2506char $ac_func();
2507
2508int main() {
2509
2510/* The GNU C library defines this for functions which it implements
2511 to always fail with ENOSYS. Some functions are actually named
2512 something starting with __ and the normal name is an alias. */
2513#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2514choke me
2515#else
2516$ac_func();
2517#endif
2518
2519; return 0; }
2520EOF
2521if { (eval echo configure:2522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2522 rm -rf conftest*
2523 eval "ac_cv_func_$ac_func=yes"
2524else
2525 echo "configure: failed program was:" >&5
2526 cat conftest.$ac_ext >&5
2527 rm -rf conftest*
2528 eval "ac_cv_func_$ac_func=no"
2529fi
2530rm -f conftest*
2531fi
2532
2533if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2534 echo "$ac_t""yes" 1>&6
2535 cat >> confdefs.h <<EOF
2536#define CRAY_STACKSEG_END $ac_func
2537EOF
2538
2539 break
2540else
2541 echo "$ac_t""no" 1>&6
2542fi
2543
2544done
2545fi
2546
2547echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2548echo "configure:2549: checking stack direction for C alloca" >&5
2549if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2551else
2552 if test "$cross_compiling" = yes; then
2553 ac_cv_c_stack_direction=0
2554else
2555 cat > conftest.$ac_ext <<EOF
2556#line 2557 "configure"
2557#include "confdefs.h"
2558find_stack_direction ()
2559{
2560 static char *addr = 0;
2561 auto char dummy;
2562 if (addr == 0)
2563 {
2564 addr = &dummy;
2565 return find_stack_direction ();
2566 }
2567 else
2568 return (&dummy > addr) ? 1 : -1;
2569}
2570main ()
2571{
2572 exit (find_stack_direction() < 0);
2573}
2574EOF
2575if { (eval echo configure:2576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2576then
2577 ac_cv_c_stack_direction=1
2578else
2579 echo "configure: failed program was:" >&5
2580 cat conftest.$ac_ext >&5
2581 rm -fr conftest*
2582 ac_cv_c_stack_direction=-1
2583fi
2584rm -fr conftest*
2585fi
2586
2587fi
2588
2589echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2590cat >> confdefs.h <<EOF
2591#define STACK_DIRECTION $ac_cv_c_stack_direction
2592EOF
2593
2594fi
2595
2596if test $ac_cv_prog_gcc = yes; then
2597 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2598echo "configure:2599: checking whether ${CC-cc} needs -traditional" >&5
2599if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2600 echo $ac_n "(cached) $ac_c" 1>&6
2601else
2602 ac_pattern="Autoconf.*'x'"
2603 cat > conftest.$ac_ext <<EOF
2604#line 2605 "configure"
2605#include "confdefs.h"
2606#include <sgtty.h>
2607Autoconf TIOCGETP
2608EOF
2609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2610 egrep "$ac_pattern" >/dev/null 2>&1; then
2611 rm -rf conftest*
2612 ac_cv_prog_gcc_traditional=yes
2613else
2614 rm -rf conftest*
2615 ac_cv_prog_gcc_traditional=no
2616fi
2617rm -f conftest*
2618
2619
2620 if test $ac_cv_prog_gcc_traditional = no; then
2621 cat > conftest.$ac_ext <<EOF
2622#line 2623 "configure"
2623#include "confdefs.h"
2624#include <termio.h>
2625Autoconf TCGETA
2626EOF
2627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2628 egrep "$ac_pattern" >/dev/null 2>&1; then
2629 rm -rf conftest*
2630 ac_cv_prog_gcc_traditional=yes
2631fi
2632rm -f conftest*
2633
2634 fi
2635fi
2636
2637echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2638 if test $ac_cv_prog_gcc_traditional = yes; then
2639 CC="$CC -traditional"
2640 fi
2641fi
2642
2643echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2644echo "configure:2645: checking return type of signal handlers" >&5
2645if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2646 echo $ac_n "(cached) $ac_c" 1>&6
2647else
2648 cat > conftest.$ac_ext <<EOF
2649#line 2650 "configure"
2650#include "confdefs.h"
2651#include <sys/types.h>
2652#include <signal.h>
2653#ifdef signal
2654#undef signal
2655#endif
2656#ifdef __cplusplus
2657extern "C" void (*signal (int, void (*)(int)))(int);
2658#else
2659void (*signal ()) ();
2660#endif
2661
2662int main() {
2663int i;
2664; return 0; }
2665EOF
2666if { (eval echo configure:2667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2667 rm -rf conftest*
2668 ac_cv_type_signal=void
2669else
2670 echo "configure: failed program was:" >&5
2671 cat conftest.$ac_ext >&5
2672 rm -rf conftest*
2673 ac_cv_type_signal=int
2674fi
2675rm -f conftest*
2676fi
2677
2678echo "$ac_t""$ac_cv_type_signal" 1>&6
2679cat >> confdefs.h <<EOF
2680#define RETSIGTYPE $ac_cv_type_signal
2681EOF
2682
2683
2684echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2685echo "configure:2686: checking for vprintf" >&5
2686if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2687 echo $ac_n "(cached) $ac_c" 1>&6
2688else
2689 cat > conftest.$ac_ext <<EOF
2690#line 2691 "configure"
2691#include "confdefs.h"
2692/* System header to define __stub macros and hopefully few prototypes,
2693 which can conflict with char vprintf(); below. */
2694#include <assert.h>
2695/* Override any gcc2 internal prototype to avoid an error. */
2696/* We use char because int might match the return type of a gcc2
2697 builtin and then its argument prototype would still apply. */
2698char vprintf();
2699
2700int main() {
2701
2702/* The GNU C library defines this for functions which it implements
2703 to always fail with ENOSYS. Some functions are actually named
2704 something starting with __ and the normal name is an alias. */
2705#if defined (__stub_vprintf) || defined (__stub___vprintf)
2706choke me
2707#else
2708vprintf();
2709#endif
2710
2711; return 0; }
2712EOF
2713if { (eval echo configure:2714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2714 rm -rf conftest*
2715 eval "ac_cv_func_vprintf=yes"
2716else
2717 echo "configure: failed program was:" >&5
2718 cat conftest.$ac_ext >&5
2719 rm -rf conftest*
2720 eval "ac_cv_func_vprintf=no"
2721fi
2722rm -f conftest*
2723fi
2724
2725if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2726 echo "$ac_t""yes" 1>&6
2727 cat >> confdefs.h <<\EOF
2728#define HAVE_VPRINTF 1
2729EOF
2730
2731else
2732 echo "$ac_t""no" 1>&6
2733fi
2734
2735if test "$ac_cv_func_vprintf" != yes; then
2736echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2737echo "configure:2738: checking for _doprnt" >&5
2738if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2740else
2741 cat > conftest.$ac_ext <<EOF
2742#line 2743 "configure"
2743#include "confdefs.h"
2744/* System header to define __stub macros and hopefully few prototypes,
2745 which can conflict with char _doprnt(); below. */
2746#include <assert.h>
2747/* Override any gcc2 internal prototype to avoid an error. */
2748/* We use char because int might match the return type of a gcc2
2749 builtin and then its argument prototype would still apply. */
2750char _doprnt();
2751
2752int main() {
2753
2754/* The GNU C library defines this for functions which it implements
2755 to always fail with ENOSYS. Some functions are actually named
2756 something starting with __ and the normal name is an alias. */
2757#if defined (__stub__doprnt) || defined (__stub____doprnt)
2758choke me
2759#else
2760_doprnt();
2761#endif
2762
2763; return 0; }
2764EOF
2765if { (eval echo configure:2766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2766 rm -rf conftest*
2767 eval "ac_cv_func__doprnt=yes"
2768else
2769 echo "configure: failed program was:" >&5
2770 cat conftest.$ac_ext >&5
2771 rm -rf conftest*
2772 eval "ac_cv_func__doprnt=no"
2773fi
2774rm -f conftest*
2775fi
2776
2777if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2778 echo "$ac_t""yes" 1>&6
2779 cat >> confdefs.h <<\EOF
2780#define HAVE_DOPRNT 1
2781EOF
2782
2783else
2784 echo "$ac_t""no" 1>&6
2785fi
2786
2787fi
2788
2789for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
2790do
2791echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2792echo "configure:2793: checking for $ac_func" >&5
2793if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2795else
2796 cat > conftest.$ac_ext <<EOF
2797#line 2798 "configure"
2798#include "confdefs.h"
2799/* System header to define __stub macros and hopefully few prototypes,
2800 which can conflict with char $ac_func(); below. */
2801#include <assert.h>
2802/* Override any gcc2 internal prototype to avoid an error. */
2803/* We use char because int might match the return type of a gcc2
2804 builtin and then its argument prototype would still apply. */
2805char $ac_func();
2806
2807int main() {
2808
2809/* The GNU C library defines this for functions which it implements
2810 to always fail with ENOSYS. Some functions are actually named
2811 something starting with __ and the normal name is an alias. */
2812#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2813choke me
2814#else
2815$ac_func();
2816#endif
2817
2818; return 0; }
2819EOF
2820if { (eval echo configure:2821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2821 rm -rf conftest*
2822 eval "ac_cv_func_$ac_func=yes"
2823else
2824 echo "configure: failed program was:" >&5
2825 cat conftest.$ac_ext >&5
2826 rm -rf conftest*
2827 eval "ac_cv_func_$ac_func=no"
2828fi
2829rm -f conftest*
2830fi
2831
2832if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2833 echo "$ac_t""yes" 1>&6
2834 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2835 cat >> confdefs.h <<EOF
2836#define $ac_tr_func 1
2837EOF
2838
2839else
2840 echo "$ac_t""no" 1>&6
2841fi
2842done
2843
2844for ac_func in ftruncate strstr strcasecmp
2845do
2846echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2847echo "configure:2848: checking for $ac_func" >&5
2848if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2849 echo $ac_n "(cached) $ac_c" 1>&6
2850else
2851 cat > conftest.$ac_ext <<EOF
2852#line 2853 "configure"
2853#include "confdefs.h"
2854/* System header to define __stub macros and hopefully few prototypes,
2855 which can conflict with char $ac_func(); below. */
2856#include <assert.h>
2857/* Override any gcc2 internal prototype to avoid an error. */
2858/* We use char because int might match the return type of a gcc2
2859 builtin and then its argument prototype would still apply. */
2860char $ac_func();
2861
2862int main() {
2863
2864/* The GNU C library defines this for functions which it implements
2865 to always fail with ENOSYS. Some functions are actually named
2866 something starting with __ and the normal name is an alias. */
2867#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2868choke me
2869#else
2870$ac_func();
2871#endif
2872
2873; return 0; }
2874EOF
2875if { (eval echo configure:2876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2876 rm -rf conftest*
2877 eval "ac_cv_func_$ac_func=yes"
2878else
2879 echo "configure: failed program was:" >&5
2880 cat conftest.$ac_ext >&5
2881 rm -rf conftest*
2882 eval "ac_cv_func_$ac_func=no"
2883fi
2884rm -f conftest*
2885fi
2886
2887if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2888 echo "$ac_t""yes" 1>&6
2889 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2890 cat >> confdefs.h <<EOF
2891#define $ac_tr_func 1
2892EOF
2893
2894else
2895 echo "$ac_t""no" 1>&6
2896LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2897fi
2898done
2899
2900
2901
2902
2903# *** Custom checking (based on GNU tar configure.in) ***
2904# ---------------------------------------------------------------------------
2905echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
2906echo "configure:2907: checking for HP-UX needing gmalloc" >&5
2907if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
2908 echo "$ac_t""yes" 1>&6
2909 LIBOBJS="$LIBOBJS gmalloc.o"
2910 cat >> confdefs.h <<\EOF
2911#define HAVE_VALLOC 1
2912EOF
2913
2914else
2915 echo "$ac_t""no" 1>&6
2916 for ac_func in valloc
2917do
2918echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2919echo "configure:2920: checking for $ac_func" >&5
2920if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2921 echo $ac_n "(cached) $ac_c" 1>&6
2922else
2923 cat > conftest.$ac_ext <<EOF
2924#line 2925 "configure"
2925#include "confdefs.h"
2926/* System header to define __stub macros and hopefully few prototypes,
2927 which can conflict with char $ac_func(); below. */
2928#include <assert.h>
2929/* Override any gcc2 internal prototype to avoid an error. */
2930/* We use char because int might match the return type of a gcc2
2931 builtin and then its argument prototype would still apply. */
2932char $ac_func();
2933
2934int main() {
2935
2936/* The GNU C library defines this for functions which it implements
2937 to always fail with ENOSYS. Some functions are actually named
2938 something starting with __ and the normal name is an alias. */
2939#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2940choke me
2941#else
2942$ac_func();
2943#endif
2944
2945; return 0; }
2946EOF
2947if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2948 rm -rf conftest*
2949 eval "ac_cv_func_$ac_func=yes"
2950else
2951 echo "configure: failed program was:" >&5
2952 cat conftest.$ac_ext >&5
2953 rm -rf conftest*
2954 eval "ac_cv_func_$ac_func=no"
2955fi
2956rm -f conftest*
2957fi
2958
2959if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2960 echo "$ac_t""yes" 1>&6
2961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2962 cat >> confdefs.h <<EOF
2963#define $ac_tr_func 1
2964EOF
2965
2966else
2967 echo "$ac_t""no" 1>&6
2968fi
2969done
2970
2971fi
2972
2973echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
2974echo "configure:2975: checking if malloc debugging is wanted" >&5
2975# Check whether --with-dmalloc or --without-dmalloc was given.
2976if test "${with_dmalloc+set}" = set; then
2977 withval="$with_dmalloc"
2978 if test "$withval" = yes; then
2979 echo "$ac_t""yes" 1>&6
2980 cat >> confdefs.h <<\EOF
2981#define WITH_DMALLOC 1
2982EOF
2983
2984 LIBS="$LIBS -ldmalloc"
2985 LDFLAGS="$LDFLAGS -g"
2986else
2987 echo "$ac_t""no" 1>&6
2988fi
2989else
2990 echo "$ac_t""no" 1>&6
2991fi
2992
2993
2994echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
2995echo "configure:2996: checking which of rx or regex is wanted" >&5
2996# Check whether --with-regex or --without-regex was given.
2997if test "${with_regex+set}" = set; then
2998 withval="$with_regex"
2999 if test "$withval" = yes; then
3000 ac_with_regex=1
3001 echo "$ac_t""regex" 1>&6
3002 cat >> confdefs.h <<\EOF
3003#define WITH_REGEX 1
3004EOF
3005
3006 LIBOBJS="$LIBOBJS regex.o"
3007fi
3008fi
3009
3010if test -z "$ac_with_regex"; then
3011 echo "$ac_t""rx" 1>&6
3012 echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
3013echo "configure:3014: checking for re_rx_search" >&5
3014if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
3015 echo $ac_n "(cached) $ac_c" 1>&6
3016else
3017 cat > conftest.$ac_ext <<EOF
3018#line 3019 "configure"
3019#include "confdefs.h"
3020/* System header to define __stub macros and hopefully few prototypes,
3021 which can conflict with char re_rx_search(); below. */
3022#include <assert.h>
3023/* Override any gcc2 internal prototype to avoid an error. */
3024/* We use char because int might match the return type of a gcc2
3025 builtin and then its argument prototype would still apply. */
3026char re_rx_search();
3027
3028int main() {
3029
3030/* The GNU C library defines this for functions which it implements
3031 to always fail with ENOSYS. Some functions are actually named
3032 something starting with __ and the normal name is an alias. */
3033#if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
3034choke me
3035#else
3036re_rx_search();
3037#endif
3038
3039; return 0; }
3040EOF
3041if { (eval echo configure:3042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3042 rm -rf conftest*
3043 eval "ac_cv_func_re_rx_search=yes"
3044else
3045 echo "configure: failed program was:" >&5
3046 cat conftest.$ac_ext >&5
3047 rm -rf conftest*
3048 eval "ac_cv_func_re_rx_search=no"
3049fi
3050rm -f conftest*
3051fi
3052
3053if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
3054 echo "$ac_t""yes" 1>&6
3055 :
3056else
3057 echo "$ac_t""no" 1>&6
3058LIBOBJS="$LIBOBJS rx.o"
3059fi
3060
3061fi
3062
3063
3064# ---------------------------------------------------------------------------
3065if test "$ac_cv_func_alloca" = 'no'; then
3066 LIBOBJS="$LIBOBJS xmalloc.o error.o"
3067fi
3068
3069
3070# ---------------------------------------------------------------------------
3071
3072ac_ext=C
3073# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3074ac_cpp='$CXXCPP $CPPFLAGS'
3075ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3076ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3077cross_compiling=$ac_cv_prog_cxx_cross
3078
3079
3080echo $ac_n "checking "that the GDBM library is available"""... $ac_c" 1>&6
3081echo "configure:3082: checking "that the GDBM library is available"" >&5
3082cat > conftest.$ac_ext <<EOF
3083#line 3084 "configure"
3084#include "confdefs.h"
3085#include <gdbm.h>
3086
3087int main() {
3088
3089; return 0; }
3090EOF
3091if { (eval echo configure:3092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3092 rm -rf conftest*
3093 success=yes
3094else
3095 echo "configure: failed program was:" >&5
3096 cat conftest.$ac_ext >&5
3097 rm -rf conftest*
3098 success=no
3099
3100fi
3101rm -f conftest*
3102echo "$ac_t""$success" 1>&6
3103if test $success = "no"; then
3104{ echo "configure: error: "GDBM Library not available - cannot install"" 1>&2; exit 1; }
3105fi
3106
3107echo $ac_n "checking "that Perl 5 is available"""... $ac_c" 1>&6
3108echo "configure:3109: checking "that Perl 5 is available"" >&5
3109success="no"
3110pl_path="$PATH"
3111IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
3112for pl_dir in $pl_path; do
3113 test -z "$pl_dir" && pl_dir=.
3114 if test -x $pl_dir/perl; then
3115 success="yes"
3116 break
3117 fi
3118done
3119IFS="$pl_save_ifs"
3120
3121if test $success = "yes"; then
3122try=`perl configtest.pl` || try="0"
3123try=`expr $try \> 5.000`
3124if test $try = "1"; then
3125echo "$ac_t"""yes"" 1>&6
3126else
3127success="no"
3128fi
3129fi
3130
3131if test $success = "no"; then
3132echo "$ac_t"""no"" 1>&6
3133{ echo "configure: error: "Perl 5 not available - cannot install"" 1>&2; exit 1; }
3134fi
3135
3136success=no
3137echo $ac_n "checking "whether STL library has known faults"""... $ac_c" 1>&6
3138echo "configure:3139: checking "whether STL library has known faults"" >&5
3139
3140cat > conftest.$ac_ext <<EOF
3141#line 3142 "configure"
3142#include "confdefs.h"
3143#include <vector>
3144
3145int main() {
3146
3147; return 0; }
3148EOF
3149if { (eval echo configure:3150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3150 rm -rf conftest*
3151 success=yes
3152else
3153 echo "configure: failed program was:" >&5
3154 cat conftest.$ac_ext >&5
3155fi
3156rm -f conftest*
3157
3158if test $success = "no"; then
3159cat > conftest.$ac_ext <<EOF
3160#line 3161 "configure"
3161#include "confdefs.h"
3162#include <vector.h>
3163
3164int main() {
3165
3166; return 0; }
3167EOF
3168if { (eval echo configure:3169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3169 rm -rf conftest*
3170 success="yes"
3171else
3172 echo "configure: failed program was:" >&5
3173 cat conftest.$ac_ext >&5
3174fi
3175rm -f conftest*
3176fi
3177
3178if test $success = "no"; then
3179cat > conftest.$ac_ext <<EOF
3180#line 3181 "configure"
3181#include "confdefs.h"
3182#include <ospace\\std\\vector>
3183
3184int main() {
3185
3186; return 0; }
3187EOF
3188if { (eval echo configure:3189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3189 rm -rf conftest*
3190 success="yes"
3191else
3192 echo "configure: failed program was:" >&5
3193 cat conftest.$ac_ext >&5
3194fi
3195rm -f conftest*
3196fi
3197
3198if test $success = yes; then
3199echo "$ac_t"""no"" 1>&6
3200else
3201echo "$ac_t"""yes"" 1>&6
3202{ echo "configure: error: "STL Broken - Obtain newer version of GNU C Compiler"" 1>&2; exit 1; }
3203fi
3204
3205gsdlos=`uname | tr A-Z a-z`
3206
3207
3208# ---------------------------------------------------------------------------
3209if test "$ac_cv_func_alloca" = 'no'; then
3210 LIBOBJS="$LIBOBJS xmalloc.o error.o"
3211fi
3212
3213
3214# ---------------------------------------------------------------------------
3215
3216subdirs="packages"
3217
3218
3219trap '' 1 2 15
3220cat > confcache <<\EOF
3221# This file is a shell script that caches the results of configure
3222# tests run on this system so they can be shared between configure
3223# scripts and configure runs. It is not useful on other systems.
3224# If it contains results you don't want to keep, you may remove or edit it.
3225#
3226# By default, configure uses ./config.cache as the cache file,
3227# creating it if it does not exist already. You can give configure
3228# the --cache-file=FILE option to use a different cache file; that is
3229# what configure does when it calls configure scripts in
3230# subdirectories, so they share the cache.
3231# Giving --cache-file=/dev/null disables caching, for debugging configure.
3232# config.status only pays attention to the cache file if you give it the
3233# --recheck option to rerun configure.
3234#
3235EOF
3236# The following way of writing the cache mishandles newlines in values,
3237# but we know of no workaround that is simple, portable, and efficient.
3238# So, don't put newlines in cache variables' values.
3239# Ultrix sh set writes to stderr and can't be redirected directly,
3240# and sets the high bit in the cache file unless we assign to the vars.
3241(set) 2>&1 |
3242 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3243 *ac_space=\ *)
3244 # `set' does not quote correctly, so add quotes (double-quote substitution
3245 # turns \\\\ into \\, and sed turns \\ into \).
3246 sed -n \
3247 -e "s/'/'\\\\''/g" \
3248 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3249 ;;
3250 *)
3251 # `set' quotes correctly as required by POSIX, so do not add quotes.
3252 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3253 ;;
3254 esac >> confcache
3255if cmp -s $cache_file confcache; then
3256 :
3257else
3258 if test -w $cache_file; then
3259 echo "updating cache $cache_file"
3260 cat confcache > $cache_file
3261 else
3262 echo "not updating unwritable cache $cache_file"
3263 fi
3264fi
3265rm -f confcache
3266
3267trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3268
3269test "x$prefix" = xNONE && prefix=$ac_default_prefix
3270# Let make expand exec_prefix.
3271test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3272
3273# Any assignment to VPATH causes Sun make to only execute
3274# the first set of double-colon rules, so remove it if not needed.
3275# If there is a colon in the path, we need to keep it.
3276if test "x$srcdir" = x.; then
3277 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3278fi
3279
3280trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3281
3282DEFS=-DHAVE_CONFIG_H
3283
3284# Without the "./", some shells look in PATH for config.status.
3285: ${CONFIG_STATUS=./config.status}
3286
3287echo creating $CONFIG_STATUS
3288rm -f $CONFIG_STATUS
3289cat > $CONFIG_STATUS <<EOF
3290#! /bin/sh
3291# Generated automatically by configure.
3292# Run this file to recreate the current configuration.
3293# This directory was configured as follows,
3294# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3295#
3296# $0 $ac_configure_args
3297#
3298# Compiler output produced by configure, useful for debugging
3299# configure, is in ./config.log if it exists.
3300
3301ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3302for ac_option
3303do
3304 case "\$ac_option" in
3305 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3306 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3307 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3308 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3309 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3310 exit 0 ;;
3311 -help | --help | --hel | --he | --h)
3312 echo "\$ac_cs_usage"; exit 0 ;;
3313 *) echo "\$ac_cs_usage"; exit 1 ;;
3314 esac
3315done
3316
3317ac_given_srcdir=$srcdir
3318ac_given_INSTALL="$INSTALL"
3319
3320trap 'rm -fr `echo "packages/Makefile packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile
3321 packages/mg/src/scripts/Makefile packages/mg/lib/Makefile src/mgpp/Makefile
3322 src/mgpp/lib/Makefile src/mgpp/text/Makefile
3323 src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile
3324 src/db2txt/Makefile lib/Makefile Makefile src/getpw/Makefile
3325 src/phind/generate/Makefile src/phind/host/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3326EOF
3327cat >> $CONFIG_STATUS <<EOF
3328
3329# Protect against being on the right side of a sed subst in config.status.
3330sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3331 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3332$ac_vpsub
3333$extrasub
3334s%@SHELL@%$SHELL%g
3335s%@CFLAGS@%$CFLAGS%g
3336s%@CPPFLAGS@%$CPPFLAGS%g
3337s%@CXXFLAGS@%$CXXFLAGS%g
3338s%@FFLAGS@%$FFLAGS%g
3339s%@DEFS@%$DEFS%g
3340s%@LDFLAGS@%$LDFLAGS%g
3341s%@LIBS@%$LIBS%g
3342s%@exec_prefix@%$exec_prefix%g
3343s%@prefix@%$prefix%g
3344s%@program_transform_name@%$program_transform_name%g
3345s%@bindir@%$bindir%g
3346s%@sbindir@%$sbindir%g
3347s%@libexecdir@%$libexecdir%g
3348s%@datadir@%$datadir%g
3349s%@sysconfdir@%$sysconfdir%g
3350s%@sharedstatedir@%$sharedstatedir%g
3351s%@localstatedir@%$localstatedir%g
3352s%@libdir@%$libdir%g
3353s%@includedir@%$includedir%g
3354s%@oldincludedir@%$oldincludedir%g
3355s%@infodir@%$infodir%g
3356s%@mandir@%$mandir%g
3357s%@PACKAGE@%$PACKAGE%g
3358s%@VERSION@%$VERSION%g
3359s%@USE_FASTCGI@%$USE_FASTCGI%g
3360s%@USE_CORBA@%$USE_CORBA%g
3361s%@MICO_DIR@%$MICO_DIR%g
3362s%@USE_Z3950@%$USE_Z3950%g
3363s%@CC@%$CC%g
3364s%@CXX@%$CXX%g
3365s%@AWK@%$AWK%g
3366s%@YACC@%$YACC%g
3367s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3368s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3369s%@INSTALL_DATA@%$INSTALL_DATA%g
3370s%@LN_S@%$LN_S%g
3371s%@SET_MAKE@%$SET_MAKE%g
3372s%@RANLIB@%$RANLIB%g
3373s%@MICO_VER@%$MICO_VER%g
3374s%@CPP@%$CPP%g
3375s%@U@%$U%g
3376s%@ANSI2KNR@%$ANSI2KNR%g
3377s%@ALLOCA@%$ALLOCA%g
3378s%@LIBOBJS@%$LIBOBJS%g
3379s%@gsdlos@%$gsdlos%g
3380s%@subdirs@%$subdirs%g
3381
3382CEOF
3383EOF
3384
3385cat >> $CONFIG_STATUS <<\EOF
3386
3387# Split the substitutions into bite-sized pieces for seds with
3388# small command number limits, like on Digital OSF/1 and HP-UX.
3389ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3390ac_file=1 # Number of current file.
3391ac_beg=1 # First line for current file.
3392ac_end=$ac_max_sed_cmds # Line after last line for current file.
3393ac_more_lines=:
3394ac_sed_cmds=""
3395while $ac_more_lines; do
3396 if test $ac_beg -gt 1; then
3397 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3398 else
3399 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3400 fi
3401 if test ! -s conftest.s$ac_file; then
3402 ac_more_lines=false
3403 rm -f conftest.s$ac_file
3404 else
3405 if test -z "$ac_sed_cmds"; then
3406 ac_sed_cmds="sed -f conftest.s$ac_file"
3407 else
3408 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3409 fi
3410 ac_file=`expr $ac_file + 1`
3411 ac_beg=$ac_end
3412 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3413 fi
3414done
3415if test -z "$ac_sed_cmds"; then
3416 ac_sed_cmds=cat
3417fi
3418EOF
3419
3420cat >> $CONFIG_STATUS <<EOF
3421
3422CONFIG_FILES=\${CONFIG_FILES-"packages/Makefile packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile
3423 packages/mg/src/scripts/Makefile packages/mg/lib/Makefile src/mgpp/Makefile
3424 src/mgpp/lib/Makefile src/mgpp/text/Makefile
3425 src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile
3426 src/db2txt/Makefile lib/Makefile Makefile src/getpw/Makefile
3427 src/phind/generate/Makefile src/phind/host/Makefile"}
3428EOF
3429cat >> $CONFIG_STATUS <<\EOF
3430for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3431 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3432 case "$ac_file" in
3433 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3434 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3435 *) ac_file_in="${ac_file}.in" ;;
3436 esac
3437
3438 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3439
3440 # Remove last slash and all that follows it. Not all systems have dirname.
3441 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3442 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3443 # The file is in a subdirectory.
3444 test ! -d "$ac_dir" && mkdir "$ac_dir"
3445 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3446 # A "../" for each directory in $ac_dir_suffix.
3447 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3448 else
3449 ac_dir_suffix= ac_dots=
3450 fi
3451
3452 case "$ac_given_srcdir" in
3453 .) srcdir=.
3454 if test -z "$ac_dots"; then top_srcdir=.
3455 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3456 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3457 *) # Relative path.
3458 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3459 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3460 esac
3461
3462 case "$ac_given_INSTALL" in
3463 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3464 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3465 esac
3466
3467 echo creating "$ac_file"
3468 rm -f "$ac_file"
3469 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3470 case "$ac_file" in
3471 *Makefile*) ac_comsub="1i\\
3472# $configure_input" ;;
3473 *) ac_comsub= ;;
3474 esac
3475
3476 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3477 sed -e "$ac_comsub
3478s%@configure_input@%$configure_input%g
3479s%@srcdir@%$srcdir%g
3480s%@top_srcdir@%$top_srcdir%g
3481s%@INSTALL@%$INSTALL%g
3482" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3483fi; done
3484rm -f conftest.s*
3485
3486# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3487# NAME is the cpp macro being defined and VALUE is the value it is being given.
3488#
3489# ac_d sets the value in "#define NAME VALUE" lines.
3490ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3491ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3492ac_dC='\3'
3493ac_dD='%g'
3494# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3495ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3496ac_uB='\([ ]\)%\1#\2define\3'
3497ac_uC=' '
3498ac_uD='\4%g'
3499# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3500ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3501ac_eB='$%\1#\2define\3'
3502ac_eC=' '
3503ac_eD='%g'
3504
3505if test "${CONFIG_HEADERS+set}" != set; then
3506EOF
3507cat >> $CONFIG_STATUS <<EOF
3508 CONFIG_HEADERS="config.h"
3509EOF
3510cat >> $CONFIG_STATUS <<\EOF
3511fi
3512for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3513 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3514 case "$ac_file" in
3515 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3516 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3517 *) ac_file_in="${ac_file}.in" ;;
3518 esac
3519
3520 echo creating $ac_file
3521
3522 rm -f conftest.frag conftest.in conftest.out
3523 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3524 cat $ac_file_inputs > conftest.in
3525
3526EOF
3527
3528# Transform confdefs.h into a sed script conftest.vals that substitutes
3529# the proper values into config.h.in to produce config.h. And first:
3530# Protect against being on the right side of a sed subst in config.status.
3531# Protect against being in an unquoted here document in config.status.
3532rm -f conftest.vals
3533cat > conftest.hdr <<\EOF
3534s/[\\&%]/\\&/g
3535s%[\\$`]%\\&%g
3536s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3537s%ac_d%ac_u%gp
3538s%ac_u%ac_e%gp
3539EOF
3540sed -n -f conftest.hdr confdefs.h > conftest.vals
3541rm -f conftest.hdr
3542
3543# This sed command replaces #undef with comments. This is necessary, for
3544# example, in the case of _POSIX_SOURCE, which is predefined and required
3545# on some systems where configure will not decide to define it.
3546cat >> conftest.vals <<\EOF
3547s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3548EOF
3549
3550# Break up conftest.vals because some shells have a limit on
3551# the size of here documents, and old seds have small limits too.
3552
3553rm -f conftest.tail
3554while :
3555do
3556 ac_lines=`grep -c . conftest.vals`
3557 # grep -c gives empty output for an empty file on some AIX systems.
3558 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3559 # Write a limited-size here document to conftest.frag.
3560 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3561 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3562 echo 'CEOF
3563 sed -f conftest.frag conftest.in > conftest.out
3564 rm -f conftest.in
3565 mv conftest.out conftest.in
3566' >> $CONFIG_STATUS
3567 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3568 rm -f conftest.vals
3569 mv conftest.tail conftest.vals
3570done
3571rm -f conftest.vals
3572
3573cat >> $CONFIG_STATUS <<\EOF
3574 rm -f conftest.frag conftest.h
3575 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3576 cat conftest.in >> conftest.h
3577 rm -f conftest.in
3578 if cmp -s $ac_file conftest.h 2>/dev/null; then
3579 echo "$ac_file is unchanged"
3580 rm -f conftest.h
3581 else
3582 # Remove last slash and all that follows it. Not all systems have dirname.
3583 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3584 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3585 # The file is in a subdirectory.
3586 test ! -d "$ac_dir" && mkdir "$ac_dir"
3587 fi
3588 rm -f $ac_file
3589 mv conftest.h $ac_file
3590 fi
3591fi; done
3592
3593EOF
3594cat >> $CONFIG_STATUS <<EOF
3595
3596EOF
3597cat >> $CONFIG_STATUS <<\EOF
3598
3599exit 0
3600EOF
3601chmod +x $CONFIG_STATUS
3602rm -fr confdefs* $ac_clean_files
3603test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3604
3605if test "$no_recursion" != yes; then
3606
3607 # Remove --cache-file and --srcdir arguments so they do not pile up.
3608 ac_sub_configure_args=
3609 ac_prev=
3610 for ac_arg in $ac_configure_args; do
3611 if test -n "$ac_prev"; then
3612 ac_prev=
3613 continue
3614 fi
3615 case "$ac_arg" in
3616 -cache-file | --cache-file | --cache-fil | --cache-fi \
3617 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3618 ac_prev=cache_file ;;
3619 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3620 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3621 ;;
3622 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3623 ac_prev=srcdir ;;
3624 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3625 ;;
3626 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3627 esac
3628 done
3629
3630 for ac_config_dir in packages; do
3631
3632 # Do not complain, so a configure script can configure whichever
3633 # parts of a large source tree are present.
3634 if test ! -d $srcdir/$ac_config_dir; then
3635 continue
3636 fi
3637
3638 echo configuring in $ac_config_dir
3639
3640 case "$srcdir" in
3641 .) ;;
3642 *)
3643 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3644 else
3645 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3646 fi
3647 ;;
3648 esac
3649
3650 ac_popdir=`pwd`
3651 cd $ac_config_dir
3652
3653 # A "../" for each directory in /$ac_config_dir.
3654 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3655
3656 case "$srcdir" in
3657 .) # No --srcdir option. We are building in place.
3658 ac_sub_srcdir=$srcdir ;;
3659 /*) # Absolute path.
3660 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3661 *) # Relative path.
3662 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3663 esac
3664
3665 # Check for guested configure; otherwise get Cygnus style configure.
3666 if test -f $ac_sub_srcdir/configure; then
3667 ac_sub_configure=$ac_sub_srcdir/configure
3668 elif test -f $ac_sub_srcdir/configure.in; then
3669 ac_sub_configure=$ac_configure
3670 else
3671 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3672 ac_sub_configure=
3673 fi
3674
3675 # The recursion is here.
3676 if test -n "$ac_sub_configure"; then
3677
3678 # Make the cache file name correct relative to the subdirectory.
3679 case "$cache_file" in
3680 /*) ac_sub_cache_file=$cache_file ;;
3681 *) # Relative path.
3682 ac_sub_cache_file="$ac_dots$cache_file" ;;
3683 esac
3684 case "$ac_given_INSTALL" in
3685 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3686 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3687 esac
3688
3689 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3690 # The eval makes quoting arguments work.
3691 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3692 then :
3693 else
3694 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3695 fi
3696 fi
3697
3698 cd $ac_popdir
3699 done
3700fi
3701
3702
3703
3704
Note: See TracBrowser for help on using the repository browser.