3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.9
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Setup a symbol for the null device so that on NT a file can be used
13 if test "`uname -s`" = "Windows_NT"; then
16 NULLDEVR=`pwd`/nulldevr
18 NULLDEVW=`pwd`/nulldevw
19 # See if a root device has been specified
21 if test -z "$ROOTDRIVE"; then
25 # Find the root of the MKS toolkit
27 if test -z "$MKSROOT"; then
28 if test -d $ROOTDRIVE:/mks/mksnt; then
29 MKSROOT=$ROOTDRIVE:/mks/mksnt
30 elif test -d $ROOTDRIVE:/mksnt; then
31 MKSROOT=$ROOTDRIVE:/mksnt
33 MKSROOT=$ROOTDRIVE:/mksnotfound
43 ac_default_prefix=/usr/local
44 # Any additions from configure.in:
46 --with-global Build an executable for global export(outside USA)"
48 --with-domestic Build an executable for global export(outside USA)"
50 --with-purify Build an executable with Purify
51 (Pure Software's tool for finding memory
54 --with-purecov Build an executable with PureCoverage
55 (Pure Software's tool for doing test coverage
58 --with-quantify Build an executable with Quantify
59 (Pure Software's tool for doing performance
62 --with-profile Build with profiling"
64 --with-nodebug Build a production version with no debugging code"
66 --with-noassert Build a production version with no ASSERTs"
68 --with-notest Build a production version with no testing code"
70 --with-omireleases Use OMI standard release paths"
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
76 cache_file=./config.cache
85 program_transform_name=s,x,x,
93 if test "`uname -s`" = Windows_NT; then
94 bindir='${exec_prefix}\\bin'
95 sbindir='${exec_prefix}\\sbin'
96 libexecdir='${exec_prefix}\\libexec'
97 datadir='${prefix}\\share'
98 sysconfdir='${prefix}\\etc'
99 sharedstatedir='${prefix}\\com'
100 localstatedir='${prefix}\\var'
101 libdir='${exec_prefix}\\lib'
102 includedir='${prefix}\\include'
103 oldincludedir='\\msdev\\include'
104 infodir='${prefix}\\info'
105 mandir='${prefix}\\man'
107 bindir='${exec_prefix}/bin'
108 sbindir='${exec_prefix}/sbin'
109 libexecdir='${exec_prefix}/libexec'
110 datadir='${prefix}/share'
111 sysconfdir='${prefix}/etc'
112 sharedstatedir='${prefix}/com'
113 localstatedir='${prefix}/var'
114 libdir='${exec_prefix}/lib'
115 includedir='${prefix}/include'
116 oldincludedir='/usr/include'
117 infodir='${prefix}/info'
118 mandir='${prefix}/man'
120 # Initialize some other variables.
128 # If the previous option needs an argument, assign it.
129 if test -n "$ac_prev"; then
130 eval "$ac_prev=\$ac_option"
136 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
140 # Accept the important Cygnus configure options, so we can diagnose typos.
144 -bindir | --bindir | --bindi | --bind | --bin | --bi)
146 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
147 bindir="$ac_optarg" ;;
149 -build | --build | --buil | --bui | --bu)
151 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
152 build="$ac_optarg" ;;
154 -cache-file | --cache-file | --cache-fil | --cache-fi \
155 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
156 ac_prev=cache_file ;;
157 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
158 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
159 cache_file="$ac_optarg" ;;
161 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
163 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
165 datadir="$ac_optarg" ;;
167 -disable-* | --disable-*)
168 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
169 # Reject names that are not valid shell variable names.
170 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
171 { echo "configure: error: $ac_feature: invalid feature name" 1>&2;
172 if test -z "$IGNORE_ERRORS"; then
176 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
177 eval "enable_${ac_feature}=no" ;;
179 -enable-* | --enable-*)
180 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
181 # Reject names that are not valid shell variable names.
182 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
183 { echo "configure: error: $ac_feature: invalid feature name" 1>&2;
184 if test -z "$IGNORE_ERRORS"; then
188 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
193 eval "enable_${ac_feature}='$ac_optarg'" ;;
195 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
196 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
197 | --exec | --exe | --ex)
198 ac_prev=exec_prefix ;;
199 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
200 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
201 | --exec=* | --exe=* | --ex=*)
202 exec_prefix="$ac_optarg" ;;
204 -gas | --gas | --ga | --g)
205 # Obsolete; use --with-gas.
208 -help | --help | --hel | --he)
209 # Omit some internal or obsolete options to make the list less imposing.
210 # This message is too long to be a string in the A/UX 3.1 sh.
212 Usage: configure [options] [host]
213 Options: [defaults in brackets after descriptions]
215 --cache-file=FILE cache test results in FILE
216 --help print this message
217 --no-create do not create output files
218 --quiet, --silent do not print \`checking...' messages
219 --version print the version of autoconf that created configure
220 Directory and file names:
221 --prefix=PREFIX install architecture-independent files in PREFIX
223 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
225 --bindir=DIR user executables in DIR [EPREFIX/bin]
226 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
227 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
228 --datadir=DIR read-only architecture-independent data in DIR
230 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
231 --sharedstatedir=DIR modifiable architecture-independent data in DIR
233 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
234 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
235 --includedir=DIR C header files in DIR [PREFIX/include]
236 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
237 --infodir=DIR info documentation in DIR [PREFIX/info]
238 --mandir=DIR man documentation in DIR [PREFIX/man]
239 --srcdir=DIR find the sources in DIR [configure dir or ..]
240 --program-prefix=PREFIX prepend PREFIX to installed program names
241 --program-suffix=SUFFIX append SUFFIX to installed program names
242 --program-transform-name=PROGRAM
243 run sed PROGRAM on installed program names
247 --build=BUILD configure for building on BUILD [BUILD=HOST]
248 --host=HOST configure for HOST [guessed]
249 --target=TARGET configure for TARGET [TARGET=HOST]
250 Features and packages:
251 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
252 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
253 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
254 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
255 --x-includes=DIR X include files are in DIR
256 --x-libraries=DIR X library files are in DIR
258 if test -n "$ac_help"; then
259 echo "--enable and --with options recognized:$ac_help"
263 -host | --host | --hos | --ho)
265 -host=* | --host=* | --hos=* | --ho=*)
268 -includedir | --includedir | --includedi | --included | --include \
269 | --includ | --inclu | --incl | --inc)
270 ac_prev=includedir ;;
271 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
272 | --includ=* | --inclu=* | --incl=* | --inc=*)
273 includedir="$ac_optarg" ;;
275 -infodir | --infodir | --infodi | --infod | --info | --inf)
277 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
278 infodir="$ac_optarg" ;;
280 -libdir | --libdir | --libdi | --libd)
282 -libdir=* | --libdir=* | --libdi=* | --libd=*)
283 libdir="$ac_optarg" ;;
285 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
286 | --libexe | --libex | --libe)
287 ac_prev=libexecdir ;;
288 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
289 | --libexe=* | --libex=* | --libe=*)
290 libexecdir="$ac_optarg" ;;
292 -localstatedir | --localstatedir | --localstatedi | --localstated \
293 | --localstate | --localstat | --localsta | --localst \
294 | --locals | --local | --loca | --loc | --lo)
295 ac_prev=localstatedir ;;
296 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
297 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
298 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
299 localstatedir="$ac_optarg" ;;
301 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
303 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
304 mandir="$ac_optarg" ;;
307 # Obsolete; use --without-fp.
310 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
314 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
315 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
318 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
319 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
320 | --oldin | --oldi | --old | --ol | --o)
321 ac_prev=oldincludedir ;;
322 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
323 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
324 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
325 oldincludedir="$ac_optarg" ;;
327 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
329 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
330 prefix="$ac_optarg" ;;
332 -program-prefix | --program-prefix | --program-prefi | --program-pref \
333 | --program-pre | --program-pr | --program-p)
334 ac_prev=program_prefix ;;
335 -program-prefix=* | --program-prefix=* | --program-prefi=* \
336 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
337 program_prefix="$ac_optarg" ;;
339 -program-suffix | --program-suffix | --program-suffi | --program-suff \
340 | --program-suf | --program-su | --program-s)
341 ac_prev=program_suffix ;;
342 -program-suffix=* | --program-suffix=* | --program-suffi=* \
343 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
344 program_suffix="$ac_optarg" ;;
346 -program-transform-name | --program-transform-name \
347 | --program-transform-nam | --program-transform-na \
348 | --program-transform-n | --program-transform- \
349 | --program-transform | --program-transfor \
350 | --program-transfo | --program-transf \
351 | --program-trans | --program-tran \
352 | --progr-tra | --program-tr | --program-t)
353 ac_prev=program_transform_name ;;
354 -program-transform-name=* | --program-transform-name=* \
355 | --program-transform-nam=* | --program-transform-na=* \
356 | --program-transform-n=* | --program-transform-=* \
357 | --program-transform=* | --program-transfor=* \
358 | --program-transfo=* | --program-transf=* \
359 | --program-trans=* | --program-tran=* \
360 | --progr-tra=* | --program-tr=* | --program-t=*)
361 program_transform_name="$ac_optarg" ;;
363 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
364 | -silent | --silent | --silen | --sile | --sil)
367 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
369 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
371 sbindir="$ac_optarg" ;;
373 -sharedstatedir | --sharedstatedir | --sharedstatedi \
374 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
375 | --sharedst | --shareds | --shared | --share | --shar \
377 ac_prev=sharedstatedir ;;
378 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
379 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
380 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
382 sharedstatedir="$ac_optarg" ;;
384 -site | --site | --sit)
386 -site=* | --site=* | --sit=*)
389 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
391 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
392 srcdir="$ac_optarg" ;;
394 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
395 | --syscon | --sysco | --sysc | --sys | --sy)
396 ac_prev=sysconfdir ;;
397 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
398 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
399 sysconfdir="$ac_optarg" ;;
401 -target | --target | --targe | --targ | --tar | --ta | --t)
403 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
404 target="$ac_optarg" ;;
406 -v | -verbose | --verbose | --verbos | --verbo | --verb)
409 -version | --version | --versio | --versi | --vers)
410 echo "configure generated by autoconf version 2.9"
414 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2;
418 if test -z "$IGNORE_ERRORS"; then
422 ac_package=`echo $ac_package| sed 's/-/_/g'`
427 eval "with_${ac_package}='$ac_optarg'" ;;
429 -without-* | --without-*)
430 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
431 # Reject names that are not valid shell variable names.
432 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
433 { echo "configure: error: $ac_package: invalid package name" 1>&2;
434 if test -z "$IGNORE_ERRORS"; then
438 ac_package=`echo $ac_package| sed 's/-/_/g'`
439 eval "with_${ac_package}=no" ;;
442 # Obsolete; use --with-x.
445 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
446 | --x-incl | --x-inc | --x-in | --x-i)
447 ac_prev=x_includes ;;
448 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
449 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
450 x_includes="$ac_optarg" ;;
452 -x-libraries | --x-libraries | --x-librarie | --x-librari \
453 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
454 ac_prev=x_libraries ;;
455 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
456 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
457 x_libraries="$ac_optarg" ;;
459 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2;
460 if test -z "$IGNORE_ERRORS"; then
466 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
467 echo "configure: warning: $ac_option: invalid host type" 1>&2
469 if test "x$nonopt" != xNONE; then
470 { echo "configure: error: can only configure for one host and one target at a time" 1>&2;
471 if test -z "$IGNORE_ERRORS"; then
481 if test -n "$ac_prev"; then
482 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2;
483 if test -z "$IGNORE_ERRORS"; then
488 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
490 # File descriptor usage:
493 # 2 errors and warnings
494 # 3 some systems may open it to /dev/tty
495 # 4 used on the Kubota Titan
496 # 6 checking for... messages and results
497 # 5 compiler messages saved in config.log
498 if test "$silent" = yes; then
506 This file contains any messages produced by compilers while
507 running configure, to aid debugging if configure makes a mistake.
510 # Strip out --no-create and --no-recursion so they do not pile up.
511 # Also quote any args containing shell metacharacters.
516 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
517 | --no-cr | --no-c) ;;
518 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
519 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
520 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
521 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
522 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
527 # Only set LANG and LC_ALL to C if already set.
528 # These must not be set unconditionally because not all systems understand
529 # e.g. LANG=C (notably SCO).
530 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
531 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
533 # confdefs.h avoids OS command line length limits that DEFS can exceed.
534 rm -rf conftest* confdefs.h
535 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
538 # A filename unique to this package, relative to the directory that
539 # configure is in, which we can look for to find out if srcdir is correct.
540 ac_unique_file=libfcgi/fcgiapp.c
542 # Find the source files, if location was not specified.
543 if test -z "$srcdir"; then
544 ac_srcdir_defaulted=yes
545 # Try the directory containing this script, then its parent.
547 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
548 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
550 if test ! -r $srcdir/$ac_unique_file; then
554 ac_srcdir_defaulted=no
556 if test ! -r $srcdir/$ac_unique_file; then
557 if test "$ac_srcdir_defaulted" = yes; then
558 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2;
559 if test -z "$IGNORE_ERRORS"; then
563 { echo "configure: error: can not find sources in $srcdir" 1>&2;
564 if test -z "$IGNORE_ERRORS"; then
569 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
571 # Prefer explicitly selected file to automatically selected ones.
572 if test -z "$CONFIG_SITE"; then
573 if test "x$prefix" != xNONE; then
574 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
576 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
579 for ac_site_file in $CONFIG_SITE; do
580 if test -r "$ac_site_file"; then
581 echo "loading site script $ac_site_file"
586 if test -r "$cache_file"; then
587 echo "loading cache $cache_file"
590 echo "creating cache $cache_file"
595 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
596 ac_cpp='$CPP $CPPFLAGS'
597 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
598 if test "`uname -s`" = "Windows_NT"; then
599 conftest_name=conftest.exe
600 ac_link='${CC-cc} -o $conftest_name $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
602 conftest_name=conftest
603 ac_link='${CC-cc} -o $conftest_name $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
606 if (echo "testing\c"; echo 1,2,3) | grep c >$NULLDEVW; then
607 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
608 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >$NULLDEVW; then
615 ac_n= ac_c='\c' ac_t=
620 #--------------------------------------------------------------------
621 # Perform common OMI configuration. This will include:
622 # 1) Choosing compiler and associated build options.
623 # 2) Checking for various common build associated programs.
624 # 3) Determining the best build options for this platform.
625 # 4) Checking for certain common header files.
626 # 5) Checking for exports/global switch.
627 # 6) Importing OMI dependencies (header files, libraries, and binaries).
628 # 7) Checking for existence of various system libraries and routines.
629 #--------------------------------------------------------------------
631 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
632 if test -f $ac_dir/install-sh; then
634 ac_install_sh="$ac_aux_dir/install-sh -c"
636 elif test -f $ac_dir/install.sh; then
638 ac_install_sh="$ac_aux_dir/install.sh -c"
642 if test -z "$ac_aux_dir"; then
643 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2;
644 if test -z "$IGNORE_ERRORS"; then
648 ac_config_guess=$ac_aux_dir/config.guess
649 ac_config_sub=$ac_aux_dir/config.sub
650 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
652 # If we cannot run a trivial program, we must be cross compiling.
653 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
654 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
655 echo $ac_n "(cached) $ac_c" 1>&6
657 if test "$cross_compiling" = yes; then
660 cat > conftest.$ac_ext <<EOF
661 #line 662 "configure"
662 #include "confdefs.h"
665 { (eval echo configure:666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
666 if test -s $conftest_name && (./$conftest_name; exit) 2>$NULLDEVW; then
675 echo "$ac_t""$ac_cv_c_cross" 1>&6
676 cross_compiling=$ac_cv_c_cross
691 # Find a good install program. We prefer a C program (faster),
692 # so one script is as good as another. But avoid the broken or
693 # incompatible versions:
694 # SysV /etc/install, /usr/sbin/install
695 # SunOS /usr/etc/install
698 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
699 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
700 # ./install, which can be erroneously created by make from ./install.sh.
701 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
702 if test -z "$INSTALL"; then
703 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
704 echo $ac_n "(cached) $ac_c" 1>&6
706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
707 for ac_dir in $PATH; do
708 # Account for people who put trailing slashes in PATH elements.
710 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
712 # OSF1 and SCO ODT 3.0 have their own names for install.
713 for ac_prog in ginstall installbsd scoinst install; do
714 if test -f $ac_dir/$ac_prog; then
715 if test $ac_prog = install &&
716 grep dspmsg $ac_dir/$ac_prog >$NULLDEVW 2>&1; then
717 # AIX install. It has an incompatible calling convention.
718 # OSF/1 installbsd also uses dspmsg, but is usable.
721 ac_cv_path_install="$ac_dir/$ac_prog -c"
732 if test "${ac_cv_path_install+set}" = set; then
733 INSTALL="$ac_cv_path_install"
735 # As a last resort, use the slow shell script. We don't cache a
736 # path for INSTALL within a source directory, because that will
737 # break other packages using the cache if that directory is
738 # removed, or if the path is relative.
739 INSTALL="$ac_install_sh"
742 if test "`uname -s`" = Windows_NT; then
745 echo "$ac_t""$INSTALL" 1>&6
747 if test "`uname -s`" = Windows_NT; then
748 INSTALL_PROGRAM="copy"
751 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
752 # It thinks the first close brace ends the variable substitution.
753 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
754 test -z "$INSTALL_DATA" && INSTALL_DATA='$(INSTALL) -m 644'
759 # Extract the first word of "$ac_prog", so it can be a program name with args.
760 set dummy $ac_prog; ac_word=$2
761 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
762 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
763 echo $ac_n "(cached) $ac_c" 1>&6
767 ac_cv_path_AR="$AR" # Let the user override the test with a path.
770 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
771 for ac_dir in $PATH; do
772 test -z "$ac_dir" && ac_dir=.
773 if test -f $ac_dir/$ac_word; then
774 ac_cv_path_AR="$ac_dir/$ac_word"
783 if test -n "$AR"; then
784 echo "$ac_t""$AR" 1>&6
786 echo "$ac_t""no" 1>&6
789 test -n "$AR" && break
792 # Extract the first word of "ranlib", so it can be a program name with args.
793 set dummy ranlib; ac_word=$2
794 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
795 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
796 echo $ac_n "(cached) $ac_c" 1>&6
798 if test -n "$RANLIB"; then
799 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
802 for ac_dir in $PATH; do
803 test -z "$ac_dir" && ac_dir=.
804 if test -f $ac_dir/$ac_word; then
805 ac_cv_prog_RANLIB="ranlib"
810 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
813 RANLIB="$ac_cv_prog_RANLIB"
814 if test -n "$RANLIB"; then
815 echo "$ac_t""$RANLIB" 1>&6
817 echo "$ac_t""no" 1>&6
830 if test -n "$CC"; then
831 echo "checking Compiler selection overridden via CC env variable '$CC'" 1>&6
833 case "`uname -sr`" in
835 # look for the native HP-UX "c89" compiler
836 # Extract the first word of "c89", so it can be a program name with args.
837 set dummy c89; ac_word=$2
838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
839 if eval "test \"`echo '$''{'ac_cv_prog_acaux_native_cc'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
842 if test -n "$acaux_native_cc"; then
843 ac_cv_prog_acaux_native_cc="$acaux_native_cc" # Let the user override the test.
845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
846 for ac_dir in $PATH; do
847 test -z "$ac_dir" && ac_dir=.
848 if test -f $ac_dir/$ac_word; then
849 ac_cv_prog_acaux_native_cc="c89"
854 test -z "$ac_cv_prog_acaux_native_cc" && ac_cv_prog_acaux_native_cc="c89"
857 acaux_native_cc="$ac_cv_prog_acaux_native_cc"
858 if test -n "$acaux_native_cc"; then
859 echo "$ac_t""$acaux_native_cc" 1>&6
861 echo "$ac_t""no" 1>&6
865 if test "`uname -r`" = "B.10.10"; then
866 hp_extra_flags="-D_XOPEN_SOURCE_EXTENDED"
868 # if we found the compiler, set the flags
869 if test "$acaux_native_cc" = "c89"; then
870 acaux_ccdefs="-Wl,+n +DA1.0 +DS1.0 -lc -l:libdld.sl -Wl,-E -D_HPUX_SOURCE"
872 # set CPP for HP-UX here, too
873 CPP="c89 -E -D_HPUX_SOURCE"
878 # look for the native Solaris "cc" compiler
879 # Extract the first word of "cc", so it can be a program name with args.
880 set dummy cc; ac_word=$2
881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
882 if eval "test \"`echo '$''{'ac_cv_prog_acaux_native_cc'+set}'`\" = set"; then
883 echo $ac_n "(cached) $ac_c" 1>&6
885 if test -n "$acaux_native_cc"; then
886 ac_cv_prog_acaux_native_cc="$acaux_native_cc" # Let the user override the test.
888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
889 for ac_dir in $PATH; do
890 test -z "$ac_dir" && ac_dir=.
891 if test -f $ac_dir/$ac_word; then
892 ac_cv_prog_acaux_native_cc="cc"
897 test -z "$ac_cv_prog_acaux_native_cc" && ac_cv_prog_acaux_native_cc="cc"
900 acaux_native_cc="$ac_cv_prog_acaux_native_cc"
901 if test -n "$acaux_native_cc"; then
902 echo "$ac_t""$acaux_native_cc" 1>&6
904 echo "$ac_t""no" 1>&6
907 # if we found the compiler, make sure it's the right one
908 if test "$acaux_native_cc" = "cc"; then
909 echo $ac_n "checking if cc is a native Solaris compiler""... $ac_c" 1>&6
910 cat > conftest.c <<EOF
915 cc -E conftest.c > conftest.out 2>&1
916 if egrep yes conftest.out >/dev/null 2>&1; then
918 echo "$ac_t""yes" 1>&6
920 echo "$ac_t""no" 1>&6
921 echo "configure: warning: 'cc' is NOT the right native Solaris compiler.
922 Make sure you have /opt/SUNWspro/SC*/bin (or a link to it) in your path." 1>&2
926 # check for the berkley env. shell - don't want it
927 for dir in `echo $PATH | sed -e "s/\:/ /g"`
929 if test -x "$dir/cc"; then
930 if egrep SUNWspro < `echo $dir/cc` > /dev/null 2>&1; then
931 break # SUNWpro version used - OK!
933 if egrep ucb < `echo $dir/cc` > /dev/null 2>&1; then
934 echo "configure: warning: You appear to be using the Berkley
935 compatibility shell around the compiler. This shell includes Berkley
936 headers ahead of the the SVR4 headers and should not be used. Make sure
937 your path includes /opt/SUNWspro/bin ahead of /usr/ucb." 1>&2
946 # Extract the first word of "cc", so it can be a program name with args.
947 set dummy cc; ac_word=$2
948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
949 if eval "test \"`echo '$''{'ac_cv_prog_acaux_native_cc'+set}'`\" = set"; then
950 echo $ac_n "(cached) $ac_c" 1>&6
952 if test -n "$acaux_native_cc"; then
953 ac_cv_prog_acaux_native_cc="$acaux_native_cc" # Let the user override the test.
955 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
956 for ac_dir in $PATH; do
957 test -z "$ac_dir" && ac_dir=.
958 if test -f $ac_dir/$ac_word; then
959 ac_cv_prog_acaux_native_cc="cc"
964 test -z "$ac_cv_prog_acaux_native_cc" && ac_cv_prog_acaux_native_cc="gcc"
967 acaux_native_cc="$ac_cv_prog_acaux_native_cc"
968 if test -n "$acaux_native_cc"; then
969 echo "$ac_t""$acaux_native_cc" 1>&6
971 echo "$ac_t""no" 1>&6
976 # Extract the first word of "cc", so it can be a program name with args.
977 set dummy cc; ac_word=$2
978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
979 if eval "test \"`echo '$''{'ac_cv_prog_acaux_native_cc'+set}'`\" = set"; then
980 echo $ac_n "(cached) $ac_c" 1>&6
982 if test -n "$acaux_native_cc"; then
983 ac_cv_prog_acaux_native_cc="$acaux_native_cc" # Let the user override the test.
985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
986 for ac_dir in $PATH; do
987 test -z "$ac_dir" && ac_dir=.
988 if test -f $ac_dir/$ac_word; then
989 ac_cv_prog_acaux_native_cc="cc"
994 test -z "$ac_cv_prog_acaux_native_cc" && ac_cv_prog_acaux_native_cc="gcc"
997 acaux_native_cc="$ac_cv_prog_acaux_native_cc"
998 if test -n "$acaux_native_cc"; then
999 echo "$ac_t""$acaux_native_cc" 1>&6
1001 echo "$ac_t""no" 1>&6
1006 # Extract the first word of "gcc", so it can be a program name with args.
1007 set dummy gcc; ac_word=$2
1008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1009 if eval "test \"`echo '$''{'ac_cv_prog_acaux_native_cc'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1012 if test -n "$acaux_native_cc"; then
1013 ac_cv_prog_acaux_native_cc="$acaux_native_cc" # Let the user override the test.
1015 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1016 for ac_dir in $PATH; do
1017 test -z "$ac_dir" && ac_dir=.
1018 if test -f $ac_dir/$ac_word; then
1019 ac_cv_prog_acaux_native_cc="gcc"
1024 test -z "$ac_cv_prog_acaux_native_cc" && ac_cv_prog_acaux_native_cc="cc"
1027 acaux_native_cc="$ac_cv_prog_acaux_native_cc"
1028 if test -n "$acaux_native_cc"; then
1029 echo "$ac_t""$acaux_native_cc" 1>&6
1031 echo "$ac_t""no" 1>&6
1037 if eval which cl | grep -i msvc2 > $NULLDEVW; then
1038 if test "$with_nodebug" = "yes"; then
1039 acaux_ccdefs="-O2 -W3"
1041 acaux_ccdefs="-W3 -Zi -Od"
1045 if test "$with_nodebug" = "yes"; then
1046 acaux_ccdefs="-O2 -W3"
1048 acaux_ccdefs="-W3 -Zi -Od"
1053 acaux_native_cc=$MKSROOT/cc.exe
1058 SHELL=$MKSROOT/sh.exe
1059 CONFIG_SHELL=$MKSROOT/sh.exe
1067 # if native compiler, set CC, else use GCC
1068 if test -n "$acaux_native_cc"; then
1069 CC="$acaux_native_cc $acaux_ccdefs"
1071 # Extract the first word of "gcc", so it can be a program name with args.
1072 set dummy gcc; ac_word=$2
1073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1074 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1075 echo $ac_n "(cached) $ac_c" 1>&6
1077 if test -n "$CC"; then
1078 ac_cv_prog_CC="$CC" # Let the user override the test.
1080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1081 for ac_dir in $PATH; do
1082 test -z "$ac_dir" && ac_dir=.
1083 if test -f $ac_dir/$ac_word; then
1092 if test -n "$CC"; then
1093 echo "$ac_t""$CC" 1>&6
1095 echo "$ac_t""no" 1>&6
1098 if test -z "$CC"; then
1099 if test "`uname -s`" = "Windows_NT"; then
1102 # Extract the first word of "cc", so it can be a program name with args.
1103 set dummy cc; ac_word=$2
1104 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1105 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1106 echo $ac_n "(cached) $ac_c" 1>&6
1108 if test -n "$CC"; then
1109 ac_cv_prog_CC="$CC" # Let the user override the test.
1111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1113 for ac_dir in $PATH; do
1114 test -z "$ac_dir" && ac_dir=.
1115 if test -f $ac_dir/$ac_word; then
1116 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1117 ac_prog_rejected=yes
1125 if test $ac_prog_rejected = yes; then
1126 # We found a bogon in the path, so make sure we never use it.
1127 set dummy $ac_cv_prog_CC
1129 if test $# -gt 0; then
1130 # We chose a different compiler from the bogus one.
1131 # However, it has the same basename, so the bogon will be chosen
1132 # first if we set CC to just the basename; use the full file name.
1134 set dummy "$ac_dir/$ac_word" "$@"
1142 if test -n "$CC"; then
1143 echo "$ac_t""$CC" 1>&6
1145 echo "$ac_t""no" 1>&6
1148 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2;
1149 if test -z "$IGNORE_ERRORS"; then
1155 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1156 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&6
1159 cat > conftest.c <<EOF
1164 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >$NULLDEVW 2>&1; then
1171 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1172 if test $ac_cv_prog_gcc = yes; then
1174 if test "${CFLAGS+set}" != set; then
1175 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1176 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1179 echo 'void f(){}' > conftest.c
1180 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1181 ac_cv_prog_gcc_g=yes
1189 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
1190 if test $ac_cv_prog_gcc_g = yes; then
1198 test "${CFLAGS+set}" = set || CFLAGS="-g"
1203 if test -z "$CPP"; then
1204 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1205 # On Suns, sometimes $CPP names a directory.
1206 if test -n "$CPP" && test -d "$CPP"; then
1209 if test -z "$CPP"; then
1210 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1213 # This must be in double quotes, not single quotes, because CPP may get
1214 # substituted into the Makefile and "${CC-cc}" will confuse make.
1216 # On the NeXT, cc -E runs the code through the compiler's parser,
1217 # not just through cpp.
1218 cat > conftest.$ac_ext <<EOF
1219 #line 1220 "configure"
1220 #include "confdefs.h"
1224 ac_try="$ac_cpp conftest.$ac_ext >$NULLDEVW 2>conftest.out"
1225 { (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1226 if test "`uname -s`" = "Windows_NT"; then
1227 ac_err=`egrep '^.*error' conftest.out`
1229 ac_err=`grep -v '^ *+' conftest.out`
1231 if test -z "$ac_err"; then
1236 CPP="${CC-cc} -E -traditional-cpp"
1237 cat > conftest.$ac_ext <<EOF
1238 #line 1239 "configure"
1239 #include "confdefs.h"
1243 ac_try="$ac_cpp conftest.$ac_ext >$NULLDEVW 2>conftest.out"
1244 { (eval echo configure:1245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1245 if test "`uname -s`" = "Windows_NT"; then
1246 ac_err=`egrep '^.*error' conftest.out`
1248 ac_err=`grep -v '^ *+' conftest.out`
1250 if test -z "$ac_err"; then
1260 ac_cv_prog_CPP="$CPP"
1262 CPP="$ac_cv_prog_CPP"
1264 ac_cv_prog_CPP="$CPP"
1266 echo "$ac_t""$CPP" 1>&6
1277 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1278 cat > conftest.$ac_ext <<EOF
1279 #line 1280 "configure"
1280 #include "confdefs.h"
1286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1287 egrep "yes" >$NULLDEVW 2>&1; then
1289 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1290 #define _ALL_SOURCE 1
1295 echo "$ac_t""no" 1>&6
1301 #--------------------------------------------------------------------
1302 # Determine the best warning options for this platform
1303 #--------------------------------------------------------------------
1304 if test "$CC" = "gcc " -o "$CC" = "gcc"; then
1305 WARNDEFS="-ansi -pedantic -Wall -Wmissing-prototypes"
1307 if test -f /bin/uname && test `/bin/uname` = OSF1; then
1308 WARNDEFS="-std1 -warnprotos"
1311 CCDEFS="$CCDEFS $WARNDEFS"
1313 echo $ac_n "checking for working const""... $ac_c" 1>&6
1314 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1317 cat > conftest.$ac_ext <<EOF
1318 #line 1319 "configure"
1319 #include "confdefs.h"
1321 int main() { return 0; }
1324 /* Ultrix mips cc rejects this. */
1325 typedef int charset[2]; const charset x;
1326 /* SunOS 4.1.1 cc rejects this. */
1327 char const *const *ccp;
1329 /* NEC SVR4.0.2 mips cc rejects this. */
1330 struct point {int x, y;};
1331 static struct point const zero = {0,0};
1332 /* AIX XL C 1.02.0.0 rejects this.
1333 It does not let you subtract one const X* pointer from another in an arm
1334 of an if-expression whose if-part is not a constant expression */
1335 const char *g = "string";
1336 ccp = &g + (g ? g-g : 0);
1337 /* HPUX 7.0 cc rejects these. */
1340 ccp = (char const *const *) p;
1341 { /* SCO 3.2v4 cc rejects this. */
1343 char const *s = 0 ? (char *) 0 : (char const *) 0;
1347 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1349 const int *foo = &x[0];
1352 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1353 typedef const int *iptr;
1357 { /* AIX XL C 1.02.0.0 rejects this saying
1358 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1359 struct s { int j; const int *ap[3]; };
1360 struct s *b; b->j = 5;
1362 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1368 if { (eval echo configure:1369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1379 echo "$ac_t""$ac_cv_c_const" 1>&6
1380 if test $ac_cv_c_const = no; then
1381 cat >> confdefs.h <<\EOF
1388 echo $ac_n "checking size of unsigned int""... $ac_c" 1>&6
1389 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then
1390 echo $ac_n "(cached) $ac_c" 1>&6
1392 if test "$cross_compiling" = yes; then
1395 cat > conftest.$ac_ext <<EOF
1396 #line 1397 "configure"
1397 #include "confdefs.h"
1401 FILE *f=fopen("conftestval", "w");
1403 fprintf(f, "%d\n", sizeof(unsigned int));
1407 { (eval echo configure:1408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1408 if test -s $conftest_name && (./$conftest_name; exit) 2>$NULLDEVW; then
1409 ac_cv_sizeof_unsigned_int=`cat conftestval`
1411 ac_cv_sizeof_unsigned_int=0
1416 echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6
1417 cat >> confdefs.h <<EOF
1418 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
1422 echo $ac_n "checking size of unsigned short""... $ac_c" 1>&6
1423 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1426 if test "$cross_compiling" = yes; then
1429 cat > conftest.$ac_ext <<EOF
1430 #line 1431 "configure"
1431 #include "confdefs.h"
1435 FILE *f=fopen("conftestval", "w");
1437 fprintf(f, "%d\n", sizeof(unsigned short));
1441 { (eval echo configure:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1442 if test -s $conftest_name && (./$conftest_name; exit) 2>$NULLDEVW; then
1443 ac_cv_sizeof_unsigned_short=`cat conftestval`
1445 ac_cv_sizeof_unsigned_short=0
1450 echo "$ac_t""$ac_cv_sizeof_unsigned_short" 1>&6
1451 cat >> confdefs.h <<EOF
1452 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
1456 echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
1457 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1460 if test "$cross_compiling" = yes; then
1463 cat > conftest.$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1469 FILE *f=fopen("conftestval", "w");
1471 fprintf(f, "%d\n", sizeof(unsigned long));
1475 { (eval echo configure:1476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1476 if test -s $conftest_name && (./$conftest_name; exit) 2>$NULLDEVW; then
1477 ac_cv_sizeof_unsigned_long=`cat conftestval`
1479 ac_cv_sizeof_unsigned_long=0
1484 echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
1485 cat >> confdefs.h <<EOF
1486 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
1490 echo $ac_n "checking size of int""... $ac_c" 1>&6
1491 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6
1494 if test "$cross_compiling" = yes; then
1497 cat > conftest.$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1503 FILE *f=fopen("conftestval", "w");
1505 fprintf(f, "%d\n", sizeof(int));
1509 { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1510 if test -s $conftest_name && (./$conftest_name; exit) 2>$NULLDEVW; then
1511 ac_cv_sizeof_int=`cat conftestval`
1518 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1519 cat >> confdefs.h <<EOF
1520 #define SIZEOF_INT $ac_cv_sizeof_int
1524 echo $ac_n "checking size of long""... $ac_c" 1>&6
1525 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1526 echo $ac_n "(cached) $ac_c" 1>&6
1528 if test "$cross_compiling" = yes; then
1531 cat > conftest.$ac_ext <<EOF
1532 #line 1533 "configure"
1533 #include "confdefs.h"
1537 FILE *f=fopen("conftestval", "w");
1539 fprintf(f, "%d\n", sizeof(long));
1543 { (eval echo configure:1544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1544 if test -s $conftest_name && (./$conftest_name; exit) 2>$NULLDEVW; then
1545 ac_cv_sizeof_long=`cat conftestval`
1552 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1553 cat >> confdefs.h <<EOF
1554 #define SIZEOF_LONG $ac_cv_sizeof_long
1558 echo $ac_n "checking size of size_t""... $ac_c" 1>&6
1559 if eval "test \"`echo '$''{'ac_cv_sizeof_size_t'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1562 if test "$cross_compiling" = yes; then
1565 cat > conftest.$ac_ext <<EOF
1566 #line 1567 "configure"
1567 #include "confdefs.h"
1571 FILE *f=fopen("conftestval", "w");
1573 fprintf(f, "%d\n", sizeof(size_t));
1577 { (eval echo configure:1578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1578 if test -s $conftest_name && (./$conftest_name; exit) 2>$NULLDEVW; then
1579 ac_cv_sizeof_size_t=`cat conftestval`
1581 ac_cv_sizeof_size_t=0
1586 echo "$ac_t""$ac_cv_sizeof_size_t" 1>&6
1587 cat >> confdefs.h <<EOF
1588 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
1592 cat > conftest.$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1595 #include <sys/types.h>
1597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1598 egrep "ssize_t" >$NULLDEVW 2>&1; then
1602 cat >> confdefs.h <<\EOF
1609 echo $ac_n "checking size of off_t""... $ac_c" 1>&6
1610 if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then
1611 echo $ac_n "(cached) $ac_c" 1>&6
1613 if test "$cross_compiling" = yes; then
1616 cat > conftest.$ac_ext <<EOF
1617 #line 1618 "configure"
1618 #include "confdefs.h"
1622 FILE *f=fopen("conftestval", "w");
1624 fprintf(f, "%d\n", sizeof(off_t));
1628 { (eval echo configure:1629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1629 if test -s $conftest_name && (./$conftest_name; exit) 2>$NULLDEVW; then
1630 ac_cv_sizeof_off_t=`cat conftestval`
1632 ac_cv_sizeof_off_t=0
1637 echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6
1638 cat >> confdefs.h <<EOF
1639 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
1645 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1646 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1647 echo $ac_n "(cached) $ac_c" 1>&6
1649 cat > conftest.$ac_ext <<EOF
1650 #line 1651 "configure"
1651 #include "confdefs.h"
1657 ac_try="$ac_cpp conftest.$ac_ext >$NULLDEVW 2>conftest.out"
1658 { (eval echo configure:1659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1659 if test "`uname -s`" = "Windows_NT"; then
1660 ac_err=`egrep '^.*error' conftest.out`
1662 ac_err=`grep -v '^ *+' conftest.out`
1664 if test -z "$ac_err"; then
1666 ac_cv_header_stdc=yes
1670 ac_cv_header_stdc=no
1674 if test $ac_cv_header_stdc = yes; then
1675 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1676 cat > conftest.$ac_ext <<EOF
1677 #line 1678 "configure"
1678 #include "confdefs.h"
1681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1682 egrep "memchr" >$NULLDEVW 2>&1; then
1686 ac_cv_header_stdc=no
1692 if test $ac_cv_header_stdc = yes; then
1693 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1694 cat > conftest.$ac_ext <<EOF
1695 #line 1696 "configure"
1696 #include "confdefs.h"
1699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1700 egrep "free" >$NULLDEVW 2>&1; then
1704 ac_cv_header_stdc=no
1710 if test $ac_cv_header_stdc = yes; then
1711 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1712 if test "$cross_compiling" = yes; then
1715 cat > conftest.$ac_ext <<EOF
1716 #line 1717 "configure"
1717 #include "confdefs.h"
1719 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1720 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1721 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1722 int main () { int i; for (i = 0; i < 256; i++)
1723 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1727 { (eval echo configure:1728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1728 if test -s $conftest_name && (./$conftest_name; exit) 2>$NULLDEVW; then
1731 ac_cv_header_stdc=no
1738 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1739 if test $ac_cv_header_stdc = yes; then
1740 cat >> confdefs.h <<\EOF
1741 #define STDC_HEADERS 1
1746 for ac_hdr in limits.h unistd.h
1748 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1750 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1753 cat > conftest.$ac_ext <<EOF
1754 #line 1755 "configure"
1755 #include "confdefs.h"
1758 ac_try="$ac_cpp conftest.$ac_ext >$NULLDEVW 2>conftest.out"
1759 { (eval echo configure:1760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1760 if test "`uname -s`" = "Windows_NT"; then
1761 ac_err=`egrep '^.*error' conftest.out`
1763 ac_err=`grep -v '^ *+' conftest.out`
1765 if test -z "$ac_err"; then
1767 eval "ac_cv_header_$ac_safe=yes"
1771 eval "ac_cv_header_$ac_safe=no"
1775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1776 echo "$ac_t""yes" 1>&6
1777 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1778 cat >> confdefs.h <<EOF
1779 #define $ac_tr_hdr 1
1783 echo "$ac_t""no" 1>&6
1788 # Check whether --with-global or --without-global was given.
1789 if test "${with_global+set}" = set; then
1790 withval="$with_global"
1791 with_export=$withval
1792 cat >> confdefs.h <<\EOF
1793 #define WITH_EXPORT 1
1796 cat >> confdefs.h <<\EOF
1797 #define WITH_GLOBAL 1
1801 if test -z "$with_export"; then
1807 # Check whether --with-domestic or --without-domestic was given.
1808 if test "${with_domestic+set}" = set; then
1809 withval="$with_domestic"
1810 with_domestic=$withval
1811 cat >> confdefs.h <<\EOF
1812 #define WITH_DOMESTIC 1
1816 if test -z "$with_export"; then
1824 #--------------------------------------------------------------------
1825 # Run with Purify? PureCoverage? Quantify?
1826 #--------------------------------------------------------------------
1827 # Check whether --with-purify or --without-purify was given.
1828 if test "${with_purify+set}" = set; then
1829 withval="$with_purify"
1830 with_purify=$withval
1836 if test "$with_purify" = "yes" ; then
1840 # Check whether --with-purecov or --without-purecov was given.
1841 if test "${with_purecov+set}" = set; then
1842 withval="$with_purecov"
1843 with_purecov=$withval
1849 if test "$with_purecov" = "yes" ; then
1852 # Check whether --with-quantify or --without-quantify was given.
1853 if test "${with_quantify+set}" = set; then
1854 withval="$with_quantify"
1855 with_quantify=$withval
1861 if test "$with_quantify" = "yes" ; then
1868 # Check whether --with-profile or --without-profile was given.
1869 if test "${with_profile+set}" = set; then
1870 withval="$with_profile"
1871 with_profile=$withval
1877 if test "$with_profile" = "yes" ; then
1885 #--------------------------------------------------------------------
1886 # Build optimized, production version with no debugging code? No
1887 # asserts? No testing code?
1888 #--------------------------------------------------------------------
1889 # Check whether --with-nodebug or --without-nodebug was given.
1890 if test "${with_nodebug+set}" = set; then
1891 withval="$with_nodebug"
1892 with_nodebug=$withval
1898 if test "$with_nodebug" = "yes" ; then
1901 cat >> confdefs.h <<\EOF
1902 #define WITH_DEBUG 1
1907 # Check whether --with-noassert or --without-noassert was given.
1908 if test "${with_noassert+set}" = set; then
1909 withval="$with_noassert"
1910 with_noassert=$withval
1916 if test "$with_noassert" = "no" ; then
1917 cat >> confdefs.h <<\EOF
1918 #define WITH_ASSERT 1
1922 # Check whether --with-notest or --without-notest was given.
1923 if test "${with_notest+set}" = set; then
1924 withval="$with_notest"
1925 with_notest=$withval
1931 if test "$with_notest" = "no" ; then
1932 cat >> confdefs.h <<\EOF
1938 # Make sure that they didn't specify with-domestic and with-global
1939 if test "$with_export" = "yes" -a "$with_domestic" = "yes"; then
1940 { echo "configure: error: --with-domestic and --with-global are mutually exclusive" 1>&2;
1941 if test -z "$IGNORE_ERRORS"; then
1949 # Open Market Dependencies
1951 # define the platform that is being built
1954 # Old style platform name.
1956 legacy_platform=`uname -s`-`uname -m`-`uname -r`
1957 legacy_platform=`echo "$legacy_platform" | tr / -`
1959 # Generate the canonical form of the platform name
1961 platform=`uname -s`-`uname -r`
1962 platform=`echo "$platform" | tr / -`
1963 platform=`echo "$platform" | tr '[A-Z]' '[a-z]'`
1967 aix*) platform=aix_414;;
1968 bsd-386-1*) platform=bsdi_11;;
1969 bsd-os-2*) platform=bsdi_20;;
1970 hp-ux-b.10.10) platform=hpux_1010;;
1971 hp-ux-b.10*) platform=hpux_10;;
1972 hp-ux-a.09*) platform=hpux_905;;
1973 irix-5*) platform=sgi_53;;
1974 irix-6*) platform=sgi_62;;
1975 osf1-v3.0) platform=osf_30;;
1976 osf1-v3.2) platform=osf_32;;
1977 osf1-v4.0) platform=osf_40;;
1978 sunos-5.4) platform=sun_54;;
1979 sunos-5.5*) platform=sun_55;;
1980 sunos-4.1.4) platform=sun_414;;
1981 linux*) platform=lin_128;;
1982 nonstop*) platform=tan_40;;
1984 stratus_name=`uname -a`
1985 ftx_version=`echo "$stratus_name" | cut -f5 -d' '`
1986 case $ftx_version in
1987 3.0*) platform=ftx_30;;
1988 3.1*) platform=ftx_31;;
1990 sco*) platform=sco_32;;
1993 platform_class=WINDOWS
1997 platform_class=WINDOWS
2001 platform_class=WINDOWS
2007 PLATFORM_CLASS=$platform_class
2011 # Pick up any OMI specific switches
2013 # Check whether --with-omireleases or --without-omireleases was given.
2014 if test "${with_omireleases+set}" = set; then
2015 withval="$with_omireleases"
2022 # Start of version declaration
2028 if test -n "a"; then
2030 DOT_CVS_TAG=T2.0.a.NT
2032 echo "Warning: Patch tag missing from version.in"
2038 if test "$with_export" = "yes"; then
2039 export_class="-- GLOBAL version"
2041 export_class="-- DOMESTIC version"
2044 echo "--------------------------------------------------------------------------"
2045 echo Configuring $SUBSYSTEM version $VERSION, cvs tag is: $CVS_TAG $export_class
2046 echo "Canonical system name is $platform"
2047 if test -z "$with_purify"; then
2050 echo "CC = $CC, CFLAGS = $acaux_ccdefs"
2051 echo "omi_releases = $with_releases, purify = $with_purify"
2052 if test -z "$with_purecov"; then
2055 if test -z "$with_quantify"; then
2058 if test -z "$with_profile"; then
2061 echo "purecov = $with_purecov, quantify = $with_quantify, profile = $with_profile"
2062 if test -z "$with_nodebug"; then
2065 if test -z "$with_noassert"; then
2068 if test -z "$with_notest"; then
2071 echo "nodebug = $with_nodebug, noassert = $with_noassert, notest = $with_notest"
2072 echo "Built on `uname -n`, OS-type: `uname -s`, version `uname -r`"
2073 version=`echo Revision: 1.15 | cut -f 2 -d' '`
2074 echo "Autoconf version 2.9, OMI extensions version: $version"
2075 echo "--------------------------------------------------------------------------"
2077 # Create version.conf
2079 echo "Creating version.conf"
2080 cat <<EOF > version.conf
2082 # version.conf for $SUBSYSTEM.
2084 # This file is machine generated.
2085 # Do not edit this file.
2087 # generated on `date`
2089 set Release $DOT_CVS_TAG
2090 set Platform $PLATFORM
2091 set ProductName $SUBSYSTEM
2093 if test ! -z "$DOT_MIN_RELEASE"; then
2094 cat <<EOF >> version.conf
2095 set MinRelease $DOT_MIN_RELEASE
2098 if test ! -z "$REQUIRED_PAKS"; then
2099 cat <<EOF >>version.conf
2100 set RequiredPaks {$REQUIRED_PAKS}
2103 # End of version declaration
2107 if test "$with_releases" = "yes"; then
2108 if test "`uname -s`" = Windows_NT; then
2109 echo "Setting up EXPORTS_ROOT for wnt"
2110 EXPORTS_ROOT=\\omi\\exports
2111 if test "$with_export" = "yes"; then
2112 EXPORTS_PREFIX=$EXPORTS_ROOT\\$SUBSYSTEM\\$VERSION/${platform}.global
2114 if test "$export_restricted" = "yes"; then
2115 EXPORTS_PREFIX=$EXPORTS_ROOT\\$SUBSYSTEM\\$VERSION\\${platform}.domestic
2117 EXPORTS_PREFIX=$EXPORTS_ROOT\\$SUBSYSTEM\\$VERSION\\$platform
2120 EXPORTS_COMMON=$EXPORTS_ROOT\\$SUBSYSTEM\\$VERSION\\common
2122 EXPORTS_ROOT=/omi/exports
2123 if test "$with_export" = "yes"; then
2124 EXPORTS_PREFIX=$EXPORTS_ROOT/$SUBSYSTEM/$VERSION/${platform}.global
2126 if test "$export_restricted" = "yes"; then
2127 EXPORTS_PREFIX=$EXPORTS_ROOT/$SUBSYSTEM/$VERSION/${platform}.domestic
2129 EXPORTS_PREFIX=$EXPORTS_ROOT/$SUBSYSTEM/$VERSION/$platform
2132 EXPORTS_COMMON=$EXPORTS_ROOT/$SUBSYSTEM/$VERSION/common
2135 EXPORTS_ROOT=/usr/local
2136 EXPORTS_PREFIX=$EXPORTS_ROOT
2137 EXPORTS_COMMON=$EXPORTS_ROOT
2140 prefix=$EXPORTS_PREFIX
2141 exec_prefix=$EXPORTS_PREFIX
2142 common_prefix=$EXPORTS_COMMON
2152 #------------------------
2154 # Start of dependencies.in
2158 # OMI provided dependencies
2162 # Depends on Tcl, Version: V7.4
2164 if test "$with_releases" = "yes"; then
2165 platform_root=$EXPORTS_ROOT/Tcl/V7.4/$platform
2166 legacy_platform_root=$EXPORTS_ROOT/Tcl/V7.4/$legacy_platform
2167 TCLLIB_DIR=$platform_root/lib
2168 TCLINC_DIR=$EXPORTS_ROOT/Tcl/V7.4/common/include
2169 TCLCOMMON_DIR=$EXPORTS_ROOT/Tcl/V7.4/common
2170 TCLBIN_DIR=$platform_root/bin
2172 # If the file doesn't exist in the new name space, fall back to
2175 if test ! -r $TCLLIB_DIR/libtcl.$L -a \
2176 ! -r $TCLLIB_DIR/Tcl.$L; then
2177 echo " libtcl.$L or Tcl.$L not found in $TCLLIB_DIR" > PATH_ERR
2178 TCLLIB_DIR=$legacy_platform_root/lib
2179 TCLBIN_DIR=$legacy_platform_root/bin
2180 platform_root=$legacy_platform_root
2183 platform_root=$EXPORTS_ROOT
2184 TCLLIB_DIR=$platform_root/lib
2185 TCLINC_DIR=$EXPORTS_ROOT/include
2186 TCLCOMMON_DIR=$EXPORTS_ROOT
2187 TCLBIN_DIR=$platform_root/bin
2195 echo $ac_n "checking for Tcl library""... $ac_c" 1>&6
2196 if eval "test \"`echo '$''{'ac_cv_lib_Tcl'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2200 if test "$with_export" = "yes"; then
2203 # Declare a dependency
2205 if test "$with_releases" = "yes"; then
2207 # Append the information to the lock database
2209 dependency="Tcl,V7.4,global,$SUBSYSTEM,$VERSION,$CVS_TAG"
2211 # Log the dependency
2213 /omi/exports/Toolshed/LATEST/common/bin/xmb-ctrl \
2214 -send "$dependency" -type dependency
2217 if test -r ${platform_root}.global/lib/libtcl.$L; then
2219 TCLLIB_DIR=${platform_root}.global/lib
2220 TCLBIN_DIR=${platform_root}.global/bin
2221 echo "Using export version for Tcl..."
2222 elif test -r ${platform_root}.global/lib/Tcl.$L; then
2224 TCLLIB_DIR=${platform_root}.global/lib
2225 TCLBIN_DIR=${platform_root}.global/bin
2226 echo "Using export version for Tcl... "
2228 if test -r $TCLLIB_DIR/libtcl.$L -o \
2229 -r $TCLLIB_DIR/Tcl.$L; then
2236 if test "$export_restricted" = "yes"; then
2239 # Declare a dependency
2241 if test "$with_releases" = "yes"; then
2243 # Append the information to the lock database
2245 dependency="Tcl,V7.4,domestic,$SUBSYSTEM,$VERSION,$CVS_TAG"
2247 # Log the dependency
2249 /omi/exports/Toolshed/LATEST/common/bin/xmb-ctrl \
2250 -send "$dependency" -type dependency
2256 # Declare a dependency
2258 if test "$with_releases" = "yes"; then
2260 # Append the information to the lock database
2262 dependency="Tcl,V7.4,unrestricted,$SUBSYSTEM,$VERSION,$CVS_TAG"
2264 # Log the dependency
2266 /omi/exports/Toolshed/LATEST/common/bin/xmb-ctrl \
2267 -send "$dependency" -type dependency
2271 if test -r $TCLLIB_DIR/libtcl.$L -o \
2272 -r $TCLLIB_DIR/Tcl.$L; then
2280 if eval "test \"`echo '$ac_cv_lib_'Tcl`\" = yes"; then
2281 echo "$ac_t""yes" 1>&6
2282 ac_tr_lib=HAVE_LIB`echo Tcl | tr '[a-z]' '[A-Z]'`
2283 cat >> confdefs.h <<EOF
2284 #define $ac_tr_lib 1
2287 if test "$with_export" = "yes"; then
2288 if test -r "${platform_root}.global/lib/libtcl.$L";then
2289 LIBS="$LIBS ${platform_root}.global/lib/libtcl.$L"
2290 elif test -r "${platform_root}.global/lib/Tcl.$L";then
2291 LIBS="$LIBS ${platform_root}.global/lib/Tcl.$L"
2293 LIBS="$LIBS $TCLLIB_DIR/libtcl.$L"
2296 if test "$PLATFORM_CLASS" = "UNIX"; then
2297 LIBS="$LIBS $TCLLIB_DIR/libtcl.$L"
2299 LIBS="$LIBS $TCLLIB_DIR/Tcl.$L"
2302 INCLUDE_PATH="$INCLUDE_PATH -I$TCLINC_DIR"
2304 echo " libtcl.$L not found in $TCLLIB_DIR" >> PATH_ERR
2305 echo "$ac_t""not found" 1>&6
2312 # System library dependencies
2316 if test $PLATFORM != "sgi_62"; then
2317 echo $ac_n "checking for nsl""... $ac_c" 1>&6
2318 echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
2319 ac_lib_var=`echo nsl_gethostent | tr '.-/+' '___p'`
2320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2321 echo $ac_n "(cached) $ac_c" 1>&6
2323 ac_save_LIBS="$LIBS"
2325 cat > conftest.$ac_ext <<EOF
2326 #line 2327 "configure"
2327 #include "confdefs.h"
2328 /* Override any gcc2 internal prototype to avoid an error. */
2331 int main() { return 0; }
2336 if { (eval echo configure:2337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2338 eval "ac_cv_lib_$ac_lib_var=yes"
2341 eval "ac_cv_lib_$ac_lib_var=no"
2344 LIBS="$ac_save_LIBS"
2347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2348 echo "$ac_t""yes" 1>&6
2351 echo "$ac_t""no" 1>&6
2355 echo $ac_n "checking for resolv""... $ac_c" 1>&6
2356 echo $ac_n "checking for -lresolv""... $ac_c" 1>&6
2357 ac_lib_var=`echo resolv_res_init | tr '.-/+' '___p'`
2358 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2359 echo $ac_n "(cached) $ac_c" 1>&6
2361 ac_save_LIBS="$LIBS"
2362 LIBS="-lresolv $LIBS"
2363 cat > conftest.$ac_ext <<EOF
2364 #line 2365 "configure"
2365 #include "confdefs.h"
2366 /* Override any gcc2 internal prototype to avoid an error. */
2369 int main() { return 0; }
2374 if { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2376 eval "ac_cv_lib_$ac_lib_var=yes"
2379 eval "ac_cv_lib_$ac_lib_var=no"
2382 LIBS="$ac_save_LIBS"
2385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2386 echo "$ac_t""yes" 1>&6
2387 LIBS="$LIBS -lresolv"
2389 echo "$ac_t""no" 1>&6
2393 echo $ac_n "checking for socket""... $ac_c" 1>&6
2394 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
2395 ac_lib_var=`echo socket_socket | tr '.-/+' '___p'`
2396 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2399 ac_save_LIBS="$LIBS"
2400 LIBS="-lsocket $LIBS"
2401 cat > conftest.$ac_ext <<EOF
2402 #line 2403 "configure"
2403 #include "confdefs.h"
2404 /* Override any gcc2 internal prototype to avoid an error. */
2407 int main() { return 0; }
2412 if { (eval echo configure:2413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2414 eval "ac_cv_lib_$ac_lib_var=yes"
2417 eval "ac_cv_lib_$ac_lib_var=no"
2420 LIBS="$ac_save_LIBS"
2423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2424 echo "$ac_t""yes" 1>&6
2425 LIBS="$LIBS -lsocket"
2427 echo "$ac_t""no" 1>&6
2431 echo $ac_n "checking for dnet_stub""... $ac_c" 1>&6
2432 if test -s /usr/lib/libdnet_stub.a; then
2433 LIBS="$LIBS -ldnet_stub"
2434 echo "$ac_t""yes" 1>&6
2436 echo "$ac_t""no" 1>&6
2439 if test "`uname -s`" = "Windows_NT"; then
2440 echo $ac_n "checking for wsock32""... $ac_c" 1>&6
2441 if test -s c:/msdev/lib/wsock32.lib; then
2442 LIBS="$LIBS -lwsock32"
2443 echo "$ac_t""yes" 1>&6
2445 echo $ac_n "checking for advapi32""... $ac_c" 1>&6
2446 if test -s c:/msdev/lib/advapi32.lib; then
2447 LIBS="$LIBS -ladvapi32"
2448 echo "$ac_t""yes" 1>&6
2450 echo $ac_n "checking for user32""... $ac_c" 1>&6
2451 if test -s c:/msdev/lib/user32.lib; then
2452 LIBS="$LIBS -luser32"
2453 echo "$ac_t""yes" 1>&6
2459 if test $PLATFORM != sgi_62; then
2460 echo $ac_n "checking for sin""... $ac_c" 1>&6
2461 if eval "test \"`echo '$''{'ac_cv_func_sin'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2464 cat > conftest.$ac_ext <<EOF
2465 #line 2466 "configure"
2466 #include "confdefs.h"
2467 /* System header to define __stub macros and hopefully few prototypes,
2468 which can conflict with char sin(); below. */
2470 /* Override any gcc2 internal prototype to avoid an error. */
2473 int main() { return 0; }
2476 /* The GNU C library defines this for functions which it implements
2477 to always fail with ENOSYS. Some functions are actually named
2478 something starting with __ and the normal name is an alias. */
2479 #if defined (__stub_sin) || defined (__stub___sin)
2487 if { (eval echo configure:2488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2489 eval "ac_cv_func_sin=yes"
2492 eval "ac_cv_func_sin=no"
2497 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
2498 echo "$ac_t""yes" 1>&6
2501 echo "$ac_t""no" 1>&6
2505 echo $ac_n "checking for -lieee""... $ac_c" 1>&6
2506 ac_lib_var=`echo ieee_main | tr '.-/+' '___p'`
2507 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2510 ac_save_LIBS="$LIBS"
2512 cat > conftest.$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2515 /* Override any gcc2 internal prototype to avoid an error. */
2518 int main() { return 0; }
2523 if { (eval echo configure:2524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2525 eval "ac_cv_lib_$ac_lib_var=yes"
2528 eval "ac_cv_lib_$ac_lib_var=no"
2531 LIBS="$ac_save_LIBS"
2534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2535 echo "$ac_t""yes" 1>&6
2538 echo "$ac_t""no" 1>&6
2541 cat >> confdefs.h <<\EOF
2542 #define HAVE_MATHLIB 1
2549 # End of dependencies.in
2550 #------------------------
2553 if test "$export_restricted" = "yes"; then
2554 if test "$with_export" = "yes"; then
2555 EXPORT_RESTRICTION=GLOBAL
2557 EXPORT_RESTRICTION=DOMESTIC
2560 EXPORT_RESTRICTION=NONE
2566 echo $ac_n "checking for sun_len in sys/un.h""... $ac_c" 1>&6
2567 cat > conftest.$ac_ext <<EOF
2568 #line 2569 "configure"
2569 #include "confdefs.h"
2572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2573 egrep "sun_len" >$NULLDEVW 2>&1; then
2575 echo "$ac_t""yes" 1>&6
2576 cat >> confdefs.h <<\EOF
2577 #define HAVE_SOCKADDR_UN_SUN_LEN 1
2582 echo "$ac_t""no" 1>&6
2587 #--------------------------------------------------------------------
2588 # What extra libraries do we need for this platform?
2589 #--------------------------------------------------------------------
2591 for ac_func in strerror strtol
2593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2595 echo $ac_n "(cached) $ac_c" 1>&6
2597 cat > conftest.$ac_ext <<EOF
2598 #line 2599 "configure"
2599 #include "confdefs.h"
2600 /* System header to define __stub macros and hopefully few prototypes,
2601 which can conflict with char $ac_func(); below. */
2603 /* Override any gcc2 internal prototype to avoid an error. */
2606 int main() { return 0; }
2609 /* The GNU C library defines this for functions which it implements
2610 to always fail with ENOSYS. Some functions are actually named
2611 something starting with __ and the normal name is an alias. */
2612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2620 if { (eval echo configure:2621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2622 eval "ac_cv_func_$ac_func=yes"
2625 eval "ac_cv_func_$ac_func=no"
2630 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2631 echo "$ac_t""yes" 1>&6
2632 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2633 cat >> confdefs.h <<EOF
2634 #define $ac_tr_func 1
2638 echo "$ac_t""no" 1>&6
2643 for ac_func in strerror strtol
2645 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2647 echo $ac_n "(cached) $ac_c" 1>&6
2649 cat > conftest.$ac_ext <<EOF
2650 #line 2651 "configure"
2651 #include "confdefs.h"
2652 /* System header to define __stub macros and hopefully few prototypes,
2653 which can conflict with char $ac_func(); below. */
2655 /* Override any gcc2 internal prototype to avoid an error. */
2658 int main() { return 0; }
2661 /* The GNU C library defines this for functions which it implements
2662 to always fail with ENOSYS. Some functions are actually named
2663 something starting with __ and the normal name is an alias. */
2664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2672 if { (eval echo configure:2673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2674 eval "ac_cv_func_$ac_func=yes"
2677 eval "ac_cv_func_$ac_func=no"
2682 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2683 echo "$ac_t""yes" 1>&6
2686 echo "$ac_t""no" 1>&6
2687 LIBOBJS="$LIBOBJS ${ac_func}.o"
2693 #--------------------------------------------------------------------
2694 # Include sys/select.h if it exists and if it supplies things
2695 # that appear to be useful and aren't already in sys/types.h.
2696 # This appears to be true only on the RS/6000 under AIX. Some
2697 # systems like OSF/1 have a sys/select.h that's of no use, and
2698 # other systems like SCO UNIX have a sys/select.h that's
2699 # pernicious. If "fd_set" isn't defined anywhere then set a
2701 #--------------------------------------------------------------------
2703 echo $ac_n "checking for fd_set in in sys/types.h""... $ac_c" 1>&6
2704 cat > conftest.$ac_ext <<EOF
2705 #line 2706 "configure"
2706 #include "confdefs.h"
2707 #include <sys/types.h>
2708 int main() { return 0; }
2710 fd_set readMask, writeMask;
2713 if { (eval echo configure:2714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2715 echo "$ac_t""yes" 1>&6
2718 echo "$ac_t""no" 1>&6
2719 echo $ac_n "checking for fd_mask in in sys/select.h""... $ac_c" 1>&6
2720 cat > conftest.$ac_ext <<EOF
2721 #line 2722 "configure"
2722 #include "confdefs.h"
2723 #include <sys/select.h>
2725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2726 egrep "fd_mask" >$NULLDEVW 2>&1; then
2728 echo "$ac_t""yes" 1>&6
2729 cat >> confdefs.h <<\EOF
2730 #define HAVE_SYS_SELECT_H 1
2735 echo "$ac_t""no" 1>&6
2736 cat >> confdefs.h <<\EOF
2747 echo $ac_n "checking for fpos in stdio.h""... $ac_c" 1>&6
2748 cat > conftest.$ac_ext <<EOF
2749 #line 2750 "configure"
2750 #include "confdefs.h"
2753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2754 egrep "fpos_t" >$NULLDEVW 2>&1; then
2756 echo "$ac_t""yes" 1>&6
2757 cat >> confdefs.h <<\EOF
2763 echo "$ac_t""no" 1>&6
2768 for ac_hdr in windows.h
2770 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
2771 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2775 cat > conftest.$ac_ext <<EOF
2776 #line 2777 "configure"
2777 #include "confdefs.h"
2780 ac_try="$ac_cpp conftest.$ac_ext >$NULLDEVW 2>conftest.out"
2781 { (eval echo configure:2782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2782 if test "`uname -s`" = "Windows_NT"; then
2783 ac_err=`egrep '^.*error' conftest.out`
2785 ac_err=`grep -v '^ *+' conftest.out`
2787 if test -z "$ac_err"; then
2789 eval "ac_cv_header_$ac_safe=yes"
2793 eval "ac_cv_header_$ac_safe=no"
2797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2798 echo "$ac_t""yes" 1>&6
2799 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
2800 cat >> confdefs.h <<EOF
2801 #define $ac_tr_hdr 1
2805 echo "$ac_t""no" 1>&6
2809 for ac_hdr in sys/socket.h
2811 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
2812 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2813 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2814 echo $ac_n "(cached) $ac_c" 1>&6
2816 cat > conftest.$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2821 ac_try="$ac_cpp conftest.$ac_ext >$NULLDEVW 2>conftest.out"
2822 { (eval echo configure:2823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2823 if test "`uname -s`" = "Windows_NT"; then
2824 ac_err=`egrep '^.*error' conftest.out`
2826 ac_err=`grep -v '^ *+' conftest.out`
2828 if test -z "$ac_err"; then
2830 eval "ac_cv_header_$ac_safe=yes"
2834 eval "ac_cv_header_$ac_safe=no"
2838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2839 echo "$ac_t""yes" 1>&6
2840 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
2841 cat >> confdefs.h <<EOF
2842 #define $ac_tr_hdr 1
2846 echo "$ac_t""no" 1>&6
2850 for ac_hdr in winsock.h
2852 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
2853 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2854 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2855 echo $ac_n "(cached) $ac_c" 1>&6
2857 cat > conftest.$ac_ext <<EOF
2858 #line 2859 "configure"
2859 #include "confdefs.h"
2862 ac_try="$ac_cpp conftest.$ac_ext >$NULLDEVW 2>conftest.out"
2863 { (eval echo configure:2864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2864 if test "`uname -s`" = "Windows_NT"; then
2865 ac_err=`egrep '^.*error' conftest.out`
2867 ac_err=`grep -v '^ *+' conftest.out`
2869 if test -z "$ac_err"; then
2871 eval "ac_cv_header_$ac_safe=yes"
2875 eval "ac_cv_header_$ac_safe=no"
2879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2880 echo "$ac_t""yes" 1>&6
2881 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
2882 cat >> confdefs.h <<EOF
2883 #define $ac_tr_hdr 1
2887 echo "$ac_t""no" 1>&6
2891 for ac_hdr in netdb.h
2893 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
2894 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2895 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2896 echo $ac_n "(cached) $ac_c" 1>&6
2898 cat > conftest.$ac_ext <<EOF
2899 #line 2900 "configure"
2900 #include "confdefs.h"
2903 ac_try="$ac_cpp conftest.$ac_ext >$NULLDEVW 2>conftest.out"
2904 { (eval echo configure:2905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2905 if test "`uname -s`" = "Windows_NT"; then
2906 ac_err=`egrep '^.*error' conftest.out`
2908 ac_err=`grep -v '^ *+' conftest.out`
2910 if test -z "$ac_err"; then
2912 eval "ac_cv_header_$ac_safe=yes"
2916 eval "ac_cv_header_$ac_safe=no"
2920 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2921 echo "$ac_t""yes" 1>&6
2922 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
2923 cat >> confdefs.h <<EOF
2924 #define $ac_tr_hdr 1
2928 echo "$ac_t""no" 1>&6
2932 for ac_hdr in netinet/in.h
2934 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
2935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2936 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2937 echo $ac_n "(cached) $ac_c" 1>&6
2939 cat > conftest.$ac_ext <<EOF
2940 #line 2941 "configure"
2941 #include "confdefs.h"
2944 ac_try="$ac_cpp conftest.$ac_ext >$NULLDEVW 2>conftest.out"
2945 { (eval echo configure:2946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2946 if test "`uname -s`" = "Windows_NT"; then
2947 ac_err=`egrep '^.*error' conftest.out`
2949 ac_err=`grep -v '^ *+' conftest.out`
2951 if test -z "$ac_err"; then
2953 eval "ac_cv_header_$ac_safe=yes"
2957 eval "ac_cv_header_$ac_safe=no"
2961 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2962 echo "$ac_t""yes" 1>&6
2963 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
2964 cat >> confdefs.h <<EOF
2965 #define $ac_tr_hdr 1
2969 echo "$ac_t""no" 1>&6
2973 for ac_hdr in arpa/inet.h
2975 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
2976 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2977 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2980 cat > conftest.$ac_ext <<EOF
2981 #line 2982 "configure"
2982 #include "confdefs.h"
2985 ac_try="$ac_cpp conftest.$ac_ext >$NULLDEVW 2>conftest.out"
2986 { (eval echo configure:2987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2987 if test "`uname -s`" = "Windows_NT"; then
2988 ac_err=`egrep '^.*error' conftest.out`
2990 ac_err=`grep -v '^ *+' conftest.out`
2992 if test -z "$ac_err"; then
2994 eval "ac_cv_header_$ac_safe=yes"
2998 eval "ac_cv_header_$ac_safe=no"
3002 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3003 echo "$ac_t""yes" 1>&6
3004 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
3005 cat >> confdefs.h <<EOF
3006 #define $ac_tr_hdr 1
3010 echo "$ac_t""no" 1>&6
3014 for ac_hdr in strings.h
3016 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
3017 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3018 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3019 echo $ac_n "(cached) $ac_c" 1>&6
3021 cat > conftest.$ac_ext <<EOF
3022 #line 3023 "configure"
3023 #include "confdefs.h"
3026 ac_try="$ac_cpp conftest.$ac_ext >$NULLDEVW 2>conftest.out"
3027 { (eval echo configure:3028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3028 if test "`uname -s`" = "Windows_NT"; then
3029 ac_err=`egrep '^.*error' conftest.out`
3031 ac_err=`grep -v '^ *+' conftest.out`
3033 if test -z "$ac_err"; then
3035 eval "ac_cv_header_$ac_safe=yes"
3039 eval "ac_cv_header_$ac_safe=no"
3043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3044 echo "$ac_t""yes" 1>&6
3045 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
3046 cat >> confdefs.h <<EOF
3047 #define $ac_tr_hdr 1
3051 echo "$ac_t""no" 1>&6
3055 for ac_hdr in sys/time.h
3057 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
3058 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3059 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3062 cat > conftest.$ac_ext <<EOF
3063 #line 3064 "configure"
3064 #include "confdefs.h"
3067 ac_try="$ac_cpp conftest.$ac_ext >$NULLDEVW 2>conftest.out"
3068 { (eval echo configure:3069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3069 if test "`uname -s`" = "Windows_NT"; then
3070 ac_err=`egrep '^.*error' conftest.out`
3072 ac_err=`grep -v '^ *+' conftest.out`
3074 if test -z "$ac_err"; then
3076 eval "ac_cv_header_$ac_safe=yes"
3080 eval "ac_cv_header_$ac_safe=no"
3084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3085 echo "$ac_t""yes" 1>&6
3086 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
3087 cat >> confdefs.h <<EOF
3088 #define $ac_tr_hdr 1
3092 echo "$ac_t""no" 1>&6
3097 #--------------------------------------------------------------------
3098 # Do we need cross-process locking on this platform?
3099 #--------------------------------------------------------------------
3100 echo $ac_n "checking "if this machine needs cross-process locking"""... $ac_c" 1>&6
3101 case "`uname -sr`" in
3103 cat >> confdefs.h <<\EOF
3104 #define USE_LOCKING 1
3107 echo "$ac_t""yes" 1>&6
3110 cat >> confdefs.h <<\EOF
3111 #define USE_LOCKING 1
3114 echo "$ac_t""yes" 1>&6
3117 cat >> confdefs.h <<\EOF
3118 #define USE_LOCKING 1
3121 echo "$ac_t""yes" 1>&6
3124 echo "$ac_t""no" 1>&6
3128 #--------------------------------------------------------------------
3129 # Does va_arg(arg, long double) crash the compiler?
3130 # hpux 9.04 compiler does and so does Stratus FTX (uses HP's compiler)
3131 #--------------------------------------------------------------------
3132 echo $ac_n "checking if va_arg(arg, long double) crashes the compiler""... $ac_c" 1>&6
3133 cat > conftest.$ac_ext <<EOF
3134 #line 3135 "configure"
3135 #include "confdefs.h"
3137 int main() { return 0; }
3139 long double lDblArg; va_list arg; lDblArg = va_arg(arg, long double);
3142 if { (eval echo configure:3143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3144 echo "$ac_t""no" 1>&6
3147 cat >> confdefs.h <<\EOF
3148 #define HAVE_VA_ARG_LONG_DOUBLE_BUG 1
3151 echo "$ac_t""yes" 1>&6
3156 #--------------------------------------------------------------------
3157 # What's the target system?
3158 #--------------------------------------------------------------------
3159 case "$PLATFORM_CLASS" in
3170 cat > confcache <<\EOF
3171 # This file is a shell script that caches the results of configure
3172 # tests run on this system so they can be shared between configure
3173 # scripts and configure runs. It is not useful on other systems.
3174 # If it contains results you don't want to keep, you may remove or edit it.
3176 # By default, configure uses ./config.cache as the cache file,
3177 # creating it if it does not exist already. You can give configure
3178 # the --cache-file=FILE option to use a different cache file; that is
3179 # what configure does when it calls configure scripts in
3180 # subdirectories, so they share the cache.
3181 # Giving --cache-file=$NULLDEVW disables caching, for debugging configure.
3182 # config.status only pays attention to the cache file if you give it the
3183 # --recheck option to rerun configure.
3186 # Ultrix sh set writes to stderr and can't be redirected directly,
3187 # and sets the high bit in the cache file unless we assign to the vars.
3189 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
3191 if test "`uname -s`" = "Windows_NT"; then
3192 cat > confcache.sed <<EOF
3196 sed -n -f confcache.sed < confcache > confcache.wnt
3197 mv confcache.wnt confcache
3200 if cmp -s $cache_file confcache; then
3203 if test -w $cache_file; then
3204 echo "updating cache $cache_file"
3205 cat confcache > $cache_file
3207 echo "not updating unwritable cache $cache_file"
3212 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3214 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3215 # Let make expand exec_prefix.
3216 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3218 # Any assignment to VPATH causes Sun make to only execute
3219 # the first set of double-colon rules, so remove it if not needed.
3220 # If there is a colon in the path, we need to keep it.
3221 if test "x$srcdir" = x.; then
3222 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3225 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3227 DEFS=-DHAVE_CONFIG_H
3229 # Without the "./", some shells look in PATH for config.status.
3230 : ${CONFIG_STATUS=./config.status}
3232 echo creating $CONFIG_STATUS
3233 rm -f $CONFIG_STATUS
3234 if test "`uname -s`" = "Windows_NT"; then
3235 cat > $CONFIG_STATUS <<EOF
3239 cat > $CONFIG_STATUS <<EOF
3243 cat >> $CONFIG_STATUS <<EOF
3244 # Generated automatically by configure.
3245 # Run this file to recreate the current configuration.
3246 # This directory was configured as follows,
3247 # on host `(hostname || uname -n) 2>$NULLDEVW | sed 1q`:
3249 # $0 $ac_configure_args
3251 # Compiler output produced by configure, useful for debugging
3252 # configure, is in ./config.log if it exists.
3255 if test ! -z "$CONFIG_SHELL"; then
3256 CONFIG_SHELL=$CONFIG_SHELL
3258 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3261 case "\$ac_option" in
3262 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3263 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3264 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3265 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3266 echo "$CONFIG_STATUS generated by autoconf version 2.9"
3268 -help | --help | --hel | --he | --h)
3269 echo "\$ac_cs_usage"; exit 0 ;;
3270 *) echo "\$ac_cs_usage"; exit 1 ;;
3274 ac_given_srcdir=$srcdir
3275 ac_given_INSTALL="$INSTALL"
3277 trap 'rm -fr `echo "Makefile FastCGI.mak
3278 libfcgi/Makefile libfcgi/libfcgi.mak
3279 cgi-fcgi/Makefile cgi-fcgi/cgi-fcgi.mak
3280 examples/Makefile include/fcgi_config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3282 cat >> $CONFIG_STATUS <<EOF
3284 # setup substitution commands for sed
3286 cat > conftest.tmp <<\CEOF
3289 s%@CFLAGS@%$CFLAGS%g
3290 s%@CPPFLAGS@%$CPPFLAGS%g
3291 s%@CXXFLAGS@%$CXXFLAGS%g
3293 s%@LDFLAGS@%$LDFLAGS%g
3295 s%@exec_prefix@%$exec_prefix%g
3296 s%@prefix@%$prefix%g
3297 s%@program_transform_name@%$program_transform_name%g
3298 s%@bindir@%$bindir%g
3299 s%@sbindir@%$sbindir%g
3300 s%@libexecdir@%$libexecdir%g
3301 s%@datadir@%$datadir%g
3302 s%@sysconfdir@%$sysconfdir%g
3303 s%@sharedstatedir@%$sharedstatedir%g
3304 s%@localstatedir@%$localstatedir%g
3305 s%@libdir@%$libdir%g
3306 s%@includedir@%$includedir%g
3307 s%@oldincludedir@%$oldincludedir%g
3308 s%@infodir@%$infodir%g
3309 s%@mandir@%$mandir%g
3310 s%@MKSROOT@%$MKSROOT%g
3311 s%@INCLUDE_PATH@%$INCLUDE_PATH%g
3312 s%@EXTRA_OBJS@%$EXTRA_OBJS%g
3313 s%@EXPORTS_PREFIX@%$EXPORTS_PREFIX%g
3314 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3315 s%@INSTALL_DATA@%$INSTALL_DATA%g
3317 s%@RANLIB@%$RANLIB%g
3318 s%@CCDEFS@%$CCDEFS%g
3319 s%@acaux_native_cc@%$acaux_native_cc%g
3327 s%@PROFILE@%$PROFILE%g
3328 s%@PLATFORM@%$PLATFORM%g
3329 s%@PLATFORM_CLASS@%$PLATFORM_CLASS%g
3330 s%@SUBSYSTEM@%$SUBSYSTEM%g
3331 s%@VERSION@%$VERSION%g
3332 s%@CVS_TAG@%$CVS_TAG%g
3333 s%@DOT_CVS_TAG@%$DOT_CVS_TAG%g
3334 s%@common_prefix@%$common_prefix%g
3335 s%@EXPORTS_ROOT@%$EXPORTS_ROOT%g
3336 s%@EXPORTS_COMMON@%$EXPORTS_COMMON%g
3337 s%@TCLLIB_DIR@%$TCLLIB_DIR%g
3338 s%@TCLINC_DIR@%$TCLINC_DIR%g
3339 s%@TCLCOMMON_DIR@%$TCLCOMMON_DIR%g
3340 s%@TCLBIN_DIR@%$TCLBIN_DIR%g
3341 s%@EXPORT_RESTRICTION@%$EXPORT_RESTRICTION%g
3342 s%@LIBOBJS@%$LIBOBJS%g
3343 s%@SYSTEM@%$SYSTEM%g
3347 # Protect against being on the right side of a sed subst in config.status.
3348 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3349 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' conftest.tmp > conftest.subs
3352 cat >> $CONFIG_STATUS <<EOF
3354 CONFIG_FILES=\${CONFIG_FILES-"Makefile FastCGI.mak
3355 libfcgi/Makefile libfcgi/libfcgi.mak
3356 cgi-fcgi/Makefile cgi-fcgi/cgi-fcgi.mak
3357 examples/Makefile "}
3359 cat >> $CONFIG_STATUS <<\EOF
3360 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3361 # Support "outfile[:infile]", defaulting infile="outfile.in".
3363 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
3364 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3365 *) ac_file_in="${ac_file}.in" ;;
3368 # Adjust relative srcdir, etc. for subdirectories.
3370 # Remove last slash and all that follows it. Not all systems have dirname.
3371 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3372 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3373 # The file is in a subdirectory.
3374 test ! -d "$ac_dir" && mkdir "$ac_dir"
3375 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3376 # A "../" for each directory in $ac_dir_suffix.
3377 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3379 ac_dir_suffix= ac_dots=
3382 case "$ac_given_srcdir" in
3384 if test -z "$ac_dots"; then top_srcdir=.
3385 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3386 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3388 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3389 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3392 case "$ac_given_INSTALL" in
3393 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3394 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3396 echo creating "$ac_file"
3398 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3400 *Makefile*) ac_comsub="1i\\
3401 # $configure_input" ;;
3405 s%@configure_input@%$configure_input%g
3406 s%@srcdir@%$srcdir%g
3407 s%@top_srcdir@%$top_srcdir%g
3408 s%@INSTALL@%$INSTALL%g
3409 " $ac_given_srcdir/$ac_file_in > ${ac_file_in}.fragin
3410 ac_lines_subs=`grep -c . conftest.subs`
3411 ac_max_subs_lines=12
3412 cp conftest.subs conftest.tmp
3415 sed ${ac_max_subs_lines}q conftest.tmp >conftest.frag
3416 sed 1,${ac_max_subs_lines}d conftest.tmp >conftest.tail
3417 sed -f conftest.frag $ac_given_srcdir/${ac_file_in}.fragin \
3418 >${ac_file_in}.fragout
3419 rm -f ${ac_file_in}.fragin
3420 mv ${ac_file_in}.fragout ${ac_file_in}.fragin
3421 ac_lines_subs=`grep -c . conftest.tail`
3422 if test -z "$ac_lines_subs" || \
3423 test "$ac_lines_subs" -eq 0; then
3427 mv conftest.tail conftest.tmp
3430 mv ${ac_file_in}.fragin ${ac_file}
3436 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3437 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3439 # ac_d sets the value in "#define NAME VALUE" lines.
3440 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3441 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3444 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3445 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3446 ac_uB='\([ ]\)%\1#\2define\3'
3449 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3450 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3451 ac_eB='$%\1#\2define\3'
3455 CONFIG_HEADERS=${CONFIG_HEADERS-"include/fcgi_config.h"}
3456 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3457 # Support "outfile[:infile]", defaulting infile="outfile.in".
3459 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
3460 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3461 *) ac_file_in="${ac_file}.in" ;;
3464 echo creating $ac_file
3466 rm -f conftest.frag conftest.in conftest.out
3467 cp $ac_given_srcdir/$ac_file_in conftest.in
3471 # Transform confdefs.h into a sed script conftest.vals that substitutes
3472 # the proper values into config.h.in to produce config.h. And first:
3473 # Protect against being on the right side of a sed subst in config.status.
3474 # Protect against being in an unquoted here document in config.status.
3476 cat > conftest.hdr <<\EOF
3479 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3483 sed -n -f conftest.hdr confdefs.h > conftest.vals
3486 # This sed command replaces #undef with comments. This is necessary, for
3487 # example, in the case of _POSIX_SOURCE, which is predefined and required
3488 # on some systems where configure will not decide to define it.
3489 cat >> conftest.vals <<\EOF
3490 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3493 # Break up conftest.vals because some shells have a limit on
3494 # the size of here documents, and old seds have small limits too.
3495 # Maximum number of lines to put in a single here document.
3496 ac_max_here_lines=12
3501 ac_lines=`grep -c . conftest.vals`
3502 # grep -c gives empty output for an empty file on some AIX systems.
3503 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3504 # Write a limited-size here document to conftest.frag.
3505 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3506 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3508 sed -f conftest.frag conftest.in > conftest.out
3510 mv conftest.out conftest.in
3512 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3514 mv conftest.tail conftest.vals
3518 cat >> $CONFIG_STATUS <<\EOF
3519 rm -f conftest.frag conftest.h
3520 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3521 cat conftest.in >> conftest.h
3523 if cmp -s $ac_file conftest.h 2>$NULLDEVW; then
3524 echo "$ac_file is unchanged"
3528 mv conftest.h $ac_file
3536 chmod +x $CONFIG_STATUS
3537 rm -fr confdefs* $ac_clean_files
3538 if test "$no_create" != yes; then
3539 if test "`uname -s`" = Windows_NT; then
3540 ${CONFIG_SHELL-$MKSROOT/sh} < $CONFIG_STATUS || exit 1
3542 ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1