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 --disable-threads disable POSIX threads support"
19 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
23 cache_file=./config.cache
32 program_transform_name=s,x,x,
40 bindir='${exec_prefix}/bin'
41 sbindir='${exec_prefix}/sbin'
42 libexecdir='${exec_prefix}/libexec'
43 datadir='${prefix}/share'
44 sysconfdir='${prefix}/etc'
45 sharedstatedir='${prefix}/com'
46 localstatedir='${prefix}/var'
47 libdir='${exec_prefix}/lib'
48 includedir='${prefix}/include'
49 oldincludedir='/usr/include'
50 infodir='${prefix}/info'
51 mandir='${prefix}/man'
53 # Initialize some other variables.
56 SHELL=${CONFIG_SHELL-/bin/sh}
57 # Maximum number of lines to put in a shell here document.
64 # If the previous option needs an argument, assign it.
65 if test -n "$ac_prev"; then
66 eval "$ac_prev=\$ac_option"
72 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76 # Accept the important Cygnus configure options, so we can diagnose typos.
80 -bindir | --bindir | --bindi | --bind | --bin | --bi)
82 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
83 bindir="$ac_optarg" ;;
85 -build | --build | --buil | --bui | --bu)
87 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
90 -cache-file | --cache-file | --cache-fil | --cache-fi \
91 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
93 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
94 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
95 cache_file="$ac_optarg" ;;
97 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
99 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
101 datadir="$ac_optarg" ;;
103 -disable-* | --disable-*)
104 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
105 # Reject names that are not valid shell variable names.
106 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
107 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
109 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
110 eval "enable_${ac_feature}=no" ;;
112 -enable-* | --enable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}='$ac_optarg'" ;;
125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
127 | --exec | --exe | --ex)
128 ac_prev=exec_prefix ;;
129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
131 | --exec=* | --exe=* | --ex=*)
132 exec_prefix="$ac_optarg" ;;
134 -gas | --gas | --ga | --g)
135 # Obsolete; use --with-gas.
138 -help | --help | --hel | --he)
139 # Omit some internal or obsolete options to make the list less imposing.
140 # This message is too long to be a string in the A/UX 3.1 sh.
142 Usage: configure [options] [host]
143 Options: [defaults in brackets after descriptions]
145 --cache-file=FILE cache test results in FILE
146 --help print this message
147 --no-create do not create output files
148 --quiet, --silent do not print \`checking...' messages
149 --version print the version of autoconf that created configure
150 Directory and file names:
151 --prefix=PREFIX install architecture-independent files in PREFIX
153 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
155 --bindir=DIR user executables in DIR [EPREFIX/bin]
156 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
157 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
158 --datadir=DIR read-only architecture-independent data in DIR
160 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
161 --sharedstatedir=DIR modifiable architecture-independent data in DIR
163 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
164 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
165 --includedir=DIR C header files in DIR [PREFIX/include]
166 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
167 --infodir=DIR info documentation in DIR [PREFIX/info]
168 --mandir=DIR man documentation in DIR [PREFIX/man]
169 --srcdir=DIR find the sources in DIR [configure dir or ..]
170 --program-prefix=PREFIX prepend PREFIX to installed program names
171 --program-suffix=SUFFIX append SUFFIX to installed program names
172 --program-transform-name=PROGRAM
173 run sed PROGRAM on installed program names
177 --build=BUILD configure for building on BUILD [BUILD=HOST]
178 --host=HOST configure for HOST [guessed]
179 --target=TARGET configure for TARGET [TARGET=HOST]
180 Features and packages:
181 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
182 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
183 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
184 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
185 --x-includes=DIR X include files are in DIR
186 --x-libraries=DIR X library files are in DIR
188 if test -n "$ac_help"; then
189 echo "--enable and --with options recognized:$ac_help"
193 -host | --host | --hos | --ho)
195 -host=* | --host=* | --hos=* | --ho=*)
198 -includedir | --includedir | --includedi | --included | --include \
199 | --includ | --inclu | --incl | --inc)
200 ac_prev=includedir ;;
201 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
202 | --includ=* | --inclu=* | --incl=* | --inc=*)
203 includedir="$ac_optarg" ;;
205 -infodir | --infodir | --infodi | --infod | --info | --inf)
207 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
208 infodir="$ac_optarg" ;;
210 -libdir | --libdir | --libdi | --libd)
212 -libdir=* | --libdir=* | --libdi=* | --libd=*)
213 libdir="$ac_optarg" ;;
215 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
216 | --libexe | --libex | --libe)
217 ac_prev=libexecdir ;;
218 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
219 | --libexe=* | --libex=* | --libe=*)
220 libexecdir="$ac_optarg" ;;
222 -localstatedir | --localstatedir | --localstatedi | --localstated \
223 | --localstate | --localstat | --localsta | --localst \
224 | --locals | --local | --loca | --loc | --lo)
225 ac_prev=localstatedir ;;
226 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
227 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
228 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
229 localstatedir="$ac_optarg" ;;
231 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
233 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
234 mandir="$ac_optarg" ;;
237 # Obsolete; use --without-fp.
240 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
244 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
245 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
248 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
249 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
250 | --oldin | --oldi | --old | --ol | --o)
251 ac_prev=oldincludedir ;;
252 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
253 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
254 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
255 oldincludedir="$ac_optarg" ;;
257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
260 prefix="$ac_optarg" ;;
262 -program-prefix | --program-prefix | --program-prefi | --program-pref \
263 | --program-pre | --program-pr | --program-p)
264 ac_prev=program_prefix ;;
265 -program-prefix=* | --program-prefix=* | --program-prefi=* \
266 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
267 program_prefix="$ac_optarg" ;;
269 -program-suffix | --program-suffix | --program-suffi | --program-suff \
270 | --program-suf | --program-su | --program-s)
271 ac_prev=program_suffix ;;
272 -program-suffix=* | --program-suffix=* | --program-suffi=* \
273 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
274 program_suffix="$ac_optarg" ;;
276 -program-transform-name | --program-transform-name \
277 | --program-transform-nam | --program-transform-na \
278 | --program-transform-n | --program-transform- \
279 | --program-transform | --program-transfor \
280 | --program-transfo | --program-transf \
281 | --program-trans | --program-tran \
282 | --progr-tra | --program-tr | --program-t)
283 ac_prev=program_transform_name ;;
284 -program-transform-name=* | --program-transform-name=* \
285 | --program-transform-nam=* | --program-transform-na=* \
286 | --program-transform-n=* | --program-transform-=* \
287 | --program-transform=* | --program-transfor=* \
288 | --program-transfo=* | --program-transf=* \
289 | --program-trans=* | --program-tran=* \
290 | --progr-tra=* | --program-tr=* | --program-t=*)
291 program_transform_name="$ac_optarg" ;;
293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
294 | -silent | --silent | --silen | --sile | --sil)
297 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
299 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
301 sbindir="$ac_optarg" ;;
303 -sharedstatedir | --sharedstatedir | --sharedstatedi \
304 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
305 | --sharedst | --shareds | --shared | --share | --shar \
307 ac_prev=sharedstatedir ;;
308 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
309 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
310 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
312 sharedstatedir="$ac_optarg" ;;
314 -site | --site | --sit)
316 -site=* | --site=* | --sit=*)
319 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
321 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
322 srcdir="$ac_optarg" ;;
324 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
325 | --syscon | --sysco | --sysc | --sys | --sy)
326 ac_prev=sysconfdir ;;
327 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
328 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
329 sysconfdir="$ac_optarg" ;;
331 -target | --target | --targe | --targ | --tar | --ta | --t)
333 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
334 target="$ac_optarg" ;;
336 -v | -verbose | --verbose | --verbos | --verbo | --verb)
339 -version | --version | --versio | --versi | --vers)
340 echo "configure generated by autoconf version 2.13"
344 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
345 # Reject names that are not valid shell variable names.
346 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
347 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
349 ac_package=`echo $ac_package| sed 's/-/_/g'`
354 eval "with_${ac_package}='$ac_optarg'" ;;
356 -without-* | --without-*)
357 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}=no" ;;
366 # Obsolete; use --with-x.
369 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
370 | --x-incl | --x-inc | --x-in | --x-i)
371 ac_prev=x_includes ;;
372 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
373 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
374 x_includes="$ac_optarg" ;;
376 -x-libraries | --x-libraries | --x-librarie | --x-librari \
377 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
378 ac_prev=x_libraries ;;
379 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
380 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
381 x_libraries="$ac_optarg" ;;
383 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
388 echo "configure: warning: $ac_option: invalid host type" 1>&2
390 if test "x$nonopt" != xNONE; then
391 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
399 if test -n "$ac_prev"; then
400 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
405 # File descriptor usage:
408 # 2 errors and warnings
409 # 3 some systems may open it to /dev/tty
410 # 4 used on the Kubota Titan
411 # 6 checking for... messages and results
412 # 5 compiler messages saved in config.log
413 if test "$silent" = yes; then
421 This file contains any messages produced by compilers while
422 running configure, to aid debugging if configure makes a mistake.
425 # Strip out --no-create and --no-recursion so they do not pile up.
426 # Also quote any args containing shell metacharacters.
431 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
432 | --no-cr | --no-c) ;;
433 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
434 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
436 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
437 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
442 # Only set these to C if already set. These must not be set unconditionally
443 # because not all systems understand e.g. LANG=C (notably SCO).
444 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
445 # Non-C LC_CTYPE values break the ctype check.
446 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
447 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
448 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
449 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
452 rm -rf conftest* confdefs.h
453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
456 # A filename unique to this package, relative to the directory that
457 # configure is in, which we can look for to find out if srcdir is correct.
458 ac_unique_file=src/hmmpfam.c
460 # Find the source files, if location was not specified.
461 if test -z "$srcdir"; then
462 ac_srcdir_defaulted=yes
463 # Try the directory containing this script, then its parent.
465 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
468 if test ! -r $srcdir/$ac_unique_file; then
472 ac_srcdir_defaulted=no
474 if test ! -r $srcdir/$ac_unique_file; then
475 if test "$ac_srcdir_defaulted" = yes; then
476 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
478 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
481 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
483 # Prefer explicitly selected file to automatically selected ones.
484 if test -z "$CONFIG_SITE"; then
485 if test "x$prefix" != xNONE; then
486 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
488 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
491 for ac_site_file in $CONFIG_SITE; do
492 if test -r "$ac_site_file"; then
493 echo "loading site script $ac_site_file"
498 if test -r "$cache_file"; then
499 echo "loading cache $cache_file"
502 echo "creating cache $cache_file"
507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508 ac_cpp='$CPP $CPPFLAGS'
509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511 cross_compiling=$ac_cv_prog_cc_cross
515 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
516 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
517 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
524 ac_n= ac_c='\c' ac_t=
529 echo " Welcome to HMMER... configuring for your system."
538 # Extract the first word of "gcc", so it can be a program name with args.
539 set dummy gcc; ac_word=$2
540 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
541 echo "configure:542: checking for $ac_word" >&5
542 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
543 echo $ac_n "(cached) $ac_c" 1>&6
545 if test -n "$CC"; then
546 ac_cv_prog_CC="$CC" # Let the user override the test.
548 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
550 for ac_dir in $ac_dummy; do
551 test -z "$ac_dir" && ac_dir=.
552 if test -f $ac_dir/$ac_word; then
561 if test -n "$CC"; then
562 echo "$ac_t""$CC" 1>&6
564 echo "$ac_t""no" 1>&6
567 if test -z "$CC"; then
568 # Extract the first word of "cc", so it can be a program name with args.
569 set dummy cc; ac_word=$2
570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
571 echo "configure:572: checking for $ac_word" >&5
572 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
573 echo $ac_n "(cached) $ac_c" 1>&6
575 if test -n "$CC"; then
576 ac_cv_prog_CC="$CC" # Let the user override the test.
578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
581 for ac_dir in $ac_dummy; do
582 test -z "$ac_dir" && ac_dir=.
583 if test -f $ac_dir/$ac_word; then
584 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
593 if test $ac_prog_rejected = yes; then
594 # We found a bogon in the path, so make sure we never use it.
595 set dummy $ac_cv_prog_CC
597 if test $# -gt 0; then
598 # We chose a different compiler from the bogus one.
599 # However, it has the same basename, so the bogon will be chosen
600 # first if we set CC to just the basename; use the full file name.
602 set dummy "$ac_dir/$ac_word" "$@"
610 if test -n "$CC"; then
611 echo "$ac_t""$CC" 1>&6
613 echo "$ac_t""no" 1>&6
616 if test -z "$CC"; then
619 # Extract the first word of "cl", so it can be a program name with args.
620 set dummy cl; ac_word=$2
621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
622 echo "configure:623: checking for $ac_word" >&5
623 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
624 echo $ac_n "(cached) $ac_c" 1>&6
626 if test -n "$CC"; then
627 ac_cv_prog_CC="$CC" # Let the user override the test.
629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
631 for ac_dir in $ac_dummy; do
632 test -z "$ac_dir" && ac_dir=.
633 if test -f $ac_dir/$ac_word; then
642 if test -n "$CC"; then
643 echo "$ac_t""$CC" 1>&6
645 echo "$ac_t""no" 1>&6
650 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
653 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
654 echo "configure:655: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
657 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
658 ac_cpp='$CPP $CPPFLAGS'
659 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
660 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
661 cross_compiling=$ac_cv_prog_cc_cross
663 cat > conftest.$ac_ext << EOF
665 #line 666 "configure"
666 #include "confdefs.h"
670 if { (eval echo configure:671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
671 ac_cv_prog_cc_works=yes
672 # If we can't run a trivial program, we are probably using a cross compiler.
673 if (./conftest; exit) 2>/dev/null; then
674 ac_cv_prog_cc_cross=no
676 ac_cv_prog_cc_cross=yes
679 echo "configure: failed program was:" >&5
680 cat conftest.$ac_ext >&5
681 ac_cv_prog_cc_works=no
685 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
686 ac_cpp='$CPP $CPPFLAGS'
687 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
688 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
689 cross_compiling=$ac_cv_prog_cc_cross
691 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
692 if test $ac_cv_prog_cc_works = no; then
693 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
695 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
696 echo "configure:697: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
697 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
698 cross_compiling=$ac_cv_prog_cc_cross
700 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
701 echo "configure:702: checking whether we are using GNU C" >&5
702 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
703 echo $ac_n "(cached) $ac_c" 1>&6
705 cat > conftest.c <<EOF
710 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
717 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
719 if test $ac_cv_prog_gcc = yes; then
725 ac_test_CFLAGS="${CFLAGS+set}"
726 ac_save_CFLAGS="$CFLAGS"
728 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
729 echo "configure:730: checking whether ${CC-cc} accepts -g" >&5
730 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
731 echo $ac_n "(cached) $ac_c" 1>&6
733 echo 'void f(){}' > conftest.c
734 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
743 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
744 if test "$ac_test_CFLAGS" = set; then
745 CFLAGS="$ac_save_CFLAGS"
746 elif test $ac_cv_prog_cc_g = yes; then
747 if test "$GCC" = yes; then
753 if test "$GCC" = yes; then
760 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
761 echo "configure:762: checking whether ln -s works" >&5
762 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
763 echo $ac_n "(cached) $ac_c" 1>&6
766 if ln -s X conftestdata 2>/dev/null
769 ac_cv_prog_LN_S="ln -s"
774 LN_S="$ac_cv_prog_LN_S"
775 if test "$ac_cv_prog_LN_S" = "ln -s"; then
776 echo "$ac_t""yes" 1>&6
778 echo "$ac_t""no" 1>&6
781 # Extract the first word of "ranlib", so it can be a program name with args.
782 set dummy ranlib; ac_word=$2
783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
784 echo "configure:785: checking for $ac_word" >&5
785 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
788 if test -n "$RANLIB"; then
789 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
793 for ac_dir in $ac_dummy; do
794 test -z "$ac_dir" && ac_dir=.
795 if test -f $ac_dir/$ac_word; then
796 ac_cv_prog_RANLIB="ranlib"
801 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
804 RANLIB="$ac_cv_prog_RANLIB"
805 if test -n "$RANLIB"; then
806 echo "$ac_t""$RANLIB" 1>&6
808 echo "$ac_t""no" 1>&6
814 echo $ac_n "checking whether your make is GNU make""... $ac_c" 1>&6
815 echo "configure:816: checking whether your make is GNU make" >&5
816 foundGNUmake='nope, assuming sysv make.' ;
817 EXEC_DEPENDENCY=\$\$\@.o ;
818 if ( make --version nothing 2> /dev/null | grep GNU > /dev/null ) ; then
819 foundGNUmake='yes, it is.' ;
820 EXEC_DEPENDENCY='%: %.o' ;
822 echo "$ac_t""$foundGNUmake" 1>&6
826 # Check whether --with-pvm or --without-pvm was given.
827 if test "${with_pvm+set}" = set; then
830 yes) echo 'Configuring for PVM'
831 PVMLIBDIR="-L${PVM_ROOT}/lib/${PVM_ARCH}"
832 PVMINCDIR="-I${PVM_ROOT}/include"
833 PVMFLAG="-DHMMER_PVM"
834 PVMPROGS="hmmcalibrate-pvm hmmpfam-pvm hmmsearch-pvm"
838 *) echo "Ignoring unknown argument to --with-pvm: $with_pvm"
845 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
846 if test -f $ac_dir/install-sh; then
848 ac_install_sh="$ac_aux_dir/install-sh -c"
850 elif test -f $ac_dir/install.sh; then
852 ac_install_sh="$ac_aux_dir/install.sh -c"
856 if test -z "$ac_aux_dir"; then
857 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
859 ac_config_guess=$ac_aux_dir/config.guess
860 ac_config_sub=$ac_aux_dir/config.sub
861 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
864 # Make sure we can run config.sub.
865 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
866 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
869 echo $ac_n "checking host system type""... $ac_c" 1>&6
870 echo "configure:871: checking host system type" >&5
873 case "$host_alias" in
877 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
878 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
880 *) host_alias=$nonopt ;;
884 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
885 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
886 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
887 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
888 echo "$ac_t""$host" 1>&6
890 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
891 echo "configure:892: checking how to run the C preprocessor" >&5
892 # On Suns, sometimes $CPP names a directory.
893 if test -n "$CPP" && test -d "$CPP"; then
896 if test -z "$CPP"; then
897 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
898 echo $ac_n "(cached) $ac_c" 1>&6
900 # This must be in double quotes, not single quotes, because CPP may get
901 # substituted into the Makefile and "${CC-cc}" will confuse make.
903 # On the NeXT, cc -E runs the code through the compiler's parser,
904 # not just through cpp.
905 cat > conftest.$ac_ext <<EOF
906 #line 907 "configure"
907 #include "confdefs.h"
911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
912 { (eval echo configure:913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
914 if test -z "$ac_err"; then
918 echo "configure: failed program was:" >&5
919 cat conftest.$ac_ext >&5
921 CPP="${CC-cc} -E -traditional-cpp"
922 cat > conftest.$ac_ext <<EOF
923 #line 924 "configure"
924 #include "confdefs.h"
928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
929 { (eval echo configure:930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
931 if test -z "$ac_err"; then
935 echo "configure: failed program was:" >&5
936 cat conftest.$ac_ext >&5
938 CPP="${CC-cc} -nologo -E"
939 cat > conftest.$ac_ext <<EOF
940 #line 941 "configure"
941 #include "confdefs.h"
945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
946 { (eval echo configure:947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
948 if test -z "$ac_err"; then
952 echo "configure: failed program was:" >&5
953 cat conftest.$ac_ext >&5
962 ac_cv_prog_CPP="$CPP"
964 CPP="$ac_cv_prog_CPP"
966 ac_cv_prog_CPP="$CPP"
968 echo "$ac_t""$CPP" 1>&6
970 # Check whether --enable-threads or --disable-threads was given.
971 if test "${enable_threads+set}" = set; then
972 enableval="$enable_threads"
973 case $enable_threads in
974 yes) echo "Enabling POSIX threads support"
979 # First, check if the POSIX threads header, pthread.h, is available.
980 # If it isn't, don't bother looking for the threads libraries.
981 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
982 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
983 echo "configure:984: checking for pthread.h" >&5
984 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
985 echo $ac_n "(cached) $ac_c" 1>&6
987 cat > conftest.$ac_ext <<EOF
988 #line 989 "configure"
989 #include "confdefs.h"
992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
993 { (eval echo configure:994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
995 if test -z "$ac_err"; then
997 eval "ac_cv_header_$ac_safe=yes"
1000 echo "configure: failed program was:" >&5
1001 cat conftest.$ac_ext >&5
1003 eval "ac_cv_header_$ac_safe=no"
1007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1008 echo "$ac_t""yes" 1>&6
1011 echo "$ac_t""no" 1>&6
1012 acx_pthread_ok=noheader
1016 # We must check for the threads library under a number of different
1017 # names; the ordering is very important because some systems
1018 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
1019 # libraries is broken (non-POSIX).
1021 # First of all, check if the user has set any of the PTHREAD_LIBS,
1022 # etcetera environment variables, and if threads linking works using
1024 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
1025 save_CFLAGS="$CFLAGS"
1026 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
1028 LIBS="$PTHREAD_LIBS $LIBS"
1029 echo $ac_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS""... $ac_c" 1>&6
1030 echo "configure:1031: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
1031 cat > conftest.$ac_ext <<EOF
1032 #line 1033 "configure"
1033 #include "confdefs.h"
1034 /* Override any gcc2 internal prototype to avoid an error. */
1035 /* We use char because int might match the return type of a gcc2
1036 builtin and then its argument prototype would still apply. */
1037 char pthread_join();
1043 if { (eval echo configure:1044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1047 echo "configure: failed program was:" >&5
1048 cat conftest.$ac_ext >&5
1051 echo "$ac_t""$acx_pthread_ok" 1>&6
1052 if test x"$acx_pthread_ok" = xno; then
1057 CFLAGS="$save_CFLAGS"
1060 # Create a list of thread flags to try. Items starting with a "-" are
1061 # C compiler flags, and other items are library names, except for "none"
1062 # which indicates that we try without any flags at all.
1064 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
1066 # The ordering *is* (sometimes) important. Some notes on the
1067 # individual items follow:
1069 # pthreads: AIX (must check this before -lpthread)
1070 # none: in case threads are in libc; should be tried before -Kthread and
1071 # other compiler flags to prevent continual compiler warnings
1072 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
1073 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
1074 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
1075 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
1076 # -pthreads: Solaris/gcc
1077 # -mthreads: Mingw32/gcc, Lynx/gcc
1078 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
1079 # doesn't hurt to check since this sometimes defines pthreads too;
1080 # also defines -D_REENTRANT)
1081 # pthread: Linux, etcetera
1082 # --thread-safe: KAI C++
1084 case "${host_cpu}-${host_os}" in
1087 # On Solaris (at least, for some versions), libc contains stubbed
1088 # (non-functional) versions of the pthreads routines, so link-based
1089 # tests will erroneously succeed. (We need to link with -pthread or
1090 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
1091 # a function called by this macro, so we could check for that, but
1092 # who knows whether they'll stub that too in a future libc.) So,
1093 # we'll just look for -pthreads and -lpthread first:
1095 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
1099 if test x"$acx_pthread_ok" = xno; then
1100 for flag in $acx_pthread_flags; do
1104 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
1105 echo "configure:1106: checking whether pthreads work without any flags" >&5
1109 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
1110 echo "configure:1111: checking whether pthreads work with $flag" >&5
1111 PTHREAD_CFLAGS="$flag"
1115 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
1116 echo "configure:1117: checking for the pthreads library -l$flag" >&5
1117 PTHREAD_LIBS="-l$flag"
1122 save_CFLAGS="$CFLAGS"
1123 LIBS="$PTHREAD_LIBS $LIBS"
1124 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
1126 # Check for various functions. We must include pthread.h,
1127 # since some functions may be macros. (On the Sequent, we
1128 # need a special flag -Kthread to make this header compile.)
1129 # We check for pthread_join because it is in -lpthread on IRIX
1130 # while pthread_create is in libc. We check for pthread_attr_init
1131 # due to DEC craziness with -lpthreads. We check for
1132 # pthread_cleanup_push because it is one of the few pthread
1133 # functions on Solaris that doesn't have a non-functional libc stub.
1134 # We try pthread_create on general principles.
1135 cat > conftest.$ac_ext <<EOF
1136 #line 1137 "configure"
1137 #include "confdefs.h"
1138 #include <pthread.h>
1140 pthread_t th; pthread_join(th, 0);
1141 pthread_attr_init(0); pthread_cleanup_push(0, 0);
1142 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
1145 if { (eval echo configure:1146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1149 echo "configure: failed program was:" >&5
1150 cat conftest.$ac_ext >&5
1155 CFLAGS="$save_CFLAGS"
1157 echo "$ac_t""$acx_pthread_ok" 1>&6
1158 if test "x$acx_pthread_ok" = xyes; then
1167 # Various other checks:
1168 if test "x$acx_pthread_ok" = xyes; then
1170 LIBS="$PTHREAD_LIBS $LIBS"
1171 save_CFLAGS="$CFLAGS"
1172 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
1174 # Detect AIX lossage: threads are created detached by default
1175 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
1176 echo $ac_n "checking for joinable pthread attribute""... $ac_c" 1>&6
1177 echo "configure:1178: checking for joinable pthread attribute" >&5
1178 cat > conftest.$ac_ext <<EOF
1179 #line 1180 "configure"
1180 #include "confdefs.h"
1181 #include <pthread.h>
1183 int attr=PTHREAD_CREATE_JOINABLE;
1186 if { (eval echo configure:1187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1188 ok=PTHREAD_CREATE_JOINABLE
1190 echo "configure: failed program was:" >&5
1191 cat conftest.$ac_ext >&5
1196 if test x"$ok" = xunknown; then
1197 cat > conftest.$ac_ext <<EOF
1198 #line 1199 "configure"
1199 #include "confdefs.h"
1200 #include <pthread.h>
1202 int attr=PTHREAD_CREATE_UNDETACHED;
1205 if { (eval echo configure:1206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1207 ok=PTHREAD_CREATE_UNDETACHED
1209 echo "configure: failed program was:" >&5
1210 cat conftest.$ac_ext >&5
1216 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
1217 cat >> confdefs.h <<\EOF
1218 #define PTHREAD_CREATE_JOINABLE $ok
1222 echo "$ac_t""${ok}" 1>&6
1223 if test x"$ok" = xunknown; then
1224 echo "configure: warning: we do not know how to create joinable pthreads" 1>&2
1227 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
1228 echo "configure:1229: checking if more special flags are required for pthreads" >&5
1230 case "${host_cpu}-${host_os}" in
1231 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
1232 *solaris* | alpha*-osf*) flag="-D_REENTRANT";;
1234 echo "$ac_t""${flag}" 1>&6
1235 if test "x$flag" != xno; then
1236 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
1240 CFLAGS="$save_CFLAGS"
1242 # More AIX lossage: must compile with cc_r
1243 # Extract the first word of "cc_r", so it can be a program name with args.
1244 set dummy cc_r; ac_word=$2
1245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1246 echo "configure:1247: checking for $ac_word" >&5
1247 if eval "test \"`echo '$''{'ac_cv_prog_PTHREAD_CC'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1250 if test -n "$PTHREAD_CC"; then
1251 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
1253 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1255 for ac_dir in $ac_dummy; do
1256 test -z "$ac_dir" && ac_dir=.
1257 if test -f $ac_dir/$ac_word; then
1258 ac_cv_prog_PTHREAD_CC="cc_r"
1263 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
1266 PTHREAD_CC="$ac_cv_prog_PTHREAD_CC"
1267 if test -n "$PTHREAD_CC"; then
1268 echo "$ac_t""$PTHREAD_CC" 1>&6
1270 echo "$ac_t""no" 1>&6
1281 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
1282 if test x"$acx_pthread_ok" = xyes; then
1283 MDEFS="${MDEFS} -DHMMER_THREADS"
1292 no) echo "POSIX threads support disabled"
1294 *) echo "Ignoring unknown argument to --disable-threads: $enable_threads"
1299 echo " Trying to enable default POSIX threads support"
1304 # First, check if the POSIX threads header, pthread.h, is available.
1305 # If it isn't, don't bother looking for the threads libraries.
1306 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1307 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1308 echo "configure:1309: checking for pthread.h" >&5
1309 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1310 echo $ac_n "(cached) $ac_c" 1>&6
1312 cat > conftest.$ac_ext <<EOF
1313 #line 1314 "configure"
1314 #include "confdefs.h"
1315 #include <pthread.h>
1317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1318 { (eval echo configure:1319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1320 if test -z "$ac_err"; then
1322 eval "ac_cv_header_$ac_safe=yes"
1325 echo "configure: failed program was:" >&5
1326 cat conftest.$ac_ext >&5
1328 eval "ac_cv_header_$ac_safe=no"
1332 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1333 echo "$ac_t""yes" 1>&6
1336 echo "$ac_t""no" 1>&6
1337 acx_pthread_ok=noheader
1341 # We must check for the threads library under a number of different
1342 # names; the ordering is very important because some systems
1343 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
1344 # libraries is broken (non-POSIX).
1346 # First of all, check if the user has set any of the PTHREAD_LIBS,
1347 # etcetera environment variables, and if threads linking works using
1349 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
1350 save_CFLAGS="$CFLAGS"
1351 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
1353 LIBS="$PTHREAD_LIBS $LIBS"
1354 echo $ac_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS""... $ac_c" 1>&6
1355 echo "configure:1356: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
1356 cat > conftest.$ac_ext <<EOF
1357 #line 1358 "configure"
1358 #include "confdefs.h"
1359 /* Override any gcc2 internal prototype to avoid an error. */
1360 /* We use char because int might match the return type of a gcc2
1361 builtin and then its argument prototype would still apply. */
1362 char pthread_join();
1368 if { (eval echo configure:1369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1372 echo "configure: failed program was:" >&5
1373 cat conftest.$ac_ext >&5
1376 echo "$ac_t""$acx_pthread_ok" 1>&6
1377 if test x"$acx_pthread_ok" = xno; then
1382 CFLAGS="$save_CFLAGS"
1385 # Create a list of thread flags to try. Items starting with a "-" are
1386 # C compiler flags, and other items are library names, except for "none"
1387 # which indicates that we try without any flags at all.
1389 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
1391 # The ordering *is* (sometimes) important. Some notes on the
1392 # individual items follow:
1394 # pthreads: AIX (must check this before -lpthread)
1395 # none: in case threads are in libc; should be tried before -Kthread and
1396 # other compiler flags to prevent continual compiler warnings
1397 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
1398 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
1399 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
1400 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
1401 # -pthreads: Solaris/gcc
1402 # -mthreads: Mingw32/gcc, Lynx/gcc
1403 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
1404 # doesn't hurt to check since this sometimes defines pthreads too;
1405 # also defines -D_REENTRANT)
1406 # pthread: Linux, etcetera
1407 # --thread-safe: KAI C++
1409 case "${host_cpu}-${host_os}" in
1412 # On Solaris (at least, for some versions), libc contains stubbed
1413 # (non-functional) versions of the pthreads routines, so link-based
1414 # tests will erroneously succeed. (We need to link with -pthread or
1415 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
1416 # a function called by this macro, so we could check for that, but
1417 # who knows whether they'll stub that too in a future libc.) So,
1418 # we'll just look for -pthreads and -lpthread first:
1420 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
1424 if test x"$acx_pthread_ok" = xno; then
1425 for flag in $acx_pthread_flags; do
1429 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
1430 echo "configure:1431: checking whether pthreads work without any flags" >&5
1434 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
1435 echo "configure:1436: checking whether pthreads work with $flag" >&5
1436 PTHREAD_CFLAGS="$flag"
1440 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
1441 echo "configure:1442: checking for the pthreads library -l$flag" >&5
1442 PTHREAD_LIBS="-l$flag"
1447 save_CFLAGS="$CFLAGS"
1448 LIBS="$PTHREAD_LIBS $LIBS"
1449 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
1451 # Check for various functions. We must include pthread.h,
1452 # since some functions may be macros. (On the Sequent, we
1453 # need a special flag -Kthread to make this header compile.)
1454 # We check for pthread_join because it is in -lpthread on IRIX
1455 # while pthread_create is in libc. We check for pthread_attr_init
1456 # due to DEC craziness with -lpthreads. We check for
1457 # pthread_cleanup_push because it is one of the few pthread
1458 # functions on Solaris that doesn't have a non-functional libc stub.
1459 # We try pthread_create on general principles.
1460 cat > conftest.$ac_ext <<EOF
1461 #line 1462 "configure"
1462 #include "confdefs.h"
1463 #include <pthread.h>
1465 pthread_t th; pthread_join(th, 0);
1466 pthread_attr_init(0); pthread_cleanup_push(0, 0);
1467 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
1470 if { (eval echo configure:1471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1474 echo "configure: failed program was:" >&5
1475 cat conftest.$ac_ext >&5
1480 CFLAGS="$save_CFLAGS"
1482 echo "$ac_t""$acx_pthread_ok" 1>&6
1483 if test "x$acx_pthread_ok" = xyes; then
1492 # Various other checks:
1493 if test "x$acx_pthread_ok" = xyes; then
1495 LIBS="$PTHREAD_LIBS $LIBS"
1496 save_CFLAGS="$CFLAGS"
1497 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
1499 # Detect AIX lossage: threads are created detached by default
1500 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
1501 echo $ac_n "checking for joinable pthread attribute""... $ac_c" 1>&6
1502 echo "configure:1503: checking for joinable pthread attribute" >&5
1503 cat > conftest.$ac_ext <<EOF
1504 #line 1505 "configure"
1505 #include "confdefs.h"
1506 #include <pthread.h>
1508 int attr=PTHREAD_CREATE_JOINABLE;
1511 if { (eval echo configure:1512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1513 ok=PTHREAD_CREATE_JOINABLE
1515 echo "configure: failed program was:" >&5
1516 cat conftest.$ac_ext >&5
1521 if test x"$ok" = xunknown; then
1522 cat > conftest.$ac_ext <<EOF
1523 #line 1524 "configure"
1524 #include "confdefs.h"
1525 #include <pthread.h>
1527 int attr=PTHREAD_CREATE_UNDETACHED;
1530 if { (eval echo configure:1531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1532 ok=PTHREAD_CREATE_UNDETACHED
1534 echo "configure: failed program was:" >&5
1535 cat conftest.$ac_ext >&5
1541 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
1542 cat >> confdefs.h <<\EOF
1543 #define PTHREAD_CREATE_JOINABLE $ok
1547 echo "$ac_t""${ok}" 1>&6
1548 if test x"$ok" = xunknown; then
1549 echo "configure: warning: we do not know how to create joinable pthreads" 1>&2
1552 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
1553 echo "configure:1554: checking if more special flags are required for pthreads" >&5
1555 case "${host_cpu}-${host_os}" in
1556 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
1557 *solaris* | alpha*-osf*) flag="-D_REENTRANT";;
1559 echo "$ac_t""${flag}" 1>&6
1560 if test "x$flag" != xno; then
1561 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
1565 CFLAGS="$save_CFLAGS"
1567 # More AIX lossage: must compile with cc_r
1568 # Extract the first word of "cc_r", so it can be a program name with args.
1569 set dummy cc_r; ac_word=$2
1570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1571 echo "configure:1572: checking for $ac_word" >&5
1572 if eval "test \"`echo '$''{'ac_cv_prog_PTHREAD_CC'+set}'`\" = set"; then
1573 echo $ac_n "(cached) $ac_c" 1>&6
1575 if test -n "$PTHREAD_CC"; then
1576 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
1578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1580 for ac_dir in $ac_dummy; do
1581 test -z "$ac_dir" && ac_dir=.
1582 if test -f $ac_dir/$ac_word; then
1583 ac_cv_prog_PTHREAD_CC="cc_r"
1588 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
1591 PTHREAD_CC="$ac_cv_prog_PTHREAD_CC"
1592 if test -n "$PTHREAD_CC"; then
1593 echo "$ac_t""$PTHREAD_CC" 1>&6
1595 echo "$ac_t""no" 1>&6
1606 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
1607 if test x"$acx_pthread_ok" = xyes; then
1608 MDEFS="${MDEFS} -DHMMER_THREADS"
1621 for ac_func in pthread_setconcurrency
1623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1624 echo "configure:1625: checking for $ac_func" >&5
1625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1626 echo $ac_n "(cached) $ac_c" 1>&6
1628 cat > conftest.$ac_ext <<EOF
1629 #line 1630 "configure"
1630 #include "confdefs.h"
1631 /* System header to define __stub macros and hopefully few prototypes,
1632 which can conflict with char $ac_func(); below. */
1634 /* Override any gcc2 internal prototype to avoid an error. */
1635 /* We use char because int might match the return type of a gcc2
1636 builtin and then its argument prototype would still apply. */
1641 /* The GNU C library defines this for functions which it implements
1642 to always fail with ENOSYS. Some functions are actually named
1643 something starting with __ and the normal name is an alias. */
1644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1652 if { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1654 eval "ac_cv_func_$ac_func=yes"
1656 echo "configure: failed program was:" >&5
1657 cat conftest.$ac_ext >&5
1659 eval "ac_cv_func_$ac_func=no"
1664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1665 echo "$ac_t""yes" 1>&6
1666 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1667 cat >> confdefs.h <<EOF
1668 #define $ac_tr_func 1
1672 echo "$ac_t""no" 1>&6
1676 for ac_func in pthread_attr_setscope
1678 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1679 echo "configure:1680: checking for $ac_func" >&5
1680 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1681 echo $ac_n "(cached) $ac_c" 1>&6
1683 cat > conftest.$ac_ext <<EOF
1684 #line 1685 "configure"
1685 #include "confdefs.h"
1686 /* System header to define __stub macros and hopefully few prototypes,
1687 which can conflict with char $ac_func(); below. */
1689 /* Override any gcc2 internal prototype to avoid an error. */
1690 /* We use char because int might match the return type of a gcc2
1691 builtin and then its argument prototype would still apply. */
1696 /* The GNU C library defines this for functions which it implements
1697 to always fail with ENOSYS. Some functions are actually named
1698 something starting with __ and the normal name is an alias. */
1699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1707 if { (eval echo configure:1708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1709 eval "ac_cv_func_$ac_func=yes"
1711 echo "configure: failed program was:" >&5
1712 cat conftest.$ac_ext >&5
1714 eval "ac_cv_func_$ac_func=no"
1719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1720 echo "$ac_t""yes" 1>&6
1721 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1722 cat >> confdefs.h <<EOF
1723 #define $ac_tr_func 1
1727 echo "$ac_t""no" 1>&6
1732 for ac_func in ntohs
1734 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1735 echo "configure:1736: checking for $ac_func" >&5
1736 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1737 echo $ac_n "(cached) $ac_c" 1>&6
1739 cat > conftest.$ac_ext <<EOF
1740 #line 1741 "configure"
1741 #include "confdefs.h"
1742 /* System header to define __stub macros and hopefully few prototypes,
1743 which can conflict with char $ac_func(); below. */
1745 /* Override any gcc2 internal prototype to avoid an error. */
1746 /* We use char because int might match the return type of a gcc2
1747 builtin and then its argument prototype would still apply. */
1752 /* The GNU C library defines this for functions which it implements
1753 to always fail with ENOSYS. Some functions are actually named
1754 something starting with __ and the normal name is an alias. */
1755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1763 if { (eval echo configure:1764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1765 eval "ac_cv_func_$ac_func=yes"
1767 echo "configure: failed program was:" >&5
1768 cat conftest.$ac_ext >&5
1770 eval "ac_cv_func_$ac_func=no"
1775 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1776 echo "$ac_t""yes" 1>&6
1777 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1778 cat >> confdefs.h <<EOF
1779 #define $ac_tr_func 1
1783 echo "$ac_t""no" 1>&6
1784 echo $ac_n "checking for ntohs in -lsocket""... $ac_c" 1>&6
1785 echo "configure:1786: checking for ntohs in -lsocket" >&5
1786 ac_lib_var=`echo socket'_'ntohs | sed 'y%./+-%__p_%'`
1787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1790 ac_save_LIBS="$LIBS"
1791 LIBS="-lsocket $LIBS"
1792 cat > conftest.$ac_ext <<EOF
1793 #line 1794 "configure"
1794 #include "confdefs.h"
1795 /* Override any gcc2 internal prototype to avoid an error. */
1796 /* We use char because int might match the return type of a gcc2
1797 builtin and then its argument prototype would still apply. */
1804 if { (eval echo configure:1805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1806 eval "ac_cv_lib_$ac_lib_var=yes"
1808 echo "configure: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1811 eval "ac_cv_lib_$ac_lib_var=no"
1814 LIBS="$ac_save_LIBS"
1817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1818 echo "$ac_t""yes" 1>&6
1819 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1820 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1821 cat >> confdefs.h <<EOF
1822 #define $ac_tr_lib 1
1825 LIBS="-lsocket $LIBS"
1828 echo "$ac_t""no" 1>&6
1834 for ac_func in ntohl
1836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1837 echo "configure:1838: checking for $ac_func" >&5
1838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6
1841 cat > conftest.$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1844 /* System header to define __stub macros and hopefully few prototypes,
1845 which can conflict with char $ac_func(); below. */
1847 /* Override any gcc2 internal prototype to avoid an error. */
1848 /* We use char because int might match the return type of a gcc2
1849 builtin and then its argument prototype would still apply. */
1854 /* The GNU C library defines this for functions which it implements
1855 to always fail with ENOSYS. Some functions are actually named
1856 something starting with __ and the normal name is an alias. */
1857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1865 if { (eval echo configure:1866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1867 eval "ac_cv_func_$ac_func=yes"
1869 echo "configure: failed program was:" >&5
1870 cat conftest.$ac_ext >&5
1872 eval "ac_cv_func_$ac_func=no"
1877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1878 echo "$ac_t""yes" 1>&6
1879 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1880 cat >> confdefs.h <<EOF
1881 #define $ac_tr_func 1
1885 echo "$ac_t""no" 1>&6
1886 echo $ac_n "checking for ntohl in -lsocket""... $ac_c" 1>&6
1887 echo "configure:1888: checking for ntohl in -lsocket" >&5
1888 ac_lib_var=`echo socket'_'ntohl | sed 'y%./+-%__p_%'`
1889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1892 ac_save_LIBS="$LIBS"
1893 LIBS="-lsocket $LIBS"
1894 cat > conftest.$ac_ext <<EOF
1895 #line 1896 "configure"
1896 #include "confdefs.h"
1897 /* Override any gcc2 internal prototype to avoid an error. */
1898 /* We use char because int might match the return type of a gcc2
1899 builtin and then its argument prototype would still apply. */
1906 if { (eval echo configure:1907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1908 eval "ac_cv_lib_$ac_lib_var=yes"
1910 echo "configure: failed program was:" >&5
1911 cat conftest.$ac_ext >&5
1913 eval "ac_cv_lib_$ac_lib_var=no"
1916 LIBS="$ac_save_LIBS"
1919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1920 echo "$ac_t""yes" 1>&6
1921 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1922 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1923 cat >> confdefs.h <<EOF
1924 #define $ac_tr_lib 1
1927 LIBS="-lsocket $LIBS"
1930 echo "$ac_t""no" 1>&6
1936 for ac_func in htons
1938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1939 echo "configure:1940: checking for $ac_func" >&5
1940 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1943 cat > conftest.$ac_ext <<EOF
1944 #line 1945 "configure"
1945 #include "confdefs.h"
1946 /* System header to define __stub macros and hopefully few prototypes,
1947 which can conflict with char $ac_func(); below. */
1949 /* Override any gcc2 internal prototype to avoid an error. */
1950 /* We use char because int might match the return type of a gcc2
1951 builtin and then its argument prototype would still apply. */
1956 /* The GNU C library defines this for functions which it implements
1957 to always fail with ENOSYS. Some functions are actually named
1958 something starting with __ and the normal name is an alias. */
1959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1967 if { (eval echo configure:1968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1969 eval "ac_cv_func_$ac_func=yes"
1971 echo "configure: failed program was:" >&5
1972 cat conftest.$ac_ext >&5
1974 eval "ac_cv_func_$ac_func=no"
1979 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1980 echo "$ac_t""yes" 1>&6
1981 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1982 cat >> confdefs.h <<EOF
1983 #define $ac_tr_func 1
1987 echo "$ac_t""no" 1>&6
1988 echo $ac_n "checking for htons in -lsocket""... $ac_c" 1>&6
1989 echo "configure:1990: checking for htons in -lsocket" >&5
1990 ac_lib_var=`echo socket'_'htons | sed 'y%./+-%__p_%'`
1991 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1994 ac_save_LIBS="$LIBS"
1995 LIBS="-lsocket $LIBS"
1996 cat > conftest.$ac_ext <<EOF
1997 #line 1998 "configure"
1998 #include "confdefs.h"
1999 /* Override any gcc2 internal prototype to avoid an error. */
2000 /* We use char because int might match the return type of a gcc2
2001 builtin and then its argument prototype would still apply. */
2008 if { (eval echo configure:2009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2010 eval "ac_cv_lib_$ac_lib_var=yes"
2012 echo "configure: failed program was:" >&5
2013 cat conftest.$ac_ext >&5
2015 eval "ac_cv_lib_$ac_lib_var=no"
2018 LIBS="$ac_save_LIBS"
2021 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2022 echo "$ac_t""yes" 1>&6
2023 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2024 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2025 cat >> confdefs.h <<EOF
2026 #define $ac_tr_lib 1
2029 LIBS="-lsocket $LIBS"
2032 echo "$ac_t""no" 1>&6
2038 for ac_func in htonl
2040 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2041 echo "configure:2042: checking for $ac_func" >&5
2042 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2045 cat > conftest.$ac_ext <<EOF
2046 #line 2047 "configure"
2047 #include "confdefs.h"
2048 /* System header to define __stub macros and hopefully few prototypes,
2049 which can conflict with char $ac_func(); below. */
2051 /* Override any gcc2 internal prototype to avoid an error. */
2052 /* We use char because int might match the return type of a gcc2
2053 builtin and then its argument prototype would still apply. */
2058 /* The GNU C library defines this for functions which it implements
2059 to always fail with ENOSYS. Some functions are actually named
2060 something starting with __ and the normal name is an alias. */
2061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2069 if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2071 eval "ac_cv_func_$ac_func=yes"
2073 echo "configure: failed program was:" >&5
2074 cat conftest.$ac_ext >&5
2076 eval "ac_cv_func_$ac_func=no"
2081 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2082 echo "$ac_t""yes" 1>&6
2083 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2084 cat >> confdefs.h <<EOF
2085 #define $ac_tr_func 1
2089 echo "$ac_t""no" 1>&6
2090 echo $ac_n "checking for htonl in -lsocket""... $ac_c" 1>&6
2091 echo "configure:2092: checking for htonl in -lsocket" >&5
2092 ac_lib_var=`echo socket'_'htonl | sed 'y%./+-%__p_%'`
2093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2094 echo $ac_n "(cached) $ac_c" 1>&6
2096 ac_save_LIBS="$LIBS"
2097 LIBS="-lsocket $LIBS"
2098 cat > conftest.$ac_ext <<EOF
2099 #line 2100 "configure"
2100 #include "confdefs.h"
2101 /* Override any gcc2 internal prototype to avoid an error. */
2102 /* We use char because int might match the return type of a gcc2
2103 builtin and then its argument prototype would still apply. */
2110 if { (eval echo configure:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2112 eval "ac_cv_lib_$ac_lib_var=yes"
2114 echo "configure: failed program was:" >&5
2115 cat conftest.$ac_ext >&5
2117 eval "ac_cv_lib_$ac_lib_var=no"
2120 LIBS="$ac_save_LIBS"
2123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2124 echo "$ac_t""yes" 1>&6
2125 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2126 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2127 cat >> confdefs.h <<EOF
2128 #define $ac_tr_lib 1
2131 LIBS="-lsocket $LIBS"
2134 echo "$ac_t""no" 1>&6
2144 echo " Configuration complete. Writing Makefiles and such..."
2146 cat > confcache <<\EOF
2147 # This file is a shell script that caches the results of configure
2148 # tests run on this system so they can be shared between configure
2149 # scripts and configure runs. It is not useful on other systems.
2150 # If it contains results you don't want to keep, you may remove or edit it.
2152 # By default, configure uses ./config.cache as the cache file,
2153 # creating it if it does not exist already. You can give configure
2154 # the --cache-file=FILE option to use a different cache file; that is
2155 # what configure does when it calls configure scripts in
2156 # subdirectories, so they share the cache.
2157 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2158 # config.status only pays attention to the cache file if you give it the
2159 # --recheck option to rerun configure.
2162 # The following way of writing the cache mishandles newlines in values,
2163 # but we know of no workaround that is simple, portable, and efficient.
2164 # So, don't put newlines in cache variables' values.
2165 # Ultrix sh set writes to stderr and can't be redirected directly,
2166 # and sets the high bit in the cache file unless we assign to the vars.
2168 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2170 # `set' does not quote correctly, so add quotes (double-quote substitution
2171 # turns \\\\ into \\, and sed turns \\ into \).
2173 -e "s/'/'\\\\''/g" \
2174 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2177 # `set' quotes correctly as required by POSIX, so do not add quotes.
2178 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2181 if cmp -s $cache_file confcache; then
2184 if test -w $cache_file; then
2185 echo "updating cache $cache_file"
2186 cat confcache > $cache_file
2188 echo "not updating unwritable cache $cache_file"
2193 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2195 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2196 # Let make expand exec_prefix.
2197 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2199 # Any assignment to VPATH causes Sun make to only execute
2200 # the first set of double-colon rules, so remove it if not needed.
2201 # If there is a colon in the path, we need to keep it.
2202 if test "x$srcdir" = x.; then
2203 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2206 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2208 # Transform confdefs.h into DEFS.
2209 # Protect against shell expansion while executing Makefile rules.
2210 # Protect against Makefile macro expansion.
2211 cat > conftest.defs <<\EOF
2212 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2213 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2218 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2222 # Without the "./", some shells look in PATH for config.status.
2223 : ${CONFIG_STATUS=./config.status}
2225 echo creating $CONFIG_STATUS
2226 rm -f $CONFIG_STATUS
2227 cat > $CONFIG_STATUS <<EOF
2229 # Generated automatically by configure.
2230 # Run this file to recreate the current configuration.
2231 # This directory was configured as follows,
2232 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2234 # $0 $ac_configure_args
2236 # Compiler output produced by configure, useful for debugging
2237 # configure, is in ./config.log if it exists.
2239 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2242 case "\$ac_option" in
2243 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2244 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2245 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2246 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2247 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2249 -help | --help | --hel | --he | --h)
2250 echo "\$ac_cs_usage"; exit 0 ;;
2251 *) echo "\$ac_cs_usage"; exit 1 ;;
2255 ac_given_srcdir=$srcdir
2257 trap 'rm -fr `echo "Makefile src/Makefile testsuite/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2259 cat >> $CONFIG_STATUS <<EOF
2261 # Protect against being on the right side of a sed subst in config.status.
2262 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2263 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2267 s%@CFLAGS@%$CFLAGS%g
2268 s%@CPPFLAGS@%$CPPFLAGS%g
2269 s%@CXXFLAGS@%$CXXFLAGS%g
2270 s%@FFLAGS@%$FFLAGS%g
2272 s%@LDFLAGS@%$LDFLAGS%g
2274 s%@exec_prefix@%$exec_prefix%g
2275 s%@prefix@%$prefix%g
2276 s%@program_transform_name@%$program_transform_name%g
2277 s%@bindir@%$bindir%g
2278 s%@sbindir@%$sbindir%g
2279 s%@libexecdir@%$libexecdir%g
2280 s%@datadir@%$datadir%g
2281 s%@sysconfdir@%$sysconfdir%g
2282 s%@sharedstatedir@%$sharedstatedir%g
2283 s%@localstatedir@%$localstatedir%g
2284 s%@libdir@%$libdir%g
2285 s%@includedir@%$includedir%g
2286 s%@oldincludedir@%$oldincludedir%g
2287 s%@infodir@%$infodir%g
2288 s%@mandir@%$mandir%g
2290 s%@PVMLIBDIR@%$PVMLIBDIR%g
2291 s%@PVMINCDIR@%$PVMINCDIR%g
2292 s%@PVMFLAG@%$PVMFLAG%g
2293 s%@PVMPROGS@%$PVMPROGS%g
2294 s%@PVMLIBS@%$PVMLIBS%g
2297 s%@RANLIB@%$RANLIB%g
2298 s%@EXEC_DEPENDENCY@%$EXEC_DEPENDENCY%g
2300 s%@host_alias@%$host_alias%g
2301 s%@host_cpu@%$host_cpu%g
2302 s%@host_vendor@%$host_vendor%g
2303 s%@host_os@%$host_os%g
2305 s%@PTHREAD_CC@%$PTHREAD_CC%g
2306 s%@PTHREAD_LIBS@%$PTHREAD_LIBS%g
2307 s%@PTHREAD_CFLAGS@%$PTHREAD_CFLAGS%g
2308 s%@subdirs@%$subdirs%g
2313 cat >> $CONFIG_STATUS <<\EOF
2315 # Split the substitutions into bite-sized pieces for seds with
2316 # small command number limits, like on Digital OSF/1 and HP-UX.
2317 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2318 ac_file=1 # Number of current file.
2319 ac_beg=1 # First line for current file.
2320 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2323 while $ac_more_lines; do
2324 if test $ac_beg -gt 1; then
2325 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2327 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2329 if test ! -s conftest.s$ac_file; then
2331 rm -f conftest.s$ac_file
2333 if test -z "$ac_sed_cmds"; then
2334 ac_sed_cmds="sed -f conftest.s$ac_file"
2336 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2338 ac_file=`expr $ac_file + 1`
2340 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2343 if test -z "$ac_sed_cmds"; then
2348 cat >> $CONFIG_STATUS <<EOF
2350 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile testsuite/Makefile"}
2352 cat >> $CONFIG_STATUS <<\EOF
2353 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2354 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2356 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2357 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2358 *) ac_file_in="${ac_file}.in" ;;
2361 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2363 # Remove last slash and all that follows it. Not all systems have dirname.
2364 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2365 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2366 # The file is in a subdirectory.
2367 test ! -d "$ac_dir" && mkdir "$ac_dir"
2368 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2369 # A "../" for each directory in $ac_dir_suffix.
2370 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2372 ac_dir_suffix= ac_dots=
2375 case "$ac_given_srcdir" in
2377 if test -z "$ac_dots"; then top_srcdir=.
2378 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2379 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2381 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2382 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2386 echo creating "$ac_file"
2388 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2390 *Makefile*) ac_comsub="1i\\
2391 # $configure_input" ;;
2395 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2397 s%@configure_input@%$configure_input%g
2398 s%@srcdir@%$srcdir%g
2399 s%@top_srcdir@%$top_srcdir%g
2400 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2405 cat >> $CONFIG_STATUS <<EOF
2408 cat >> $CONFIG_STATUS <<\EOF
2412 chmod +x $CONFIG_STATUS
2413 rm -fr confdefs* $ac_clean_files
2414 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2416 if test "$no_recursion" != yes; then
2418 # Remove --cache-file and --srcdir arguments so they do not pile up.
2419 ac_sub_configure_args=
2421 for ac_arg in $ac_configure_args; do
2422 if test -n "$ac_prev"; then
2427 -cache-file | --cache-file | --cache-fil | --cache-fi \
2428 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2429 ac_prev=cache_file ;;
2430 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2431 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2433 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2435 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2437 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2441 for ac_config_dir in squid; do
2443 # Do not complain, so a configure script can configure whichever
2444 # parts of a large source tree are present.
2445 if test ! -d $srcdir/$ac_config_dir; then
2449 echo configuring in $ac_config_dir
2454 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2456 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2464 # A "../" for each directory in /$ac_config_dir.
2465 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2468 .) # No --srcdir option. We are building in place.
2469 ac_sub_srcdir=$srcdir ;;
2470 /*) # Absolute path.
2471 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2473 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2476 # Check for guested configure; otherwise get Cygnus style configure.
2477 if test -f $ac_sub_srcdir/configure; then
2478 ac_sub_configure=$ac_sub_srcdir/configure
2479 elif test -f $ac_sub_srcdir/configure.in; then
2480 ac_sub_configure=$ac_configure
2482 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2486 # The recursion is here.
2487 if test -n "$ac_sub_configure"; then
2489 # Make the cache file name correct relative to the subdirectory.
2490 case "$cache_file" in
2491 /*) ac_sub_cache_file=$cache_file ;;
2493 ac_sub_cache_file="$ac_dots$cache_file" ;;
2496 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2497 # The eval makes quoting arguments work.
2498 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2501 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }