source: trunk/gsdl/configure@ 3130

Last change on this file since 3130 was 3063, checked in by cs025, 22 years ago

Added support for the modules directory

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