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