| 1 | #! /bin/sh
|
|---|
| 2 |
|
|---|
| 3 | # Guess values for system-dependent variables and create Makefiles.
|
|---|
| 4 | # Generated automatically using autoconf version 2.13
|
|---|
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
|---|
| 6 | #
|
|---|
| 7 | # This configure script is free software; the Free Software Foundation
|
|---|
| 8 | # gives unlimited permission to copy, distribute and modify it.
|
|---|
| 9 |
|
|---|
| 10 | # Defaults:
|
|---|
| 11 | ac_help=
|
|---|
| 12 | ac_default_prefix=/usr/local
|
|---|
| 13 | # Any additions from configure.in:
|
|---|
| 14 |
|
|---|
| 15 | # Initialize some variables set by options.
|
|---|
| 16 | # The variables have the same names as the options, with
|
|---|
| 17 | # dashes changed to underlines.
|
|---|
| 18 | build=NONE
|
|---|
| 19 | cache_file=./config.cache
|
|---|
| 20 | exec_prefix=NONE
|
|---|
| 21 | host=NONE
|
|---|
| 22 | no_create=
|
|---|
| 23 | nonopt=NONE
|
|---|
| 24 | no_recursion=
|
|---|
| 25 | prefix=NONE
|
|---|
| 26 | program_prefix=NONE
|
|---|
| 27 | program_suffix=NONE
|
|---|
| 28 | program_transform_name=s,x,x,
|
|---|
| 29 | silent=
|
|---|
| 30 | site=
|
|---|
| 31 | sitefile=
|
|---|
| 32 | srcdir=
|
|---|
| 33 | target=NONE
|
|---|
| 34 | verbose=
|
|---|
| 35 | x_includes=NONE
|
|---|
| 36 | x_libraries=NONE
|
|---|
| 37 | bindir='${exec_prefix}/bin'
|
|---|
| 38 | sbindir='${exec_prefix}/sbin'
|
|---|
| 39 | libexecdir='${exec_prefix}/libexec'
|
|---|
| 40 | datadir='${prefix}/share'
|
|---|
| 41 | sysconfdir='${prefix}/etc'
|
|---|
| 42 | sharedstatedir='${prefix}/com'
|
|---|
| 43 | localstatedir='${prefix}/var'
|
|---|
| 44 | libdir='${exec_prefix}/lib'
|
|---|
| 45 | includedir='${prefix}/include'
|
|---|
| 46 | oldincludedir='/usr/include'
|
|---|
| 47 | infodir='${prefix}/info'
|
|---|
| 48 | mandir='${prefix}/man'
|
|---|
| 49 |
|
|---|
| 50 | # Initialize some other variables.
|
|---|
| 51 | subdirs=
|
|---|
| 52 | MFLAGS= MAKEFLAGS=
|
|---|
| 53 | SHELL=${CONFIG_SHELL-/bin/sh}
|
|---|
| 54 | # Maximum number of lines to put in a shell here document.
|
|---|
| 55 | ac_max_here_lines=12
|
|---|
| 56 |
|
|---|
| 57 | ac_prev=
|
|---|
| 58 | for ac_option
|
|---|
| 59 | do
|
|---|
| 60 |
|
|---|
| 61 | # If the previous option needs an argument, assign it.
|
|---|
| 62 | if test -n "$ac_prev"; then
|
|---|
| 63 | eval "$ac_prev=\$ac_option"
|
|---|
| 64 | ac_prev=
|
|---|
| 65 | continue
|
|---|
| 66 | fi
|
|---|
| 67 |
|
|---|
| 68 | case "$ac_option" in
|
|---|
| 69 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|---|
| 70 | *) ac_optarg= ;;
|
|---|
| 71 | esac
|
|---|
| 72 |
|
|---|
| 73 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
|---|
| 74 |
|
|---|
| 75 | case "$ac_option" in
|
|---|
| 76 |
|
|---|
| 77 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|---|
| 78 | ac_prev=bindir ;;
|
|---|
| 79 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
|---|
| 80 | bindir="$ac_optarg" ;;
|
|---|
| 81 |
|
|---|
| 82 | -build | --build | --buil | --bui | --bu)
|
|---|
| 83 | ac_prev=build ;;
|
|---|
| 84 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
|---|
| 85 | build="$ac_optarg" ;;
|
|---|
| 86 |
|
|---|
| 87 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
|---|
| 88 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|---|
| 89 | ac_prev=cache_file ;;
|
|---|
| 90 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|---|
| 91 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|---|
| 92 | cache_file="$ac_optarg" ;;
|
|---|
| 93 |
|
|---|
| 94 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
|---|
| 95 | ac_prev=datadir ;;
|
|---|
| 96 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
|---|
| 97 | | --da=*)
|
|---|
| 98 | datadir="$ac_optarg" ;;
|
|---|
| 99 |
|
|---|
| 100 | -disable-* | --disable-*)
|
|---|
| 101 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
|---|
| 102 | # Reject names that are not valid shell variable names.
|
|---|
| 103 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 104 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 105 | fi
|
|---|
| 106 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 107 | eval "enable_${ac_feature}=no" ;;
|
|---|
| 108 |
|
|---|
| 109 | -enable-* | --enable-*)
|
|---|
| 110 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
|---|
| 111 | # Reject names that are not valid shell variable names.
|
|---|
| 112 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 113 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 114 | fi
|
|---|
| 115 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 116 | case "$ac_option" in
|
|---|
| 117 | *=*) ;;
|
|---|
| 118 | *) ac_optarg=yes ;;
|
|---|
| 119 | esac
|
|---|
| 120 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
|---|
| 121 |
|
|---|
| 122 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
|---|
| 123 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
|---|
| 124 | | --exec | --exe | --ex)
|
|---|
| 125 | ac_prev=exec_prefix ;;
|
|---|
| 126 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
|---|
| 127 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
|---|
| 128 | | --exec=* | --exe=* | --ex=*)
|
|---|
| 129 | exec_prefix="$ac_optarg" ;;
|
|---|
| 130 |
|
|---|
| 131 | -gas | --gas | --ga | --g)
|
|---|
| 132 | # Obsolete; use --with-gas.
|
|---|
| 133 | with_gas=yes ;;
|
|---|
| 134 |
|
|---|
| 135 | -help | --help | --hel | --he)
|
|---|
| 136 | # Omit some internal or obsolete options to make the list less imposing.
|
|---|
| 137 | # This message is too long to be a string in the A/UX 3.1 sh.
|
|---|
| 138 | cat << EOF
|
|---|
| 139 | Usage: configure [options] [host]
|
|---|
| 140 | Options: [defaults in brackets after descriptions]
|
|---|
| 141 | Configuration:
|
|---|
| 142 | --cache-file=FILE cache test results in FILE
|
|---|
| 143 | --help print this message
|
|---|
| 144 | --no-create do not create output files
|
|---|
| 145 | --quiet, --silent do not print \`checking...' messages
|
|---|
| 146 | --site-file=FILE use FILE as the site file
|
|---|
| 147 | --version print the version of autoconf that created configure
|
|---|
| 148 | Directory and file names:
|
|---|
| 149 | --prefix=PREFIX install architecture-independent files in PREFIX
|
|---|
| 150 | [$ac_default_prefix]
|
|---|
| 151 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
|---|
| 152 | [same as prefix]
|
|---|
| 153 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
|---|
| 154 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
|---|
| 155 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
|---|
| 156 | --datadir=DIR read-only architecture-independent data in DIR
|
|---|
| 157 | [PREFIX/share]
|
|---|
| 158 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
|---|
| 159 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
|---|
| 160 | [PREFIX/com]
|
|---|
| 161 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
|---|
| 162 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
|---|
| 163 | --includedir=DIR C header files in DIR [PREFIX/include]
|
|---|
| 164 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
|---|
| 165 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
|---|
| 166 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
|---|
| 167 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
|---|
| 168 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
|---|
| 169 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
|---|
| 170 | --program-transform-name=PROGRAM
|
|---|
| 171 | run sed PROGRAM on installed program names
|
|---|
| 172 | EOF
|
|---|
| 173 | cat << EOF
|
|---|
| 174 | Host type:
|
|---|
| 175 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
|---|
| 176 | --host=HOST configure for HOST [guessed]
|
|---|
| 177 | --target=TARGET configure for TARGET [TARGET=HOST]
|
|---|
| 178 | Features and packages:
|
|---|
| 179 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|---|
| 180 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|---|
| 181 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
|---|
| 182 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
|---|
| 183 | --x-includes=DIR X include files are in DIR
|
|---|
| 184 | --x-libraries=DIR X library files are in DIR
|
|---|
| 185 | EOF
|
|---|
| 186 | if test -n "$ac_help"; then
|
|---|
| 187 | echo "--enable and --with options recognized:$ac_help"
|
|---|
| 188 | fi
|
|---|
| 189 | exit 0 ;;
|
|---|
| 190 |
|
|---|
| 191 | -host | --host | --hos | --ho)
|
|---|
| 192 | ac_prev=host ;;
|
|---|
| 193 | -host=* | --host=* | --hos=* | --ho=*)
|
|---|
| 194 | host="$ac_optarg" ;;
|
|---|
| 195 |
|
|---|
| 196 | -includedir | --includedir | --includedi | --included | --include \
|
|---|
| 197 | | --includ | --inclu | --incl | --inc)
|
|---|
| 198 | ac_prev=includedir ;;
|
|---|
| 199 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|---|
| 200 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
|---|
| 201 | includedir="$ac_optarg" ;;
|
|---|
| 202 |
|
|---|
| 203 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
|---|
| 204 | ac_prev=infodir ;;
|
|---|
| 205 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
|---|
| 206 | infodir="$ac_optarg" ;;
|
|---|
| 207 |
|
|---|
| 208 | -libdir | --libdir | --libdi | --libd)
|
|---|
| 209 | ac_prev=libdir ;;
|
|---|
| 210 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
|---|
| 211 | libdir="$ac_optarg" ;;
|
|---|
| 212 |
|
|---|
| 213 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|---|
| 214 | | --libexe | --libex | --libe)
|
|---|
| 215 | ac_prev=libexecdir ;;
|
|---|
| 216 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|---|
| 217 | | --libexe=* | --libex=* | --libe=*)
|
|---|
| 218 | libexecdir="$ac_optarg" ;;
|
|---|
| 219 |
|
|---|
| 220 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
|---|
| 221 | | --localstate | --localstat | --localsta | --localst \
|
|---|
| 222 | | --locals | --local | --loca | --loc | --lo)
|
|---|
| 223 | ac_prev=localstatedir ;;
|
|---|
| 224 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
|---|
| 225 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
|---|
| 226 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
|---|
| 227 | localstatedir="$ac_optarg" ;;
|
|---|
| 228 |
|
|---|
| 229 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|---|
| 230 | ac_prev=mandir ;;
|
|---|
| 231 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
|---|
| 232 | mandir="$ac_optarg" ;;
|
|---|
| 233 |
|
|---|
| 234 | -nfp | --nfp | --nf)
|
|---|
| 235 | # Obsolete; use --without-fp.
|
|---|
| 236 | with_fp=no ;;
|
|---|
| 237 |
|
|---|
| 238 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 239 | | --no-cr | --no-c)
|
|---|
| 240 | no_create=yes ;;
|
|---|
| 241 |
|
|---|
| 242 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 243 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
|---|
| 244 | no_recursion=yes ;;
|
|---|
| 245 |
|
|---|
| 246 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
|---|
| 247 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
|---|
| 248 | | --oldin | --oldi | --old | --ol | --o)
|
|---|
| 249 | ac_prev=oldincludedir ;;
|
|---|
| 250 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
|---|
| 251 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
|---|
| 252 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
|---|
| 253 | oldincludedir="$ac_optarg" ;;
|
|---|
| 254 |
|
|---|
| 255 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|---|
| 256 | ac_prev=prefix ;;
|
|---|
| 257 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
|---|
| 258 | prefix="$ac_optarg" ;;
|
|---|
| 259 |
|
|---|
| 260 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
|---|
| 261 | | --program-pre | --program-pr | --program-p)
|
|---|
| 262 | ac_prev=program_prefix ;;
|
|---|
| 263 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
|---|
| 264 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
|---|
| 265 | program_prefix="$ac_optarg" ;;
|
|---|
| 266 |
|
|---|
| 267 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
|---|
| 268 | | --program-suf | --program-su | --program-s)
|
|---|
| 269 | ac_prev=program_suffix ;;
|
|---|
| 270 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
|---|
| 271 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
|---|
| 272 | program_suffix="$ac_optarg" ;;
|
|---|
| 273 |
|
|---|
| 274 | -program-transform-name | --program-transform-name \
|
|---|
| 275 | | --program-transform-nam | --program-transform-na \
|
|---|
| 276 | | --program-transform-n | --program-transform- \
|
|---|
| 277 | | --program-transform | --program-transfor \
|
|---|
| 278 | | --program-transfo | --program-transf \
|
|---|
| 279 | | --program-trans | --program-tran \
|
|---|
| 280 | | --progr-tra | --program-tr | --program-t)
|
|---|
| 281 | ac_prev=program_transform_name ;;
|
|---|
| 282 | -program-transform-name=* | --program-transform-name=* \
|
|---|
| 283 | | --program-transform-nam=* | --program-transform-na=* \
|
|---|
| 284 | | --program-transform-n=* | --program-transform-=* \
|
|---|
| 285 | | --program-transform=* | --program-transfor=* \
|
|---|
| 286 | | --program-transfo=* | --program-transf=* \
|
|---|
| 287 | | --program-trans=* | --program-tran=* \
|
|---|
| 288 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
|---|
| 289 | program_transform_name="$ac_optarg" ;;
|
|---|
| 290 |
|
|---|
| 291 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|---|
| 292 | | -silent | --silent | --silen | --sile | --sil)
|
|---|
| 293 | silent=yes ;;
|
|---|
| 294 |
|
|---|
| 295 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
|---|
| 296 | ac_prev=sbindir ;;
|
|---|
| 297 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
|---|
| 298 | | --sbi=* | --sb=*)
|
|---|
| 299 | sbindir="$ac_optarg" ;;
|
|---|
| 300 |
|
|---|
| 301 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
|---|
| 302 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
|---|
| 303 | | --sharedst | --shareds | --shared | --share | --shar \
|
|---|
| 304 | | --sha | --sh)
|
|---|
| 305 | ac_prev=sharedstatedir ;;
|
|---|
| 306 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
|---|
| 307 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
|---|
| 308 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
|---|
| 309 | | --sha=* | --sh=*)
|
|---|
| 310 | sharedstatedir="$ac_optarg" ;;
|
|---|
| 311 |
|
|---|
| 312 | -site | --site | --sit)
|
|---|
| 313 | ac_prev=site ;;
|
|---|
| 314 | -site=* | --site=* | --sit=*)
|
|---|
| 315 | site="$ac_optarg" ;;
|
|---|
| 316 |
|
|---|
| 317 | -site-file | --site-file | --site-fil | --site-fi | --site-f)
|
|---|
| 318 | ac_prev=sitefile ;;
|
|---|
| 319 | -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
|
|---|
| 320 | sitefile="$ac_optarg" ;;
|
|---|
| 321 |
|
|---|
| 322 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|---|
| 323 | ac_prev=srcdir ;;
|
|---|
| 324 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|---|
| 325 | srcdir="$ac_optarg" ;;
|
|---|
| 326 |
|
|---|
| 327 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|---|
| 328 | | --syscon | --sysco | --sysc | --sys | --sy)
|
|---|
| 329 | ac_prev=sysconfdir ;;
|
|---|
| 330 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|---|
| 331 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
|---|
| 332 | sysconfdir="$ac_optarg" ;;
|
|---|
| 333 |
|
|---|
| 334 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
|---|
| 335 | ac_prev=target ;;
|
|---|
| 336 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
|---|
| 337 | target="$ac_optarg" ;;
|
|---|
| 338 |
|
|---|
| 339 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|---|
| 340 | verbose=yes ;;
|
|---|
| 341 |
|
|---|
| 342 | -version | --version | --versio | --versi | --vers)
|
|---|
| 343 | echo "configure generated by autoconf version 2.13"
|
|---|
| 344 | exit 0 ;;
|
|---|
| 345 |
|
|---|
| 346 | -with-* | --with-*)
|
|---|
| 347 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
|---|
| 348 | # Reject names that are not valid shell variable names.
|
|---|
| 349 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 350 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 351 | fi
|
|---|
| 352 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 353 | case "$ac_option" in
|
|---|
| 354 | *=*) ;;
|
|---|
| 355 | *) ac_optarg=yes ;;
|
|---|
| 356 | esac
|
|---|
| 357 | eval "with_${ac_package}='$ac_optarg'" ;;
|
|---|
| 358 |
|
|---|
| 359 | -without-* | --without-*)
|
|---|
| 360 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
|---|
| 361 | # Reject names that are not valid shell variable names.
|
|---|
| 362 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 363 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 364 | fi
|
|---|
| 365 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 366 | eval "with_${ac_package}=no" ;;
|
|---|
| 367 |
|
|---|
| 368 | --x)
|
|---|
| 369 | # Obsolete; use --with-x.
|
|---|
| 370 | with_x=yes ;;
|
|---|
| 371 |
|
|---|
| 372 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
|---|
| 373 | | --x-incl | --x-inc | --x-in | --x-i)
|
|---|
| 374 | ac_prev=x_includes ;;
|
|---|
| 375 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
|---|
| 376 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
|---|
| 377 | x_includes="$ac_optarg" ;;
|
|---|
| 378 |
|
|---|
| 379 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
|---|
| 380 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
|---|
| 381 | ac_prev=x_libraries ;;
|
|---|
| 382 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
|---|
| 383 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
|---|
| 384 | x_libraries="$ac_optarg" ;;
|
|---|
| 385 |
|
|---|
| 386 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
|---|
| 387 | ;;
|
|---|
| 388 |
|
|---|
| 389 | *)
|
|---|
| 390 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
|---|
| 391 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
|---|
| 392 | fi
|
|---|
| 393 | if test "x$nonopt" != xNONE; then
|
|---|
| 394 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
|---|
| 395 | fi
|
|---|
| 396 | nonopt="$ac_option"
|
|---|
| 397 | ;;
|
|---|
| 398 |
|
|---|
| 399 | esac
|
|---|
| 400 | done
|
|---|
| 401 |
|
|---|
| 402 | if test -n "$ac_prev"; then
|
|---|
| 403 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
|---|
| 404 | fi
|
|---|
| 405 |
|
|---|
| 406 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|---|
| 407 |
|
|---|
| 408 | # File descriptor usage:
|
|---|
| 409 | # 0 standard input
|
|---|
| 410 | # 1 file creation
|
|---|
| 411 | # 2 errors and warnings
|
|---|
| 412 | # 3 some systems may open it to /dev/tty
|
|---|
| 413 | # 4 used on the Kubota Titan
|
|---|
| 414 | # 6 checking for... messages and results
|
|---|
| 415 | # 5 compiler messages saved in config.log
|
|---|
| 416 | if test "$silent" = yes; then
|
|---|
| 417 | exec 6>/dev/null
|
|---|
| 418 | else
|
|---|
| 419 | exec 6>&1
|
|---|
| 420 | fi
|
|---|
| 421 | exec 5>./config.log
|
|---|
| 422 |
|
|---|
| 423 | echo "\
|
|---|
| 424 | This file contains any messages produced by compilers while
|
|---|
| 425 | running configure, to aid debugging if configure makes a mistake.
|
|---|
| 426 | " 1>&5
|
|---|
| 427 |
|
|---|
| 428 | # Strip out --no-create and --no-recursion so they do not pile up.
|
|---|
| 429 | # Also quote any args containing shell metacharacters.
|
|---|
| 430 | ac_configure_args=
|
|---|
| 431 | for ac_arg
|
|---|
| 432 | do
|
|---|
| 433 | case "$ac_arg" in
|
|---|
| 434 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 435 | | --no-cr | --no-c) ;;
|
|---|
| 436 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 437 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|---|
| 438 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|---|
| 439 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|---|
| 440 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|---|
| 441 | esac
|
|---|
| 442 | done
|
|---|
| 443 |
|
|---|
| 444 | # NLS nuisances.
|
|---|
| 445 | # Only set these to C if already set. These must not be set unconditionally
|
|---|
| 446 | # because not all systems understand e.g. LANG=C (notably SCO).
|
|---|
| 447 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|---|
| 448 | # Non-C LC_CTYPE values break the ctype check.
|
|---|
| 449 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|---|
| 450 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|---|
| 451 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|---|
| 452 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|---|
| 453 |
|
|---|
| 454 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|---|
| 455 | rm -rf conftest* confdefs.h
|
|---|
| 456 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|---|
| 457 | echo > confdefs.h
|
|---|
| 458 |
|
|---|
| 459 | # A filename unique to this package, relative to the directory that
|
|---|
| 460 | # configure is in, which we can look for to find out if srcdir is correct.
|
|---|
| 461 | ac_unique_file=access_.c
|
|---|
| 462 |
|
|---|
| 463 | # Find the source files, if location was not specified.
|
|---|
| 464 | if test -z "$srcdir"; then
|
|---|
| 465 | ac_srcdir_defaulted=yes
|
|---|
| 466 | # Try the directory containing this script, then its parent.
|
|---|
| 467 | ac_prog=$0
|
|---|
| 468 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|---|
| 469 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|---|
| 470 | srcdir=$ac_confdir
|
|---|
| 471 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 472 | srcdir=..
|
|---|
| 473 | fi
|
|---|
| 474 | else
|
|---|
| 475 | ac_srcdir_defaulted=no
|
|---|
| 476 | fi
|
|---|
| 477 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 478 | if test "$ac_srcdir_defaulted" = yes; then
|
|---|
| 479 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|---|
| 480 | else
|
|---|
| 481 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|---|
| 482 | fi
|
|---|
| 483 | fi
|
|---|
| 484 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|---|
| 485 |
|
|---|
| 486 | # Prefer explicitly selected file to automatically selected ones.
|
|---|
| 487 | if test -z "$sitefile"; then
|
|---|
| 488 | if test -z "$CONFIG_SITE"; then
|
|---|
| 489 | if test "x$prefix" != xNONE; then
|
|---|
| 490 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|---|
| 491 | else
|
|---|
| 492 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|---|
| 493 | fi
|
|---|
| 494 | fi
|
|---|
| 495 | else
|
|---|
| 496 | CONFIG_SITE="$sitefile"
|
|---|
| 497 | fi
|
|---|
| 498 | for ac_site_file in $CONFIG_SITE; do
|
|---|
| 499 | if test -r "$ac_site_file"; then
|
|---|
| 500 | echo "loading site script $ac_site_file"
|
|---|
| 501 | . "$ac_site_file"
|
|---|
| 502 | fi
|
|---|
| 503 | done
|
|---|
| 504 |
|
|---|
| 505 | if test -r "$cache_file"; then
|
|---|
| 506 | echo "loading cache $cache_file"
|
|---|
| 507 | . $cache_file
|
|---|
| 508 | else
|
|---|
| 509 | echo "creating cache $cache_file"
|
|---|
| 510 | > $cache_file
|
|---|
| 511 | fi
|
|---|
| 512 |
|
|---|
| 513 | ac_ext=c
|
|---|
| 514 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 515 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 516 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 517 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 518 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 519 |
|
|---|
| 520 | ac_exeext=
|
|---|
| 521 | ac_objext=o
|
|---|
| 522 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|---|
| 523 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
|---|
| 524 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|---|
| 525 | ac_n= ac_c='
|
|---|
| 526 | ' ac_t=' '
|
|---|
| 527 | else
|
|---|
| 528 | ac_n=-n ac_c= ac_t=
|
|---|
| 529 | fi
|
|---|
| 530 | else
|
|---|
| 531 | ac_n= ac_c='\c' ac_t=
|
|---|
| 532 | fi
|
|---|
| 533 |
|
|---|
| 534 |
|
|---|
| 535 |
|
|---|
| 536 |
|
|---|
| 537 |
|
|---|
| 538 |
|
|---|
| 539 | # For g77 we'll set CC to point at the built gcc, but this will get it into
|
|---|
| 540 | # the makefiles
|
|---|
| 541 | # Extract the first word of "gcc", so it can be a program name with args.
|
|---|
| 542 | set dummy gcc; ac_word=$2
|
|---|
| 543 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 544 | echo "configure:545: checking for $ac_word" >&5
|
|---|
| 545 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 546 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 547 | else
|
|---|
| 548 | if test -n "$CC"; then
|
|---|
| 549 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 550 | else
|
|---|
| 551 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 552 | ac_dummy="$PATH"
|
|---|
| 553 | for ac_dir in $ac_dummy; do
|
|---|
| 554 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 555 | if test -f $ac_dir/$ac_word; then
|
|---|
| 556 | ac_cv_prog_CC="gcc"
|
|---|
| 557 | break
|
|---|
| 558 | fi
|
|---|
| 559 | done
|
|---|
| 560 | IFS="$ac_save_ifs"
|
|---|
| 561 | fi
|
|---|
| 562 | fi
|
|---|
| 563 | CC="$ac_cv_prog_CC"
|
|---|
| 564 | if test -n "$CC"; then
|
|---|
| 565 | echo "$ac_t""$CC" 1>&6
|
|---|
| 566 | else
|
|---|
| 567 | echo "$ac_t""no" 1>&6
|
|---|
| 568 | fi
|
|---|
| 569 |
|
|---|
| 570 | if test -z "$CC"; then
|
|---|
| 571 | # Extract the first word of "cc", so it can be a program name with args.
|
|---|
| 572 | set dummy cc; ac_word=$2
|
|---|
| 573 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 574 | echo "configure:575: checking for $ac_word" >&5
|
|---|
| 575 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 576 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 577 | else
|
|---|
| 578 | if test -n "$CC"; then
|
|---|
| 579 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 580 | else
|
|---|
| 581 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 582 | ac_prog_rejected=no
|
|---|
| 583 | ac_dummy="$PATH"
|
|---|
| 584 | for ac_dir in $ac_dummy; do
|
|---|
| 585 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 586 | if test -f $ac_dir/$ac_word; then
|
|---|
| 587 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|---|
| 588 | ac_prog_rejected=yes
|
|---|
| 589 | continue
|
|---|
| 590 | fi
|
|---|
| 591 | ac_cv_prog_CC="cc"
|
|---|
| 592 | break
|
|---|
| 593 | fi
|
|---|
| 594 | done
|
|---|
| 595 | IFS="$ac_save_ifs"
|
|---|
| 596 | if test $ac_prog_rejected = yes; then
|
|---|
| 597 | # We found a bogon in the path, so make sure we never use it.
|
|---|
| 598 | set dummy $ac_cv_prog_CC
|
|---|
| 599 | shift
|
|---|
| 600 | if test $# -gt 0; then
|
|---|
| 601 | # We chose a different compiler from the bogus one.
|
|---|
| 602 | # However, it has the same basename, so the bogon will be chosen
|
|---|
| 603 | # first if we set CC to just the basename; use the full file name.
|
|---|
| 604 | shift
|
|---|
| 605 | set dummy "$ac_dir/$ac_word" "$@"
|
|---|
| 606 | shift
|
|---|
| 607 | ac_cv_prog_CC="$@"
|
|---|
| 608 | fi
|
|---|
| 609 | fi
|
|---|
| 610 | fi
|
|---|
| 611 | fi
|
|---|
| 612 | CC="$ac_cv_prog_CC"
|
|---|
| 613 | if test -n "$CC"; then
|
|---|
| 614 | echo "$ac_t""$CC" 1>&6
|
|---|
| 615 | else
|
|---|
| 616 | echo "$ac_t""no" 1>&6
|
|---|
| 617 | fi
|
|---|
| 618 |
|
|---|
| 619 | if test -z "$CC"; then
|
|---|
| 620 | case "`uname -s`" in
|
|---|
| 621 | *win32* | *WIN32*)
|
|---|
| 622 | # Extract the first word of "cl", so it can be a program name with args.
|
|---|
| 623 | set dummy cl; ac_word=$2
|
|---|
| 624 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 625 | echo "configure:626: checking for $ac_word" >&5
|
|---|
| 626 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 627 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 628 | else
|
|---|
| 629 | if test -n "$CC"; then
|
|---|
| 630 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 631 | else
|
|---|
| 632 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 633 | ac_dummy="$PATH"
|
|---|
| 634 | for ac_dir in $ac_dummy; do
|
|---|
| 635 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 636 | if test -f $ac_dir/$ac_word; then
|
|---|
| 637 | ac_cv_prog_CC="cl"
|
|---|
| 638 | break
|
|---|
| 639 | fi
|
|---|
| 640 | done
|
|---|
| 641 | IFS="$ac_save_ifs"
|
|---|
| 642 | fi
|
|---|
| 643 | fi
|
|---|
| 644 | CC="$ac_cv_prog_CC"
|
|---|
| 645 | if test -n "$CC"; then
|
|---|
| 646 | echo "$ac_t""$CC" 1>&6
|
|---|
| 647 | else
|
|---|
| 648 | echo "$ac_t""no" 1>&6
|
|---|
| 649 | fi
|
|---|
| 650 | ;;
|
|---|
| 651 | esac
|
|---|
| 652 | fi
|
|---|
| 653 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|---|
| 654 | fi
|
|---|
| 655 |
|
|---|
| 656 |
|
|---|
| 657 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|---|
| 658 | echo "configure:659: checking whether we are using GNU C" >&5
|
|---|
| 659 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|---|
| 660 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 661 | else
|
|---|
| 662 | cat > conftest.c <<EOF
|
|---|
| 663 | #ifdef __GNUC__
|
|---|
| 664 | yes;
|
|---|
| 665 | #endif
|
|---|
| 666 | EOF
|
|---|
| 667 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|---|
| 668 | ac_cv_prog_gcc=yes
|
|---|
| 669 | else
|
|---|
| 670 | ac_cv_prog_gcc=no
|
|---|
| 671 | fi
|
|---|
| 672 | fi
|
|---|
| 673 |
|
|---|
| 674 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|---|
| 675 |
|
|---|
| 676 | if test $ac_cv_prog_gcc = yes; then
|
|---|
| 677 | GCC=yes
|
|---|
| 678 | else
|
|---|
| 679 | GCC=
|
|---|
| 680 | fi
|
|---|
| 681 |
|
|---|
| 682 | ac_test_CFLAGS="${CFLAGS+set}"
|
|---|
| 683 | ac_save_CFLAGS="$CFLAGS"
|
|---|
| 684 | CFLAGS=
|
|---|
| 685 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|---|
| 686 | echo "configure:687: checking whether ${CC-cc} accepts -g" >&5
|
|---|
| 687 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|---|
| 688 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 689 | else
|
|---|
| 690 | echo 'void f(){}' > conftest.c
|
|---|
| 691 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|---|
| 692 | ac_cv_prog_cc_g=yes
|
|---|
| 693 | else
|
|---|
| 694 | ac_cv_prog_cc_g=no
|
|---|
| 695 | fi
|
|---|
| 696 | rm -f conftest*
|
|---|
| 697 |
|
|---|
| 698 | fi
|
|---|
| 699 |
|
|---|
| 700 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|---|
| 701 | if test "$ac_test_CFLAGS" = set; then
|
|---|
| 702 | CFLAGS="$ac_save_CFLAGS"
|
|---|
| 703 | elif test $ac_cv_prog_cc_g = yes; then
|
|---|
| 704 | if test "$GCC" = yes; then
|
|---|
| 705 | CFLAGS="-g -O2"
|
|---|
| 706 | else
|
|---|
| 707 | CFLAGS="-g"
|
|---|
| 708 | fi
|
|---|
| 709 | else
|
|---|
| 710 | if test "$GCC" = yes; then
|
|---|
| 711 | CFLAGS="-O2"
|
|---|
| 712 | else
|
|---|
| 713 | CFLAGS=
|
|---|
| 714 | fi
|
|---|
| 715 | fi
|
|---|
| 716 |
|
|---|
| 717 |
|
|---|
| 718 | # These defines are necessary to get 64-bit file size support.
|
|---|
| 719 | # NetBSD 1.4 header files does not support XOPEN_SOURCE == 600, but it
|
|---|
| 720 | # handles 64-bit file sizes without needing these defines.
|
|---|
| 721 | echo $ac_n "checking whether _XOPEN_SOURCE may be defined""... $ac_c" 1>&6
|
|---|
| 722 | echo "configure:723: checking whether _XOPEN_SOURCE may be defined" >&5
|
|---|
| 723 | cat > conftest.$ac_ext <<EOF
|
|---|
| 724 | #line 725 "configure"
|
|---|
| 725 | #include "confdefs.h"
|
|---|
| 726 | #define _XOPEN_SOURCE 600L
|
|---|
| 727 | #include <unistd.h>
|
|---|
| 728 | int main() {
|
|---|
| 729 |
|
|---|
| 730 | ; return 0; }
|
|---|
| 731 | EOF
|
|---|
| 732 | if { (eval echo configure:733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 733 | rm -rf conftest*
|
|---|
| 734 | may_use_xopen_source=yes
|
|---|
| 735 | else
|
|---|
| 736 | echo "configure: failed program was:" >&5
|
|---|
| 737 | cat conftest.$ac_ext >&5
|
|---|
| 738 | rm -rf conftest*
|
|---|
| 739 | may_use_xopen_source=no
|
|---|
| 740 | fi
|
|---|
| 741 | rm -f conftest*
|
|---|
| 742 | echo "$ac_t""$may_use_xopen_source" 1>&6
|
|---|
| 743 | if test $may_use_xopen_source = yes; then
|
|---|
| 744 | cat >> confdefs.h <<\EOF
|
|---|
| 745 | #define _XOPEN_SOURCE 600L
|
|---|
| 746 | EOF
|
|---|
| 747 |
|
|---|
| 748 | # The following is needed by irix6.2 so that struct timeval is declared.
|
|---|
| 749 | cat >> confdefs.h <<\EOF
|
|---|
| 750 | #define _XOPEN_SOURCE_EXTENDED 1
|
|---|
| 751 | EOF
|
|---|
| 752 |
|
|---|
| 753 | # The following is needed by Solaris2.5.1 so that struct timeval is declared.
|
|---|
| 754 | cat >> confdefs.h <<\EOF
|
|---|
| 755 | #define __EXTENSIONS__ 1
|
|---|
| 756 | EOF
|
|---|
| 757 |
|
|---|
| 758 | cat >> confdefs.h <<\EOF
|
|---|
| 759 | #define _FILE_OFFSET_BITS 64
|
|---|
| 760 | EOF
|
|---|
| 761 |
|
|---|
| 762 | fi
|
|---|
| 763 |
|
|---|
| 764 |
|
|---|
| 765 | LIBTOOL='$(SHELL) ../libtool'
|
|---|
| 766 |
|
|---|
| 767 |
|
|---|
| 768 | if test "$CROSS";then
|
|---|
| 769 | ac_cv_c_cross=yes
|
|---|
| 770 | else
|
|---|
| 771 | ac_cv_c_cross=no
|
|---|
| 772 | fi
|
|---|
| 773 |
|
|---|
| 774 | test "$AR" || AR=ar
|
|---|
| 775 |
|
|---|
| 776 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
|---|
| 777 | echo "configure:778: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
|---|
| 778 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|---|
| 779 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
|---|
| 780 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 781 | else
|
|---|
| 782 | cat > conftestmake <<\EOF
|
|---|
| 783 | all:
|
|---|
| 784 | @echo 'ac_maketemp="${MAKE}"'
|
|---|
| 785 | EOF
|
|---|
| 786 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|---|
| 787 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
|---|
| 788 | if test -n "$ac_maketemp"; then
|
|---|
| 789 | eval ac_cv_prog_make_${ac_make}_set=yes
|
|---|
| 790 | else
|
|---|
| 791 | eval ac_cv_prog_make_${ac_make}_set=no
|
|---|
| 792 | fi
|
|---|
| 793 | rm -f conftestmake
|
|---|
| 794 | fi
|
|---|
| 795 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|---|
| 796 | echo "$ac_t""yes" 1>&6
|
|---|
| 797 | SET_MAKE=
|
|---|
| 798 | else
|
|---|
| 799 | echo "$ac_t""no" 1>&6
|
|---|
| 800 | SET_MAKE="MAKE=${MAKE-make}"
|
|---|
| 801 | fi
|
|---|
| 802 |
|
|---|
| 803 |
|
|---|
| 804 | # Extract the first word of "chmod", so it can be a program name with args.
|
|---|
| 805 | set dummy chmod; ac_word=$2
|
|---|
| 806 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 807 | echo "configure:808: checking for $ac_word" >&5
|
|---|
| 808 | if eval "test \"`echo '$''{'ac_cv_path_ac_cv_prog_chmod'+set}'`\" = set"; then
|
|---|
| 809 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 810 | else
|
|---|
| 811 | case "$ac_cv_prog_chmod" in
|
|---|
| 812 | /*)
|
|---|
| 813 | ac_cv_path_ac_cv_prog_chmod="$ac_cv_prog_chmod" # Let the user override the test with a path.
|
|---|
| 814 | ;;
|
|---|
| 815 | ?:/*)
|
|---|
| 816 | ac_cv_path_ac_cv_prog_chmod="$ac_cv_prog_chmod" # Let the user override the test with a dos path.
|
|---|
| 817 | ;;
|
|---|
| 818 | *)
|
|---|
| 819 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 820 | ac_dummy="$PATH"
|
|---|
| 821 | for ac_dir in $ac_dummy; do
|
|---|
| 822 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 823 | if test -f $ac_dir/$ac_word; then
|
|---|
| 824 | ac_cv_path_ac_cv_prog_chmod="$ac_dir/$ac_word"
|
|---|
| 825 | break
|
|---|
| 826 | fi
|
|---|
| 827 | done
|
|---|
| 828 | IFS="$ac_save_ifs"
|
|---|
| 829 | test -z "$ac_cv_path_ac_cv_prog_chmod" && ac_cv_path_ac_cv_prog_chmod="no"
|
|---|
| 830 | ;;
|
|---|
| 831 | esac
|
|---|
| 832 | fi
|
|---|
| 833 | ac_cv_prog_chmod="$ac_cv_path_ac_cv_prog_chmod"
|
|---|
| 834 | if test -n "$ac_cv_prog_chmod"; then
|
|---|
| 835 | echo "$ac_t""$ac_cv_prog_chmod" 1>&6
|
|---|
| 836 | else
|
|---|
| 837 | echo "$ac_t""no" 1>&6
|
|---|
| 838 | fi
|
|---|
| 839 |
|
|---|
| 840 | if test "$ac_cv_prog_chmod" != no || test "$CROSS"; then
|
|---|
| 841 | MAYBES=chmod_.o
|
|---|
| 842 | cat >> confdefs.h <<EOF
|
|---|
| 843 | #define CHMOD_PATH "$ac_cv_prog_chmod"
|
|---|
| 844 | EOF
|
|---|
| 845 |
|
|---|
| 846 | else
|
|---|
| 847 | MAYBES=""
|
|---|
| 848 | fi
|
|---|
| 849 |
|
|---|
| 850 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
|---|
| 851 | echo "configure:852: checking how to run the C preprocessor" >&5
|
|---|
| 852 | # On Suns, sometimes $CPP names a directory.
|
|---|
| 853 | if test -n "$CPP" && test -d "$CPP"; then
|
|---|
| 854 | CPP=
|
|---|
| 855 | fi
|
|---|
| 856 | if test -z "$CPP"; then
|
|---|
| 857 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
|---|
| 858 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 859 | else
|
|---|
| 860 | # This must be in double quotes, not single quotes, because CPP may get
|
|---|
| 861 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
|---|
| 862 | CPP="${CC-cc} -E"
|
|---|
| 863 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
|---|
| 864 | # not just through cpp.
|
|---|
| 865 | cat > conftest.$ac_ext <<EOF
|
|---|
| 866 | #line 867 "configure"
|
|---|
| 867 | #include "confdefs.h"
|
|---|
| 868 | #include <assert.h>
|
|---|
| 869 | Syntax Error
|
|---|
| 870 | EOF
|
|---|
| 871 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 872 | { (eval echo configure:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 873 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 874 | if test -z "$ac_err"; then
|
|---|
| 875 | :
|
|---|
| 876 | else
|
|---|
| 877 | echo "$ac_err" >&5
|
|---|
| 878 | echo "configure: failed program was:" >&5
|
|---|
| 879 | cat conftest.$ac_ext >&5
|
|---|
| 880 | rm -rf conftest*
|
|---|
| 881 | CPP="${CC-cc} -E -traditional-cpp"
|
|---|
| 882 | cat > conftest.$ac_ext <<EOF
|
|---|
| 883 | #line 884 "configure"
|
|---|
| 884 | #include "confdefs.h"
|
|---|
| 885 | #include <assert.h>
|
|---|
| 886 | Syntax Error
|
|---|
| 887 | EOF
|
|---|
| 888 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 889 | { (eval echo configure:890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 890 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 891 | if test -z "$ac_err"; then
|
|---|
| 892 | :
|
|---|
| 893 | else
|
|---|
| 894 | echo "$ac_err" >&5
|
|---|
| 895 | echo "configure: failed program was:" >&5
|
|---|
| 896 | cat conftest.$ac_ext >&5
|
|---|
| 897 | rm -rf conftest*
|
|---|
| 898 | CPP="${CC-cc} -nologo -E"
|
|---|
| 899 | cat > conftest.$ac_ext <<EOF
|
|---|
| 900 | #line 901 "configure"
|
|---|
| 901 | #include "confdefs.h"
|
|---|
| 902 | #include <assert.h>
|
|---|
| 903 | Syntax Error
|
|---|
| 904 | EOF
|
|---|
| 905 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 906 | { (eval echo configure:907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 907 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 908 | if test -z "$ac_err"; then
|
|---|
| 909 | :
|
|---|
| 910 | else
|
|---|
| 911 | echo "$ac_err" >&5
|
|---|
| 912 | echo "configure: failed program was:" >&5
|
|---|
| 913 | cat conftest.$ac_ext >&5
|
|---|
| 914 | rm -rf conftest*
|
|---|
| 915 | CPP=/lib/cpp
|
|---|
| 916 | fi
|
|---|
| 917 | rm -f conftest*
|
|---|
| 918 | fi
|
|---|
| 919 | rm -f conftest*
|
|---|
| 920 | fi
|
|---|
| 921 | rm -f conftest*
|
|---|
| 922 | ac_cv_prog_CPP="$CPP"
|
|---|
| 923 | fi
|
|---|
| 924 | CPP="$ac_cv_prog_CPP"
|
|---|
| 925 | else
|
|---|
| 926 | ac_cv_prog_CPP="$CPP"
|
|---|
| 927 | fi
|
|---|
| 928 | echo "$ac_t""$CPP" 1>&6
|
|---|
| 929 |
|
|---|
| 930 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
|---|
| 931 | echo "configure:932: checking for ANSI C header files" >&5
|
|---|
| 932 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
|---|
| 933 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 934 | else
|
|---|
| 935 | cat > conftest.$ac_ext <<EOF
|
|---|
| 936 | #line 937 "configure"
|
|---|
| 937 | #include "confdefs.h"
|
|---|
| 938 | #include <stdlib.h>
|
|---|
| 939 | #include <stdarg.h>
|
|---|
| 940 | #include <string.h>
|
|---|
| 941 | #include <float.h>
|
|---|
| 942 | EOF
|
|---|
| 943 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 944 | { (eval echo configure:945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 945 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 946 | if test -z "$ac_err"; then
|
|---|
| 947 | rm -rf conftest*
|
|---|
| 948 | ac_cv_header_stdc=yes
|
|---|
| 949 | else
|
|---|
| 950 | echo "$ac_err" >&5
|
|---|
| 951 | echo "configure: failed program was:" >&5
|
|---|
| 952 | cat conftest.$ac_ext >&5
|
|---|
| 953 | rm -rf conftest*
|
|---|
| 954 | ac_cv_header_stdc=no
|
|---|
| 955 | fi
|
|---|
| 956 | rm -f conftest*
|
|---|
| 957 |
|
|---|
| 958 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 959 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|---|
| 960 | cat > conftest.$ac_ext <<EOF
|
|---|
| 961 | #line 962 "configure"
|
|---|
| 962 | #include "confdefs.h"
|
|---|
| 963 | #include <string.h>
|
|---|
| 964 | EOF
|
|---|
| 965 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 966 | egrep "memchr" >/dev/null 2>&1; then
|
|---|
| 967 | :
|
|---|
| 968 | else
|
|---|
| 969 | rm -rf conftest*
|
|---|
| 970 | ac_cv_header_stdc=no
|
|---|
| 971 | fi
|
|---|
| 972 | rm -f conftest*
|
|---|
| 973 |
|
|---|
| 974 | fi
|
|---|
| 975 |
|
|---|
| 976 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 977 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|---|
| 978 | cat > conftest.$ac_ext <<EOF
|
|---|
| 979 | #line 980 "configure"
|
|---|
| 980 | #include "confdefs.h"
|
|---|
| 981 | #include <stdlib.h>
|
|---|
| 982 | EOF
|
|---|
| 983 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 984 | egrep "free" >/dev/null 2>&1; then
|
|---|
| 985 | :
|
|---|
| 986 | else
|
|---|
| 987 | rm -rf conftest*
|
|---|
| 988 | ac_cv_header_stdc=no
|
|---|
| 989 | fi
|
|---|
| 990 | rm -f conftest*
|
|---|
| 991 |
|
|---|
| 992 | fi
|
|---|
| 993 |
|
|---|
| 994 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 995 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|---|
| 996 | if test "$cross_compiling" = yes; then
|
|---|
| 997 | :
|
|---|
| 998 | else
|
|---|
| 999 | cat > conftest.$ac_ext <<EOF
|
|---|
| 1000 | #line 1001 "configure"
|
|---|
| 1001 | #include "confdefs.h"
|
|---|
| 1002 | #include <ctype.h>
|
|---|
| 1003 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|---|
| 1004 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|---|
| 1005 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|---|
| 1006 | int main () { int i; for (i = 0; i < 256; i++)
|
|---|
| 1007 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|---|
| 1008 | exit (0); }
|
|---|
| 1009 |
|
|---|
| 1010 | EOF
|
|---|
| 1011 | if { (eval echo configure:1012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 1012 | then
|
|---|
| 1013 | :
|
|---|
| 1014 | else
|
|---|
| 1015 | echo "configure: failed program was:" >&5
|
|---|
| 1016 | cat conftest.$ac_ext >&5
|
|---|
| 1017 | rm -fr conftest*
|
|---|
| 1018 | ac_cv_header_stdc=no
|
|---|
| 1019 | fi
|
|---|
| 1020 | rm -fr conftest*
|
|---|
| 1021 | fi
|
|---|
| 1022 |
|
|---|
| 1023 | fi
|
|---|
| 1024 | fi
|
|---|
| 1025 |
|
|---|
| 1026 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|---|
| 1027 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 1028 | cat >> confdefs.h <<\EOF
|
|---|
| 1029 | #define STDC_HEADERS 1
|
|---|
| 1030 | EOF
|
|---|
| 1031 |
|
|---|
| 1032 | fi
|
|---|
| 1033 |
|
|---|
| 1034 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
|---|
| 1035 | echo "configure:1036: checking whether time.h and sys/time.h may both be included" >&5
|
|---|
| 1036 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
|
|---|
| 1037 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1038 | else
|
|---|
| 1039 | cat > conftest.$ac_ext <<EOF
|
|---|
| 1040 | #line 1041 "configure"
|
|---|
| 1041 | #include "confdefs.h"
|
|---|
| 1042 | #include <sys/types.h>
|
|---|
| 1043 | #include <sys/time.h>
|
|---|
| 1044 | #include <time.h>
|
|---|
| 1045 | int main() {
|
|---|
| 1046 | struct tm *tp;
|
|---|
| 1047 | ; return 0; }
|
|---|
| 1048 | EOF
|
|---|
| 1049 | if { (eval echo configure:1050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 1050 | rm -rf conftest*
|
|---|
| 1051 | ac_cv_header_time=yes
|
|---|
| 1052 | else
|
|---|
| 1053 | echo "configure: failed program was:" >&5
|
|---|
| 1054 | cat conftest.$ac_ext >&5
|
|---|
| 1055 | rm -rf conftest*
|
|---|
| 1056 | ac_cv_header_time=no
|
|---|
| 1057 | fi
|
|---|
| 1058 | rm -f conftest*
|
|---|
| 1059 | fi
|
|---|
| 1060 |
|
|---|
| 1061 | echo "$ac_t""$ac_cv_header_time" 1>&6
|
|---|
| 1062 | if test $ac_cv_header_time = yes; then
|
|---|
| 1063 | cat >> confdefs.h <<\EOF
|
|---|
| 1064 | #define TIME_WITH_SYS_TIME 1
|
|---|
| 1065 | EOF
|
|---|
| 1066 |
|
|---|
| 1067 | fi
|
|---|
| 1068 |
|
|---|
| 1069 | for ac_hdr in limits.h unistd.h sys/time.h string.h stdlib.h \
|
|---|
| 1070 | sys/param.h sys/times.h
|
|---|
| 1071 | do
|
|---|
| 1072 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 1073 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 1074 | echo "configure:1075: checking for $ac_hdr" >&5
|
|---|
| 1075 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 1076 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1077 | else
|
|---|
| 1078 | cat > conftest.$ac_ext <<EOF
|
|---|
| 1079 | #line 1080 "configure"
|
|---|
| 1080 | #include "confdefs.h"
|
|---|
| 1081 | #include <$ac_hdr>
|
|---|
| 1082 | EOF
|
|---|
| 1083 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 1084 | { (eval echo configure:1085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 1085 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 1086 | if test -z "$ac_err"; then
|
|---|
| 1087 | rm -rf conftest*
|
|---|
| 1088 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 1089 | else
|
|---|
| 1090 | echo "$ac_err" >&5
|
|---|
| 1091 | echo "configure: failed program was:" >&5
|
|---|
| 1092 | cat conftest.$ac_ext >&5
|
|---|
| 1093 | rm -rf conftest*
|
|---|
| 1094 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 1095 | fi
|
|---|
| 1096 | rm -f conftest*
|
|---|
| 1097 | fi
|
|---|
| 1098 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 1099 | echo "$ac_t""yes" 1>&6
|
|---|
| 1100 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 1101 | cat >> confdefs.h <<EOF
|
|---|
| 1102 | #define $ac_tr_hdr 1
|
|---|
| 1103 | EOF
|
|---|
| 1104 |
|
|---|
| 1105 | else
|
|---|
| 1106 | echo "$ac_t""no" 1>&6
|
|---|
| 1107 | fi
|
|---|
| 1108 | done
|
|---|
| 1109 |
|
|---|
| 1110 |
|
|---|
| 1111 | echo $ac_n "checking for working const""... $ac_c" 1>&6
|
|---|
| 1112 | echo "configure:1113: checking for working const" >&5
|
|---|
| 1113 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
|---|
| 1114 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1115 | else
|
|---|
| 1116 | cat > conftest.$ac_ext <<EOF
|
|---|
| 1117 | #line 1118 "configure"
|
|---|
| 1118 | #include "confdefs.h"
|
|---|
| 1119 |
|
|---|
| 1120 | int main() {
|
|---|
| 1121 |
|
|---|
| 1122 | /* Ultrix mips cc rejects this. */
|
|---|
| 1123 | typedef int charset[2]; const charset x;
|
|---|
| 1124 | /* SunOS 4.1.1 cc rejects this. */
|
|---|
| 1125 | char const *const *ccp;
|
|---|
| 1126 | char **p;
|
|---|
| 1127 | /* NEC SVR4.0.2 mips cc rejects this. */
|
|---|
| 1128 | struct point {int x, y;};
|
|---|
| 1129 | static struct point const zero = {0,0};
|
|---|
| 1130 | /* AIX XL C 1.02.0.0 rejects this.
|
|---|
| 1131 | It does not let you subtract one const X* pointer from another in an arm
|
|---|
| 1132 | of an if-expression whose if-part is not a constant expression */
|
|---|
| 1133 | const char *g = "string";
|
|---|
| 1134 | ccp = &g + (g ? g-g : 0);
|
|---|
| 1135 | /* HPUX 7.0 cc rejects these. */
|
|---|
| 1136 | ++ccp;
|
|---|
| 1137 | p = (char**) ccp;
|
|---|
| 1138 | ccp = (char const *const *) p;
|
|---|
| 1139 | { /* SCO 3.2v4 cc rejects this. */
|
|---|
| 1140 | char *t;
|
|---|
| 1141 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|---|
| 1142 |
|
|---|
| 1143 | *t++ = 0;
|
|---|
| 1144 | }
|
|---|
| 1145 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
|---|
| 1146 | int x[] = {25, 17};
|
|---|
| 1147 | const int *foo = &x[0];
|
|---|
| 1148 | ++foo;
|
|---|
| 1149 | }
|
|---|
| 1150 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|---|
| 1151 | typedef const int *iptr;
|
|---|
| 1152 | iptr p = 0;
|
|---|
| 1153 | ++p;
|
|---|
| 1154 | }
|
|---|
| 1155 | { /* AIX XL C 1.02.0.0 rejects this saying
|
|---|
| 1156 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|---|
| 1157 | struct s { int j; const int *ap[3]; };
|
|---|
| 1158 | struct s *b; b->j = 5;
|
|---|
| 1159 | }
|
|---|
| 1160 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|---|
| 1161 | const int foo = 10;
|
|---|
| 1162 | }
|
|---|
| 1163 |
|
|---|
| 1164 | ; return 0; }
|
|---|
| 1165 | EOF
|
|---|
| 1166 | if { (eval echo configure:1167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 1167 | rm -rf conftest*
|
|---|
| 1168 | ac_cv_c_const=yes
|
|---|
| 1169 | else
|
|---|
| 1170 | echo "configure: failed program was:" >&5
|
|---|
| 1171 | cat conftest.$ac_ext >&5
|
|---|
| 1172 | rm -rf conftest*
|
|---|
| 1173 | ac_cv_c_const=no
|
|---|
| 1174 | fi
|
|---|
| 1175 | rm -f conftest*
|
|---|
| 1176 | fi
|
|---|
| 1177 |
|
|---|
| 1178 | echo "$ac_t""$ac_cv_c_const" 1>&6
|
|---|
| 1179 | if test $ac_cv_c_const = no; then
|
|---|
| 1180 | cat >> confdefs.h <<\EOF
|
|---|
| 1181 | #define const
|
|---|
| 1182 | EOF
|
|---|
| 1183 |
|
|---|
| 1184 | fi
|
|---|
| 1185 |
|
|---|
| 1186 | echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
|---|
| 1187 | echo "configure:1188: checking for size_t" >&5
|
|---|
| 1188 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
|---|
| 1189 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1190 | else
|
|---|
| 1191 | cat > conftest.$ac_ext <<EOF
|
|---|
| 1192 | #line 1193 "configure"
|
|---|
| 1193 | #include "confdefs.h"
|
|---|
| 1194 | #include <sys/types.h>
|
|---|
| 1195 | #if STDC_HEADERS
|
|---|
| 1196 | #include <stdlib.h>
|
|---|
| 1197 | #include <stddef.h>
|
|---|
| 1198 | #endif
|
|---|
| 1199 | EOF
|
|---|
| 1200 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 1201 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|---|
| 1202 | rm -rf conftest*
|
|---|
| 1203 | ac_cv_type_size_t=yes
|
|---|
| 1204 | else
|
|---|
| 1205 | rm -rf conftest*
|
|---|
| 1206 | ac_cv_type_size_t=no
|
|---|
| 1207 | fi
|
|---|
| 1208 | rm -f conftest*
|
|---|
| 1209 |
|
|---|
| 1210 | fi
|
|---|
| 1211 | echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
|---|
| 1212 | if test $ac_cv_type_size_t = no; then
|
|---|
| 1213 | cat >> confdefs.h <<\EOF
|
|---|
| 1214 | #define size_t unsigned
|
|---|
| 1215 | EOF
|
|---|
| 1216 |
|
|---|
| 1217 | fi
|
|---|
| 1218 |
|
|---|
| 1219 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6
|
|---|
| 1220 | echo "configure:1221: checking for mode_t" >&5
|
|---|
| 1221 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
|
|---|
| 1222 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1223 | else
|
|---|
| 1224 | cat > conftest.$ac_ext <<EOF
|
|---|
| 1225 | #line 1226 "configure"
|
|---|
| 1226 | #include "confdefs.h"
|
|---|
| 1227 | #include <sys/types.h>
|
|---|
| 1228 | #if STDC_HEADERS
|
|---|
| 1229 | #include <stdlib.h>
|
|---|
| 1230 | #include <stddef.h>
|
|---|
| 1231 | #endif
|
|---|
| 1232 | EOF
|
|---|
| 1233 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 1234 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|---|
| 1235 | rm -rf conftest*
|
|---|
| 1236 | ac_cv_type_mode_t=yes
|
|---|
| 1237 | else
|
|---|
| 1238 | rm -rf conftest*
|
|---|
| 1239 | ac_cv_type_mode_t=no
|
|---|
| 1240 | fi
|
|---|
| 1241 | rm -f conftest*
|
|---|
| 1242 |
|
|---|
| 1243 | fi
|
|---|
| 1244 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6
|
|---|
| 1245 | if test $ac_cv_type_mode_t = no; then
|
|---|
| 1246 | cat >> confdefs.h <<\EOF
|
|---|
| 1247 | #define mode_t int
|
|---|
| 1248 | EOF
|
|---|
| 1249 |
|
|---|
| 1250 | fi
|
|---|
| 1251 |
|
|---|
| 1252 |
|
|---|
| 1253 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6
|
|---|
| 1254 | echo "configure:1255: checking for pid_t" >&5
|
|---|
| 1255 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
|
|---|
| 1256 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1257 | else
|
|---|
| 1258 | cat > conftest.$ac_ext <<EOF
|
|---|
| 1259 | #line 1260 "configure"
|
|---|
| 1260 | #include "confdefs.h"
|
|---|
| 1261 | #include <sys/types.h>
|
|---|
| 1262 | #if STDC_HEADERS
|
|---|
| 1263 | #include <stdlib.h>
|
|---|
| 1264 | #include <stddef.h>
|
|---|
| 1265 | #endif
|
|---|
| 1266 | EOF
|
|---|
| 1267 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 1268 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|---|
| 1269 | rm -rf conftest*
|
|---|
| 1270 | ac_cv_type_pid_t=yes
|
|---|
| 1271 | else
|
|---|
| 1272 | rm -rf conftest*
|
|---|
| 1273 | ac_cv_type_pid_t=no
|
|---|
| 1274 | fi
|
|---|
| 1275 | rm -f conftest*
|
|---|
| 1276 |
|
|---|
| 1277 | fi
|
|---|
| 1278 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6
|
|---|
| 1279 | if test $ac_cv_type_pid_t = no; then
|
|---|
| 1280 | cat >> confdefs.h <<\EOF
|
|---|
| 1281 | #define pid_t int
|
|---|
| 1282 | EOF
|
|---|
| 1283 |
|
|---|
| 1284 | fi
|
|---|
| 1285 |
|
|---|
| 1286 | echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
|
|---|
| 1287 | echo "configure:1288: checking for st_blksize in struct stat" >&5
|
|---|
| 1288 | if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
|
|---|
| 1289 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1290 | else
|
|---|
| 1291 | cat > conftest.$ac_ext <<EOF
|
|---|
| 1292 | #line 1293 "configure"
|
|---|
| 1293 | #include "confdefs.h"
|
|---|
| 1294 | #include <sys/types.h>
|
|---|
| 1295 | #include <sys/stat.h>
|
|---|
| 1296 | int main() {
|
|---|
| 1297 | struct stat s; s.st_blksize;
|
|---|
| 1298 | ; return 0; }
|
|---|
| 1299 | EOF
|
|---|
| 1300 | if { (eval echo configure:1301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 1301 | rm -rf conftest*
|
|---|
| 1302 | ac_cv_struct_st_blksize=yes
|
|---|
| 1303 | else
|
|---|
| 1304 | echo "configure: failed program was:" >&5
|
|---|
| 1305 | cat conftest.$ac_ext >&5
|
|---|
| 1306 | rm -rf conftest*
|
|---|
| 1307 | ac_cv_struct_st_blksize=no
|
|---|
| 1308 | fi
|
|---|
| 1309 | rm -f conftest*
|
|---|
| 1310 | fi
|
|---|
| 1311 |
|
|---|
| 1312 | echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
|
|---|
| 1313 | if test $ac_cv_struct_st_blksize = yes; then
|
|---|
| 1314 | cat >> confdefs.h <<\EOF
|
|---|
| 1315 | #define HAVE_ST_BLKSIZE 1
|
|---|
| 1316 | EOF
|
|---|
| 1317 |
|
|---|
| 1318 | fi
|
|---|
| 1319 |
|
|---|
| 1320 | echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
|
|---|
| 1321 | echo "configure:1322: checking for st_blocks in struct stat" >&5
|
|---|
| 1322 | if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
|
|---|
| 1323 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1324 | else
|
|---|
| 1325 | cat > conftest.$ac_ext <<EOF
|
|---|
| 1326 | #line 1327 "configure"
|
|---|
| 1327 | #include "confdefs.h"
|
|---|
| 1328 | #include <sys/types.h>
|
|---|
| 1329 | #include <sys/stat.h>
|
|---|
| 1330 | int main() {
|
|---|
| 1331 | struct stat s; s.st_blocks;
|
|---|
| 1332 | ; return 0; }
|
|---|
| 1333 | EOF
|
|---|
| 1334 | if { (eval echo configure:1335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 1335 | rm -rf conftest*
|
|---|
| 1336 | ac_cv_struct_st_blocks=yes
|
|---|
| 1337 | else
|
|---|
| 1338 | echo "configure: failed program was:" >&5
|
|---|
| 1339 | cat conftest.$ac_ext >&5
|
|---|
| 1340 | rm -rf conftest*
|
|---|
| 1341 | ac_cv_struct_st_blocks=no
|
|---|
| 1342 | fi
|
|---|
| 1343 | rm -f conftest*
|
|---|
| 1344 | fi
|
|---|
| 1345 |
|
|---|
| 1346 | echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
|
|---|
| 1347 | if test $ac_cv_struct_st_blocks = yes; then
|
|---|
| 1348 | cat >> confdefs.h <<\EOF
|
|---|
| 1349 | #define HAVE_ST_BLOCKS 1
|
|---|
| 1350 | EOF
|
|---|
| 1351 |
|
|---|
| 1352 | else
|
|---|
| 1353 | LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
|
|---|
| 1354 | fi
|
|---|
| 1355 |
|
|---|
| 1356 | echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
|
|---|
| 1357 | echo "configure:1358: checking for st_rdev in struct stat" >&5
|
|---|
| 1358 | if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
|
|---|
| 1359 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1360 | else
|
|---|
| 1361 | cat > conftest.$ac_ext <<EOF
|
|---|
| 1362 | #line 1363 "configure"
|
|---|
| 1363 | #include "confdefs.h"
|
|---|
| 1364 | #include <sys/types.h>
|
|---|
| 1365 | #include <sys/stat.h>
|
|---|
| 1366 | int main() {
|
|---|
| 1367 | struct stat s; s.st_rdev;
|
|---|
| 1368 | ; return 0; }
|
|---|
| 1369 | EOF
|
|---|
| 1370 | if { (eval echo configure:1371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 1371 | rm -rf conftest*
|
|---|
| 1372 | ac_cv_struct_st_rdev=yes
|
|---|
| 1373 | else
|
|---|
| 1374 | echo "configure: failed program was:" >&5
|
|---|
| 1375 | cat conftest.$ac_ext >&5
|
|---|
| 1376 | rm -rf conftest*
|
|---|
| 1377 | ac_cv_struct_st_rdev=no
|
|---|
| 1378 | fi
|
|---|
| 1379 | rm -f conftest*
|
|---|
| 1380 | fi
|
|---|
| 1381 |
|
|---|
| 1382 | echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
|
|---|
| 1383 | if test $ac_cv_struct_st_rdev = yes; then
|
|---|
| 1384 | cat >> confdefs.h <<\EOF
|
|---|
| 1385 | #define HAVE_ST_RDEV 1
|
|---|
| 1386 | EOF
|
|---|
| 1387 |
|
|---|
| 1388 | fi
|
|---|
| 1389 |
|
|---|
| 1390 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
|---|
| 1391 | echo "configure:1392: checking whether struct tm is in sys/time.h or time.h" >&5
|
|---|
| 1392 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
|
|---|
| 1393 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1394 | else
|
|---|
| 1395 | cat > conftest.$ac_ext <<EOF
|
|---|
| 1396 | #line 1397 "configure"
|
|---|
| 1397 | #include "confdefs.h"
|
|---|
| 1398 | #include <sys/types.h>
|
|---|
| 1399 | #include <time.h>
|
|---|
| 1400 | int main() {
|
|---|
| 1401 | struct tm *tp; tp->tm_sec;
|
|---|
| 1402 | ; return 0; }
|
|---|
| 1403 | EOF
|
|---|
| 1404 | if { (eval echo configure:1405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 1405 | rm -rf conftest*
|
|---|
| 1406 | ac_cv_struct_tm=time.h
|
|---|
| 1407 | else
|
|---|
| 1408 | echo "configure: failed program was:" >&5
|
|---|
| 1409 | cat conftest.$ac_ext >&5
|
|---|
| 1410 | rm -rf conftest*
|
|---|
| 1411 | ac_cv_struct_tm=sys/time.h
|
|---|
| 1412 | fi
|
|---|
| 1413 | rm -f conftest*
|
|---|
| 1414 | fi
|
|---|
| 1415 |
|
|---|
| 1416 | echo "$ac_t""$ac_cv_struct_tm" 1>&6
|
|---|
| 1417 | if test $ac_cv_struct_tm = sys/time.h; then
|
|---|
| 1418 | cat >> confdefs.h <<\EOF
|
|---|
| 1419 | #define TM_IN_SYS_TIME 1
|
|---|
| 1420 | EOF
|
|---|
| 1421 |
|
|---|
| 1422 | fi
|
|---|
| 1423 |
|
|---|
| 1424 |
|
|---|
| 1425 | echo $ac_n "checking for gethostname in -lsocket""... $ac_c" 1>&6
|
|---|
| 1426 | echo "configure:1427: checking for gethostname in -lsocket" >&5
|
|---|
| 1427 | ac_lib_var=`echo socket'_'gethostname | sed 'y%./+-%__p_%'`
|
|---|
| 1428 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 1429 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1430 | else
|
|---|
| 1431 | ac_save_LIBS="$LIBS"
|
|---|
| 1432 | LIBS="-lsocket $LIBS"
|
|---|
| 1433 | cat > conftest.$ac_ext <<EOF
|
|---|
| 1434 | #line 1435 "configure"
|
|---|
| 1435 | #include "confdefs.h"
|
|---|
| 1436 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 1437 | /* We use char because int might match the return type of a gcc2
|
|---|
| 1438 | builtin and then its argument prototype would still apply. */
|
|---|
| 1439 | char gethostname();
|
|---|
| 1440 |
|
|---|
| 1441 | int main() {
|
|---|
| 1442 | gethostname()
|
|---|
| 1443 | ; return 0; }
|
|---|
| 1444 | EOF
|
|---|
| 1445 | if { (eval echo configure:1446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 1446 | rm -rf conftest*
|
|---|
| 1447 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 1448 | else
|
|---|
| 1449 | echo "configure: failed program was:" >&5
|
|---|
| 1450 | cat conftest.$ac_ext >&5
|
|---|
| 1451 | rm -rf conftest*
|
|---|
| 1452 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 1453 | fi
|
|---|
| 1454 | rm -f conftest*
|
|---|
| 1455 | LIBS="$ac_save_LIBS"
|
|---|
| 1456 |
|
|---|
| 1457 | fi
|
|---|
| 1458 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 1459 | echo "$ac_t""yes" 1>&6
|
|---|
| 1460 | LIBS="$LIBS -lsocket"
|
|---|
| 1461 | else
|
|---|
| 1462 | echo "$ac_t""no" 1>&6
|
|---|
| 1463 | fi
|
|---|
| 1464 |
|
|---|
| 1465 |
|
|---|
| 1466 |
|
|---|
| 1467 | for ac_func in symlink getcwd getwd lstat gethostname strerror clock \
|
|---|
| 1468 | getrusage times alarm getlogin getgid getuid kill link ttyname
|
|---|
| 1469 | do
|
|---|
| 1470 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 1471 | echo "configure:1472: checking for $ac_func" >&5
|
|---|
| 1472 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 1473 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1474 | else
|
|---|
| 1475 | cat > conftest.$ac_ext <<EOF
|
|---|
| 1476 | #line 1477 "configure"
|
|---|
| 1477 | #include "confdefs.h"
|
|---|
| 1478 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 1479 | which can conflict with char $ac_func(); below. */
|
|---|
| 1480 | #include <assert.h>
|
|---|
| 1481 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 1482 | /* We use char because int might match the return type of a gcc2
|
|---|
| 1483 | builtin and then its argument prototype would still apply. */
|
|---|
| 1484 | char $ac_func();
|
|---|
| 1485 |
|
|---|
| 1486 | int main() {
|
|---|
| 1487 |
|
|---|
| 1488 | /* The GNU C library defines this for functions which it implements
|
|---|
| 1489 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 1490 | something starting with __ and the normal name is an alias. */
|
|---|
| 1491 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 1492 | choke me
|
|---|
| 1493 | #else
|
|---|
| 1494 | $ac_func();
|
|---|
| 1495 | #endif
|
|---|
| 1496 |
|
|---|
| 1497 | ; return 0; }
|
|---|
| 1498 | EOF
|
|---|
| 1499 | if { (eval echo configure:1500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 1500 | rm -rf conftest*
|
|---|
| 1501 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 1502 | else
|
|---|
| 1503 | echo "configure: failed program was:" >&5
|
|---|
| 1504 | cat conftest.$ac_ext >&5
|
|---|
| 1505 | rm -rf conftest*
|
|---|
| 1506 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 1507 | fi
|
|---|
| 1508 | rm -f conftest*
|
|---|
| 1509 | fi
|
|---|
| 1510 |
|
|---|
| 1511 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 1512 | echo "$ac_t""yes" 1>&6
|
|---|
| 1513 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 1514 | cat >> confdefs.h <<EOF
|
|---|
| 1515 | #define $ac_tr_func 1
|
|---|
| 1516 | EOF
|
|---|
| 1517 |
|
|---|
| 1518 | else
|
|---|
| 1519 | echo "$ac_t""no" 1>&6
|
|---|
| 1520 | fi
|
|---|
| 1521 | done
|
|---|
| 1522 |
|
|---|
| 1523 |
|
|---|
| 1524 |
|
|---|
| 1525 | for ac_func in gettimeofday
|
|---|
| 1526 | do
|
|---|
| 1527 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 1528 | echo "configure:1529: checking for $ac_func" >&5
|
|---|
| 1529 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 1530 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1531 | else
|
|---|
| 1532 | cat > conftest.$ac_ext <<EOF
|
|---|
| 1533 | #line 1534 "configure"
|
|---|
| 1534 | #include "confdefs.h"
|
|---|
| 1535 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 1536 | which can conflict with char $ac_func(); below. */
|
|---|
| 1537 | #include <assert.h>
|
|---|
| 1538 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 1539 | /* We use char because int might match the return type of a gcc2
|
|---|
| 1540 | builtin and then its argument prototype would still apply. */
|
|---|
| 1541 | char $ac_func();
|
|---|
| 1542 |
|
|---|
| 1543 | int main() {
|
|---|
| 1544 |
|
|---|
| 1545 | /* The GNU C library defines this for functions which it implements
|
|---|
| 1546 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 1547 | something starting with __ and the normal name is an alias. */
|
|---|
| 1548 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 1549 | choke me
|
|---|
| 1550 | #else
|
|---|
| 1551 | $ac_func();
|
|---|
| 1552 | #endif
|
|---|
| 1553 |
|
|---|
| 1554 | ; return 0; }
|
|---|
| 1555 | EOF
|
|---|
| 1556 | if { (eval echo configure:1557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 1557 | rm -rf conftest*
|
|---|
| 1558 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 1559 | else
|
|---|
| 1560 | echo "configure: failed program was:" >&5
|
|---|
| 1561 | cat conftest.$ac_ext >&5
|
|---|
| 1562 | rm -rf conftest*
|
|---|
| 1563 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 1564 | fi
|
|---|
| 1565 | rm -f conftest*
|
|---|
| 1566 | fi
|
|---|
| 1567 |
|
|---|
| 1568 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 1569 | echo "$ac_t""yes" 1>&6
|
|---|
| 1570 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 1571 | cat >> confdefs.h <<EOF
|
|---|
| 1572 | #define $ac_tr_func 1
|
|---|
| 1573 | EOF
|
|---|
| 1574 |
|
|---|
| 1575 | else
|
|---|
| 1576 | echo "$ac_t""no" 1>&6
|
|---|
| 1577 | fi
|
|---|
| 1578 | done
|
|---|
| 1579 |
|
|---|
| 1580 | if test "$ac_cv_func_gettimeofday" = yes; then
|
|---|
| 1581 | echo $ac_n "checking for struct timezone""... $ac_c" 1>&6
|
|---|
| 1582 | echo "configure:1583: checking for struct timezone" >&5
|
|---|
| 1583 | if eval "test \"`echo '$''{'g77_cv_struct_timezone'+set}'`\" = set"; then
|
|---|
| 1584 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1585 | else
|
|---|
| 1586 | cat > conftest.$ac_ext <<EOF
|
|---|
| 1587 | #line 1588 "configure"
|
|---|
| 1588 | #include "confdefs.h"
|
|---|
| 1589 | #include <sys/time.h>
|
|---|
| 1590 | int main() {
|
|---|
| 1591 | struct timezone tz;
|
|---|
| 1592 | ; return 0; }
|
|---|
| 1593 | EOF
|
|---|
| 1594 | if { (eval echo configure:1595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 1595 | rm -rf conftest*
|
|---|
| 1596 | g77_cv_struct_timezone=yes
|
|---|
| 1597 | else
|
|---|
| 1598 | echo "configure: failed program was:" >&5
|
|---|
| 1599 | cat conftest.$ac_ext >&5
|
|---|
| 1600 | rm -rf conftest*
|
|---|
| 1601 | g77_cv_struct_timezone=no
|
|---|
| 1602 | fi
|
|---|
| 1603 | rm -f conftest*
|
|---|
| 1604 | fi
|
|---|
| 1605 |
|
|---|
| 1606 | echo "$ac_t""$g77_cv_struct_timezone" 1>&6
|
|---|
| 1607 | if test $g77_cv_struct_timezone = yes; then
|
|---|
| 1608 | if test "$cross_compiling" = yes; then
|
|---|
| 1609 | cat >> confdefs.h <<\EOF
|
|---|
| 1610 | #define HAVE_TIMEZONE 1
|
|---|
| 1611 | EOF
|
|---|
| 1612 |
|
|---|
| 1613 | else
|
|---|
| 1614 | cat > conftest.$ac_ext <<EOF
|
|---|
| 1615 | #line 1616 "configure"
|
|---|
| 1616 | #include "confdefs.h"
|
|---|
| 1617 |
|
|---|
| 1618 | #ifdef TIME_WITH_SYS_TIME
|
|---|
| 1619 | #include <sys/time.h>
|
|---|
| 1620 | #include <time.h>
|
|---|
| 1621 | #else
|
|---|
| 1622 | #ifdef HAVE_SYS_TIME_H
|
|---|
| 1623 | #include <sys/time.h>
|
|---|
| 1624 | #else
|
|---|
| 1625 | #include <time.h>
|
|---|
| 1626 | #endif
|
|---|
| 1627 | #endif
|
|---|
| 1628 | main ()
|
|---|
| 1629 | {
|
|---|
| 1630 | struct timeval time;
|
|---|
| 1631 | struct timezone dummy;
|
|---|
| 1632 | if (gettimeofday (&time, &dummy))
|
|---|
| 1633 | exit (1);
|
|---|
| 1634 | else
|
|---|
| 1635 | exit (0);
|
|---|
| 1636 | }
|
|---|
| 1637 | EOF
|
|---|
| 1638 | if { (eval echo configure:1639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 1639 | then
|
|---|
| 1640 | cat >> confdefs.h <<\EOF
|
|---|
| 1641 | #define HAVE_TIMEZONE 1
|
|---|
| 1642 | EOF
|
|---|
| 1643 |
|
|---|
| 1644 | else
|
|---|
| 1645 | echo "configure: failed program was:" >&5
|
|---|
| 1646 | cat conftest.$ac_ext >&5
|
|---|
| 1647 | fi
|
|---|
| 1648 | rm -fr conftest*
|
|---|
| 1649 | fi
|
|---|
| 1650 |
|
|---|
| 1651 | fi
|
|---|
| 1652 |
|
|---|
| 1653 | echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
|
|---|
| 1654 | echo "configure:1655: checking whether gettimeofday can accept two arguments" >&5
|
|---|
| 1655 | if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
|
|---|
| 1656 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1657 | else
|
|---|
| 1658 | cat > conftest.$ac_ext <<EOF
|
|---|
| 1659 | #line 1660 "configure"
|
|---|
| 1660 | #include "confdefs.h"
|
|---|
| 1661 |
|
|---|
| 1662 | #ifdef TIME_WITH_SYS_TIME
|
|---|
| 1663 | #include <sys/time.h>
|
|---|
| 1664 | #include <time.h>
|
|---|
| 1665 | #else
|
|---|
| 1666 | #ifdef HAVE_SYS_TIME_H
|
|---|
| 1667 | #include <sys/time.h>
|
|---|
| 1668 | #else
|
|---|
| 1669 | #include <time.h>
|
|---|
| 1670 | #endif
|
|---|
| 1671 | #endif
|
|---|
| 1672 |
|
|---|
| 1673 | int main() {
|
|---|
| 1674 |
|
|---|
| 1675 | struct timeval time;
|
|---|
| 1676 | #ifdef HAVE_TIMEZONE
|
|---|
| 1677 | struct timezone dummy;
|
|---|
| 1678 | #define DUMMY &dummy
|
|---|
| 1679 | #else
|
|---|
| 1680 | #define DUMMY NULL
|
|---|
| 1681 | #endif
|
|---|
| 1682 | gettimeofday (&time, DUMMY);
|
|---|
| 1683 | ; return 0; }
|
|---|
| 1684 | EOF
|
|---|
| 1685 | if { (eval echo configure:1686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 1686 | rm -rf conftest*
|
|---|
| 1687 | emacs_cv_gettimeofday_two_arguments=yes
|
|---|
| 1688 | else
|
|---|
| 1689 | echo "configure: failed program was:" >&5
|
|---|
| 1690 | cat conftest.$ac_ext >&5
|
|---|
| 1691 | rm -rf conftest*
|
|---|
| 1692 | emacs_cv_gettimeofday_two_arguments=no
|
|---|
| 1693 | fi
|
|---|
| 1694 | rm -f conftest*
|
|---|
| 1695 | fi
|
|---|
| 1696 |
|
|---|
| 1697 | echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6
|
|---|
| 1698 | if test $emacs_cv_gettimeofday_two_arguments = no; then
|
|---|
| 1699 | cat >> confdefs.h <<\EOF
|
|---|
| 1700 | #define GETTIMEOFDAY_ONE_ARGUMENT 1
|
|---|
| 1701 | EOF
|
|---|
| 1702 |
|
|---|
| 1703 | fi
|
|---|
| 1704 | fi
|
|---|
| 1705 |
|
|---|
| 1706 | test $ac_cv_func_symlink = yes && MAYBES="$MAYBES symlnk_.o"
|
|---|
| 1707 | test $ac_cv_func_lstat = yes && MAYBES="$MAYBES lstat_.o"
|
|---|
| 1708 | test $ac_cv_func_gethostname = yes && MAYBES="$MAYBES hostnm_.o"
|
|---|
| 1709 | test $ac_cv_func_clock = yes && MAYBES="$MAYBES mclock_.o"
|
|---|
| 1710 |
|
|---|
| 1711 |
|
|---|
| 1712 |
|
|---|
| 1713 |
|
|---|
| 1714 |
|
|---|
| 1715 |
|
|---|
| 1716 | trap '' 1 2 15
|
|---|
| 1717 | cat > confcache <<\EOF
|
|---|
| 1718 | # This file is a shell script that caches the results of configure
|
|---|
| 1719 | # tests run on this system so they can be shared between configure
|
|---|
| 1720 | # scripts and configure runs. It is not useful on other systems.
|
|---|
| 1721 | # If it contains results you don't want to keep, you may remove or edit it.
|
|---|
| 1722 | #
|
|---|
| 1723 | # By default, configure uses ./config.cache as the cache file,
|
|---|
| 1724 | # creating it if it does not exist already. You can give configure
|
|---|
| 1725 | # the --cache-file=FILE option to use a different cache file; that is
|
|---|
| 1726 | # what configure does when it calls configure scripts in
|
|---|
| 1727 | # subdirectories, so they share the cache.
|
|---|
| 1728 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|---|
| 1729 | # config.status only pays attention to the cache file if you give it the
|
|---|
| 1730 | # --recheck option to rerun configure.
|
|---|
| 1731 | #
|
|---|
| 1732 | EOF
|
|---|
| 1733 | # The following way of writing the cache mishandles newlines in values,
|
|---|
| 1734 | # but we know of no workaround that is simple, portable, and efficient.
|
|---|
| 1735 | # So, don't put newlines in cache variables' values.
|
|---|
| 1736 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
|---|
| 1737 | # and sets the high bit in the cache file unless we assign to the vars.
|
|---|
| 1738 | (set) 2>&1 |
|
|---|
| 1739 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|---|
| 1740 | *ac_space=\ *)
|
|---|
| 1741 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
|---|
| 1742 | # turns \\\\ into \\, and sed turns \\ into \).
|
|---|
| 1743 | sed -n \
|
|---|
| 1744 | -e "s/'/'\\\\''/g" \
|
|---|
| 1745 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|---|
| 1746 | ;;
|
|---|
| 1747 | *)
|
|---|
| 1748 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|---|
| 1749 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|---|
| 1750 | ;;
|
|---|
| 1751 | esac >> confcache
|
|---|
| 1752 | if cmp -s $cache_file confcache; then
|
|---|
| 1753 | :
|
|---|
| 1754 | else
|
|---|
| 1755 | if test -w $cache_file; then
|
|---|
| 1756 | echo "updating cache $cache_file"
|
|---|
| 1757 | cat confcache > $cache_file
|
|---|
| 1758 | else
|
|---|
| 1759 | echo "not updating unwritable cache $cache_file"
|
|---|
| 1760 | fi
|
|---|
| 1761 | fi
|
|---|
| 1762 | rm -f confcache
|
|---|
| 1763 |
|
|---|
| 1764 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|---|
| 1765 |
|
|---|
| 1766 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|---|
| 1767 | # Let make expand exec_prefix.
|
|---|
| 1768 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|---|
| 1769 |
|
|---|
| 1770 | # Any assignment to VPATH causes Sun make to only execute
|
|---|
| 1771 | # the first set of double-colon rules, so remove it if not needed.
|
|---|
| 1772 | # If there is a colon in the path, we need to keep it.
|
|---|
| 1773 | if test "x$srcdir" = x.; then
|
|---|
| 1774 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|---|
| 1775 | fi
|
|---|
| 1776 |
|
|---|
| 1777 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|---|
| 1778 |
|
|---|
| 1779 | DEFS=-DHAVE_CONFIG_H
|
|---|
| 1780 |
|
|---|
| 1781 | # Without the "./", some shells look in PATH for config.status.
|
|---|
| 1782 | : ${CONFIG_STATUS=./config.status}
|
|---|
| 1783 |
|
|---|
| 1784 | echo creating $CONFIG_STATUS
|
|---|
| 1785 | rm -f $CONFIG_STATUS
|
|---|
| 1786 | cat > $CONFIG_STATUS <<EOF
|
|---|
| 1787 | #! /bin/sh
|
|---|
| 1788 | # Generated automatically by configure.
|
|---|
| 1789 | # Run this file to recreate the current configuration.
|
|---|
| 1790 | # This directory was configured as follows,
|
|---|
| 1791 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|---|
| 1792 | #
|
|---|
| 1793 | # $0 $ac_configure_args
|
|---|
| 1794 | #
|
|---|
| 1795 | # Compiler output produced by configure, useful for debugging
|
|---|
| 1796 | # configure, is in ./config.log if it exists.
|
|---|
| 1797 |
|
|---|
| 1798 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
|---|
| 1799 | for ac_option
|
|---|
| 1800 | do
|
|---|
| 1801 | case "\$ac_option" in
|
|---|
| 1802 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|---|
| 1803 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|---|
| 1804 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
|---|
| 1805 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
|---|
| 1806 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
|---|
| 1807 | exit 0 ;;
|
|---|
| 1808 | -help | --help | --hel | --he | --h)
|
|---|
| 1809 | echo "\$ac_cs_usage"; exit 0 ;;
|
|---|
| 1810 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
|---|
| 1811 | esac
|
|---|
| 1812 | done
|
|---|
| 1813 |
|
|---|
| 1814 | ac_given_srcdir=$srcdir
|
|---|
| 1815 |
|
|---|
| 1816 | trap 'rm -fr `echo "Makefile config.h:config.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
|---|
| 1817 | EOF
|
|---|
| 1818 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 1819 |
|
|---|
| 1820 | # Protect against being on the right side of a sed subst in config.status.
|
|---|
| 1821 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|---|
| 1822 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
|---|
| 1823 | $ac_vpsub
|
|---|
| 1824 | $extrasub
|
|---|
| 1825 | s%@SHELL@%$SHELL%g
|
|---|
| 1826 | s%@CFLAGS@%$CFLAGS%g
|
|---|
| 1827 | s%@CPPFLAGS@%$CPPFLAGS%g
|
|---|
| 1828 | s%@CXXFLAGS@%$CXXFLAGS%g
|
|---|
| 1829 | s%@FFLAGS@%$FFLAGS%g
|
|---|
| 1830 | s%@DEFS@%$DEFS%g
|
|---|
| 1831 | s%@LDFLAGS@%$LDFLAGS%g
|
|---|
| 1832 | s%@LIBS@%$LIBS%g
|
|---|
| 1833 | s%@exec_prefix@%$exec_prefix%g
|
|---|
| 1834 | s%@prefix@%$prefix%g
|
|---|
| 1835 | s%@program_transform_name@%$program_transform_name%g
|
|---|
| 1836 | s%@bindir@%$bindir%g
|
|---|
| 1837 | s%@sbindir@%$sbindir%g
|
|---|
| 1838 | s%@libexecdir@%$libexecdir%g
|
|---|
| 1839 | s%@datadir@%$datadir%g
|
|---|
| 1840 | s%@sysconfdir@%$sysconfdir%g
|
|---|
| 1841 | s%@sharedstatedir@%$sharedstatedir%g
|
|---|
| 1842 | s%@localstatedir@%$localstatedir%g
|
|---|
| 1843 | s%@libdir@%$libdir%g
|
|---|
| 1844 | s%@includedir@%$includedir%g
|
|---|
| 1845 | s%@oldincludedir@%$oldincludedir%g
|
|---|
| 1846 | s%@infodir@%$infodir%g
|
|---|
| 1847 | s%@mandir@%$mandir%g
|
|---|
| 1848 | s%@CC@%$CC%g
|
|---|
| 1849 | s%@LIBTOOL@%$LIBTOOL%g
|
|---|
| 1850 | s%@AR@%$AR%g
|
|---|
| 1851 | s%@SET_MAKE@%$SET_MAKE%g
|
|---|
| 1852 | s%@ac_cv_prog_chmod@%$ac_cv_prog_chmod%g
|
|---|
| 1853 | s%@CPP@%$CPP%g
|
|---|
| 1854 | s%@LIBOBJS@%$LIBOBJS%g
|
|---|
| 1855 | s%@MAYBES@%$MAYBES%g
|
|---|
| 1856 | s%@CROSS@%$CROSS%g
|
|---|
| 1857 | s%@RANLIB@%$RANLIB%g
|
|---|
| 1858 | s%@RANLIB_TEST@%$RANLIB_TEST%g
|
|---|
| 1859 |
|
|---|
| 1860 | CEOF
|
|---|
| 1861 | EOF
|
|---|
| 1862 |
|
|---|
| 1863 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 1864 |
|
|---|
| 1865 | # Split the substitutions into bite-sized pieces for seds with
|
|---|
| 1866 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
|---|
| 1867 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|---|
| 1868 | ac_file=1 # Number of current file.
|
|---|
| 1869 | ac_beg=1 # First line for current file.
|
|---|
| 1870 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|---|
| 1871 | ac_more_lines=:
|
|---|
| 1872 | ac_sed_cmds=""
|
|---|
| 1873 | while $ac_more_lines; do
|
|---|
| 1874 | if test $ac_beg -gt 1; then
|
|---|
| 1875 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|---|
| 1876 | else
|
|---|
| 1877 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|---|
| 1878 | fi
|
|---|
| 1879 | if test ! -s conftest.s$ac_file; then
|
|---|
| 1880 | ac_more_lines=false
|
|---|
| 1881 | rm -f conftest.s$ac_file
|
|---|
| 1882 | else
|
|---|
| 1883 | if test -z "$ac_sed_cmds"; then
|
|---|
| 1884 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
|---|
| 1885 | else
|
|---|
| 1886 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|---|
| 1887 | fi
|
|---|
| 1888 | ac_file=`expr $ac_file + 1`
|
|---|
| 1889 | ac_beg=$ac_end
|
|---|
| 1890 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|---|
| 1891 | fi
|
|---|
| 1892 | done
|
|---|
| 1893 | if test -z "$ac_sed_cmds"; then
|
|---|
| 1894 | ac_sed_cmds=cat
|
|---|
| 1895 | fi
|
|---|
| 1896 | EOF
|
|---|
| 1897 |
|
|---|
| 1898 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 1899 |
|
|---|
| 1900 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
|
|---|
| 1901 | EOF
|
|---|
| 1902 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 1903 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|---|
| 1904 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|---|
| 1905 | case "$ac_file" in
|
|---|
| 1906 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|---|
| 1907 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|---|
| 1908 | *) ac_file_in="${ac_file}.in" ;;
|
|---|
| 1909 | esac
|
|---|
| 1910 |
|
|---|
| 1911 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|---|
| 1912 |
|
|---|
| 1913 | # Remove last slash and all that follows it. Not all systems have dirname.
|
|---|
| 1914 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|---|
| 1915 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|---|
| 1916 | # The file is in a subdirectory.
|
|---|
| 1917 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|---|
| 1918 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|---|
| 1919 | # A "../" for each directory in $ac_dir_suffix.
|
|---|
| 1920 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|---|
| 1921 | else
|
|---|
| 1922 | ac_dir_suffix= ac_dots=
|
|---|
| 1923 | fi
|
|---|
| 1924 |
|
|---|
| 1925 | case "$ac_given_srcdir" in
|
|---|
| 1926 | .) srcdir=.
|
|---|
| 1927 | if test -z "$ac_dots"; then top_srcdir=.
|
|---|
| 1928 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|---|
| 1929 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|---|
| 1930 | *) # Relative path.
|
|---|
| 1931 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|---|
| 1932 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|---|
| 1933 | esac
|
|---|
| 1934 |
|
|---|
| 1935 |
|
|---|
| 1936 | echo creating "$ac_file"
|
|---|
| 1937 | rm -f "$ac_file"
|
|---|
| 1938 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|---|
| 1939 | case "$ac_file" in
|
|---|
| 1940 | *Makefile*) ac_comsub="1i\\
|
|---|
| 1941 | # $configure_input" ;;
|
|---|
| 1942 | *) ac_comsub= ;;
|
|---|
| 1943 | esac
|
|---|
| 1944 |
|
|---|
| 1945 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|---|
| 1946 | sed -e "$ac_comsub
|
|---|
| 1947 | s%@configure_input@%$configure_input%g
|
|---|
| 1948 | s%@srcdir@%$srcdir%g
|
|---|
| 1949 | s%@top_srcdir@%$top_srcdir%g
|
|---|
| 1950 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
|---|
| 1951 | fi; done
|
|---|
| 1952 | rm -f conftest.s*
|
|---|
| 1953 |
|
|---|
| 1954 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|---|
| 1955 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
|---|
| 1956 | #
|
|---|
| 1957 | # ac_d sets the value in "#define NAME VALUE" lines.
|
|---|
| 1958 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|---|
| 1959 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
|---|
| 1960 | ac_dC='\3'
|
|---|
| 1961 | ac_dD='%g'
|
|---|
| 1962 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
|---|
| 1963 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|---|
| 1964 | ac_uB='\([ ]\)%\1#\2define\3'
|
|---|
| 1965 | ac_uC=' '
|
|---|
| 1966 | ac_uD='\4%g'
|
|---|
| 1967 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
|---|
| 1968 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|---|
| 1969 | ac_eB='$%\1#\2define\3'
|
|---|
| 1970 | ac_eC=' '
|
|---|
| 1971 | ac_eD='%g'
|
|---|
| 1972 |
|
|---|
| 1973 | if test "${CONFIG_HEADERS+set}" != set; then
|
|---|
| 1974 | EOF
|
|---|
| 1975 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 1976 | CONFIG_HEADERS="config.h:config.hin"
|
|---|
| 1977 | EOF
|
|---|
| 1978 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 1979 | fi
|
|---|
| 1980 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|---|
| 1981 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|---|
| 1982 | case "$ac_file" in
|
|---|
| 1983 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|---|
| 1984 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|---|
| 1985 | *) ac_file_in="${ac_file}.in" ;;
|
|---|
| 1986 | esac
|
|---|
| 1987 |
|
|---|
| 1988 | echo creating $ac_file
|
|---|
| 1989 |
|
|---|
| 1990 | rm -f conftest.frag conftest.in conftest.out
|
|---|
| 1991 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|---|
| 1992 | cat $ac_file_inputs > conftest.in
|
|---|
| 1993 |
|
|---|
| 1994 | EOF
|
|---|
| 1995 |
|
|---|
| 1996 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
|---|
| 1997 | # the proper values into config.h.in to produce config.h. And first:
|
|---|
| 1998 | # Protect against being on the right side of a sed subst in config.status.
|
|---|
| 1999 | # Protect against being in an unquoted here document in config.status.
|
|---|
| 2000 | rm -f conftest.vals
|
|---|
| 2001 | cat > conftest.hdr <<\EOF
|
|---|
| 2002 | s/[\\&%]/\\&/g
|
|---|
| 2003 | s%[\\$`]%\\&%g
|
|---|
| 2004 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|---|
| 2005 | s%ac_d%ac_u%gp
|
|---|
| 2006 | s%ac_u%ac_e%gp
|
|---|
| 2007 | EOF
|
|---|
| 2008 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|---|
| 2009 | rm -f conftest.hdr
|
|---|
| 2010 |
|
|---|
| 2011 | # This sed command replaces #undef with comments. This is necessary, for
|
|---|
| 2012 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|---|
| 2013 | # on some systems where configure will not decide to define it.
|
|---|
| 2014 | cat >> conftest.vals <<\EOF
|
|---|
| 2015 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|---|
| 2016 | EOF
|
|---|
| 2017 |
|
|---|
| 2018 | # Break up conftest.vals because some shells have a limit on
|
|---|
| 2019 | # the size of here documents, and old seds have small limits too.
|
|---|
| 2020 |
|
|---|
| 2021 | rm -f conftest.tail
|
|---|
| 2022 | while :
|
|---|
| 2023 | do
|
|---|
| 2024 | ac_lines=`grep -c . conftest.vals`
|
|---|
| 2025 | # grep -c gives empty output for an empty file on some AIX systems.
|
|---|
| 2026 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|---|
| 2027 | # Write a limited-size here document to conftest.frag.
|
|---|
| 2028 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|---|
| 2029 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|---|
| 2030 | echo 'CEOF
|
|---|
| 2031 | sed -f conftest.frag conftest.in > conftest.out
|
|---|
| 2032 | rm -f conftest.in
|
|---|
| 2033 | mv conftest.out conftest.in
|
|---|
| 2034 | ' >> $CONFIG_STATUS
|
|---|
| 2035 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|---|
| 2036 | rm -f conftest.vals
|
|---|
| 2037 | mv conftest.tail conftest.vals
|
|---|
| 2038 | done
|
|---|
| 2039 | rm -f conftest.vals
|
|---|
| 2040 |
|
|---|
| 2041 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 2042 | rm -f conftest.frag conftest.h
|
|---|
| 2043 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
|---|
| 2044 | cat conftest.in >> conftest.h
|
|---|
| 2045 | rm -f conftest.in
|
|---|
| 2046 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|---|
| 2047 | echo "$ac_file is unchanged"
|
|---|
| 2048 | rm -f conftest.h
|
|---|
| 2049 | else
|
|---|
| 2050 | # Remove last slash and all that follows it. Not all systems have dirname.
|
|---|
| 2051 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|---|
| 2052 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|---|
| 2053 | # The file is in a subdirectory.
|
|---|
| 2054 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|---|
| 2055 | fi
|
|---|
| 2056 | rm -f $ac_file
|
|---|
| 2057 | mv conftest.h $ac_file
|
|---|
| 2058 | fi
|
|---|
| 2059 | fi; done
|
|---|
| 2060 |
|
|---|
| 2061 | EOF
|
|---|
| 2062 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 2063 |
|
|---|
| 2064 | EOF
|
|---|
| 2065 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 2066 |
|
|---|
| 2067 | exit 0
|
|---|
| 2068 | EOF
|
|---|
| 2069 | chmod +x $CONFIG_STATUS
|
|---|
| 2070 | rm -fr confdefs* $ac_clean_files
|
|---|
| 2071 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
|---|
| 2072 |
|
|---|