Clarify portability and main program.
[python/dscho.git] / configure
blob5dca03ccc8a4c06104513c1f76d9c901a76a8d40
1 #! /bin/sh
3 # From configure.in Revision: 1.91
5 # Guess values for system-dependent variables and create Makefiles.
6 # Generated automatically using autoconf version 2.12
7 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Defaults:
13 ac_help=
14 ac_default_prefix=/usr/local
15 # Any additions from configure.in:
16 ac_help="$ac_help
17 --with-next-archs='arch1 arch2 ..' build MAB binary"
18 ac_help="$ac_help
19 --without-gcc never use gcc"
20 ac_help="$ac_help
21 --with-libs='lib1 ...' link against additional libs"
22 ac_help="$ac_help
23 --with(out)-readline obsolete, edit Modules/Setup instead"
24 ac_help="$ac_help
25 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries"
26 ac_help="$ac_help
27 --with-threads alias for --with-thread"
28 ac_help="$ac_help
29 --with-thread[=DIRECTORY] make interpreter thread-safe"
30 ac_help="$ac_help
31 --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking"
32 ac_help="$ac_help
33 --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking"
34 ac_help="$ac_help
35 --with-fpectl enable SIGFPE catching"
36 ac_help="$ac_help
37 --with-libm=STRING math library"
38 ac_help="$ac_help
39 --with-libc=STRING C library"
41 # Initialize some variables set by options.
42 # The variables have the same names as the options, with
43 # dashes changed to underlines.
44 build=NONE
45 cache_file=./config.cache
46 exec_prefix=NONE
47 host=NONE
48 no_create=
49 nonopt=NONE
50 no_recursion=
51 prefix=NONE
52 program_prefix=NONE
53 program_suffix=NONE
54 program_transform_name=s,x,x,
55 silent=
56 site=
57 srcdir=
58 target=NONE
59 verbose=
60 x_includes=NONE
61 x_libraries=NONE
62 bindir='${exec_prefix}/bin'
63 sbindir='${exec_prefix}/sbin'
64 libexecdir='${exec_prefix}/libexec'
65 datadir='${prefix}/share'
66 sysconfdir='${prefix}/etc'
67 sharedstatedir='${prefix}/com'
68 localstatedir='${prefix}/var'
69 libdir='${exec_prefix}/lib'
70 includedir='${prefix}/include'
71 oldincludedir='/usr/include'
72 infodir='${prefix}/info'
73 mandir='${prefix}/man'
75 # Initialize some other variables.
76 subdirs=
77 MFLAGS= MAKEFLAGS=
78 # Maximum number of lines to put in a shell here document.
79 ac_max_here_lines=12
81 ac_prev=
82 for ac_option
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
88 ac_prev=
89 continue
92 case "$ac_option" in
93 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 *) ac_optarg= ;;
95 esac
97 # Accept the important Cygnus configure options, so we can diagnose typos.
99 case "$ac_option" in
101 -bindir | --bindir | --bindi | --bind | --bin | --bi)
102 ac_prev=bindir ;;
103 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
104 bindir="$ac_optarg" ;;
106 -build | --build | --buil | --bui | --bu)
107 ac_prev=build ;;
108 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
109 build="$ac_optarg" ;;
111 -cache-file | --cache-file | --cache-fil | --cache-fi \
112 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
113 ac_prev=cache_file ;;
114 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
115 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
116 cache_file="$ac_optarg" ;;
118 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
119 ac_prev=datadir ;;
120 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
121 | --da=*)
122 datadir="$ac_optarg" ;;
124 -disable-* | --disable-*)
125 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
133 -enable-* | --enable-*)
134 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
140 case "$ac_option" in
141 *=*) ;;
142 *) ac_optarg=yes ;;
143 esac
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
146 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
147 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
148 | --exec | --exe | --ex)
149 ac_prev=exec_prefix ;;
150 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
151 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
152 | --exec=* | --exe=* | --ex=*)
153 exec_prefix="$ac_optarg" ;;
155 -gas | --gas | --ga | --g)
156 # Obsolete; use --with-gas.
157 with_gas=yes ;;
159 -help | --help | --hel | --he)
160 # Omit some internal or obsolete options to make the list less imposing.
161 # This message is too long to be a string in the A/UX 3.1 sh.
162 cat << EOF
163 Usage: configure [options] [host]
164 Options: [defaults in brackets after descriptions]
165 Configuration:
166 --cache-file=FILE cache test results in FILE
167 --help print this message
168 --no-create do not create output files
169 --quiet, --silent do not print \`checking...' messages
170 --version print the version of autoconf that created configure
171 Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
173 [$ac_default_prefix]
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
175 [same as prefix]
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
180 [PREFIX/share]
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
183 [PREFIX/com]
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
196 cat << EOF
197 Host type:
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201 Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
212 exit 0 ;;
214 -host | --host | --hos | --ho)
215 ac_prev=host ;;
216 -host=* | --host=* | --hos=* | --ho=*)
217 host="$ac_optarg" ;;
219 -includedir | --includedir | --includedi | --included | --include \
220 | --includ | --inclu | --incl | --inc)
221 ac_prev=includedir ;;
222 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
223 | --includ=* | --inclu=* | --incl=* | --inc=*)
224 includedir="$ac_optarg" ;;
226 -infodir | --infodir | --infodi | --infod | --info | --inf)
227 ac_prev=infodir ;;
228 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
229 infodir="$ac_optarg" ;;
231 -libdir | --libdir | --libdi | --libd)
232 ac_prev=libdir ;;
233 -libdir=* | --libdir=* | --libdi=* | --libd=*)
234 libdir="$ac_optarg" ;;
236 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
237 | --libexe | --libex | --libe)
238 ac_prev=libexecdir ;;
239 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
240 | --libexe=* | --libex=* | --libe=*)
241 libexecdir="$ac_optarg" ;;
243 -localstatedir | --localstatedir | --localstatedi | --localstated \
244 | --localstate | --localstat | --localsta | --localst \
245 | --locals | --local | --loca | --loc | --lo)
246 ac_prev=localstatedir ;;
247 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
248 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
249 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
250 localstatedir="$ac_optarg" ;;
252 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
253 ac_prev=mandir ;;
254 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
255 mandir="$ac_optarg" ;;
257 -nfp | --nfp | --nf)
258 # Obsolete; use --without-fp.
259 with_fp=no ;;
261 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
262 | --no-cr | --no-c)
263 no_create=yes ;;
265 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
266 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
267 no_recursion=yes ;;
269 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
270 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
271 | --oldin | --oldi | --old | --ol | --o)
272 ac_prev=oldincludedir ;;
273 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
274 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
275 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
276 oldincludedir="$ac_optarg" ;;
278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
279 ac_prev=prefix ;;
280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
281 prefix="$ac_optarg" ;;
283 -program-prefix | --program-prefix | --program-prefi | --program-pref \
284 | --program-pre | --program-pr | --program-p)
285 ac_prev=program_prefix ;;
286 -program-prefix=* | --program-prefix=* | --program-prefi=* \
287 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
288 program_prefix="$ac_optarg" ;;
290 -program-suffix | --program-suffix | --program-suffi | --program-suff \
291 | --program-suf | --program-su | --program-s)
292 ac_prev=program_suffix ;;
293 -program-suffix=* | --program-suffix=* | --program-suffi=* \
294 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
295 program_suffix="$ac_optarg" ;;
297 -program-transform-name | --program-transform-name \
298 | --program-transform-nam | --program-transform-na \
299 | --program-transform-n | --program-transform- \
300 | --program-transform | --program-transfor \
301 | --program-transfo | --program-transf \
302 | --program-trans | --program-tran \
303 | --progr-tra | --program-tr | --program-t)
304 ac_prev=program_transform_name ;;
305 -program-transform-name=* | --program-transform-name=* \
306 | --program-transform-nam=* | --program-transform-na=* \
307 | --program-transform-n=* | --program-transform-=* \
308 | --program-transform=* | --program-transfor=* \
309 | --program-transfo=* | --program-transf=* \
310 | --program-trans=* | --program-tran=* \
311 | --progr-tra=* | --program-tr=* | --program-t=*)
312 program_transform_name="$ac_optarg" ;;
314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
315 | -silent | --silent | --silen | --sile | --sil)
316 silent=yes ;;
318 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
319 ac_prev=sbindir ;;
320 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
321 | --sbi=* | --sb=*)
322 sbindir="$ac_optarg" ;;
324 -sharedstatedir | --sharedstatedir | --sharedstatedi \
325 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
326 | --sharedst | --shareds | --shared | --share | --shar \
327 | --sha | --sh)
328 ac_prev=sharedstatedir ;;
329 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
330 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
331 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
332 | --sha=* | --sh=*)
333 sharedstatedir="$ac_optarg" ;;
335 -site | --site | --sit)
336 ac_prev=site ;;
337 -site=* | --site=* | --sit=*)
338 site="$ac_optarg" ;;
340 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
341 ac_prev=srcdir ;;
342 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
343 srcdir="$ac_optarg" ;;
345 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
346 | --syscon | --sysco | --sysc | --sys | --sy)
347 ac_prev=sysconfdir ;;
348 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
349 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
350 sysconfdir="$ac_optarg" ;;
352 -target | --target | --targe | --targ | --tar | --ta | --t)
353 ac_prev=target ;;
354 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
355 target="$ac_optarg" ;;
357 -v | -verbose | --verbose | --verbos | --verbo | --verb)
358 verbose=yes ;;
360 -version | --version | --versio | --versi | --vers)
361 echo "configure generated by autoconf version 2.12"
362 exit 0 ;;
364 -with-* | --with-*)
365 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package=`echo $ac_package| sed 's/-/_/g'`
371 case "$ac_option" in
372 *=*) ;;
373 *) ac_optarg=yes ;;
374 esac
375 eval "with_${ac_package}='$ac_optarg'" ;;
377 -without-* | --without-*)
378 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
386 --x)
387 # Obsolete; use --with-x.
388 with_x=yes ;;
390 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
391 | --x-incl | --x-inc | --x-in | --x-i)
392 ac_prev=x_includes ;;
393 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
394 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
395 x_includes="$ac_optarg" ;;
397 -x-libraries | --x-libraries | --x-librarie | --x-librari \
398 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
399 ac_prev=x_libraries ;;
400 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
401 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
402 x_libraries="$ac_optarg" ;;
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409 echo "configure: warning: $ac_option: invalid host type" 1>&2
411 if test "x$nonopt" != xNONE; then
412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
414 nonopt="$ac_option"
417 esac
418 done
420 if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
426 # File descriptor usage:
427 # 0 standard input
428 # 1 file creation
429 # 2 errors and warnings
430 # 3 some systems may open it to /dev/tty
431 # 4 used on the Kubota Titan
432 # 6 checking for... messages and results
433 # 5 compiler messages saved in config.log
434 if test "$silent" = yes; then
435 exec 6>/dev/null
436 else
437 exec 6>&1
439 exec 5>./config.log
441 echo "\
442 This file contains any messages produced by compilers while
443 running configure, to aid debugging if configure makes a mistake.
444 " 1>&5
446 # Strip out --no-create and --no-recursion so they do not pile up.
447 # Also quote any args containing shell metacharacters.
448 ac_configure_args=
449 for ac_arg
451 case "$ac_arg" in
452 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
453 | --no-cr | --no-c) ;;
454 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
455 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
456 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
458 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
459 esac
460 done
462 # NLS nuisances.
463 # Only set these to C if already set. These must not be set unconditionally
464 # because not all systems understand e.g. LANG=C (notably SCO).
465 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466 # Non-C LC_CTYPE values break the ctype check.
467 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
468 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
469 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
470 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
473 rm -rf conftest* confdefs.h
474 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
475 echo > confdefs.h
477 # A filename unique to this package, relative to the directory that
478 # configure is in, which we can look for to find out if srcdir is correct.
479 ac_unique_file=Include/object.h
481 # Find the source files, if location was not specified.
482 if test -z "$srcdir"; then
483 ac_srcdir_defaulted=yes
484 # Try the directory containing this script, then its parent.
485 ac_prog=$0
486 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
488 srcdir=$ac_confdir
489 if test ! -r $srcdir/$ac_unique_file; then
490 srcdir=..
492 else
493 ac_srcdir_defaulted=no
495 if test ! -r $srcdir/$ac_unique_file; then
496 if test "$ac_srcdir_defaulted" = yes; then
497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
498 else
499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
502 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
504 # Prefer explicitly selected file to automatically selected ones.
505 if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE; then
507 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
508 else
509 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
512 for ac_site_file in $CONFIG_SITE; do
513 if test -r "$ac_site_file"; then
514 echo "loading site script $ac_site_file"
515 . "$ac_site_file"
517 done
519 if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
521 . $cache_file
522 else
523 echo "creating cache $cache_file"
524 > $cache_file
527 ac_ext=c
528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529 ac_cpp='$CPP $CPPFLAGS'
530 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532 cross_compiling=$ac_cv_prog_cc_cross
534 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
535 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
536 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
537 ac_n= ac_c='
538 ' ac_t=' '
539 else
540 ac_n=-n ac_c= ac_t=
542 else
543 ac_n= ac_c='\c' ac_t=
549 # Set VERSION so we only need to edit in one place (i.e., here)
551 VERSION=1.5
553 # NEXTSTEP stuff
554 if test -f /usr/lib/NextStep/software_version; then
556 echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6
557 echo "configure:558: checking for --with-next-archs" >&5
558 # Check whether --with-next-archs or --without-next-archs was given.
559 if test "${with_next_archs+set}" = set; then
560 withval="$with_next_archs"
562 if test -n "$withval"; then
563 ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval`
564 # GCC does not currently support multi archs on the NeXT
565 with_gcc=no
567 echo "$ac_t""$with_next_archs" 1>&6
569 else
570 echo "$ac_t""none: using `arch`" 1>&6
574 if test -z "$MACHDEP"
575 then
576 set X `hostinfo | grep 'NeXT Mach.*:' | \
577 sed -e 's/://' -e 's/\./_/'` && \
578 ac_sys_system=next && ac_sys_release=$4
580 MACHDEP="$ac_sys_system$ac_sys_release"
585 # Set name for machine-dependent library files
587 echo $ac_n "checking MACHDEP""... $ac_c" 1>&6
588 echo "configure:589: checking MACHDEP" >&5
589 if test -z "$MACHDEP"
590 then
591 ac_sys_system=`uname -s`
592 if test "$ac_sys_system" = "AIX" ; then
593 ac_sys_release=`uname -v`
594 else
595 ac_sys_release=`uname -r`
597 ac_md_system=`echo $ac_sys_system |
598 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
599 ac_md_release=`echo $ac_sys_release |
600 tr -d '/ ' | sed 's/\..*//'`
601 MACHDEP="$ac_md_system$ac_md_release"
603 case $MACHDEP in
604 '') MACHDEP="unknown";;
605 esac
609 # SGI compilers allow the specification of the both the ABI and the
610 # ISA on the command line. Depending on the values of these switches,
611 # different and often incompatable code will be generated.
613 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
614 # thus supply support for various ABI/ISA combinations. The MACHDEP
615 # variable is also adjusted.
618 if test ! -z "$SGI_ABI"
619 then
620 CC="cc $SGI_ABI"
621 LDFLAGS="$SGI_ABI $LDFLAGS"
622 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
624 echo "$ac_t""$MACHDEP" 1>&6
627 # CCC is the command that compiles C++ programs
629 # Not all make programs have this predefined.
632 echo $ac_n "checking CCC""... $ac_c" 1>&6
633 echo "configure:634: checking CCC" >&5
634 if test -z "$CCC"
635 then
636 case $ac_sys_system in
637 IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";;
638 Linux*) SET_CCC="CCC= g++";;
639 *) SET_CCC=""
640 esac
641 else
642 SET_CCC="CCC= ${CCC}"
644 echo "$ac_t""$SET_CCC" 1>&6
647 # checks for alternative programs
648 echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6
649 echo "configure:650: checking for --without-gcc" >&5
650 # Check whether --with-gcc or --without-gcc was given.
651 if test "${with_gcc+set}" = set; then
652 withval="$with_gcc"
654 case $withval in
655 no) CC=cc
656 without_gcc=yes;;
657 yes) CC=gcc
658 without_gcc=no;;
659 *) CC=$withval
660 without_gcc=$withval;;
661 esac
662 else
664 case $ac_sys_system in
665 OSF1) CC=cc
666 without_gcc=;;
667 BeOS*) CC=cc
668 without_gcc=;;
669 *) without_gcc=no;;
670 esac
673 echo "$ac_t""$without_gcc" 1>&6
675 # If the user switches compilers, we can't believe the cache
676 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
677 then
678 { echo "configure: error: cached CC is different -- throw away $cache_file
679 (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; }
682 # Extract the first word of "gcc", so it can be a program name with args.
683 set dummy gcc; ac_word=$2
684 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
685 echo "configure:686: checking for $ac_word" >&5
686 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
687 echo $ac_n "(cached) $ac_c" 1>&6
688 else
689 if test -n "$CC"; then
690 ac_cv_prog_CC="$CC" # Let the user override the test.
691 else
692 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
693 for ac_dir in $PATH; do
694 test -z "$ac_dir" && ac_dir=.
695 if test -f $ac_dir/$ac_word; then
696 ac_cv_prog_CC="gcc"
697 break
699 done
700 IFS="$ac_save_ifs"
703 CC="$ac_cv_prog_CC"
704 if test -n "$CC"; then
705 echo "$ac_t""$CC" 1>&6
706 else
707 echo "$ac_t""no" 1>&6
710 if test -z "$CC"; then
711 # Extract the first word of "cc", so it can be a program name with args.
712 set dummy cc; ac_word=$2
713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
714 echo "configure:715: checking for $ac_word" >&5
715 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
716 echo $ac_n "(cached) $ac_c" 1>&6
717 else
718 if test -n "$CC"; then
719 ac_cv_prog_CC="$CC" # Let the user override the test.
720 else
721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
722 ac_prog_rejected=no
723 for ac_dir in $PATH; do
724 test -z "$ac_dir" && ac_dir=.
725 if test -f $ac_dir/$ac_word; then
726 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
727 ac_prog_rejected=yes
728 continue
730 ac_cv_prog_CC="cc"
731 break
733 done
734 IFS="$ac_save_ifs"
735 if test $ac_prog_rejected = yes; then
736 # We found a bogon in the path, so make sure we never use it.
737 set dummy $ac_cv_prog_CC
738 shift
739 if test $# -gt 0; then
740 # We chose a different compiler from the bogus one.
741 # However, it has the same basename, so the bogon will be chosen
742 # first if we set CC to just the basename; use the full file name.
743 shift
744 set dummy "$ac_dir/$ac_word" "$@"
745 shift
746 ac_cv_prog_CC="$@"
751 CC="$ac_cv_prog_CC"
752 if test -n "$CC"; then
753 echo "$ac_t""$CC" 1>&6
754 else
755 echo "$ac_t""no" 1>&6
758 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
761 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
762 echo "configure:763: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
764 ac_ext=c
765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
766 ac_cpp='$CPP $CPPFLAGS'
767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
768 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
769 cross_compiling=$ac_cv_prog_cc_cross
771 cat > conftest.$ac_ext <<EOF
772 #line 773 "configure"
773 #include "confdefs.h"
774 main(){return(0);}
776 if { (eval echo configure:777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
777 ac_cv_prog_cc_works=yes
778 # If we can't run a trivial program, we are probably using a cross compiler.
779 if (./conftest; exit) 2>/dev/null; then
780 ac_cv_prog_cc_cross=no
781 else
782 ac_cv_prog_cc_cross=yes
784 else
785 echo "configure: failed program was:" >&5
786 cat conftest.$ac_ext >&5
787 ac_cv_prog_cc_works=no
789 rm -fr conftest*
791 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
792 if test $ac_cv_prog_cc_works = no; then
793 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
795 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
796 echo "configure:797: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
797 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
798 cross_compiling=$ac_cv_prog_cc_cross
800 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
801 echo "configure:802: checking whether we are using GNU C" >&5
802 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
803 echo $ac_n "(cached) $ac_c" 1>&6
804 else
805 cat > conftest.c <<EOF
806 #ifdef __GNUC__
807 yes;
808 #endif
810 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
811 ac_cv_prog_gcc=yes
812 else
813 ac_cv_prog_gcc=no
817 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
819 if test $ac_cv_prog_gcc = yes; then
820 GCC=yes
821 ac_test_CFLAGS="${CFLAGS+set}"
822 ac_save_CFLAGS="$CFLAGS"
823 CFLAGS=
824 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
825 echo "configure:826: checking whether ${CC-cc} accepts -g" >&5
826 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
827 echo $ac_n "(cached) $ac_c" 1>&6
828 else
829 echo 'void f(){}' > conftest.c
830 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
831 ac_cv_prog_cc_g=yes
832 else
833 ac_cv_prog_cc_g=no
835 rm -f conftest*
839 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
840 if test "$ac_test_CFLAGS" = set; then
841 CFLAGS="$ac_save_CFLAGS"
842 elif test $ac_cv_prog_cc_g = yes; then
843 CFLAGS="-g -O2"
844 else
845 CFLAGS="-O2"
847 else
848 GCC=
849 test "${CFLAGS+set}" = set || CFLAGS="-g"
853 case $MACHDEP in
854 bsdos*)
855 case $CC in
856 gcc) CC="$CC -D_HAVE_BSDI";;
857 esac;;
858 esac
860 case $ac_sys_system in
861 hp*|HP*)
862 case $CC in
863 cc|*/cc) CC="$CC -Aa -D_HPUX_SOURCE";;
864 esac;;
865 BeOS*)
866 case $CC in
867 cc) CC=cc;;
868 esac;;
869 esac
871 # LINKCC is the command that links the python executable -- default is $(CC).
872 # This is altered for AIX and BeOS in order to build the export list before
873 # linking.
875 echo $ac_n "checking LINKCC""... $ac_c" 1>&6
876 echo "configure:877: checking LINKCC" >&5
877 if test -z "$LINKCC"
878 then
879 case $ac_sys_system in
880 AIX*)
881 LINKCC="\$(srcdir)/makexp_aix python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";;
882 BeOS*)
883 LINKCC="\$(srcdir)/../BeOS/linkcc \$(LIBRARY) \$(PURIFY) \$(CC) -nodup \$(OPT)"
884 REALLIBRARY='libpython$(VERSION).so';;
885 dgux*)
886 LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";;
887 *) LINKCC="\$(PURIFY) \$(CC)";;
888 esac
890 echo "$ac_t""$LINKCC" 1>&6
892 # Extract the first word of "ranlib", so it can be a program name with args.
893 set dummy ranlib; ac_word=$2
894 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
895 echo "configure:896: checking for $ac_word" >&5
896 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
897 echo $ac_n "(cached) $ac_c" 1>&6
898 else
899 if test -n "$RANLIB"; then
900 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
901 else
902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
903 for ac_dir in $PATH; do
904 test -z "$ac_dir" && ac_dir=.
905 if test -f $ac_dir/$ac_word; then
906 ac_cv_prog_RANLIB="ranlib"
907 break
909 done
910 IFS="$ac_save_ifs"
911 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
914 RANLIB="$ac_cv_prog_RANLIB"
915 if test -n "$RANLIB"; then
916 echo "$ac_t""$RANLIB" 1>&6
917 else
918 echo "$ac_t""no" 1>&6
922 for ac_prog in ar aal
924 # Extract the first word of "$ac_prog", so it can be a program name with args.
925 set dummy $ac_prog; ac_word=$2
926 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
927 echo "configure:928: checking for $ac_word" >&5
928 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
929 echo $ac_n "(cached) $ac_c" 1>&6
930 else
931 if test -n "$AR"; then
932 ac_cv_prog_AR="$AR" # Let the user override the test.
933 else
934 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
935 for ac_dir in $PATH; do
936 test -z "$ac_dir" && ac_dir=.
937 if test -f $ac_dir/$ac_word; then
938 ac_cv_prog_AR="$ac_prog"
939 break
941 done
942 IFS="$ac_save_ifs"
945 AR="$ac_cv_prog_AR"
946 if test -n "$AR"; then
947 echo "$ac_t""$AR" 1>&6
948 else
949 echo "$ac_t""no" 1>&6
952 test -n "$AR" && break
953 done
954 test -n "$AR" || AR="ar"
960 # Install just never works :-(
961 if test -z "$INSTALL"
962 then
963 INSTALL=cp
964 INSTALL_PROGRAM=cp
965 INSTALL_DATA=cp
966 else
967 INSTALL_PROGRAM="$INSTALL"
968 INSTALL_DATA="$INSTALL -m 644"
971 # Not every filesystem supports hard links
973 if test -z "$LN" ; then
974 case $ac_sys_system in
975 BeOS*) LN="ln -s";;
976 *) LN=ln;;
977 esac
980 # Optimizer/debugger flags passed between Makefiles
982 if test -z "$OPT"
983 then
984 case $GCC in
985 yes)
986 case $ac_cv_prog_cc_g in
987 yes) OPT="-g -O2";;
988 *) OPT="-O2";;
989 esac
991 *) OPT="-O";;
992 esac
995 if test "$ac_arch_flags"
996 then
997 OPT="$OPT $ac_arch_flags"
999 # checks for UNIX variants that set C preprocessor variables
1000 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1001 echo "configure:1002: checking how to run the C preprocessor" >&5
1002 # On Suns, sometimes $CPP names a directory.
1003 if test -n "$CPP" && test -d "$CPP"; then
1004 CPP=
1006 if test -z "$CPP"; then
1007 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1008 echo $ac_n "(cached) $ac_c" 1>&6
1009 else
1010 # This must be in double quotes, not single quotes, because CPP may get
1011 # substituted into the Makefile and "${CC-cc}" will confuse make.
1012 CPP="${CC-cc} -E"
1013 # On the NeXT, cc -E runs the code through the compiler's parser,
1014 # not just through cpp.
1015 cat > conftest.$ac_ext <<EOF
1016 #line 1017 "configure"
1017 #include "confdefs.h"
1018 #include <assert.h>
1019 Syntax Error
1021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1022 { (eval echo configure:1023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1023 ac_err=`grep -v '^ *+' conftest.out`
1024 if test -z "$ac_err"; then
1026 else
1027 echo "$ac_err" >&5
1028 echo "configure: failed program was:" >&5
1029 cat conftest.$ac_ext >&5
1030 rm -rf conftest*
1031 CPP="${CC-cc} -E -traditional-cpp"
1032 cat > conftest.$ac_ext <<EOF
1033 #line 1034 "configure"
1034 #include "confdefs.h"
1035 #include <assert.h>
1036 Syntax Error
1038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1039 { (eval echo configure:1040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1040 ac_err=`grep -v '^ *+' conftest.out`
1041 if test -z "$ac_err"; then
1043 else
1044 echo "$ac_err" >&5
1045 echo "configure: failed program was:" >&5
1046 cat conftest.$ac_ext >&5
1047 rm -rf conftest*
1048 CPP=/lib/cpp
1050 rm -f conftest*
1052 rm -f conftest*
1053 ac_cv_prog_CPP="$CPP"
1055 CPP="$ac_cv_prog_CPP"
1056 else
1057 ac_cv_prog_CPP="$CPP"
1059 echo "$ac_t""$CPP" 1>&6
1061 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1062 echo "configure:1063: checking for AIX" >&5
1063 cat > conftest.$ac_ext <<EOF
1064 #line 1065 "configure"
1065 #include "confdefs.h"
1066 #ifdef _AIX
1068 #endif
1071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1072 egrep "yes" >/dev/null 2>&1; then
1073 rm -rf conftest*
1074 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1075 #define _ALL_SOURCE 1
1078 else
1079 rm -rf conftest*
1080 echo "$ac_t""no" 1>&6
1082 rm -f conftest*
1085 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1086 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1087 echo "configure:1088: checking for minix/config.h" >&5
1088 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1089 echo $ac_n "(cached) $ac_c" 1>&6
1090 else
1091 cat > conftest.$ac_ext <<EOF
1092 #line 1093 "configure"
1093 #include "confdefs.h"
1094 #include <minix/config.h>
1096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1097 { (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1098 ac_err=`grep -v '^ *+' conftest.out`
1099 if test -z "$ac_err"; then
1100 rm -rf conftest*
1101 eval "ac_cv_header_$ac_safe=yes"
1102 else
1103 echo "$ac_err" >&5
1104 echo "configure: failed program was:" >&5
1105 cat conftest.$ac_ext >&5
1106 rm -rf conftest*
1107 eval "ac_cv_header_$ac_safe=no"
1109 rm -f conftest*
1111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1112 echo "$ac_t""yes" 1>&6
1113 MINIX=yes
1114 else
1115 echo "$ac_t""no" 1>&6
1116 MINIX=
1119 if test "$MINIX" = yes; then
1120 cat >> confdefs.h <<\EOF
1121 #define _POSIX_SOURCE 1
1124 cat >> confdefs.h <<\EOF
1125 #define _POSIX_1_SOURCE 2
1128 cat >> confdefs.h <<\EOF
1129 #define _MINIX 1
1135 echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6
1136 echo "configure:1137: checking whether $CC accepts -OPT:Olimit=0" >&5
1137 if eval "test \"`echo '$''{'ac_cv_opt_olimit_ok'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1139 else
1140 ac_save_cc="$CC"
1141 CC="$CC -OPT:Olimit=0"
1142 if test "$cross_compiling" = yes; then
1143 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1144 else
1145 cat > conftest.$ac_ext <<EOF
1146 #line 1147 "configure"
1147 #include "confdefs.h"
1148 int main() { return 0; }
1150 if { (eval echo configure:1151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1151 then
1152 ac_cv_opt_olimit_ok=yes
1153 else
1154 echo "configure: failed program was:" >&5
1155 cat conftest.$ac_ext >&5
1156 rm -fr conftest*
1157 ac_cv_opt_olimit_ok=no
1159 rm -fr conftest*
1162 CC="$ac_save_cc"
1165 echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6
1166 if test $ac_cv_opt_olimit_ok = yes; then
1167 OPT="$OPT -OPT:Olimit=0"
1168 else
1169 echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6
1170 echo "configure:1171: checking whether $CC accepts -Olimit 1500" >&5
1171 if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1173 else
1174 ac_save_cc="$CC"
1175 CC="$CC -Olimit 1500"
1176 if test "$cross_compiling" = yes; then
1177 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1178 else
1179 cat > conftest.$ac_ext <<EOF
1180 #line 1181 "configure"
1181 #include "confdefs.h"
1182 int main() { return 0; }
1184 if { (eval echo configure:1185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1185 then
1186 ac_cv_olimit_ok=yes
1187 else
1188 echo "configure: failed program was:" >&5
1189 cat conftest.$ac_ext >&5
1190 rm -fr conftest*
1191 ac_cv_olimit_ok=no
1193 rm -fr conftest*
1196 CC="$ac_save_cc"
1199 echo "$ac_t""$ac_cv_olimit_ok" 1>&6
1200 if test $ac_cv_olimit_ok = yes; then
1201 OPT="$OPT -Olimit 1500"
1206 if test "$MACHDEP" != "dguxR4"
1207 then
1208 REALLIBRARY='libpython$(VERSION).a'
1209 DGUX_IS_BROKEN="true"
1210 else
1211 REALLIBRARY='libpython$(VERSION).so'
1212 OPT="$OPT -pic"
1213 DGUX_IS_BROKEN="make $REALLIBRARY"
1216 # check for ANSI or K&R ("traditional") preprocessor
1217 echo $ac_n "checking for C preprocessor type""... $ac_c" 1>&6
1218 echo "configure:1219: checking for C preprocessor type" >&5
1219 cat > conftest.$ac_ext <<EOF
1220 #line 1221 "configure"
1221 #include "confdefs.h"
1223 #define spam(name, doc) {#name, &name, #name "() -- " doc}
1224 int foo;
1225 struct {char *name; int *addr; char *doc;} desc = spam(foo, "something");
1227 int main() {
1229 ; return 0; }
1231 if { (eval echo configure:1232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1232 rm -rf conftest*
1233 cpp_type=ansi
1234 else
1235 echo "configure: failed program was:" >&5
1236 cat conftest.$ac_ext >&5
1237 rm -rf conftest*
1238 cat >> confdefs.h <<\EOF
1239 #define HAVE_OLD_CPP 1
1241 cpp_type=traditional
1243 rm -f conftest*
1244 echo "$ac_t""$cpp_type" 1>&6
1246 # checks for header files
1247 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1248 echo "configure:1249: checking for ANSI C header files" >&5
1249 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1251 else
1252 cat > conftest.$ac_ext <<EOF
1253 #line 1254 "configure"
1254 #include "confdefs.h"
1255 #include <stdlib.h>
1256 #include <stdarg.h>
1257 #include <string.h>
1258 #include <float.h>
1260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261 { (eval echo configure:1262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1262 ac_err=`grep -v '^ *+' conftest.out`
1263 if test -z "$ac_err"; then
1264 rm -rf conftest*
1265 ac_cv_header_stdc=yes
1266 else
1267 echo "$ac_err" >&5
1268 echo "configure: failed program was:" >&5
1269 cat conftest.$ac_ext >&5
1270 rm -rf conftest*
1271 ac_cv_header_stdc=no
1273 rm -f conftest*
1275 if test $ac_cv_header_stdc = yes; then
1276 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1277 cat > conftest.$ac_ext <<EOF
1278 #line 1279 "configure"
1279 #include "confdefs.h"
1280 #include <string.h>
1282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1283 egrep "memchr" >/dev/null 2>&1; then
1285 else
1286 rm -rf conftest*
1287 ac_cv_header_stdc=no
1289 rm -f conftest*
1293 if test $ac_cv_header_stdc = yes; then
1294 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1295 cat > conftest.$ac_ext <<EOF
1296 #line 1297 "configure"
1297 #include "confdefs.h"
1298 #include <stdlib.h>
1300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1301 egrep "free" >/dev/null 2>&1; then
1303 else
1304 rm -rf conftest*
1305 ac_cv_header_stdc=no
1307 rm -f conftest*
1311 if test $ac_cv_header_stdc = yes; then
1312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1313 if test "$cross_compiling" = yes; then
1315 else
1316 cat > conftest.$ac_ext <<EOF
1317 #line 1318 "configure"
1318 #include "confdefs.h"
1319 #include <ctype.h>
1320 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1321 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1322 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1323 int main () { int i; for (i = 0; i < 256; i++)
1324 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1325 exit (0); }
1328 if { (eval echo configure:1329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1329 then
1331 else
1332 echo "configure: failed program was:" >&5
1333 cat conftest.$ac_ext >&5
1334 rm -fr conftest*
1335 ac_cv_header_stdc=no
1337 rm -fr conftest*
1343 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1344 if test $ac_cv_header_stdc = yes; then
1345 cat >> confdefs.h <<\EOF
1346 #define STDC_HEADERS 1
1351 for ac_hdr in dlfcn.h fcntl.h limits.h locale.h ncurses.h pthread.h \
1352 signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h \
1353 sys/audioio.h sys/file.h sys/lock.h \
1354 sys/param.h sys/select.h sys/time.h sys/times.h \
1355 sys/un.h sys/utsname.h sys/wait.h
1357 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1358 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1359 echo "configure:1360: checking for $ac_hdr" >&5
1360 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1362 else
1363 cat > conftest.$ac_ext <<EOF
1364 #line 1365 "configure"
1365 #include "confdefs.h"
1366 #include <$ac_hdr>
1368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1369 { (eval echo configure:1370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1370 ac_err=`grep -v '^ *+' conftest.out`
1371 if test -z "$ac_err"; then
1372 rm -rf conftest*
1373 eval "ac_cv_header_$ac_safe=yes"
1374 else
1375 echo "$ac_err" >&5
1376 echo "configure: failed program was:" >&5
1377 cat conftest.$ac_ext >&5
1378 rm -rf conftest*
1379 eval "ac_cv_header_$ac_safe=no"
1381 rm -f conftest*
1383 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1384 echo "$ac_t""yes" 1>&6
1385 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1386 cat >> confdefs.h <<EOF
1387 #define $ac_tr_hdr 1
1390 else
1391 echo "$ac_t""no" 1>&6
1393 done
1395 ac_header_dirent=no
1396 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1398 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1399 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1400 echo "configure:1401: checking for $ac_hdr that defines DIR" >&5
1401 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1403 else
1404 cat > conftest.$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1407 #include <sys/types.h>
1408 #include <$ac_hdr>
1409 int main() {
1410 DIR *dirp = 0;
1411 ; return 0; }
1413 if { (eval echo configure:1414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1414 rm -rf conftest*
1415 eval "ac_cv_header_dirent_$ac_safe=yes"
1416 else
1417 echo "configure: failed program was:" >&5
1418 cat conftest.$ac_ext >&5
1419 rm -rf conftest*
1420 eval "ac_cv_header_dirent_$ac_safe=no"
1422 rm -f conftest*
1424 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1425 echo "$ac_t""yes" 1>&6
1426 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1427 cat >> confdefs.h <<EOF
1428 #define $ac_tr_hdr 1
1430 ac_header_dirent=$ac_hdr; break
1431 else
1432 echo "$ac_t""no" 1>&6
1434 done
1435 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1436 if test $ac_header_dirent = dirent.h; then
1437 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1438 echo "configure:1439: checking for opendir in -ldir" >&5
1439 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1441 echo $ac_n "(cached) $ac_c" 1>&6
1442 else
1443 ac_save_LIBS="$LIBS"
1444 LIBS="-ldir $LIBS"
1445 cat > conftest.$ac_ext <<EOF
1446 #line 1447 "configure"
1447 #include "confdefs.h"
1448 /* Override any gcc2 internal prototype to avoid an error. */
1449 /* We use char because int might match the return type of a gcc2
1450 builtin and then its argument prototype would still apply. */
1451 char opendir();
1453 int main() {
1454 opendir()
1455 ; return 0; }
1457 if { (eval echo configure:1458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1458 rm -rf conftest*
1459 eval "ac_cv_lib_$ac_lib_var=yes"
1460 else
1461 echo "configure: failed program was:" >&5
1462 cat conftest.$ac_ext >&5
1463 rm -rf conftest*
1464 eval "ac_cv_lib_$ac_lib_var=no"
1466 rm -f conftest*
1467 LIBS="$ac_save_LIBS"
1470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1471 echo "$ac_t""yes" 1>&6
1472 LIBS="$LIBS -ldir"
1473 else
1474 echo "$ac_t""no" 1>&6
1477 else
1478 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1479 echo "configure:1480: checking for opendir in -lx" >&5
1480 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1481 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1482 echo $ac_n "(cached) $ac_c" 1>&6
1483 else
1484 ac_save_LIBS="$LIBS"
1485 LIBS="-lx $LIBS"
1486 cat > conftest.$ac_ext <<EOF
1487 #line 1488 "configure"
1488 #include "confdefs.h"
1489 /* Override any gcc2 internal prototype to avoid an error. */
1490 /* We use char because int might match the return type of a gcc2
1491 builtin and then its argument prototype would still apply. */
1492 char opendir();
1494 int main() {
1495 opendir()
1496 ; return 0; }
1498 if { (eval echo configure:1499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1499 rm -rf conftest*
1500 eval "ac_cv_lib_$ac_lib_var=yes"
1501 else
1502 echo "configure: failed program was:" >&5
1503 cat conftest.$ac_ext >&5
1504 rm -rf conftest*
1505 eval "ac_cv_lib_$ac_lib_var=no"
1507 rm -f conftest*
1508 LIBS="$ac_save_LIBS"
1511 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1512 echo "$ac_t""yes" 1>&6
1513 LIBS="$LIBS -lx"
1514 else
1515 echo "$ac_t""no" 1>&6
1521 # checks for typedefs
1522 was_it_defined=no
1523 echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6
1524 echo "configure:1525: checking for clock_t in time.h" >&5
1525 cat > conftest.$ac_ext <<EOF
1526 #line 1527 "configure"
1527 #include "confdefs.h"
1528 #include <time.h>
1530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1531 egrep "clock_t" >/dev/null 2>&1; then
1532 rm -rf conftest*
1533 was_it_defined=yes
1534 else
1535 rm -rf conftest*
1536 cat >> confdefs.h <<\EOF
1537 #define clock_t long
1541 rm -f conftest*
1543 echo "$ac_t""$was_it_defined" 1>&6
1545 # Add some code to confdefs.h so that the test for off_t works on SCO
1546 cat >> confdefs.h <<\EOF
1547 #if defined(SCO_DS)
1548 #undef _OFF_T
1549 #endif
1552 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1553 echo "configure:1554: checking for mode_t" >&5
1554 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1555 echo $ac_n "(cached) $ac_c" 1>&6
1556 else
1557 cat > conftest.$ac_ext <<EOF
1558 #line 1559 "configure"
1559 #include "confdefs.h"
1560 #include <sys/types.h>
1561 #if STDC_HEADERS
1562 #include <stdlib.h>
1563 #include <stddef.h>
1564 #endif
1566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1567 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1568 rm -rf conftest*
1569 ac_cv_type_mode_t=yes
1570 else
1571 rm -rf conftest*
1572 ac_cv_type_mode_t=no
1574 rm -f conftest*
1577 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
1578 if test $ac_cv_type_mode_t = no; then
1579 cat >> confdefs.h <<\EOF
1580 #define mode_t int
1585 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1586 echo "configure:1587: checking for off_t" >&5
1587 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1588 echo $ac_n "(cached) $ac_c" 1>&6
1589 else
1590 cat > conftest.$ac_ext <<EOF
1591 #line 1592 "configure"
1592 #include "confdefs.h"
1593 #include <sys/types.h>
1594 #if STDC_HEADERS
1595 #include <stdlib.h>
1596 #include <stddef.h>
1597 #endif
1599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1600 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1601 rm -rf conftest*
1602 ac_cv_type_off_t=yes
1603 else
1604 rm -rf conftest*
1605 ac_cv_type_off_t=no
1607 rm -f conftest*
1610 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1611 if test $ac_cv_type_off_t = no; then
1612 cat >> confdefs.h <<\EOF
1613 #define off_t long
1618 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1619 echo "configure:1620: checking for pid_t" >&5
1620 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1621 echo $ac_n "(cached) $ac_c" 1>&6
1622 else
1623 cat > conftest.$ac_ext <<EOF
1624 #line 1625 "configure"
1625 #include "confdefs.h"
1626 #include <sys/types.h>
1627 #if STDC_HEADERS
1628 #include <stdlib.h>
1629 #include <stddef.h>
1630 #endif
1632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1633 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1634 rm -rf conftest*
1635 ac_cv_type_pid_t=yes
1636 else
1637 rm -rf conftest*
1638 ac_cv_type_pid_t=no
1640 rm -f conftest*
1643 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1644 if test $ac_cv_type_pid_t = no; then
1645 cat >> confdefs.h <<\EOF
1646 #define pid_t int
1651 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1652 echo "configure:1653: checking return type of signal handlers" >&5
1653 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1654 echo $ac_n "(cached) $ac_c" 1>&6
1655 else
1656 cat > conftest.$ac_ext <<EOF
1657 #line 1658 "configure"
1658 #include "confdefs.h"
1659 #include <sys/types.h>
1660 #include <signal.h>
1661 #ifdef signal
1662 #undef signal
1663 #endif
1664 #ifdef __cplusplus
1665 extern "C" void (*signal (int, void (*)(int)))(int);
1666 #else
1667 void (*signal ()) ();
1668 #endif
1670 int main() {
1671 int i;
1672 ; return 0; }
1674 if { (eval echo configure:1675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1675 rm -rf conftest*
1676 ac_cv_type_signal=void
1677 else
1678 echo "configure: failed program was:" >&5
1679 cat conftest.$ac_ext >&5
1680 rm -rf conftest*
1681 ac_cv_type_signal=int
1683 rm -f conftest*
1686 echo "$ac_t""$ac_cv_type_signal" 1>&6
1687 cat >> confdefs.h <<EOF
1688 #define RETSIGTYPE $ac_cv_type_signal
1692 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1693 echo "configure:1694: checking for size_t" >&5
1694 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1695 echo $ac_n "(cached) $ac_c" 1>&6
1696 else
1697 cat > conftest.$ac_ext <<EOF
1698 #line 1699 "configure"
1699 #include "confdefs.h"
1700 #include <sys/types.h>
1701 #if STDC_HEADERS
1702 #include <stdlib.h>
1703 #include <stddef.h>
1704 #endif
1706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1707 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1708 rm -rf conftest*
1709 ac_cv_type_size_t=yes
1710 else
1711 rm -rf conftest*
1712 ac_cv_type_size_t=no
1714 rm -f conftest*
1717 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1718 if test $ac_cv_type_size_t = no; then
1719 cat >> confdefs.h <<\EOF
1720 #define size_t unsigned
1725 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1726 echo "configure:1727: checking for uid_t in sys/types.h" >&5
1727 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1729 else
1730 cat > conftest.$ac_ext <<EOF
1731 #line 1732 "configure"
1732 #include "confdefs.h"
1733 #include <sys/types.h>
1735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1736 egrep "uid_t" >/dev/null 2>&1; then
1737 rm -rf conftest*
1738 ac_cv_type_uid_t=yes
1739 else
1740 rm -rf conftest*
1741 ac_cv_type_uid_t=no
1743 rm -f conftest*
1747 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1748 if test $ac_cv_type_uid_t = no; then
1749 cat >> confdefs.h <<\EOF
1750 #define uid_t int
1753 cat >> confdefs.h <<\EOF
1754 #define gid_t int
1760 echo $ac_n "checking size of int""... $ac_c" 1>&6
1761 echo "configure:1762: checking size of int" >&5
1762 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1764 else
1765 if test "$cross_compiling" = yes; then
1766 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1767 else
1768 cat > conftest.$ac_ext <<EOF
1769 #line 1770 "configure"
1770 #include "confdefs.h"
1771 #include <stdio.h>
1772 main()
1774 FILE *f=fopen("conftestval", "w");
1775 if (!f) exit(1);
1776 fprintf(f, "%d\n", sizeof(int));
1777 exit(0);
1780 if { (eval echo configure:1781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1781 then
1782 ac_cv_sizeof_int=`cat conftestval`
1783 else
1784 echo "configure: failed program was:" >&5
1785 cat conftest.$ac_ext >&5
1786 rm -fr conftest*
1787 ac_cv_sizeof_int=0
1789 rm -fr conftest*
1793 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1794 cat >> confdefs.h <<EOF
1795 #define SIZEOF_INT $ac_cv_sizeof_int
1799 echo $ac_n "checking size of long""... $ac_c" 1>&6
1800 echo "configure:1801: checking size of long" >&5
1801 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1803 else
1804 if test "$cross_compiling" = yes; then
1805 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1806 else
1807 cat > conftest.$ac_ext <<EOF
1808 #line 1809 "configure"
1809 #include "confdefs.h"
1810 #include <stdio.h>
1811 main()
1813 FILE *f=fopen("conftestval", "w");
1814 if (!f) exit(1);
1815 fprintf(f, "%d\n", sizeof(long));
1816 exit(0);
1819 if { (eval echo configure:1820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1820 then
1821 ac_cv_sizeof_long=`cat conftestval`
1822 else
1823 echo "configure: failed program was:" >&5
1824 cat conftest.$ac_ext >&5
1825 rm -fr conftest*
1826 ac_cv_sizeof_long=0
1828 rm -fr conftest*
1832 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1833 cat >> confdefs.h <<EOF
1834 #define SIZEOF_LONG $ac_cv_sizeof_long
1838 echo $ac_n "checking size of void *""... $ac_c" 1>&6
1839 echo "configure:1840: checking size of void *" >&5
1840 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
1841 echo $ac_n "(cached) $ac_c" 1>&6
1842 else
1843 if test "$cross_compiling" = yes; then
1844 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1845 else
1846 cat > conftest.$ac_ext <<EOF
1847 #line 1848 "configure"
1848 #include "confdefs.h"
1849 #include <stdio.h>
1850 main()
1852 FILE *f=fopen("conftestval", "w");
1853 if (!f) exit(1);
1854 fprintf(f, "%d\n", sizeof(void *));
1855 exit(0);
1858 if { (eval echo configure:1859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1859 then
1860 ac_cv_sizeof_void_p=`cat conftestval`
1861 else
1862 echo "configure: failed program was:" >&5
1863 cat conftest.$ac_ext >&5
1864 rm -fr conftest*
1865 ac_cv_sizeof_void_p=0
1867 rm -fr conftest*
1871 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
1872 cat >> confdefs.h <<EOF
1873 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1878 echo $ac_n "checking for long long support""... $ac_c" 1>&6
1879 echo "configure:1880: checking for long long support" >&5
1880 have_long_long=no
1881 cat > conftest.$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #include "confdefs.h"
1885 int main() {
1886 long long x; x = (long long)0;
1887 ; return 0; }
1889 if { (eval echo configure:1890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1890 rm -rf conftest*
1891 cat >> confdefs.h <<\EOF
1892 #define HAVE_LONG_LONG 1
1894 have_long_long=yes
1895 else
1896 echo "configure: failed program was:" >&5
1897 cat conftest.$ac_ext >&5
1899 rm -f conftest*
1900 echo "$ac_t""$have_long_long" 1>&6
1901 if test $have_long_long = yes ; then
1902 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1903 echo "configure:1904: checking size of long long" >&5
1904 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1905 echo $ac_n "(cached) $ac_c" 1>&6
1906 else
1907 if test "$cross_compiling" = yes; then
1908 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1909 else
1910 cat > conftest.$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1913 #include <stdio.h>
1914 main()
1916 FILE *f=fopen("conftestval", "w");
1917 if (!f) exit(1);
1918 fprintf(f, "%d\n", sizeof(long long));
1919 exit(0);
1922 if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1923 then
1924 ac_cv_sizeof_long_long=`cat conftestval`
1925 else
1926 echo "configure: failed program was:" >&5
1927 cat conftest.$ac_ext >&5
1928 rm -fr conftest*
1929 ac_cv_sizeof_long_long=0
1931 rm -fr conftest*
1935 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1936 cat >> confdefs.h <<EOF
1937 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1943 # Set info about shared libraries.
1948 # SO is the extension of shared libraries `(including the dot!)
1949 # -- usually .so, .sl on HP-UX
1950 echo $ac_n "checking SO""... $ac_c" 1>&6
1951 echo "configure:1952: checking SO" >&5
1952 if test -z "$SO"
1953 then
1954 case $ac_sys_system in
1955 hp*|HP*) SO=.sl;;
1956 *) SO=.so;;
1957 esac
1959 echo "$ac_t""$SO" 1>&6
1960 # LDSHARED is the ld *command* used to create shared library
1961 # -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
1962 echo $ac_n "checking LDSHARED""... $ac_c" 1>&6
1963 echo "configure:1964: checking LDSHARED" >&5
1964 if test -z "$LDSHARED"
1965 then
1966 case $ac_sys_system/$ac_sys_release in
1967 AIX*) LDSHARED="\$(srcdir)/ld_so_aix \$(CC)";;
1968 BeOS*) LDSHARED="\$(srcdir)/../BeOS/linkmodule -L.. -lpython\$(VERSION)";;
1969 IRIX/5*) LDSHARED="ld -shared";;
1970 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
1971 SunOS/4*) LDSHARED="ld";;
1972 SunOS/5*) LDSHARED="ld -G";;
1973 hp*|HP*) LDSHARED="ld -b";;
1974 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
1975 DYNIX/ptx*) LDSHARED="ld -G";;
1976 next/*) LDSHARED='$(CC) $(CFLAGS) -nostdlib -r';;
1977 Linux*) LDSHARED="gcc -shared";;
1978 dgux*) LDSHARED="ld -G";;
1979 FreeBSD*|NetBSD*|OpenBSD*) LDSHARED="ld -Bshareable";;
1980 SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";;
1981 *) LDSHARED="ld";;
1982 esac
1984 echo "$ac_t""$LDSHARED" 1>&6
1985 # CCSHARED are the C *flags* used to create objects to go into a shared
1986 # library -- this is only needed for a few systems
1987 echo $ac_n "checking CCSHARED""... $ac_c" 1>&6
1988 echo "configure:1989: checking CCSHARED" >&5
1989 if test -z "$CCSHARED"
1990 then
1991 case $ac_sys_system/$ac_sys_release in
1992 hp*|HP*) if test "$GCC" = yes;
1993 then CCSHARED="-fpic";
1994 else CCSHARED="+z";
1995 fi;;
1996 Linux*) CCSHARED="-fpic";;
1997 FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fpic";;
1998 SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";;
1999 IRIX*/6*) case $CC in
2000 *gcc*) CCSHARED="-shared";;
2001 *) CCSHARED="";;
2002 esac;;
2003 esac
2005 echo "$ac_t""$CCSHARED" 1>&6
2006 # LINKFORSHARED are the flags passed to the $(CC) command that links
2007 # the python executable -- this is only needed for a few systems
2008 echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6
2009 echo "configure:2010: checking LINKFORSHARED" >&5
2010 if test -z "$LINKFORSHARED"
2011 then
2012 case $ac_sys_system/$ac_sys_release in
2013 AIX*) LINKFORSHARED='-Wl,-bE:python.exp -lld';;
2014 hp*|HP*)
2015 LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
2016 Linux*) LINKFORSHARED="-Xlinker -export-dynamic";;
2017 next/*) LINKFORSHARED="-u libsys_s";;
2018 SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
2019 SunOS/5*) case $CC in
2020 *gcc*)
2021 if $CC -Xlinker -V 2>/dev/null | grep BFD >/dev/null
2022 then
2023 LINKFORSHARED="-Xlinker --export-dynamic"
2024 fi;;
2025 esac;;
2026 esac
2028 echo "$ac_t""$LINKFORSHARED" 1>&6
2030 # checks for libraries
2031 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2032 echo "configure:2033: checking for dlopen in -ldl" >&5
2033 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2034 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2036 else
2037 ac_save_LIBS="$LIBS"
2038 LIBS="-ldl $LIBS"
2039 cat > conftest.$ac_ext <<EOF
2040 #line 2041 "configure"
2041 #include "confdefs.h"
2042 /* Override any gcc2 internal prototype to avoid an error. */
2043 /* We use char because int might match the return type of a gcc2
2044 builtin and then its argument prototype would still apply. */
2045 char dlopen();
2047 int main() {
2048 dlopen()
2049 ; return 0; }
2051 if { (eval echo configure:2052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2052 rm -rf conftest*
2053 eval "ac_cv_lib_$ac_lib_var=yes"
2054 else
2055 echo "configure: failed program was:" >&5
2056 cat conftest.$ac_ext >&5
2057 rm -rf conftest*
2058 eval "ac_cv_lib_$ac_lib_var=no"
2060 rm -f conftest*
2061 LIBS="$ac_save_LIBS"
2064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2065 echo "$ac_t""yes" 1>&6
2066 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2067 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2068 cat >> confdefs.h <<EOF
2069 #define $ac_tr_lib 1
2072 LIBS="-ldl $LIBS"
2074 else
2075 echo "$ac_t""no" 1>&6
2077 # Dynamic linking for SunOS/Solaris and SYSV
2078 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
2079 echo "configure:2080: checking for shl_load in -ldld" >&5
2080 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
2081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2082 echo $ac_n "(cached) $ac_c" 1>&6
2083 else
2084 ac_save_LIBS="$LIBS"
2085 LIBS="-ldld $LIBS"
2086 cat > conftest.$ac_ext <<EOF
2087 #line 2088 "configure"
2088 #include "confdefs.h"
2089 /* Override any gcc2 internal prototype to avoid an error. */
2090 /* We use char because int might match the return type of a gcc2
2091 builtin and then its argument prototype would still apply. */
2092 char shl_load();
2094 int main() {
2095 shl_load()
2096 ; return 0; }
2098 if { (eval echo configure:2099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2099 rm -rf conftest*
2100 eval "ac_cv_lib_$ac_lib_var=yes"
2101 else
2102 echo "configure: failed program was:" >&5
2103 cat conftest.$ac_ext >&5
2104 rm -rf conftest*
2105 eval "ac_cv_lib_$ac_lib_var=no"
2107 rm -f conftest*
2108 LIBS="$ac_save_LIBS"
2111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2112 echo "$ac_t""yes" 1>&6
2113 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2114 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2115 cat >> confdefs.h <<EOF
2116 #define $ac_tr_lib 1
2119 LIBS="-ldld $LIBS"
2121 else
2122 echo "$ac_t""no" 1>&6
2124 # Dynamic linking for HP-UX
2125 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2126 echo "configure:2127: checking for pow in -lm" >&5
2127 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
2128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2130 else
2131 ac_save_LIBS="$LIBS"
2132 LIBS="-lm $LIBS"
2133 cat > conftest.$ac_ext <<EOF
2134 #line 2135 "configure"
2135 #include "confdefs.h"
2136 /* Override any gcc2 internal prototype to avoid an error. */
2137 /* We use char because int might match the return type of a gcc2
2138 builtin and then its argument prototype would still apply. */
2139 char pow();
2141 int main() {
2142 pow()
2143 ; return 0; }
2145 if { (eval echo configure:2146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2146 rm -rf conftest*
2147 eval "ac_cv_lib_$ac_lib_var=yes"
2148 else
2149 echo "configure: failed program was:" >&5
2150 cat conftest.$ac_ext >&5
2151 rm -rf conftest*
2152 eval "ac_cv_lib_$ac_lib_var=no"
2154 rm -f conftest*
2155 LIBS="$ac_save_LIBS"
2158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2159 echo "$ac_t""yes" 1>&6
2160 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2161 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2162 cat >> confdefs.h <<EOF
2163 #define $ac_tr_lib 1
2166 LIBS="-lm $LIBS"
2168 else
2169 echo "$ac_t""no" 1>&6
2171 # Std math lib -- assume needed if it exists
2172 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
2173 # However on SGI IRIX, these exist but are broken.
2174 # BeOS' sockets are stashed in libnet.
2175 case "$ac_sys_system" in
2176 IRIX*) ;;
2178 echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6
2179 echo "configure:2180: checking for t_open in -lnsl" >&5
2180 ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'`
2181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2183 else
2184 ac_save_LIBS="$LIBS"
2185 LIBS="-lnsl $LIBS"
2186 cat > conftest.$ac_ext <<EOF
2187 #line 2188 "configure"
2188 #include "confdefs.h"
2189 /* Override any gcc2 internal prototype to avoid an error. */
2190 /* We use char because int might match the return type of a gcc2
2191 builtin and then its argument prototype would still apply. */
2192 char t_open();
2194 int main() {
2195 t_open()
2196 ; return 0; }
2198 if { (eval echo configure:2199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2199 rm -rf conftest*
2200 eval "ac_cv_lib_$ac_lib_var=yes"
2201 else
2202 echo "configure: failed program was:" >&5
2203 cat conftest.$ac_ext >&5
2204 rm -rf conftest*
2205 eval "ac_cv_lib_$ac_lib_var=no"
2207 rm -f conftest*
2208 LIBS="$ac_save_LIBS"
2211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2212 echo "$ac_t""yes" 1>&6
2213 LIBS="-lnsl $LIBS"
2214 else
2215 echo "$ac_t""no" 1>&6
2217 # SVR4
2218 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2219 echo "configure:2220: checking for socket in -lsocket" >&5
2220 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2221 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2223 else
2224 ac_save_LIBS="$LIBS"
2225 LIBS="-lsocket $LIBS $LIBS"
2226 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2229 /* Override any gcc2 internal prototype to avoid an error. */
2230 /* We use char because int might match the return type of a gcc2
2231 builtin and then its argument prototype would still apply. */
2232 char socket();
2234 int main() {
2235 socket()
2236 ; return 0; }
2238 if { (eval echo configure:2239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2239 rm -rf conftest*
2240 eval "ac_cv_lib_$ac_lib_var=yes"
2241 else
2242 echo "configure: failed program was:" >&5
2243 cat conftest.$ac_ext >&5
2244 rm -rf conftest*
2245 eval "ac_cv_lib_$ac_lib_var=no"
2247 rm -f conftest*
2248 LIBS="$ac_save_LIBS"
2251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2252 echo "$ac_t""yes" 1>&6
2253 LIBS="-lsocket $LIBS"
2254 else
2255 echo "$ac_t""no" 1>&6
2257 # SVR4 sockets
2258 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
2259 echo "configure:2260: checking for socket in -lnet" >&5
2260 ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
2261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2263 else
2264 ac_save_LIBS="$LIBS"
2265 LIBS="-lnet $LIBS $LIBS"
2266 cat > conftest.$ac_ext <<EOF
2267 #line 2268 "configure"
2268 #include "confdefs.h"
2269 /* Override any gcc2 internal prototype to avoid an error. */
2270 /* We use char because int might match the return type of a gcc2
2271 builtin and then its argument prototype would still apply. */
2272 char socket();
2274 int main() {
2275 socket()
2276 ; return 0; }
2278 if { (eval echo configure:2279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2279 rm -rf conftest*
2280 eval "ac_cv_lib_$ac_lib_var=yes"
2281 else
2282 echo "configure: failed program was:" >&5
2283 cat conftest.$ac_ext >&5
2284 rm -rf conftest*
2285 eval "ac_cv_lib_$ac_lib_var=no"
2287 rm -f conftest*
2288 LIBS="$ac_save_LIBS"
2291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2292 echo "$ac_t""yes" 1>&6
2293 LIBS="-lnet $LIBS"
2294 else
2295 echo "$ac_t""no" 1>&6
2297 # BeOS
2299 esac
2301 echo $ac_n "checking for --with-libs""... $ac_c" 1>&6
2302 echo "configure:2303: checking for --with-libs" >&5
2303 # Check whether --with-libs or --without-libs was given.
2304 if test "${with_libs+set}" = set; then
2305 withval="$with_libs"
2307 echo "$ac_t""$withval" 1>&6
2308 LIBS="$withval $LIBS"
2310 else
2311 echo "$ac_t""no" 1>&6
2315 echo $ac_n "checking for --with(out)-readline""... $ac_c" 1>&6
2316 echo "configure:2317: checking for --with(out)-readline" >&5
2317 # Check whether --with-readline or --without-readline was given.
2318 if test "${with_readline+set}" = set; then
2319 withval="$with_readline"
2320 echo "$ac_t""$withval" 1>&6
2321 { echo "configure: error: --with(out)-readline is obsolete" 1>&2; exit 1; }
2322 else
2323 echo "$ac_t""not specified." 1>&6
2328 USE_THREAD_MODULE="#"
2330 echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6
2331 echo "configure:2332: checking for --with-dec-threads" >&5
2333 # Check whether --with-dec-threads or --without-dec-threads was given.
2334 if test "${with_dec_threads+set}" = set; then
2335 withval="$with_dec_threads"
2336 echo "$ac_t""$withval" 1>&6
2337 LDLAST=-threads
2338 if test "${with_thread+set}" != set; then
2339 with_thread="$withval";
2341 else
2342 echo "$ac_t""no" 1>&6
2346 echo $ac_n "checking for --with-threads""... $ac_c" 1>&6
2347 echo "configure:2348: checking for --with-threads" >&5
2348 # Check whether --with-threads or --without-threads was given.
2349 if test "${with_threads+set}" = set; then
2350 withval="$with_threads"
2351 echo "$ac_t""$withval" 1>&6
2352 if test "${with_thread+set}" != set; then
2353 with_thread="$withval";
2355 else
2356 echo "$ac_t""no" 1>&6
2360 echo $ac_n "checking for --with-thread""... $ac_c" 1>&6
2361 echo "configure:2362: checking for --with-thread" >&5
2362 # Check whether --with-thread or --without-thread was given.
2363 if test "${with_thread+set}" = set; then
2364 withval="$with_thread"
2366 USE_THREAD_MODULE=
2367 echo "$ac_t""$withval" 1>&6
2368 if test -d "$withval"
2369 then LDFLAGS="$LDFLAGS -L$withval"
2371 cat >> confdefs.h <<\EOF
2372 #define _REENTRANT 1
2375 ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'`
2376 echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6
2377 echo "configure:2378: checking for mach/cthreads.h" >&5
2378 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2379 echo $ac_n "(cached) $ac_c" 1>&6
2380 else
2381 cat > conftest.$ac_ext <<EOF
2382 #line 2383 "configure"
2383 #include "confdefs.h"
2384 #include <mach/cthreads.h>
2386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2387 { (eval echo configure:2388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2388 ac_err=`grep -v '^ *+' conftest.out`
2389 if test -z "$ac_err"; then
2390 rm -rf conftest*
2391 eval "ac_cv_header_$ac_safe=yes"
2392 else
2393 echo "$ac_err" >&5
2394 echo "configure: failed program was:" >&5
2395 cat conftest.$ac_ext >&5
2396 rm -rf conftest*
2397 eval "ac_cv_header_$ac_safe=no"
2399 rm -f conftest*
2401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2402 echo "$ac_t""yes" 1>&6
2403 cat >> confdefs.h <<\EOF
2404 #define WITH_THREAD 1
2407 cat >> confdefs.h <<\EOF
2408 #define C_THREADS 1
2411 LIBOBJS="$LIBOBJS thread.o"
2412 else
2413 echo "$ac_t""no" 1>&6
2415 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
2416 echo "configure:2417: checking for pthread_create" >&5
2417 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
2418 echo $ac_n "(cached) $ac_c" 1>&6
2419 else
2420 cat > conftest.$ac_ext <<EOF
2421 #line 2422 "configure"
2422 #include "confdefs.h"
2423 /* System header to define __stub macros and hopefully few prototypes,
2424 which can conflict with char pthread_create(); below. */
2425 #include <assert.h>
2426 /* Override any gcc2 internal prototype to avoid an error. */
2427 /* We use char because int might match the return type of a gcc2
2428 builtin and then its argument prototype would still apply. */
2429 char pthread_create();
2431 int main() {
2433 /* The GNU C library defines this for functions which it implements
2434 to always fail with ENOSYS. Some functions are actually named
2435 something starting with __ and the normal name is an alias. */
2436 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
2437 choke me
2438 #else
2439 pthread_create();
2440 #endif
2442 ; return 0; }
2444 if { (eval echo configure:2445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2445 rm -rf conftest*
2446 eval "ac_cv_func_pthread_create=yes"
2447 else
2448 echo "configure: failed program was:" >&5
2449 cat conftest.$ac_ext >&5
2450 rm -rf conftest*
2451 eval "ac_cv_func_pthread_create=no"
2453 rm -f conftest*
2456 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
2457 echo "$ac_t""yes" 1>&6
2458 cat >> confdefs.h <<\EOF
2459 #define WITH_THREAD 1
2462 cat >> confdefs.h <<\EOF
2463 #define _POSIX_THREADS 1
2466 LIBOBJS="$LIBOBJS thread.o"
2467 else
2468 echo "$ac_t""no" 1>&6
2470 ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'`
2471 echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6
2472 echo "configure:2473: checking for kernel/OS.h" >&5
2473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2475 else
2476 cat > conftest.$ac_ext <<EOF
2477 #line 2478 "configure"
2478 #include "confdefs.h"
2479 #include <kernel/OS.h>
2481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2482 { (eval echo configure:2483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2483 ac_err=`grep -v '^ *+' conftest.out`
2484 if test -z "$ac_err"; then
2485 rm -rf conftest*
2486 eval "ac_cv_header_$ac_safe=yes"
2487 else
2488 echo "$ac_err" >&5
2489 echo "configure: failed program was:" >&5
2490 cat conftest.$ac_ext >&5
2491 rm -rf conftest*
2492 eval "ac_cv_header_$ac_safe=no"
2494 rm -f conftest*
2496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2497 echo "$ac_t""yes" 1>&6
2498 cat >> confdefs.h <<\EOF
2499 #define WITH_THREAD 1
2502 cat >> confdefs.h <<\EOF
2503 #define BEOS_THREADS 1
2506 LIBOBJS="$LIBOBJS thread.o"
2507 else
2508 echo "$ac_t""no" 1>&6
2510 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
2511 echo "configure:2512: checking for pthread_create in -lpthreads" >&5
2512 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
2513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2515 else
2516 ac_save_LIBS="$LIBS"
2517 LIBS="-lpthreads $LIBS"
2518 cat > conftest.$ac_ext <<EOF
2519 #line 2520 "configure"
2520 #include "confdefs.h"
2521 /* Override any gcc2 internal prototype to avoid an error. */
2522 /* We use char because int might match the return type of a gcc2
2523 builtin and then its argument prototype would still apply. */
2524 char pthread_create();
2526 int main() {
2527 pthread_create()
2528 ; return 0; }
2530 if { (eval echo configure:2531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2531 rm -rf conftest*
2532 eval "ac_cv_lib_$ac_lib_var=yes"
2533 else
2534 echo "configure: failed program was:" >&5
2535 cat conftest.$ac_ext >&5
2536 rm -rf conftest*
2537 eval "ac_cv_lib_$ac_lib_var=no"
2539 rm -f conftest*
2540 LIBS="$ac_save_LIBS"
2543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2544 echo "$ac_t""yes" 1>&6
2545 cat >> confdefs.h <<\EOF
2546 #define WITH_THREAD 1
2549 cat >> confdefs.h <<\EOF
2550 #define _POSIX_THREADS 1
2553 LIBS="$LIBS -lpthreads"
2554 LIBOBJS="$LIBOBJS thread.o"
2555 else
2556 echo "$ac_t""no" 1>&6
2558 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2559 echo "configure:2560: checking for pthread_create in -lpthread" >&5
2560 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2561 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2563 else
2564 ac_save_LIBS="$LIBS"
2565 LIBS="-lpthread $LIBS"
2566 cat > conftest.$ac_ext <<EOF
2567 #line 2568 "configure"
2568 #include "confdefs.h"
2569 /* Override any gcc2 internal prototype to avoid an error. */
2570 /* We use char because int might match the return type of a gcc2
2571 builtin and then its argument prototype would still apply. */
2572 char pthread_create();
2574 int main() {
2575 pthread_create()
2576 ; return 0; }
2578 if { (eval echo configure:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2579 rm -rf conftest*
2580 eval "ac_cv_lib_$ac_lib_var=yes"
2581 else
2582 echo "configure: failed program was:" >&5
2583 cat conftest.$ac_ext >&5
2584 rm -rf conftest*
2585 eval "ac_cv_lib_$ac_lib_var=no"
2587 rm -f conftest*
2588 LIBS="$ac_save_LIBS"
2591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2592 echo "$ac_t""yes" 1>&6
2593 cat >> confdefs.h <<\EOF
2594 #define WITH_THREAD 1
2597 cat >> confdefs.h <<\EOF
2598 #define _POSIX_THREADS 1
2601 LIBS="$LIBS -lpthread"
2602 LIBOBJS="$LIBOBJS thread.o"
2603 else
2604 echo "$ac_t""no" 1>&6
2606 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
2607 echo "configure:2608: checking for pthread_create in -lc_r" >&5
2608 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
2609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2610 echo $ac_n "(cached) $ac_c" 1>&6
2611 else
2612 ac_save_LIBS="$LIBS"
2613 LIBS="-lc_r $LIBS"
2614 cat > conftest.$ac_ext <<EOF
2615 #line 2616 "configure"
2616 #include "confdefs.h"
2617 /* Override any gcc2 internal prototype to avoid an error. */
2618 /* We use char because int might match the return type of a gcc2
2619 builtin and then its argument prototype would still apply. */
2620 char pthread_create();
2622 int main() {
2623 pthread_create()
2624 ; return 0; }
2626 if { (eval echo configure:2627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2627 rm -rf conftest*
2628 eval "ac_cv_lib_$ac_lib_var=yes"
2629 else
2630 echo "configure: failed program was:" >&5
2631 cat conftest.$ac_ext >&5
2632 rm -rf conftest*
2633 eval "ac_cv_lib_$ac_lib_var=no"
2635 rm -f conftest*
2636 LIBS="$ac_save_LIBS"
2639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2640 echo "$ac_t""yes" 1>&6
2641 cat >> confdefs.h <<\EOF
2642 #define WITH_THREAD 1
2645 cat >> confdefs.h <<\EOF
2646 #define _POSIX_THREADS 1
2649 LIBS="$LIBS -lc_r"
2650 LIBOBJS="$LIBOBJS thread.o"
2651 else
2652 echo "$ac_t""no" 1>&6
2654 echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6
2655 echo "configure:2656: checking for __d6_pthread_create in -lthread" >&5
2656 ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'`
2657 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2658 echo $ac_n "(cached) $ac_c" 1>&6
2659 else
2660 ac_save_LIBS="$LIBS"
2661 LIBS="-lthread $LIBS"
2662 cat > conftest.$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.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. */
2668 char __d6_pthread_create();
2670 int main() {
2671 __d6_pthread_create()
2672 ; return 0; }
2674 if { (eval echo configure:2675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2675 rm -rf conftest*
2676 eval "ac_cv_lib_$ac_lib_var=yes"
2677 else
2678 echo "configure: failed program was:" >&5
2679 cat conftest.$ac_ext >&5
2680 rm -rf conftest*
2681 eval "ac_cv_lib_$ac_lib_var=no"
2683 rm -f conftest*
2684 LIBS="$ac_save_LIBS"
2687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2688 echo "$ac_t""yes" 1>&6
2689 cat >> confdefs.h <<\EOF
2690 #define WITH_THREAD 1
2693 cat >> confdefs.h <<\EOF
2694 #define _POSIX_THREADS 1
2697 LIBS="$LIBS -lthread"
2698 LIBOBJS="$LIBOBJS thread.o"
2699 else
2700 echo "$ac_t""no" 1>&6
2702 echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6
2703 echo "configure:2704: checking for pthread_create in -lcma" >&5
2704 ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'`
2705 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2706 echo $ac_n "(cached) $ac_c" 1>&6
2707 else
2708 ac_save_LIBS="$LIBS"
2709 LIBS="-lcma $LIBS"
2710 cat > conftest.$ac_ext <<EOF
2711 #line 2712 "configure"
2712 #include "confdefs.h"
2713 /* Override any gcc2 internal prototype to avoid an error. */
2714 /* We use char because int might match the return type of a gcc2
2715 builtin and then its argument prototype would still apply. */
2716 char pthread_create();
2718 int main() {
2719 pthread_create()
2720 ; return 0; }
2722 if { (eval echo configure:2723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2723 rm -rf conftest*
2724 eval "ac_cv_lib_$ac_lib_var=yes"
2725 else
2726 echo "configure: failed program was:" >&5
2727 cat conftest.$ac_ext >&5
2728 rm -rf conftest*
2729 eval "ac_cv_lib_$ac_lib_var=no"
2731 rm -f conftest*
2732 LIBS="$ac_save_LIBS"
2735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2736 echo "$ac_t""yes" 1>&6
2737 cat >> confdefs.h <<\EOF
2738 #define WITH_THREAD 1
2741 cat >> confdefs.h <<\EOF
2742 #define _POSIX_THREADS 1
2745 LIBS="$LIBS -lcma"
2746 LIBOBJS="$LIBOBJS thread.o"
2747 else
2748 echo "$ac_t""no" 1>&6
2767 echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6
2768 echo "configure:2769: checking for usconfig in -lmpc" >&5
2769 ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'`
2770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2771 echo $ac_n "(cached) $ac_c" 1>&6
2772 else
2773 ac_save_LIBS="$LIBS"
2774 LIBS="-lmpc $LIBS"
2775 cat > conftest.$ac_ext <<EOF
2776 #line 2777 "configure"
2777 #include "confdefs.h"
2778 /* Override any gcc2 internal prototype to avoid an error. */
2779 /* We use char because int might match the return type of a gcc2
2780 builtin and then its argument prototype would still apply. */
2781 char usconfig();
2783 int main() {
2784 usconfig()
2785 ; return 0; }
2787 if { (eval echo configure:2788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2788 rm -rf conftest*
2789 eval "ac_cv_lib_$ac_lib_var=yes"
2790 else
2791 echo "configure: failed program was:" >&5
2792 cat conftest.$ac_ext >&5
2793 rm -rf conftest*
2794 eval "ac_cv_lib_$ac_lib_var=no"
2796 rm -f conftest*
2797 LIBS="$ac_save_LIBS"
2800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2801 echo "$ac_t""yes" 1>&6
2802 cat >> confdefs.h <<\EOF
2803 #define WITH_THREAD 1
2806 LIBS="$LIBS -lmpc"
2807 LIBOBJS="$LIBOBJS thread.o"
2808 else
2809 echo "$ac_t""no" 1>&6
2812 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
2813 echo "configure:2814: checking for thr_create in -lthread" >&5
2814 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
2815 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2816 echo $ac_n "(cached) $ac_c" 1>&6
2817 else
2818 ac_save_LIBS="$LIBS"
2819 LIBS="-lthread $LIBS"
2820 cat > conftest.$ac_ext <<EOF
2821 #line 2822 "configure"
2822 #include "confdefs.h"
2823 /* Override any gcc2 internal prototype to avoid an error. */
2824 /* We use char because int might match the return type of a gcc2
2825 builtin and then its argument prototype would still apply. */
2826 char thr_create();
2828 int main() {
2829 thr_create()
2830 ; return 0; }
2832 if { (eval echo configure:2833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2833 rm -rf conftest*
2834 eval "ac_cv_lib_$ac_lib_var=yes"
2835 else
2836 echo "configure: failed program was:" >&5
2837 cat conftest.$ac_ext >&5
2838 rm -rf conftest*
2839 eval "ac_cv_lib_$ac_lib_var=no"
2841 rm -f conftest*
2842 LIBS="$ac_save_LIBS"
2845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2846 echo "$ac_t""yes" 1>&6
2847 cat >> confdefs.h <<\EOF
2848 #define WITH_THREAD 1
2851 LIBS="$LIBS -lthread"
2852 LIBOBJS="$LIBOBJS thread.o"
2853 else
2854 echo "$ac_t""no" 1>&6
2858 else
2859 echo "$ac_t""no" 1>&6
2863 # -I${DLINCLDIR} is added to the compile rule for importdl.o
2865 DLINCLDIR=/
2867 echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6
2868 echo "configure:2869: checking for --with-sgi-dl" >&5
2869 # Check whether --with-sgi-dl or --without-sgi-dl was given.
2870 if test "${with_sgi_dl+set}" = set; then
2871 withval="$with_sgi_dl"
2873 echo "$ac_t""$withval" 1>&6
2874 cat >> confdefs.h <<\EOF
2875 #define WITH_SGI_DL 1
2878 dldir=$withval
2879 if test -d "$dldir"
2880 then LDFLAGS="$LDFLAGS -L$dldir"
2881 else { echo "configure: error: proper usage is --with-sgi-dl=DIRECTORY" 1>&2; exit 1; }
2883 DLINCLDIR=${dldir}
2884 LIBS="$LIBS -ldl -lmld"
2885 else
2886 echo "$ac_t""no" 1>&6
2890 echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6
2891 echo "configure:2892: checking for --with-dl-dld" >&5
2892 # Check whether --with-dl-dld or --without-dl-dld was given.
2893 if test "${with_dl_dld+set}" = set; then
2894 withval="$with_dl_dld"
2896 echo "$ac_t""$withval" 1>&6
2897 cat >> confdefs.h <<\EOF
2898 #define WITH_DL_DLD 1
2901 dldir=`echo "$withval" | sed 's/,.*//'`
2902 dlddir=`echo "$withval" | sed 's/.*,//'`
2903 if test -d "$dldir" -a -d "$dlddir"
2904 then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir"
2905 else { echo "configure: error: proper usage is --with-dl-dld=DL_DIRECTORY" 1>&2; exit 1; }
2907 DLINCLDIR=${dldir}
2908 LIBS="$LIBS -ldl -ldld"
2909 else
2910 echo "$ac_t""no" 1>&6
2914 # checks for library functions
2915 for ac_func in alarm chown clock dlopen execv flock fork ftime ftruncate \
2916 gethostname_r getpeername getpgrp getpid getpwent gettimeofday getwd \
2917 kill link lstat mkfifo mktime nice pause plock pthread_init putenv readlink \
2918 select setgid setlocale setuid setsid setpgid setpgrp setvbuf \
2919 sigaction siginterrupt sigrelse strftime strptime symlink \
2920 tcgetpgrp tcsetpgrp timegm times truncate uname waitpid
2922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2923 echo "configure:2924: checking for $ac_func" >&5
2924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2925 echo $ac_n "(cached) $ac_c" 1>&6
2926 else
2927 cat > conftest.$ac_ext <<EOF
2928 #line 2929 "configure"
2929 #include "confdefs.h"
2930 /* System header to define __stub macros and hopefully few prototypes,
2931 which can conflict with char $ac_func(); below. */
2932 #include <assert.h>
2933 /* Override any gcc2 internal prototype to avoid an error. */
2934 /* We use char because int might match the return type of a gcc2
2935 builtin and then its argument prototype would still apply. */
2936 char $ac_func();
2938 int main() {
2940 /* The GNU C library defines this for functions which it implements
2941 to always fail with ENOSYS. Some functions are actually named
2942 something starting with __ and the normal name is an alias. */
2943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2944 choke me
2945 #else
2946 $ac_func();
2947 #endif
2949 ; return 0; }
2951 if { (eval echo configure:2952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2952 rm -rf conftest*
2953 eval "ac_cv_func_$ac_func=yes"
2954 else
2955 echo "configure: failed program was:" >&5
2956 cat conftest.$ac_ext >&5
2957 rm -rf conftest*
2958 eval "ac_cv_func_$ac_func=no"
2960 rm -f conftest*
2963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2964 echo "$ac_t""yes" 1>&6
2965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2966 cat >> confdefs.h <<EOF
2967 #define $ac_tr_func 1
2970 else
2971 echo "$ac_t""no" 1>&6
2973 done
2975 for ac_func in dup2 getcwd strdup strerror memmove
2977 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2978 echo "configure:2979: checking for $ac_func" >&5
2979 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2981 else
2982 cat > conftest.$ac_ext <<EOF
2983 #line 2984 "configure"
2984 #include "confdefs.h"
2985 /* System header to define __stub macros and hopefully few prototypes,
2986 which can conflict with char $ac_func(); below. */
2987 #include <assert.h>
2988 /* Override any gcc2 internal prototype to avoid an error. */
2989 /* We use char because int might match the return type of a gcc2
2990 builtin and then its argument prototype would still apply. */
2991 char $ac_func();
2993 int main() {
2995 /* The GNU C library defines this for functions which it implements
2996 to always fail with ENOSYS. Some functions are actually named
2997 something starting with __ and the normal name is an alias. */
2998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2999 choke me
3000 #else
3001 $ac_func();
3002 #endif
3004 ; return 0; }
3006 if { (eval echo configure:3007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3007 rm -rf conftest*
3008 eval "ac_cv_func_$ac_func=yes"
3009 else
3010 echo "configure: failed program was:" >&5
3011 cat conftest.$ac_ext >&5
3012 rm -rf conftest*
3013 eval "ac_cv_func_$ac_func=no"
3015 rm -f conftest*
3018 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3019 echo "$ac_t""yes" 1>&6
3020 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3021 cat >> confdefs.h <<EOF
3022 #define $ac_tr_func 1
3025 else
3026 echo "$ac_t""no" 1>&6
3027 LIBOBJS="$LIBOBJS ${ac_func}.o"
3029 done
3032 echo $ac_n "checking for getpgrp""... $ac_c" 1>&6
3033 echo "configure:3034: checking for getpgrp" >&5
3034 if eval "test \"`echo '$''{'ac_cv_func_getpgrp'+set}'`\" = set"; then
3035 echo $ac_n "(cached) $ac_c" 1>&6
3036 else
3037 cat > conftest.$ac_ext <<EOF
3038 #line 3039 "configure"
3039 #include "confdefs.h"
3040 /* System header to define __stub macros and hopefully few prototypes,
3041 which can conflict with char getpgrp(); below. */
3042 #include <assert.h>
3043 /* Override any gcc2 internal prototype to avoid an error. */
3044 /* We use char because int might match the return type of a gcc2
3045 builtin and then its argument prototype would still apply. */
3046 char getpgrp();
3048 int main() {
3050 /* The GNU C library defines this for functions which it implements
3051 to always fail with ENOSYS. Some functions are actually named
3052 something starting with __ and the normal name is an alias. */
3053 #if defined (__stub_getpgrp) || defined (__stub___getpgrp)
3054 choke me
3055 #else
3056 getpgrp();
3057 #endif
3059 ; return 0; }
3061 if { (eval echo configure:3062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3062 rm -rf conftest*
3063 eval "ac_cv_func_getpgrp=yes"
3064 else
3065 echo "configure: failed program was:" >&5
3066 cat conftest.$ac_ext >&5
3067 rm -rf conftest*
3068 eval "ac_cv_func_getpgrp=no"
3070 rm -f conftest*
3073 if eval "test \"`echo '$ac_cv_func_'getpgrp`\" = yes"; then
3074 echo "$ac_t""yes" 1>&6
3075 cat > conftest.$ac_ext <<EOF
3076 #line 3077 "configure"
3077 #include "confdefs.h"
3078 #include <unistd.h>
3079 int main() {
3080 getpgrp(0);
3081 ; return 0; }
3083 if { (eval echo configure:3084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3084 rm -rf conftest*
3085 cat >> confdefs.h <<\EOF
3086 #define GETPGRP_HAVE_ARG 1
3089 else
3090 echo "configure: failed program was:" >&5
3091 cat conftest.$ac_ext >&5
3093 rm -f conftest*
3094 else
3095 echo "$ac_t""no" 1>&6
3098 echo $ac_n "checking for setpgrp""... $ac_c" 1>&6
3099 echo "configure:3100: checking for setpgrp" >&5
3100 if eval "test \"`echo '$''{'ac_cv_func_setpgrp'+set}'`\" = set"; then
3101 echo $ac_n "(cached) $ac_c" 1>&6
3102 else
3103 cat > conftest.$ac_ext <<EOF
3104 #line 3105 "configure"
3105 #include "confdefs.h"
3106 /* System header to define __stub macros and hopefully few prototypes,
3107 which can conflict with char setpgrp(); below. */
3108 #include <assert.h>
3109 /* Override any gcc2 internal prototype to avoid an error. */
3110 /* We use char because int might match the return type of a gcc2
3111 builtin and then its argument prototype would still apply. */
3112 char setpgrp();
3114 int main() {
3116 /* The GNU C library defines this for functions which it implements
3117 to always fail with ENOSYS. Some functions are actually named
3118 something starting with __ and the normal name is an alias. */
3119 #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
3120 choke me
3121 #else
3122 setpgrp();
3123 #endif
3125 ; return 0; }
3127 if { (eval echo configure:3128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3128 rm -rf conftest*
3129 eval "ac_cv_func_setpgrp=yes"
3130 else
3131 echo "configure: failed program was:" >&5
3132 cat conftest.$ac_ext >&5
3133 rm -rf conftest*
3134 eval "ac_cv_func_setpgrp=no"
3136 rm -f conftest*
3139 if eval "test \"`echo '$ac_cv_func_'setpgrp`\" = yes"; then
3140 echo "$ac_t""yes" 1>&6
3141 cat > conftest.$ac_ext <<EOF
3142 #line 3143 "configure"
3143 #include "confdefs.h"
3144 #include <unistd.h>
3145 int main() {
3146 setpgrp(0,0);
3147 ; return 0; }
3149 if { (eval echo configure:3150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3150 rm -rf conftest*
3151 cat >> confdefs.h <<\EOF
3152 #define SETPGRP_HAVE_ARG 1
3155 else
3156 echo "configure: failed program was:" >&5
3157 cat conftest.$ac_ext >&5
3159 rm -f conftest*
3160 else
3161 echo "$ac_t""no" 1>&6
3164 echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
3165 echo "configure:3166: checking for gettimeofday" >&5
3166 if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
3167 echo $ac_n "(cached) $ac_c" 1>&6
3168 else
3169 cat > conftest.$ac_ext <<EOF
3170 #line 3171 "configure"
3171 #include "confdefs.h"
3172 /* System header to define __stub macros and hopefully few prototypes,
3173 which can conflict with char gettimeofday(); below. */
3174 #include <assert.h>
3175 /* Override any gcc2 internal prototype to avoid an error. */
3176 /* We use char because int might match the return type of a gcc2
3177 builtin and then its argument prototype would still apply. */
3178 char gettimeofday();
3180 int main() {
3182 /* The GNU C library defines this for functions which it implements
3183 to always fail with ENOSYS. Some functions are actually named
3184 something starting with __ and the normal name is an alias. */
3185 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
3186 choke me
3187 #else
3188 gettimeofday();
3189 #endif
3191 ; return 0; }
3193 if { (eval echo configure:3194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3194 rm -rf conftest*
3195 eval "ac_cv_func_gettimeofday=yes"
3196 else
3197 echo "configure: failed program was:" >&5
3198 cat conftest.$ac_ext >&5
3199 rm -rf conftest*
3200 eval "ac_cv_func_gettimeofday=no"
3202 rm -f conftest*
3205 if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
3206 echo "$ac_t""yes" 1>&6
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3210 #include <sys/time.h>
3211 int main() {
3212 gettimeofday((struct timeval*)0,(struct timezone*)0);
3213 ; return 0; }
3215 if { (eval echo configure:3216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3217 else
3218 echo "configure: failed program was:" >&5
3219 cat conftest.$ac_ext >&5
3220 rm -rf conftest*
3221 cat >> confdefs.h <<\EOF
3222 #define GETTIMEOFDAY_NO_TZ 1
3226 rm -f conftest*
3227 else
3228 echo "$ac_t""no" 1>&6
3232 # checks for structures
3233 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3234 echo "configure:3235: checking whether time.h and sys/time.h may both be included" >&5
3235 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3237 else
3238 cat > conftest.$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3241 #include <sys/types.h>
3242 #include <sys/time.h>
3243 #include <time.h>
3244 int main() {
3245 struct tm *tp;
3246 ; return 0; }
3248 if { (eval echo configure:3249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3249 rm -rf conftest*
3250 ac_cv_header_time=yes
3251 else
3252 echo "configure: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3254 rm -rf conftest*
3255 ac_cv_header_time=no
3257 rm -f conftest*
3260 echo "$ac_t""$ac_cv_header_time" 1>&6
3261 if test $ac_cv_header_time = yes; then
3262 cat >> confdefs.h <<\EOF
3263 #define TIME_WITH_SYS_TIME 1
3268 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3269 echo "configure:3270: checking whether struct tm is in sys/time.h or time.h" >&5
3270 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3271 echo $ac_n "(cached) $ac_c" 1>&6
3272 else
3273 cat > conftest.$ac_ext <<EOF
3274 #line 3275 "configure"
3275 #include "confdefs.h"
3276 #include <sys/types.h>
3277 #include <time.h>
3278 int main() {
3279 struct tm *tp; tp->tm_sec;
3280 ; return 0; }
3282 if { (eval echo configure:3283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3283 rm -rf conftest*
3284 ac_cv_struct_tm=time.h
3285 else
3286 echo "configure: failed program was:" >&5
3287 cat conftest.$ac_ext >&5
3288 rm -rf conftest*
3289 ac_cv_struct_tm=sys/time.h
3291 rm -f conftest*
3294 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3295 if test $ac_cv_struct_tm = sys/time.h; then
3296 cat >> confdefs.h <<\EOF
3297 #define TM_IN_SYS_TIME 1
3302 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3303 echo "configure:3304: checking for tm_zone in struct tm" >&5
3304 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3305 echo $ac_n "(cached) $ac_c" 1>&6
3306 else
3307 cat > conftest.$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3310 #include <sys/types.h>
3311 #include <$ac_cv_struct_tm>
3312 int main() {
3313 struct tm tm; tm.tm_zone;
3314 ; return 0; }
3316 if { (eval echo configure:3317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3317 rm -rf conftest*
3318 ac_cv_struct_tm_zone=yes
3319 else
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3322 rm -rf conftest*
3323 ac_cv_struct_tm_zone=no
3325 rm -f conftest*
3328 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3329 if test "$ac_cv_struct_tm_zone" = yes; then
3330 cat >> confdefs.h <<\EOF
3331 #define HAVE_TM_ZONE 1
3334 else
3335 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3336 echo "configure:3337: checking for tzname" >&5
3337 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3338 echo $ac_n "(cached) $ac_c" 1>&6
3339 else
3340 cat > conftest.$ac_ext <<EOF
3341 #line 3342 "configure"
3342 #include "confdefs.h"
3343 #include <time.h>
3344 #ifndef tzname /* For SGI. */
3345 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3346 #endif
3347 int main() {
3348 atoi(*tzname);
3349 ; return 0; }
3351 if { (eval echo configure:3352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3352 rm -rf conftest*
3353 ac_cv_var_tzname=yes
3354 else
3355 echo "configure: failed program was:" >&5
3356 cat conftest.$ac_ext >&5
3357 rm -rf conftest*
3358 ac_cv_var_tzname=no
3360 rm -f conftest*
3363 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3364 if test $ac_cv_var_tzname = yes; then
3365 cat >> confdefs.h <<\EOF
3366 #define HAVE_TZNAME 1
3373 echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6
3374 echo "configure:3375: checking for time.h that defines altzone" >&5
3375 if eval "test \"`echo '$''{'ac_cv_header_time_altzone'+set}'`\" = set"; then
3376 echo $ac_n "(cached) $ac_c" 1>&6
3377 else
3378 cat > conftest.$ac_ext <<EOF
3379 #line 3380 "configure"
3380 #include "confdefs.h"
3381 #include <time.h>
3382 int main() {
3383 return altzone;
3384 ; return 0; }
3386 if { (eval echo configure:3387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3387 rm -rf conftest*
3388 ac_cv_header_time_altzone=yes
3389 else
3390 echo "configure: failed program was:" >&5
3391 cat conftest.$ac_ext >&5
3392 rm -rf conftest*
3393 ac_cv_header_time_altzone=no
3395 rm -f conftest*
3398 echo "$ac_t""$ac_cv_header_time_altzone" 1>&6
3399 if test $ac_cv_header_time_altzone = yes; then
3400 cat >> confdefs.h <<\EOF
3401 #define HAVE_ALTZONE 1
3406 was_it_defined=no
3407 echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6
3408 echo "configure:3409: checking whether sys/select.h and sys/time.h may both be included" >&5
3409 cat > conftest.$ac_ext <<EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3413 #include <sys/types.h>
3414 #include <sys/select.h>
3415 #include <sys/time.h>
3417 int main() {
3419 ; return 0; }
3421 if { (eval echo configure:3422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3422 rm -rf conftest*
3423 cat >> confdefs.h <<\EOF
3424 #define SYS_SELECT_WITH_SYS_TIME 1
3426 was_it_defined=yes
3427 else
3428 echo "configure: failed program was:" >&5
3429 cat conftest.$ac_ext >&5
3431 rm -f conftest*
3432 echo "$ac_t""$was_it_defined" 1>&6
3434 # checks for compiler characteristics
3436 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3437 echo "configure:3438: checking whether char is unsigned" >&5
3438 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3439 echo $ac_n "(cached) $ac_c" 1>&6
3440 else
3441 if test "$GCC" = yes; then
3442 # GCC predefines this symbol on systems where it applies.
3443 cat > conftest.$ac_ext <<EOF
3444 #line 3445 "configure"
3445 #include "confdefs.h"
3446 #ifdef __CHAR_UNSIGNED__
3448 #endif
3451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3452 egrep "yes" >/dev/null 2>&1; then
3453 rm -rf conftest*
3454 ac_cv_c_char_unsigned=yes
3455 else
3456 rm -rf conftest*
3457 ac_cv_c_char_unsigned=no
3459 rm -f conftest*
3461 else
3462 if test "$cross_compiling" = yes; then
3463 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3464 else
3465 cat > conftest.$ac_ext <<EOF
3466 #line 3467 "configure"
3467 #include "confdefs.h"
3468 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3469 #if !defined(__STDC__) || __STDC__ != 1
3470 #define volatile
3471 #endif
3472 main() {
3473 volatile char c = 255; exit(c < 0);
3476 if { (eval echo configure:3477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3477 then
3478 ac_cv_c_char_unsigned=yes
3479 else
3480 echo "configure: failed program was:" >&5
3481 cat conftest.$ac_ext >&5
3482 rm -fr conftest*
3483 ac_cv_c_char_unsigned=no
3485 rm -fr conftest*
3491 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3492 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3493 cat >> confdefs.h <<\EOF
3494 #define __CHAR_UNSIGNED__ 1
3500 echo $ac_n "checking for working const""... $ac_c" 1>&6
3501 echo "configure:3502: checking for working const" >&5
3502 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3503 echo $ac_n "(cached) $ac_c" 1>&6
3504 else
3505 cat > conftest.$ac_ext <<EOF
3506 #line 3507 "configure"
3507 #include "confdefs.h"
3509 int main() {
3511 /* Ultrix mips cc rejects this. */
3512 typedef int charset[2]; const charset x;
3513 /* SunOS 4.1.1 cc rejects this. */
3514 char const *const *ccp;
3515 char **p;
3516 /* NEC SVR4.0.2 mips cc rejects this. */
3517 struct point {int x, y;};
3518 static struct point const zero = {0,0};
3519 /* AIX XL C 1.02.0.0 rejects this.
3520 It does not let you subtract one const X* pointer from another in an arm
3521 of an if-expression whose if-part is not a constant expression */
3522 const char *g = "string";
3523 ccp = &g + (g ? g-g : 0);
3524 /* HPUX 7.0 cc rejects these. */
3525 ++ccp;
3526 p = (char**) ccp;
3527 ccp = (char const *const *) p;
3528 { /* SCO 3.2v4 cc rejects this. */
3529 char *t;
3530 char const *s = 0 ? (char *) 0 : (char const *) 0;
3532 *t++ = 0;
3534 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3535 int x[] = {25, 17};
3536 const int *foo = &x[0];
3537 ++foo;
3539 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3540 typedef const int *iptr;
3541 iptr p = 0;
3542 ++p;
3544 { /* AIX XL C 1.02.0.0 rejects this saying
3545 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3546 struct s { int j; const int *ap[3]; };
3547 struct s *b; b->j = 5;
3549 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3550 const int foo = 10;
3553 ; return 0; }
3555 if { (eval echo configure:3556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3556 rm -rf conftest*
3557 ac_cv_c_const=yes
3558 else
3559 echo "configure: failed program was:" >&5
3560 cat conftest.$ac_ext >&5
3561 rm -rf conftest*
3562 ac_cv_c_const=no
3564 rm -f conftest*
3567 echo "$ac_t""$ac_cv_c_const" 1>&6
3568 if test $ac_cv_c_const = no; then
3569 cat >> confdefs.h <<\EOF
3570 #define const
3576 works=no
3577 echo $ac_n "checking for working volatile""... $ac_c" 1>&6
3578 echo "configure:3579: checking for working volatile" >&5
3579 cat > conftest.$ac_ext <<EOF
3580 #line 3581 "configure"
3581 #include "confdefs.h"
3583 int main() {
3584 volatile int x; x = 0;
3585 ; return 0; }
3587 if { (eval echo configure:3588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3588 rm -rf conftest*
3589 works=yes
3590 else
3591 echo "configure: failed program was:" >&5
3592 cat conftest.$ac_ext >&5
3593 rm -rf conftest*
3594 cat >> confdefs.h <<\EOF
3595 #define volatile
3599 rm -f conftest*
3600 echo "$ac_t""$works" 1>&6
3602 works=no
3603 echo $ac_n "checking for working signed char""... $ac_c" 1>&6
3604 echo "configure:3605: checking for working signed char" >&5
3605 cat > conftest.$ac_ext <<EOF
3606 #line 3607 "configure"
3607 #include "confdefs.h"
3609 int main() {
3610 signed char c;
3611 ; return 0; }
3613 if { (eval echo configure:3614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3614 rm -rf conftest*
3615 works=yes
3616 else
3617 echo "configure: failed program was:" >&5
3618 cat conftest.$ac_ext >&5
3619 rm -rf conftest*
3620 cat >> confdefs.h <<\EOF
3621 #define signed
3625 rm -f conftest*
3626 echo "$ac_t""$works" 1>&6
3628 have_prototypes=no
3629 echo $ac_n "checking for prototypes""... $ac_c" 1>&6
3630 echo "configure:3631: checking for prototypes" >&5
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 int foo(int x) { return 0; }
3635 int main() {
3636 return foo(10);
3637 ; return 0; }
3639 if { (eval echo configure:3640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3640 rm -rf conftest*
3641 cat >> confdefs.h <<\EOF
3642 #define HAVE_PROTOTYPES 1
3644 have_prototypes=yes
3645 else
3646 echo "configure: failed program was:" >&5
3647 cat conftest.$ac_ext >&5
3649 rm -f conftest*
3650 echo "$ac_t""$have_prototypes" 1>&6
3652 works=no
3653 echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6
3654 echo "configure:3655: checking for variable length prototypes and stdarg.h" >&5
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3659 #include <stdarg.h>
3660 int foo(int x, ...) {
3661 va_list va;
3662 va_start(va, x);
3663 va_arg(va, int);
3664 va_arg(va, char *);
3665 va_arg(va, double);
3666 return 0;
3669 int main() {
3670 return foo(10, "", 3.14);
3671 ; return 0; }
3673 if { (eval echo configure:3674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3674 rm -rf conftest*
3675 cat >> confdefs.h <<\EOF
3676 #define HAVE_STDARG_PROTOTYPES 1
3678 works=yes
3679 else
3680 echo "configure: failed program was:" >&5
3681 cat conftest.$ac_ext >&5
3683 rm -f conftest*
3684 echo "$ac_t""$works" 1>&6
3686 if test "$have_prototypes" = yes; then
3687 bad_prototypes=no
3688 echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6
3689 echo "configure:3690: checking for bad exec* prototypes" >&5
3690 cat > conftest.$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3693 #include <unistd.h>
3694 int main() {
3695 char **t;execve("@",t,t);
3696 ; return 0; }
3698 if { (eval echo configure:3699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3700 else
3701 echo "configure: failed program was:" >&5
3702 cat conftest.$ac_ext >&5
3703 rm -rf conftest*
3704 cat >> confdefs.h <<\EOF
3705 #define BAD_EXEC_PROTOTYPES 1
3707 bad_prototypes=yes
3709 rm -f conftest*
3710 echo "$ac_t""$bad_prototypes" 1>&6
3713 bad_forward=no
3714 echo $ac_n "checking for bad static forward""... $ac_c" 1>&6
3715 echo "configure:3716: checking for bad static forward" >&5
3716 if test "$cross_compiling" = yes; then
3717 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3718 else
3719 cat > conftest.$ac_ext <<EOF
3720 #line 3721 "configure"
3721 #include "confdefs.h"
3723 struct s { int a; int b; };
3724 static struct s foo;
3725 int foobar() {
3726 static int random;
3727 random = (int) &foo;
3728 return random;
3730 static struct s foo = { 1, 2 };
3731 main() {
3732 exit(!((int)&foo == foobar()));
3736 if { (eval echo configure:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3737 then
3739 else
3740 echo "configure: failed program was:" >&5
3741 cat conftest.$ac_ext >&5
3742 rm -fr conftest*
3743 cat >> confdefs.h <<\EOF
3744 #define BAD_STATIC_FORWARD 1
3746 bad_forward=yes
3748 rm -fr conftest*
3751 echo "$ac_t""$bad_forward" 1>&6
3753 va_list_is_array=no
3754 echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6
3755 echo "configure:3756: checking whether va_list is an array" >&5
3756 cat > conftest.$ac_ext <<EOF
3757 #line 3758 "configure"
3758 #include "confdefs.h"
3760 #ifdef HAVE_STDARG_PROTOTYPES
3761 #include <stdarg.h>
3762 #else
3763 #include <varargs.h>
3764 #endif
3766 int main() {
3767 va_list list1, list2; list1 = list2;
3768 ; return 0; }
3770 if { (eval echo configure:3771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3772 else
3773 echo "configure: failed program was:" >&5
3774 cat conftest.$ac_ext >&5
3775 rm -rf conftest*
3776 cat >> confdefs.h <<\EOF
3777 #define VA_LIST_IS_ARRAY 1
3779 va_list_is_array=yes
3781 rm -f conftest*
3782 echo "$ac_t""$va_list_is_array" 1>&6
3784 # checks for system services
3785 # (none yet)
3787 # Linux requires this for correct f.p. operations
3788 echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6
3789 echo "configure:3790: checking for __fpu_control in -lieee" >&5
3790 ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'`
3791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3792 echo $ac_n "(cached) $ac_c" 1>&6
3793 else
3794 ac_save_LIBS="$LIBS"
3795 LIBS="-lieee $LIBS"
3796 cat > conftest.$ac_ext <<EOF
3797 #line 3798 "configure"
3798 #include "confdefs.h"
3799 /* Override any gcc2 internal prototype to avoid an error. */
3800 /* We use char because int might match the return type of a gcc2
3801 builtin and then its argument prototype would still apply. */
3802 char __fpu_control();
3804 int main() {
3805 __fpu_control()
3806 ; return 0; }
3808 if { (eval echo configure:3809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3809 rm -rf conftest*
3810 eval "ac_cv_lib_$ac_lib_var=yes"
3811 else
3812 echo "configure: failed program was:" >&5
3813 cat conftest.$ac_ext >&5
3814 rm -rf conftest*
3815 eval "ac_cv_lib_$ac_lib_var=no"
3817 rm -f conftest*
3818 LIBS="$ac_save_LIBS"
3821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3822 echo "$ac_t""yes" 1>&6
3823 ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3824 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3825 cat >> confdefs.h <<EOF
3826 #define $ac_tr_lib 1
3829 LIBS="-lieee $LIBS"
3831 else
3832 echo "$ac_t""no" 1>&6
3836 # Check for --with-fpectl
3837 echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6
3838 echo "configure:3839: checking for --with-fpectl" >&5
3839 # Check whether --with-fpectl or --without-fpectl was given.
3840 if test "${with_fpectl+set}" = set; then
3841 withval="$with_fpectl"
3843 if test "$withval" != no
3844 then cat >> confdefs.h <<\EOF
3845 #define WANT_SIGFPE_HANDLER 1
3847 echo "$ac_t""yes" 1>&6
3848 else echo "$ac_t""no" 1>&6
3853 # check for --with-libm=...
3855 case $ac_sys_system in
3856 next) ;;
3857 BeOS) ;;
3858 *) LIBM=-lm
3859 esac
3860 echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6
3861 echo "configure:3862: checking for --with-libm=STRING" >&5
3862 # Check whether --with-libm or --without-libm was given.
3863 if test "${with_libm+set}" = set; then
3864 withval="$with_libm"
3866 if test "$withval" = no
3867 then LIBM=
3868 echo "$ac_t""force LIBM empty" 1>&6
3869 elif test "$withval" != yes
3870 then LIBM=$withval
3871 echo "$ac_t""set LIBM=\"$withval\"" 1>&6
3872 else { echo "configure: error: proper usage is --with-libm=STRING" 1>&2; exit 1; }
3874 else
3875 echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6
3879 # check for --with-libc=...
3881 echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6
3882 echo "configure:3883: checking for --with-libc=STRING" >&5
3883 # Check whether --with-libc or --without-libc was given.
3884 if test "${with_libc+set}" = set; then
3885 withval="$with_libc"
3887 if test "$withval" = no
3888 then LIBC=
3889 echo "$ac_t""force LIBC empty" 1>&6
3890 elif test "$withval" != yes
3891 then LIBC=$withval
3892 echo "$ac_t""set LIBC=\"$withval\"" 1>&6
3893 else { echo "configure: error: proper usage is --with-libc=STRING" 1>&2; exit 1; }
3895 else
3896 echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6
3900 # check for hypot() in math library
3901 LIBS_SAVE=$LIBS
3902 LIBS="$LIBS $LIBM"
3903 for ac_func in hypot
3905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3906 echo "configure:3907: checking for $ac_func" >&5
3907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3909 else
3910 cat > conftest.$ac_ext <<EOF
3911 #line 3912 "configure"
3912 #include "confdefs.h"
3913 /* System header to define __stub macros and hopefully few prototypes,
3914 which can conflict with char $ac_func(); below. */
3915 #include <assert.h>
3916 /* Override any gcc2 internal prototype to avoid an error. */
3917 /* We use char because int might match the return type of a gcc2
3918 builtin and then its argument prototype would still apply. */
3919 char $ac_func();
3921 int main() {
3923 /* The GNU C library defines this for functions which it implements
3924 to always fail with ENOSYS. Some functions are actually named
3925 something starting with __ and the normal name is an alias. */
3926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3927 choke me
3928 #else
3929 $ac_func();
3930 #endif
3932 ; return 0; }
3934 if { (eval echo configure:3935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3935 rm -rf conftest*
3936 eval "ac_cv_func_$ac_func=yes"
3937 else
3938 echo "configure: failed program was:" >&5
3939 cat conftest.$ac_ext >&5
3940 rm -rf conftest*
3941 eval "ac_cv_func_$ac_func=no"
3943 rm -f conftest*
3946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3947 echo "$ac_t""yes" 1>&6
3948 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3949 cat >> confdefs.h <<EOF
3950 #define $ac_tr_func 1
3953 else
3954 echo "$ac_t""no" 1>&6
3956 done
3958 for ac_func in hypot
3960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3961 echo "configure:3962: checking for $ac_func" >&5
3962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3963 echo $ac_n "(cached) $ac_c" 1>&6
3964 else
3965 cat > conftest.$ac_ext <<EOF
3966 #line 3967 "configure"
3967 #include "confdefs.h"
3968 /* System header to define __stub macros and hopefully few prototypes,
3969 which can conflict with char $ac_func(); below. */
3970 #include <assert.h>
3971 /* Override any gcc2 internal prototype to avoid an error. */
3972 /* We use char because int might match the return type of a gcc2
3973 builtin and then its argument prototype would still apply. */
3974 char $ac_func();
3976 int main() {
3978 /* The GNU C library defines this for functions which it implements
3979 to always fail with ENOSYS. Some functions are actually named
3980 something starting with __ and the normal name is an alias. */
3981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3982 choke me
3983 #else
3984 $ac_func();
3985 #endif
3987 ; return 0; }
3989 if { (eval echo configure:3990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3990 rm -rf conftest*
3991 eval "ac_cv_func_$ac_func=yes"
3992 else
3993 echo "configure: failed program was:" >&5
3994 cat conftest.$ac_ext >&5
3995 rm -rf conftest*
3996 eval "ac_cv_func_$ac_func=no"
3998 rm -f conftest*
4001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4002 echo "$ac_t""yes" 1>&6
4003 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4004 cat >> confdefs.h <<EOF
4005 #define $ac_tr_func 1
4008 else
4009 echo "$ac_t""no" 1>&6
4010 LIBOBJS="$LIBOBJS ${ac_func}.o"
4012 done
4015 LIBS=$LIBS_SAVE
4017 # check for getopt
4018 echo $ac_n "checking for genuine getopt""... $ac_c" 1>&6
4019 echo "configure:4020: checking for genuine getopt" >&5
4020 if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then
4021 echo $ac_n "(cached) $ac_c" 1>&6
4022 else
4023 if test "$cross_compiling" = yes; then
4024 ac_cv_func_getopt=no
4025 else
4026 cat > conftest.$ac_ext <<EOF
4027 #line 4028 "configure"
4028 #include "confdefs.h"
4029 #include <stdio.h>
4030 extern int optind, opterr, getopt();
4031 extern char* optarg;
4032 int main() {
4033 char* av[] = { "testprog", "parameter", "-fFlag", NULL };
4034 opterr = 0;
4035 if (getopt(3, av, "f:") == 'f') { exit(1); }
4036 exit(0);
4039 if { (eval echo configure:4040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4040 then
4041 ac_cv_func_getopt=yes
4042 else
4043 echo "configure: failed program was:" >&5
4044 cat conftest.$ac_ext >&5
4045 rm -fr conftest*
4046 ac_cv_func_getopt=no
4048 rm -fr conftest*
4052 echo "$ac_t""$ac_cv_func_getopt" 1>&6
4053 test $ac_cv_func_getopt = no && LIBOBJS="$LIBOBJS getopt.o"
4055 # check whether malloc(0) returns NULL or not
4056 echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6
4057 echo "configure:4058: checking what malloc(0) returns" >&5
4058 if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then
4059 echo $ac_n "(cached) $ac_c" 1>&6
4060 else
4061 if test "$cross_compiling" = yes; then
4062 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4063 else
4064 cat > conftest.$ac_ext <<EOF
4065 #line 4066 "configure"
4066 #include "confdefs.h"
4067 #include <stdio.h>
4068 #ifdef HAVE_STDLIB
4069 #include <stdlib.h>
4070 #else
4071 char *malloc(), *realloc();
4072 int *free();
4073 #endif
4074 main() {
4075 char *p;
4076 p = malloc(0);
4077 if (p == NULL) exit(1);
4078 p = realloc(p, 0);
4079 if (p == NULL) exit(1);
4080 free(p);
4081 exit(0);
4084 if { (eval echo configure:4085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4085 then
4086 ac_cv_malloc_zero=nonnull
4087 else
4088 echo "configure: failed program was:" >&5
4089 cat conftest.$ac_ext >&5
4090 rm -fr conftest*
4091 ac_cv_malloc_zero=null
4093 rm -fr conftest*
4098 echo "$ac_t""$ac_cv_malloc_zero" 1>&6
4099 if test "$ac_cv_malloc_zero" = null
4100 then
4101 cat >> confdefs.h <<\EOF
4102 #define MALLOC_ZERO_RETURNS_NULL 1
4107 # generate output files
4108 trap '' 1 2 15
4109 cat > confcache <<\EOF
4110 # This file is a shell script that caches the results of configure
4111 # tests run on this system so they can be shared between configure
4112 # scripts and configure runs. It is not useful on other systems.
4113 # If it contains results you don't want to keep, you may remove or edit it.
4115 # By default, configure uses ./config.cache as the cache file,
4116 # creating it if it does not exist already. You can give configure
4117 # the --cache-file=FILE option to use a different cache file; that is
4118 # what configure does when it calls configure scripts in
4119 # subdirectories, so they share the cache.
4120 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4121 # config.status only pays attention to the cache file if you give it the
4122 # --recheck option to rerun configure.
4125 # The following way of writing the cache mishandles newlines in values,
4126 # but we know of no workaround that is simple, portable, and efficient.
4127 # So, don't put newlines in cache variables' values.
4128 # Ultrix sh set writes to stderr and can't be redirected directly,
4129 # and sets the high bit in the cache file unless we assign to the vars.
4130 (set) 2>&1 |
4131 case `(ac_space=' '; set) 2>&1` in
4132 *ac_space=\ *)
4133 # `set' does not quote correctly, so add quotes (double-quote substitution
4134 # turns \\\\ into \\, and sed turns \\ into \).
4135 sed -n \
4136 -e "s/'/'\\\\''/g" \
4137 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4140 # `set' quotes correctly as required by POSIX, so do not add quotes.
4141 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4143 esac >> confcache
4144 if cmp -s $cache_file confcache; then
4146 else
4147 if test -w $cache_file; then
4148 echo "updating cache $cache_file"
4149 cat confcache > $cache_file
4150 else
4151 echo "not updating unwritable cache $cache_file"
4154 rm -f confcache
4156 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4158 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4159 # Let make expand exec_prefix.
4160 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4162 # Any assignment to VPATH causes Sun make to only execute
4163 # the first set of double-colon rules, so remove it if not needed.
4164 # If there is a colon in the path, we need to keep it.
4165 if test "x$srcdir" = x.; then
4166 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4169 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4171 DEFS=-DHAVE_CONFIG_H
4173 # Without the "./", some shells look in PATH for config.status.
4174 : ${CONFIG_STATUS=./config.status}
4176 echo creating $CONFIG_STATUS
4177 rm -f $CONFIG_STATUS
4178 cat > $CONFIG_STATUS <<EOF
4179 #! /bin/sh
4180 # Generated automatically by configure.
4181 # Run this file to recreate the current configuration.
4182 # This directory was configured as follows,
4183 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4185 # $0 $ac_configure_args
4187 # Compiler output produced by configure, useful for debugging
4188 # configure, is in ./config.log if it exists.
4190 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4191 for ac_option
4193 case "\$ac_option" in
4194 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4195 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4196 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4197 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4198 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4199 exit 0 ;;
4200 -help | --help | --hel | --he | --h)
4201 echo "\$ac_cs_usage"; exit 0 ;;
4202 *) echo "\$ac_cs_usage"; exit 1 ;;
4203 esac
4204 done
4206 ac_given_srcdir=$srcdir
4208 trap 'rm -fr `echo "Makefile \
4209 Objects/Makefile \
4210 Parser/Makefile \
4211 Python/Makefile \
4212 Modules/Makefile.pre \
4213 Modules/Setup.thread config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4215 cat >> $CONFIG_STATUS <<EOF
4217 # Protect against being on the right side of a sed subst in config.status.
4218 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4219 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4220 $ac_vpsub
4221 $extrasub
4222 s%@CFLAGS@%$CFLAGS%g
4223 s%@CPPFLAGS@%$CPPFLAGS%g
4224 s%@CXXFLAGS@%$CXXFLAGS%g
4225 s%@DEFS@%$DEFS%g
4226 s%@LDFLAGS@%$LDFLAGS%g
4227 s%@LIBS@%$LIBS%g
4228 s%@exec_prefix@%$exec_prefix%g
4229 s%@prefix@%$prefix%g
4230 s%@program_transform_name@%$program_transform_name%g
4231 s%@bindir@%$bindir%g
4232 s%@sbindir@%$sbindir%g
4233 s%@libexecdir@%$libexecdir%g
4234 s%@datadir@%$datadir%g
4235 s%@sysconfdir@%$sysconfdir%g
4236 s%@sharedstatedir@%$sharedstatedir%g
4237 s%@localstatedir@%$localstatedir%g
4238 s%@libdir@%$libdir%g
4239 s%@includedir@%$includedir%g
4240 s%@oldincludedir@%$oldincludedir%g
4241 s%@infodir@%$infodir%g
4242 s%@mandir@%$mandir%g
4243 s%@VERSION@%$VERSION%g
4244 s%@MACHDEP@%$MACHDEP%g
4245 s%@SGI_ABI@%$SGI_ABI%g
4246 s%@SET_CCC@%$SET_CCC%g
4247 s%@CC@%$CC%g
4248 s%@LINKCC@%$LINKCC%g
4249 s%@RANLIB@%$RANLIB%g
4250 s%@AR@%$AR%g
4251 s%@INSTALL@%$INSTALL%g
4252 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4253 s%@INSTALL_DATA@%$INSTALL_DATA%g
4254 s%@REALLIBRARY@%$REALLIBRARY%g
4255 s%@LN@%$LN%g
4256 s%@OPT@%$OPT%g
4257 s%@CPP@%$CPP%g
4258 s%@DGUX_IS_BROKEN@%$DGUX_IS_BROKEN%g
4259 s%@SO@%$SO%g
4260 s%@LDSHARED@%$LDSHARED%g
4261 s%@CCSHARED@%$CCSHARED%g
4262 s%@LINKFORSHARED@%$LINKFORSHARED%g
4263 s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g
4264 s%@LDLAST@%$LDLAST%g
4265 s%@DLINCLDIR@%$DLINCLDIR%g
4266 s%@LIBOBJS@%$LIBOBJS%g
4267 s%@LIBM@%$LIBM%g
4268 s%@LIBC@%$LIBC%g
4270 CEOF
4273 cat >> $CONFIG_STATUS <<\EOF
4275 # Split the substitutions into bite-sized pieces for seds with
4276 # small command number limits, like on Digital OSF/1 and HP-UX.
4277 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4278 ac_file=1 # Number of current file.
4279 ac_beg=1 # First line for current file.
4280 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4281 ac_more_lines=:
4282 ac_sed_cmds=""
4283 while $ac_more_lines; do
4284 if test $ac_beg -gt 1; then
4285 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4286 else
4287 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4289 if test ! -s conftest.s$ac_file; then
4290 ac_more_lines=false
4291 rm -f conftest.s$ac_file
4292 else
4293 if test -z "$ac_sed_cmds"; then
4294 ac_sed_cmds="sed -f conftest.s$ac_file"
4295 else
4296 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4298 ac_file=`expr $ac_file + 1`
4299 ac_beg=$ac_end
4300 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4302 done
4303 if test -z "$ac_sed_cmds"; then
4304 ac_sed_cmds=cat
4308 cat >> $CONFIG_STATUS <<EOF
4310 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
4311 Objects/Makefile \
4312 Parser/Makefile \
4313 Python/Makefile \
4314 Modules/Makefile.pre \
4315 Modules/Setup.thread"}
4317 cat >> $CONFIG_STATUS <<\EOF
4318 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4319 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4320 case "$ac_file" in
4321 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4322 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4323 *) ac_file_in="${ac_file}.in" ;;
4324 esac
4326 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4328 # Remove last slash and all that follows it. Not all systems have dirname.
4329 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4330 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4331 # The file is in a subdirectory.
4332 test ! -d "$ac_dir" && mkdir "$ac_dir"
4333 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4334 # A "../" for each directory in $ac_dir_suffix.
4335 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4336 else
4337 ac_dir_suffix= ac_dots=
4340 case "$ac_given_srcdir" in
4341 .) srcdir=.
4342 if test -z "$ac_dots"; then top_srcdir=.
4343 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4344 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4345 *) # Relative path.
4346 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4347 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4348 esac
4351 echo creating "$ac_file"
4352 rm -f "$ac_file"
4353 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4354 case "$ac_file" in
4355 *Makefile*) ac_comsub="1i\\
4356 # $configure_input" ;;
4357 *) ac_comsub= ;;
4358 esac
4360 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4361 sed -e "$ac_comsub
4362 s%@configure_input@%$configure_input%g
4363 s%@srcdir@%$srcdir%g
4364 s%@top_srcdir@%$top_srcdir%g
4365 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4366 fi; done
4367 rm -f conftest.s*
4369 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4370 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4372 # ac_d sets the value in "#define NAME VALUE" lines.
4373 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4374 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4375 ac_dC='\3'
4376 ac_dD='%g'
4377 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4378 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4379 ac_uB='\([ ]\)%\1#\2define\3'
4380 ac_uC=' '
4381 ac_uD='\4%g'
4382 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4383 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4384 ac_eB='$%\1#\2define\3'
4385 ac_eC=' '
4386 ac_eD='%g'
4388 if test "${CONFIG_HEADERS+set}" != set; then
4390 cat >> $CONFIG_STATUS <<EOF
4391 CONFIG_HEADERS="config.h"
4393 cat >> $CONFIG_STATUS <<\EOF
4395 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4396 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4397 case "$ac_file" in
4398 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4399 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4400 *) ac_file_in="${ac_file}.in" ;;
4401 esac
4403 echo creating $ac_file
4405 rm -f conftest.frag conftest.in conftest.out
4406 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4407 cat $ac_file_inputs > conftest.in
4411 # Transform confdefs.h into a sed script conftest.vals that substitutes
4412 # the proper values into config.h.in to produce config.h. And first:
4413 # Protect against being on the right side of a sed subst in config.status.
4414 # Protect against being in an unquoted here document in config.status.
4415 rm -f conftest.vals
4416 cat > conftest.hdr <<\EOF
4417 s/[\\&%]/\\&/g
4418 s%[\\$`]%\\&%g
4419 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4420 s%ac_d%ac_u%gp
4421 s%ac_u%ac_e%gp
4423 sed -n -f conftest.hdr confdefs.h > conftest.vals
4424 rm -f conftest.hdr
4426 # This sed command replaces #undef with comments. This is necessary, for
4427 # example, in the case of _POSIX_SOURCE, which is predefined and required
4428 # on some systems where configure will not decide to define it.
4429 cat >> conftest.vals <<\EOF
4430 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4433 # Break up conftest.vals because some shells have a limit on
4434 # the size of here documents, and old seds have small limits too.
4436 rm -f conftest.tail
4437 while :
4439 ac_lines=`grep -c . conftest.vals`
4440 # grep -c gives empty output for an empty file on some AIX systems.
4441 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4442 # Write a limited-size here document to conftest.frag.
4443 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4444 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4445 echo 'CEOF
4446 sed -f conftest.frag conftest.in > conftest.out
4447 rm -f conftest.in
4448 mv conftest.out conftest.in
4449 ' >> $CONFIG_STATUS
4450 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4451 rm -f conftest.vals
4452 mv conftest.tail conftest.vals
4453 done
4454 rm -f conftest.vals
4456 cat >> $CONFIG_STATUS <<\EOF
4457 rm -f conftest.frag conftest.h
4458 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4459 cat conftest.in >> conftest.h
4460 rm -f conftest.in
4461 if cmp -s $ac_file conftest.h 2>/dev/null; then
4462 echo "$ac_file is unchanged"
4463 rm -f conftest.h
4464 else
4465 # Remove last slash and all that follows it. Not all systems have dirname.
4466 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4467 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4468 # The file is in a subdirectory.
4469 test ! -d "$ac_dir" && mkdir "$ac_dir"
4471 rm -f $ac_file
4472 mv conftest.h $ac_file
4474 fi; done
4477 cat >> $CONFIG_STATUS <<EOF
4480 cat >> $CONFIG_STATUS <<\EOF
4482 exit 0
4484 chmod +x $CONFIG_STATUS
4485 rm -fr confdefs* $ac_clean_files
4486 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1