initial commit
[jalview.git] / forester / archive / RIO / others / hmmer / squid / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-pvm         enable PVM, Parallel Virtual Machine"
16
17 # Initialize some variables set by options.
18 # The variables have the same names as the options, with
19 # dashes changed to underlines.
20 build=NONE
21 cache_file=./config.cache
22 exec_prefix=NONE
23 host=NONE
24 no_create=
25 nonopt=NONE
26 no_recursion=
27 prefix=NONE
28 program_prefix=NONE
29 program_suffix=NONE
30 program_transform_name=s,x,x,
31 silent=
32 site=
33 srcdir=
34 target=NONE
35 verbose=
36 x_includes=NONE
37 x_libraries=NONE
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'
50
51 # Initialize some other variables.
52 subdirs=
53 MFLAGS= MAKEFLAGS=
54 SHELL=${CONFIG_SHELL-/bin/sh}
55 # Maximum number of lines to put in a shell here document.
56 ac_max_here_lines=12
57
58 ac_prev=
59 for ac_option
60 do
61
62   # If the previous option needs an argument, assign it.
63   if test -n "$ac_prev"; then
64     eval "$ac_prev=\$ac_option"
65     ac_prev=
66     continue
67   fi
68
69   case "$ac_option" in
70   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71   *) ac_optarg= ;;
72   esac
73
74   # Accept the important Cygnus configure options, so we can diagnose typos.
75
76   case "$ac_option" in
77
78   -bindir | --bindir | --bindi | --bind | --bin | --bi)
79     ac_prev=bindir ;;
80   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81     bindir="$ac_optarg" ;;
82
83   -build | --build | --buil | --bui | --bu)
84     ac_prev=build ;;
85   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86     build="$ac_optarg" ;;
87
88   -cache-file | --cache-file | --cache-fil | --cache-fi \
89   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
90     ac_prev=cache_file ;;
91   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
92   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
93     cache_file="$ac_optarg" ;;
94
95   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
96     ac_prev=datadir ;;
97   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
98   | --da=*)
99     datadir="$ac_optarg" ;;
100
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; }
106     fi
107     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
108     eval "enable_${ac_feature}=no" ;;
109
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; }
115     fi
116     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
117     case "$ac_option" in
118       *=*) ;;
119       *) ac_optarg=yes ;;
120     esac
121     eval "enable_${ac_feature}='$ac_optarg'" ;;
122
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" ;;
131
132   -gas | --gas | --ga | --g)
133     # Obsolete; use --with-gas.
134     with_gas=yes ;;
135
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.
139     cat << EOF
140 Usage: configure [options] [host]
141 Options: [defaults in brackets after descriptions]
142 Configuration:
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
150                           [$ac_default_prefix]
151   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
152                           [same as prefix]
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
157                           [PREFIX/share]
158   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
159   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
160                           [PREFIX/com]
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
172 EOF
173     cat << EOF
174 Host type:
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
185 EOF
186     if test -n "$ac_help"; then
187       echo "--enable and --with options recognized:$ac_help"
188     fi
189     exit 0 ;;
190
191   -host | --host | --hos | --ho)
192     ac_prev=host ;;
193   -host=* | --host=* | --hos=* | --ho=*)
194     host="$ac_optarg" ;;
195
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" ;;
202
203   -infodir | --infodir | --infodi | --infod | --info | --inf)
204     ac_prev=infodir ;;
205   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206     infodir="$ac_optarg" ;;
207
208   -libdir | --libdir | --libdi | --libd)
209     ac_prev=libdir ;;
210   -libdir=* | --libdir=* | --libdi=* | --libd=*)
211     libdir="$ac_optarg" ;;
212
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" ;;
219
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" ;;
228
229   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
230     ac_prev=mandir ;;
231   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232     mandir="$ac_optarg" ;;
233
234   -nfp | --nfp | --nf)
235     # Obsolete; use --without-fp.
236     with_fp=no ;;
237
238   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
239   | --no-cr | --no-c)
240     no_create=yes ;;
241
242   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244     no_recursion=yes ;;
245
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" ;;
254
255   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
256     ac_prev=prefix ;;
257   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258     prefix="$ac_optarg" ;;
259
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" ;;
266
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" ;;
273
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" ;;
290
291   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292   | -silent | --silent | --silen | --sile | --sil)
293     silent=yes ;;
294
295   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
296     ac_prev=sbindir ;;
297   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
298   | --sbi=* | --sb=*)
299     sbindir="$ac_optarg" ;;
300
301   -sharedstatedir | --sharedstatedir | --sharedstatedi \
302   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303   | --sharedst | --shareds | --shared | --share | --shar \
304   | --sha | --sh)
305     ac_prev=sharedstatedir ;;
306   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
309   | --sha=* | --sh=*)
310     sharedstatedir="$ac_optarg" ;;
311
312   -site | --site | --sit)
313     ac_prev=site ;;
314   -site=* | --site=* | --sit=*)
315     site="$ac_optarg" ;;
316
317   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
318     ac_prev=srcdir ;;
319   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
320     srcdir="$ac_optarg" ;;
321
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" ;;
328
329   -target | --target | --targe | --targ | --tar | --ta | --t)
330     ac_prev=target ;;
331   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
332     target="$ac_optarg" ;;
333
334   -v | -verbose | --verbose | --verbos | --verbo | --verb)
335     verbose=yes ;;
336
337   -version | --version | --versio | --versi | --vers)
338     echo "configure generated by autoconf version 2.13"
339     exit 0 ;;
340
341   -with-* | --with-*)
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; }
346     fi
347     ac_package=`echo $ac_package| sed 's/-/_/g'`
348     case "$ac_option" in
349       *=*) ;;
350       *) ac_optarg=yes ;;
351     esac
352     eval "with_${ac_package}='$ac_optarg'" ;;
353
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; }
359     fi
360     ac_package=`echo $ac_package| sed 's/-/_/g'`
361     eval "with_${ac_package}=no" ;;
362
363   --x)
364     # Obsolete; use --with-x.
365     with_x=yes ;;
366
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" ;;
373
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" ;;
380
381   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
382     ;;
383
384   *)
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
387     fi
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; }
390     fi
391     nonopt="$ac_option"
392     ;;
393
394   esac
395 done
396
397 if test -n "$ac_prev"; then
398   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399 fi
400
401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
402
403 # File descriptor usage:
404 # 0 standard input
405 # 1 file creation
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
412   exec 6>/dev/null
413 else
414   exec 6>&1
415 fi
416 exec 5>./config.log
417
418 echo "\
419 This file contains any messages produced by compilers while
420 running configure, to aid debugging if configure makes a mistake.
421 " 1>&5
422
423 # Strip out --no-create and --no-recursion so they do not pile up.
424 # Also quote any args containing shell metacharacters.
425 ac_configure_args=
426 for ac_arg
427 do
428   case "$ac_arg" in
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" ;;
436   esac
437 done
438
439 # NLS nuisances.
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
448
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.
452 echo > confdefs.h
453
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
457
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.
462   ac_prog=$0
463   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
465   srcdir=$ac_confdir
466   if test ! -r $srcdir/$ac_unique_file; then
467     srcdir=..
468   fi
469 else
470   ac_srcdir_defaulted=no
471 fi
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; }
475   else
476     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477   fi
478 fi
479 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
480
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"
485   else
486     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487   fi
488 fi
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"
492     . "$ac_site_file"
493   fi
494 done
495
496 if test -r "$cache_file"; then
497   echo "loading cache $cache_file"
498   . $cache_file
499 else
500   echo "creating cache $cache_file"
501   > $cache_file
502 fi
503
504 ac_ext=c
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
510
511 ac_exeext=
512 ac_objext=o
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
516     ac_n= ac_c='
517 ' ac_t='        '
518   else
519     ac_n=-n ac_c= ac_t=
520   fi
521 else
522   ac_n= ac_c='\c' ac_t=
523 fi
524
525
526
527
528 echo "   Welcome to SQUID... configuring for your system."
529
530
531
532
533
534
535
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
542 else
543   if test -n "$CC"; then
544   ac_cv_prog_CC="$CC" # Let the user override the test.
545 else
546   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
547   ac_dummy="$PATH"
548   for ac_dir in $ac_dummy; do
549     test -z "$ac_dir" && ac_dir=.
550     if test -f $ac_dir/$ac_word; then
551       ac_cv_prog_CC="gcc"
552       break
553     fi
554   done
555   IFS="$ac_save_ifs"
556 fi
557 fi
558 CC="$ac_cv_prog_CC"
559 if test -n "$CC"; then
560   echo "$ac_t""$CC" 1>&6
561 else
562   echo "$ac_t""no" 1>&6
563 fi
564
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
572 else
573   if test -n "$CC"; then
574   ac_cv_prog_CC="$CC" # Let the user override the test.
575 else
576   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
577   ac_prog_rejected=no
578   ac_dummy="$PATH"
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
583         ac_prog_rejected=yes
584         continue
585       fi
586       ac_cv_prog_CC="cc"
587       break
588     fi
589   done
590   IFS="$ac_save_ifs"
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
594   shift
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.
599     shift
600     set dummy "$ac_dir/$ac_word" "$@"
601     shift
602     ac_cv_prog_CC="$@"
603   fi
604 fi
605 fi
606 fi
607 CC="$ac_cv_prog_CC"
608 if test -n "$CC"; then
609   echo "$ac_t""$CC" 1>&6
610 else
611   echo "$ac_t""no" 1>&6
612 fi
613
614   if test -z "$CC"; then
615     case "`uname -s`" in
616     *win32* | *WIN32*)
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
623 else
624   if test -n "$CC"; then
625   ac_cv_prog_CC="$CC" # Let the user override the test.
626 else
627   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
628   ac_dummy="$PATH"
629   for ac_dir in $ac_dummy; do
630     test -z "$ac_dir" && ac_dir=.
631     if test -f $ac_dir/$ac_word; then
632       ac_cv_prog_CC="cl"
633       break
634     fi
635   done
636   IFS="$ac_save_ifs"
637 fi
638 fi
639 CC="$ac_cv_prog_CC"
640 if test -n "$CC"; then
641   echo "$ac_t""$CC" 1>&6
642 else
643   echo "$ac_t""no" 1>&6
644 fi
645  ;;
646     esac
647   fi
648   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
649 fi
650
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
653
654 ac_ext=c
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
660
661 cat > conftest.$ac_ext << EOF
662
663 #line 664 "configure"
664 #include "confdefs.h"
665
666 main(){return(0);}
667 EOF
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
673   else
674     ac_cv_prog_cc_cross=yes
675   fi
676 else
677   echo "configure: failed program was:" >&5
678   cat conftest.$ac_ext >&5
679   ac_cv_prog_cc_works=no
680 fi
681 rm -fr conftest*
682 ac_ext=c
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
688
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; }
692 fi
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
697
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
702 else
703   cat > conftest.c <<EOF
704 #ifdef __GNUC__
705   yes;
706 #endif
707 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
709   ac_cv_prog_gcc=yes
710 else
711   ac_cv_prog_gcc=no
712 fi
713 fi
714
715 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
716
717 if test $ac_cv_prog_gcc = yes; then
718   GCC=yes
719 else
720   GCC=
721 fi
722
723 ac_test_CFLAGS="${CFLAGS+set}"
724 ac_save_CFLAGS="$CFLAGS"
725 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
730 else
731   echo 'void f(){}' > conftest.c
732 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
733   ac_cv_prog_cc_g=yes
734 else
735   ac_cv_prog_cc_g=no
736 fi
737 rm -f conftest*
738
739 fi
740
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
746     CFLAGS="-g -O2"
747   else
748     CFLAGS="-g"
749   fi
750 else
751   if test "$GCC" = yes; then
752     CFLAGS="-O2"
753   else
754     CFLAGS=
755   fi
756 fi
757
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
762 else
763   rm -f conftestdata
764 if ln -s X conftestdata 2>/dev/null
765 then
766   rm -f conftestdata
767   ac_cv_prog_LN_S="ln -s"
768 else
769   ac_cv_prog_LN_S=ln
770 fi
771 fi
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
775 else
776   echo "$ac_t""no" 1>&6
777 fi
778
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
785 else
786   if test -n "$RANLIB"; then
787   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
788 else
789   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
790   ac_dummy="$PATH"
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"
795       break
796     fi
797   done
798   IFS="$ac_save_ifs"
799   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
800 fi
801 fi
802 RANLIB="$ac_cv_prog_RANLIB"
803 if test -n "$RANLIB"; then
804   echo "$ac_t""$RANLIB" 1>&6
805 else
806   echo "$ac_t""no" 1>&6
807 fi
808
809
810
811  
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' ;
819   fi
820   echo "$ac_t""$foundGNUmake" 1>&6
821   
822
823
824 # Check whether --with-pvm or --without-pvm was given.
825 if test "${with_pvm+set}" = set; then
826   withval="$with_pvm"
827   case $with_pvm in
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"
832          PVMLIBS="-lpvm3"
833          ;;
834    no)   ;;
835    *)    echo "Ignoring unknown argument to --with-pvm: $with_pvm"
836          ;;
837 esac
838 fi
839
840
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
845 else
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>
853 int main() {
854
855 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
856  bogus endian macros
857 #endif
858 ; return 0; }
859 EOF
860 if { (eval echo configure:861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
861   rm -rf conftest*
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>
868 int main() {
869
870 #if BYTE_ORDER != BIG_ENDIAN
871  not big endian
872 #endif
873 ; return 0; }
874 EOF
875 if { (eval echo configure:876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
876   rm -rf conftest*
877   ac_cv_c_bigendian=yes
878 else
879   echo "configure: failed program was:" >&5
880   cat conftest.$ac_ext >&5
881   rm -rf conftest*
882   ac_cv_c_bigendian=no
883 fi
884 rm -f conftest*
885 else
886   echo "configure: failed program was:" >&5
887   cat conftest.$ac_ext >&5
888 fi
889 rm -f conftest*
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; }
893 else
894   cat > conftest.$ac_ext <<EOF
895 #line 896 "configure"
896 #include "confdefs.h"
897 main () {
898   /* Are we little or big endian?  From Harbison&Steele.  */
899   union
900   {
901     long l;
902     char c[sizeof (long)];
903   } u;
904   u.l = 1;
905   exit (u.c[sizeof (long) - 1] == 1);
906 }
907 EOF
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
909 then
910   ac_cv_c_bigendian=no
911 else
912   echo "configure: failed program was:" >&5
913   cat conftest.$ac_ext >&5
914   rm -fr conftest*
915   ac_cv_c_bigendian=yes
916 fi
917 rm -fr conftest*
918 fi
919
920 fi
921 fi
922
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
927 EOF
928
929 fi
930
931 for ac_func in ntohs
932 do
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
937 else
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.  */
943 #include <assert.h>
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.  */
947 char $ac_func();
948
949 int main() {
950
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)
955 choke me
956 #else
957 $ac_func();
958 #endif
959
960 ; return 0; }
961 EOF
962 if { (eval echo configure:963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
963   rm -rf conftest*
964   eval "ac_cv_func_$ac_func=yes"
965 else
966   echo "configure: failed program was:" >&5
967   cat conftest.$ac_ext >&5
968   rm -rf conftest*
969   eval "ac_cv_func_$ac_func=no"
970 fi
971 rm -f conftest*
972 fi
973
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
979 EOF
980  
981 else
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
988 else
989   ac_save_LIBS="$LIBS"
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.  */
997 char ntohs();
998
999 int main() {
1000 ntohs()
1001 ; return 0; }
1002 EOF
1003 if { (eval echo configure:1004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1004   rm -rf conftest*
1005   eval "ac_cv_lib_$ac_lib_var=yes"
1006 else
1007   echo "configure: failed program was:" >&5
1008   cat conftest.$ac_ext >&5
1009   rm -rf conftest*
1010   eval "ac_cv_lib_$ac_lib_var=no"
1011 fi
1012 rm -f conftest*
1013 LIBS="$ac_save_LIBS"
1014
1015 fi
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
1022 EOF
1023
1024   LIBS="-lsocket $LIBS"
1025
1026 else
1027   echo "$ac_t""no" 1>&6
1028 fi
1029
1030 fi
1031 done
1032
1033 for ac_func in ntohl
1034 do
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
1039 else
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.  */
1045 #include <assert.h>
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.  */
1049 char $ac_func();
1050
1051 int main() {
1052
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)
1057 choke me
1058 #else
1059 $ac_func();
1060 #endif
1061
1062 ; return 0; }
1063 EOF
1064 if { (eval echo configure:1065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1065   rm -rf conftest*
1066   eval "ac_cv_func_$ac_func=yes"
1067 else
1068   echo "configure: failed program was:" >&5
1069   cat conftest.$ac_ext >&5
1070   rm -rf conftest*
1071   eval "ac_cv_func_$ac_func=no"
1072 fi
1073 rm -f conftest*
1074 fi
1075
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
1081 EOF
1082  
1083 else
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
1090 else
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.  */
1099 char ntohl();
1100
1101 int main() {
1102 ntohl()
1103 ; return 0; }
1104 EOF
1105 if { (eval echo configure:1106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1106   rm -rf conftest*
1107   eval "ac_cv_lib_$ac_lib_var=yes"
1108 else
1109   echo "configure: failed program was:" >&5
1110   cat conftest.$ac_ext >&5
1111   rm -rf conftest*
1112   eval "ac_cv_lib_$ac_lib_var=no"
1113 fi
1114 rm -f conftest*
1115 LIBS="$ac_save_LIBS"
1116
1117 fi
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
1124 EOF
1125
1126   LIBS="-lsocket $LIBS"
1127
1128 else
1129   echo "$ac_t""no" 1>&6
1130 fi
1131
1132 fi
1133 done
1134
1135 for ac_func in htons
1136 do
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
1141 else
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.  */
1147 #include <assert.h>
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.  */
1151 char $ac_func();
1152
1153 int main() {
1154
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)
1159 choke me
1160 #else
1161 $ac_func();
1162 #endif
1163
1164 ; return 0; }
1165 EOF
1166 if { (eval echo configure:1167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1167   rm -rf conftest*
1168   eval "ac_cv_func_$ac_func=yes"
1169 else
1170   echo "configure: failed program was:" >&5
1171   cat conftest.$ac_ext >&5
1172   rm -rf conftest*
1173   eval "ac_cv_func_$ac_func=no"
1174 fi
1175 rm -f conftest*
1176 fi
1177
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
1183 EOF
1184  
1185 else
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
1192 else
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.  */
1201 char htons();
1202
1203 int main() {
1204 htons()
1205 ; return 0; }
1206 EOF
1207 if { (eval echo configure:1208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1208   rm -rf conftest*
1209   eval "ac_cv_lib_$ac_lib_var=yes"
1210 else
1211   echo "configure: failed program was:" >&5
1212   cat conftest.$ac_ext >&5
1213   rm -rf conftest*
1214   eval "ac_cv_lib_$ac_lib_var=no"
1215 fi
1216 rm -f conftest*
1217 LIBS="$ac_save_LIBS"
1218
1219 fi
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
1226 EOF
1227
1228   LIBS="-lsocket $LIBS"
1229
1230 else
1231   echo "$ac_t""no" 1>&6
1232 fi
1233
1234 fi
1235 done
1236
1237 for ac_func in htonl
1238 do
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
1243 else
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.  */
1249 #include <assert.h>
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.  */
1253 char $ac_func();
1254
1255 int main() {
1256
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)
1261 choke me
1262 #else
1263 $ac_func();
1264 #endif
1265
1266 ; return 0; }
1267 EOF
1268 if { (eval echo configure:1269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1269   rm -rf conftest*
1270   eval "ac_cv_func_$ac_func=yes"
1271 else
1272   echo "configure: failed program was:" >&5
1273   cat conftest.$ac_ext >&5
1274   rm -rf conftest*
1275   eval "ac_cv_func_$ac_func=no"
1276 fi
1277 rm -f conftest*
1278 fi
1279
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
1285 EOF
1286  
1287 else
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
1294 else
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.  */
1303 char htonl();
1304
1305 int main() {
1306 htonl()
1307 ; return 0; }
1308 EOF
1309 if { (eval echo configure:1310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1310   rm -rf conftest*
1311   eval "ac_cv_lib_$ac_lib_var=yes"
1312 else
1313   echo "configure: failed program was:" >&5
1314   cat conftest.$ac_ext >&5
1315   rm -rf conftest*
1316   eval "ac_cv_lib_$ac_lib_var=no"
1317 fi
1318 rm -f conftest*
1319 LIBS="$ac_save_LIBS"
1320
1321 fi
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
1328 EOF
1329
1330   LIBS="-lsocket $LIBS"
1331
1332 else
1333   echo "$ac_t""no" 1>&6
1334 fi
1335
1336 fi
1337 done
1338
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
1343 else
1344   if test "$cross_compiling" = yes; then
1345   ac_cv_sizeof_unsigned_short=2
1346 else
1347   cat > conftest.$ac_ext <<EOF
1348 #line 1349 "configure"
1349 #include "confdefs.h"
1350 #include <stdio.h>
1351 main()
1352 {
1353   FILE *f=fopen("conftestval", "w");
1354   if (!f) exit(1);
1355   fprintf(f, "%d\n", sizeof(unsigned short));
1356   exit(0);
1357 }
1358 EOF
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
1360 then
1361   ac_cv_sizeof_unsigned_short=`cat conftestval`
1362 else
1363   echo "configure: failed program was:" >&5
1364   cat conftest.$ac_ext >&5
1365   rm -fr conftest*
1366   ac_cv_sizeof_unsigned_short=0
1367 fi
1368 rm -fr conftest*
1369 fi
1370
1371 fi
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
1375 EOF
1376
1377
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
1382 else
1383   if test "$cross_compiling" = yes; then
1384   ac_cv_sizeof_unsigned_int=4
1385 else
1386   cat > conftest.$ac_ext <<EOF
1387 #line 1388 "configure"
1388 #include "confdefs.h"
1389 #include <stdio.h>
1390 main()
1391 {
1392   FILE *f=fopen("conftestval", "w");
1393   if (!f) exit(1);
1394   fprintf(f, "%d\n", sizeof(unsigned int));
1395   exit(0);
1396 }
1397 EOF
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
1399 then
1400   ac_cv_sizeof_unsigned_int=`cat conftestval`
1401 else
1402   echo "configure: failed program was:" >&5
1403   cat conftest.$ac_ext >&5
1404   rm -fr conftest*
1405   ac_cv_sizeof_unsigned_int=0
1406 fi
1407 rm -fr conftest*
1408 fi
1409
1410 fi
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
1414 EOF
1415
1416
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
1421 else
1422   if test "$cross_compiling" = yes; then
1423   ac_cv_sizeof_unsigned_long=4
1424 else
1425   cat > conftest.$ac_ext <<EOF
1426 #line 1427 "configure"
1427 #include "confdefs.h"
1428 #include <stdio.h>
1429 main()
1430 {
1431   FILE *f=fopen("conftestval", "w");
1432   if (!f) exit(1);
1433   fprintf(f, "%d\n", sizeof(unsigned long));
1434   exit(0);
1435 }
1436 EOF
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
1438 then
1439   ac_cv_sizeof_unsigned_long=`cat conftestval`
1440 else
1441   echo "configure: failed program was:" >&5
1442   cat conftest.$ac_ext >&5
1443   rm -fr conftest*
1444   ac_cv_sizeof_unsigned_long=0
1445 fi
1446 rm -fr conftest*
1447 fi
1448
1449 fi
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
1453 EOF
1454
1455
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
1460 else
1461   if test "$cross_compiling" = yes; then
1462   ac_cv_sizeof_unsigned_long_long=8
1463 else
1464   cat > conftest.$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1467 #include <stdio.h>
1468 main()
1469 {
1470   FILE *f=fopen("conftestval", "w");
1471   if (!f) exit(1);
1472   fprintf(f, "%d\n", sizeof(unsigned long long));
1473   exit(0);
1474 }
1475 EOF
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
1477 then
1478   ac_cv_sizeof_unsigned_long_long=`cat conftestval`
1479 else
1480   echo "configure: failed program was:" >&5
1481   cat conftest.$ac_ext >&5
1482   rm -fr conftest*
1483   ac_cv_sizeof_unsigned_long_long=0
1484 fi
1485 rm -fr conftest*
1486 fi
1487
1488 fi
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
1492 EOF
1493
1494
1495 if test "$ac_cv_sizeof_unsigned_short" = "2"; then
1496   SQD_UINT16="unsigned short    "
1497 else
1498   SQD_UINT16="FIXME"
1499   echo "configure: warning: " 1>&2 "No 16-bit int? Manually edit config file to typedef sqd_uint16."
1500 fi
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     "
1505 else
1506   SQD_UINT32="FIXME"
1507   echo "configure: warning: " 1>&2 "No 32-bit int? Manually edit config file to typedef sqd_uint32."
1508 fi
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"
1513 else
1514   SQD_UINT64="FIXME"
1515   echo "configure: warning: " 1>&2 "No 64-bit int? Manually edit config file to typedef sqd_uint64."
1516 fi
1517
1518
1519
1520
1521
1522
1523
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"
1530 #include <stdio.h>
1531 int main() {
1532 int main(void) { fpos_t f1, f2; if (f1 == f2) f1 = 0;}
1533 ; return 0; }
1534 EOF
1535 if { (eval echo configure:1536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1536   rm -rf conftest*
1537   cat >> confdefs.h <<\EOF
1538 #define ARITHMETIC_FPOS_T 1
1539 EOF
1540  
1541        fpos_arithmetic="yes."
1542 else
1543   echo "configure: failed program was:" >&5
1544   cat conftest.$ac_ext >&5
1545 fi
1546 rm -f conftest*
1547    echo "$ac_t""$fpos_arithmetic" 1>&6
1548
1549
1550 for ac_func in ftello fseeko
1551 do
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
1556 else
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.  */
1562 #include <assert.h>
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.  */
1566 char $ac_func();
1567
1568 int main() {
1569
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)
1574 choke me
1575 #else
1576 $ac_func();
1577 #endif
1578
1579 ; return 0; }
1580 EOF
1581 if { (eval echo configure:1582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1582   rm -rf conftest*
1583   eval "ac_cv_func_$ac_func=yes"
1584 else
1585   echo "configure: failed program was:" >&5
1586   cat conftest.$ac_ext >&5
1587   rm -rf conftest*
1588   eval "ac_cv_func_$ac_func=no"
1589 fi
1590 rm -f conftest*
1591 fi
1592
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
1598 EOF
1599  
1600 else
1601   echo "$ac_t""no" 1>&6
1602 fi
1603 done
1604
1605 for ac_func in ftello64 fseeko64
1606 do
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
1611 else
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.  */
1617 #include <assert.h>
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.  */
1621 char $ac_func();
1622
1623 int main() {
1624
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)
1629 choke me
1630 #else
1631 $ac_func();
1632 #endif
1633
1634 ; return 0; }
1635 EOF
1636 if { (eval echo configure:1637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1637   rm -rf conftest*
1638   eval "ac_cv_func_$ac_func=yes"
1639 else
1640   echo "configure: failed program was:" >&5
1641   cat conftest.$ac_ext >&5
1642   rm -rf conftest*
1643   eval "ac_cv_func_$ac_func=no"
1644 fi
1645 rm -f conftest*
1646 fi
1647
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
1653 EOF
1654  
1655 else
1656   echo "$ac_t""no" 1>&6
1657 fi
1658 done
1659
1660 for ac_func in ftell64 fseek64
1661 do
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
1666 else
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.  */
1672 #include <assert.h>
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.  */
1676 char $ac_func();
1677
1678 int main() {
1679
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)
1684 choke me
1685 #else
1686 $ac_func();
1687 #endif
1688
1689 ; return 0; }
1690 EOF
1691 if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1692   rm -rf conftest*
1693   eval "ac_cv_func_$ac_func=yes"
1694 else
1695   echo "configure: failed program was:" >&5
1696   cat conftest.$ac_ext >&5
1697   rm -rf conftest*
1698   eval "ac_cv_func_$ac_func=no"
1699 fi
1700 rm -f conftest*
1701 fi
1702
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
1708 EOF
1709  
1710 else
1711   echo "$ac_t""no" 1>&6
1712 fi
1713 done
1714
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
1719 else
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.  */
1725 #include <assert.h>
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.  */
1729 char stat64();
1730
1731 int main() {
1732
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)
1737 choke me
1738 #else
1739 stat64();
1740 #endif
1741
1742 ; return 0; }
1743 EOF
1744 if { (eval echo configure:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1745   rm -rf conftest*
1746   eval "ac_cv_func_stat64=yes"
1747 else
1748   echo "configure: failed program was:" >&5
1749   cat conftest.$ac_ext >&5
1750   rm -rf conftest*
1751   eval "ac_cv_func_stat64=no"
1752 fi
1753 rm -f conftest*
1754 fi
1755
1756 if eval "test \"`echo '$ac_cv_func_'stat64`\" = yes"; then
1757   echo "$ac_t""yes" 1>&6
1758   :
1759 else
1760   echo "$ac_t""no" 1>&6
1761 fi
1762
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
1767 else
1768   if test "$cross_compiling" = yes; then
1769     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1770 else
1771   cat > conftest.$ac_ext <<EOF
1772 #line 1773 "configure"
1773 #include "confdefs.h"
1774 #include <stdio.h>
1775 main()
1776 {
1777   FILE *f=fopen("conftestval", "w");
1778   if (!f) exit(1);
1779   fprintf(f, "%d\n", sizeof(off_t));
1780   exit(0);
1781 }
1782 EOF
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
1784 then
1785   ac_cv_sizeof_off_t=`cat conftestval`
1786 else
1787   echo "configure: failed program was:" >&5
1788   cat conftest.$ac_ext >&5
1789   rm -fr conftest*
1790   ac_cv_sizeof_off_t=0
1791 fi
1792 rm -fr conftest*
1793 fi
1794
1795 fi
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
1799 EOF
1800
1801
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
1806 else
1807   if test "$cross_compiling" = yes; then
1808     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1809 else
1810   cat > conftest.$ac_ext <<EOF
1811 #line 1812 "configure"
1812 #include "confdefs.h"
1813 #include <stdio.h>
1814 main()
1815 {
1816   FILE *f=fopen("conftestval", "w");
1817   if (!f) exit(1);
1818   fprintf(f, "%d\n", sizeof(off64_t));
1819   exit(0);
1820 }
1821 EOF
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
1823 then
1824   ac_cv_sizeof_off64_t=`cat conftestval`
1825 else
1826   echo "configure: failed program was:" >&5
1827   cat conftest.$ac_ext >&5
1828   rm -fr conftest*
1829   ac_cv_sizeof_off64_t=0
1830 fi
1831 rm -fr conftest*
1832 fi
1833
1834 fi
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
1838 EOF
1839
1840
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
1845 else
1846   if test "$cross_compiling" = yes; then
1847     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1848 else
1849   cat > conftest.$ac_ext <<EOF
1850 #line 1851 "configure"
1851 #include "confdefs.h"
1852 #include <stdio.h>
1853 main()
1854 {
1855   FILE *f=fopen("conftestval", "w");
1856   if (!f) exit(1);
1857   fprintf(f, "%d\n", sizeof(fpos_t));
1858   exit(0);
1859 }
1860 EOF
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
1862 then
1863   ac_cv_sizeof_fpos_t=`cat conftestval`
1864 else
1865   echo "configure: failed program was:" >&5
1866   cat conftest.$ac_ext >&5
1867   rm -fr conftest*
1868   ac_cv_sizeof_fpos_t=0
1869 fi
1870 rm -fr conftest*
1871 fi
1872
1873 fi
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
1877 EOF
1878
1879
1880
1881 echo "   Configuration complete. Writing Makefiles and such..."
1882 trap '' 1 2 15
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.
1888 #
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.
1897 #
1898 EOF
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.
1904 (set) 2>&1 |
1905   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1906   *ac_space=\ *)
1907     # `set' does not quote correctly, so add quotes (double-quote substitution
1908     # turns \\\\ into \\, and sed turns \\ into \).
1909     sed -n \
1910       -e "s/'/'\\\\''/g" \
1911       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1912     ;;
1913   *)
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'
1916     ;;
1917   esac >> confcache
1918 if cmp -s $cache_file confcache; then
1919   :
1920 else
1921   if test -w $cache_file; then
1922     echo "updating cache $cache_file"
1923     cat confcache > $cache_file
1924   else
1925     echo "not updating unwritable cache $cache_file"
1926   fi
1927 fi
1928 rm -f confcache
1929
1930 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1931
1932 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1933 # Let make expand exec_prefix.
1934 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1935
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'
1941 fi
1942
1943 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1944
1945 DEFS=-DHAVE_CONFIG_H
1946
1947 # Without the "./", some shells look in PATH for config.status.
1948 : ${CONFIG_STATUS=./config.status}
1949
1950 echo creating $CONFIG_STATUS
1951 rm -f $CONFIG_STATUS
1952 cat > $CONFIG_STATUS <<EOF
1953 #! /bin/sh
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`:
1958 #
1959 # $0 $ac_configure_args
1960 #
1961 # Compiler output produced by configure, useful for debugging
1962 # configure, is in ./config.log if it exists.
1963
1964 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1965 for ac_option
1966 do
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"
1973     exit 0 ;;
1974   -help | --help | --hel | --he | --h)
1975     echo "\$ac_cs_usage"; exit 0 ;;
1976   *) echo "\$ac_cs_usage"; exit 1 ;;
1977   esac
1978 done
1979
1980 ac_given_srcdir=$srcdir
1981
1982 trap 'rm -fr `echo "Makefile squid.h squidconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1983 EOF
1984 cat >> $CONFIG_STATUS <<EOF
1985
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
1989 $ac_vpsub
1990 $extrasub
1991 s%@SHELL@%$SHELL%g
1992 s%@CFLAGS@%$CFLAGS%g
1993 s%@CPPFLAGS@%$CPPFLAGS%g
1994 s%@CXXFLAGS@%$CXXFLAGS%g
1995 s%@FFLAGS@%$FFLAGS%g
1996 s%@DEFS@%$DEFS%g
1997 s%@LDFLAGS@%$LDFLAGS%g
1998 s%@LIBS@%$LIBS%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
2014 s%@MDEFS@%$MDEFS%g
2015 s%@PVMLIBDIR@%$PVMLIBDIR%g
2016 s%@PVMINCDIR@%$PVMINCDIR%g
2017 s%@PVMFLAG@%$PVMFLAG%g
2018 s%@PVMLIBS@%$PVMLIBS%g
2019 s%@CC@%$CC%g
2020 s%@LN_S@%$LN_S%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
2026
2027 CEOF
2028 EOF
2029
2030 cat >> $CONFIG_STATUS <<\EOF
2031
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.
2038 ac_more_lines=:
2039 ac_sed_cmds=""
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
2043   else
2044     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2045   fi
2046   if test ! -s conftest.s$ac_file; then
2047     ac_more_lines=false
2048     rm -f conftest.s$ac_file
2049   else
2050     if test -z "$ac_sed_cmds"; then
2051       ac_sed_cmds="sed -f conftest.s$ac_file"
2052     else
2053       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2054     fi
2055     ac_file=`expr $ac_file + 1`
2056     ac_beg=$ac_end
2057     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2058   fi
2059 done
2060 if test -z "$ac_sed_cmds"; then
2061   ac_sed_cmds=cat
2062 fi
2063 EOF
2064
2065 cat >> $CONFIG_STATUS <<EOF
2066
2067 CONFIG_FILES=\${CONFIG_FILES-"Makefile squid.h"}
2068 EOF
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".
2072   case "$ac_file" 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" ;;
2076   esac
2077
2078   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2079
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'`
2088   else
2089     ac_dir_suffix= ac_dots=
2090   fi
2091
2092   case "$ac_given_srcdir" in
2093   .)  srcdir=.
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" ;;
2097   *) # Relative path.
2098     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2099     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2100   esac
2101
2102
2103   echo creating "$ac_file"
2104   rm -f "$ac_file"
2105   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2106   case "$ac_file" in
2107   *Makefile*) ac_comsub="1i\\
2108 # $configure_input" ;;
2109   *) ac_comsub= ;;
2110   esac
2111
2112   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2113   sed -e "$ac_comsub
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
2118 fi; done
2119 rm -f conftest.s*
2120
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.
2123 #
2124 # ac_d sets the value in "#define NAME VALUE" lines.
2125 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2126 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2127 ac_dC='\3'
2128 ac_dD='%g'
2129 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2130 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2131 ac_uB='\([      ]\)%\1#\2define\3'
2132 ac_uC=' '
2133 ac_uD='\4%g'
2134 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2135 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2136 ac_eB='$%\1#\2define\3'
2137 ac_eC=' '
2138 ac_eD='%g'
2139
2140 if test "${CONFIG_HEADERS+set}" != set; then
2141 EOF
2142 cat >> $CONFIG_STATUS <<EOF
2143   CONFIG_HEADERS="squidconf.h"
2144 EOF
2145 cat >> $CONFIG_STATUS <<\EOF
2146 fi
2147 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2148   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2149   case "$ac_file" 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" ;;
2153   esac
2154
2155   echo creating $ac_file
2156
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
2160
2161 EOF
2162
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.
2167 rm -f conftest.vals
2168 cat > conftest.hdr <<\EOF
2169 s/[\\&%]/\\&/g
2170 s%[\\$`]%\\&%g
2171 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2172 s%ac_d%ac_u%gp
2173 s%ac_u%ac_e%gp
2174 EOF
2175 sed -n -f conftest.hdr confdefs.h > conftest.vals
2176 rm -f conftest.hdr
2177
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]*%/* & */%
2183 EOF
2184
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.
2187
2188 rm -f conftest.tail
2189 while :
2190 do
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
2197   echo 'CEOF
2198   sed -f conftest.frag conftest.in > conftest.out
2199   rm -f conftest.in
2200   mv conftest.out conftest.in
2201 ' >> $CONFIG_STATUS
2202   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2203   rm -f conftest.vals
2204   mv conftest.tail conftest.vals
2205 done
2206 rm -f conftest.vals
2207
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
2212   rm -f conftest.in
2213   if cmp -s $ac_file conftest.h 2>/dev/null; then
2214     echo "$ac_file is unchanged"
2215     rm -f conftest.h
2216   else
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"
2222     fi
2223     rm -f $ac_file
2224     mv conftest.h $ac_file
2225   fi
2226 fi; done
2227
2228 EOF
2229 cat >> $CONFIG_STATUS <<EOF
2230
2231 EOF
2232 cat >> $CONFIG_STATUS <<\EOF
2233
2234 exit 0
2235 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
2239
2240
2241