Warning, /tools/mpack-1.6/configure is written in an unsupported language. File is not indexed.
view on githubraw file Latest commit 351d1cc0 on 2008-03-12 20:38:49 UTC
ec6cf3b09d Ed H*0001 #! /bin/sh
0002
0003 # Guess values for system-dependent variables and create Makefiles.
0004 # Generated automatically using autoconf version 2.13
0005 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
0006 #
0007 # This configure script is free software; the Free Software Foundation
0008 # gives unlimited permission to copy, distribute and modify it.
0009
0010 # Defaults:
0011 ac_help=
0012 ac_default_prefix=/usr/local
0013 # Any additions from configure.in:
0014
0015 # Initialize some variables set by options.
0016 # The variables have the same names as the options, with
0017 # dashes changed to underlines.
0018 build=NONE
0019 cache_file=./config.cache
0020 exec_prefix=NONE
0021 host=NONE
0022 no_create=
0023 nonopt=NONE
0024 no_recursion=
0025 prefix=NONE
0026 program_prefix=NONE
0027 program_suffix=NONE
0028 program_transform_name=s,x,x,
0029 silent=
0030 site=
0031 srcdir=
0032 target=NONE
0033 verbose=
0034 x_includes=NONE
0035 x_libraries=NONE
0036 bindir='${exec_prefix}/bin'
0037 sbindir='${exec_prefix}/sbin'
0038 libexecdir='${exec_prefix}/libexec'
0039 datadir='${prefix}/share'
0040 sysconfdir='${prefix}/etc'
0041 sharedstatedir='${prefix}/com'
0042 localstatedir='${prefix}/var'
0043 libdir='${exec_prefix}/lib'
0044 includedir='${prefix}/include'
0045 oldincludedir='/usr/include'
0046 infodir='${prefix}/info'
0047 mandir='${prefix}/man'
0048
0049 # Initialize some other variables.
0050 subdirs=
0051 MFLAGS= MAKEFLAGS=
0052 SHELL=${CONFIG_SHELL-/bin/sh}
0053 # Maximum number of lines to put in a shell here document.
0054 ac_max_here_lines=12
0055
0056 ac_prev=
0057 for ac_option
0058 do
0059
0060 # If the previous option needs an argument, assign it.
0061 if test -n "$ac_prev"; then
0062 eval "$ac_prev=\$ac_option"
0063 ac_prev=
0064 continue
0065 fi
0066
0067 case "$ac_option" in
0068 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
0069 *) ac_optarg= ;;
0070 esac
0071
0072 # Accept the important Cygnus configure options, so we can diagnose typos.
0073
0074 case "$ac_option" in
0075
0076 -bindir | --bindir | --bindi | --bind | --bin | --bi)
0077 ac_prev=bindir ;;
0078 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
0079 bindir="$ac_optarg" ;;
0080
0081 -build | --build | --buil | --bui | --bu)
0082 ac_prev=build ;;
0083 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
0084 build="$ac_optarg" ;;
0085
0086 -cache-file | --cache-file | --cache-fil | --cache-fi \
0087 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
0088 ac_prev=cache_file ;;
0089 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
0090 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
0091 cache_file="$ac_optarg" ;;
0092
0093 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
0094 ac_prev=datadir ;;
0095 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
0096 | --da=*)
0097 datadir="$ac_optarg" ;;
0098
0099 -disable-* | --disable-*)
0100 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
0101 # Reject names that are not valid shell variable names.
0102 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
0103 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
0104 fi
0105 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
0106 eval "enable_${ac_feature}=no" ;;
0107
0108 -enable-* | --enable-*)
0109 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
0110 # Reject names that are not valid shell variable names.
0111 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
0112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
0113 fi
0114 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
0115 case "$ac_option" in
0116 *=*) ;;
0117 *) ac_optarg=yes ;;
0118 esac
0119 eval "enable_${ac_feature}='$ac_optarg'" ;;
0120
0121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
0122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
0123 | --exec | --exe | --ex)
0124 ac_prev=exec_prefix ;;
0125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
0126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
0127 | --exec=* | --exe=* | --ex=*)
0128 exec_prefix="$ac_optarg" ;;
0129
0130 -gas | --gas | --ga | --g)
0131 # Obsolete; use --with-gas.
0132 with_gas=yes ;;
0133
0134 -help | --help | --hel | --he)
0135 # Omit some internal or obsolete options to make the list less imposing.
0136 # This message is too long to be a string in the A/UX 3.1 sh.
0137 cat << EOF
0138 Usage: configure [options] [host]
0139 Options: [defaults in brackets after descriptions]
0140 Configuration:
0141 --cache-file=FILE cache test results in FILE
0142 --help print this message
0143 --no-create do not create output files
0144 --quiet, --silent do not print \`checking...' messages
0145 --version print the version of autoconf that created configure
0146 Directory and file names:
0147 --prefix=PREFIX install architecture-independent files in PREFIX
0148 [$ac_default_prefix]
0149 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
0150 [same as prefix]
0151 --bindir=DIR user executables in DIR [EPREFIX/bin]
0152 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
0153 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
0154 --datadir=DIR read-only architecture-independent data in DIR
0155 [PREFIX/share]
0156 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
0157 --sharedstatedir=DIR modifiable architecture-independent data in DIR
0158 [PREFIX/com]
0159 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
0160 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
0161 --includedir=DIR C header files in DIR [PREFIX/include]
0162 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
0163 --infodir=DIR info documentation in DIR [PREFIX/info]
0164 --mandir=DIR man documentation in DIR [PREFIX/man]
0165 --srcdir=DIR find the sources in DIR [configure dir or ..]
0166 --program-prefix=PREFIX prepend PREFIX to installed program names
0167 --program-suffix=SUFFIX append SUFFIX to installed program names
0168 --program-transform-name=PROGRAM
0169 run sed PROGRAM on installed program names
0170 EOF
0171 cat << EOF
0172 Host type:
0173 --build=BUILD configure for building on BUILD [BUILD=HOST]
0174 --host=HOST configure for HOST [guessed]
0175 --target=TARGET configure for TARGET [TARGET=HOST]
0176 Features and packages:
0177 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
0178 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
0179 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
0180 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
0181 --x-includes=DIR X include files are in DIR
0182 --x-libraries=DIR X library files are in DIR
0183 EOF
0184 if test -n "$ac_help"; then
0185 echo "--enable and --with options recognized:$ac_help"
0186 fi
0187 exit 0 ;;
0188
0189 -host | --host | --hos | --ho)
0190 ac_prev=host ;;
0191 -host=* | --host=* | --hos=* | --ho=*)
0192 host="$ac_optarg" ;;
0193
0194 -includedir | --includedir | --includedi | --included | --include \
0195 | --includ | --inclu | --incl | --inc)
0196 ac_prev=includedir ;;
0197 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
0198 | --includ=* | --inclu=* | --incl=* | --inc=*)
0199 includedir="$ac_optarg" ;;
0200
0201 -infodir | --infodir | --infodi | --infod | --info | --inf)
0202 ac_prev=infodir ;;
0203 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
0204 infodir="$ac_optarg" ;;
0205
0206 -libdir | --libdir | --libdi | --libd)
0207 ac_prev=libdir ;;
0208 -libdir=* | --libdir=* | --libdi=* | --libd=*)
0209 libdir="$ac_optarg" ;;
0210
0211 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
0212 | --libexe | --libex | --libe)
0213 ac_prev=libexecdir ;;
0214 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
0215 | --libexe=* | --libex=* | --libe=*)
0216 libexecdir="$ac_optarg" ;;
0217
0218 -localstatedir | --localstatedir | --localstatedi | --localstated \
0219 | --localstate | --localstat | --localsta | --localst \
0220 | --locals | --local | --loca | --loc | --lo)
0221 ac_prev=localstatedir ;;
0222 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
0223 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
0224 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
0225 localstatedir="$ac_optarg" ;;
0226
0227 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
0228 ac_prev=mandir ;;
0229 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
0230 mandir="$ac_optarg" ;;
0231
0232 -nfp | --nfp | --nf)
0233 # Obsolete; use --without-fp.
0234 with_fp=no ;;
0235
0236 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
0237 | --no-cr | --no-c)
0238 no_create=yes ;;
0239
0240 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
0241 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
0242 no_recursion=yes ;;
0243
0244 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
0245 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
0246 | --oldin | --oldi | --old | --ol | --o)
0247 ac_prev=oldincludedir ;;
0248 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
0249 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
0250 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
0251 oldincludedir="$ac_optarg" ;;
0252
0253 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
0254 ac_prev=prefix ;;
0255 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
0256 prefix="$ac_optarg" ;;
0257
0258 -program-prefix | --program-prefix | --program-prefi | --program-pref \
0259 | --program-pre | --program-pr | --program-p)
0260 ac_prev=program_prefix ;;
0261 -program-prefix=* | --program-prefix=* | --program-prefi=* \
0262 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
0263 program_prefix="$ac_optarg" ;;
0264
0265 -program-suffix | --program-suffix | --program-suffi | --program-suff \
0266 | --program-suf | --program-su | --program-s)
0267 ac_prev=program_suffix ;;
0268 -program-suffix=* | --program-suffix=* | --program-suffi=* \
0269 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
0270 program_suffix="$ac_optarg" ;;
0271
0272 -program-transform-name | --program-transform-name \
0273 | --program-transform-nam | --program-transform-na \
0274 | --program-transform-n | --program-transform- \
0275 | --program-transform | --program-transfor \
0276 | --program-transfo | --program-transf \
0277 | --program-trans | --program-tran \
0278 | --progr-tra | --program-tr | --program-t)
0279 ac_prev=program_transform_name ;;
0280 -program-transform-name=* | --program-transform-name=* \
0281 | --program-transform-nam=* | --program-transform-na=* \
0282 | --program-transform-n=* | --program-transform-=* \
0283 | --program-transform=* | --program-transfor=* \
0284 | --program-transfo=* | --program-transf=* \
0285 | --program-trans=* | --program-tran=* \
0286 | --progr-tra=* | --program-tr=* | --program-t=*)
0287 program_transform_name="$ac_optarg" ;;
0288
0289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
0290 | -silent | --silent | --silen | --sile | --sil)
0291 silent=yes ;;
0292
0293 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
0294 ac_prev=sbindir ;;
0295 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
0296 | --sbi=* | --sb=*)
0297 sbindir="$ac_optarg" ;;
0298
0299 -sharedstatedir | --sharedstatedir | --sharedstatedi \
0300 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
0301 | --sharedst | --shareds | --shared | --share | --shar \
0302 | --sha | --sh)
0303 ac_prev=sharedstatedir ;;
0304 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
0305 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
0306 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
0307 | --sha=* | --sh=*)
0308 sharedstatedir="$ac_optarg" ;;
0309
0310 -site | --site | --sit)
0311 ac_prev=site ;;
0312 -site=* | --site=* | --sit=*)
0313 site="$ac_optarg" ;;
0314
0315 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
0316 ac_prev=srcdir ;;
0317 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
0318 srcdir="$ac_optarg" ;;
0319
0320 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
0321 | --syscon | --sysco | --sysc | --sys | --sy)
0322 ac_prev=sysconfdir ;;
0323 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
0324 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
0325 sysconfdir="$ac_optarg" ;;
0326
0327 -target | --target | --targe | --targ | --tar | --ta | --t)
0328 ac_prev=target ;;
0329 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
0330 target="$ac_optarg" ;;
0331
0332 -v | -verbose | --verbose | --verbos | --verbo | --verb)
0333 verbose=yes ;;
0334
0335 -version | --version | --versio | --versi | --vers)
0336 echo "configure generated by autoconf version 2.13"
0337 exit 0 ;;
0338
0339 -with-* | --with-*)
0340 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
0341 # Reject names that are not valid shell variable names.
0342 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
0343 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
0344 fi
0345 ac_package=`echo $ac_package| sed 's/-/_/g'`
0346 case "$ac_option" in
0347 *=*) ;;
0348 *) ac_optarg=yes ;;
0349 esac
0350 eval "with_${ac_package}='$ac_optarg'" ;;
0351
0352 -without-* | --without-*)
0353 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
0354 # Reject names that are not valid shell variable names.
0355 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
0356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
0357 fi
0358 ac_package=`echo $ac_package| sed 's/-/_/g'`
0359 eval "with_${ac_package}=no" ;;
0360
0361 --x)
0362 # Obsolete; use --with-x.
0363 with_x=yes ;;
0364
0365 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
0366 | --x-incl | --x-inc | --x-in | --x-i)
0367 ac_prev=x_includes ;;
0368 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
0369 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
0370 x_includes="$ac_optarg" ;;
0371
0372 -x-libraries | --x-libraries | --x-librarie | --x-librari \
0373 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
0374 ac_prev=x_libraries ;;
0375 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
0376 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
0377 x_libraries="$ac_optarg" ;;
0378
0379 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
0380 ;;
0381
0382 *)
0383 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
0384 echo "configure: warning: $ac_option: invalid host type" 1>&2
0385 fi
0386 if test "x$nonopt" != xNONE; then
0387 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
0388 fi
0389 nonopt="$ac_option"
0390 ;;
0391
0392 esac
0393 done
0394
0395 if test -n "$ac_prev"; then
0396 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
0397 fi
0398
0399 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
0400
0401 # File descriptor usage:
0402 # 0 standard input
0403 # 1 file creation
0404 # 2 errors and warnings
0405 # 3 some systems may open it to /dev/tty
0406 # 4 used on the Kubota Titan
0407 # 6 checking for... messages and results
0408 # 5 compiler messages saved in config.log
0409 if test "$silent" = yes; then
0410 exec 6>/dev/null
0411 else
0412 exec 6>&1
0413 fi
0414 exec 5>./config.log
0415
0416 echo "\
0417 This file contains any messages produced by compilers while
0418 running configure, to aid debugging if configure makes a mistake.
0419 " 1>&5
0420
0421 # Strip out --no-create and --no-recursion so they do not pile up.
0422 # Also quote any args containing shell metacharacters.
0423 ac_configure_args=
0424 for ac_arg
0425 do
0426 case "$ac_arg" in
0427 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
0428 | --no-cr | --no-c) ;;
0429 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
0430 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
0431 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
0432 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
0433 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
0434 esac
0435 done
0436
0437 # NLS nuisances.
0438 # Only set these to C if already set. These must not be set unconditionally
0439 # because not all systems understand e.g. LANG=C (notably SCO).
0440 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
0441 # Non-C LC_CTYPE values break the ctype check.
0442 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
0443 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
0444 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
0445 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
0446
0447 # confdefs.h avoids OS command line length limits that DEFS can exceed.
0448 rm -rf conftest* confdefs.h
0449 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
0450 echo > confdefs.h
0451
0452 # A filename unique to this package, relative to the directory that
0453 # configure is in, which we can look for to find out if srcdir is correct.
0454 ac_unique_file=common.h
0455
0456 # Find the source files, if location was not specified.
0457 if test -z "$srcdir"; then
0458 ac_srcdir_defaulted=yes
0459 # Try the directory containing this script, then its parent.
0460 ac_prog=$0
0461 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
0462 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
0463 srcdir=$ac_confdir
0464 if test ! -r $srcdir/$ac_unique_file; then
0465 srcdir=..
0466 fi
0467 else
0468 ac_srcdir_defaulted=no
0469 fi
0470 if test ! -r $srcdir/$ac_unique_file; then
0471 if test "$ac_srcdir_defaulted" = yes; then
0472 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
0473 else
0474 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
0475 fi
0476 fi
0477 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
0478
0479 # Prefer explicitly selected file to automatically selected ones.
0480 if test -z "$CONFIG_SITE"; then
0481 if test "x$prefix" != xNONE; then
0482 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
0483 else
0484 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
0485 fi
0486 fi
0487 for ac_site_file in $CONFIG_SITE; do
0488 if test -r "$ac_site_file"; then
0489 echo "loading site script $ac_site_file"
0490 . "$ac_site_file"
0491 fi
0492 done
0493
0494 if test -r "$cache_file"; then
0495 echo "loading cache $cache_file"
0496 . $cache_file
0497 else
0498 echo "creating cache $cache_file"
0499 > $cache_file
0500 fi
0501
0502 ac_ext=c
0503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
0504 ac_cpp='$CPP $CPPFLAGS'
0505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
0506 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
0507 cross_compiling=$ac_cv_prog_cc_cross
0508
0509 ac_exeext=
0510 ac_objext=o
0511 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
0512 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
0513 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
0514 ac_n= ac_c='
0515 ' ac_t=' '
0516 else
0517 ac_n=-n ac_c= ac_t=
0518 fi
0519 else
0520 ac_n= ac_c='\c' ac_t=
0521 fi
0522
0523
0524 ac_aux_dir=
0525 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
0526 if test -f $ac_dir/install-sh; then
0527 ac_aux_dir=$ac_dir
0528 ac_install_sh="$ac_aux_dir/install-sh -c"
0529 break
0530 elif test -f $ac_dir/install.sh; then
0531 ac_aux_dir=$ac_dir
0532 ac_install_sh="$ac_aux_dir/install.sh -c"
0533 break
0534 fi
0535 done
0536 if test -z "$ac_aux_dir"; then
0537 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
0538 fi
0539 ac_config_guess=$ac_aux_dir/config.guess
0540 ac_config_sub=$ac_aux_dir/config.sub
0541 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
0542
0543 # Find a good install program. We prefer a C program (faster),
0544 # so one script is as good as another. But avoid the broken or
0545 # incompatible versions:
0546 # SysV /etc/install, /usr/sbin/install
0547 # SunOS /usr/etc/install
0548 # IRIX /sbin/install
0549 # AIX /bin/install
0550 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
0551 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
0552 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
0553 # ./install, which can be erroneously created by make from ./install.sh.
0554 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
0555 echo "configure:556: checking for a BSD compatible install" >&5
0556 if test -z "$INSTALL"; then
0557 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
0558 echo $ac_n "(cached) $ac_c" 1>&6
0559 else
0560 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
0561 for ac_dir in $PATH; do
0562 # Account for people who put trailing slashes in PATH elements.
0563 case "$ac_dir/" in
0564 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
0565 *)
0566 # OSF1 and SCO ODT 3.0 have their own names for install.
0567 # Don't use installbsd from OSF since it installs stuff as root
0568 # by default.
0569 for ac_prog in ginstall scoinst install; do
0570 if test -f $ac_dir/$ac_prog; then
0571 if test $ac_prog = install &&
0572 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
0573 # AIX install. It has an incompatible calling convention.
0574 :
0575 else
0576 ac_cv_path_install="$ac_dir/$ac_prog -c"
0577 break 2
0578 fi
0579 fi
0580 done
0581 ;;
0582 esac
0583 done
0584 IFS="$ac_save_IFS"
0585
0586 fi
0587 if test "${ac_cv_path_install+set}" = set; then
0588 INSTALL="$ac_cv_path_install"
0589 else
0590 # As a last resort, use the slow shell script. We don't cache a
0591 # path for INSTALL within a source directory, because that will
0592 # break other packages using the cache if that directory is
0593 # removed, or if the path is relative.
0594 INSTALL="$ac_install_sh"
0595 fi
0596 fi
0597 echo "$ac_t""$INSTALL" 1>&6
0598
0599 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
0600 # It thinks the first close brace ends the variable substitution.
0601 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
0602
0603 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
0604
0605 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
0606
0607 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
0608 echo "configure:609: checking whether build environment is sane" >&5
0609 # Just in case
0610 sleep 1
0611 echo timestamp > conftestfile
0612 # Do `set' in a subshell so we don't clobber the current shell's
0613 # arguments. Must try -L first in case configure is actually a
0614 # symlink; some systems play weird games with the mod time of symlinks
0615 # (eg FreeBSD returns the mod time of the symlink's containing
0616 # directory).
0617 if (
0618 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
0619 if test "$*" = "X"; then
0620 # -L didn't work.
0621 set X `ls -t $srcdir/configure conftestfile`
0622 fi
0623 if test "$*" != "X $srcdir/configure conftestfile" \
0624 && test "$*" != "X conftestfile $srcdir/configure"; then
0625
0626 # If neither matched, then we have a broken ls. This can happen
0627 # if, for instance, CONFIG_SHELL is bash and it inherits a
0628 # broken ls alias from the environment. This has actually
0629 # happened. Such a system could not be considered "sane".
0630 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
0631 alias in your environment" 1>&2; exit 1; }
0632 fi
0633
0634 test "$2" = conftestfile
0635 )
0636 then
0637 # Ok.
0638 :
0639 else
0640 { echo "configure: error: newly created file is older than distributed files!
0641 Check your system clock" 1>&2; exit 1; }
0642 fi
0643 rm -f conftest*
0644 echo "$ac_t""yes" 1>&6
0645 if test "$program_transform_name" = s,x,x,; then
0646 program_transform_name=
0647 else
0648 # Double any \ or $. echo might interpret backslashes.
0649 cat <<\EOF_SED > conftestsed
0650 s,\\,\\\\,g; s,\$,$$,g
0651 EOF_SED
0652 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
0653 rm -f conftestsed
0654 fi
0655 test "$program_prefix" != NONE &&
0656 program_transform_name="s,^,${program_prefix},; $program_transform_name"
0657 # Use a double $ so make ignores it.
0658 test "$program_suffix" != NONE &&
0659 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
0660
0661 # sed with no file args requires a program.
0662 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
0663
0664 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
0665 echo "configure:666: checking whether ${MAKE-make} sets \${MAKE}" >&5
0666 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
0667 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
0668 echo $ac_n "(cached) $ac_c" 1>&6
0669 else
0670 cat > conftestmake <<\EOF
0671 all:
0672 @echo 'ac_maketemp="${MAKE}"'
0673 EOF
0674 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
0675 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
0676 if test -n "$ac_maketemp"; then
0677 eval ac_cv_prog_make_${ac_make}_set=yes
0678 else
0679 eval ac_cv_prog_make_${ac_make}_set=no
0680 fi
0681 rm -f conftestmake
0682 fi
0683 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
0684 echo "$ac_t""yes" 1>&6
0685 SET_MAKE=
0686 else
0687 echo "$ac_t""no" 1>&6
0688 SET_MAKE="MAKE=${MAKE-make}"
0689 fi
0690
0691
0692 PACKAGE=mpack
0693
0694 VERSION=1.6
0695
0696 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
0697 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
0698 fi
0699 cat >> confdefs.h <<EOF
0700 #define PACKAGE "$PACKAGE"
0701 EOF
0702
0703 cat >> confdefs.h <<EOF
0704 #define VERSION "$VERSION"
0705 EOF
0706
0707
0708
0709 missing_dir=`cd $ac_aux_dir && pwd`
0710 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
0711 echo "configure:712: checking for working aclocal" >&5
0712 # Run test in a subshell; some versions of sh will print an error if
0713 # an executable is not found, even if stderr is redirected.
0714 # Redirect stdin to placate older versions of autoconf. Sigh.
0715 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
0716 ACLOCAL=aclocal
0717 echo "$ac_t""found" 1>&6
0718 else
0719 ACLOCAL="$missing_dir/missing aclocal"
0720 echo "$ac_t""missing" 1>&6
0721 fi
0722
0723 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
0724 echo "configure:725: checking for working autoconf" >&5
0725 # Run test in a subshell; some versions of sh will print an error if
0726 # an executable is not found, even if stderr is redirected.
0727 # Redirect stdin to placate older versions of autoconf. Sigh.
0728 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
0729 AUTOCONF=autoconf
0730 echo "$ac_t""found" 1>&6
0731 else
0732 AUTOCONF="$missing_dir/missing autoconf"
0733 echo "$ac_t""missing" 1>&6
0734 fi
0735
0736 echo $ac_n "checking for working automake""... $ac_c" 1>&6
0737 echo "configure:738: checking for working automake" >&5
0738 # Run test in a subshell; some versions of sh will print an error if
0739 # an executable is not found, even if stderr is redirected.
0740 # Redirect stdin to placate older versions of autoconf. Sigh.
0741 if (automake --version) < /dev/null > /dev/null 2>&1; then
0742 AUTOMAKE=automake
0743 echo "$ac_t""found" 1>&6
0744 else
0745 AUTOMAKE="$missing_dir/missing automake"
0746 echo "$ac_t""missing" 1>&6
0747 fi
0748
0749 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
0750 echo "configure:751: checking for working autoheader" >&5
0751 # Run test in a subshell; some versions of sh will print an error if
0752 # an executable is not found, even if stderr is redirected.
0753 # Redirect stdin to placate older versions of autoconf. Sigh.
0754 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
0755 AUTOHEADER=autoheader
0756 echo "$ac_t""found" 1>&6
0757 else
0758 AUTOHEADER="$missing_dir/missing autoheader"
0759 echo "$ac_t""missing" 1>&6
0760 fi
0761
0762 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
0763 echo "configure:764: checking for working makeinfo" >&5
0764 # Run test in a subshell; some versions of sh will print an error if
0765 # an executable is not found, even if stderr is redirected.
0766 # Redirect stdin to placate older versions of autoconf. Sigh.
0767 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
0768 MAKEINFO=makeinfo
0769 echo "$ac_t""found" 1>&6
0770 else
0771 MAKEINFO="$missing_dir/missing makeinfo"
0772 echo "$ac_t""missing" 1>&6
0773 fi
0774
0775
0776 # Extract the first word of "gcc", so it can be a program name with args.
0777 set dummy gcc; ac_word=$2
0778 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0779 echo "configure:780: checking for $ac_word" >&5
0780 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
0781 echo $ac_n "(cached) $ac_c" 1>&6
0782 else
0783 if test -n "$CC"; then
0784 ac_cv_prog_CC="$CC" # Let the user override the test.
0785 else
0786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
0787 ac_dummy="$PATH"
0788 for ac_dir in $ac_dummy; do
0789 test -z "$ac_dir" && ac_dir=.
0790 if test -f $ac_dir/$ac_word; then
0791 ac_cv_prog_CC="gcc"
0792 break
0793 fi
0794 done
0795 IFS="$ac_save_ifs"
0796 fi
0797 fi
0798 CC="$ac_cv_prog_CC"
0799 if test -n "$CC"; then
0800 echo "$ac_t""$CC" 1>&6
0801 else
0802 echo "$ac_t""no" 1>&6
0803 fi
0804
0805 if test -z "$CC"; then
0806 # Extract the first word of "cc", so it can be a program name with args.
0807 set dummy cc; ac_word=$2
0808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0809 echo "configure:810: checking for $ac_word" >&5
0810 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
0811 echo $ac_n "(cached) $ac_c" 1>&6
0812 else
0813 if test -n "$CC"; then
0814 ac_cv_prog_CC="$CC" # Let the user override the test.
0815 else
0816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
0817 ac_prog_rejected=no
0818 ac_dummy="$PATH"
0819 for ac_dir in $ac_dummy; do
0820 test -z "$ac_dir" && ac_dir=.
0821 if test -f $ac_dir/$ac_word; then
0822 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
0823 ac_prog_rejected=yes
0824 continue
0825 fi
0826 ac_cv_prog_CC="cc"
0827 break
0828 fi
0829 done
0830 IFS="$ac_save_ifs"
0831 if test $ac_prog_rejected = yes; then
0832 # We found a bogon in the path, so make sure we never use it.
0833 set dummy $ac_cv_prog_CC
0834 shift
0835 if test $# -gt 0; then
0836 # We chose a different compiler from the bogus one.
0837 # However, it has the same basename, so the bogon will be chosen
0838 # first if we set CC to just the basename; use the full file name.
0839 shift
0840 set dummy "$ac_dir/$ac_word" "$@"
0841 shift
0842 ac_cv_prog_CC="$@"
0843 fi
0844 fi
0845 fi
0846 fi
0847 CC="$ac_cv_prog_CC"
0848 if test -n "$CC"; then
0849 echo "$ac_t""$CC" 1>&6
0850 else
0851 echo "$ac_t""no" 1>&6
0852 fi
0853
0854 if test -z "$CC"; then
0855 case "`uname -s`" in
0856 *win32* | *WIN32*)
0857 # Extract the first word of "cl", so it can be a program name with args.
0858 set dummy cl; ac_word=$2
0859 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0860 echo "configure:861: checking for $ac_word" >&5
0861 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
0862 echo $ac_n "(cached) $ac_c" 1>&6
0863 else
0864 if test -n "$CC"; then
0865 ac_cv_prog_CC="$CC" # Let the user override the test.
0866 else
0867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
0868 ac_dummy="$PATH"
0869 for ac_dir in $ac_dummy; do
0870 test -z "$ac_dir" && ac_dir=.
0871 if test -f $ac_dir/$ac_word; then
0872 ac_cv_prog_CC="cl"
0873 break
0874 fi
0875 done
0876 IFS="$ac_save_ifs"
0877 fi
0878 fi
0879 CC="$ac_cv_prog_CC"
0880 if test -n "$CC"; then
0881 echo "$ac_t""$CC" 1>&6
0882 else
0883 echo "$ac_t""no" 1>&6
0884 fi
0885 ;;
0886 esac
0887 fi
0888 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
0889 fi
0890
0891 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
0892 echo "configure:893: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
0893
0894 ac_ext=c
0895 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
0896 ac_cpp='$CPP $CPPFLAGS'
0897 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
0898 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
0899 cross_compiling=$ac_cv_prog_cc_cross
0900
0901 cat > conftest.$ac_ext << EOF
0902
0903 #line 904 "configure"
0904 #include "confdefs.h"
0905
0906 main(){return(0);}
0907 EOF
0908 if { (eval echo configure:909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0909 ac_cv_prog_cc_works=yes
0910 # If we can't run a trivial program, we are probably using a cross compiler.
0911 if (./conftest; exit) 2>/dev/null; then
0912 ac_cv_prog_cc_cross=no
0913 else
0914 ac_cv_prog_cc_cross=yes
0915 fi
0916 else
0917 echo "configure: failed program was:" >&5
0918 cat conftest.$ac_ext >&5
0919 ac_cv_prog_cc_works=no
0920 fi
0921 rm -fr conftest*
0922 ac_ext=c
0923 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
0924 ac_cpp='$CPP $CPPFLAGS'
0925 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
0926 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
0927 cross_compiling=$ac_cv_prog_cc_cross
0928
0929 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
0930 if test $ac_cv_prog_cc_works = no; then
0931 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
0932 fi
0933 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
0934 echo "configure:935: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
0935 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
0936 cross_compiling=$ac_cv_prog_cc_cross
0937
0938 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
0939 echo "configure:940: checking whether we are using GNU C" >&5
0940 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
0941 echo $ac_n "(cached) $ac_c" 1>&6
0942 else
0943 cat > conftest.c <<EOF
0944 #ifdef __GNUC__
0945 yes;
0946 #endif
0947 EOF
0948 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
0949 ac_cv_prog_gcc=yes
0950 else
0951 ac_cv_prog_gcc=no
0952 fi
0953 fi
0954
0955 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
0956
0957 if test $ac_cv_prog_gcc = yes; then
0958 GCC=yes
0959 else
0960 GCC=
0961 fi
0962
0963 ac_test_CFLAGS="${CFLAGS+set}"
0964 ac_save_CFLAGS="$CFLAGS"
0965 CFLAGS=
0966 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
0967 echo "configure:968: checking whether ${CC-cc} accepts -g" >&5
0968 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
0969 echo $ac_n "(cached) $ac_c" 1>&6
0970 else
0971 echo 'void f(){}' > conftest.c
0972 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
0973 ac_cv_prog_cc_g=yes
0974 else
0975 ac_cv_prog_cc_g=no
0976 fi
0977 rm -f conftest*
0978
0979 fi
0980
0981 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
0982 if test "$ac_test_CFLAGS" = set; then
0983 CFLAGS="$ac_save_CFLAGS"
0984 elif test $ac_cv_prog_cc_g = yes; then
0985 if test "$GCC" = yes; then
0986 CFLAGS="-g -O2"
0987 else
0988 CFLAGS="-g"
0989 fi
0990 else
0991 if test "$GCC" = yes; then
0992 CFLAGS="-O2"
0993 else
0994 CFLAGS=
0995 fi
0996 fi
0997
0998
0999
1000 save_LIBS="$LIBS"
1001 LIB_SOCKET=""
1002 echo $ac_n "checking for connect""... $ac_c" 1>&6
1003 echo "configure:1004: checking for connect" >&5
1004 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1005 echo $ac_n "(cached) $ac_c" 1>&6
1006 else
1007 cat > conftest.$ac_ext <<EOF
1008 #line 1009 "configure"
1009 #include "confdefs.h"
1010 /* System header to define __stub macros and hopefully few prototypes,
1011 which can conflict with char connect(); below. */
1012 #include <assert.h>
1013 /* Override any gcc2 internal prototype to avoid an error. */
1014 /* We use char because int might match the return type of a gcc2
1015 builtin and then its argument prototype would still apply. */
1016 char connect();
1017
1018 int main() {
1019
1020 /* The GNU C library defines this for functions which it implements
1021 to always fail with ENOSYS. Some functions are actually named
1022 something starting with __ and the normal name is an alias. */
1023 #if defined (__stub_connect) || defined (__stub___connect)
1024 choke me
1025 #else
1026 connect();
1027 #endif
1028
1029 ; return 0; }
1030 EOF
1031 if { (eval echo configure:1032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1032 rm -rf conftest*
1033 eval "ac_cv_func_connect=yes"
1034 else
1035 echo "configure: failed program was:" >&5
1036 cat conftest.$ac_ext >&5
1037 rm -rf conftest*
1038 eval "ac_cv_func_connect=no"
1039 fi
1040 rm -f conftest*
1041 fi
1042
1043 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1044 echo "$ac_t""yes" 1>&6
1045 :
1046 else
1047 echo "$ac_t""no" 1>&6
1048 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1049 echo "configure:1050: checking for gethostbyname in -lnsl" >&5
1050 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1051 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1052 echo $ac_n "(cached) $ac_c" 1>&6
1053 else
1054 ac_save_LIBS="$LIBS"
1055 LIBS="-lnsl $LIBS"
1056 cat > conftest.$ac_ext <<EOF
1057 #line 1058 "configure"
1058 #include "confdefs.h"
1059 /* Override any gcc2 internal prototype to avoid an error. */
1060 /* We use char because int might match the return type of a gcc2
1061 builtin and then its argument prototype would still apply. */
1062 char gethostbyname();
1063
1064 int main() {
1065 gethostbyname()
1066 ; return 0; }
1067 EOF
1068 if { (eval echo configure:1069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1069 rm -rf conftest*
1070 eval "ac_cv_lib_$ac_lib_var=yes"
1071 else
1072 echo "configure: failed program was:" >&5
1073 cat conftest.$ac_ext >&5
1074 rm -rf conftest*
1075 eval "ac_cv_lib_$ac_lib_var=no"
1076 fi
1077 rm -f conftest*
1078 LIBS="$ac_save_LIBS"
1079
1080 fi
1081 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1082 echo "$ac_t""yes" 1>&6
1083 LIB_SOCKET="-lnsl $LIB_SOCKET"
1084 else
1085 echo "$ac_t""no" 1>&6
1086 fi
1087
1088 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1089 echo "configure:1090: checking for connect in -lsocket" >&5
1090 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
1093 else
1094 ac_save_LIBS="$LIBS"
1095 LIBS="-lsocket $LIBS"
1096 cat > conftest.$ac_ext <<EOF
1097 #line 1098 "configure"
1098 #include "confdefs.h"
1099 /* Override any gcc2 internal prototype to avoid an error. */
1100 /* We use char because int might match the return type of a gcc2
1101 builtin and then its argument prototype would still apply. */
1102 char connect();
1103
1104 int main() {
1105 connect()
1106 ; return 0; }
1107 EOF
1108 if { (eval echo configure:1109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1109 rm -rf conftest*
1110 eval "ac_cv_lib_$ac_lib_var=yes"
1111 else
1112 echo "configure: failed program was:" >&5
1113 cat conftest.$ac_ext >&5
1114 rm -rf conftest*
1115 eval "ac_cv_lib_$ac_lib_var=no"
1116 fi
1117 rm -f conftest*
1118 LIBS="$ac_save_LIBS"
1119
1120 fi
1121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1122 echo "$ac_t""yes" 1>&6
1123 LIB_SOCKET="-lsocket $LIB_SOCKET"
1124 else
1125 echo "$ac_t""no" 1>&6
1126 fi
1127
1128
1129 fi
1130
1131 LIBS="$LIB_SOCKET $save_LIBS"
1132 echo $ac_n "checking for res_search""... $ac_c" 1>&6
1133 echo "configure:1134: checking for res_search" >&5
1134 if eval "test \"`echo '$''{'ac_cv_func_res_search'+set}'`\" = set"; then
1135 echo $ac_n "(cached) $ac_c" 1>&6
1136 else
1137 cat > conftest.$ac_ext <<EOF
1138 #line 1139 "configure"
1139 #include "confdefs.h"
1140 /* System header to define __stub macros and hopefully few prototypes,
1141 which can conflict with char res_search(); below. */
1142 #include <assert.h>
1143 /* Override any gcc2 internal prototype to avoid an error. */
1144 /* We use char because int might match the return type of a gcc2
1145 builtin and then its argument prototype would still apply. */
1146 char res_search();
1147
1148 int main() {
1149
1150 /* The GNU C library defines this for functions which it implements
1151 to always fail with ENOSYS. Some functions are actually named
1152 something starting with __ and the normal name is an alias. */
1153 #if defined (__stub_res_search) || defined (__stub___res_search)
1154 choke me
1155 #else
1156 res_search();
1157 #endif
1158
1159 ; return 0; }
1160 EOF
1161 if { (eval echo configure:1162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1162 rm -rf conftest*
1163 eval "ac_cv_func_res_search=yes"
1164 else
1165 echo "configure: failed program was:" >&5
1166 cat conftest.$ac_ext >&5
1167 rm -rf conftest*
1168 eval "ac_cv_func_res_search=no"
1169 fi
1170 rm -f conftest*
1171 fi
1172
1173 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
1174 echo "$ac_t""yes" 1>&6
1175 :
1176 else
1177 echo "$ac_t""no" 1>&6
1178 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
1179 echo "configure:1180: checking for res_search in -lresolv" >&5
1180 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
1181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1183 else
1184 ac_save_LIBS="$LIBS"
1185 LIBS="-lresolv $LIBS"
1186 cat > conftest.$ac_ext <<EOF
1187 #line 1188 "configure"
1188 #include "confdefs.h"
1189 /* Override any gcc2 internal prototype to avoid an error. */
1190 /* We use char because int might match the return type of a gcc2
1191 builtin and then its argument prototype would still apply. */
1192 char res_search();
1193
1194 int main() {
1195 res_search()
1196 ; return 0; }
1197 EOF
1198 if { (eval echo configure:1199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1199 rm -rf conftest*
1200 eval "ac_cv_lib_$ac_lib_var=yes"
1201 else
1202 echo "configure: failed program was:" >&5
1203 cat conftest.$ac_ext >&5
1204 rm -rf conftest*
1205 eval "ac_cv_lib_$ac_lib_var=no"
1206 fi
1207 rm -f conftest*
1208 LIBS="$ac_save_LIBS"
1209
1210 fi
1211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1212 echo "$ac_t""yes" 1>&6
1213 LIB_SOCKET="-lresolv $LIB_SOCKET"
1214 else
1215 echo "$ac_t""no" 1>&6
1216 fi
e768bd1221 Jean*1217
ec6cf3b09d Ed H*1218
1219 fi
1220
1221 LIBS="$LIB_SOCKET $save_LIBS"
1222 for ac_func in dn_expand dns_lookup
1223 do
1224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1225 echo "configure:1226: checking for $ac_func" >&5
1226 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1228 else
1229 cat > conftest.$ac_ext <<EOF
1230 #line 1231 "configure"
1231 #include "confdefs.h"
1232 /* System header to define __stub macros and hopefully few prototypes,
1233 which can conflict with char $ac_func(); below. */
1234 #include <assert.h>
1235 /* Override any gcc2 internal prototype to avoid an error. */
1236 /* We use char because int might match the return type of a gcc2
1237 builtin and then its argument prototype would still apply. */
1238 char $ac_func();
1239
1240 int main() {
1241
1242 /* The GNU C library defines this for functions which it implements
1243 to always fail with ENOSYS. Some functions are actually named
1244 something starting with __ and the normal name is an alias. */
1245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1246 choke me
1247 #else
1248 $ac_func();
1249 #endif
1250
1251 ; return 0; }
1252 EOF
1253 if { (eval echo configure:1254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1254 rm -rf conftest*
1255 eval "ac_cv_func_$ac_func=yes"
1256 else
1257 echo "configure: failed program was:" >&5
1258 cat conftest.$ac_ext >&5
1259 rm -rf conftest*
1260 eval "ac_cv_func_$ac_func=no"
1261 fi
1262 rm -f conftest*
1263 fi
1264
1265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1266 echo "$ac_t""yes" 1>&6
1267 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1268 cat >> confdefs.h <<EOF
1269 #define $ac_tr_func 1
1270 EOF
1271
1272 else
1273 echo "$ac_t""no" 1>&6
1274 fi
1275 done
1276
1277 LIBS="$save_LIBS"
1278
1279
1280
1281 for ac_func in strchr
1282 do
1283 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1284 echo "configure:1285: checking for $ac_func" >&5
1285 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1287 else
1288 cat > conftest.$ac_ext <<EOF
1289 #line 1290 "configure"
1290 #include "confdefs.h"
1291 /* System header to define __stub macros and hopefully few prototypes,
1292 which can conflict with char $ac_func(); below. */
1293 #include <assert.h>
1294 /* Override any gcc2 internal prototype to avoid an error. */
1295 /* We use char because int might match the return type of a gcc2
1296 builtin and then its argument prototype would still apply. */
1297 char $ac_func();
1298
1299 int main() {
1300
1301 /* The GNU C library defines this for functions which it implements
1302 to always fail with ENOSYS. Some functions are actually named
1303 something starting with __ and the normal name is an alias. */
1304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1305 choke me
1306 #else
1307 $ac_func();
1308 #endif
1309
1310 ; return 0; }
1311 EOF
1312 if { (eval echo configure:1313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1313 rm -rf conftest*
1314 eval "ac_cv_func_$ac_func=yes"
1315 else
1316 echo "configure: failed program was:" >&5
1317 cat conftest.$ac_ext >&5
1318 rm -rf conftest*
1319 eval "ac_cv_func_$ac_func=no"
1320 fi
1321 rm -f conftest*
1322 fi
1323
1324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1325 echo "$ac_t""yes" 1>&6
1326 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1327 cat >> confdefs.h <<EOF
1328 #define $ac_tr_func 1
1329 EOF
1330
1331 else
1332 echo "$ac_t""no" 1>&6
1333 fi
1334 done
1335
1336 for ac_func in strcasecmp getopt
1337 do
1338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1339 echo "configure:1340: checking for $ac_func" >&5
1340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1342 else
1343 cat > conftest.$ac_ext <<EOF
1344 #line 1345 "configure"
1345 #include "confdefs.h"
1346 /* System header to define __stub macros and hopefully few prototypes,
1347 which can conflict with char $ac_func(); below. */
1348 #include <assert.h>
1349 /* Override any gcc2 internal prototype to avoid an error. */
1350 /* We use char because int might match the return type of a gcc2
1351 builtin and then its argument prototype would still apply. */
1352 char $ac_func();
1353
1354 int main() {
1355
1356 /* The GNU C library defines this for functions which it implements
1357 to always fail with ENOSYS. Some functions are actually named
1358 something starting with __ and the normal name is an alias. */
1359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1360 choke me
1361 #else
1362 $ac_func();
1363 #endif
1364
1365 ; return 0; }
1366 EOF
1367 if { (eval echo configure:1368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1368 rm -rf conftest*
1369 eval "ac_cv_func_$ac_func=yes"
1370 else
1371 echo "configure: failed program was:" >&5
1372 cat conftest.$ac_ext >&5
1373 rm -rf conftest*
1374 eval "ac_cv_func_$ac_func=no"
1375 fi
1376 rm -f conftest*
1377 fi
1378
1379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1380 echo "$ac_t""yes" 1>&6
1381 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1382 cat >> confdefs.h <<EOF
1383 #define $ac_tr_func 1
1384 EOF
1385
1386 else
1387 echo "$ac_t""no" 1>&6
1388 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
1389 fi
1390 done
1391
351d1cc027 Jean*1392 #---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
ec6cf3b09d Ed H*1393
351d1cc027 Jean*1394 for ac_head in getopt
1395 do
1396 ac_header=${ac_head}.h
1397 echo $ac_n "checking for $ac_header""... $ac_c" 1>&6
1398 echo "configure:1396: checking for $ac_header" >&5
1399 if eval "test \"`echo '$''{'ac_cv_head_$ac_head'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1401 else
1402 cat > conftest.$ac_ext <<EOF
1403 #line 1401 "configure"
1404 #include "confdefs.h"
1405 #include <stdio.h>
1406 #include <$ac_header>
1407 int main(int argc, char **argv) {
1408 printf("Hello!\n")
1409 ; return 0; }
1410 EOF
1411 if { (eval echo configure:1409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1412 rm -rf conftest*
1413 eval "ac_cv_head_$ac_head=yes"
1414 else
1415 echo "configure: failed program was:" >&5
1416 cat conftest.$ac_ext >&5
1417 rm -rf conftest*
1418 eval "ac_cv_head_$ac_head=no"
1419 fi
1420 rm -f conftest*
1421 fi
1422
1423 if eval "test \"`echo '$ac_cv_head_'$ac_head`\" = yes"; then
1424 echo "$ac_t""yes" 1>&6
1425 ac_tr_head=HAVE_`echo ${ac_head}_h | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1426 cat >> confdefs.h <<EOF
1427 #define $ac_tr_head 1
1428 EOF
1429
1430 else
1431 echo "$ac_t""no" 1>&6
1432 fi
1433 done
1434
1435 #---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
ec6cf3b09d Ed H*1436
1437 trap '' 1 2 15
1438 cat > confcache <<\EOF
1439 # This file is a shell script that caches the results of configure
1440 # tests run on this system so they can be shared between configure
1441 # scripts and configure runs. It is not useful on other systems.
1442 # If it contains results you don't want to keep, you may remove or edit it.
1443 #
1444 # By default, configure uses ./config.cache as the cache file,
1445 # creating it if it does not exist already. You can give configure
1446 # the --cache-file=FILE option to use a different cache file; that is
1447 # what configure does when it calls configure scripts in
1448 # subdirectories, so they share the cache.
1449 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1450 # config.status only pays attention to the cache file if you give it the
1451 # --recheck option to rerun configure.
1452 #
1453 EOF
1454 # The following way of writing the cache mishandles newlines in values,
1455 # but we know of no workaround that is simple, portable, and efficient.
1456 # So, don't put newlines in cache variables' values.
1457 # Ultrix sh set writes to stderr and can't be redirected directly,
1458 # and sets the high bit in the cache file unless we assign to the vars.
1459 (set) 2>&1 |
1460 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1461 *ac_space=\ *)
1462 # `set' does not quote correctly, so add quotes (double-quote substitution
1463 # turns \\\\ into \\, and sed turns \\ into \).
1464 sed -n \
1465 -e "s/'/'\\\\''/g" \
1466 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1467 ;;
1468 *)
1469 # `set' quotes correctly as required by POSIX, so do not add quotes.
1470 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1471 ;;
1472 esac >> confcache
1473 if cmp -s $cache_file confcache; then
1474 :
1475 else
1476 if test -w $cache_file; then
1477 echo "updating cache $cache_file"
1478 cat confcache > $cache_file
1479 else
1480 echo "not updating unwritable cache $cache_file"
1481 fi
1482 fi
1483 rm -f confcache
1484
1485 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1486
1487 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1488 # Let make expand exec_prefix.
1489 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1490
1491 # Any assignment to VPATH causes Sun make to only execute
1492 # the first set of double-colon rules, so remove it if not needed.
1493 # If there is a colon in the path, we need to keep it.
1494 if test "x$srcdir" = x.; then
1495 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1496 fi
1497
1498 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1499
1500 # Transform confdefs.h into DEFS.
1501 # Protect against shell expansion while executing Makefile rules.
1502 # Protect against Makefile macro expansion.
1503 cat > conftest.defs <<\EOF
1504 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1505 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1506 s%\[%\\&%g
1507 s%\]%\\&%g
1508 s%\$%$$%g
1509 EOF
1510 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1511 rm -f conftest.defs
1512
1513
1514 # Without the "./", some shells look in PATH for config.status.
1515 : ${CONFIG_STATUS=./config.status}
1516
1517 echo creating $CONFIG_STATUS
1518 rm -f $CONFIG_STATUS
1519 cat > $CONFIG_STATUS <<EOF
1520 #! /bin/sh
1521 # Generated automatically by configure.
1522 # Run this file to recreate the current configuration.
1523 # This directory was configured as follows,
1524 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1525 #
1526 # $0 $ac_configure_args
1527 #
1528 # Compiler output produced by configure, useful for debugging
1529 # configure, is in ./config.log if it exists.
1530
1531 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1532 for ac_option
1533 do
1534 case "\$ac_option" in
1535 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1536 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1537 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1538 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1539 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1540 exit 0 ;;
1541 -help | --help | --hel | --he | --h)
1542 echo "\$ac_cs_usage"; exit 0 ;;
1543 *) echo "\$ac_cs_usage"; exit 1 ;;
1544 esac
1545 done
1546
1547 ac_given_srcdir=$srcdir
1548 ac_given_INSTALL="$INSTALL"
1549
1550 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1551 EOF
1552 cat >> $CONFIG_STATUS <<EOF
1553
1554 # Protect against being on the right side of a sed subst in config.status.
1555 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1556 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1557 $ac_vpsub
1558 $extrasub
1559 s%@SHELL@%$SHELL%g
1560 s%@CFLAGS@%$CFLAGS%g
1561 s%@CPPFLAGS@%$CPPFLAGS%g
1562 s%@CXXFLAGS@%$CXXFLAGS%g
1563 s%@FFLAGS@%$FFLAGS%g
1564 s%@DEFS@%$DEFS%g
1565 s%@LDFLAGS@%$LDFLAGS%g
1566 s%@LIBS@%$LIBS%g
1567 s%@exec_prefix@%$exec_prefix%g
1568 s%@prefix@%$prefix%g
1569 s%@program_transform_name@%$program_transform_name%g
1570 s%@bindir@%$bindir%g
1571 s%@sbindir@%$sbindir%g
1572 s%@libexecdir@%$libexecdir%g
1573 s%@datadir@%$datadir%g
1574 s%@sysconfdir@%$sysconfdir%g
1575 s%@sharedstatedir@%$sharedstatedir%g
1576 s%@localstatedir@%$localstatedir%g
1577 s%@libdir@%$libdir%g
1578 s%@includedir@%$includedir%g
1579 s%@oldincludedir@%$oldincludedir%g
1580 s%@infodir@%$infodir%g
1581 s%@mandir@%$mandir%g
1582 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1583 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1584 s%@INSTALL_DATA@%$INSTALL_DATA%g
1585 s%@PACKAGE@%$PACKAGE%g
1586 s%@VERSION@%$VERSION%g
1587 s%@ACLOCAL@%$ACLOCAL%g
1588 s%@AUTOCONF@%$AUTOCONF%g
1589 s%@AUTOMAKE@%$AUTOMAKE%g
1590 s%@AUTOHEADER@%$AUTOHEADER%g
1591 s%@MAKEINFO@%$MAKEINFO%g
1592 s%@SET_MAKE@%$SET_MAKE%g
1593 s%@CC@%$CC%g
1594 s%@LIB_SOCKET@%$LIB_SOCKET%g
1595 s%@LIBOBJS@%$LIBOBJS%g
1596
1597 CEOF
1598 EOF
1599
1600 cat >> $CONFIG_STATUS <<\EOF
1601
1602 # Split the substitutions into bite-sized pieces for seds with
1603 # small command number limits, like on Digital OSF/1 and HP-UX.
1604 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1605 ac_file=1 # Number of current file.
1606 ac_beg=1 # First line for current file.
1607 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1608 ac_more_lines=:
1609 ac_sed_cmds=""
1610 while $ac_more_lines; do
1611 if test $ac_beg -gt 1; then
1612 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1613 else
1614 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1615 fi
1616 if test ! -s conftest.s$ac_file; then
1617 ac_more_lines=false
1618 rm -f conftest.s$ac_file
1619 else
1620 if test -z "$ac_sed_cmds"; then
1621 ac_sed_cmds="sed -f conftest.s$ac_file"
1622 else
1623 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1624 fi
1625 ac_file=`expr $ac_file + 1`
1626 ac_beg=$ac_end
1627 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1628 fi
1629 done
1630 if test -z "$ac_sed_cmds"; then
1631 ac_sed_cmds=cat
1632 fi
1633 EOF
1634
1635 cat >> $CONFIG_STATUS <<EOF
1636
1637 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1638 EOF
1639 cat >> $CONFIG_STATUS <<\EOF
1640 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1641 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1642 case "$ac_file" in
1643 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1644 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1645 *) ac_file_in="${ac_file}.in" ;;
1646 esac
1647
1648 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1649
1650 # Remove last slash and all that follows it. Not all systems have dirname.
1651 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1652 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1653 # The file is in a subdirectory.
1654 test ! -d "$ac_dir" && mkdir "$ac_dir"
1655 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1656 # A "../" for each directory in $ac_dir_suffix.
1657 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1658 else
1659 ac_dir_suffix= ac_dots=
1660 fi
1661
1662 case "$ac_given_srcdir" in
1663 .) srcdir=.
1664 if test -z "$ac_dots"; then top_srcdir=.
1665 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1666 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1667 *) # Relative path.
1668 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1669 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1670 esac
1671
1672 case "$ac_given_INSTALL" in
1673 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1674 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1675 esac
1676
1677 echo creating "$ac_file"
1678 rm -f "$ac_file"
1679 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1680 case "$ac_file" in
1681 *Makefile*) ac_comsub="1i\\
1682 # $configure_input" ;;
1683 *) ac_comsub= ;;
1684 esac
1685
1686 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1687 sed -e "$ac_comsub
1688 s%@configure_input@%$configure_input%g
1689 s%@srcdir@%$srcdir%g
1690 s%@top_srcdir@%$top_srcdir%g
1691 s%@INSTALL@%$INSTALL%g
1692 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1693 fi; done
1694 rm -f conftest.s*
1695
1696 EOF
1697 cat >> $CONFIG_STATUS <<EOF
1698
1699 EOF
1700 cat >> $CONFIG_STATUS <<\EOF
1701
1702 exit 0
1703 EOF
1704 chmod +x $CONFIG_STATUS
1705 rm -fr confdefs* $ac_clean_files
1706 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1707