source: trunk/gsdl/configure@ 687

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

* empty log message *

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