[855] | 1 | #! /bin/sh
|
---|
| 2 |
|
---|
| 3 | # Guess values for system-dependent variables and create Makefiles.
|
---|
| 4 | # Generated automatically using autoconf version 2.13
|
---|
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
---|
| 6 | #
|
---|
| 7 | # This configure script is free software; the Free Software Foundation
|
---|
| 8 | # gives unlimited permission to copy, distribute and modify it.
|
---|
| 9 |
|
---|
| 10 | # Defaults:
|
---|
| 11 | ac_help=
|
---|
| 12 | ac_default_prefix=/usr/local
|
---|
| 13 | # Any additions from configure.in:
|
---|
| 14 | ac_help="$ac_help
|
---|
| 15 | --with-dmalloc use dmalloc, as in
|
---|
| 16 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz"
|
---|
| 17 | ac_help="$ac_help
|
---|
| 18 | --with-regex use older regex in lieu of GNU rx for matching"
|
---|
| 19 | ac_help="$ac_help
|
---|
| 20 | --with-gnu-readline compile with GNU readline support"
|
---|
| 21 | ac_help="$ac_help
|
---|
| 22 | --enable-override-longlong
|
---|
| 23 | overide use of long long with GCC"
|
---|
| 24 |
|
---|
| 25 | # Initialize some variables set by options.
|
---|
| 26 | # The variables have the same names as the options, with
|
---|
| 27 | # dashes changed to underlines.
|
---|
| 28 | build=NONE
|
---|
| 29 | cache_file=./config.cache
|
---|
| 30 | exec_prefix=NONE
|
---|
| 31 | host=NONE
|
---|
| 32 | no_create=
|
---|
| 33 | nonopt=NONE
|
---|
| 34 | no_recursion=
|
---|
| 35 | prefix=NONE
|
---|
| 36 | program_prefix=NONE
|
---|
| 37 | program_suffix=NONE
|
---|
| 38 | program_transform_name=s,x,x,
|
---|
| 39 | silent=
|
---|
| 40 | site=
|
---|
| 41 | srcdir=
|
---|
| 42 | target=NONE
|
---|
| 43 | verbose=
|
---|
| 44 | x_includes=NONE
|
---|
| 45 | x_libraries=NONE
|
---|
| 46 | bindir='${exec_prefix}/bin'
|
---|
| 47 | sbindir='${exec_prefix}/sbin'
|
---|
| 48 | libexecdir='${exec_prefix}/libexec'
|
---|
| 49 | datadir='${prefix}/share'
|
---|
| 50 | sysconfdir='${prefix}/etc'
|
---|
| 51 | sharedstatedir='${prefix}/com'
|
---|
| 52 | localstatedir='${prefix}/var'
|
---|
| 53 | libdir='${exec_prefix}/lib'
|
---|
| 54 | includedir='${prefix}/include'
|
---|
| 55 | oldincludedir='/usr/include'
|
---|
| 56 | infodir='${prefix}/info'
|
---|
| 57 | mandir='${prefix}/man'
|
---|
| 58 |
|
---|
| 59 | # Initialize some other variables.
|
---|
| 60 | subdirs=
|
---|
| 61 | MFLAGS= MAKEFLAGS=
|
---|
| 62 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
| 63 | # Maximum number of lines to put in a shell here document.
|
---|
| 64 | ac_max_here_lines=12
|
---|
| 65 |
|
---|
| 66 | ac_prev=
|
---|
| 67 | for ac_option
|
---|
| 68 | do
|
---|
| 69 |
|
---|
| 70 | # If the previous option needs an argument, assign it.
|
---|
| 71 | if test -n "$ac_prev"; then
|
---|
| 72 | eval "$ac_prev=\$ac_option"
|
---|
| 73 | ac_prev=
|
---|
| 74 | continue
|
---|
| 75 | fi
|
---|
| 76 |
|
---|
| 77 | case "$ac_option" in
|
---|
| 78 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
---|
| 79 | *) ac_optarg= ;;
|
---|
| 80 | esac
|
---|
| 81 |
|
---|
| 82 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 83 |
|
---|
| 84 | case "$ac_option" in
|
---|
| 85 |
|
---|
| 86 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 87 | ac_prev=bindir ;;
|
---|
| 88 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
| 89 | bindir="$ac_optarg" ;;
|
---|
| 90 |
|
---|
| 91 | -build | --build | --buil | --bui | --bu)
|
---|
| 92 | ac_prev=build ;;
|
---|
| 93 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
| 94 | build="$ac_optarg" ;;
|
---|
| 95 |
|
---|
| 96 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 97 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 98 | ac_prev=cache_file ;;
|
---|
| 99 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 100 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
| 101 | cache_file="$ac_optarg" ;;
|
---|
| 102 |
|
---|
| 103 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
| 104 | ac_prev=datadir ;;
|
---|
| 105 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
| 106 | | --da=*)
|
---|
| 107 | datadir="$ac_optarg" ;;
|
---|
| 108 |
|
---|
| 109 | -disable-* | --disable-*)
|
---|
| 110 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
---|
| 111 | # Reject names that are not valid shell variable names.
|
---|
| 112 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
| 113 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
| 114 | fi
|
---|
| 115 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
| 116 | eval "enable_${ac_feature}=no" ;;
|
---|
| 117 |
|
---|
| 118 | -enable-* | --enable-*)
|
---|
| 119 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
---|
| 120 | # Reject names that are not valid shell variable names.
|
---|
| 121 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
| 122 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
| 123 | fi
|
---|
| 124 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
| 125 | case "$ac_option" in
|
---|
| 126 | *=*) ;;
|
---|
| 127 | *) ac_optarg=yes ;;
|
---|
| 128 | esac
|
---|
| 129 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
---|
| 130 |
|
---|
| 131 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
| 132 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
| 133 | | --exec | --exe | --ex)
|
---|
| 134 | ac_prev=exec_prefix ;;
|
---|
| 135 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
| 136 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
| 137 | | --exec=* | --exe=* | --ex=*)
|
---|
| 138 | exec_prefix="$ac_optarg" ;;
|
---|
| 139 |
|
---|
| 140 | -gas | --gas | --ga | --g)
|
---|
| 141 | # Obsolete; use --with-gas.
|
---|
| 142 | with_gas=yes ;;
|
---|
| 143 |
|
---|
| 144 | -help | --help | --hel | --he)
|
---|
| 145 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
| 146 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
| 147 | cat << EOF
|
---|
| 148 | Usage: configure [options] [host]
|
---|
| 149 | Options: [defaults in brackets after descriptions]
|
---|
| 150 | Configuration:
|
---|
| 151 | --cache-file=FILE cache test results in FILE
|
---|
| 152 | --help print this message
|
---|
| 153 | --no-create do not create output files
|
---|
| 154 | --quiet, --silent do not print \`checking...' messages
|
---|
| 155 | --version print the version of autoconf that created configure
|
---|
| 156 | Directory and file names:
|
---|
| 157 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
| 158 | [$ac_default_prefix]
|
---|
| 159 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
| 160 | [same as prefix]
|
---|
| 161 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
---|
| 162 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
---|
| 163 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
---|
| 164 | --datadir=DIR read-only architecture-independent data in DIR
|
---|
| 165 | [PREFIX/share]
|
---|
| 166 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
---|
| 167 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
---|
| 168 | [PREFIX/com]
|
---|
| 169 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
---|
| 170 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
---|
| 171 | --includedir=DIR C header files in DIR [PREFIX/include]
|
---|
| 172 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
---|
| 173 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
---|
| 174 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
---|
| 175 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
---|
| 176 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
| 177 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
| 178 | --program-transform-name=PROGRAM
|
---|
| 179 | run sed PROGRAM on installed program names
|
---|
| 180 | EOF
|
---|
| 181 | cat << EOF
|
---|
| 182 | Host type:
|
---|
| 183 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
---|
| 184 | --host=HOST configure for HOST [guessed]
|
---|
| 185 | --target=TARGET configure for TARGET [TARGET=HOST]
|
---|
| 186 | Features and packages:
|
---|
| 187 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
| 188 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
| 189 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 190 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
| 191 | --x-includes=DIR X include files are in DIR
|
---|
| 192 | --x-libraries=DIR X library files are in DIR
|
---|
| 193 | EOF
|
---|
| 194 | if test -n "$ac_help"; then
|
---|
| 195 | echo "--enable and --with options recognized:$ac_help"
|
---|
| 196 | fi
|
---|
| 197 | exit 0 ;;
|
---|
| 198 |
|
---|
| 199 | -host | --host | --hos | --ho)
|
---|
| 200 | ac_prev=host ;;
|
---|
| 201 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
| 202 | host="$ac_optarg" ;;
|
---|
| 203 |
|
---|
| 204 | -includedir | --includedir | --includedi | --included | --include \
|
---|
| 205 | | --includ | --inclu | --incl | --inc)
|
---|
| 206 | ac_prev=includedir ;;
|
---|
| 207 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
| 208 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
| 209 | includedir="$ac_optarg" ;;
|
---|
| 210 |
|
---|
| 211 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 212 | ac_prev=infodir ;;
|
---|
| 213 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
| 214 | infodir="$ac_optarg" ;;
|
---|
| 215 |
|
---|
| 216 | -libdir | --libdir | --libdi | --libd)
|
---|
| 217 | ac_prev=libdir ;;
|
---|
| 218 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
| 219 | libdir="$ac_optarg" ;;
|
---|
| 220 |
|
---|
| 221 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
| 222 | | --libexe | --libex | --libe)
|
---|
| 223 | ac_prev=libexecdir ;;
|
---|
| 224 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
| 225 | | --libexe=* | --libex=* | --libe=*)
|
---|
| 226 | libexecdir="$ac_optarg" ;;
|
---|
| 227 |
|
---|
| 228 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
| 229 | | --localstate | --localstat | --localsta | --localst \
|
---|
| 230 | | --locals | --local | --loca | --loc | --lo)
|
---|
| 231 | ac_prev=localstatedir ;;
|
---|
| 232 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
| 233 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
| 234 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
| 235 | localstatedir="$ac_optarg" ;;
|
---|
| 236 |
|
---|
| 237 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 238 | ac_prev=mandir ;;
|
---|
| 239 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
| 240 | mandir="$ac_optarg" ;;
|
---|
| 241 |
|
---|
| 242 | -nfp | --nfp | --nf)
|
---|
| 243 | # Obsolete; use --without-fp.
|
---|
| 244 | with_fp=no ;;
|
---|
| 245 |
|
---|
| 246 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
| 247 | | --no-cr | --no-c)
|
---|
| 248 | no_create=yes ;;
|
---|
| 249 |
|
---|
| 250 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 251 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
| 252 | no_recursion=yes ;;
|
---|
| 253 |
|
---|
| 254 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
| 255 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
| 256 | | --oldin | --oldi | --old | --ol | --o)
|
---|
| 257 | ac_prev=oldincludedir ;;
|
---|
| 258 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
| 259 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
| 260 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
| 261 | oldincludedir="$ac_optarg" ;;
|
---|
| 262 |
|
---|
| 263 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 264 | ac_prev=prefix ;;
|
---|
| 265 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 266 | prefix="$ac_optarg" ;;
|
---|
| 267 |
|
---|
| 268 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
| 269 | | --program-pre | --program-pr | --program-p)
|
---|
| 270 | ac_prev=program_prefix ;;
|
---|
| 271 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
| 272 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
| 273 | program_prefix="$ac_optarg" ;;
|
---|
| 274 |
|
---|
| 275 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
| 276 | | --program-suf | --program-su | --program-s)
|
---|
| 277 | ac_prev=program_suffix ;;
|
---|
| 278 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
| 279 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
| 280 | program_suffix="$ac_optarg" ;;
|
---|
| 281 |
|
---|
| 282 | -program-transform-name | --program-transform-name \
|
---|
| 283 | | --program-transform-nam | --program-transform-na \
|
---|
| 284 | | --program-transform-n | --program-transform- \
|
---|
| 285 | | --program-transform | --program-transfor \
|
---|
| 286 | | --program-transfo | --program-transf \
|
---|
| 287 | | --program-trans | --program-tran \
|
---|
| 288 | | --progr-tra | --program-tr | --program-t)
|
---|
| 289 | ac_prev=program_transform_name ;;
|
---|
| 290 | -program-transform-name=* | --program-transform-name=* \
|
---|
| 291 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
| 292 | | --program-transform-n=* | --program-transform-=* \
|
---|
| 293 | | --program-transform=* | --program-transfor=* \
|
---|
| 294 | | --program-transfo=* | --program-transf=* \
|
---|
| 295 | | --program-trans=* | --program-tran=* \
|
---|
| 296 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
| 297 | program_transform_name="$ac_optarg" ;;
|
---|
| 298 |
|
---|
| 299 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 300 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 301 | silent=yes ;;
|
---|
| 302 |
|
---|
| 303 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
| 304 | ac_prev=sbindir ;;
|
---|
| 305 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
| 306 | | --sbi=* | --sb=*)
|
---|
| 307 | sbindir="$ac_optarg" ;;
|
---|
| 308 |
|
---|
| 309 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
| 310 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
| 311 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
| 312 | | --sha | --sh)
|
---|
| 313 | ac_prev=sharedstatedir ;;
|
---|
| 314 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
| 315 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
| 316 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
| 317 | | --sha=* | --sh=*)
|
---|
| 318 | sharedstatedir="$ac_optarg" ;;
|
---|
| 319 |
|
---|
| 320 | -site | --site | --sit)
|
---|
| 321 | ac_prev=site ;;
|
---|
| 322 | -site=* | --site=* | --sit=*)
|
---|
| 323 | site="$ac_optarg" ;;
|
---|
| 324 |
|
---|
| 325 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 326 | ac_prev=srcdir ;;
|
---|
| 327 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 328 | srcdir="$ac_optarg" ;;
|
---|
| 329 |
|
---|
| 330 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
| 331 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
| 332 | ac_prev=sysconfdir ;;
|
---|
| 333 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
| 334 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
| 335 | sysconfdir="$ac_optarg" ;;
|
---|
| 336 |
|
---|
| 337 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
| 338 | ac_prev=target ;;
|
---|
| 339 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
| 340 | target="$ac_optarg" ;;
|
---|
| 341 |
|
---|
| 342 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 343 | verbose=yes ;;
|
---|
| 344 |
|
---|
| 345 | -version | --version | --versio | --versi | --vers)
|
---|
| 346 | echo "configure generated by autoconf version 2.13"
|
---|
| 347 | exit 0 ;;
|
---|
| 348 |
|
---|
| 349 | -with-* | --with-*)
|
---|
| 350 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
---|
| 351 | # Reject names that are not valid shell variable names.
|
---|
| 352 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
| 353 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
| 354 | fi
|
---|
| 355 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
| 356 | case "$ac_option" in
|
---|
| 357 | *=*) ;;
|
---|
| 358 | *) ac_optarg=yes ;;
|
---|
| 359 | esac
|
---|
| 360 | eval "with_${ac_package}='$ac_optarg'" ;;
|
---|
| 361 |
|
---|
| 362 | -without-* | --without-*)
|
---|
| 363 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
---|
| 364 | # Reject names that are not valid shell variable names.
|
---|
| 365 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
| 366 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
| 367 | fi
|
---|
| 368 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
| 369 | eval "with_${ac_package}=no" ;;
|
---|
| 370 |
|
---|
| 371 | --x)
|
---|
| 372 | # Obsolete; use --with-x.
|
---|
| 373 | with_x=yes ;;
|
---|
| 374 |
|
---|
| 375 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
| 376 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
| 377 | ac_prev=x_includes ;;
|
---|
| 378 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
| 379 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
| 380 | x_includes="$ac_optarg" ;;
|
---|
| 381 |
|
---|
| 382 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
| 383 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
| 384 | ac_prev=x_libraries ;;
|
---|
| 385 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
| 386 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
| 387 | x_libraries="$ac_optarg" ;;
|
---|
| 388 |
|
---|
| 389 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
---|
| 390 | ;;
|
---|
| 391 |
|
---|
| 392 | *)
|
---|
| 393 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
---|
| 394 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
---|
| 395 | fi
|
---|
| 396 | if test "x$nonopt" != xNONE; then
|
---|
| 397 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
---|
| 398 | fi
|
---|
| 399 | nonopt="$ac_option"
|
---|
| 400 | ;;
|
---|
| 401 |
|
---|
| 402 | esac
|
---|
| 403 | done
|
---|
| 404 |
|
---|
| 405 | if test -n "$ac_prev"; then
|
---|
| 406 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
---|
| 407 | fi
|
---|
| 408 |
|
---|
| 409 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
| 410 |
|
---|
| 411 | # File descriptor usage:
|
---|
| 412 | # 0 standard input
|
---|
| 413 | # 1 file creation
|
---|
| 414 | # 2 errors and warnings
|
---|
| 415 | # 3 some systems may open it to /dev/tty
|
---|
| 416 | # 4 used on the Kubota Titan
|
---|
| 417 | # 6 checking for... messages and results
|
---|
| 418 | # 5 compiler messages saved in config.log
|
---|
| 419 | if test "$silent" = yes; then
|
---|
| 420 | exec 6>/dev/null
|
---|
| 421 | else
|
---|
| 422 | exec 6>&1
|
---|
| 423 | fi
|
---|
| 424 | exec 5>./config.log
|
---|
| 425 |
|
---|
| 426 | echo "\
|
---|
| 427 | This file contains any messages produced by compilers while
|
---|
| 428 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 429 | " 1>&5
|
---|
| 430 |
|
---|
| 431 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
| 432 | # Also quote any args containing shell metacharacters.
|
---|
| 433 | ac_configure_args=
|
---|
| 434 | for ac_arg
|
---|
| 435 | do
|
---|
| 436 | case "$ac_arg" in
|
---|
| 437 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
| 438 | | --no-cr | --no-c) ;;
|
---|
| 439 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 440 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
---|
| 441 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
---|
| 442 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
| 443 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
---|
| 444 | esac
|
---|
| 445 | done
|
---|
| 446 |
|
---|
| 447 | # NLS nuisances.
|
---|
| 448 | # Only set these to C if already set. These must not be set unconditionally
|
---|
| 449 | # because not all systems understand e.g. LANG=C (notably SCO).
|
---|
| 450 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
---|
| 451 | # Non-C LC_CTYPE values break the ctype check.
|
---|
| 452 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
---|
| 453 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
---|
| 454 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
---|
| 455 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
---|
| 456 |
|
---|
| 457 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
| 458 | rm -rf conftest* confdefs.h
|
---|
| 459 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
| 460 | echo > confdefs.h
|
---|
| 461 |
|
---|
| 462 | # A filename unique to this package, relative to the directory that
|
---|
| 463 | # configure is in, which we can look for to find out if srcdir is correct.
|
---|
[857] | 464 | ac_unique_file=text/MGQuery.cpp
|
---|
[855] | 465 |
|
---|
| 466 | # Find the source files, if location was not specified.
|
---|
| 467 | if test -z "$srcdir"; then
|
---|
| 468 | ac_srcdir_defaulted=yes
|
---|
| 469 | # Try the directory containing this script, then its parent.
|
---|
| 470 | ac_prog=$0
|
---|
| 471 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
---|
| 472 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
---|
| 473 | srcdir=$ac_confdir
|
---|
| 474 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
| 475 | srcdir=..
|
---|
| 476 | fi
|
---|
| 477 | else
|
---|
| 478 | ac_srcdir_defaulted=no
|
---|
| 479 | fi
|
---|
| 480 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
| 481 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
| 482 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
---|
| 483 | else
|
---|
| 484 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
---|
| 485 | fi
|
---|
| 486 | fi
|
---|
| 487 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
---|
| 488 |
|
---|
| 489 | # Prefer explicitly selected file to automatically selected ones.
|
---|
| 490 | if test -z "$CONFIG_SITE"; then
|
---|
| 491 | if test "x$prefix" != xNONE; then
|
---|
| 492 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
| 493 | else
|
---|
| 494 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
| 495 | fi
|
---|
| 496 | fi
|
---|
| 497 | for ac_site_file in $CONFIG_SITE; do
|
---|
| 498 | if test -r "$ac_site_file"; then
|
---|
| 499 | echo "loading site script $ac_site_file"
|
---|
| 500 | . "$ac_site_file"
|
---|
| 501 | fi
|
---|
| 502 | done
|
---|
| 503 |
|
---|
| 504 | if test -r "$cache_file"; then
|
---|
| 505 | echo "loading cache $cache_file"
|
---|
| 506 | . $cache_file
|
---|
| 507 | else
|
---|
| 508 | echo "creating cache $cache_file"
|
---|
| 509 | > $cache_file
|
---|
| 510 | fi
|
---|
| 511 |
|
---|
| 512 | ac_ext=c
|
---|
| 513 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
| 514 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 515 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
| 516 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
| 517 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
| 518 |
|
---|
| 519 | ac_exeext=
|
---|
| 520 | ac_objext=o
|
---|
| 521 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
---|
| 522 | # Stardent Vistra SVR4 grep lacks -e, says [email protected].
|
---|
| 523 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
---|
| 524 | ac_n= ac_c='
|
---|
| 525 | ' ac_t=' '
|
---|
| 526 | else
|
---|
| 527 | ac_n=-n ac_c= ac_t=
|
---|
| 528 | fi
|
---|
| 529 | else
|
---|
| 530 | ac_n= ac_c='\c' ac_t=
|
---|
| 531 | fi
|
---|
| 532 |
|
---|
| 533 |
|
---|
| 534 |
|
---|
| 535 | if test "$program_transform_name" = s,x,x,; then
|
---|
| 536 | program_transform_name=
|
---|
| 537 | else
|
---|
| 538 | # Double any \ or $. echo might interpret backslashes.
|
---|
| 539 | cat <<\EOF_SED > conftestsed
|
---|
| 540 | s,\\,\\\\,g; s,\$,$$,g
|
---|
| 541 | EOF_SED
|
---|
| 542 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
---|
| 543 | rm -f conftestsed
|
---|
| 544 | fi
|
---|
| 545 | test "$program_prefix" != NONE &&
|
---|
| 546 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
---|
| 547 | # Use a double $ so make ignores it.
|
---|
| 548 | test "$program_suffix" != NONE &&
|
---|
| 549 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
---|
| 550 |
|
---|
| 551 | # sed with no file args requires a program.
|
---|
| 552 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
---|
| 553 |
|
---|
| 554 |
|
---|
| 555 | PACKAGE=mgpp
|
---|
| 556 | VERSION=1.3
|
---|
| 557 |
|
---|
| 558 | cat >> confdefs.h <<EOF
|
---|
| 559 | #define PACKAGE "$PACKAGE"
|
---|
| 560 | EOF
|
---|
| 561 |
|
---|
| 562 | cat >> confdefs.h <<EOF
|
---|
| 563 | #define VERSION "$VERSION"
|
---|
| 564 | EOF
|
---|
| 565 |
|
---|
| 566 |
|
---|
| 567 |
|
---|
| 568 |
|
---|
| 569 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
|
---|
| 570 | do
|
---|
| 571 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 572 | set dummy $ac_prog; ac_word=$2
|
---|
| 573 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
| 574 | echo "configure:575: checking for $ac_word" >&5
|
---|
| 575 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
|
---|
| 576 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 577 | else
|
---|
| 578 | if test -n "$CXX"; then
|
---|
| 579 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 580 | else
|
---|
| 581 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 582 | ac_dummy="$PATH"
|
---|
| 583 | for ac_dir in $ac_dummy; do
|
---|
| 584 | test -z "$ac_dir" && ac_dir=.
|
---|
| 585 | if test -f $ac_dir/$ac_word; then
|
---|
| 586 | ac_cv_prog_CXX="$ac_prog"
|
---|
| 587 | break
|
---|
| 588 | fi
|
---|
| 589 | done
|
---|
| 590 | IFS="$ac_save_ifs"
|
---|
| 591 | fi
|
---|
| 592 | fi
|
---|
| 593 | CXX="$ac_cv_prog_CXX"
|
---|
| 594 | if test -n "$CXX"; then
|
---|
| 595 | echo "$ac_t""$CXX" 1>&6
|
---|
| 596 | else
|
---|
| 597 | echo "$ac_t""no" 1>&6
|
---|
| 598 | fi
|
---|
| 599 |
|
---|
| 600 | test -n "$CXX" && break
|
---|
| 601 | done
|
---|
| 602 | test -n "$CXX" || CXX="gcc"
|
---|
| 603 |
|
---|
| 604 |
|
---|
| 605 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
| 606 | echo "configure:607: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
|
---|
| 607 |
|
---|
| 608 | ac_ext=C
|
---|
| 609 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
| 610 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 611 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
| 612 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
| 613 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
| 614 |
|
---|
| 615 | cat > conftest.$ac_ext << EOF
|
---|
| 616 |
|
---|
| 617 | #line 618 "configure"
|
---|
| 618 | #include "confdefs.h"
|
---|
| 619 |
|
---|
| 620 | int main(){return(0);}
|
---|
| 621 | EOF
|
---|
| 622 | if { (eval echo configure:623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
| 623 | ac_cv_prog_cxx_works=yes
|
---|
| 624 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
| 625 | if (./conftest; exit) 2>/dev/null; then
|
---|
| 626 | ac_cv_prog_cxx_cross=no
|
---|
| 627 | else
|
---|
| 628 | ac_cv_prog_cxx_cross=yes
|
---|
| 629 | fi
|
---|
| 630 | else
|
---|
| 631 | echo "configure: failed program was:" >&5
|
---|
| 632 | cat conftest.$ac_ext >&5
|
---|
| 633 | ac_cv_prog_cxx_works=no
|
---|
| 634 | fi
|
---|
| 635 | rm -fr conftest*
|
---|
| 636 | ac_ext=c
|
---|
| 637 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
| 638 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 639 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
| 640 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
| 641 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
| 642 |
|
---|
| 643 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
|
---|
| 644 | if test $ac_cv_prog_cxx_works = no; then
|
---|
| 645 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
|
---|
| 646 | fi
|
---|
| 647 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
| 648 | echo "configure:649: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
| 649 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
|
---|
| 650 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
| 651 |
|
---|
| 652 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
|
---|
| 653 | echo "configure:654: checking whether we are using GNU C++" >&5
|
---|
| 654 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
|
---|
| 655 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 656 | else
|
---|
| 657 | cat > conftest.C <<EOF
|
---|
| 658 | #ifdef __GNUC__
|
---|
| 659 | yes;
|
---|
| 660 | #endif
|
---|
| 661 | EOF
|
---|
| 662 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
| 663 | ac_cv_prog_gxx=yes
|
---|
| 664 | else
|
---|
| 665 | ac_cv_prog_gxx=no
|
---|
| 666 | fi
|
---|
| 667 | fi
|
---|
| 668 |
|
---|
| 669 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6
|
---|
| 670 |
|
---|
| 671 | if test $ac_cv_prog_gxx = yes; then
|
---|
| 672 | GXX=yes
|
---|
| 673 | else
|
---|
| 674 | GXX=
|
---|
| 675 | fi
|
---|
| 676 |
|
---|
| 677 | ac_test_CXXFLAGS="${CXXFLAGS+set}"
|
---|
| 678 | ac_save_CXXFLAGS="$CXXFLAGS"
|
---|
| 679 | CXXFLAGS=
|
---|
| 680 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
|
---|
| 681 | echo "configure:682: checking whether ${CXX-g++} accepts -g" >&5
|
---|
| 682 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
|
---|
| 683 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 684 | else
|
---|
| 685 | echo 'void f(){}' > conftest.cc
|
---|
| 686 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
|
---|
| 687 | ac_cv_prog_cxx_g=yes
|
---|
| 688 | else
|
---|
| 689 | ac_cv_prog_cxx_g=no
|
---|
| 690 | fi
|
---|
| 691 | rm -f conftest*
|
---|
| 692 |
|
---|
| 693 | fi
|
---|
| 694 |
|
---|
| 695 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
|
---|
| 696 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
| 697 | CXXFLAGS="$ac_save_CXXFLAGS"
|
---|
| 698 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 699 | if test "$GXX" = yes; then
|
---|
| 700 | CXXFLAGS="-g -O2"
|
---|
| 701 | else
|
---|
| 702 | CXXFLAGS="-g"
|
---|
| 703 | fi
|
---|
| 704 | else
|
---|
| 705 | if test "$GXX" = yes; then
|
---|
| 706 | CXXFLAGS="-O2"
|
---|
| 707 | else
|
---|
| 708 | CXXFLAGS=
|
---|
| 709 | fi
|
---|
| 710 | fi
|
---|
| 711 |
|
---|
| 712 | for ac_prog in mawk gawk nawk awk
|
---|
| 713 | do
|
---|
| 714 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 715 | set dummy $ac_prog; ac_word=$2
|
---|
| 716 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
| 717 | echo "configure:718: checking for $ac_word" >&5
|
---|
| 718 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
|
---|
| 719 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 720 | else
|
---|
| 721 | if test -n "$AWK"; then
|
---|
| 722 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 723 | else
|
---|
| 724 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 725 | ac_dummy="$PATH"
|
---|
| 726 | for ac_dir in $ac_dummy; do
|
---|
| 727 | test -z "$ac_dir" && ac_dir=.
|
---|
| 728 | if test -f $ac_dir/$ac_word; then
|
---|
| 729 | ac_cv_prog_AWK="$ac_prog"
|
---|
| 730 | break
|
---|
| 731 | fi
|
---|
| 732 | done
|
---|
| 733 | IFS="$ac_save_ifs"
|
---|
| 734 | fi
|
---|
| 735 | fi
|
---|
| 736 | AWK="$ac_cv_prog_AWK"
|
---|
| 737 | if test -n "$AWK"; then
|
---|
| 738 | echo "$ac_t""$AWK" 1>&6
|
---|
| 739 | else
|
---|
| 740 | echo "$ac_t""no" 1>&6
|
---|
| 741 | fi
|
---|
| 742 |
|
---|
| 743 | test -n "$AWK" && break
|
---|
| 744 | done
|
---|
| 745 |
|
---|
| 746 | for ac_prog in 'bison -y' byacc
|
---|
| 747 | do
|
---|
| 748 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 749 | set dummy $ac_prog; ac_word=$2
|
---|
| 750 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
| 751 | echo "configure:752: checking for $ac_word" >&5
|
---|
| 752 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
|
---|
| 753 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 754 | else
|
---|
| 755 | if test -n "$YACC"; then
|
---|
| 756 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 757 | else
|
---|
| 758 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 759 | ac_dummy="$PATH"
|
---|
| 760 | for ac_dir in $ac_dummy; do
|
---|
| 761 | test -z "$ac_dir" && ac_dir=.
|
---|
| 762 | if test -f $ac_dir/$ac_word; then
|
---|
| 763 | ac_cv_prog_YACC="$ac_prog"
|
---|
| 764 | break
|
---|
| 765 | fi
|
---|
| 766 | done
|
---|
| 767 | IFS="$ac_save_ifs"
|
---|
| 768 | fi
|
---|
| 769 | fi
|
---|
| 770 | YACC="$ac_cv_prog_YACC"
|
---|
| 771 | if test -n "$YACC"; then
|
---|
| 772 | echo "$ac_t""$YACC" 1>&6
|
---|
| 773 | else
|
---|
| 774 | echo "$ac_t""no" 1>&6
|
---|
| 775 | fi
|
---|
| 776 |
|
---|
| 777 | test -n "$YACC" && break
|
---|
| 778 | done
|
---|
| 779 | test -n "$YACC" || YACC="yacc"
|
---|
| 780 |
|
---|
| 781 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
| 782 | set dummy gcc; 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_CC'+set}'`\" = set"; then
|
---|
| 786 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 787 | else
|
---|
| 788 | if test -n "$CC"; then
|
---|
| 789 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 790 | else
|
---|
| 791 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 792 | ac_dummy="$PATH"
|
---|
| 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_CC="gcc"
|
---|
| 797 | break
|
---|
| 798 | fi
|
---|
| 799 | done
|
---|
| 800 | IFS="$ac_save_ifs"
|
---|
| 801 | fi
|
---|
| 802 | fi
|
---|
| 803 | CC="$ac_cv_prog_CC"
|
---|
| 804 | if test -n "$CC"; then
|
---|
| 805 | echo "$ac_t""$CC" 1>&6
|
---|
| 806 | else
|
---|
| 807 | echo "$ac_t""no" 1>&6
|
---|
| 808 | fi
|
---|
| 809 |
|
---|
| 810 | if test -z "$CC"; then
|
---|
| 811 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 812 | set dummy cc; ac_word=$2
|
---|
| 813 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
| 814 | echo "configure:815: checking for $ac_word" >&5
|
---|
| 815 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
| 816 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 817 | else
|
---|
| 818 | if test -n "$CC"; then
|
---|
| 819 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 820 | else
|
---|
| 821 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 822 | ac_prog_rejected=no
|
---|
| 823 | ac_dummy="$PATH"
|
---|
| 824 | for ac_dir in $ac_dummy; do
|
---|
| 825 | test -z "$ac_dir" && ac_dir=.
|
---|
| 826 | if test -f $ac_dir/$ac_word; then
|
---|
| 827 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
---|
| 828 | ac_prog_rejected=yes
|
---|
| 829 | continue
|
---|
| 830 | fi
|
---|
| 831 | ac_cv_prog_CC="cc"
|
---|
| 832 | break
|
---|
| 833 | fi
|
---|
| 834 | done
|
---|
| 835 | IFS="$ac_save_ifs"
|
---|
| 836 | if test $ac_prog_rejected = yes; then
|
---|
| 837 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 838 | set dummy $ac_cv_prog_CC
|
---|
| 839 | shift
|
---|
| 840 | if test $# -gt 0; then
|
---|
| 841 | # We chose a different compiler from the bogus one.
|
---|
| 842 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 843 | # first if we set CC to just the basename; use the full file name.
|
---|
| 844 | shift
|
---|
| 845 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
| 846 | shift
|
---|
| 847 | ac_cv_prog_CC="$@"
|
---|
| 848 | fi
|
---|
| 849 | fi
|
---|
| 850 | fi
|
---|
| 851 | fi
|
---|
| 852 | CC="$ac_cv_prog_CC"
|
---|
| 853 | if test -n "$CC"; then
|
---|
| 854 | echo "$ac_t""$CC" 1>&6
|
---|
| 855 | else
|
---|
| 856 | echo "$ac_t""no" 1>&6
|
---|
| 857 | fi
|
---|
| 858 |
|
---|
| 859 | if test -z "$CC"; then
|
---|
| 860 | case "`uname -s`" in
|
---|
| 861 | *win32* | *WIN32*)
|
---|
| 862 | # Extract the first word of "cl", so it can be a program name with args.
|
---|
| 863 | set dummy cl; ac_word=$2
|
---|
| 864 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
| 865 | echo "configure:866: checking for $ac_word" >&5
|
---|
| 866 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
| 867 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 868 | else
|
---|
| 869 | if test -n "$CC"; then
|
---|
| 870 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 871 | else
|
---|
| 872 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 873 | ac_dummy="$PATH"
|
---|
| 874 | for ac_dir in $ac_dummy; do
|
---|
| 875 | test -z "$ac_dir" && ac_dir=.
|
---|
| 876 | if test -f $ac_dir/$ac_word; then
|
---|
| 877 | ac_cv_prog_CC="cl"
|
---|
| 878 | break
|
---|
| 879 | fi
|
---|
| 880 | done
|
---|
| 881 | IFS="$ac_save_ifs"
|
---|
| 882 | fi
|
---|
| 883 | fi
|
---|
| 884 | CC="$ac_cv_prog_CC"
|
---|
| 885 | if test -n "$CC"; then
|
---|
| 886 | echo "$ac_t""$CC" 1>&6
|
---|
| 887 | else
|
---|
| 888 | echo "$ac_t""no" 1>&6
|
---|
| 889 | fi
|
---|
| 890 | ;;
|
---|
| 891 | esac
|
---|
| 892 | fi
|
---|
| 893 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
| 894 | fi
|
---|
| 895 |
|
---|
| 896 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
| 897 | echo "configure:898: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
---|
| 898 |
|
---|
| 899 | ac_ext=c
|
---|
| 900 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
| 901 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 902 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
| 903 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
| 904 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
| 905 |
|
---|
| 906 | cat > conftest.$ac_ext << EOF
|
---|
| 907 |
|
---|
| 908 | #line 909 "configure"
|
---|
| 909 | #include "confdefs.h"
|
---|
| 910 |
|
---|
| 911 | main(){return(0);}
|
---|
| 912 | EOF
|
---|
| 913 | if { (eval echo configure:914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
| 914 | ac_cv_prog_cc_works=yes
|
---|
| 915 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
| 916 | if (./conftest; exit) 2>/dev/null; then
|
---|
| 917 | ac_cv_prog_cc_cross=no
|
---|
| 918 | else
|
---|
| 919 | ac_cv_prog_cc_cross=yes
|
---|
| 920 | fi
|
---|
| 921 | else
|
---|
| 922 | echo "configure: failed program was:" >&5
|
---|
| 923 | cat conftest.$ac_ext >&5
|
---|
| 924 | ac_cv_prog_cc_works=no
|
---|
| 925 | fi
|
---|
| 926 | rm -fr conftest*
|
---|
| 927 | ac_ext=c
|
---|
| 928 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
| 929 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 930 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
| 931 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
| 932 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
| 933 |
|
---|
| 934 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
---|
| 935 | if test $ac_cv_prog_cc_works = no; then
|
---|
| 936 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
---|
| 937 | fi
|
---|
| 938 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
| 939 | echo "configure:940: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
| 940 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
---|
| 941 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
| 942 |
|
---|
| 943 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
| 944 | echo "configure:945: checking whether we are using GNU C" >&5
|
---|
| 945 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
| 946 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 947 | else
|
---|
| 948 | cat > conftest.c <<EOF
|
---|
| 949 | #ifdef __GNUC__
|
---|
| 950 | yes;
|
---|
| 951 | #endif
|
---|
| 952 | EOF
|
---|
| 953 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
| 954 | ac_cv_prog_gcc=yes
|
---|
| 955 | else
|
---|
| 956 | ac_cv_prog_gcc=no
|
---|
| 957 | fi
|
---|
| 958 | fi
|
---|
| 959 |
|
---|
| 960 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
| 961 |
|
---|
| 962 | if test $ac_cv_prog_gcc = yes; then
|
---|
| 963 | GCC=yes
|
---|
| 964 | else
|
---|
| 965 | GCC=
|
---|
| 966 | fi
|
---|
| 967 |
|
---|
| 968 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
| 969 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 970 | CFLAGS=
|
---|
| 971 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
| 972 | echo "configure:973: checking whether ${CC-cc} accepts -g" >&5
|
---|
| 973 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
| 974 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 975 | else
|
---|
| 976 | echo 'void f(){}' > conftest.c
|
---|
| 977 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
| 978 | ac_cv_prog_cc_g=yes
|
---|
| 979 | else
|
---|
| 980 | ac_cv_prog_cc_g=no
|
---|
| 981 | fi
|
---|
| 982 | rm -f conftest*
|
---|
| 983 |
|
---|
| 984 | fi
|
---|
| 985 |
|
---|
| 986 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
| 987 | if test "$ac_test_CFLAGS" = set; then
|
---|
| 988 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 989 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 990 | if test "$GCC" = yes; then
|
---|
| 991 | CFLAGS="-g -O2"
|
---|
| 992 | else
|
---|
| 993 | CFLAGS="-g"
|
---|
| 994 | fi
|
---|
| 995 | else
|
---|
| 996 | if test "$GCC" = yes; then
|
---|
| 997 | CFLAGS="-O2"
|
---|
| 998 | else
|
---|
| 999 | CFLAGS=
|
---|
| 1000 | fi
|
---|
| 1001 | fi
|
---|
| 1002 |
|
---|
| 1003 | ac_aux_dir=
|
---|
| 1004 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
| 1005 | if test -f $ac_dir/install-sh; then
|
---|
| 1006 | ac_aux_dir=$ac_dir
|
---|
| 1007 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 1008 | break
|
---|
| 1009 | elif test -f $ac_dir/install.sh; then
|
---|
| 1010 | ac_aux_dir=$ac_dir
|
---|
| 1011 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 1012 | break
|
---|
| 1013 | fi
|
---|
| 1014 | done
|
---|
| 1015 | if test -z "$ac_aux_dir"; then
|
---|
| 1016 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
---|
| 1017 | fi
|
---|
| 1018 | ac_config_guess=$ac_aux_dir/config.guess
|
---|
| 1019 | ac_config_sub=$ac_aux_dir/config.sub
|
---|
| 1020 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
---|
| 1021 |
|
---|
| 1022 | # Find a good install program. We prefer a C program (faster),
|
---|
| 1023 | # so one script is as good as another. But avoid the broken or
|
---|
| 1024 | # incompatible versions:
|
---|
| 1025 | # SysV /etc/install, /usr/sbin/install
|
---|
| 1026 | # SunOS /usr/etc/install
|
---|
| 1027 | # IRIX /sbin/install
|
---|
| 1028 | # AIX /bin/install
|
---|
| 1029 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 1030 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 1031 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
| 1032 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
| 1033 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
| 1034 | echo "configure:1035: checking for a BSD compatible install" >&5
|
---|
| 1035 | if test -z "$INSTALL"; then
|
---|
| 1036 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
| 1037 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1038 | else
|
---|
| 1039 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
---|
| 1040 | for ac_dir in $PATH; do
|
---|
| 1041 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 1042 | case "$ac_dir/" in
|
---|
| 1043 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
| 1044 | *)
|
---|
| 1045 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 1046 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 1047 | # by default.
|
---|
| 1048 | for ac_prog in ginstall scoinst install; do
|
---|
| 1049 | if test -f $ac_dir/$ac_prog; then
|
---|
| 1050 | if test $ac_prog = install &&
|
---|
| 1051 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
| 1052 | # AIX install. It has an incompatible calling convention.
|
---|
| 1053 | :
|
---|
| 1054 | else
|
---|
| 1055 | ac_cv_path_install="$ac_dir/$ac_prog -c"
|
---|
| 1056 | break 2
|
---|
| 1057 | fi
|
---|
| 1058 | fi
|
---|
| 1059 | done
|
---|
| 1060 | ;;
|
---|
| 1061 | esac
|
---|
| 1062 | done
|
---|
| 1063 | IFS="$ac_save_IFS"
|
---|
| 1064 |
|
---|
| 1065 | fi
|
---|
| 1066 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 1067 | INSTALL="$ac_cv_path_install"
|
---|
| 1068 | else
|
---|
| 1069 | # As a last resort, use the slow shell script. We don't cache a
|
---|
| 1070 | # path for INSTALL within a source directory, because that will
|
---|
| 1071 | # break other packages using the cache if that directory is
|
---|
| 1072 | # removed, or if the path is relative.
|
---|
| 1073 | INSTALL="$ac_install_sh"
|
---|
| 1074 | fi
|
---|
| 1075 | fi
|
---|
| 1076 | echo "$ac_t""$INSTALL" 1>&6
|
---|
| 1077 |
|
---|
| 1078 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 1079 | # It thinks the first close brace ends the variable substitution.
|
---|
| 1080 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 1081 |
|
---|
| 1082 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
| 1083 |
|
---|
| 1084 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 1085 |
|
---|
| 1086 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
---|
| 1087 | echo "configure:1088: checking whether ln -s works" >&5
|
---|
| 1088 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
---|
| 1089 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1090 | else
|
---|
| 1091 | rm -f conftestdata
|
---|
| 1092 | if ln -s X conftestdata 2>/dev/null
|
---|
| 1093 | then
|
---|
| 1094 | rm -f conftestdata
|
---|
| 1095 | ac_cv_prog_LN_S="ln -s"
|
---|
| 1096 | else
|
---|
| 1097 | ac_cv_prog_LN_S=ln
|
---|
| 1098 | fi
|
---|
| 1099 | fi
|
---|
| 1100 | LN_S="$ac_cv_prog_LN_S"
|
---|
| 1101 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
---|
| 1102 | echo "$ac_t""yes" 1>&6
|
---|
| 1103 | else
|
---|
| 1104 | echo "$ac_t""no" 1>&6
|
---|
| 1105 | fi
|
---|
| 1106 |
|
---|
| 1107 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
---|
| 1108 | echo "configure:1109: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
---|
| 1109 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
---|
| 1110 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
---|
| 1111 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1112 | else
|
---|
| 1113 | cat > conftestmake <<\EOF
|
---|
| 1114 | all:
|
---|
| 1115 | @echo 'ac_maketemp="${MAKE}"'
|
---|
| 1116 | EOF
|
---|
| 1117 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
| 1118 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
---|
| 1119 | if test -n "$ac_maketemp"; then
|
---|
| 1120 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
| 1121 | else
|
---|
| 1122 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
| 1123 | fi
|
---|
| 1124 | rm -f conftestmake
|
---|
| 1125 | fi
|
---|
| 1126 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
| 1127 | echo "$ac_t""yes" 1>&6
|
---|
| 1128 | SET_MAKE=
|
---|
| 1129 | else
|
---|
| 1130 | echo "$ac_t""no" 1>&6
|
---|
| 1131 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 1132 | fi
|
---|
| 1133 |
|
---|
| 1134 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 1135 | set dummy ranlib; ac_word=$2
|
---|
| 1136 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
| 1137 | echo "configure:1138: checking for $ac_word" >&5
|
---|
| 1138 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
| 1139 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1140 | else
|
---|
| 1141 | if test -n "$RANLIB"; then
|
---|
| 1142 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 1143 | else
|
---|
| 1144 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 1145 | ac_dummy="$PATH"
|
---|
| 1146 | for ac_dir in $ac_dummy; do
|
---|
| 1147 | test -z "$ac_dir" && ac_dir=.
|
---|
| 1148 | if test -f $ac_dir/$ac_word; then
|
---|
| 1149 | ac_cv_prog_RANLIB="ranlib"
|
---|
| 1150 | break
|
---|
| 1151 | fi
|
---|
| 1152 | done
|
---|
| 1153 | IFS="$ac_save_ifs"
|
---|
| 1154 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
| 1155 | fi
|
---|
| 1156 | fi
|
---|
| 1157 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 1158 | if test -n "$RANLIB"; then
|
---|
| 1159 | echo "$ac_t""$RANLIB" 1>&6
|
---|
| 1160 | else
|
---|
| 1161 | echo "$ac_t""no" 1>&6
|
---|
| 1162 | fi
|
---|
| 1163 |
|
---|
| 1164 |
|
---|
| 1165 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
---|
| 1166 | echo "configure:1167: checking how to run the C preprocessor" >&5
|
---|
| 1167 | # On Suns, sometimes $CPP names a directory.
|
---|
| 1168 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 1169 | CPP=
|
---|
| 1170 | fi
|
---|
| 1171 | if test -z "$CPP"; then
|
---|
| 1172 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
---|
| 1173 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1174 | else
|
---|
| 1175 | # This must be in double quotes, not single quotes, because CPP may get
|
---|
| 1176 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
---|
| 1177 | CPP="${CC-cc} -E"
|
---|
| 1178 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 1179 | # not just through cpp.
|
---|
| 1180 | cat > conftest.$ac_ext <<EOF
|
---|
| 1181 | #line 1182 "configure"
|
---|
| 1182 | #include "confdefs.h"
|
---|
| 1183 | #include <assert.h>
|
---|
| 1184 | Syntax Error
|
---|
| 1185 | EOF
|
---|
| 1186 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
| 1187 | { (eval echo configure:1188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
| 1188 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
| 1189 | if test -z "$ac_err"; then
|
---|
| 1190 | :
|
---|
| 1191 | else
|
---|
| 1192 | echo "$ac_err" >&5
|
---|
| 1193 | echo "configure: failed program was:" >&5
|
---|
| 1194 | cat conftest.$ac_ext >&5
|
---|
| 1195 | rm -rf conftest*
|
---|
| 1196 | CPP="${CC-cc} -E -traditional-cpp"
|
---|
| 1197 | cat > conftest.$ac_ext <<EOF
|
---|
| 1198 | #line 1199 "configure"
|
---|
| 1199 | #include "confdefs.h"
|
---|
| 1200 | #include <assert.h>
|
---|
| 1201 | Syntax Error
|
---|
| 1202 | EOF
|
---|
| 1203 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
| 1204 | { (eval echo configure:1205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
| 1205 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
| 1206 | if test -z "$ac_err"; then
|
---|
| 1207 | :
|
---|
| 1208 | else
|
---|
| 1209 | echo "$ac_err" >&5
|
---|
| 1210 | echo "configure: failed program was:" >&5
|
---|
| 1211 | cat conftest.$ac_ext >&5
|
---|
| 1212 | rm -rf conftest*
|
---|
| 1213 | CPP="${CC-cc} -nologo -E"
|
---|
| 1214 | cat > conftest.$ac_ext <<EOF
|
---|
| 1215 | #line 1216 "configure"
|
---|
| 1216 | #include "confdefs.h"
|
---|
| 1217 | #include <assert.h>
|
---|
| 1218 | Syntax Error
|
---|
| 1219 | EOF
|
---|
| 1220 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
| 1221 | { (eval echo configure:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
| 1222 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
| 1223 | if test -z "$ac_err"; then
|
---|
| 1224 | :
|
---|
| 1225 | else
|
---|
| 1226 | echo "$ac_err" >&5
|
---|
| 1227 | echo "configure: failed program was:" >&5
|
---|
| 1228 | cat conftest.$ac_ext >&5
|
---|
| 1229 | rm -rf conftest*
|
---|
| 1230 | CPP=/lib/cpp
|
---|
| 1231 | fi
|
---|
| 1232 | rm -f conftest*
|
---|
| 1233 | fi
|
---|
| 1234 | rm -f conftest*
|
---|
| 1235 | fi
|
---|
| 1236 | rm -f conftest*
|
---|
| 1237 | ac_cv_prog_CPP="$CPP"
|
---|
| 1238 | fi
|
---|
| 1239 | CPP="$ac_cv_prog_CPP"
|
---|
| 1240 | else
|
---|
| 1241 | ac_cv_prog_CPP="$CPP"
|
---|
| 1242 | fi
|
---|
| 1243 | echo "$ac_t""$CPP" 1>&6
|
---|
| 1244 |
|
---|
| 1245 | echo $ac_n "checking for AIX""... $ac_c" 1>&6
|
---|
| 1246 | echo "configure:1247: checking for AIX" >&5
|
---|
| 1247 | cat > conftest.$ac_ext <<EOF
|
---|
| 1248 | #line 1249 "configure"
|
---|
| 1249 | #include "confdefs.h"
|
---|
| 1250 | #ifdef _AIX
|
---|
| 1251 | yes
|
---|
| 1252 | #endif
|
---|
| 1253 |
|
---|
| 1254 | EOF
|
---|
| 1255 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 1256 | egrep "yes" >/dev/null 2>&1; then
|
---|
| 1257 | rm -rf conftest*
|
---|
| 1258 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
---|
| 1259 | #define _ALL_SOURCE 1
|
---|
| 1260 | EOF
|
---|
| 1261 |
|
---|
| 1262 | else
|
---|
| 1263 | rm -rf conftest*
|
---|
| 1264 | echo "$ac_t""no" 1>&6
|
---|
| 1265 | fi
|
---|
| 1266 | rm -f conftest*
|
---|
| 1267 |
|
---|
| 1268 |
|
---|
| 1269 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
|
---|
| 1270 | echo "configure:1271: checking for POSIXized ISC" >&5
|
---|
| 1271 | if test -d /etc/conf/kconfig.d &&
|
---|
| 1272 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
|
---|
| 1273 | then
|
---|
| 1274 | echo "$ac_t""yes" 1>&6
|
---|
| 1275 | ISC=yes # If later tests want to check for ISC.
|
---|
| 1276 | cat >> confdefs.h <<\EOF
|
---|
| 1277 | #define _POSIX_SOURCE 1
|
---|
| 1278 | EOF
|
---|
| 1279 |
|
---|
| 1280 | if test "$GCC" = yes; then
|
---|
| 1281 | CC="$CC -posix"
|
---|
| 1282 | else
|
---|
| 1283 | CC="$CC -Xp"
|
---|
| 1284 | fi
|
---|
| 1285 | else
|
---|
| 1286 | echo "$ac_t""no" 1>&6
|
---|
| 1287 | ISC=
|
---|
| 1288 | fi
|
---|
| 1289 |
|
---|
| 1290 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
|
---|
| 1291 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
|
---|
| 1292 | echo "configure:1293: checking for minix/config.h" >&5
|
---|
| 1293 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
| 1294 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1295 | else
|
---|
| 1296 | cat > conftest.$ac_ext <<EOF
|
---|
| 1297 | #line 1298 "configure"
|
---|
| 1298 | #include "confdefs.h"
|
---|
| 1299 | #include <minix/config.h>
|
---|
| 1300 | EOF
|
---|
| 1301 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
| 1302 | { (eval echo configure:1303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
| 1303 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
| 1304 | if test -z "$ac_err"; then
|
---|
| 1305 | rm -rf conftest*
|
---|
| 1306 | eval "ac_cv_header_$ac_safe=yes"
|
---|
| 1307 | else
|
---|
| 1308 | echo "$ac_err" >&5
|
---|
| 1309 | echo "configure: failed program was:" >&5
|
---|
| 1310 | cat conftest.$ac_ext >&5
|
---|
| 1311 | rm -rf conftest*
|
---|
| 1312 | eval "ac_cv_header_$ac_safe=no"
|
---|
| 1313 | fi
|
---|
| 1314 | rm -f conftest*
|
---|
| 1315 | fi
|
---|
| 1316 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
| 1317 | echo "$ac_t""yes" 1>&6
|
---|
| 1318 | MINIX=yes
|
---|
| 1319 | else
|
---|
| 1320 | echo "$ac_t""no" 1>&6
|
---|
| 1321 | MINIX=
|
---|
| 1322 | fi
|
---|
| 1323 |
|
---|
| 1324 | if test "$MINIX" = yes; then
|
---|
| 1325 | cat >> confdefs.h <<\EOF
|
---|
| 1326 | #define _POSIX_SOURCE 1
|
---|
| 1327 | EOF
|
---|
| 1328 |
|
---|
| 1329 | cat >> confdefs.h <<\EOF
|
---|
| 1330 | #define _POSIX_1_SOURCE 2
|
---|
| 1331 | EOF
|
---|
| 1332 |
|
---|
| 1333 | cat >> confdefs.h <<\EOF
|
---|
| 1334 | #define _MINIX 1
|
---|
| 1335 | EOF
|
---|
| 1336 |
|
---|
| 1337 | fi
|
---|
| 1338 |
|
---|
| 1339 | echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
|
---|
| 1340 | echo "configure:1341: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
| 1341 | if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
|
---|
| 1342 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1343 | else
|
---|
| 1344 | ac_cv_prog_cc_stdc=no
|
---|
| 1345 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 1346 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 1347 | # breaks some systems' header files.
|
---|
| 1348 | # AIX -qlanglvl=ansi
|
---|
| 1349 | # Ultrix and OSF/1 -std1
|
---|
| 1350 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 1351 | # SVR4 -Xc
|
---|
| 1352 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 1353 | do
|
---|
| 1354 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
| 1355 | cat > conftest.$ac_ext <<EOF
|
---|
| 1356 | #line 1357 "configure"
|
---|
| 1357 | #include "confdefs.h"
|
---|
| 1358 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 1359 | choke me
|
---|
| 1360 | #endif
|
---|
| 1361 |
|
---|
| 1362 | int main() {
|
---|
| 1363 | int test (int i, double x);
|
---|
| 1364 | struct s1 {int (*f) (int a);};
|
---|
| 1365 | struct s2 {int (*f) (double a);};
|
---|
| 1366 | ; return 0; }
|
---|
| 1367 | EOF
|
---|
| 1368 | if { (eval echo configure:1369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
| 1369 | rm -rf conftest*
|
---|
| 1370 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
| 1371 | else
|
---|
| 1372 | echo "configure: failed program was:" >&5
|
---|
| 1373 | cat conftest.$ac_ext >&5
|
---|
| 1374 | fi
|
---|
| 1375 | rm -f conftest*
|
---|
| 1376 | done
|
---|
| 1377 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 1378 |
|
---|
| 1379 | fi
|
---|
| 1380 |
|
---|
| 1381 | echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
|
---|
| 1382 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 1383 | x|xno) ;;
|
---|
| 1384 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 1385 | esac
|
---|
| 1386 |
|
---|
| 1387 |
|
---|
| 1388 | echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
|
---|
| 1389 | echo "configure:1390: checking for function prototypes" >&5
|
---|
| 1390 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
| 1391 | echo "$ac_t""yes" 1>&6
|
---|
| 1392 | cat >> confdefs.h <<\EOF
|
---|
| 1393 | #define PROTOTYPES 1
|
---|
| 1394 | EOF
|
---|
| 1395 |
|
---|
| 1396 | U= ANSI2KNR=
|
---|
| 1397 | else
|
---|
| 1398 | echo "$ac_t""no" 1>&6
|
---|
| 1399 | U=_ ANSI2KNR=ansi2knr
|
---|
| 1400 | fi
|
---|
| 1401 |
|
---|
| 1402 | echo $ac_n "checking for working const""... $ac_c" 1>&6
|
---|
| 1403 | echo "configure:1404: checking for working const" >&5
|
---|
| 1404 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
---|
| 1405 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1406 | else
|
---|
| 1407 | cat > conftest.$ac_ext <<EOF
|
---|
| 1408 | #line 1409 "configure"
|
---|
| 1409 | #include "confdefs.h"
|
---|
| 1410 |
|
---|
| 1411 | int main() {
|
---|
| 1412 |
|
---|
| 1413 | /* Ultrix mips cc rejects this. */
|
---|
| 1414 | typedef int charset[2]; const charset x;
|
---|
| 1415 | /* SunOS 4.1.1 cc rejects this. */
|
---|
| 1416 | char const *const *ccp;
|
---|
| 1417 | char **p;
|
---|
| 1418 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 1419 | struct point {int x, y;};
|
---|
| 1420 | static struct point const zero = {0,0};
|
---|
| 1421 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 1422 | It does not let you subtract one const X* pointer from another in an arm
|
---|
| 1423 | of an if-expression whose if-part is not a constant expression */
|
---|
| 1424 | const char *g = "string";
|
---|
| 1425 | ccp = &g + (g ? g-g : 0);
|
---|
| 1426 | /* HPUX 7.0 cc rejects these. */
|
---|
| 1427 | ++ccp;
|
---|
| 1428 | p = (char**) ccp;
|
---|
| 1429 | ccp = (char const *const *) p;
|
---|
| 1430 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 1431 | char *t;
|
---|
| 1432 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
| 1433 |
|
---|
| 1434 | *t++ = 0;
|
---|
| 1435 | }
|
---|
| 1436 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 1437 | int x[] = {25, 17};
|
---|
| 1438 | const int *foo = &x[0];
|
---|
| 1439 | ++foo;
|
---|
| 1440 | }
|
---|
| 1441 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 1442 | typedef const int *iptr;
|
---|
| 1443 | iptr p = 0;
|
---|
| 1444 | ++p;
|
---|
| 1445 | }
|
---|
| 1446 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 1447 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 1448 | struct s { int j; const int *ap[3]; };
|
---|
| 1449 | struct s *b; b->j = 5;
|
---|
| 1450 | }
|
---|
| 1451 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 1452 | const int foo = 10;
|
---|
| 1453 | }
|
---|
| 1454 |
|
---|
| 1455 | ; return 0; }
|
---|
| 1456 | EOF
|
---|
| 1457 | if { (eval echo configure:1458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
| 1458 | rm -rf conftest*
|
---|
| 1459 | ac_cv_c_const=yes
|
---|
| 1460 | else
|
---|
| 1461 | echo "configure: failed program was:" >&5
|
---|
| 1462 | cat conftest.$ac_ext >&5
|
---|
| 1463 | rm -rf conftest*
|
---|
| 1464 | ac_cv_c_const=no
|
---|
| 1465 | fi
|
---|
| 1466 | rm -f conftest*
|
---|
| 1467 | fi
|
---|
| 1468 |
|
---|
| 1469 | echo "$ac_t""$ac_cv_c_const" 1>&6
|
---|
| 1470 | if test $ac_cv_c_const = no; then
|
---|
| 1471 | cat >> confdefs.h <<\EOF
|
---|
| 1472 | #define const
|
---|
| 1473 | EOF
|
---|
| 1474 |
|
---|
| 1475 | fi
|
---|
| 1476 |
|
---|
| 1477 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
| 1478 | echo "configure:1479: checking for ANSI C header files" >&5
|
---|
| 1479 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
| 1480 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1481 | else
|
---|
| 1482 | cat > conftest.$ac_ext <<EOF
|
---|
| 1483 | #line 1484 "configure"
|
---|
| 1484 | #include "confdefs.h"
|
---|
| 1485 | #include <stdlib.h>
|
---|
| 1486 | #include <stdarg.h>
|
---|
| 1487 | #include <string.h>
|
---|
| 1488 | #include <float.h>
|
---|
| 1489 | EOF
|
---|
| 1490 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
| 1491 | { (eval echo configure:1492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
| 1492 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
| 1493 | if test -z "$ac_err"; then
|
---|
| 1494 | rm -rf conftest*
|
---|
| 1495 | ac_cv_header_stdc=yes
|
---|
| 1496 | else
|
---|
| 1497 | echo "$ac_err" >&5
|
---|
| 1498 | echo "configure: failed program was:" >&5
|
---|
| 1499 | cat conftest.$ac_ext >&5
|
---|
| 1500 | rm -rf conftest*
|
---|
| 1501 | ac_cv_header_stdc=no
|
---|
| 1502 | fi
|
---|
| 1503 | rm -f conftest*
|
---|
| 1504 |
|
---|
| 1505 | if test $ac_cv_header_stdc = yes; then
|
---|
| 1506 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 1507 | cat > conftest.$ac_ext <<EOF
|
---|
| 1508 | #line 1509 "configure"
|
---|
| 1509 | #include "confdefs.h"
|
---|
| 1510 | #include <string.h>
|
---|
| 1511 | EOF
|
---|
| 1512 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 1513 | egrep "memchr" >/dev/null 2>&1; then
|
---|
| 1514 | :
|
---|
| 1515 | else
|
---|
| 1516 | rm -rf conftest*
|
---|
| 1517 | ac_cv_header_stdc=no
|
---|
| 1518 | fi
|
---|
| 1519 | rm -f conftest*
|
---|
| 1520 |
|
---|
| 1521 | fi
|
---|
| 1522 |
|
---|
| 1523 | if test $ac_cv_header_stdc = yes; then
|
---|
| 1524 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 1525 | cat > conftest.$ac_ext <<EOF
|
---|
| 1526 | #line 1527 "configure"
|
---|
| 1527 | #include "confdefs.h"
|
---|
| 1528 | #include <stdlib.h>
|
---|
| 1529 | EOF
|
---|
| 1530 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 1531 | egrep "free" >/dev/null 2>&1; then
|
---|
| 1532 | :
|
---|
| 1533 | else
|
---|
| 1534 | rm -rf conftest*
|
---|
| 1535 | ac_cv_header_stdc=no
|
---|
| 1536 | fi
|
---|
| 1537 | rm -f conftest*
|
---|
| 1538 |
|
---|
| 1539 | fi
|
---|
| 1540 |
|
---|
| 1541 | if test $ac_cv_header_stdc = yes; then
|
---|
| 1542 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 1543 | if test "$cross_compiling" = yes; then
|
---|
| 1544 | :
|
---|
| 1545 | else
|
---|
| 1546 | cat > conftest.$ac_ext <<EOF
|
---|
| 1547 | #line 1548 "configure"
|
---|
| 1548 | #include "confdefs.h"
|
---|
| 1549 | #include <ctype.h>
|
---|
| 1550 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 1551 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 1552 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 1553 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
| 1554 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
| 1555 | exit (0); }
|
---|
| 1556 |
|
---|
| 1557 | EOF
|
---|
| 1558 | if { (eval echo configure:1559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
| 1559 | then
|
---|
| 1560 | :
|
---|
| 1561 | else
|
---|
| 1562 | echo "configure: failed program was:" >&5
|
---|
| 1563 | cat conftest.$ac_ext >&5
|
---|
| 1564 | rm -fr conftest*
|
---|
| 1565 | ac_cv_header_stdc=no
|
---|
| 1566 | fi
|
---|
| 1567 | rm -fr conftest*
|
---|
| 1568 | fi
|
---|
| 1569 |
|
---|
| 1570 | fi
|
---|
| 1571 | fi
|
---|
| 1572 |
|
---|
| 1573 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
| 1574 | if test $ac_cv_header_stdc = yes; then
|
---|
| 1575 | cat >> confdefs.h <<\EOF
|
---|
| 1576 | #define STDC_HEADERS 1
|
---|
| 1577 | EOF
|
---|
| 1578 |
|
---|
| 1579 | fi
|
---|
| 1580 |
|
---|
| 1581 | echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
---|
| 1582 | echo "configure:1583: checking for off_t" >&5
|
---|
| 1583 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
---|
| 1584 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1585 | else
|
---|
| 1586 | cat > conftest.$ac_ext <<EOF
|
---|
| 1587 | #line 1588 "configure"
|
---|
| 1588 | #include "confdefs.h"
|
---|
| 1589 | #include <sys/types.h>
|
---|
| 1590 | #if STDC_HEADERS
|
---|
| 1591 | #include <stdlib.h>
|
---|
| 1592 | #include <stddef.h>
|
---|
| 1593 | #endif
|
---|
| 1594 | EOF
|
---|
| 1595 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 1596 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
| 1597 | rm -rf conftest*
|
---|
| 1598 | ac_cv_type_off_t=yes
|
---|
| 1599 | else
|
---|
| 1600 | rm -rf conftest*
|
---|
| 1601 | ac_cv_type_off_t=no
|
---|
| 1602 | fi
|
---|
| 1603 | rm -f conftest*
|
---|
| 1604 |
|
---|
| 1605 | fi
|
---|
| 1606 | echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
---|
| 1607 | if test $ac_cv_type_off_t = no; then
|
---|
| 1608 | cat >> confdefs.h <<\EOF
|
---|
| 1609 | #define off_t long
|
---|
| 1610 | EOF
|
---|
| 1611 |
|
---|
| 1612 | fi
|
---|
| 1613 |
|
---|
| 1614 | echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
---|
| 1615 | echo "configure:1616: checking for size_t" >&5
|
---|
| 1616 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
---|
| 1617 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1618 | else
|
---|
| 1619 | cat > conftest.$ac_ext <<EOF
|
---|
| 1620 | #line 1621 "configure"
|
---|
| 1621 | #include "confdefs.h"
|
---|
| 1622 | #include <sys/types.h>
|
---|
| 1623 | #if STDC_HEADERS
|
---|
| 1624 | #include <stdlib.h>
|
---|
| 1625 | #include <stddef.h>
|
---|
| 1626 | #endif
|
---|
| 1627 | EOF
|
---|
| 1628 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 1629 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
| 1630 | rm -rf conftest*
|
---|
| 1631 | ac_cv_type_size_t=yes
|
---|
| 1632 | else
|
---|
| 1633 | rm -rf conftest*
|
---|
| 1634 | ac_cv_type_size_t=no
|
---|
| 1635 | fi
|
---|
| 1636 | rm -f conftest*
|
---|
| 1637 |
|
---|
| 1638 | fi
|
---|
| 1639 | echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
---|
| 1640 | if test $ac_cv_type_size_t = no; then
|
---|
| 1641 | cat >> confdefs.h <<\EOF
|
---|
| 1642 | #define size_t unsigned
|
---|
| 1643 | EOF
|
---|
| 1644 |
|
---|
| 1645 | fi
|
---|
| 1646 |
|
---|
| 1647 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
---|
| 1648 | echo "configure:1649: checking whether time.h and sys/time.h may both be included" >&5
|
---|
| 1649 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
|
---|
| 1650 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1651 | else
|
---|
| 1652 | cat > conftest.$ac_ext <<EOF
|
---|
| 1653 | #line 1654 "configure"
|
---|
| 1654 | #include "confdefs.h"
|
---|
| 1655 | #include <sys/types.h>
|
---|
| 1656 | #include <sys/time.h>
|
---|
| 1657 | #include <time.h>
|
---|
| 1658 | int main() {
|
---|
| 1659 | struct tm *tp;
|
---|
| 1660 | ; return 0; }
|
---|
| 1661 | EOF
|
---|
| 1662 | if { (eval echo configure:1663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
| 1663 | rm -rf conftest*
|
---|
| 1664 | ac_cv_header_time=yes
|
---|
| 1665 | else
|
---|
| 1666 | echo "configure: failed program was:" >&5
|
---|
| 1667 | cat conftest.$ac_ext >&5
|
---|
| 1668 | rm -rf conftest*
|
---|
| 1669 | ac_cv_header_time=no
|
---|
| 1670 | fi
|
---|
| 1671 | rm -f conftest*
|
---|
| 1672 | fi
|
---|
| 1673 |
|
---|
| 1674 | echo "$ac_t""$ac_cv_header_time" 1>&6
|
---|
| 1675 | if test $ac_cv_header_time = yes; then
|
---|
| 1676 | cat >> confdefs.h <<\EOF
|
---|
| 1677 | #define TIME_WITH_SYS_TIME 1
|
---|
| 1678 | EOF
|
---|
| 1679 |
|
---|
| 1680 | fi
|
---|
| 1681 |
|
---|
| 1682 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
---|
| 1683 | echo "configure:1684: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
| 1684 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
|
---|
| 1685 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1686 | else
|
---|
| 1687 | cat > conftest.$ac_ext <<EOF
|
---|
| 1688 | #line 1689 "configure"
|
---|
| 1689 | #include "confdefs.h"
|
---|
| 1690 | #include <sys/types.h>
|
---|
| 1691 | #include <time.h>
|
---|
| 1692 | int main() {
|
---|
| 1693 | struct tm *tp; tp->tm_sec;
|
---|
| 1694 | ; return 0; }
|
---|
| 1695 | EOF
|
---|
| 1696 | if { (eval echo configure:1697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
| 1697 | rm -rf conftest*
|
---|
| 1698 | ac_cv_struct_tm=time.h
|
---|
| 1699 | else
|
---|
| 1700 | echo "configure: failed program was:" >&5
|
---|
| 1701 | cat conftest.$ac_ext >&5
|
---|
| 1702 | rm -rf conftest*
|
---|
| 1703 | ac_cv_struct_tm=sys/time.h
|
---|
| 1704 | fi
|
---|
| 1705 | rm -f conftest*
|
---|
| 1706 | fi
|
---|
| 1707 |
|
---|
| 1708 | echo "$ac_t""$ac_cv_struct_tm" 1>&6
|
---|
| 1709 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
| 1710 | cat >> confdefs.h <<\EOF
|
---|
| 1711 | #define TM_IN_SYS_TIME 1
|
---|
| 1712 | EOF
|
---|
| 1713 |
|
---|
| 1714 | fi
|
---|
| 1715 |
|
---|
| 1716 |
|
---|
| 1717 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
| 1718 | cat > conftest.$ac_ext <<EOF
|
---|
| 1719 | #line 1720 "configure"
|
---|
| 1720 | #include "confdefs.h"
|
---|
| 1721 | #include <stdio.h>
|
---|
| 1722 |
|
---|
| 1723 | int main() {
|
---|
| 1724 | FILE *rubbish = popen("yes", "r");
|
---|
| 1725 | ; return 0; }
|
---|
| 1726 | EOF
|
---|
| 1727 | if { (eval echo configure:1728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
| 1728 | :
|
---|
| 1729 | else
|
---|
| 1730 | echo "configure: failed program was:" >&5
|
---|
| 1731 | cat conftest.$ac_ext >&5
|
---|
| 1732 | rm -rf conftest*
|
---|
| 1733 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
| 1734 | fi
|
---|
| 1735 | rm -f conftest*
|
---|
| 1736 | fi
|
---|
| 1737 |
|
---|
| 1738 |
|
---|
| 1739 | echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
|
---|
| 1740 | echo "configure:1741: checking for main in -lm" >&5
|
---|
| 1741 | ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
|
---|
| 1742 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
| 1743 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1744 | else
|
---|
| 1745 | ac_save_LIBS="$LIBS"
|
---|
| 1746 | LIBS="-lm $LIBS"
|
---|
| 1747 | cat > conftest.$ac_ext <<EOF
|
---|
| 1748 | #line 1749 "configure"
|
---|
| 1749 | #include "confdefs.h"
|
---|
| 1750 |
|
---|
| 1751 | int main() {
|
---|
| 1752 | main()
|
---|
| 1753 | ; return 0; }
|
---|
| 1754 | EOF
|
---|
| 1755 | if { (eval echo configure:1756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
| 1756 | rm -rf conftest*
|
---|
| 1757 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
| 1758 | else
|
---|
| 1759 | echo "configure: failed program was:" >&5
|
---|
| 1760 | cat conftest.$ac_ext >&5
|
---|
| 1761 | rm -rf conftest*
|
---|
| 1762 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
| 1763 | fi
|
---|
| 1764 | rm -f conftest*
|
---|
| 1765 | LIBS="$ac_save_LIBS"
|
---|
| 1766 |
|
---|
| 1767 | fi
|
---|
| 1768 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
| 1769 | echo "$ac_t""yes" 1>&6
|
---|
| 1770 | ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
| 1771 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
| 1772 | cat >> confdefs.h <<EOF
|
---|
| 1773 | #define $ac_tr_lib 1
|
---|
| 1774 | EOF
|
---|
| 1775 |
|
---|
| 1776 | LIBS="-lm $LIBS"
|
---|
| 1777 |
|
---|
| 1778 | else
|
---|
| 1779 | echo "$ac_t""no" 1>&6
|
---|
| 1780 | fi
|
---|
| 1781 |
|
---|
| 1782 |
|
---|
| 1783 | ac_header_dirent=no
|
---|
| 1784 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
|
---|
| 1785 | do
|
---|
| 1786 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
| 1787 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
|
---|
| 1788 | echo "configure:1789: checking for $ac_hdr that defines DIR" >&5
|
---|
| 1789 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
|
---|
| 1790 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1791 | else
|
---|
| 1792 | cat > conftest.$ac_ext <<EOF
|
---|
| 1793 | #line 1794 "configure"
|
---|
| 1794 | #include "confdefs.h"
|
---|
| 1795 | #include <sys/types.h>
|
---|
| 1796 | #include <$ac_hdr>
|
---|
| 1797 | int main() {
|
---|
| 1798 | DIR *dirp = 0;
|
---|
| 1799 | ; return 0; }
|
---|
| 1800 | EOF
|
---|
| 1801 | if { (eval echo configure:1802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
| 1802 | rm -rf conftest*
|
---|
| 1803 | eval "ac_cv_header_dirent_$ac_safe=yes"
|
---|
| 1804 | else
|
---|
| 1805 | echo "configure: failed program was:" >&5
|
---|
| 1806 | cat conftest.$ac_ext >&5
|
---|
| 1807 | rm -rf conftest*
|
---|
| 1808 | eval "ac_cv_header_dirent_$ac_safe=no"
|
---|
| 1809 | fi
|
---|
| 1810 | rm -f conftest*
|
---|
| 1811 | fi
|
---|
| 1812 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
|
---|
| 1813 | echo "$ac_t""yes" 1>&6
|
---|
| 1814 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
| 1815 | cat >> confdefs.h <<EOF
|
---|
| 1816 | #define $ac_tr_hdr 1
|
---|
| 1817 | EOF
|
---|
| 1818 | ac_header_dirent=$ac_hdr; break
|
---|
| 1819 | else
|
---|
| 1820 | echo "$ac_t""no" 1>&6
|
---|
| 1821 | fi
|
---|
| 1822 | done
|
---|
| 1823 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 1824 | if test $ac_header_dirent = dirent.h; then
|
---|
| 1825 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
|
---|
| 1826 | echo "configure:1827: checking for opendir in -ldir" >&5
|
---|
| 1827 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
|
---|
| 1828 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
| 1829 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1830 | else
|
---|
| 1831 | ac_save_LIBS="$LIBS"
|
---|
| 1832 | LIBS="-ldir $LIBS"
|
---|
| 1833 | cat > conftest.$ac_ext <<EOF
|
---|
| 1834 | #line 1835 "configure"
|
---|
| 1835 | #include "confdefs.h"
|
---|
| 1836 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 1837 | /* We use char because int might match the return type of a gcc2
|
---|
| 1838 | builtin and then its argument prototype would still apply. */
|
---|
| 1839 | char opendir();
|
---|
| 1840 |
|
---|
| 1841 | int main() {
|
---|
| 1842 | opendir()
|
---|
| 1843 | ; return 0; }
|
---|
| 1844 | EOF
|
---|
| 1845 | if { (eval echo configure:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
| 1846 | rm -rf conftest*
|
---|
| 1847 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
| 1848 | else
|
---|
| 1849 | echo "configure: failed program was:" >&5
|
---|
| 1850 | cat conftest.$ac_ext >&5
|
---|
| 1851 | rm -rf conftest*
|
---|
| 1852 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
| 1853 | fi
|
---|
| 1854 | rm -f conftest*
|
---|
| 1855 | LIBS="$ac_save_LIBS"
|
---|
| 1856 |
|
---|
| 1857 | fi
|
---|
| 1858 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
| 1859 | echo "$ac_t""yes" 1>&6
|
---|
| 1860 | LIBS="$LIBS -ldir"
|
---|
| 1861 | else
|
---|
| 1862 | echo "$ac_t""no" 1>&6
|
---|
| 1863 | fi
|
---|
| 1864 |
|
---|
| 1865 | else
|
---|
| 1866 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
|
---|
| 1867 | echo "configure:1868: checking for opendir in -lx" >&5
|
---|
| 1868 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
|
---|
| 1869 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
| 1870 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1871 | else
|
---|
| 1872 | ac_save_LIBS="$LIBS"
|
---|
| 1873 | LIBS="-lx $LIBS"
|
---|
| 1874 | cat > conftest.$ac_ext <<EOF
|
---|
| 1875 | #line 1876 "configure"
|
---|
| 1876 | #include "confdefs.h"
|
---|
| 1877 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 1878 | /* We use char because int might match the return type of a gcc2
|
---|
| 1879 | builtin and then its argument prototype would still apply. */
|
---|
| 1880 | char opendir();
|
---|
| 1881 |
|
---|
| 1882 | int main() {
|
---|
| 1883 | opendir()
|
---|
| 1884 | ; return 0; }
|
---|
| 1885 | EOF
|
---|
| 1886 | if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
| 1887 | rm -rf conftest*
|
---|
| 1888 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
| 1889 | else
|
---|
| 1890 | echo "configure: failed program was:" >&5
|
---|
| 1891 | cat conftest.$ac_ext >&5
|
---|
| 1892 | rm -rf conftest*
|
---|
| 1893 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
| 1894 | fi
|
---|
| 1895 | rm -f conftest*
|
---|
| 1896 | LIBS="$ac_save_LIBS"
|
---|
| 1897 |
|
---|
| 1898 | fi
|
---|
| 1899 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
| 1900 | echo "$ac_t""yes" 1>&6
|
---|
| 1901 | LIBS="$LIBS -lx"
|
---|
| 1902 | else
|
---|
| 1903 | echo "$ac_t""no" 1>&6
|
---|
| 1904 | fi
|
---|
| 1905 |
|
---|
| 1906 | fi
|
---|
| 1907 |
|
---|
| 1908 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
| 1909 | echo "configure:1910: checking for ANSI C header files" >&5
|
---|
| 1910 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
| 1911 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1912 | else
|
---|
| 1913 | cat > conftest.$ac_ext <<EOF
|
---|
| 1914 | #line 1915 "configure"
|
---|
| 1915 | #include "confdefs.h"
|
---|
| 1916 | #include <stdlib.h>
|
---|
| 1917 | #include <stdarg.h>
|
---|
| 1918 | #include <string.h>
|
---|
| 1919 | #include <float.h>
|
---|
| 1920 | EOF
|
---|
| 1921 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
| 1922 | { (eval echo configure:1923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
| 1923 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
| 1924 | if test -z "$ac_err"; then
|
---|
| 1925 | rm -rf conftest*
|
---|
| 1926 | ac_cv_header_stdc=yes
|
---|
| 1927 | else
|
---|
| 1928 | echo "$ac_err" >&5
|
---|
| 1929 | echo "configure: failed program was:" >&5
|
---|
| 1930 | cat conftest.$ac_ext >&5
|
---|
| 1931 | rm -rf conftest*
|
---|
| 1932 | ac_cv_header_stdc=no
|
---|
| 1933 | fi
|
---|
| 1934 | rm -f conftest*
|
---|
| 1935 |
|
---|
| 1936 | if test $ac_cv_header_stdc = yes; then
|
---|
| 1937 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 1938 | cat > conftest.$ac_ext <<EOF
|
---|
| 1939 | #line 1940 "configure"
|
---|
| 1940 | #include "confdefs.h"
|
---|
| 1941 | #include <string.h>
|
---|
| 1942 | EOF
|
---|
| 1943 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 1944 | egrep "memchr" >/dev/null 2>&1; then
|
---|
| 1945 | :
|
---|
| 1946 | else
|
---|
| 1947 | rm -rf conftest*
|
---|
| 1948 | ac_cv_header_stdc=no
|
---|
| 1949 | fi
|
---|
| 1950 | rm -f conftest*
|
---|
| 1951 |
|
---|
| 1952 | fi
|
---|
| 1953 |
|
---|
| 1954 | if test $ac_cv_header_stdc = yes; then
|
---|
| 1955 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 1956 | cat > conftest.$ac_ext <<EOF
|
---|
| 1957 | #line 1958 "configure"
|
---|
| 1958 | #include "confdefs.h"
|
---|
| 1959 | #include <stdlib.h>
|
---|
| 1960 | EOF
|
---|
| 1961 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 1962 | egrep "free" >/dev/null 2>&1; then
|
---|
| 1963 | :
|
---|
| 1964 | else
|
---|
| 1965 | rm -rf conftest*
|
---|
| 1966 | ac_cv_header_stdc=no
|
---|
| 1967 | fi
|
---|
| 1968 | rm -f conftest*
|
---|
| 1969 |
|
---|
| 1970 | fi
|
---|
| 1971 |
|
---|
| 1972 | if test $ac_cv_header_stdc = yes; then
|
---|
| 1973 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 1974 | if test "$cross_compiling" = yes; then
|
---|
| 1975 | :
|
---|
| 1976 | else
|
---|
| 1977 | cat > conftest.$ac_ext <<EOF
|
---|
| 1978 | #line 1979 "configure"
|
---|
| 1979 | #include "confdefs.h"
|
---|
| 1980 | #include <ctype.h>
|
---|
| 1981 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 1982 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 1983 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 1984 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
| 1985 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
| 1986 | exit (0); }
|
---|
| 1987 |
|
---|
| 1988 | EOF
|
---|
| 1989 | if { (eval echo configure:1990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
| 1990 | then
|
---|
| 1991 | :
|
---|
| 1992 | else
|
---|
| 1993 | echo "configure: failed program was:" >&5
|
---|
| 1994 | cat conftest.$ac_ext >&5
|
---|
| 1995 | rm -fr conftest*
|
---|
| 1996 | ac_cv_header_stdc=no
|
---|
| 1997 | fi
|
---|
| 1998 | rm -fr conftest*
|
---|
| 1999 | fi
|
---|
| 2000 |
|
---|
| 2001 | fi
|
---|
| 2002 | fi
|
---|
| 2003 |
|
---|
| 2004 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
| 2005 | if test $ac_cv_header_stdc = yes; then
|
---|
| 2006 | cat >> confdefs.h <<\EOF
|
---|
| 2007 | #define STDC_HEADERS 1
|
---|
| 2008 | EOF
|
---|
| 2009 |
|
---|
| 2010 | fi
|
---|
| 2011 |
|
---|
| 2012 | for ac_hdr in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
|
---|
| 2013 | do
|
---|
| 2014 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
| 2015 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
| 2016 | echo "configure:2017: checking for $ac_hdr" >&5
|
---|
| 2017 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
| 2018 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 2019 | else
|
---|
| 2020 | cat > conftest.$ac_ext <<EOF
|
---|
| 2021 | #line 2022 "configure"
|
---|
| 2022 | #include "confdefs.h"
|
---|
| 2023 | #include <$ac_hdr>
|
---|
| 2024 | EOF
|
---|
| 2025 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
| 2026 | { (eval echo configure:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
| 2027 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
| 2028 | if test -z "$ac_err"; then
|
---|
| 2029 | rm -rf conftest*
|
---|
| 2030 | eval "ac_cv_header_$ac_safe=yes"
|
---|
| 2031 | else
|
---|
| 2032 | echo "$ac_err" >&5
|
---|
| 2033 | echo "configure: failed program was:" >&5
|
---|
| 2034 | cat conftest.$ac_ext >&5
|
---|
| 2035 | rm -rf conftest*
|
---|
| 2036 | eval "ac_cv_header_$ac_safe=no"
|
---|
| 2037 | fi
|
---|
| 2038 | rm -f conftest*
|
---|
| 2039 | fi
|
---|
| 2040 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
| 2041 | echo "$ac_t""yes" 1>&6
|
---|
| 2042 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
| 2043 | cat >> confdefs.h <<EOF
|
---|
| 2044 | #define $ac_tr_hdr 1
|
---|
| 2045 | EOF
|
---|
| 2046 |
|
---|
| 2047 | else
|
---|
| 2048 | echo "$ac_t""no" 1>&6
|
---|
| 2049 | fi
|
---|
| 2050 | done
|
---|
| 2051 |
|
---|
| 2052 | cat > conftest.$ac_ext <<EOF
|
---|
| 2053 | #line 2054 "configure"
|
---|
| 2054 | #include "confdefs.h"
|
---|
| 2055 | #include <stdio.h>
|
---|
| 2056 | EOF
|
---|
| 2057 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 2058 | egrep "fread" >/dev/null 2>&1; then
|
---|
| 2059 | rm -rf conftest*
|
---|
| 2060 | cat >> confdefs.h <<\EOF
|
---|
| 2061 | #define HAVE_FREAD_DECL 1
|
---|
| 2062 | EOF
|
---|
| 2063 |
|
---|
| 2064 | fi
|
---|
| 2065 | rm -f conftest*
|
---|
| 2066 |
|
---|
| 2067 | cat > conftest.$ac_ext <<EOF
|
---|
| 2068 | #line 2069 "configure"
|
---|
| 2069 | #include "confdefs.h"
|
---|
| 2070 | #include <stdio.h>
|
---|
| 2071 | EOF
|
---|
| 2072 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 2073 | egrep "fgetc" >/dev/null 2>&1; then
|
---|
| 2074 | rm -rf conftest*
|
---|
| 2075 | cat >> confdefs.h <<\EOF
|
---|
| 2076 | #define HAVE_FGETC_DECL 1
|
---|
| 2077 | EOF
|
---|
| 2078 |
|
---|
| 2079 | fi
|
---|
| 2080 | rm -f conftest*
|
---|
| 2081 |
|
---|
| 2082 | cat > conftest.$ac_ext <<EOF
|
---|
| 2083 | #line 2084 "configure"
|
---|
| 2084 | #include "confdefs.h"
|
---|
| 2085 | #include <sys/procfs.h>
|
---|
| 2086 | EOF
|
---|
| 2087 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 2088 | egrep "pr_brksize" >/dev/null 2>&1; then
|
---|
| 2089 | rm -rf conftest*
|
---|
| 2090 | cat >> confdefs.h <<\EOF
|
---|
| 2091 | #define HAVE_PR_BRKSIZE 1
|
---|
| 2092 | EOF
|
---|
| 2093 |
|
---|
| 2094 | fi
|
---|
| 2095 | rm -f conftest*
|
---|
| 2096 |
|
---|
| 2097 |
|
---|
| 2098 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 2099 | # for constant arguments. Useless!
|
---|
| 2100 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
---|
| 2101 | echo "configure:2102: checking for working alloca.h" >&5
|
---|
| 2102 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
---|
| 2103 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 2104 | else
|
---|
| 2105 | cat > conftest.$ac_ext <<EOF
|
---|
| 2106 | #line 2107 "configure"
|
---|
| 2107 | #include "confdefs.h"
|
---|
| 2108 | #include <alloca.h>
|
---|
| 2109 | int main() {
|
---|
| 2110 | char *p = alloca(2 * sizeof(int));
|
---|
| 2111 | ; return 0; }
|
---|
| 2112 | EOF
|
---|
| 2113 | if { (eval echo configure:2114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
| 2114 | rm -rf conftest*
|
---|
| 2115 | ac_cv_header_alloca_h=yes
|
---|
| 2116 | else
|
---|
| 2117 | echo "configure: failed program was:" >&5
|
---|
| 2118 | cat conftest.$ac_ext >&5
|
---|
| 2119 | rm -rf conftest*
|
---|
| 2120 | ac_cv_header_alloca_h=no
|
---|
| 2121 | fi
|
---|
| 2122 | rm -f conftest*
|
---|
| 2123 | fi
|
---|
| 2124 |
|
---|
| 2125 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
---|
| 2126 | if test $ac_cv_header_alloca_h = yes; then
|
---|
| 2127 | cat >> confdefs.h <<\EOF
|
---|
| 2128 | #define HAVE_ALLOCA_H 1
|
---|
| 2129 | EOF
|
---|
| 2130 |
|
---|
| 2131 | fi
|
---|
| 2132 |
|
---|
| 2133 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
---|
| 2134 | echo "configure:2135: checking for alloca" >&5
|
---|
| 2135 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
---|
| 2136 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 2137 | else
|
---|
| 2138 | cat > conftest.$ac_ext <<EOF
|
---|
| 2139 | #line 2140 "configure"
|
---|
| 2140 | #include "confdefs.h"
|
---|
| 2141 |
|
---|
| 2142 | #ifdef __GNUC__
|
---|
| 2143 | # define alloca __builtin_alloca
|
---|
| 2144 | #else
|
---|
| 2145 | # ifdef _MSC_VER
|
---|
| 2146 | # include <malloc.h>
|
---|
| 2147 | # define alloca _alloca
|
---|
| 2148 | # else
|
---|
| 2149 | # if HAVE_ALLOCA_H
|
---|
| 2150 | # include <alloca.h>
|
---|
| 2151 | # else
|
---|
| 2152 | # ifdef _AIX
|
---|
| 2153 | #pragma alloca
|
---|
| 2154 | # else
|
---|
| 2155 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 2156 | char *alloca ();
|
---|
| 2157 | # endif
|
---|
| 2158 | # endif
|
---|
| 2159 | # endif
|
---|
| 2160 | # endif
|
---|
| 2161 | #endif
|
---|
| 2162 |
|
---|
| 2163 | int main() {
|
---|
| 2164 | char *p = (char *) alloca(1);
|
---|
| 2165 | ; return 0; }
|
---|
| 2166 | EOF
|
---|
| 2167 | if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
| 2168 | rm -rf conftest*
|
---|
| 2169 | ac_cv_func_alloca_works=yes
|
---|
| 2170 | else
|
---|
| 2171 | echo "configure: failed program was:" >&5
|
---|
| 2172 | cat conftest.$ac_ext >&5
|
---|
| 2173 | rm -rf conftest*
|
---|
| 2174 | ac_cv_func_alloca_works=no
|
---|
| 2175 | fi
|
---|
| 2176 | rm -f conftest*
|
---|
| 2177 | fi
|
---|
| 2178 |
|
---|
| 2179 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
---|
| 2180 | if test $ac_cv_func_alloca_works = yes; then
|
---|
| 2181 | cat >> confdefs.h <<\EOF
|
---|
| 2182 | #define HAVE_ALLOCA 1
|
---|
| 2183 | EOF
|
---|
| 2184 |
|
---|
| 2185 | fi
|
---|
| 2186 |
|
---|
| 2187 | if test $ac_cv_func_alloca_works = no; then
|
---|
| 2188 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 2189 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 2190 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 2191 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
| 2192 | ALLOCA=alloca.${ac_objext}
|
---|
| 2193 | cat >> confdefs.h <<\EOF
|
---|
| 2194 | #define C_ALLOCA 1
|
---|
| 2195 | EOF
|
---|
| 2196 |
|
---|
| 2197 |
|
---|
| 2198 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
---|
| 2199 | echo "configure:2200: checking whether alloca needs Cray hooks" >&5
|
---|
| 2200 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
---|
| 2201 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 2202 | else
|
---|
| 2203 | cat > conftest.$ac_ext <<EOF
|
---|
| 2204 | #line 2205 "configure"
|
---|
| 2205 | #include "confdefs.h"
|
---|
| 2206 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
| 2207 | webecray
|
---|
| 2208 | #else
|
---|
| 2209 | wenotbecray
|
---|
| 2210 | #endif
|
---|
| 2211 |
|
---|
| 2212 | EOF
|
---|
| 2213 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 2214 | egrep "webecray" >/dev/null 2>&1; then
|
---|
| 2215 | rm -rf conftest*
|
---|
| 2216 | ac_cv_os_cray=yes
|
---|
| 2217 | else
|
---|
| 2218 | rm -rf conftest*
|
---|
| 2219 | ac_cv_os_cray=no
|
---|
| 2220 | fi
|
---|
| 2221 | rm -f conftest*
|
---|
| 2222 |
|
---|
| 2223 | fi
|
---|
| 2224 |
|
---|
| 2225 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
---|
| 2226 | if test $ac_cv_os_cray = yes; then
|
---|
| 2227 | for ac_func in _getb67 GETB67 getb67; do
|
---|
| 2228 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
| 2229 | echo "configure:2230: checking for $ac_func" >&5
|
---|
| 2230 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
| 2231 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 2232 | else
|
---|
| 2233 | cat > conftest.$ac_ext <<EOF
|
---|
| 2234 | #line 2235 "configure"
|
---|
| 2235 | #include "confdefs.h"
|
---|
| 2236 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 2237 | which can conflict with char $ac_func(); below. */
|
---|
| 2238 | #include <assert.h>
|
---|
| 2239 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 2240 | /* We use char because int might match the return type of a gcc2
|
---|
| 2241 | builtin and then its argument prototype would still apply. */
|
---|
| 2242 | char $ac_func();
|
---|
| 2243 |
|
---|
| 2244 | int main() {
|
---|
| 2245 |
|
---|
| 2246 | /* The GNU C library defines this for functions which it implements
|
---|
| 2247 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 2248 | something starting with __ and the normal name is an alias. */
|
---|
| 2249 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 2250 | choke me
|
---|
| 2251 | #else
|
---|
| 2252 | $ac_func();
|
---|
| 2253 | #endif
|
---|
| 2254 |
|
---|
| 2255 | ; return 0; }
|
---|
| 2256 | EOF
|
---|
| 2257 | if { (eval echo configure:2258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
| 2258 | rm -rf conftest*
|
---|
| 2259 | eval "ac_cv_func_$ac_func=yes"
|
---|
| 2260 | else
|
---|
| 2261 | echo "configure: failed program was:" >&5
|
---|
| 2262 | cat conftest.$ac_ext >&5
|
---|
| 2263 | rm -rf conftest*
|
---|
| 2264 | eval "ac_cv_func_$ac_func=no"
|
---|
| 2265 | fi
|
---|
| 2266 | rm -f conftest*
|
---|
| 2267 | fi
|
---|
| 2268 |
|
---|
| 2269 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
| 2270 | echo "$ac_t""yes" 1>&6
|
---|
| 2271 | cat >> confdefs.h <<EOF
|
---|
| 2272 | #define CRAY_STACKSEG_END $ac_func
|
---|
| 2273 | EOF
|
---|
| 2274 |
|
---|
| 2275 | break
|
---|
| 2276 | else
|
---|
| 2277 | echo "$ac_t""no" 1>&6
|
---|
| 2278 | fi
|
---|
| 2279 |
|
---|
| 2280 | done
|
---|
| 2281 | fi
|
---|
| 2282 |
|
---|
| 2283 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
---|
| 2284 | echo "configure:2285: checking stack direction for C alloca" >&5
|
---|
| 2285 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
---|
| 2286 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 2287 | else
|
---|
| 2288 | if test "$cross_compiling" = yes; then
|
---|
| 2289 | ac_cv_c_stack_direction=0
|
---|
| 2290 | else
|
---|
| 2291 | cat > conftest.$ac_ext <<EOF
|
---|
| 2292 | #line 2293 "configure"
|
---|
| 2293 | #include "confdefs.h"
|
---|
| 2294 | find_stack_direction ()
|
---|
| 2295 | {
|
---|
| 2296 | static char *addr = 0;
|
---|
| 2297 | auto char dummy;
|
---|
| 2298 | if (addr == 0)
|
---|
| 2299 | {
|
---|
| 2300 | addr = &dummy;
|
---|
| 2301 | return find_stack_direction ();
|
---|
| 2302 | }
|
---|
| 2303 | else
|
---|
| 2304 | return (&dummy > addr) ? 1 : -1;
|
---|
| 2305 | }
|
---|
| 2306 | main ()
|
---|
| 2307 | {
|
---|
| 2308 | exit (find_stack_direction() < 0);
|
---|
| 2309 | }
|
---|
| 2310 | EOF
|
---|
| 2311 | if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
| 2312 | then
|
---|
| 2313 | ac_cv_c_stack_direction=1
|
---|
| 2314 | else
|
---|
| 2315 | echo "configure: failed program was:" >&5
|
---|
| 2316 | cat conftest.$ac_ext >&5
|
---|
| 2317 | rm -fr conftest*
|
---|
| 2318 | ac_cv_c_stack_direction=-1
|
---|
| 2319 | fi
|
---|
| 2320 | rm -fr conftest*
|
---|
| 2321 | fi
|
---|
| 2322 |
|
---|
| 2323 | fi
|
---|
| 2324 |
|
---|
| 2325 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
---|
| 2326 | cat >> confdefs.h <<EOF
|
---|
| 2327 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
| 2328 | EOF
|
---|
| 2329 |
|
---|
| 2330 | fi
|
---|
| 2331 |
|
---|
| 2332 | if test $ac_cv_prog_gcc = yes; then
|
---|
| 2333 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
|
---|
| 2334 | echo "configure:2335: checking whether ${CC-cc} needs -traditional" >&5
|
---|
| 2335 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
|
---|
| 2336 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 2337 | else
|
---|
| 2338 | ac_pattern="Autoconf.*'x'"
|
---|
| 2339 | cat > conftest.$ac_ext <<EOF
|
---|
| 2340 | #line 2341 "configure"
|
---|
| 2341 | #include "confdefs.h"
|
---|
| 2342 | #include <sgtty.h>
|
---|
| 2343 | Autoconf TIOCGETP
|
---|
| 2344 | EOF
|
---|
| 2345 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 2346 | egrep "$ac_pattern" >/dev/null 2>&1; then
|
---|
| 2347 | rm -rf conftest*
|
---|
| 2348 | ac_cv_prog_gcc_traditional=yes
|
---|
| 2349 | else
|
---|
| 2350 | rm -rf conftest*
|
---|
| 2351 | ac_cv_prog_gcc_traditional=no
|
---|
| 2352 | fi
|
---|
| 2353 | rm -f conftest*
|
---|
| 2354 |
|
---|
| 2355 |
|
---|
| 2356 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
| 2357 | cat > conftest.$ac_ext <<EOF
|
---|
| 2358 | #line 2359 "configure"
|
---|
| 2359 | #include "confdefs.h"
|
---|
| 2360 | #include <termio.h>
|
---|
| 2361 | Autoconf TCGETA
|
---|
| 2362 | EOF
|
---|
| 2363 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 2364 | egrep "$ac_pattern" >/dev/null 2>&1; then
|
---|
| 2365 | rm -rf conftest*
|
---|
| 2366 | ac_cv_prog_gcc_traditional=yes
|
---|
| 2367 | fi
|
---|
| 2368 | rm -f conftest*
|
---|
| 2369 |
|
---|
| 2370 | fi
|
---|
| 2371 | fi
|
---|
| 2372 |
|
---|
| 2373 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
|
---|
| 2374 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 2375 | CC="$CC -traditional"
|
---|
| 2376 | fi
|
---|
| 2377 | fi
|
---|
| 2378 |
|
---|
| 2379 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
|
---|
| 2380 | echo "configure:2381: checking return type of signal handlers" >&5
|
---|
| 2381 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
|
---|
| 2382 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 2383 | else
|
---|
| 2384 | cat > conftest.$ac_ext <<EOF
|
---|
| 2385 | #line 2386 "configure"
|
---|
| 2386 | #include "confdefs.h"
|
---|
| 2387 | #include <sys/types.h>
|
---|
| 2388 | #include <signal.h>
|
---|
| 2389 | #ifdef signal
|
---|
| 2390 | #undef signal
|
---|
| 2391 | #endif
|
---|
| 2392 | #ifdef __cplusplus
|
---|
| 2393 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
| 2394 | #else
|
---|
| 2395 | void (*signal ()) ();
|
---|
| 2396 | #endif
|
---|
| 2397 |
|
---|
| 2398 | int main() {
|
---|
| 2399 | int i;
|
---|
| 2400 | ; return 0; }
|
---|
| 2401 | EOF
|
---|
| 2402 | if { (eval echo configure:2403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
| 2403 | rm -rf conftest*
|
---|
| 2404 | ac_cv_type_signal=void
|
---|
| 2405 | else
|
---|
| 2406 | echo "configure: failed program was:" >&5
|
---|
| 2407 | cat conftest.$ac_ext >&5
|
---|
| 2408 | rm -rf conftest*
|
---|
| 2409 | ac_cv_type_signal=int
|
---|
| 2410 | fi
|
---|
| 2411 | rm -f conftest*
|
---|
| 2412 | fi
|
---|
| 2413 |
|
---|
| 2414 | echo "$ac_t""$ac_cv_type_signal" 1>&6
|
---|
| 2415 | cat >> confdefs.h <<EOF
|
---|
| 2416 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
| 2417 | EOF
|
---|
| 2418 |
|
---|
| 2419 |
|
---|
| 2420 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6
|
---|
| 2421 | echo "configure:2422: checking for vprintf" >&5
|
---|
| 2422 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
|
---|
| 2423 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 2424 | else
|
---|
| 2425 | cat > conftest.$ac_ext <<EOF
|
---|
| 2426 | #line 2427 "configure"
|
---|
| 2427 | #include "confdefs.h"
|
---|
| 2428 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 2429 | which can conflict with char vprintf(); below. */
|
---|
| 2430 | #include <assert.h>
|
---|
| 2431 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 2432 | /* We use char because int might match the return type of a gcc2
|
---|
| 2433 | builtin and then its argument prototype would still apply. */
|
---|
| 2434 | char vprintf();
|
---|
| 2435 |
|
---|
| 2436 | int main() {
|
---|
| 2437 |
|
---|
| 2438 | /* The GNU C library defines this for functions which it implements
|
---|
| 2439 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 2440 | something starting with __ and the normal name is an alias. */
|
---|
| 2441 | #if defined (__stub_vprintf) || defined (__stub___vprintf)
|
---|
| 2442 | choke me
|
---|
| 2443 | #else
|
---|
| 2444 | vprintf();
|
---|
| 2445 | #endif
|
---|
| 2446 |
|
---|
| 2447 | ; return 0; }
|
---|
| 2448 | EOF
|
---|
| 2449 | if { (eval echo configure:2450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
| 2450 | rm -rf conftest*
|
---|
| 2451 | eval "ac_cv_func_vprintf=yes"
|
---|
| 2452 | else
|
---|
| 2453 | echo "configure: failed program was:" >&5
|
---|
| 2454 | cat conftest.$ac_ext >&5
|
---|
| 2455 | rm -rf conftest*
|
---|
| 2456 | eval "ac_cv_func_vprintf=no"
|
---|
| 2457 | fi
|
---|
| 2458 | rm -f conftest*
|
---|
| 2459 | fi
|
---|
| 2460 |
|
---|
| 2461 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
|
---|
| 2462 | echo "$ac_t""yes" 1>&6
|
---|
| 2463 | cat >> confdefs.h <<\EOF
|
---|
| 2464 | #define HAVE_VPRINTF 1
|
---|
| 2465 | EOF
|
---|
| 2466 |
|
---|
| 2467 | else
|
---|
| 2468 | echo "$ac_t""no" 1>&6
|
---|
| 2469 | fi
|
---|
| 2470 |
|
---|
| 2471 | if test "$ac_cv_func_vprintf" != yes; then
|
---|
| 2472 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
|
---|
| 2473 | echo "configure:2474: checking for _doprnt" >&5
|
---|
| 2474 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
|
---|
| 2475 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 2476 | else
|
---|
| 2477 | cat > conftest.$ac_ext <<EOF
|
---|
| 2478 | #line 2479 "configure"
|
---|
| 2479 | #include "confdefs.h"
|
---|
| 2480 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 2481 | which can conflict with char _doprnt(); below. */
|
---|
| 2482 | #include <assert.h>
|
---|
| 2483 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 2484 | /* We use char because int might match the return type of a gcc2
|
---|
| 2485 | builtin and then its argument prototype would still apply. */
|
---|
| 2486 | char _doprnt();
|
---|
| 2487 |
|
---|
| 2488 | int main() {
|
---|
| 2489 |
|
---|
| 2490 | /* The GNU C library defines this for functions which it implements
|
---|
| 2491 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 2492 | something starting with __ and the normal name is an alias. */
|
---|
| 2493 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
| 2494 | choke me
|
---|
| 2495 | #else
|
---|
| 2496 | _doprnt();
|
---|
| 2497 | #endif
|
---|
| 2498 |
|
---|
| 2499 | ; return 0; }
|
---|
| 2500 | EOF
|
---|
| 2501 | if { (eval echo configure:2502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
| 2502 | rm -rf conftest*
|
---|
| 2503 | eval "ac_cv_func__doprnt=yes"
|
---|
| 2504 | else
|
---|
| 2505 | echo "configure: failed program was:" >&5
|
---|
| 2506 | cat conftest.$ac_ext >&5
|
---|
| 2507 | rm -rf conftest*
|
---|
| 2508 | eval "ac_cv_func__doprnt=no"
|
---|
| 2509 | fi
|
---|
| 2510 | rm -f conftest*
|
---|
| 2511 | fi
|
---|
| 2512 |
|
---|
| 2513 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
|
---|
| 2514 | echo "$ac_t""yes" 1>&6
|
---|
| 2515 | cat >> confdefs.h <<\EOF
|
---|
| 2516 | #define HAVE_DOPRNT 1
|
---|
| 2517 | EOF
|
---|
| 2518 |
|
---|
| 2519 | else
|
---|
| 2520 | echo "$ac_t""no" 1>&6
|
---|
| 2521 | fi
|
---|
| 2522 |
|
---|
| 2523 | fi
|
---|
| 2524 |
|
---|
| 2525 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
| 2526 | do
|
---|
| 2527 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
| 2528 | echo "configure:2529: checking for $ac_func" >&5
|
---|
| 2529 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
| 2530 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 2531 | else
|
---|
| 2532 | cat > conftest.$ac_ext <<EOF
|
---|
| 2533 | #line 2534 "configure"
|
---|
| 2534 | #include "confdefs.h"
|
---|
| 2535 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 2536 | which can conflict with char $ac_func(); below. */
|
---|
| 2537 | #include <assert.h>
|
---|
| 2538 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 2539 | /* We use char because int might match the return type of a gcc2
|
---|
| 2540 | builtin and then its argument prototype would still apply. */
|
---|
| 2541 | char $ac_func();
|
---|
| 2542 |
|
---|
| 2543 | int main() {
|
---|
| 2544 |
|
---|
| 2545 | /* The GNU C library defines this for functions which it implements
|
---|
| 2546 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 2547 | something starting with __ and the normal name is an alias. */
|
---|
| 2548 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 2549 | choke me
|
---|
| 2550 | #else
|
---|
| 2551 | $ac_func();
|
---|
| 2552 | #endif
|
---|
| 2553 |
|
---|
| 2554 | ; return 0; }
|
---|
| 2555 | EOF
|
---|
| 2556 | if { (eval echo configure:2557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
| 2557 | rm -rf conftest*
|
---|
| 2558 | eval "ac_cv_func_$ac_func=yes"
|
---|
| 2559 | else
|
---|
| 2560 | echo "configure: failed program was:" >&5
|
---|
| 2561 | cat conftest.$ac_ext >&5
|
---|
| 2562 | rm -rf conftest*
|
---|
| 2563 | eval "ac_cv_func_$ac_func=no"
|
---|
| 2564 | fi
|
---|
| 2565 | rm -f conftest*
|
---|
| 2566 | fi
|
---|
| 2567 |
|
---|
| 2568 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
| 2569 | echo "$ac_t""yes" 1>&6
|
---|
| 2570 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
| 2571 | cat >> confdefs.h <<EOF
|
---|
| 2572 | #define $ac_tr_func 1
|
---|
| 2573 | EOF
|
---|
| 2574 |
|
---|
| 2575 | else
|
---|
| 2576 | echo "$ac_t""no" 1>&6
|
---|
| 2577 | fi
|
---|
| 2578 | done
|
---|
| 2579 |
|
---|
| 2580 | for ac_func in ftruncate strstr strcasecmp
|
---|
| 2581 | do
|
---|
| 2582 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
| 2583 | echo "configure:2584: checking for $ac_func" >&5
|
---|
| 2584 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
| 2585 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 2586 | else
|
---|
| 2587 | cat > conftest.$ac_ext <<EOF
|
---|
| 2588 | #line 2589 "configure"
|
---|
| 2589 | #include "confdefs.h"
|
---|
| 2590 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 2591 | which can conflict with char $ac_func(); below. */
|
---|
| 2592 | #include <assert.h>
|
---|
| 2593 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 2594 | /* We use char because int might match the return type of a gcc2
|
---|
| 2595 | builtin and then its argument prototype would still apply. */
|
---|
| 2596 | char $ac_func();
|
---|
| 2597 |
|
---|
| 2598 | int main() {
|
---|
| 2599 |
|
---|
| 2600 | /* The GNU C library defines this for functions which it implements
|
---|
| 2601 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 2602 | something starting with __ and the normal name is an alias. */
|
---|
| 2603 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 2604 | choke me
|
---|
| 2605 | #else
|
---|
| 2606 | $ac_func();
|
---|
| 2607 | #endif
|
---|
| 2608 |
|
---|
| 2609 | ; return 0; }
|
---|
| 2610 | EOF
|
---|
| 2611 | if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
| 2612 | rm -rf conftest*
|
---|
| 2613 | eval "ac_cv_func_$ac_func=yes"
|
---|
| 2614 | else
|
---|
| 2615 | echo "configure: failed program was:" >&5
|
---|
| 2616 | cat conftest.$ac_ext >&5
|
---|
| 2617 | rm -rf conftest*
|
---|
| 2618 | eval "ac_cv_func_$ac_func=no"
|
---|
| 2619 | fi
|
---|
| 2620 | rm -f conftest*
|
---|
| 2621 | fi
|
---|
| 2622 |
|
---|
| 2623 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
| 2624 | echo "$ac_t""yes" 1>&6
|
---|
| 2625 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
| 2626 | cat >> confdefs.h <<EOF
|
---|
| 2627 | #define $ac_tr_func 1
|
---|
| 2628 | EOF
|
---|
| 2629 |
|
---|
| 2630 | else
|
---|
| 2631 | echo "$ac_t""no" 1>&6
|
---|
| 2632 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
|
---|
| 2633 | fi
|
---|
| 2634 | done
|
---|
| 2635 |
|
---|
| 2636 |
|
---|
| 2637 |
|
---|
| 2638 |
|
---|
| 2639 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 2640 | # ---------------------------------------------------------------------------
|
---|
| 2641 | echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
|
---|
| 2642 | echo "configure:2643: checking for HP-UX needing gmalloc" >&5
|
---|
| 2643 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
| 2644 | echo "$ac_t""yes" 1>&6
|
---|
| 2645 | LIBOBJS="$LIBOBJS gmalloc.o"
|
---|
| 2646 | cat >> confdefs.h <<\EOF
|
---|
| 2647 | #define HAVE_VALLOC 1
|
---|
| 2648 | EOF
|
---|
| 2649 |
|
---|
| 2650 | else
|
---|
| 2651 | echo "$ac_t""no" 1>&6
|
---|
| 2652 | for ac_func in valloc
|
---|
| 2653 | do
|
---|
| 2654 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
| 2655 | echo "configure:2656: checking for $ac_func" >&5
|
---|
| 2656 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
| 2657 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 2658 | else
|
---|
| 2659 | cat > conftest.$ac_ext <<EOF
|
---|
| 2660 | #line 2661 "configure"
|
---|
| 2661 | #include "confdefs.h"
|
---|
| 2662 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 2663 | which can conflict with char $ac_func(); below. */
|
---|
| 2664 | #include <assert.h>
|
---|
| 2665 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 2666 | /* We use char because int might match the return type of a gcc2
|
---|
| 2667 | builtin and then its argument prototype would still apply. */
|
---|
| 2668 | char $ac_func();
|
---|
| 2669 |
|
---|
| 2670 | int main() {
|
---|
| 2671 |
|
---|
| 2672 | /* The GNU C library defines this for functions which it implements
|
---|
| 2673 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 2674 | something starting with __ and the normal name is an alias. */
|
---|
| 2675 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 2676 | choke me
|
---|
| 2677 | #else
|
---|
| 2678 | $ac_func();
|
---|
| 2679 | #endif
|
---|
| 2680 |
|
---|
| 2681 | ; return 0; }
|
---|
| 2682 | EOF
|
---|
| 2683 | if { (eval echo configure:2684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
| 2684 | rm -rf conftest*
|
---|
| 2685 | eval "ac_cv_func_$ac_func=yes"
|
---|
| 2686 | else
|
---|
| 2687 | echo "configure: failed program was:" >&5
|
---|
| 2688 | cat conftest.$ac_ext >&5
|
---|
| 2689 | rm -rf conftest*
|
---|
| 2690 | eval "ac_cv_func_$ac_func=no"
|
---|
| 2691 | fi
|
---|
| 2692 | rm -f conftest*
|
---|
| 2693 | fi
|
---|
| 2694 |
|
---|
| 2695 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
| 2696 | echo "$ac_t""yes" 1>&6
|
---|
| 2697 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
| 2698 | cat >> confdefs.h <<EOF
|
---|
| 2699 | #define $ac_tr_func 1
|
---|
| 2700 | EOF
|
---|
| 2701 |
|
---|
| 2702 | else
|
---|
| 2703 | echo "$ac_t""no" 1>&6
|
---|
| 2704 | fi
|
---|
| 2705 | done
|
---|
| 2706 |
|
---|
| 2707 | fi
|
---|
| 2708 |
|
---|
| 2709 | echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
|
---|
| 2710 | echo "configure:2711: checking if malloc debugging is wanted" >&5
|
---|
| 2711 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
| 2712 | if test "${with_dmalloc+set}" = set; then
|
---|
| 2713 | withval="$with_dmalloc"
|
---|
| 2714 | if test "$withval" = yes; then
|
---|
| 2715 | echo "$ac_t""yes" 1>&6
|
---|
| 2716 | cat >> confdefs.h <<\EOF
|
---|
| 2717 | #define WITH_DMALLOC 1
|
---|
| 2718 | EOF
|
---|
| 2719 |
|
---|
| 2720 | LIBS="$LIBS -ldmalloc"
|
---|
| 2721 | LDFLAGS="$LDFLAGS -g"
|
---|
| 2722 | else
|
---|
| 2723 | echo "$ac_t""no" 1>&6
|
---|
| 2724 | fi
|
---|
| 2725 | else
|
---|
| 2726 | echo "$ac_t""no" 1>&6
|
---|
| 2727 | fi
|
---|
| 2728 |
|
---|
| 2729 |
|
---|
| 2730 | echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
|
---|
| 2731 | echo "configure:2732: checking which of rx or regex is wanted" >&5
|
---|
| 2732 | # Check whether --with-regex or --without-regex was given.
|
---|
| 2733 | if test "${with_regex+set}" = set; then
|
---|
| 2734 | withval="$with_regex"
|
---|
| 2735 | if test "$withval" = yes; then
|
---|
| 2736 | ac_with_regex=1
|
---|
| 2737 | echo "$ac_t""regex" 1>&6
|
---|
| 2738 | cat >> confdefs.h <<\EOF
|
---|
| 2739 | #define WITH_REGEX 1
|
---|
| 2740 | EOF
|
---|
| 2741 |
|
---|
| 2742 | LIBOBJS="$LIBOBJS regex.o"
|
---|
| 2743 | fi
|
---|
| 2744 | fi
|
---|
| 2745 |
|
---|
| 2746 | if test -z "$ac_with_regex"; then
|
---|
| 2747 | echo "$ac_t""rx" 1>&6
|
---|
| 2748 | echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
|
---|
| 2749 | echo "configure:2750: checking for re_rx_search" >&5
|
---|
| 2750 | if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
|
---|
| 2751 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 2752 | else
|
---|
| 2753 | cat > conftest.$ac_ext <<EOF
|
---|
| 2754 | #line 2755 "configure"
|
---|
| 2755 | #include "confdefs.h"
|
---|
| 2756 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 2757 | which can conflict with char re_rx_search(); below. */
|
---|
| 2758 | #include <assert.h>
|
---|
| 2759 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 2760 | /* We use char because int might match the return type of a gcc2
|
---|
| 2761 | builtin and then its argument prototype would still apply. */
|
---|
| 2762 | char re_rx_search();
|
---|
| 2763 |
|
---|
| 2764 | int main() {
|
---|
| 2765 |
|
---|
| 2766 | /* The GNU C library defines this for functions which it implements
|
---|
| 2767 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 2768 | something starting with __ and the normal name is an alias. */
|
---|
| 2769 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
| 2770 | choke me
|
---|
| 2771 | #else
|
---|
| 2772 | re_rx_search();
|
---|
| 2773 | #endif
|
---|
| 2774 |
|
---|
| 2775 | ; return 0; }
|
---|
| 2776 | EOF
|
---|
| 2777 | if { (eval echo configure:2778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
| 2778 | rm -rf conftest*
|
---|
| 2779 | eval "ac_cv_func_re_rx_search=yes"
|
---|
| 2780 | else
|
---|
| 2781 | echo "configure: failed program was:" >&5
|
---|
| 2782 | cat conftest.$ac_ext >&5
|
---|
| 2783 | rm -rf conftest*
|
---|
| 2784 | eval "ac_cv_func_re_rx_search=no"
|
---|
| 2785 | fi
|
---|
| 2786 | rm -f conftest*
|
---|
| 2787 | fi
|
---|
| 2788 |
|
---|
| 2789 | if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
|
---|
| 2790 | echo "$ac_t""yes" 1>&6
|
---|
| 2791 | :
|
---|
| 2792 | else
|
---|
| 2793 | echo "$ac_t""no" 1>&6
|
---|
| 2794 | echo $ac_n "checking size of unsigned char *""... $ac_c" 1>&6
|
---|
| 2795 | echo "configure:2796: checking size of unsigned char *" >&5
|
---|
| 2796 | if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char_p'+set}'`\" = set"; then
|
---|
| 2797 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 2798 | else
|
---|
| 2799 | if test "$cross_compiling" = yes; then
|
---|
| 2800 | ac_cv_sizeof_unsigned_char_p=unsigned char *
|
---|
| 2801 | else
|
---|
| 2802 | cat > conftest.$ac_ext <<EOF
|
---|
| 2803 | #line 2804 "configure"
|
---|
| 2804 | #include "confdefs.h"
|
---|
| 2805 | #include <stdio.h>
|
---|
| 2806 | main()
|
---|
| 2807 | {
|
---|
| 2808 | FILE *f=fopen("conftestval", "w");
|
---|
| 2809 | if (!f) exit(1);
|
---|
| 2810 | fprintf(f, "%d\n", sizeof(unsigned char *));
|
---|
| 2811 | exit(0);
|
---|
| 2812 | }
|
---|
| 2813 | EOF
|
---|
| 2814 | if { (eval echo configure:2815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
| 2815 | then
|
---|
| 2816 | ac_cv_sizeof_unsigned_char_p=`cat conftestval`
|
---|
| 2817 | else
|
---|
| 2818 | echo "configure: failed program was:" >&5
|
---|
| 2819 | cat conftest.$ac_ext >&5
|
---|
| 2820 | rm -fr conftest*
|
---|
| 2821 | ac_cv_sizeof_unsigned_char_p=0
|
---|
| 2822 | fi
|
---|
| 2823 | rm -fr conftest*
|
---|
| 2824 | fi
|
---|
| 2825 |
|
---|
| 2826 | fi
|
---|
| 2827 | echo "$ac_t""$ac_cv_sizeof_unsigned_char_p" 1>&6
|
---|
| 2828 | cat >> confdefs.h <<EOF
|
---|
| 2829 | #define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
|
---|
| 2830 | EOF
|
---|
| 2831 |
|
---|
| 2832 |
|
---|
| 2833 | if test "$ac_cv_sizeof_unsigned_char_p" = 8
|
---|
| 2834 | then
|
---|
| 2835 | echo "configure: warning: I'm forcing you to use regex because I can't
|
---|
| 2836 | find a local rx library and the one included with this
|
---|
| 2837 | distribution doesn't work on 64-bit machines like yours" 1>&2
|
---|
| 2838 | LIBOBJS="$LIBOBJS regex.o"
|
---|
| 2839 | else
|
---|
| 2840 | LIBOBJS="$LIBOBJS rx.o"
|
---|
| 2841 | fi
|
---|
| 2842 |
|
---|
| 2843 | fi
|
---|
| 2844 |
|
---|
| 2845 | fi
|
---|
| 2846 |
|
---|
| 2847 | echo $ac_n "checking whether GNU readline requested""... $ac_c" 1>&6
|
---|
| 2848 | echo "configure:2849: checking whether GNU readline requested" >&5
|
---|
| 2849 | # Check whether --with-gnu_readline or --without-gnu_readline was given.
|
---|
| 2850 | if test "${with_gnu_readline+set}" = set; then
|
---|
| 2851 | withval="$with_gnu_readline"
|
---|
| 2852 | if test "$withval" = yes; then
|
---|
| 2853 | echo "$ac_t""yes" 1>&6
|
---|
| 2854 | ac_with_gnu_readline=1
|
---|
| 2855 | else
|
---|
| 2856 | echo "$ac_t""no" 1>&6
|
---|
| 2857 | fi
|
---|
| 2858 | else
|
---|
| 2859 | echo "$ac_t""no" 1>&6
|
---|
| 2860 | fi
|
---|
| 2861 |
|
---|
| 2862 |
|
---|
| 2863 | if test -n "$ac_with_gnu_readline"; then
|
---|
| 2864 | ac_safe=`echo "readline/readline.h" | sed 'y%./+-%__p_%'`
|
---|
| 2865 | echo $ac_n "checking for readline/readline.h""... $ac_c" 1>&6
|
---|
| 2866 | echo "configure:2867: checking for readline/readline.h" >&5
|
---|
| 2867 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
| 2868 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 2869 | else
|
---|
| 2870 | cat > conftest.$ac_ext <<EOF
|
---|
| 2871 | #line 2872 "configure"
|
---|
| 2872 | #include "confdefs.h"
|
---|
| 2873 | #include <readline/readline.h>
|
---|
| 2874 | EOF
|
---|
| 2875 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
| 2876 | { (eval echo configure:2877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
| 2877 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
| 2878 | if test -z "$ac_err"; then
|
---|
| 2879 | rm -rf conftest*
|
---|
| 2880 | eval "ac_cv_header_$ac_safe=yes"
|
---|
| 2881 | else
|
---|
| 2882 | echo "$ac_err" >&5
|
---|
| 2883 | echo "configure: failed program was:" >&5
|
---|
| 2884 | cat conftest.$ac_ext >&5
|
---|
| 2885 | rm -rf conftest*
|
---|
| 2886 | eval "ac_cv_header_$ac_safe=no"
|
---|
| 2887 | fi
|
---|
| 2888 | rm -f conftest*
|
---|
| 2889 | fi
|
---|
| 2890 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
| 2891 | echo "$ac_t""yes" 1>&6
|
---|
| 2892 | ac_mg_readline_header_found=1
|
---|
| 2893 | else
|
---|
| 2894 | echo "$ac_t""no" 1>&6
|
---|
| 2895 | echo "configure: warning: Can't find GNU readline headers; configuring without \
|
---|
| 2896 | GNU readline support" 1>&2
|
---|
| 2897 | fi
|
---|
| 2898 |
|
---|
| 2899 | if test -n "$ac_mg_readline_header_found"; then
|
---|
| 2900 | # first check whether we can find the readline library itself
|
---|
| 2901 | echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
|
---|
| 2902 | echo "configure:2903: checking for main in -lreadline" >&5
|
---|
| 2903 | ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
|
---|
| 2904 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
| 2905 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 2906 | else
|
---|
| 2907 | ac_save_LIBS="$LIBS"
|
---|
| 2908 | LIBS="-lreadline $LIBS"
|
---|
| 2909 | cat > conftest.$ac_ext <<EOF
|
---|
| 2910 | #line 2911 "configure"
|
---|
| 2911 | #include "confdefs.h"
|
---|
| 2912 |
|
---|
| 2913 | int main() {
|
---|
| 2914 | main()
|
---|
| 2915 | ; return 0; }
|
---|
| 2916 | EOF
|
---|
| 2917 | if { (eval echo configure:2918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
| 2918 | rm -rf conftest*
|
---|
| 2919 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
| 2920 | else
|
---|
| 2921 | echo "configure: failed program was:" >&5
|
---|
| 2922 | cat conftest.$ac_ext >&5
|
---|
| 2923 | rm -rf conftest*
|
---|
| 2924 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
| 2925 | fi
|
---|
| 2926 | rm -f conftest*
|
---|
| 2927 | LIBS="$ac_save_LIBS"
|
---|
| 2928 |
|
---|
| 2929 | fi
|
---|
| 2930 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
| 2931 | echo "$ac_t""yes" 1>&6
|
---|
| 2932 | ac_mg_readline_lib_found=1
|
---|
| 2933 | cat >> confdefs.h <<\EOF
|
---|
| 2934 | #define WITH_GNU_READLINE 1
|
---|
| 2935 | EOF
|
---|
| 2936 |
|
---|
| 2937 | LIBS="$LIBS -lreadline"
|
---|
| 2938 | else
|
---|
| 2939 | echo "$ac_t""no" 1>&6
|
---|
| 2940 | echo "configure: warning: Can't find GNU readline library; configuring without \
|
---|
| 2941 | GNU readline support" 1>&2
|
---|
| 2942 | fi
|
---|
| 2943 |
|
---|
| 2944 | if test -n "$ac_mg_readline_lib_found"; then
|
---|
| 2945 | # on some systems, readline needs curses. It is difficult to
|
---|
| 2946 | # determine whether this is necessary on the current system,
|
---|
| 2947 | # since other undefined symbols can be turned up by an
|
---|
| 2948 | # AC_CHECK_LIB(readline, readline) test that are actually defined
|
---|
| 2949 | # by mg itself (e.g. xmalloc, xrealloc). So, if we find libcurses,
|
---|
| 2950 | # we just bung it on and hope for the best.
|
---|
| 2951 | echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
|
---|
| 2952 | echo "configure:2953: checking for main in -lcurses" >&5
|
---|
| 2953 | ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
|
---|
| 2954 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
| 2955 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 2956 | else
|
---|
| 2957 | ac_save_LIBS="$LIBS"
|
---|
| 2958 | LIBS="-lcurses $LIBS"
|
---|
| 2959 | cat > conftest.$ac_ext <<EOF
|
---|
| 2960 | #line 2961 "configure"
|
---|
| 2961 | #include "confdefs.h"
|
---|
| 2962 |
|
---|
| 2963 | int main() {
|
---|
| 2964 | main()
|
---|
| 2965 | ; return 0; }
|
---|
| 2966 | EOF
|
---|
| 2967 | if { (eval echo configure:2968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
| 2968 | rm -rf conftest*
|
---|
| 2969 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
| 2970 | else
|
---|
| 2971 | echo "configure: failed program was:" >&5
|
---|
| 2972 | cat conftest.$ac_ext >&5
|
---|
| 2973 | rm -rf conftest*
|
---|
| 2974 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
| 2975 | fi
|
---|
| 2976 | rm -f conftest*
|
---|
| 2977 | LIBS="$ac_save_LIBS"
|
---|
| 2978 |
|
---|
| 2979 | fi
|
---|
| 2980 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
| 2981 | echo "$ac_t""yes" 1>&6
|
---|
| 2982 | LIBS="$LIBS -lcurses"
|
---|
| 2983 | else
|
---|
| 2984 | echo "$ac_t""no" 1>&6
|
---|
| 2985 | fi
|
---|
| 2986 |
|
---|
| 2987 | fi
|
---|
| 2988 | fi
|
---|
| 2989 | fi
|
---|
| 2990 |
|
---|
| 2991 |
|
---|
| 2992 | # ---------------------------------------------------------------------------
|
---|
| 2993 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
| 2994 | LIBOBJS="$LIBOBJS xmalloc.o error.o"
|
---|
| 2995 | fi
|
---|
| 2996 |
|
---|
| 2997 |
|
---|
| 2998 | # ---------------------------------------------------------------------------
|
---|
| 2999 | # see if the user wants to override use of long long
|
---|
| 3000 | # Check whether --enable-override-longlong or --disable-override-longlong was given.
|
---|
| 3001 | if test "${enable_override_longlong+set}" = set; then
|
---|
| 3002 | enableval="$enable_override_longlong"
|
---|
| 3003 | cat >> confdefs.h <<\EOF
|
---|
| 3004 | #define DISABLE_LONG_LONG 1
|
---|
| 3005 | EOF
|
---|
| 3006 |
|
---|
| 3007 | fi
|
---|
| 3008 |
|
---|
| 3009 |
|
---|
| 3010 | # ---------------------------------------------------------------------------
|
---|
| 3011 |
|
---|
| 3012 | trap '' 1 2 15
|
---|
| 3013 | cat > confcache <<\EOF
|
---|
| 3014 | # This file is a shell script that caches the results of configure
|
---|
| 3015 | # tests run on this system so they can be shared between configure
|
---|
| 3016 | # scripts and configure runs. It is not useful on other systems.
|
---|
| 3017 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
| 3018 | #
|
---|
| 3019 | # By default, configure uses ./config.cache as the cache file,
|
---|
| 3020 | # creating it if it does not exist already. You can give configure
|
---|
| 3021 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
| 3022 | # what configure does when it calls configure scripts in
|
---|
| 3023 | # subdirectories, so they share the cache.
|
---|
| 3024 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
| 3025 | # config.status only pays attention to the cache file if you give it the
|
---|
| 3026 | # --recheck option to rerun configure.
|
---|
| 3027 | #
|
---|
| 3028 | EOF
|
---|
| 3029 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 3030 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
| 3031 | # So, don't put newlines in cache variables' values.
|
---|
| 3032 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 3033 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
| 3034 | (set) 2>&1 |
|
---|
| 3035 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
| 3036 | *ac_space=\ *)
|
---|
| 3037 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
| 3038 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
| 3039 | sed -n \
|
---|
| 3040 | -e "s/'/'\\\\''/g" \
|
---|
| 3041 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
| 3042 | ;;
|
---|
| 3043 | *)
|
---|
| 3044 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
| 3045 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
| 3046 | ;;
|
---|
| 3047 | esac >> confcache
|
---|
| 3048 | if cmp -s $cache_file confcache; then
|
---|
| 3049 | :
|
---|
| 3050 | else
|
---|
| 3051 | if test -w $cache_file; then
|
---|
| 3052 | echo "updating cache $cache_file"
|
---|
| 3053 | cat confcache > $cache_file
|
---|
| 3054 | else
|
---|
| 3055 | echo "not updating unwritable cache $cache_file"
|
---|
| 3056 | fi
|
---|
| 3057 | fi
|
---|
| 3058 | rm -f confcache
|
---|
| 3059 |
|
---|
| 3060 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
| 3061 |
|
---|
| 3062 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 3063 | # Let make expand exec_prefix.
|
---|
| 3064 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 3065 |
|
---|
| 3066 | # Any assignment to VPATH causes Sun make to only execute
|
---|
| 3067 | # the first set of double-colon rules, so remove it if not needed.
|
---|
| 3068 | # If there is a colon in the path, we need to keep it.
|
---|
| 3069 | if test "x$srcdir" = x.; then
|
---|
| 3070 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
---|
| 3071 | fi
|
---|
| 3072 |
|
---|
| 3073 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
---|
| 3074 |
|
---|
| 3075 | DEFS=-DHAVE_CONFIG_H
|
---|
| 3076 |
|
---|
| 3077 | # Without the "./", some shells look in PATH for config.status.
|
---|
| 3078 | : ${CONFIG_STATUS=./config.status}
|
---|
| 3079 |
|
---|
| 3080 | echo creating $CONFIG_STATUS
|
---|
| 3081 | rm -f $CONFIG_STATUS
|
---|
| 3082 | cat > $CONFIG_STATUS <<EOF
|
---|
| 3083 | #! /bin/sh
|
---|
| 3084 | # Generated automatically by configure.
|
---|
| 3085 | # Run this file to recreate the current configuration.
|
---|
| 3086 | # This directory was configured as follows,
|
---|
| 3087 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
| 3088 | #
|
---|
| 3089 | # $0 $ac_configure_args
|
---|
| 3090 | #
|
---|
| 3091 | # Compiler output produced by configure, useful for debugging
|
---|
| 3092 | # configure, is in ./config.log if it exists.
|
---|
| 3093 |
|
---|
| 3094 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
---|
| 3095 | for ac_option
|
---|
| 3096 | do
|
---|
| 3097 | case "\$ac_option" in
|
---|
| 3098 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
| 3099 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
---|
| 3100 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
---|
| 3101 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
---|
| 3102 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
---|
| 3103 | exit 0 ;;
|
---|
| 3104 | -help | --help | --hel | --he | --h)
|
---|
| 3105 | echo "\$ac_cs_usage"; exit 0 ;;
|
---|
| 3106 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
---|
| 3107 | esac
|
---|
| 3108 | done
|
---|
| 3109 |
|
---|
| 3110 | ac_given_srcdir=$srcdir
|
---|
| 3111 | ac_given_INSTALL="$INSTALL"
|
---|
| 3112 |
|
---|
| 3113 | trap 'rm -fr `echo "Makefile text/Makefile src/images/Makefile
|
---|
| 3114 | scripts/Makefile lib/Makefile docs/Makefile test/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
---|
| 3115 | EOF
|
---|
| 3116 | cat >> $CONFIG_STATUS <<EOF
|
---|
| 3117 |
|
---|
| 3118 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 3119 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
---|
| 3120 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
---|
| 3121 | $ac_vpsub
|
---|
| 3122 | $extrasub
|
---|
| 3123 | s%@SHELL@%$SHELL%g
|
---|
| 3124 | s%@CFLAGS@%$CFLAGS%g
|
---|
| 3125 | s%@CPPFLAGS@%$CPPFLAGS%g
|
---|
| 3126 | s%@CXXFLAGS@%$CXXFLAGS%g
|
---|
| 3127 | s%@FFLAGS@%$FFLAGS%g
|
---|
| 3128 | s%@DEFS@%$DEFS%g
|
---|
| 3129 | s%@LDFLAGS@%$LDFLAGS%g
|
---|
| 3130 | s%@LIBS@%$LIBS%g
|
---|
| 3131 | s%@exec_prefix@%$exec_prefix%g
|
---|
| 3132 | s%@prefix@%$prefix%g
|
---|
| 3133 | s%@program_transform_name@%$program_transform_name%g
|
---|
| 3134 | s%@bindir@%$bindir%g
|
---|
| 3135 | s%@sbindir@%$sbindir%g
|
---|
| 3136 | s%@libexecdir@%$libexecdir%g
|
---|
| 3137 | s%@datadir@%$datadir%g
|
---|
| 3138 | s%@sysconfdir@%$sysconfdir%g
|
---|
| 3139 | s%@sharedstatedir@%$sharedstatedir%g
|
---|
| 3140 | s%@localstatedir@%$localstatedir%g
|
---|
| 3141 | s%@libdir@%$libdir%g
|
---|
| 3142 | s%@includedir@%$includedir%g
|
---|
| 3143 | s%@oldincludedir@%$oldincludedir%g
|
---|
| 3144 | s%@infodir@%$infodir%g
|
---|
| 3145 | s%@mandir@%$mandir%g
|
---|
| 3146 | s%@PACKAGE@%$PACKAGE%g
|
---|
| 3147 | s%@VERSION@%$VERSION%g
|
---|
| 3148 | s%@CXX@%$CXX%g
|
---|
| 3149 | s%@AWK@%$AWK%g
|
---|
| 3150 | s%@YACC@%$YACC%g
|
---|
| 3151 | s%@CC@%$CC%g
|
---|
| 3152 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
---|
| 3153 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
---|
| 3154 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
---|
| 3155 | s%@LN_S@%$LN_S%g
|
---|
| 3156 | s%@SET_MAKE@%$SET_MAKE%g
|
---|
| 3157 | s%@RANLIB@%$RANLIB%g
|
---|
| 3158 | s%@CPP@%$CPP%g
|
---|
| 3159 | s%@U@%$U%g
|
---|
| 3160 | s%@ANSI2KNR@%$ANSI2KNR%g
|
---|
| 3161 | s%@ALLOCA@%$ALLOCA%g
|
---|
| 3162 | s%@LIBOBJS@%$LIBOBJS%g
|
---|
| 3163 |
|
---|
| 3164 | CEOF
|
---|
| 3165 | EOF
|
---|
| 3166 |
|
---|
| 3167 | cat >> $CONFIG_STATUS <<\EOF
|
---|
| 3168 |
|
---|
| 3169 | # Split the substitutions into bite-sized pieces for seds with
|
---|
| 3170 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
| 3171 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
---|
| 3172 | ac_file=1 # Number of current file.
|
---|
| 3173 | ac_beg=1 # First line for current file.
|
---|
| 3174 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
---|
| 3175 | ac_more_lines=:
|
---|
| 3176 | ac_sed_cmds=""
|
---|
| 3177 | while $ac_more_lines; do
|
---|
| 3178 | if test $ac_beg -gt 1; then
|
---|
| 3179 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
| 3180 | else
|
---|
| 3181 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
| 3182 | fi
|
---|
| 3183 | if test ! -s conftest.s$ac_file; then
|
---|
| 3184 | ac_more_lines=false
|
---|
| 3185 | rm -f conftest.s$ac_file
|
---|
| 3186 | else
|
---|
| 3187 | if test -z "$ac_sed_cmds"; then
|
---|
| 3188 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
---|
| 3189 | else
|
---|
| 3190 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
---|
| 3191 | fi
|
---|
| 3192 | ac_file=`expr $ac_file + 1`
|
---|
| 3193 | ac_beg=$ac_end
|
---|
| 3194 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
---|
| 3195 | fi
|
---|
| 3196 | done
|
---|
| 3197 | if test -z "$ac_sed_cmds"; then
|
---|
| 3198 | ac_sed_cmds=cat
|
---|
| 3199 | fi
|
---|
| 3200 | EOF
|
---|
| 3201 |
|
---|
| 3202 | cat >> $CONFIG_STATUS <<EOF
|
---|
| 3203 |
|
---|
| 3204 | CONFIG_FILES=\${CONFIG_FILES-"Makefile text/Makefile src/images/Makefile
|
---|
| 3205 | scripts/Makefile lib/Makefile docs/Makefile test/Makefile"}
|
---|
| 3206 | EOF
|
---|
| 3207 | cat >> $CONFIG_STATUS <<\EOF
|
---|
| 3208 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
---|
| 3209 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 3210 | case "$ac_file" in
|
---|
| 3211 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
| 3212 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
| 3213 | *) ac_file_in="${ac_file}.in" ;;
|
---|
| 3214 | esac
|
---|
| 3215 |
|
---|
| 3216 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
---|
| 3217 |
|
---|
| 3218 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
| 3219 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
| 3220 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
| 3221 | # The file is in a subdirectory.
|
---|
| 3222 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
| 3223 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
---|
| 3224 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 3225 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
| 3226 | else
|
---|
| 3227 | ac_dir_suffix= ac_dots=
|
---|
| 3228 | fi
|
---|
| 3229 |
|
---|
| 3230 | case "$ac_given_srcdir" in
|
---|
| 3231 | .) srcdir=.
|
---|
| 3232 | if test -z "$ac_dots"; then top_srcdir=.
|
---|
| 3233 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
---|
| 3234 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
---|
| 3235 | *) # Relative path.
|
---|
| 3236 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
---|
| 3237 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
---|
| 3238 | esac
|
---|
| 3239 |
|
---|
| 3240 | case "$ac_given_INSTALL" in
|
---|
| 3241 | [/$]*) INSTALL="$ac_given_INSTALL" ;;
|
---|
| 3242 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
---|
| 3243 | esac
|
---|
| 3244 |
|
---|
| 3245 | echo creating "$ac_file"
|
---|
| 3246 | rm -f "$ac_file"
|
---|
| 3247 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
---|
| 3248 | case "$ac_file" in
|
---|
| 3249 | *Makefile*) ac_comsub="1i\\
|
---|
| 3250 | # $configure_input" ;;
|
---|
| 3251 | *) ac_comsub= ;;
|
---|
| 3252 | esac
|
---|
| 3253 |
|
---|
| 3254 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
| 3255 | sed -e "$ac_comsub
|
---|
| 3256 | s%@configure_input@%$configure_input%g
|
---|
| 3257 | s%@srcdir@%$srcdir%g
|
---|
| 3258 | s%@top_srcdir@%$top_srcdir%g
|
---|
| 3259 | s%@INSTALL@%$INSTALL%g
|
---|
| 3260 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
---|
| 3261 | fi; done
|
---|
| 3262 | rm -f conftest.s*
|
---|
| 3263 |
|
---|
| 3264 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
| 3265 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
| 3266 | #
|
---|
| 3267 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
| 3268 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
| 3269 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
---|
| 3270 | ac_dC='\3'
|
---|
| 3271 | ac_dD='%g'
|
---|
| 3272 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
---|
| 3273 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
| 3274 | ac_uB='\([ ]\)%\1#\2define\3'
|
---|
| 3275 | ac_uC=' '
|
---|
| 3276 | ac_uD='\4%g'
|
---|
| 3277 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
| 3278 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
| 3279 | ac_eB='$%\1#\2define\3'
|
---|
| 3280 | ac_eC=' '
|
---|
| 3281 | ac_eD='%g'
|
---|
| 3282 |
|
---|
| 3283 | if test "${CONFIG_HEADERS+set}" != set; then
|
---|
| 3284 | EOF
|
---|
| 3285 | cat >> $CONFIG_STATUS <<EOF
|
---|
| 3286 | CONFIG_HEADERS="config.h"
|
---|
| 3287 | EOF
|
---|
| 3288 | cat >> $CONFIG_STATUS <<\EOF
|
---|
| 3289 | fi
|
---|
| 3290 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
---|
| 3291 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 3292 | case "$ac_file" in
|
---|
| 3293 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
| 3294 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
| 3295 | *) ac_file_in="${ac_file}.in" ;;
|
---|
| 3296 | esac
|
---|
| 3297 |
|
---|
| 3298 | echo creating $ac_file
|
---|
| 3299 |
|
---|
| 3300 | rm -f conftest.frag conftest.in conftest.out
|
---|
| 3301 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
| 3302 | cat $ac_file_inputs > conftest.in
|
---|
| 3303 |
|
---|
| 3304 | EOF
|
---|
| 3305 |
|
---|
| 3306 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
---|
| 3307 | # the proper values into config.h.in to produce config.h. And first:
|
---|
| 3308 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 3309 | # Protect against being in an unquoted here document in config.status.
|
---|
| 3310 | rm -f conftest.vals
|
---|
| 3311 | cat > conftest.hdr <<\EOF
|
---|
| 3312 | s/[\\&%]/\\&/g
|
---|
| 3313 | s%[\\$`]%\\&%g
|
---|
| 3314 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
---|
| 3315 | s%ac_d%ac_u%gp
|
---|
| 3316 | s%ac_u%ac_e%gp
|
---|
| 3317 | EOF
|
---|
| 3318 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
---|
| 3319 | rm -f conftest.hdr
|
---|
| 3320 |
|
---|
| 3321 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
| 3322 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 3323 | # on some systems where configure will not decide to define it.
|
---|
| 3324 | cat >> conftest.vals <<\EOF
|
---|
| 3325 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
---|
| 3326 | EOF
|
---|
| 3327 |
|
---|
| 3328 | # Break up conftest.vals because some shells have a limit on
|
---|
| 3329 | # the size of here documents, and old seds have small limits too.
|
---|
| 3330 |
|
---|
| 3331 | rm -f conftest.tail
|
---|
| 3332 | while :
|
---|
| 3333 | do
|
---|
| 3334 | ac_lines=`grep -c . conftest.vals`
|
---|
| 3335 | # grep -c gives empty output for an empty file on some AIX systems.
|
---|
| 3336 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
---|
| 3337 | # Write a limited-size here document to conftest.frag.
|
---|
| 3338 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
---|
| 3339 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
---|
| 3340 | echo 'CEOF
|
---|
| 3341 | sed -f conftest.frag conftest.in > conftest.out
|
---|
| 3342 | rm -f conftest.in
|
---|
| 3343 | mv conftest.out conftest.in
|
---|
| 3344 | ' >> $CONFIG_STATUS
|
---|
| 3345 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
---|
| 3346 | rm -f conftest.vals
|
---|
| 3347 | mv conftest.tail conftest.vals
|
---|
| 3348 | done
|
---|
| 3349 | rm -f conftest.vals
|
---|
| 3350 |
|
---|
| 3351 | cat >> $CONFIG_STATUS <<\EOF
|
---|
| 3352 | rm -f conftest.frag conftest.h
|
---|
| 3353 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
---|
| 3354 | cat conftest.in >> conftest.h
|
---|
| 3355 | rm -f conftest.in
|
---|
| 3356 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
---|
| 3357 | echo "$ac_file is unchanged"
|
---|
| 3358 | rm -f conftest.h
|
---|
| 3359 | else
|
---|
| 3360 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
| 3361 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
| 3362 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
| 3363 | # The file is in a subdirectory.
|
---|
| 3364 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
| 3365 | fi
|
---|
| 3366 | rm -f $ac_file
|
---|
| 3367 | mv conftest.h $ac_file
|
---|
| 3368 | fi
|
---|
| 3369 | fi; done
|
---|
| 3370 |
|
---|
| 3371 | EOF
|
---|
| 3372 | cat >> $CONFIG_STATUS <<EOF
|
---|
| 3373 |
|
---|
| 3374 | EOF
|
---|
| 3375 | cat >> $CONFIG_STATUS <<\EOF
|
---|
| 3376 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
|
---|
| 3377 | exit 0
|
---|
| 3378 | EOF
|
---|
| 3379 | chmod +x $CONFIG_STATUS
|
---|
| 3380 | rm -fr confdefs* $ac_clean_files
|
---|
| 3381 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
---|
| 3382 |
|
---|