source: branches/corba/gsdl/configure@ 13694

Last change on this file since 13694 was 1067, checked in by cs025, 24 years ago

Corba first commit

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