3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-pvm enable PVM, Parallel Virtual Machine"
17 # Initialize some variables set by options.
18 # The variables have the same names as the options, with
19 # dashes changed to underlines.
21 cache_file=./config.cache
30 program_transform_name=s,x,x,
38 bindir='${exec_prefix}/bin'
39 sbindir='${exec_prefix}/sbin'
40 libexecdir='${exec_prefix}/libexec'
41 datadir='${prefix}/share'
42 sysconfdir='${prefix}/etc'
43 sharedstatedir='${prefix}/com'
44 localstatedir='${prefix}/var'
45 libdir='${exec_prefix}/lib'
46 includedir='${prefix}/include'
47 oldincludedir='/usr/include'
48 infodir='${prefix}/info'
49 mandir='${prefix}/man'
51 # Initialize some other variables.
54 SHELL=${CONFIG_SHELL-/bin/sh}
55 # Maximum number of lines to put in a shell here document.
62 # If the previous option needs an argument, assign it.
63 if test -n "$ac_prev"; then
64 eval "$ac_prev=\$ac_option"
70 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
74 # Accept the important Cygnus configure options, so we can diagnose typos.
78 -bindir | --bindir | --bindi | --bind | --bin | --bi)
80 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81 bindir="$ac_optarg" ;;
83 -build | --build | --buil | --bui | --bu)
85 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
88 -cache-file | --cache-file | --cache-fil | --cache-fi \
89 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
91 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
92 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
93 cache_file="$ac_optarg" ;;
95 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
97 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
99 datadir="$ac_optarg" ;;
101 -disable-* | --disable-*)
102 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
103 # Reject names that are not valid shell variable names.
104 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
105 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
107 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
108 eval "enable_${ac_feature}=no" ;;
110 -enable-* | --enable-*)
111 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
112 # Reject names that are not valid shell variable names.
113 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}='$ac_optarg'" ;;
123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
125 | --exec | --exe | --ex)
126 ac_prev=exec_prefix ;;
127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
129 | --exec=* | --exe=* | --ex=*)
130 exec_prefix="$ac_optarg" ;;
132 -gas | --gas | --ga | --g)
133 # Obsolete; use --with-gas.
136 -help | --help | --hel | --he)
137 # Omit some internal or obsolete options to make the list less imposing.
138 # This message is too long to be a string in the A/UX 3.1 sh.
140 Usage: configure [options] [host]
141 Options: [defaults in brackets after descriptions]
143 --cache-file=FILE cache test results in FILE
144 --help print this message
145 --no-create do not create output files
146 --quiet, --silent do not print \`checking...' messages
147 --version print the version of autoconf that created configure
148 Directory and file names:
149 --prefix=PREFIX install architecture-independent files in PREFIX
151 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
153 --bindir=DIR user executables in DIR [EPREFIX/bin]
154 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
155 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
156 --datadir=DIR read-only architecture-independent data in DIR
158 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
159 --sharedstatedir=DIR modifiable architecture-independent data in DIR
161 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
162 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
163 --includedir=DIR C header files in DIR [PREFIX/include]
164 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
165 --infodir=DIR info documentation in DIR [PREFIX/info]
166 --mandir=DIR man documentation in DIR [PREFIX/man]
167 --srcdir=DIR find the sources in DIR [configure dir or ..]
168 --program-prefix=PREFIX prepend PREFIX to installed program names
169 --program-suffix=SUFFIX append SUFFIX to installed program names
170 --program-transform-name=PROGRAM
171 run sed PROGRAM on installed program names
175 --build=BUILD configure for building on BUILD [BUILD=HOST]
176 --host=HOST configure for HOST [guessed]
177 --target=TARGET configure for TARGET [TARGET=HOST]
178 Features and packages:
179 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
180 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
181 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
182 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
183 --x-includes=DIR X include files are in DIR
184 --x-libraries=DIR X library files are in DIR
186 if test -n "$ac_help"; then
187 echo "--enable and --with options recognized:$ac_help"
191 -host | --host | --hos | --ho)
193 -host=* | --host=* | --hos=* | --ho=*)
196 -includedir | --includedir | --includedi | --included | --include \
197 | --includ | --inclu | --incl | --inc)
198 ac_prev=includedir ;;
199 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
200 | --includ=* | --inclu=* | --incl=* | --inc=*)
201 includedir="$ac_optarg" ;;
203 -infodir | --infodir | --infodi | --infod | --info | --inf)
205 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206 infodir="$ac_optarg" ;;
208 -libdir | --libdir | --libdi | --libd)
210 -libdir=* | --libdir=* | --libdi=* | --libd=*)
211 libdir="$ac_optarg" ;;
213 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
214 | --libexe | --libex | --libe)
215 ac_prev=libexecdir ;;
216 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
217 | --libexe=* | --libex=* | --libe=*)
218 libexecdir="$ac_optarg" ;;
220 -localstatedir | --localstatedir | --localstatedi | --localstated \
221 | --localstate | --localstat | --localsta | --localst \
222 | --locals | --local | --loca | --loc | --lo)
223 ac_prev=localstatedir ;;
224 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
225 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
226 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
227 localstatedir="$ac_optarg" ;;
229 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
231 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232 mandir="$ac_optarg" ;;
235 # Obsolete; use --without-fp.
238 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
242 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
246 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
247 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
248 | --oldin | --oldi | --old | --ol | --o)
249 ac_prev=oldincludedir ;;
250 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
251 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
252 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
253 oldincludedir="$ac_optarg" ;;
255 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
257 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258 prefix="$ac_optarg" ;;
260 -program-prefix | --program-prefix | --program-prefi | --program-pref \
261 | --program-pre | --program-pr | --program-p)
262 ac_prev=program_prefix ;;
263 -program-prefix=* | --program-prefix=* | --program-prefi=* \
264 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
265 program_prefix="$ac_optarg" ;;
267 -program-suffix | --program-suffix | --program-suffi | --program-suff \
268 | --program-suf | --program-su | --program-s)
269 ac_prev=program_suffix ;;
270 -program-suffix=* | --program-suffix=* | --program-suffi=* \
271 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
272 program_suffix="$ac_optarg" ;;
274 -program-transform-name | --program-transform-name \
275 | --program-transform-nam | --program-transform-na \
276 | --program-transform-n | --program-transform- \
277 | --program-transform | --program-transfor \
278 | --program-transfo | --program-transf \
279 | --program-trans | --program-tran \
280 | --progr-tra | --program-tr | --program-t)
281 ac_prev=program_transform_name ;;
282 -program-transform-name=* | --program-transform-name=* \
283 | --program-transform-nam=* | --program-transform-na=* \
284 | --program-transform-n=* | --program-transform-=* \
285 | --program-transform=* | --program-transfor=* \
286 | --program-transfo=* | --program-transf=* \
287 | --program-trans=* | --program-tran=* \
288 | --progr-tra=* | --program-tr=* | --program-t=*)
289 program_transform_name="$ac_optarg" ;;
291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292 | -silent | --silent | --silen | --sile | --sil)
295 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
297 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
299 sbindir="$ac_optarg" ;;
301 -sharedstatedir | --sharedstatedir | --sharedstatedi \
302 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303 | --sharedst | --shareds | --shared | --share | --shar \
305 ac_prev=sharedstatedir ;;
306 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
310 sharedstatedir="$ac_optarg" ;;
312 -site | --site | --sit)
314 -site=* | --site=* | --sit=*)
317 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
319 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
320 srcdir="$ac_optarg" ;;
322 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
323 | --syscon | --sysco | --sysc | --sys | --sy)
324 ac_prev=sysconfdir ;;
325 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
326 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
327 sysconfdir="$ac_optarg" ;;
329 -target | --target | --targe | --targ | --tar | --ta | --t)
331 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
332 target="$ac_optarg" ;;
334 -v | -verbose | --verbose | --verbos | --verbo | --verb)
337 -version | --version | --versio | --versi | --vers)
338 echo "configure generated by autoconf version 2.13"
342 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
343 # Reject names that are not valid shell variable names.
344 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
345 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
347 ac_package=`echo $ac_package| sed 's/-/_/g'`
352 eval "with_${ac_package}='$ac_optarg'" ;;
354 -without-* | --without-*)
355 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
361 eval "with_${ac_package}=no" ;;
364 # Obsolete; use --with-x.
367 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
368 | --x-incl | --x-inc | --x-in | --x-i)
369 ac_prev=x_includes ;;
370 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
371 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
372 x_includes="$ac_optarg" ;;
374 -x-libraries | --x-libraries | --x-librarie | --x-librari \
375 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
376 ac_prev=x_libraries ;;
377 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
378 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
379 x_libraries="$ac_optarg" ;;
381 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
385 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
386 echo "configure: warning: $ac_option: invalid host type" 1>&2
388 if test "x$nonopt" != xNONE; then
389 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
397 if test -n "$ac_prev"; then
398 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
403 # File descriptor usage:
406 # 2 errors and warnings
407 # 3 some systems may open it to /dev/tty
408 # 4 used on the Kubota Titan
409 # 6 checking for... messages and results
410 # 5 compiler messages saved in config.log
411 if test "$silent" = yes; then
419 This file contains any messages produced by compilers while
420 running configure, to aid debugging if configure makes a mistake.
423 # Strip out --no-create and --no-recursion so they do not pile up.
424 # Also quote any args containing shell metacharacters.
429 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
430 | --no-cr | --no-c) ;;
431 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
432 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
434 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
435 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
440 # Only set these to C if already set. These must not be set unconditionally
441 # because not all systems understand e.g. LANG=C (notably SCO).
442 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
443 # Non-C LC_CTYPE values break the ctype check.
444 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
445 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
446 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
447 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
449 # confdefs.h avoids OS command line length limits that DEFS can exceed.
450 rm -rf conftest* confdefs.h
451 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
454 # A filename unique to this package, relative to the directory that
455 # configure is in, which we can look for to find out if srcdir is correct.
456 ac_unique_file=squidcore.c
458 # Find the source files, if location was not specified.
459 if test -z "$srcdir"; then
460 ac_srcdir_defaulted=yes
461 # Try the directory containing this script, then its parent.
463 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
466 if test ! -r $srcdir/$ac_unique_file; then
470 ac_srcdir_defaulted=no
472 if test ! -r $srcdir/$ac_unique_file; then
473 if test "$ac_srcdir_defaulted" = yes; then
474 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
476 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
479 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
481 # Prefer explicitly selected file to automatically selected ones.
482 if test -z "$CONFIG_SITE"; then
483 if test "x$prefix" != xNONE; then
484 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
486 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
489 for ac_site_file in $CONFIG_SITE; do
490 if test -r "$ac_site_file"; then
491 echo "loading site script $ac_site_file"
496 if test -r "$cache_file"; then
497 echo "loading cache $cache_file"
500 echo "creating cache $cache_file"
505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506 ac_cpp='$CPP $CPPFLAGS'
507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509 cross_compiling=$ac_cv_prog_cc_cross
513 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
514 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
515 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
522 ac_n= ac_c='\c' ac_t=
528 echo " Welcome to SQUID... configuring for your system."
536 # Extract the first word of "gcc", so it can be a program name with args.
537 set dummy gcc; ac_word=$2
538 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
539 echo "configure:540: checking for $ac_word" >&5
540 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
541 echo $ac_n "(cached) $ac_c" 1>&6
543 if test -n "$CC"; then
544 ac_cv_prog_CC="$CC" # Let the user override the test.
546 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
548 for ac_dir in $ac_dummy; do
549 test -z "$ac_dir" && ac_dir=.
550 if test -f $ac_dir/$ac_word; then
559 if test -n "$CC"; then
560 echo "$ac_t""$CC" 1>&6
562 echo "$ac_t""no" 1>&6
565 if test -z "$CC"; then
566 # Extract the first word of "cc", so it can be a program name with args.
567 set dummy cc; ac_word=$2
568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
569 echo "configure:570: checking for $ac_word" >&5
570 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
571 echo $ac_n "(cached) $ac_c" 1>&6
573 if test -n "$CC"; then
574 ac_cv_prog_CC="$CC" # Let the user override the test.
576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
579 for ac_dir in $ac_dummy; do
580 test -z "$ac_dir" && ac_dir=.
581 if test -f $ac_dir/$ac_word; then
582 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
591 if test $ac_prog_rejected = yes; then
592 # We found a bogon in the path, so make sure we never use it.
593 set dummy $ac_cv_prog_CC
595 if test $# -gt 0; then
596 # We chose a different compiler from the bogus one.
597 # However, it has the same basename, so the bogon will be chosen
598 # first if we set CC to just the basename; use the full file name.
600 set dummy "$ac_dir/$ac_word" "$@"
608 if test -n "$CC"; then
609 echo "$ac_t""$CC" 1>&6
611 echo "$ac_t""no" 1>&6
614 if test -z "$CC"; then
617 # Extract the first word of "cl", so it can be a program name with args.
618 set dummy cl; ac_word=$2
619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
620 echo "configure:621: checking for $ac_word" >&5
621 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
622 echo $ac_n "(cached) $ac_c" 1>&6
624 if test -n "$CC"; then
625 ac_cv_prog_CC="$CC" # Let the user override the test.
627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
629 for ac_dir in $ac_dummy; do
630 test -z "$ac_dir" && ac_dir=.
631 if test -f $ac_dir/$ac_word; then
640 if test -n "$CC"; then
641 echo "$ac_t""$CC" 1>&6
643 echo "$ac_t""no" 1>&6
648 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
651 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
652 echo "configure:653: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
655 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
656 ac_cpp='$CPP $CPPFLAGS'
657 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
658 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
659 cross_compiling=$ac_cv_prog_cc_cross
661 cat > conftest.$ac_ext << EOF
663 #line 664 "configure"
664 #include "confdefs.h"
668 if { (eval echo configure:669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
669 ac_cv_prog_cc_works=yes
670 # If we can't run a trivial program, we are probably using a cross compiler.
671 if (./conftest; exit) 2>/dev/null; then
672 ac_cv_prog_cc_cross=no
674 ac_cv_prog_cc_cross=yes
677 echo "configure: failed program was:" >&5
678 cat conftest.$ac_ext >&5
679 ac_cv_prog_cc_works=no
683 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
684 ac_cpp='$CPP $CPPFLAGS'
685 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
686 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
687 cross_compiling=$ac_cv_prog_cc_cross
689 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
690 if test $ac_cv_prog_cc_works = no; then
691 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
693 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
694 echo "configure:695: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
695 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
696 cross_compiling=$ac_cv_prog_cc_cross
698 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
699 echo "configure:700: checking whether we are using GNU C" >&5
700 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
701 echo $ac_n "(cached) $ac_c" 1>&6
703 cat > conftest.c <<EOF
708 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
715 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
717 if test $ac_cv_prog_gcc = yes; then
723 ac_test_CFLAGS="${CFLAGS+set}"
724 ac_save_CFLAGS="$CFLAGS"
726 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
727 echo "configure:728: checking whether ${CC-cc} accepts -g" >&5
728 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
731 echo 'void f(){}' > conftest.c
732 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
741 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
742 if test "$ac_test_CFLAGS" = set; then
743 CFLAGS="$ac_save_CFLAGS"
744 elif test $ac_cv_prog_cc_g = yes; then
745 if test "$GCC" = yes; then
751 if test "$GCC" = yes; then
758 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
759 echo "configure:760: checking whether ln -s works" >&5
760 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
761 echo $ac_n "(cached) $ac_c" 1>&6
764 if ln -s X conftestdata 2>/dev/null
767 ac_cv_prog_LN_S="ln -s"
772 LN_S="$ac_cv_prog_LN_S"
773 if test "$ac_cv_prog_LN_S" = "ln -s"; then
774 echo "$ac_t""yes" 1>&6
776 echo "$ac_t""no" 1>&6
779 # Extract the first word of "ranlib", so it can be a program name with args.
780 set dummy ranlib; ac_word=$2
781 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
782 echo "configure:783: checking for $ac_word" >&5
783 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
784 echo $ac_n "(cached) $ac_c" 1>&6
786 if test -n "$RANLIB"; then
787 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
791 for ac_dir in $ac_dummy; do
792 test -z "$ac_dir" && ac_dir=.
793 if test -f $ac_dir/$ac_word; then
794 ac_cv_prog_RANLIB="ranlib"
799 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
802 RANLIB="$ac_cv_prog_RANLIB"
803 if test -n "$RANLIB"; then
804 echo "$ac_t""$RANLIB" 1>&6
806 echo "$ac_t""no" 1>&6
812 echo $ac_n "checking whether your make is GNU make""... $ac_c" 1>&6
813 echo "configure:814: checking whether your make is GNU make" >&5
814 foundGNUmake='nope, assuming sysv make.' ;
815 EXEC_DEPENDENCY=\$\$\@_main.o ;
816 if ( make --version nothing 2> /dev/null | grep GNU > /dev/null ) ; then
817 foundGNUmake='yes, it is.' ;
818 EXEC_DEPENDENCY='%: %_main.o' ;
820 echo "$ac_t""$foundGNUmake" 1>&6
824 # Check whether --with-pvm or --without-pvm was given.
825 if test "${with_pvm+set}" = set; then
828 yes) echo 'Configuring for PVM'
829 PVMLIBDIR="-L${PVM_ROOT}/lib/${PVM_ARCH}"
830 PVMINCDIR="-I${PVM_ROOT}/include"
831 PVMFLAG="-DSRE_ENABLE_PVM"
835 *) echo "Ignoring unknown argument to --with-pvm: $with_pvm"
841 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
842 echo "configure:843: checking whether byte ordering is bigendian" >&5
843 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
844 echo $ac_n "(cached) $ac_c" 1>&6
846 ac_cv_c_bigendian=unknown
847 # See if sys/param.h defines the BYTE_ORDER macro.
848 cat > conftest.$ac_ext <<EOF
849 #line 850 "configure"
850 #include "confdefs.h"
851 #include <sys/types.h>
852 #include <sys/param.h>
855 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
860 if { (eval echo configure:861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
862 # It does; now see whether it defined to BIG_ENDIAN or not.
863 cat > conftest.$ac_ext <<EOF
864 #line 865 "configure"
865 #include "confdefs.h"
866 #include <sys/types.h>
867 #include <sys/param.h>
870 #if BYTE_ORDER != BIG_ENDIAN
875 if { (eval echo configure:876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
877 ac_cv_c_bigendian=yes
879 echo "configure: failed program was:" >&5
880 cat conftest.$ac_ext >&5
886 echo "configure: failed program was:" >&5
887 cat conftest.$ac_ext >&5
890 if test $ac_cv_c_bigendian = unknown; then
891 if test "$cross_compiling" = yes; then
892 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
894 cat > conftest.$ac_ext <<EOF
895 #line 896 "configure"
896 #include "confdefs.h"
898 /* Are we little or big endian? From Harbison&Steele. */
902 char c[sizeof (long)];
905 exit (u.c[sizeof (long) - 1] == 1);
908 if { (eval echo configure:909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
912 echo "configure: failed program was:" >&5
913 cat conftest.$ac_ext >&5
915 ac_cv_c_bigendian=yes
923 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
924 if test $ac_cv_c_bigendian = yes; then
925 cat >> confdefs.h <<\EOF
926 #define WORDS_BIGENDIAN 1
933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
934 echo "configure:935: checking for $ac_func" >&5
935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&6
938 cat > conftest.$ac_ext <<EOF
939 #line 940 "configure"
940 #include "confdefs.h"
941 /* System header to define __stub macros and hopefully few prototypes,
942 which can conflict with char $ac_func(); below. */
944 /* Override any gcc2 internal prototype to avoid an error. */
945 /* We use char because int might match the return type of a gcc2
946 builtin and then its argument prototype would still apply. */
951 /* The GNU C library defines this for functions which it implements
952 to always fail with ENOSYS. Some functions are actually named
953 something starting with __ and the normal name is an alias. */
954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
962 if { (eval echo configure:963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
964 eval "ac_cv_func_$ac_func=yes"
966 echo "configure: failed program was:" >&5
967 cat conftest.$ac_ext >&5
969 eval "ac_cv_func_$ac_func=no"
974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
975 echo "$ac_t""yes" 1>&6
976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
977 cat >> confdefs.h <<EOF
978 #define $ac_tr_func 1
982 echo "$ac_t""no" 1>&6
983 echo $ac_n "checking for ntohs in -lsocket""... $ac_c" 1>&6
984 echo "configure:985: checking for ntohs in -lsocket" >&5
985 ac_lib_var=`echo socket'_'ntohs | sed 'y%./+-%__p_%'`
986 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
990 LIBS="-lsocket $LIBS"
991 cat > conftest.$ac_ext <<EOF
992 #line 993 "configure"
993 #include "confdefs.h"
994 /* Override any gcc2 internal prototype to avoid an error. */
995 /* We use char because int might match the return type of a gcc2
996 builtin and then its argument prototype would still apply. */
1003 if { (eval echo configure:1004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1005 eval "ac_cv_lib_$ac_lib_var=yes"
1007 echo "configure: failed program was:" >&5
1008 cat conftest.$ac_ext >&5
1010 eval "ac_cv_lib_$ac_lib_var=no"
1013 LIBS="$ac_save_LIBS"
1016 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1017 echo "$ac_t""yes" 1>&6
1018 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1019 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1020 cat >> confdefs.h <<EOF
1021 #define $ac_tr_lib 1
1024 LIBS="-lsocket $LIBS"
1027 echo "$ac_t""no" 1>&6
1033 for ac_func in ntohl
1035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1036 echo "configure:1037: checking for $ac_func" >&5
1037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1038 echo $ac_n "(cached) $ac_c" 1>&6
1040 cat > conftest.$ac_ext <<EOF
1041 #line 1042 "configure"
1042 #include "confdefs.h"
1043 /* System header to define __stub macros and hopefully few prototypes,
1044 which can conflict with char $ac_func(); below. */
1046 /* Override any gcc2 internal prototype to avoid an error. */
1047 /* We use char because int might match the return type of a gcc2
1048 builtin and then its argument prototype would still apply. */
1053 /* The GNU C library defines this for functions which it implements
1054 to always fail with ENOSYS. Some functions are actually named
1055 something starting with __ and the normal name is an alias. */
1056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1064 if { (eval echo configure:1065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1066 eval "ac_cv_func_$ac_func=yes"
1068 echo "configure: failed program was:" >&5
1069 cat conftest.$ac_ext >&5
1071 eval "ac_cv_func_$ac_func=no"
1076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1077 echo "$ac_t""yes" 1>&6
1078 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1079 cat >> confdefs.h <<EOF
1080 #define $ac_tr_func 1
1084 echo "$ac_t""no" 1>&6
1085 echo $ac_n "checking for ntohl in -lsocket""... $ac_c" 1>&6
1086 echo "configure:1087: checking for ntohl in -lsocket" >&5
1087 ac_lib_var=`echo socket'_'ntohl | sed 'y%./+-%__p_%'`
1088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1089 echo $ac_n "(cached) $ac_c" 1>&6
1091 ac_save_LIBS="$LIBS"
1092 LIBS="-lsocket $LIBS"
1093 cat > conftest.$ac_ext <<EOF
1094 #line 1095 "configure"
1095 #include "confdefs.h"
1096 /* Override any gcc2 internal prototype to avoid an error. */
1097 /* We use char because int might match the return type of a gcc2
1098 builtin and then its argument prototype would still apply. */
1105 if { (eval echo configure:1106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1107 eval "ac_cv_lib_$ac_lib_var=yes"
1109 echo "configure: failed program was:" >&5
1110 cat conftest.$ac_ext >&5
1112 eval "ac_cv_lib_$ac_lib_var=no"
1115 LIBS="$ac_save_LIBS"
1118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1119 echo "$ac_t""yes" 1>&6
1120 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1121 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1122 cat >> confdefs.h <<EOF
1123 #define $ac_tr_lib 1
1126 LIBS="-lsocket $LIBS"
1129 echo "$ac_t""no" 1>&6
1135 for ac_func in htons
1137 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1138 echo "configure:1139: checking for $ac_func" >&5
1139 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1140 echo $ac_n "(cached) $ac_c" 1>&6
1142 cat > conftest.$ac_ext <<EOF
1143 #line 1144 "configure"
1144 #include "confdefs.h"
1145 /* System header to define __stub macros and hopefully few prototypes,
1146 which can conflict with char $ac_func(); below. */
1148 /* Override any gcc2 internal prototype to avoid an error. */
1149 /* We use char because int might match the return type of a gcc2
1150 builtin and then its argument prototype would still apply. */
1155 /* The GNU C library defines this for functions which it implements
1156 to always fail with ENOSYS. Some functions are actually named
1157 something starting with __ and the normal name is an alias. */
1158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1166 if { (eval echo configure:1167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1168 eval "ac_cv_func_$ac_func=yes"
1170 echo "configure: failed program was:" >&5
1171 cat conftest.$ac_ext >&5
1173 eval "ac_cv_func_$ac_func=no"
1178 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1179 echo "$ac_t""yes" 1>&6
1180 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1181 cat >> confdefs.h <<EOF
1182 #define $ac_tr_func 1
1186 echo "$ac_t""no" 1>&6
1187 echo $ac_n "checking for htons in -lsocket""... $ac_c" 1>&6
1188 echo "configure:1189: checking for htons in -lsocket" >&5
1189 ac_lib_var=`echo socket'_'htons | sed 'y%./+-%__p_%'`
1190 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1193 ac_save_LIBS="$LIBS"
1194 LIBS="-lsocket $LIBS"
1195 cat > conftest.$ac_ext <<EOF
1196 #line 1197 "configure"
1197 #include "confdefs.h"
1198 /* Override any gcc2 internal prototype to avoid an error. */
1199 /* We use char because int might match the return type of a gcc2
1200 builtin and then its argument prototype would still apply. */
1207 if { (eval echo configure:1208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1209 eval "ac_cv_lib_$ac_lib_var=yes"
1211 echo "configure: failed program was:" >&5
1212 cat conftest.$ac_ext >&5
1214 eval "ac_cv_lib_$ac_lib_var=no"
1217 LIBS="$ac_save_LIBS"
1220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1221 echo "$ac_t""yes" 1>&6
1222 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1223 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1224 cat >> confdefs.h <<EOF
1225 #define $ac_tr_lib 1
1228 LIBS="-lsocket $LIBS"
1231 echo "$ac_t""no" 1>&6
1237 for ac_func in htonl
1239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1240 echo "configure:1241: checking for $ac_func" >&5
1241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1242 echo $ac_n "(cached) $ac_c" 1>&6
1244 cat > conftest.$ac_ext <<EOF
1245 #line 1246 "configure"
1246 #include "confdefs.h"
1247 /* System header to define __stub macros and hopefully few prototypes,
1248 which can conflict with char $ac_func(); below. */
1250 /* Override any gcc2 internal prototype to avoid an error. */
1251 /* We use char because int might match the return type of a gcc2
1252 builtin and then its argument prototype would still apply. */
1257 /* The GNU C library defines this for functions which it implements
1258 to always fail with ENOSYS. Some functions are actually named
1259 something starting with __ and the normal name is an alias. */
1260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1268 if { (eval echo configure:1269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1270 eval "ac_cv_func_$ac_func=yes"
1272 echo "configure: failed program was:" >&5
1273 cat conftest.$ac_ext >&5
1275 eval "ac_cv_func_$ac_func=no"
1280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1281 echo "$ac_t""yes" 1>&6
1282 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1283 cat >> confdefs.h <<EOF
1284 #define $ac_tr_func 1
1288 echo "$ac_t""no" 1>&6
1289 echo $ac_n "checking for htonl in -lsocket""... $ac_c" 1>&6
1290 echo "configure:1291: checking for htonl in -lsocket" >&5
1291 ac_lib_var=`echo socket'_'htonl | sed 'y%./+-%__p_%'`
1292 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1293 echo $ac_n "(cached) $ac_c" 1>&6
1295 ac_save_LIBS="$LIBS"
1296 LIBS="-lsocket $LIBS"
1297 cat > conftest.$ac_ext <<EOF
1298 #line 1299 "configure"
1299 #include "confdefs.h"
1300 /* Override any gcc2 internal prototype to avoid an error. */
1301 /* We use char because int might match the return type of a gcc2
1302 builtin and then its argument prototype would still apply. */
1309 if { (eval echo configure:1310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1311 eval "ac_cv_lib_$ac_lib_var=yes"
1313 echo "configure: failed program was:" >&5
1314 cat conftest.$ac_ext >&5
1316 eval "ac_cv_lib_$ac_lib_var=no"
1319 LIBS="$ac_save_LIBS"
1322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1323 echo "$ac_t""yes" 1>&6
1324 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1325 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1326 cat >> confdefs.h <<EOF
1327 #define $ac_tr_lib 1
1330 LIBS="-lsocket $LIBS"
1333 echo "$ac_t""no" 1>&6
1339 echo $ac_n "checking size of unsigned short""... $ac_c" 1>&6
1340 echo "configure:1341: checking size of unsigned short" >&5
1341 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short'+set}'`\" = set"; then
1342 echo $ac_n "(cached) $ac_c" 1>&6
1344 if test "$cross_compiling" = yes; then
1345 ac_cv_sizeof_unsigned_short=2
1347 cat > conftest.$ac_ext <<EOF
1348 #line 1349 "configure"
1349 #include "confdefs.h"
1353 FILE *f=fopen("conftestval", "w");
1355 fprintf(f, "%d\n", sizeof(unsigned short));
1359 if { (eval echo configure:1360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1361 ac_cv_sizeof_unsigned_short=`cat conftestval`
1363 echo "configure: failed program was:" >&5
1364 cat conftest.$ac_ext >&5
1366 ac_cv_sizeof_unsigned_short=0
1372 echo "$ac_t""$ac_cv_sizeof_unsigned_short" 1>&6
1373 cat >> confdefs.h <<EOF
1374 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
1378 echo $ac_n "checking size of unsigned int""... $ac_c" 1>&6
1379 echo "configure:1380: checking size of unsigned int" >&5
1380 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1383 if test "$cross_compiling" = yes; then
1384 ac_cv_sizeof_unsigned_int=4
1386 cat > conftest.$ac_ext <<EOF
1387 #line 1388 "configure"
1388 #include "confdefs.h"
1392 FILE *f=fopen("conftestval", "w");
1394 fprintf(f, "%d\n", sizeof(unsigned int));
1398 if { (eval echo configure:1399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1400 ac_cv_sizeof_unsigned_int=`cat conftestval`
1402 echo "configure: failed program was:" >&5
1403 cat conftest.$ac_ext >&5
1405 ac_cv_sizeof_unsigned_int=0
1411 echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6
1412 cat >> confdefs.h <<EOF
1413 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
1417 echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
1418 echo "configure:1419: checking size of unsigned long" >&5
1419 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1422 if test "$cross_compiling" = yes; then
1423 ac_cv_sizeof_unsigned_long=4
1425 cat > conftest.$ac_ext <<EOF
1426 #line 1427 "configure"
1427 #include "confdefs.h"
1431 FILE *f=fopen("conftestval", "w");
1433 fprintf(f, "%d\n", sizeof(unsigned long));
1437 if { (eval echo configure:1438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1439 ac_cv_sizeof_unsigned_long=`cat conftestval`
1441 echo "configure: failed program was:" >&5
1442 cat conftest.$ac_ext >&5
1444 ac_cv_sizeof_unsigned_long=0
1450 echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
1451 cat >> confdefs.h <<EOF
1452 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
1456 echo $ac_n "checking size of unsigned long long""... $ac_c" 1>&6
1457 echo "configure:1458: checking size of unsigned long long" >&5
1458 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long_long'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1461 if test "$cross_compiling" = yes; then
1462 ac_cv_sizeof_unsigned_long_long=8
1464 cat > conftest.$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1470 FILE *f=fopen("conftestval", "w");
1472 fprintf(f, "%d\n", sizeof(unsigned long long));
1476 if { (eval echo configure:1477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1478 ac_cv_sizeof_unsigned_long_long=`cat conftestval`
1480 echo "configure: failed program was:" >&5
1481 cat conftest.$ac_ext >&5
1483 ac_cv_sizeof_unsigned_long_long=0
1489 echo "$ac_t""$ac_cv_sizeof_unsigned_long_long" 1>&6
1490 cat >> confdefs.h <<EOF
1491 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
1495 if test "$ac_cv_sizeof_unsigned_short" = "2"; then
1496 SQD_UINT16="unsigned short "
1499 echo "configure: warning: " 1>&2 "No 16-bit int? Manually edit config file to typedef sqd_uint16."
1501 if test "$ac_cv_sizeof_unsigned_int" = "4"; then
1502 SQD_UINT32="unsigned int "
1503 elif test "$ac_cv_sizeof_unsigned_long" = "4"; then
1504 SQD_UINT32="unsigned long "
1507 echo "configure: warning: " 1>&2 "No 32-bit int? Manually edit config file to typedef sqd_uint32."
1509 if test "$ac_cv_sizeof_unsigned_long" = "8"; then
1510 SQD_UINT64="unsigned long "
1511 elif test "$ac_cv_sizeof_unsigned_long_long" = "8"; then
1512 SQD_UINT64="unsigned long long"
1515 echo "configure: warning: " 1>&2 "No 64-bit int? Manually edit config file to typedef sqd_uint64."
1524 echo $ac_n "checking whether fpos_t is an arithmetic datatype""... $ac_c" 1>&6
1525 echo "configure:1526: checking whether fpos_t is an arithmetic datatype" >&5
1526 fpos_arithmetic="no."
1527 cat > conftest.$ac_ext <<EOF
1528 #line 1529 "configure"
1529 #include "confdefs.h"
1532 int main(void) { fpos_t f1, f2; if (f1 == f2) f1 = 0;}
1535 if { (eval echo configure:1536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1537 cat >> confdefs.h <<\EOF
1538 #define ARITHMETIC_FPOS_T 1
1541 fpos_arithmetic="yes."
1543 echo "configure: failed program was:" >&5
1544 cat conftest.$ac_ext >&5
1547 echo "$ac_t""$fpos_arithmetic" 1>&6
1550 for ac_func in ftello fseeko
1552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1553 echo "configure:1554: checking for $ac_func" >&5
1554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1555 echo $ac_n "(cached) $ac_c" 1>&6
1557 cat > conftest.$ac_ext <<EOF
1558 #line 1559 "configure"
1559 #include "confdefs.h"
1560 /* System header to define __stub macros and hopefully few prototypes,
1561 which can conflict with char $ac_func(); below. */
1563 /* Override any gcc2 internal prototype to avoid an error. */
1564 /* We use char because int might match the return type of a gcc2
1565 builtin and then its argument prototype would still apply. */
1570 /* The GNU C library defines this for functions which it implements
1571 to always fail with ENOSYS. Some functions are actually named
1572 something starting with __ and the normal name is an alias. */
1573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1581 if { (eval echo configure:1582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1583 eval "ac_cv_func_$ac_func=yes"
1585 echo "configure: failed program was:" >&5
1586 cat conftest.$ac_ext >&5
1588 eval "ac_cv_func_$ac_func=no"
1593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1594 echo "$ac_t""yes" 1>&6
1595 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1596 cat >> confdefs.h <<EOF
1597 #define $ac_tr_func 1
1601 echo "$ac_t""no" 1>&6
1605 for ac_func in ftello64 fseeko64
1607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1608 echo "configure:1609: checking for $ac_func" >&5
1609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1610 echo $ac_n "(cached) $ac_c" 1>&6
1612 cat > conftest.$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1615 /* System header to define __stub macros and hopefully few prototypes,
1616 which can conflict with char $ac_func(); below. */
1618 /* Override any gcc2 internal prototype to avoid an error. */
1619 /* We use char because int might match the return type of a gcc2
1620 builtin and then its argument prototype would still apply. */
1625 /* The GNU C library defines this for functions which it implements
1626 to always fail with ENOSYS. Some functions are actually named
1627 something starting with __ and the normal name is an alias. */
1628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1636 if { (eval echo configure:1637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1638 eval "ac_cv_func_$ac_func=yes"
1640 echo "configure: failed program was:" >&5
1641 cat conftest.$ac_ext >&5
1643 eval "ac_cv_func_$ac_func=no"
1648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1649 echo "$ac_t""yes" 1>&6
1650 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1651 cat >> confdefs.h <<EOF
1652 #define $ac_tr_func 1
1656 echo "$ac_t""no" 1>&6
1660 for ac_func in ftell64 fseek64
1662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1663 echo "configure:1664: checking for $ac_func" >&5
1664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1665 echo $ac_n "(cached) $ac_c" 1>&6
1667 cat > conftest.$ac_ext <<EOF
1668 #line 1669 "configure"
1669 #include "confdefs.h"
1670 /* System header to define __stub macros and hopefully few prototypes,
1671 which can conflict with char $ac_func(); below. */
1673 /* Override any gcc2 internal prototype to avoid an error. */
1674 /* We use char because int might match the return type of a gcc2
1675 builtin and then its argument prototype would still apply. */
1680 /* The GNU C library defines this for functions which it implements
1681 to always fail with ENOSYS. Some functions are actually named
1682 something starting with __ and the normal name is an alias. */
1683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1691 if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1693 eval "ac_cv_func_$ac_func=yes"
1695 echo "configure: failed program was:" >&5
1696 cat conftest.$ac_ext >&5
1698 eval "ac_cv_func_$ac_func=no"
1703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1704 echo "$ac_t""yes" 1>&6
1705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1706 cat >> confdefs.h <<EOF
1707 #define $ac_tr_func 1
1711 echo "$ac_t""no" 1>&6
1715 echo $ac_n "checking for stat64""... $ac_c" 1>&6
1716 echo "configure:1717: checking for stat64" >&5
1717 if eval "test \"`echo '$''{'ac_cv_func_stat64'+set}'`\" = set"; then
1718 echo $ac_n "(cached) $ac_c" 1>&6
1720 cat > conftest.$ac_ext <<EOF
1721 #line 1722 "configure"
1722 #include "confdefs.h"
1723 /* System header to define __stub macros and hopefully few prototypes,
1724 which can conflict with char stat64(); below. */
1726 /* Override any gcc2 internal prototype to avoid an error. */
1727 /* We use char because int might match the return type of a gcc2
1728 builtin and then its argument prototype would still apply. */
1733 /* The GNU C library defines this for functions which it implements
1734 to always fail with ENOSYS. Some functions are actually named
1735 something starting with __ and the normal name is an alias. */
1736 #if defined (__stub_stat64) || defined (__stub___stat64)
1744 if { (eval echo configure:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1746 eval "ac_cv_func_stat64=yes"
1748 echo "configure: failed program was:" >&5
1749 cat conftest.$ac_ext >&5
1751 eval "ac_cv_func_stat64=no"
1756 if eval "test \"`echo '$ac_cv_func_'stat64`\" = yes"; then
1757 echo "$ac_t""yes" 1>&6
1760 echo "$ac_t""no" 1>&6
1763 echo $ac_n "checking size of off_t""... $ac_c" 1>&6
1764 echo "configure:1765: checking size of off_t" >&5
1765 if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1768 if test "$cross_compiling" = yes; then
1769 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1771 cat > conftest.$ac_ext <<EOF
1772 #line 1773 "configure"
1773 #include "confdefs.h"
1777 FILE *f=fopen("conftestval", "w");
1779 fprintf(f, "%d\n", sizeof(off_t));
1783 if { (eval echo configure:1784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1785 ac_cv_sizeof_off_t=`cat conftestval`
1787 echo "configure: failed program was:" >&5
1788 cat conftest.$ac_ext >&5
1790 ac_cv_sizeof_off_t=0
1796 echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6
1797 cat >> confdefs.h <<EOF
1798 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
1802 echo $ac_n "checking size of off64_t""... $ac_c" 1>&6
1803 echo "configure:1804: checking size of off64_t" >&5
1804 if eval "test \"`echo '$''{'ac_cv_sizeof_off64_t'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1807 if test "$cross_compiling" = yes; then
1808 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1810 cat > conftest.$ac_ext <<EOF
1811 #line 1812 "configure"
1812 #include "confdefs.h"
1816 FILE *f=fopen("conftestval", "w");
1818 fprintf(f, "%d\n", sizeof(off64_t));
1822 if { (eval echo configure:1823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1824 ac_cv_sizeof_off64_t=`cat conftestval`
1826 echo "configure: failed program was:" >&5
1827 cat conftest.$ac_ext >&5
1829 ac_cv_sizeof_off64_t=0
1835 echo "$ac_t""$ac_cv_sizeof_off64_t" 1>&6
1836 cat >> confdefs.h <<EOF
1837 #define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t
1841 echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6
1842 echo "configure:1843: checking size of fpos_t" >&5
1843 if eval "test \"`echo '$''{'ac_cv_sizeof_fpos_t'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1846 if test "$cross_compiling" = yes; then
1847 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1849 cat > conftest.$ac_ext <<EOF
1850 #line 1851 "configure"
1851 #include "confdefs.h"
1855 FILE *f=fopen("conftestval", "w");
1857 fprintf(f, "%d\n", sizeof(fpos_t));
1861 if { (eval echo configure:1862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1863 ac_cv_sizeof_fpos_t=`cat conftestval`
1865 echo "configure: failed program was:" >&5
1866 cat conftest.$ac_ext >&5
1868 ac_cv_sizeof_fpos_t=0
1874 echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6
1875 cat >> confdefs.h <<EOF
1876 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
1881 echo " Configuration complete. Writing Makefiles and such..."
1883 cat > confcache <<\EOF
1884 # This file is a shell script that caches the results of configure
1885 # tests run on this system so they can be shared between configure
1886 # scripts and configure runs. It is not useful on other systems.
1887 # If it contains results you don't want to keep, you may remove or edit it.
1889 # By default, configure uses ./config.cache as the cache file,
1890 # creating it if it does not exist already. You can give configure
1891 # the --cache-file=FILE option to use a different cache file; that is
1892 # what configure does when it calls configure scripts in
1893 # subdirectories, so they share the cache.
1894 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1895 # config.status only pays attention to the cache file if you give it the
1896 # --recheck option to rerun configure.
1899 # The following way of writing the cache mishandles newlines in values,
1900 # but we know of no workaround that is simple, portable, and efficient.
1901 # So, don't put newlines in cache variables' values.
1902 # Ultrix sh set writes to stderr and can't be redirected directly,
1903 # and sets the high bit in the cache file unless we assign to the vars.
1905 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1907 # `set' does not quote correctly, so add quotes (double-quote substitution
1908 # turns \\\\ into \\, and sed turns \\ into \).
1910 -e "s/'/'\\\\''/g" \
1911 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1914 # `set' quotes correctly as required by POSIX, so do not add quotes.
1915 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1918 if cmp -s $cache_file confcache; then
1921 if test -w $cache_file; then
1922 echo "updating cache $cache_file"
1923 cat confcache > $cache_file
1925 echo "not updating unwritable cache $cache_file"
1930 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1932 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1933 # Let make expand exec_prefix.
1934 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1936 # Any assignment to VPATH causes Sun make to only execute
1937 # the first set of double-colon rules, so remove it if not needed.
1938 # If there is a colon in the path, we need to keep it.
1939 if test "x$srcdir" = x.; then
1940 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1943 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1945 DEFS=-DHAVE_CONFIG_H
1947 # Without the "./", some shells look in PATH for config.status.
1948 : ${CONFIG_STATUS=./config.status}
1950 echo creating $CONFIG_STATUS
1951 rm -f $CONFIG_STATUS
1952 cat > $CONFIG_STATUS <<EOF
1954 # Generated automatically by configure.
1955 # Run this file to recreate the current configuration.
1956 # This directory was configured as follows,
1957 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1959 # $0 $ac_configure_args
1961 # Compiler output produced by configure, useful for debugging
1962 # configure, is in ./config.log if it exists.
1964 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1967 case "\$ac_option" in
1968 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1969 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1970 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1971 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1972 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1974 -help | --help | --hel | --he | --h)
1975 echo "\$ac_cs_usage"; exit 0 ;;
1976 *) echo "\$ac_cs_usage"; exit 1 ;;
1980 ac_given_srcdir=$srcdir
1982 trap 'rm -fr `echo "Makefile squid.h squidconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1984 cat >> $CONFIG_STATUS <<EOF
1986 # Protect against being on the right side of a sed subst in config.status.
1987 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1988 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1992 s%@CFLAGS@%$CFLAGS%g
1993 s%@CPPFLAGS@%$CPPFLAGS%g
1994 s%@CXXFLAGS@%$CXXFLAGS%g
1995 s%@FFLAGS@%$FFLAGS%g
1997 s%@LDFLAGS@%$LDFLAGS%g
1999 s%@exec_prefix@%$exec_prefix%g
2000 s%@prefix@%$prefix%g
2001 s%@program_transform_name@%$program_transform_name%g
2002 s%@bindir@%$bindir%g
2003 s%@sbindir@%$sbindir%g
2004 s%@libexecdir@%$libexecdir%g
2005 s%@datadir@%$datadir%g
2006 s%@sysconfdir@%$sysconfdir%g
2007 s%@sharedstatedir@%$sharedstatedir%g
2008 s%@localstatedir@%$localstatedir%g
2009 s%@libdir@%$libdir%g
2010 s%@includedir@%$includedir%g
2011 s%@oldincludedir@%$oldincludedir%g
2012 s%@infodir@%$infodir%g
2013 s%@mandir@%$mandir%g
2015 s%@PVMLIBDIR@%$PVMLIBDIR%g
2016 s%@PVMINCDIR@%$PVMINCDIR%g
2017 s%@PVMFLAG@%$PVMFLAG%g
2018 s%@PVMLIBS@%$PVMLIBS%g
2021 s%@RANLIB@%$RANLIB%g
2022 s%@EXEC_DEPENDENCY@%$EXEC_DEPENDENCY%g
2023 s%@SQD_UINT16@%$SQD_UINT16%g
2024 s%@SQD_UINT32@%$SQD_UINT32%g
2025 s%@SQD_UINT64@%$SQD_UINT64%g
2030 cat >> $CONFIG_STATUS <<\EOF
2032 # Split the substitutions into bite-sized pieces for seds with
2033 # small command number limits, like on Digital OSF/1 and HP-UX.
2034 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2035 ac_file=1 # Number of current file.
2036 ac_beg=1 # First line for current file.
2037 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2040 while $ac_more_lines; do
2041 if test $ac_beg -gt 1; then
2042 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2044 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2046 if test ! -s conftest.s$ac_file; then
2048 rm -f conftest.s$ac_file
2050 if test -z "$ac_sed_cmds"; then
2051 ac_sed_cmds="sed -f conftest.s$ac_file"
2053 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2055 ac_file=`expr $ac_file + 1`
2057 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2060 if test -z "$ac_sed_cmds"; then
2065 cat >> $CONFIG_STATUS <<EOF
2067 CONFIG_FILES=\${CONFIG_FILES-"Makefile squid.h"}
2069 cat >> $CONFIG_STATUS <<\EOF
2070 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2071 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2073 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2074 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2075 *) ac_file_in="${ac_file}.in" ;;
2078 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2080 # Remove last slash and all that follows it. Not all systems have dirname.
2081 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2082 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2083 # The file is in a subdirectory.
2084 test ! -d "$ac_dir" && mkdir "$ac_dir"
2085 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2086 # A "../" for each directory in $ac_dir_suffix.
2087 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2089 ac_dir_suffix= ac_dots=
2092 case "$ac_given_srcdir" in
2094 if test -z "$ac_dots"; then top_srcdir=.
2095 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2096 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2098 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2099 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2103 echo creating "$ac_file"
2105 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2107 *Makefile*) ac_comsub="1i\\
2108 # $configure_input" ;;
2112 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2114 s%@configure_input@%$configure_input%g
2115 s%@srcdir@%$srcdir%g
2116 s%@top_srcdir@%$top_srcdir%g
2117 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2121 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2122 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2124 # ac_d sets the value in "#define NAME VALUE" lines.
2125 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2126 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2129 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2130 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2131 ac_uB='\([ ]\)%\1#\2define\3'
2134 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2135 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2136 ac_eB='$%\1#\2define\3'
2140 if test "${CONFIG_HEADERS+set}" != set; then
2142 cat >> $CONFIG_STATUS <<EOF
2143 CONFIG_HEADERS="squidconf.h"
2145 cat >> $CONFIG_STATUS <<\EOF
2147 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2148 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2150 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2151 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2152 *) ac_file_in="${ac_file}.in" ;;
2155 echo creating $ac_file
2157 rm -f conftest.frag conftest.in conftest.out
2158 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2159 cat $ac_file_inputs > conftest.in
2163 # Transform confdefs.h into a sed script conftest.vals that substitutes
2164 # the proper values into config.h.in to produce config.h. And first:
2165 # Protect against being on the right side of a sed subst in config.status.
2166 # Protect against being in an unquoted here document in config.status.
2168 cat > conftest.hdr <<\EOF
2171 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2175 sed -n -f conftest.hdr confdefs.h > conftest.vals
2178 # This sed command replaces #undef with comments. This is necessary, for
2179 # example, in the case of _POSIX_SOURCE, which is predefined and required
2180 # on some systems where configure will not decide to define it.
2181 cat >> conftest.vals <<\EOF
2182 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2185 # Break up conftest.vals because some shells have a limit on
2186 # the size of here documents, and old seds have small limits too.
2191 ac_lines=`grep -c . conftest.vals`
2192 # grep -c gives empty output for an empty file on some AIX systems.
2193 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2194 # Write a limited-size here document to conftest.frag.
2195 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2196 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2198 sed -f conftest.frag conftest.in > conftest.out
2200 mv conftest.out conftest.in
2202 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2204 mv conftest.tail conftest.vals
2208 cat >> $CONFIG_STATUS <<\EOF
2209 rm -f conftest.frag conftest.h
2210 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2211 cat conftest.in >> conftest.h
2213 if cmp -s $ac_file conftest.h 2>/dev/null; then
2214 echo "$ac_file is unchanged"
2217 # Remove last slash and all that follows it. Not all systems have dirname.
2218 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2219 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2220 # The file is in a subdirectory.
2221 test ! -d "$ac_dir" && mkdir "$ac_dir"
2224 mv conftest.h $ac_file
2229 cat >> $CONFIG_STATUS <<EOF
2232 cat >> $CONFIG_STATUS <<\EOF
2236 chmod +x $CONFIG_STATUS
2237 rm -fr confdefs* $ac_clean_files
2238 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1