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