source: trunk/gsdl/src/mgpp/configure@ 857

Last change on this file since 857 was 857, checked in by sjboddie, 24 years ago

fixed config stuff

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