| 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 | --enable-shared[=PKGS] build shared libraries [default=no]"
|
|---|
| 16 | ac_help="$ac_help
|
|---|
| 17 | --enable-static[=PKGS] build static libraries [default=yes]"
|
|---|
| 18 | ac_help="$ac_help
|
|---|
| 19 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
|
|---|
| 20 | ac_help="$ac_help
|
|---|
| 21 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
|
|---|
| 22 | ac_help="$ac_help
|
|---|
| 23 | --disable-libtool-lock avoid locking (might break parallel builds)"
|
|---|
| 24 | ac_help="$ac_help
|
|---|
| 25 | --with-pic try to use only PIC/non-PIC objects [default=use both]"
|
|---|
| 26 | ac_help="$ac_help
|
|---|
| 27 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
|
|---|
| 28 | ac_help="$ac_help
|
|---|
| 29 | --enable-targets alternative target configurations"
|
|---|
| 30 | ac_help="$ac_help
|
|---|
| 31 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
|
|---|
| 32 | ac_help="$ac_help
|
|---|
| 33 | --with-mmap try using mmap for BFD input files if available"
|
|---|
| 34 | ac_help="$ac_help
|
|---|
| 35 | --enable-build-warnings Enable build-time compiler warnings if gcc is used"
|
|---|
| 36 | ac_help="$ac_help
|
|---|
| 37 | --enable-maintainer-mode enable make rules and dependencies not useful
|
|---|
| 38 | (and sometimes confusing) to the casual installer"
|
|---|
| 39 | ac_help="$ac_help
|
|---|
| 40 | --enable-install-libbfd controls installation of libbfd and related headers"
|
|---|
| 41 | ac_help="$ac_help
|
|---|
| 42 | --disable-nls do not use Native Language Support"
|
|---|
| 43 | ac_help="$ac_help
|
|---|
| 44 | --with-included-gettext use the GNU gettext library included here"
|
|---|
| 45 |
|
|---|
| 46 | # Initialize some variables set by options.
|
|---|
| 47 | # The variables have the same names as the options, with
|
|---|
| 48 | # dashes changed to underlines.
|
|---|
| 49 | build=NONE
|
|---|
| 50 | cache_file=./config.cache
|
|---|
| 51 | exec_prefix=NONE
|
|---|
| 52 | host=NONE
|
|---|
| 53 | no_create=
|
|---|
| 54 | nonopt=NONE
|
|---|
| 55 | no_recursion=
|
|---|
| 56 | prefix=NONE
|
|---|
| 57 | program_prefix=NONE
|
|---|
| 58 | program_suffix=NONE
|
|---|
| 59 | program_transform_name=s,x,x,
|
|---|
| 60 | silent=
|
|---|
| 61 | site=
|
|---|
| 62 | srcdir=
|
|---|
| 63 | target=NONE
|
|---|
| 64 | verbose=
|
|---|
| 65 | x_includes=NONE
|
|---|
| 66 | x_libraries=NONE
|
|---|
| 67 | bindir='${exec_prefix}/bin'
|
|---|
| 68 | sbindir='${exec_prefix}/sbin'
|
|---|
| 69 | libexecdir='${exec_prefix}/libexec'
|
|---|
| 70 | datadir='${prefix}/share'
|
|---|
| 71 | sysconfdir='${prefix}/etc'
|
|---|
| 72 | sharedstatedir='${prefix}/com'
|
|---|
| 73 | localstatedir='${prefix}/var'
|
|---|
| 74 | libdir='${exec_prefix}/lib'
|
|---|
| 75 | includedir='${prefix}/include'
|
|---|
| 76 | oldincludedir='/usr/include'
|
|---|
| 77 | infodir='${prefix}/info'
|
|---|
| 78 | mandir='${prefix}/man'
|
|---|
| 79 |
|
|---|
| 80 | # Initialize some other variables.
|
|---|
| 81 | subdirs=
|
|---|
| 82 | MFLAGS= MAKEFLAGS=
|
|---|
| 83 | SHELL=${CONFIG_SHELL-/bin/sh}
|
|---|
| 84 | # Maximum number of lines to put in a shell here document.
|
|---|
| 85 | ac_max_here_lines=12
|
|---|
| 86 |
|
|---|
| 87 | ac_prev=
|
|---|
| 88 | for ac_option
|
|---|
| 89 | do
|
|---|
| 90 |
|
|---|
| 91 | # If the previous option needs an argument, assign it.
|
|---|
| 92 | if test -n "$ac_prev"; then
|
|---|
| 93 | eval "$ac_prev=\$ac_option"
|
|---|
| 94 | ac_prev=
|
|---|
| 95 | continue
|
|---|
| 96 | fi
|
|---|
| 97 |
|
|---|
| 98 | case "$ac_option" in
|
|---|
| 99 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|---|
| 100 | *) ac_optarg= ;;
|
|---|
| 101 | esac
|
|---|
| 102 |
|
|---|
| 103 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
|---|
| 104 |
|
|---|
| 105 | case "$ac_option" in
|
|---|
| 106 |
|
|---|
| 107 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|---|
| 108 | ac_prev=bindir ;;
|
|---|
| 109 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
|---|
| 110 | bindir="$ac_optarg" ;;
|
|---|
| 111 |
|
|---|
| 112 | -build | --build | --buil | --bui | --bu)
|
|---|
| 113 | ac_prev=build ;;
|
|---|
| 114 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
|---|
| 115 | build="$ac_optarg" ;;
|
|---|
| 116 |
|
|---|
| 117 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
|---|
| 118 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|---|
| 119 | ac_prev=cache_file ;;
|
|---|
| 120 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|---|
| 121 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|---|
| 122 | cache_file="$ac_optarg" ;;
|
|---|
| 123 |
|
|---|
| 124 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
|---|
| 125 | ac_prev=datadir ;;
|
|---|
| 126 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
|---|
| 127 | | --da=*)
|
|---|
| 128 | datadir="$ac_optarg" ;;
|
|---|
| 129 |
|
|---|
| 130 | -disable-* | --disable-*)
|
|---|
| 131 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
|---|
| 132 | # Reject names that are not valid shell variable names.
|
|---|
| 133 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 134 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 135 | fi
|
|---|
| 136 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 137 | eval "enable_${ac_feature}=no" ;;
|
|---|
| 138 |
|
|---|
| 139 | -enable-* | --enable-*)
|
|---|
| 140 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
|---|
| 141 | # Reject names that are not valid shell variable names.
|
|---|
| 142 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 143 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 144 | fi
|
|---|
| 145 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 146 | case "$ac_option" in
|
|---|
| 147 | *=*) ;;
|
|---|
| 148 | *) ac_optarg=yes ;;
|
|---|
| 149 | esac
|
|---|
| 150 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
|---|
| 151 |
|
|---|
| 152 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
|---|
| 153 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
|---|
| 154 | | --exec | --exe | --ex)
|
|---|
| 155 | ac_prev=exec_prefix ;;
|
|---|
| 156 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
|---|
| 157 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
|---|
| 158 | | --exec=* | --exe=* | --ex=*)
|
|---|
| 159 | exec_prefix="$ac_optarg" ;;
|
|---|
| 160 |
|
|---|
| 161 | -gas | --gas | --ga | --g)
|
|---|
| 162 | # Obsolete; use --with-gas.
|
|---|
| 163 | with_gas=yes ;;
|
|---|
| 164 |
|
|---|
| 165 | -help | --help | --hel | --he)
|
|---|
| 166 | # Omit some internal or obsolete options to make the list less imposing.
|
|---|
| 167 | # This message is too long to be a string in the A/UX 3.1 sh.
|
|---|
| 168 | cat << EOF
|
|---|
| 169 | Usage: configure [options] [host]
|
|---|
| 170 | Options: [defaults in brackets after descriptions]
|
|---|
| 171 | Configuration:
|
|---|
| 172 | --cache-file=FILE cache test results in FILE
|
|---|
| 173 | --help print this message
|
|---|
| 174 | --no-create do not create output files
|
|---|
| 175 | --quiet, --silent do not print \`checking...' messages
|
|---|
| 176 | --version print the version of autoconf that created configure
|
|---|
| 177 | Directory and file names:
|
|---|
| 178 | --prefix=PREFIX install architecture-independent files in PREFIX
|
|---|
| 179 | [$ac_default_prefix]
|
|---|
| 180 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
|---|
| 181 | [same as prefix]
|
|---|
| 182 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
|---|
| 183 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
|---|
| 184 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
|---|
| 185 | --datadir=DIR read-only architecture-independent data in DIR
|
|---|
| 186 | [PREFIX/share]
|
|---|
| 187 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
|---|
| 188 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
|---|
| 189 | [PREFIX/com]
|
|---|
| 190 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
|---|
| 191 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
|---|
| 192 | --includedir=DIR C header files in DIR [PREFIX/include]
|
|---|
| 193 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
|---|
| 194 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
|---|
| 195 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
|---|
| 196 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
|---|
| 197 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
|---|
| 198 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
|---|
| 199 | --program-transform-name=PROGRAM
|
|---|
| 200 | run sed PROGRAM on installed program names
|
|---|
| 201 | EOF
|
|---|
| 202 | cat << EOF
|
|---|
| 203 | Host type:
|
|---|
| 204 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
|---|
| 205 | --host=HOST configure for HOST [guessed]
|
|---|
| 206 | --target=TARGET configure for TARGET [TARGET=HOST]
|
|---|
| 207 | Features and packages:
|
|---|
| 208 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|---|
| 209 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|---|
| 210 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
|---|
| 211 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
|---|
| 212 | --x-includes=DIR X include files are in DIR
|
|---|
| 213 | --x-libraries=DIR X library files are in DIR
|
|---|
| 214 | EOF
|
|---|
| 215 | if test -n "$ac_help"; then
|
|---|
| 216 | echo "--enable and --with options recognized:$ac_help"
|
|---|
| 217 | fi
|
|---|
| 218 | exit 0 ;;
|
|---|
| 219 |
|
|---|
| 220 | -host | --host | --hos | --ho)
|
|---|
| 221 | ac_prev=host ;;
|
|---|
| 222 | -host=* | --host=* | --hos=* | --ho=*)
|
|---|
| 223 | host="$ac_optarg" ;;
|
|---|
| 224 |
|
|---|
| 225 | -includedir | --includedir | --includedi | --included | --include \
|
|---|
| 226 | | --includ | --inclu | --incl | --inc)
|
|---|
| 227 | ac_prev=includedir ;;
|
|---|
| 228 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|---|
| 229 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
|---|
| 230 | includedir="$ac_optarg" ;;
|
|---|
| 231 |
|
|---|
| 232 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
|---|
| 233 | ac_prev=infodir ;;
|
|---|
| 234 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
|---|
| 235 | infodir="$ac_optarg" ;;
|
|---|
| 236 |
|
|---|
| 237 | -libdir | --libdir | --libdi | --libd)
|
|---|
| 238 | ac_prev=libdir ;;
|
|---|
| 239 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
|---|
| 240 | libdir="$ac_optarg" ;;
|
|---|
| 241 |
|
|---|
| 242 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|---|
| 243 | | --libexe | --libex | --libe)
|
|---|
| 244 | ac_prev=libexecdir ;;
|
|---|
| 245 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|---|
| 246 | | --libexe=* | --libex=* | --libe=*)
|
|---|
| 247 | libexecdir="$ac_optarg" ;;
|
|---|
| 248 |
|
|---|
| 249 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
|---|
| 250 | | --localstate | --localstat | --localsta | --localst \
|
|---|
| 251 | | --locals | --local | --loca | --loc | --lo)
|
|---|
| 252 | ac_prev=localstatedir ;;
|
|---|
| 253 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
|---|
| 254 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
|---|
| 255 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
|---|
| 256 | localstatedir="$ac_optarg" ;;
|
|---|
| 257 |
|
|---|
| 258 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|---|
| 259 | ac_prev=mandir ;;
|
|---|
| 260 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
|---|
| 261 | mandir="$ac_optarg" ;;
|
|---|
| 262 |
|
|---|
| 263 | -nfp | --nfp | --nf)
|
|---|
| 264 | # Obsolete; use --without-fp.
|
|---|
| 265 | with_fp=no ;;
|
|---|
| 266 |
|
|---|
| 267 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 268 | | --no-cr | --no-c)
|
|---|
| 269 | no_create=yes ;;
|
|---|
| 270 |
|
|---|
| 271 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 272 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
|---|
| 273 | no_recursion=yes ;;
|
|---|
| 274 |
|
|---|
| 275 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
|---|
| 276 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
|---|
| 277 | | --oldin | --oldi | --old | --ol | --o)
|
|---|
| 278 | ac_prev=oldincludedir ;;
|
|---|
| 279 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
|---|
| 280 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
|---|
| 281 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
|---|
| 282 | oldincludedir="$ac_optarg" ;;
|
|---|
| 283 |
|
|---|
| 284 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|---|
| 285 | ac_prev=prefix ;;
|
|---|
| 286 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
|---|
| 287 | prefix="$ac_optarg" ;;
|
|---|
| 288 |
|
|---|
| 289 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
|---|
| 290 | | --program-pre | --program-pr | --program-p)
|
|---|
| 291 | ac_prev=program_prefix ;;
|
|---|
| 292 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
|---|
| 293 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
|---|
| 294 | program_prefix="$ac_optarg" ;;
|
|---|
| 295 |
|
|---|
| 296 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
|---|
| 297 | | --program-suf | --program-su | --program-s)
|
|---|
| 298 | ac_prev=program_suffix ;;
|
|---|
| 299 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
|---|
| 300 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
|---|
| 301 | program_suffix="$ac_optarg" ;;
|
|---|
| 302 |
|
|---|
| 303 | -program-transform-name | --program-transform-name \
|
|---|
| 304 | | --program-transform-nam | --program-transform-na \
|
|---|
| 305 | | --program-transform-n | --program-transform- \
|
|---|
| 306 | | --program-transform | --program-transfor \
|
|---|
| 307 | | --program-transfo | --program-transf \
|
|---|
| 308 | | --program-trans | --program-tran \
|
|---|
| 309 | | --progr-tra | --program-tr | --program-t)
|
|---|
| 310 | ac_prev=program_transform_name ;;
|
|---|
| 311 | -program-transform-name=* | --program-transform-name=* \
|
|---|
| 312 | | --program-transform-nam=* | --program-transform-na=* \
|
|---|
| 313 | | --program-transform-n=* | --program-transform-=* \
|
|---|
| 314 | | --program-transform=* | --program-transfor=* \
|
|---|
| 315 | | --program-transfo=* | --program-transf=* \
|
|---|
| 316 | | --program-trans=* | --program-tran=* \
|
|---|
| 317 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
|---|
| 318 | program_transform_name="$ac_optarg" ;;
|
|---|
| 319 |
|
|---|
| 320 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|---|
| 321 | | -silent | --silent | --silen | --sile | --sil)
|
|---|
| 322 | silent=yes ;;
|
|---|
| 323 |
|
|---|
| 324 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
|---|
| 325 | ac_prev=sbindir ;;
|
|---|
| 326 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
|---|
| 327 | | --sbi=* | --sb=*)
|
|---|
| 328 | sbindir="$ac_optarg" ;;
|
|---|
| 329 |
|
|---|
| 330 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
|---|
| 331 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
|---|
| 332 | | --sharedst | --shareds | --shared | --share | --shar \
|
|---|
| 333 | | --sha | --sh)
|
|---|
| 334 | ac_prev=sharedstatedir ;;
|
|---|
| 335 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
|---|
| 336 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
|---|
| 337 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
|---|
| 338 | | --sha=* | --sh=*)
|
|---|
| 339 | sharedstatedir="$ac_optarg" ;;
|
|---|
| 340 |
|
|---|
| 341 | -site | --site | --sit)
|
|---|
| 342 | ac_prev=site ;;
|
|---|
| 343 | -site=* | --site=* | --sit=*)
|
|---|
| 344 | site="$ac_optarg" ;;
|
|---|
| 345 |
|
|---|
| 346 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|---|
| 347 | ac_prev=srcdir ;;
|
|---|
| 348 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|---|
| 349 | srcdir="$ac_optarg" ;;
|
|---|
| 350 |
|
|---|
| 351 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|---|
| 352 | | --syscon | --sysco | --sysc | --sys | --sy)
|
|---|
| 353 | ac_prev=sysconfdir ;;
|
|---|
| 354 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|---|
| 355 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
|---|
| 356 | sysconfdir="$ac_optarg" ;;
|
|---|
| 357 |
|
|---|
| 358 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
|---|
| 359 | ac_prev=target ;;
|
|---|
| 360 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
|---|
| 361 | target="$ac_optarg" ;;
|
|---|
| 362 |
|
|---|
| 363 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|---|
| 364 | verbose=yes ;;
|
|---|
| 365 |
|
|---|
| 366 | -version | --version | --versio | --versi | --vers)
|
|---|
| 367 | echo "configure generated by autoconf version 2.13"
|
|---|
| 368 | exit 0 ;;
|
|---|
| 369 |
|
|---|
| 370 | -with-* | --with-*)
|
|---|
| 371 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
|---|
| 372 | # Reject names that are not valid shell variable names.
|
|---|
| 373 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 374 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 375 | fi
|
|---|
| 376 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 377 | case "$ac_option" in
|
|---|
| 378 | *=*) ;;
|
|---|
| 379 | *) ac_optarg=yes ;;
|
|---|
| 380 | esac
|
|---|
| 381 | eval "with_${ac_package}='$ac_optarg'" ;;
|
|---|
| 382 |
|
|---|
| 383 | -without-* | --without-*)
|
|---|
| 384 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
|---|
| 385 | # Reject names that are not valid shell variable names.
|
|---|
| 386 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 387 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 388 | fi
|
|---|
| 389 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 390 | eval "with_${ac_package}=no" ;;
|
|---|
| 391 |
|
|---|
| 392 | --x)
|
|---|
| 393 | # Obsolete; use --with-x.
|
|---|
| 394 | with_x=yes ;;
|
|---|
| 395 |
|
|---|
| 396 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
|---|
| 397 | | --x-incl | --x-inc | --x-in | --x-i)
|
|---|
| 398 | ac_prev=x_includes ;;
|
|---|
| 399 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
|---|
| 400 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
|---|
| 401 | x_includes="$ac_optarg" ;;
|
|---|
| 402 |
|
|---|
| 403 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
|---|
| 404 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
|---|
| 405 | ac_prev=x_libraries ;;
|
|---|
| 406 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
|---|
| 407 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
|---|
| 408 | x_libraries="$ac_optarg" ;;
|
|---|
| 409 |
|
|---|
| 410 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
|---|
| 411 | ;;
|
|---|
| 412 |
|
|---|
| 413 | *)
|
|---|
| 414 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
|---|
| 415 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
|---|
| 416 | fi
|
|---|
| 417 | if test "x$nonopt" != xNONE; then
|
|---|
| 418 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
|---|
| 419 | fi
|
|---|
| 420 | nonopt="$ac_option"
|
|---|
| 421 | ;;
|
|---|
| 422 |
|
|---|
| 423 | esac
|
|---|
| 424 | done
|
|---|
| 425 |
|
|---|
| 426 | if test -n "$ac_prev"; then
|
|---|
| 427 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
|---|
| 428 | fi
|
|---|
| 429 |
|
|---|
| 430 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|---|
| 431 |
|
|---|
| 432 | # File descriptor usage:
|
|---|
| 433 | # 0 standard input
|
|---|
| 434 | # 1 file creation
|
|---|
| 435 | # 2 errors and warnings
|
|---|
| 436 | # 3 some systems may open it to /dev/tty
|
|---|
| 437 | # 4 used on the Kubota Titan
|
|---|
| 438 | # 6 checking for... messages and results
|
|---|
| 439 | # 5 compiler messages saved in config.log
|
|---|
| 440 | if test "$silent" = yes; then
|
|---|
| 441 | exec 6>/dev/null
|
|---|
| 442 | else
|
|---|
| 443 | exec 6>&1
|
|---|
| 444 | fi
|
|---|
| 445 | exec 5>./config.log
|
|---|
| 446 |
|
|---|
| 447 | echo "\
|
|---|
| 448 | This file contains any messages produced by compilers while
|
|---|
| 449 | running configure, to aid debugging if configure makes a mistake.
|
|---|
| 450 | " 1>&5
|
|---|
| 451 |
|
|---|
| 452 | # Strip out --no-create and --no-recursion so they do not pile up.
|
|---|
| 453 | # Also quote any args containing shell metacharacters.
|
|---|
| 454 | ac_configure_args=
|
|---|
| 455 | for ac_arg
|
|---|
| 456 | do
|
|---|
| 457 | case "$ac_arg" in
|
|---|
| 458 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 459 | | --no-cr | --no-c) ;;
|
|---|
| 460 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 461 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|---|
| 462 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|---|
| 463 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|---|
| 464 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|---|
| 465 | esac
|
|---|
| 466 | done
|
|---|
| 467 |
|
|---|
| 468 | # NLS nuisances.
|
|---|
| 469 | # Only set these to C if already set. These must not be set unconditionally
|
|---|
| 470 | # because not all systems understand e.g. LANG=C (notably SCO).
|
|---|
| 471 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|---|
| 472 | # Non-C LC_CTYPE values break the ctype check.
|
|---|
| 473 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|---|
| 474 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|---|
| 475 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|---|
| 476 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|---|
| 477 |
|
|---|
| 478 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|---|
| 479 | rm -rf conftest* confdefs.h
|
|---|
| 480 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|---|
| 481 | echo > confdefs.h
|
|---|
| 482 |
|
|---|
| 483 | # A filename unique to this package, relative to the directory that
|
|---|
| 484 | # configure is in, which we can look for to find out if srcdir is correct.
|
|---|
| 485 | ac_unique_file=libbfd.c
|
|---|
| 486 |
|
|---|
| 487 | # Find the source files, if location was not specified.
|
|---|
| 488 | if test -z "$srcdir"; then
|
|---|
| 489 | ac_srcdir_defaulted=yes
|
|---|
| 490 | # Try the directory containing this script, then its parent.
|
|---|
| 491 | ac_prog=$0
|
|---|
| 492 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|---|
| 493 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|---|
| 494 | srcdir=$ac_confdir
|
|---|
| 495 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 496 | srcdir=..
|
|---|
| 497 | fi
|
|---|
| 498 | else
|
|---|
| 499 | ac_srcdir_defaulted=no
|
|---|
| 500 | fi
|
|---|
| 501 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 502 | if test "$ac_srcdir_defaulted" = yes; then
|
|---|
| 503 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|---|
| 504 | else
|
|---|
| 505 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|---|
| 506 | fi
|
|---|
| 507 | fi
|
|---|
| 508 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|---|
| 509 |
|
|---|
| 510 | # Prefer explicitly selected file to automatically selected ones.
|
|---|
| 511 | if test -z "$CONFIG_SITE"; then
|
|---|
| 512 | if test "x$prefix" != xNONE; then
|
|---|
| 513 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|---|
| 514 | else
|
|---|
| 515 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|---|
| 516 | fi
|
|---|
| 517 | fi
|
|---|
| 518 | for ac_site_file in $CONFIG_SITE; do
|
|---|
| 519 | if test -r "$ac_site_file"; then
|
|---|
| 520 | echo "loading site script $ac_site_file"
|
|---|
| 521 | . "$ac_site_file"
|
|---|
| 522 | fi
|
|---|
| 523 | done
|
|---|
| 524 |
|
|---|
| 525 | if test -r "$cache_file"; then
|
|---|
| 526 | echo "loading cache $cache_file"
|
|---|
| 527 | . $cache_file
|
|---|
| 528 | else
|
|---|
| 529 | echo "creating cache $cache_file"
|
|---|
| 530 | > $cache_file
|
|---|
| 531 | fi
|
|---|
| 532 |
|
|---|
| 533 | ac_ext=c
|
|---|
| 534 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 535 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 536 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 537 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 538 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 539 |
|
|---|
| 540 | ac_exeext=
|
|---|
| 541 | ac_objext=o
|
|---|
| 542 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|---|
| 543 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
|---|
| 544 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|---|
| 545 | ac_n= ac_c='
|
|---|
| 546 | ' ac_t=' '
|
|---|
| 547 | else
|
|---|
| 548 | ac_n=-n ac_c= ac_t=
|
|---|
| 549 | fi
|
|---|
| 550 | else
|
|---|
| 551 | ac_n= ac_c='\c' ac_t=
|
|---|
| 552 | fi
|
|---|
| 553 |
|
|---|
| 554 | echo $ac_n "checking for path separator""... $ac_c" 1>&6
|
|---|
| 555 | echo "configure:556: checking for path separator" >&5
|
|---|
| 556 | # Filter path to get backslahes into forwardslashes
|
|---|
| 557 | case "`uname -s 2> /dev/null`" in
|
|---|
| 558 | OS/2)
|
|---|
| 559 | PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
|
|---|
| 560 | PATH_IFS=';'
|
|---|
| 561 | ;;
|
|---|
| 562 | *)
|
|---|
| 563 | PATH_IFS=':'
|
|---|
| 564 | ;;
|
|---|
| 565 | esac
|
|---|
| 566 | echo "$ac_t""${PATH_IFS}" 1>&6
|
|---|
| 567 |
|
|---|
| 568 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
|---|
| 569 | echo "configure:570: checking for Cygwin environment" >&5
|
|---|
| 570 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
|---|
| 571 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 572 | else
|
|---|
| 573 | cat > conftest.$ac_ext <<EOF
|
|---|
| 574 | #line 575 "configure"
|
|---|
| 575 | #include "confdefs.h"
|
|---|
| 576 |
|
|---|
| 577 | int main() {
|
|---|
| 578 |
|
|---|
| 579 | #ifndef __CYGWIN__
|
|---|
| 580 | #define __CYGWIN__ __CYGWIN32__
|
|---|
| 581 | #endif
|
|---|
| 582 | return __CYGWIN__;
|
|---|
| 583 | ; return 0; }
|
|---|
| 584 | EOF
|
|---|
| 585 | if { (eval echo configure:586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 586 | rm -rf conftest*
|
|---|
| 587 | ac_cv_cygwin=yes
|
|---|
| 588 | else
|
|---|
| 589 | echo "configure: failed program was:" >&5
|
|---|
| 590 | cat conftest.$ac_ext >&5
|
|---|
| 591 | rm -rf conftest*
|
|---|
| 592 | ac_cv_cygwin=no
|
|---|
| 593 | fi
|
|---|
| 594 | rm -f conftest*
|
|---|
| 595 | rm -f conftest*
|
|---|
| 596 | fi
|
|---|
| 597 |
|
|---|
| 598 | echo "$ac_t""$ac_cv_cygwin" 1>&6
|
|---|
| 599 | CYGWIN=
|
|---|
| 600 | test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
|---|
| 601 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
|---|
| 602 | echo "configure:603: checking for mingw32 environment" >&5
|
|---|
| 603 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
|---|
| 604 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 605 | else
|
|---|
| 606 | cat > conftest.$ac_ext <<EOF
|
|---|
| 607 | #line 608 "configure"
|
|---|
| 608 | #include "confdefs.h"
|
|---|
| 609 |
|
|---|
| 610 | int main() {
|
|---|
| 611 | return __MINGW32__;
|
|---|
| 612 | ; return 0; }
|
|---|
| 613 | EOF
|
|---|
| 614 | if { (eval echo configure:615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 615 | rm -rf conftest*
|
|---|
| 616 | ac_cv_mingw32=yes
|
|---|
| 617 | else
|
|---|
| 618 | echo "configure: failed program was:" >&5
|
|---|
| 619 | cat conftest.$ac_ext >&5
|
|---|
| 620 | rm -rf conftest*
|
|---|
| 621 | ac_cv_mingw32=no
|
|---|
| 622 | fi
|
|---|
| 623 | rm -f conftest*
|
|---|
| 624 | rm -f conftest*
|
|---|
| 625 | fi
|
|---|
| 626 |
|
|---|
| 627 | echo "$ac_t""$ac_cv_mingw32" 1>&6
|
|---|
| 628 | MINGW32=
|
|---|
| 629 | test "$ac_cv_mingw32" = yes && MINGW32=yes
|
|---|
| 630 | echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
|
|---|
| 631 | echo "configure:632: checking for EMX/OS2 environment" >&5
|
|---|
| 632 | if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
|
|---|
| 633 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 634 | else
|
|---|
| 635 | : ${CC=gcc.exe}
|
|---|
| 636 | cat > conftest.$ac_ext <<EOF
|
|---|
| 637 | #line 638 "configure"
|
|---|
| 638 | #include "confdefs.h"
|
|---|
| 639 |
|
|---|
| 640 | int main() {
|
|---|
| 641 | return __EMX__;
|
|---|
| 642 | ; return 0; }
|
|---|
| 643 | EOF
|
|---|
| 644 | if { (eval echo configure:645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 645 | rm -rf conftest*
|
|---|
| 646 | ac_cv_emxos2=yes
|
|---|
| 647 | else
|
|---|
| 648 | echo "configure: failed program was:" >&5
|
|---|
| 649 | cat conftest.$ac_ext >&5
|
|---|
| 650 | rm -rf conftest*
|
|---|
| 651 | ac_cv_emxos2=no
|
|---|
| 652 | fi
|
|---|
| 653 | rm -f conftest*
|
|---|
| 654 | rm -f conftest*
|
|---|
| 655 | fi
|
|---|
| 656 |
|
|---|
| 657 | echo "$ac_t""$ac_cv_emxos2" 1>&6
|
|---|
| 658 | if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
|
|---|
| 659 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 660 | else
|
|---|
| 661 | if test "$ac_cv_emxos2" = yes ; then
|
|---|
| 662 | ac_cv_libpre=
|
|---|
| 663 | else
|
|---|
| 664 | ac_cv_libpre=lib
|
|---|
| 665 | fi
|
|---|
| 666 |
|
|---|
| 667 | fi
|
|---|
| 668 |
|
|---|
| 669 | EMXOS2=
|
|---|
| 670 | test "$ac_cv_emxos2" = yes && EMXOS2=yes
|
|---|
| 671 |
|
|---|
| 672 |
|
|---|
| 673 |
|
|---|
| 674 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 675 | echo "configure:676: checking for executable suffix" >&5
|
|---|
| 676 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 677 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 678 | else
|
|---|
| 679 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
|---|
| 680 | ac_cv_exeext=.exe
|
|---|
| 681 | else
|
|---|
| 682 | rm -f conftest*
|
|---|
| 683 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 684 | ac_cv_exeext=
|
|---|
| 685 | if { (eval echo configure:686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 686 | for file in conftest.*; do
|
|---|
| 687 | case $file in
|
|---|
| 688 | *.c | *.o | *.obj) ;;
|
|---|
| 689 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 690 | esac
|
|---|
| 691 | done
|
|---|
| 692 | else
|
|---|
| 693 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 694 | fi
|
|---|
| 695 | rm -f conftest*
|
|---|
| 696 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 697 | fi
|
|---|
| 698 | fi
|
|---|
| 699 |
|
|---|
| 700 | EXEEXT=""
|
|---|
| 701 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 702 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 703 | ac_exeext=$EXEEXT
|
|---|
| 704 |
|
|---|
| 705 |
|
|---|
| 706 |
|
|---|
| 707 | ac_aux_dir=
|
|---|
| 708 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
|---|
| 709 | if test -f $ac_dir/install-sh; then
|
|---|
| 710 | ac_aux_dir=$ac_dir
|
|---|
| 711 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
|---|
| 712 | break
|
|---|
| 713 | elif test -f $ac_dir/install.sh; then
|
|---|
| 714 | ac_aux_dir=$ac_dir
|
|---|
| 715 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
|---|
| 716 | break
|
|---|
| 717 | fi
|
|---|
| 718 | done
|
|---|
| 719 | if test -z "$ac_aux_dir"; then
|
|---|
| 720 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
|---|
| 721 | fi
|
|---|
| 722 | ac_config_guess=$ac_aux_dir/config.guess
|
|---|
| 723 | ac_config_sub=$ac_aux_dir/config.sub
|
|---|
| 724 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|---|
| 725 |
|
|---|
| 726 |
|
|---|
| 727 | # Do some error checking and defaulting for the host and target type.
|
|---|
| 728 | # The inputs are:
|
|---|
| 729 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT
|
|---|
| 730 | #
|
|---|
| 731 | # The rules are:
|
|---|
| 732 | # 1. You are not allowed to specify --host, --target, and nonopt at the
|
|---|
| 733 | # same time.
|
|---|
| 734 | # 2. Host defaults to nonopt.
|
|---|
| 735 | # 3. If nonopt is not specified, then host defaults to the current host,
|
|---|
| 736 | # as determined by config.guess.
|
|---|
| 737 | # 4. Target and build default to nonopt.
|
|---|
| 738 | # 5. If nonopt is not specified, then target and build default to host.
|
|---|
| 739 |
|
|---|
| 740 | # The aliases save the names the user supplied, while $host etc.
|
|---|
| 741 | # will get canonicalized.
|
|---|
| 742 | case $host---$target---$nonopt in
|
|---|
| 743 | NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
|---|
| 744 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
|
|---|
| 745 | esac
|
|---|
| 746 |
|
|---|
| 747 |
|
|---|
| 748 | # Make sure we can run config.sub.
|
|---|
| 749 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
|---|
| 750 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
|---|
| 751 | fi
|
|---|
| 752 |
|
|---|
| 753 | echo $ac_n "checking host system type""... $ac_c" 1>&6
|
|---|
| 754 | echo "configure:755: checking host system type" >&5
|
|---|
| 755 |
|
|---|
| 756 | host_alias=$host
|
|---|
| 757 | case "$host_alias" in
|
|---|
| 758 | NONE)
|
|---|
| 759 | case $nonopt in
|
|---|
| 760 | NONE)
|
|---|
| 761 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
|---|
| 762 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
|---|
| 763 | fi ;;
|
|---|
| 764 | *) host_alias=$nonopt ;;
|
|---|
| 765 | esac ;;
|
|---|
| 766 | esac
|
|---|
| 767 |
|
|---|
| 768 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
|---|
| 769 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 770 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 771 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 772 | echo "$ac_t""$host" 1>&6
|
|---|
| 773 |
|
|---|
| 774 | echo $ac_n "checking target system type""... $ac_c" 1>&6
|
|---|
| 775 | echo "configure:776: checking target system type" >&5
|
|---|
| 776 |
|
|---|
| 777 | target_alias=$target
|
|---|
| 778 | case "$target_alias" in
|
|---|
| 779 | NONE)
|
|---|
| 780 | case $nonopt in
|
|---|
| 781 | NONE) target_alias=$host_alias ;;
|
|---|
| 782 | *) target_alias=$nonopt ;;
|
|---|
| 783 | esac ;;
|
|---|
| 784 | esac
|
|---|
| 785 |
|
|---|
| 786 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
|
|---|
| 787 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 788 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 789 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 790 | echo "$ac_t""$target" 1>&6
|
|---|
| 791 |
|
|---|
| 792 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
|---|
| 793 | echo "configure:794: checking build system type" >&5
|
|---|
| 794 |
|
|---|
| 795 | build_alias=$build
|
|---|
| 796 | case "$build_alias" in
|
|---|
| 797 | NONE)
|
|---|
| 798 | case $nonopt in
|
|---|
| 799 | NONE) build_alias=$host_alias ;;
|
|---|
| 800 | *) build_alias=$nonopt ;;
|
|---|
| 801 | esac ;;
|
|---|
| 802 | esac
|
|---|
| 803 |
|
|---|
| 804 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
|---|
| 805 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 806 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 807 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 808 | echo "$ac_t""$build" 1>&6
|
|---|
| 809 |
|
|---|
| 810 | test "$host_alias" != "$target_alias" &&
|
|---|
| 811 | test "$program_prefix$program_suffix$program_transform_name" = \
|
|---|
| 812 | NONENONEs,x,x, &&
|
|---|
| 813 | program_prefix=${target_alias}-
|
|---|
| 814 |
|
|---|
| 815 |
|
|---|
| 816 | echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
|
|---|
| 817 | echo "configure:818: checking for strerror in -lcposix" >&5
|
|---|
| 818 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
|
|---|
| 819 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 820 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 821 | else
|
|---|
| 822 | ac_save_LIBS="$LIBS"
|
|---|
| 823 | LIBS="-lcposix $LIBS"
|
|---|
| 824 | cat > conftest.$ac_ext <<EOF
|
|---|
| 825 | #line 826 "configure"
|
|---|
| 826 | #include "confdefs.h"
|
|---|
| 827 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 828 | /* We use char because int might match the return type of a gcc2
|
|---|
| 829 | builtin and then its argument prototype would still apply. */
|
|---|
| 830 | char strerror();
|
|---|
| 831 |
|
|---|
| 832 | int main() {
|
|---|
| 833 | strerror()
|
|---|
| 834 | ; return 0; }
|
|---|
| 835 | EOF
|
|---|
| 836 | if { (eval echo configure:837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 837 | rm -rf conftest*
|
|---|
| 838 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 839 | else
|
|---|
| 840 | echo "configure: failed program was:" >&5
|
|---|
| 841 | cat conftest.$ac_ext >&5
|
|---|
| 842 | rm -rf conftest*
|
|---|
| 843 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 844 | fi
|
|---|
| 845 | rm -f conftest*
|
|---|
| 846 | LIBS="$ac_save_LIBS"
|
|---|
| 847 |
|
|---|
| 848 | fi
|
|---|
| 849 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 850 | echo "$ac_t""yes" 1>&6
|
|---|
| 851 | LIBS="$LIBS -lcposix"
|
|---|
| 852 | else
|
|---|
| 853 | echo "$ac_t""no" 1>&6
|
|---|
| 854 | fi
|
|---|
| 855 |
|
|---|
| 856 |
|
|---|
| 857 |
|
|---|
| 858 |
|
|---|
| 859 | # Find a good install program. We prefer a C program (faster),
|
|---|
| 860 | # so one script is as good as another. But avoid the broken or
|
|---|
| 861 | # incompatible versions:
|
|---|
| 862 | # SysV /etc/install, /usr/sbin/install
|
|---|
| 863 | # SunOS /usr/etc/install
|
|---|
| 864 | # IRIX /sbin/install
|
|---|
| 865 | # AIX /bin/install
|
|---|
| 866 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|---|
| 867 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|---|
| 868 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|---|
| 869 | # ./install, which can be erroneously created by make from ./install.sh.
|
|---|
| 870 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|---|
| 871 | echo "configure:872: checking for a BSD compatible install" >&5
|
|---|
| 872 | if test -z "$INSTALL"; then
|
|---|
| 873 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|---|
| 874 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 875 | else
|
|---|
| 876 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
|---|
| 877 | for ac_dir in $PATH; do
|
|---|
| 878 | # Account for people who put trailing slashes in PATH elements.
|
|---|
| 879 | case "$ac_dir/" in
|
|---|
| 880 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|---|
| 881 | # We reject the install program from OS/2 or W3.1
|
|---|
| 882 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
|---|
| 883 | *)
|
|---|
| 884 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
|---|
| 885 | # Don't use installbsd from OSF since it installs stuff as root
|
|---|
| 886 | # by default.
|
|---|
| 887 | for ac_prog in ginstall scoinst install; do
|
|---|
| 888 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
|---|
| 889 | if test $ac_prog = install &&
|
|---|
| 890 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|---|
| 891 | # AIX install. It has an incompatible calling convention.
|
|---|
| 892 | :
|
|---|
| 893 | else
|
|---|
| 894 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
|---|
| 895 | break 2
|
|---|
| 896 | fi
|
|---|
| 897 | fi
|
|---|
| 898 | done
|
|---|
| 899 | ;;
|
|---|
| 900 | esac
|
|---|
| 901 | done
|
|---|
| 902 | IFS="$ac_save_IFS"
|
|---|
| 903 |
|
|---|
| 904 | fi
|
|---|
| 905 | if test "${ac_cv_path_install+set}" = set; then
|
|---|
| 906 | INSTALL="$ac_cv_path_install"
|
|---|
| 907 | else
|
|---|
| 908 | # As a last resort, use the slow shell script. We don't cache a
|
|---|
| 909 | # path for INSTALL within a source directory, because that will
|
|---|
| 910 | # break other packages using the cache if that directory is
|
|---|
| 911 | # removed, or if the path is relative.
|
|---|
| 912 | INSTALL="$ac_install_sh"
|
|---|
| 913 | fi
|
|---|
| 914 | fi
|
|---|
| 915 | echo "$ac_t""$INSTALL" 1>&6
|
|---|
| 916 |
|
|---|
| 917 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|---|
| 918 | # It thinks the first close brace ends the variable substitution.
|
|---|
| 919 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|---|
| 920 |
|
|---|
| 921 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|---|
| 922 |
|
|---|
| 923 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|---|
| 924 |
|
|---|
| 925 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
|---|
| 926 | echo "configure:927: checking whether build environment is sane" >&5
|
|---|
| 927 | # Just in case
|
|---|
| 928 | sleep 1
|
|---|
| 929 | echo timestamp > conftestfile
|
|---|
| 930 | # Do `set' in a subshell so we don't clobber the current shell's
|
|---|
| 931 | # arguments. Must try -L first in case configure is actually a
|
|---|
| 932 | # symlink; some systems play weird games with the mod time of symlinks
|
|---|
| 933 | # (eg FreeBSD returns the mod time of the symlink's containing
|
|---|
| 934 | # directory).
|
|---|
| 935 | if (
|
|---|
| 936 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
|---|
| 937 | if test "$*" = "X"; then
|
|---|
| 938 | # -L didn't work.
|
|---|
| 939 | set X `ls -t $srcdir/configure conftestfile`
|
|---|
| 940 | fi
|
|---|
| 941 | if test "$*" != "X $srcdir/configure conftestfile" \
|
|---|
| 942 | && test "$*" != "X conftestfile $srcdir/configure"; then
|
|---|
| 943 |
|
|---|
| 944 | # If neither matched, then we have a broken ls. This can happen
|
|---|
| 945 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
|---|
| 946 | # broken ls alias from the environment. This has actually
|
|---|
| 947 | # happened. Such a system could not be considered "sane".
|
|---|
| 948 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
|---|
| 949 | alias in your environment" 1>&2; exit 1; }
|
|---|
| 950 | fi
|
|---|
| 951 |
|
|---|
| 952 | test "$2" = conftestfile
|
|---|
| 953 | )
|
|---|
| 954 | then
|
|---|
| 955 | # Ok.
|
|---|
| 956 | :
|
|---|
| 957 | else
|
|---|
| 958 | { echo "configure: error: newly created file is older than distributed files!
|
|---|
| 959 | Check your system clock" 1>&2; exit 1; }
|
|---|
| 960 | fi
|
|---|
| 961 | rm -f conftest*
|
|---|
| 962 | echo "$ac_t""yes" 1>&6
|
|---|
| 963 | if test "$program_transform_name" = s,x,x,; then
|
|---|
| 964 | program_transform_name=
|
|---|
| 965 | else
|
|---|
| 966 | # Double any \ or $. echo might interpret backslashes.
|
|---|
| 967 | cat <<\EOF_SED > conftestsed
|
|---|
| 968 | s,\\,\\\\,g; s,\$,$$,g
|
|---|
| 969 | EOF_SED
|
|---|
| 970 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
|---|
| 971 | rm -f conftestsed
|
|---|
| 972 | fi
|
|---|
| 973 | test "$program_prefix" != NONE &&
|
|---|
| 974 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
|---|
| 975 | # Use a double $ so make ignores it.
|
|---|
| 976 | test "$program_suffix" != NONE &&
|
|---|
| 977 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
|---|
| 978 |
|
|---|
| 979 | # sed with no file args requires a program.
|
|---|
| 980 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
|---|
| 981 |
|
|---|
| 982 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
|---|
| 983 | echo "configure:984: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
|---|
| 984 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|---|
| 985 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
|---|
| 986 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 987 | else
|
|---|
| 988 | cat > conftestmake <<\EOF
|
|---|
| 989 | all:
|
|---|
| 990 | @echo 'ac_maketemp="${MAKE}"'
|
|---|
| 991 | EOF
|
|---|
| 992 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|---|
| 993 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
|---|
| 994 | if test -n "$ac_maketemp"; then
|
|---|
| 995 | eval ac_cv_prog_make_${ac_make}_set=yes
|
|---|
| 996 | else
|
|---|
| 997 | eval ac_cv_prog_make_${ac_make}_set=no
|
|---|
| 998 | fi
|
|---|
| 999 | rm -f conftestmake
|
|---|
| 1000 | fi
|
|---|
| 1001 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|---|
| 1002 | echo "$ac_t""yes" 1>&6
|
|---|
| 1003 | SET_MAKE=
|
|---|
| 1004 | else
|
|---|
| 1005 | echo "$ac_t""no" 1>&6
|
|---|
| 1006 | SET_MAKE="MAKE=${MAKE-make}"
|
|---|
| 1007 | fi
|
|---|
| 1008 |
|
|---|
| 1009 |
|
|---|
| 1010 | PACKAGE=bfd
|
|---|
| 1011 |
|
|---|
| 1012 | VERSION=2.14
|
|---|
| 1013 |
|
|---|
| 1014 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
|---|
| 1015 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
|---|
| 1016 | fi
|
|---|
| 1017 | cat >> confdefs.h <<EOF
|
|---|
| 1018 | #define PACKAGE "$PACKAGE"
|
|---|
| 1019 | EOF
|
|---|
| 1020 |
|
|---|
| 1021 | cat >> confdefs.h <<EOF
|
|---|
| 1022 | #define VERSION "$VERSION"
|
|---|
| 1023 | EOF
|
|---|
| 1024 |
|
|---|
| 1025 |
|
|---|
| 1026 |
|
|---|
| 1027 | missing_dir=`cd $ac_aux_dir && pwd`
|
|---|
| 1028 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
|---|
| 1029 | echo "configure:1030: checking for working aclocal" >&5
|
|---|
| 1030 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1031 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1032 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1033 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1034 | ACLOCAL=aclocal
|
|---|
| 1035 | echo "$ac_t""found" 1>&6
|
|---|
| 1036 | else
|
|---|
| 1037 | ACLOCAL="$missing_dir/missing aclocal"
|
|---|
| 1038 | echo "$ac_t""missing" 1>&6
|
|---|
| 1039 | fi
|
|---|
| 1040 |
|
|---|
| 1041 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
|---|
| 1042 | echo "configure:1043: checking for working autoconf" >&5
|
|---|
| 1043 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1044 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1045 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1046 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1047 | AUTOCONF=autoconf
|
|---|
| 1048 | echo "$ac_t""found" 1>&6
|
|---|
| 1049 | else
|
|---|
| 1050 | AUTOCONF="$missing_dir/missing autoconf"
|
|---|
| 1051 | echo "$ac_t""missing" 1>&6
|
|---|
| 1052 | fi
|
|---|
| 1053 |
|
|---|
| 1054 | echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
|---|
| 1055 | echo "configure:1056: checking for working automake" >&5
|
|---|
| 1056 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1057 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1058 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1059 | if (automake --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1060 | AUTOMAKE=automake
|
|---|
| 1061 | echo "$ac_t""found" 1>&6
|
|---|
| 1062 | else
|
|---|
| 1063 | AUTOMAKE="$missing_dir/missing automake"
|
|---|
| 1064 | echo "$ac_t""missing" 1>&6
|
|---|
| 1065 | fi
|
|---|
| 1066 |
|
|---|
| 1067 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
|---|
| 1068 | echo "configure:1069: checking for working autoheader" >&5
|
|---|
| 1069 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1070 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1071 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1072 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1073 | AUTOHEADER=autoheader
|
|---|
| 1074 | echo "$ac_t""found" 1>&6
|
|---|
| 1075 | else
|
|---|
| 1076 | AUTOHEADER="$missing_dir/missing autoheader"
|
|---|
| 1077 | echo "$ac_t""missing" 1>&6
|
|---|
| 1078 | fi
|
|---|
| 1079 |
|
|---|
| 1080 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
|---|
| 1081 | echo "configure:1082: checking for working makeinfo" >&5
|
|---|
| 1082 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1083 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1084 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1085 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1086 | MAKEINFO=makeinfo
|
|---|
| 1087 | echo "$ac_t""found" 1>&6
|
|---|
| 1088 | else
|
|---|
| 1089 | MAKEINFO="$missing_dir/missing makeinfo"
|
|---|
| 1090 | echo "$ac_t""missing" 1>&6
|
|---|
| 1091 | fi
|
|---|
| 1092 |
|
|---|
| 1093 |
|
|---|
| 1094 | # Uncomment the next line to remove the date from the reported bfd version
|
|---|
| 1095 | #is_release=y
|
|---|
| 1096 |
|
|---|
| 1097 | bfd_version=`echo "${VERSION}" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$/\1\2\3\4\5/'`
|
|---|
| 1098 |
|
|---|
| 1099 | bfd_version_string="\"${VERSION}\""
|
|---|
| 1100 | if test x${is_release} = x; then
|
|---|
| 1101 | bfd_version_date=`sed -n -e 's/.*DATE //p' < ${srcdir}/version.h`
|
|---|
| 1102 | bfd_version_string="\"${VERSION} ${bfd_version_date}\""
|
|---|
| 1103 | fi
|
|---|
| 1104 |
|
|---|
| 1105 |
|
|---|
| 1106 |
|
|---|
| 1107 | if test $host != $build; then
|
|---|
| 1108 | ac_tool_prefix=${host_alias}-
|
|---|
| 1109 | else
|
|---|
| 1110 | ac_tool_prefix=
|
|---|
| 1111 | fi
|
|---|
| 1112 |
|
|---|
| 1113 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
|---|
| 1114 | set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|---|
| 1115 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1116 | echo "configure:1117: checking for $ac_word" >&5
|
|---|
| 1117 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
|---|
| 1118 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1119 | else
|
|---|
| 1120 | if test -n "$AR"; then
|
|---|
| 1121 | ac_cv_prog_AR="$AR" # Let the user override the test.
|
|---|
| 1122 | else
|
|---|
| 1123 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1124 | ac_dummy="$PATH"
|
|---|
| 1125 | for ac_dir in $ac_dummy; do
|
|---|
| 1126 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1127 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1128 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1129 | ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|---|
| 1130 | break
|
|---|
| 1131 | fi
|
|---|
| 1132 | done
|
|---|
| 1133 | IFS="$ac_save_ifs"
|
|---|
| 1134 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
|
|---|
| 1135 | fi
|
|---|
| 1136 | fi
|
|---|
| 1137 | AR="$ac_cv_prog_AR"
|
|---|
| 1138 | if test -n "$AR"; then
|
|---|
| 1139 | echo "$ac_t""$AR" 1>&6
|
|---|
| 1140 | else
|
|---|
| 1141 | echo "$ac_t""no" 1>&6
|
|---|
| 1142 | fi
|
|---|
| 1143 |
|
|---|
| 1144 |
|
|---|
| 1145 |
|
|---|
| 1146 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|---|
| 1147 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|---|
| 1148 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1149 | echo "configure:1150: checking for $ac_word" >&5
|
|---|
| 1150 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1151 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1152 | else
|
|---|
| 1153 | if test -n "$RANLIB"; then
|
|---|
| 1154 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1155 | else
|
|---|
| 1156 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1157 | ac_dummy="$PATH"
|
|---|
| 1158 | for ac_dir in $ac_dummy; do
|
|---|
| 1159 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1160 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1161 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1162 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|---|
| 1163 | break
|
|---|
| 1164 | fi
|
|---|
| 1165 | done
|
|---|
| 1166 | IFS="$ac_save_ifs"
|
|---|
| 1167 | fi
|
|---|
| 1168 | fi
|
|---|
| 1169 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1170 | if test -n "$RANLIB"; then
|
|---|
| 1171 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1172 | else
|
|---|
| 1173 | echo "$ac_t""no" 1>&6
|
|---|
| 1174 | fi
|
|---|
| 1175 |
|
|---|
| 1176 |
|
|---|
| 1177 | if test -z "$ac_cv_prog_RANLIB"; then
|
|---|
| 1178 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1179 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 1180 | set dummy ranlib; ac_word=$2
|
|---|
| 1181 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1182 | echo "configure:1183: checking for $ac_word" >&5
|
|---|
| 1183 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1184 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1185 | else
|
|---|
| 1186 | if test -n "$RANLIB"; then
|
|---|
| 1187 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1188 | else
|
|---|
| 1189 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1190 | ac_dummy="$PATH"
|
|---|
| 1191 | for ac_dir in $ac_dummy; do
|
|---|
| 1192 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1193 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1194 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1195 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 1196 | break
|
|---|
| 1197 | fi
|
|---|
| 1198 | done
|
|---|
| 1199 | IFS="$ac_save_ifs"
|
|---|
| 1200 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 1201 | fi
|
|---|
| 1202 | fi
|
|---|
| 1203 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1204 | if test -n "$RANLIB"; then
|
|---|
| 1205 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1206 | else
|
|---|
| 1207 | echo "$ac_t""no" 1>&6
|
|---|
| 1208 | fi
|
|---|
| 1209 |
|
|---|
| 1210 | else
|
|---|
| 1211 | RANLIB=":"
|
|---|
| 1212 | fi
|
|---|
| 1213 | fi
|
|---|
| 1214 |
|
|---|
| 1215 |
|
|---|
| 1216 | # Check whether --enable-shared or --disable-shared was given.
|
|---|
| 1217 | if test "${enable_shared+set}" = set; then
|
|---|
| 1218 | enableval="$enable_shared"
|
|---|
| 1219 | p=${PACKAGE-default}
|
|---|
| 1220 | case $enableval in
|
|---|
| 1221 | yes) enable_shared=yes ;;
|
|---|
| 1222 | no) enable_shared=no ;;
|
|---|
| 1223 | *)
|
|---|
| 1224 | enable_shared=no
|
|---|
| 1225 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1226 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1227 | for pkg in $enableval; do
|
|---|
| 1228 | if test "X$pkg" = "X$p"; then
|
|---|
| 1229 | enable_shared=yes
|
|---|
| 1230 | fi
|
|---|
| 1231 | done
|
|---|
| 1232 | IFS="$ac_save_ifs"
|
|---|
| 1233 | ;;
|
|---|
| 1234 | esac
|
|---|
| 1235 | else
|
|---|
| 1236 | enable_shared=no
|
|---|
| 1237 | fi
|
|---|
| 1238 |
|
|---|
| 1239 |
|
|---|
| 1240 | # Check whether --enable-static or --disable-static was given.
|
|---|
| 1241 | if test "${enable_static+set}" = set; then
|
|---|
| 1242 | enableval="$enable_static"
|
|---|
| 1243 | p=${PACKAGE-default}
|
|---|
| 1244 | case $enableval in
|
|---|
| 1245 | yes) enable_static=yes ;;
|
|---|
| 1246 | no) enable_static=no ;;
|
|---|
| 1247 | *)
|
|---|
| 1248 | enable_static=no
|
|---|
| 1249 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1250 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1251 | for pkg in $enableval; do
|
|---|
| 1252 | if test "X$pkg" = "X$p"; then
|
|---|
| 1253 | enable_static=yes
|
|---|
| 1254 | fi
|
|---|
| 1255 | done
|
|---|
| 1256 | IFS="$ac_save_ifs"
|
|---|
| 1257 | ;;
|
|---|
| 1258 | esac
|
|---|
| 1259 | else
|
|---|
| 1260 | enable_static=yes
|
|---|
| 1261 | fi
|
|---|
| 1262 |
|
|---|
| 1263 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
|---|
| 1264 | if test "${enable_fast_install+set}" = set; then
|
|---|
| 1265 | enableval="$enable_fast_install"
|
|---|
| 1266 | p=${PACKAGE-default}
|
|---|
| 1267 | case $enableval in
|
|---|
| 1268 | yes) enable_fast_install=yes ;;
|
|---|
| 1269 | no) enable_fast_install=no ;;
|
|---|
| 1270 | *)
|
|---|
| 1271 | enable_fast_install=no
|
|---|
| 1272 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1273 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1274 | for pkg in $enableval; do
|
|---|
| 1275 | if test "X$pkg" = "X$p"; then
|
|---|
| 1276 | enable_fast_install=yes
|
|---|
| 1277 | fi
|
|---|
| 1278 | done
|
|---|
| 1279 | IFS="$ac_save_ifs"
|
|---|
| 1280 | ;;
|
|---|
| 1281 | esac
|
|---|
| 1282 | else
|
|---|
| 1283 | enable_fast_install=yes
|
|---|
| 1284 | fi
|
|---|
| 1285 |
|
|---|
| 1286 | # Extract the first word of "gcc", so it can be a program name with args.
|
|---|
| 1287 | set dummy gcc; ac_word=$2
|
|---|
| 1288 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1289 | echo "configure:1290: checking for $ac_word" >&5
|
|---|
| 1290 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 1291 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1292 | else
|
|---|
| 1293 | if test -n "$CC"; then
|
|---|
| 1294 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 1295 | else
|
|---|
| 1296 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1297 | ac_dummy="$PATH"
|
|---|
| 1298 | for ac_dir in $ac_dummy; do
|
|---|
| 1299 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1300 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1301 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1302 | ac_cv_prog_CC="gcc"
|
|---|
| 1303 | break
|
|---|
| 1304 | fi
|
|---|
| 1305 | done
|
|---|
| 1306 | IFS="$ac_save_ifs"
|
|---|
| 1307 | fi
|
|---|
| 1308 | fi
|
|---|
| 1309 | CC="$ac_cv_prog_CC"
|
|---|
| 1310 | if test -n "$CC"; then
|
|---|
| 1311 | echo "$ac_t""$CC" 1>&6
|
|---|
| 1312 | else
|
|---|
| 1313 | echo "$ac_t""no" 1>&6
|
|---|
| 1314 | fi
|
|---|
| 1315 |
|
|---|
| 1316 | if test -z "$CC"; then
|
|---|
| 1317 | # Extract the first word of "cc", so it can be a program name with args.
|
|---|
| 1318 | set dummy cc; ac_word=$2
|
|---|
| 1319 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1320 | echo "configure:1321: checking for $ac_word" >&5
|
|---|
| 1321 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 1322 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1323 | else
|
|---|
| 1324 | if test -n "$CC"; then
|
|---|
| 1325 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 1326 | else
|
|---|
| 1327 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1328 | ac_prog_rejected=no
|
|---|
| 1329 | ac_dummy="$PATH"
|
|---|
| 1330 | for ac_dir in $ac_dummy; do
|
|---|
| 1331 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1332 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1333 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1334 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
|---|
| 1335 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
|---|
| 1336 | ac_prog_rejected=yes
|
|---|
| 1337 | continue
|
|---|
| 1338 | fi
|
|---|
| 1339 | ac_cv_prog_CC="cc"
|
|---|
| 1340 | break
|
|---|
| 1341 | fi
|
|---|
| 1342 | done
|
|---|
| 1343 | IFS="$ac_save_ifs"
|
|---|
| 1344 | if test $ac_prog_rejected = yes; then
|
|---|
| 1345 | # We found a bogon in the path, so make sure we never use it.
|
|---|
| 1346 | set dummy $ac_cv_prog_CC
|
|---|
| 1347 | shift
|
|---|
| 1348 | if test $# -gt 0; then
|
|---|
| 1349 | # We chose a different compiler from the bogus one.
|
|---|
| 1350 | # However, it has the same basename, so the bogon will be chosen
|
|---|
| 1351 | # first if we set CC to just the basename; use the full file name.
|
|---|
| 1352 | shift
|
|---|
| 1353 | set dummy "$ac_dir/$ac_word" "$@"
|
|---|
| 1354 | shift
|
|---|
| 1355 | ac_cv_prog_CC="$@"
|
|---|
| 1356 | fi
|
|---|
| 1357 | fi
|
|---|
| 1358 | fi
|
|---|
| 1359 | fi
|
|---|
| 1360 | CC="$ac_cv_prog_CC"
|
|---|
| 1361 | if test -n "$CC"; then
|
|---|
| 1362 | echo "$ac_t""$CC" 1>&6
|
|---|
| 1363 | else
|
|---|
| 1364 | echo "$ac_t""no" 1>&6
|
|---|
| 1365 | fi
|
|---|
| 1366 |
|
|---|
| 1367 | if test -z "$CC"; then
|
|---|
| 1368 | case "`uname -s`" in
|
|---|
| 1369 | *win32* | *WIN32*)
|
|---|
| 1370 | # Extract the first word of "cl", so it can be a program name with args.
|
|---|
| 1371 | set dummy cl; ac_word=$2
|
|---|
| 1372 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1373 | echo "configure:1374: checking for $ac_word" >&5
|
|---|
| 1374 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 1375 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1376 | else
|
|---|
| 1377 | if test -n "$CC"; then
|
|---|
| 1378 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 1379 | else
|
|---|
| 1380 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1381 | ac_dummy="$PATH"
|
|---|
| 1382 | for ac_dir in $ac_dummy; do
|
|---|
| 1383 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1384 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1385 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1386 | ac_cv_prog_CC="cl"
|
|---|
| 1387 | break
|
|---|
| 1388 | fi
|
|---|
| 1389 | done
|
|---|
| 1390 | IFS="$ac_save_ifs"
|
|---|
| 1391 | fi
|
|---|
| 1392 | fi
|
|---|
| 1393 | CC="$ac_cv_prog_CC"
|
|---|
| 1394 | if test -n "$CC"; then
|
|---|
| 1395 | echo "$ac_t""$CC" 1>&6
|
|---|
| 1396 | else
|
|---|
| 1397 | echo "$ac_t""no" 1>&6
|
|---|
| 1398 | fi
|
|---|
| 1399 | ;;
|
|---|
| 1400 | esac
|
|---|
| 1401 | fi
|
|---|
| 1402 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|---|
| 1403 | fi
|
|---|
| 1404 |
|
|---|
| 1405 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|---|
| 1406 | echo "configure:1407: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|---|
| 1407 |
|
|---|
| 1408 | ac_ext=c
|
|---|
| 1409 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 1410 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 1411 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 1412 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 1413 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 1414 |
|
|---|
| 1415 | cat > conftest.$ac_ext << EOF
|
|---|
| 1416 |
|
|---|
| 1417 | #line 1418 "configure"
|
|---|
| 1418 | #include "confdefs.h"
|
|---|
| 1419 |
|
|---|
| 1420 | main(){return(0);}
|
|---|
| 1421 | EOF
|
|---|
| 1422 | if { (eval echo configure:1423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 1423 | ac_cv_prog_cc_works=yes
|
|---|
| 1424 | # If we can't run a trivial program, we are probably using a cross compiler.
|
|---|
| 1425 | if (./conftest; exit) 2>/dev/null; then
|
|---|
| 1426 | ac_cv_prog_cc_cross=no
|
|---|
| 1427 | else
|
|---|
| 1428 | ac_cv_prog_cc_cross=yes
|
|---|
| 1429 | fi
|
|---|
| 1430 | else
|
|---|
| 1431 | echo "configure: failed program was:" >&5
|
|---|
| 1432 | cat conftest.$ac_ext >&5
|
|---|
| 1433 | ac_cv_prog_cc_works=no
|
|---|
| 1434 | fi
|
|---|
| 1435 | rm -fr conftest*
|
|---|
| 1436 | ac_ext=c
|
|---|
| 1437 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 1438 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 1439 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 1440 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 1441 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 1442 |
|
|---|
| 1443 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|---|
| 1444 | if test $ac_cv_prog_cc_works = no; then
|
|---|
| 1445 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 1446 | fi
|
|---|
| 1447 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|---|
| 1448 | echo "configure:1449: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|---|
| 1449 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|---|
| 1450 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 1451 |
|
|---|
| 1452 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|---|
| 1453 | echo "configure:1454: checking whether we are using GNU C" >&5
|
|---|
| 1454 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|---|
| 1455 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1456 | else
|
|---|
| 1457 | cat > conftest.c <<EOF
|
|---|
| 1458 | #ifdef __GNUC__
|
|---|
| 1459 | yes;
|
|---|
| 1460 | #endif
|
|---|
| 1461 | EOF
|
|---|
| 1462 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|---|
| 1463 | ac_cv_prog_gcc=yes
|
|---|
| 1464 | else
|
|---|
| 1465 | ac_cv_prog_gcc=no
|
|---|
| 1466 | fi
|
|---|
| 1467 | fi
|
|---|
| 1468 |
|
|---|
| 1469 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|---|
| 1470 |
|
|---|
| 1471 | if test $ac_cv_prog_gcc = yes; then
|
|---|
| 1472 | GCC=yes
|
|---|
| 1473 | else
|
|---|
| 1474 | GCC=
|
|---|
| 1475 | fi
|
|---|
| 1476 |
|
|---|
| 1477 | ac_test_CFLAGS="${CFLAGS+set}"
|
|---|
| 1478 | ac_save_CFLAGS="$CFLAGS"
|
|---|
| 1479 | CFLAGS=
|
|---|
| 1480 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|---|
| 1481 | echo "configure:1482: checking whether ${CC-cc} accepts -g" >&5
|
|---|
| 1482 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|---|
| 1483 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1484 | else
|
|---|
| 1485 | echo 'void f(){}' > conftest.c
|
|---|
| 1486 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|---|
| 1487 | ac_cv_prog_cc_g=yes
|
|---|
| 1488 | else
|
|---|
| 1489 | ac_cv_prog_cc_g=no
|
|---|
| 1490 | fi
|
|---|
| 1491 | rm -f conftest*
|
|---|
| 1492 |
|
|---|
| 1493 | fi
|
|---|
| 1494 |
|
|---|
| 1495 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|---|
| 1496 | if test "$ac_test_CFLAGS" = set; then
|
|---|
| 1497 | CFLAGS="$ac_save_CFLAGS"
|
|---|
| 1498 | elif test $ac_cv_prog_cc_g = yes; then
|
|---|
| 1499 | if test "$GCC" = yes; then
|
|---|
| 1500 | CFLAGS="-g -O2"
|
|---|
| 1501 | else
|
|---|
| 1502 | CFLAGS="-g"
|
|---|
| 1503 | fi
|
|---|
| 1504 | else
|
|---|
| 1505 | if test "$GCC" = yes; then
|
|---|
| 1506 | CFLAGS="-O2"
|
|---|
| 1507 | else
|
|---|
| 1508 | CFLAGS=
|
|---|
| 1509 | fi
|
|---|
| 1510 | fi
|
|---|
| 1511 |
|
|---|
| 1512 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
|---|
| 1513 | if test "${with_gnu_ld+set}" = set; then
|
|---|
| 1514 | withval="$with_gnu_ld"
|
|---|
| 1515 | test "$withval" = no || with_gnu_ld=yes
|
|---|
| 1516 | else
|
|---|
| 1517 | with_gnu_ld=no
|
|---|
| 1518 | fi
|
|---|
| 1519 |
|
|---|
| 1520 | ac_prog=ld
|
|---|
| 1521 | if test "$GCC" = yes; then
|
|---|
| 1522 | # Check if gcc -print-prog-name=ld gives a path.
|
|---|
| 1523 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
|---|
| 1524 | echo "configure:1525: checking for ld used by GCC" >&5
|
|---|
| 1525 | case $host in
|
|---|
| 1526 | *-*-mingw*)
|
|---|
| 1527 | # gcc leaves a trailing carriage return which upsets mingw
|
|---|
| 1528 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
|---|
| 1529 | *)
|
|---|
| 1530 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
|---|
| 1531 | esac
|
|---|
| 1532 | case $ac_prog in
|
|---|
| 1533 | # Accept absolute paths.
|
|---|
| 1534 | [\\/]* | [A-Za-z]:[\\/]*)
|
|---|
| 1535 | re_direlt='/[^/][^/]*/\.\./'
|
|---|
| 1536 | # Canonicalize the path of ld
|
|---|
| 1537 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
|---|
| 1538 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
|---|
| 1539 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
|---|
| 1540 | done
|
|---|
| 1541 | test -z "$LD" && LD="$ac_prog"
|
|---|
| 1542 | ;;
|
|---|
| 1543 | "")
|
|---|
| 1544 | # If it fails, then pretend we aren't using GCC.
|
|---|
| 1545 | ac_prog=ld
|
|---|
| 1546 | ;;
|
|---|
| 1547 | *)
|
|---|
| 1548 | # If it is relative, then search for the first ld in PATH.
|
|---|
| 1549 | with_gnu_ld=unknown
|
|---|
| 1550 | ;;
|
|---|
| 1551 | esac
|
|---|
| 1552 | elif test "$with_gnu_ld" = yes; then
|
|---|
| 1553 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
|---|
| 1554 | echo "configure:1555: checking for GNU ld" >&5
|
|---|
| 1555 | else
|
|---|
| 1556 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
|---|
| 1557 | echo "configure:1558: checking for non-GNU ld" >&5
|
|---|
| 1558 | fi
|
|---|
| 1559 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
|
|---|
| 1560 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1561 | else
|
|---|
| 1562 | if test -z "$LD"; then
|
|---|
| 1563 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1564 | for ac_dir in $PATH; do
|
|---|
| 1565 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1566 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|---|
| 1567 | lt_cv_path_LD="$ac_dir/$ac_prog"
|
|---|
| 1568 | # Check to see if the program is GNU ld. I'd rather use --version,
|
|---|
| 1569 | # but apparently some GNU ld's only accept -v.
|
|---|
| 1570 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
|---|
| 1571 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
|---|
| 1572 | test "$with_gnu_ld" != no && break
|
|---|
| 1573 | else
|
|---|
| 1574 | test "$with_gnu_ld" != yes && break
|
|---|
| 1575 | fi
|
|---|
| 1576 | fi
|
|---|
| 1577 | done
|
|---|
| 1578 | IFS="$ac_save_ifs"
|
|---|
| 1579 | else
|
|---|
| 1580 | lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
|---|
| 1581 | fi
|
|---|
| 1582 | fi
|
|---|
| 1583 |
|
|---|
| 1584 | LD="$lt_cv_path_LD"
|
|---|
| 1585 | if test -n "$LD"; then
|
|---|
| 1586 | echo "$ac_t""$LD" 1>&6
|
|---|
| 1587 | else
|
|---|
| 1588 | echo "$ac_t""no" 1>&6
|
|---|
| 1589 | fi
|
|---|
| 1590 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
|---|
| 1591 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
|---|
| 1592 | echo "configure:1593: checking if the linker ($LD) is GNU ld" >&5
|
|---|
| 1593 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
|
|---|
| 1594 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1595 | else
|
|---|
| 1596 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
|---|
| 1597 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
|---|
| 1598 | lt_cv_prog_gnu_ld=yes
|
|---|
| 1599 | else
|
|---|
| 1600 | lt_cv_prog_gnu_ld=no
|
|---|
| 1601 | fi
|
|---|
| 1602 | fi
|
|---|
| 1603 |
|
|---|
| 1604 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
|
|---|
| 1605 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
|---|
| 1606 |
|
|---|
| 1607 |
|
|---|
| 1608 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
|
|---|
| 1609 | echo "configure:1610: checking for $LD option to reload object files" >&5
|
|---|
| 1610 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
|
|---|
| 1611 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1612 | else
|
|---|
| 1613 | lt_cv_ld_reload_flag='-r'
|
|---|
| 1614 | fi
|
|---|
| 1615 |
|
|---|
| 1616 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
|
|---|
| 1617 | reload_flag=$lt_cv_ld_reload_flag
|
|---|
| 1618 | test -n "$reload_flag" && reload_flag=" $reload_flag"
|
|---|
| 1619 |
|
|---|
| 1620 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
|---|
| 1621 | echo "configure:1622: checking for BSD-compatible nm" >&5
|
|---|
| 1622 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
|
|---|
| 1623 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1624 | else
|
|---|
| 1625 | if test -n "$NM"; then
|
|---|
| 1626 | # Let the user override the test.
|
|---|
| 1627 | lt_cv_path_NM="$NM"
|
|---|
| 1628 | else
|
|---|
| 1629 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1630 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
|---|
| 1631 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1632 | tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
|---|
| 1633 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
|---|
| 1634 | # Check to see if the nm accepts a BSD-compat flag.
|
|---|
| 1635 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
|---|
| 1636 | # nm: unknown option "B" ignored
|
|---|
| 1637 | # Tru64's nm complains that /dev/null is an invalid object file
|
|---|
| 1638 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
|---|
| 1639 | lt_cv_path_NM="$tmp_nm -B"
|
|---|
| 1640 | break
|
|---|
| 1641 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
|---|
| 1642 | lt_cv_path_NM="$tmp_nm -p"
|
|---|
| 1643 | break
|
|---|
| 1644 | else
|
|---|
| 1645 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
|---|
| 1646 | continue # so that we can try to find one that supports BSD flags
|
|---|
| 1647 | fi
|
|---|
| 1648 | fi
|
|---|
| 1649 | done
|
|---|
| 1650 | IFS="$ac_save_ifs"
|
|---|
| 1651 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
|---|
| 1652 | fi
|
|---|
| 1653 | fi
|
|---|
| 1654 |
|
|---|
| 1655 | NM="$lt_cv_path_NM"
|
|---|
| 1656 | echo "$ac_t""$NM" 1>&6
|
|---|
| 1657 |
|
|---|
| 1658 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
|---|
| 1659 | echo "configure:1660: checking whether ln -s works" >&5
|
|---|
| 1660 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
|---|
| 1661 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1662 | else
|
|---|
| 1663 | rm -f conftestdata
|
|---|
| 1664 | if ln -s X conftestdata 2>/dev/null
|
|---|
| 1665 | then
|
|---|
| 1666 | rm -f conftestdata
|
|---|
| 1667 | ac_cv_prog_LN_S="ln -s"
|
|---|
| 1668 | else
|
|---|
| 1669 | echo A > conftestdata;
|
|---|
| 1670 | if ln conftestdata conftestdata2 2>/dev/null; then
|
|---|
| 1671 | ac_cv_prog_LN_S=ln
|
|---|
| 1672 | else
|
|---|
| 1673 | ac_cv_prog_LN_S=cp
|
|---|
| 1674 | fi
|
|---|
| 1675 | fi
|
|---|
| 1676 | rm -f conftestdata*
|
|---|
| 1677 | fi
|
|---|
| 1678 | LN_S="$ac_cv_prog_LN_S"
|
|---|
| 1679 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|---|
| 1680 | echo "$ac_t""yes" 1>&6
|
|---|
| 1681 | else
|
|---|
| 1682 | echo "$ac_t""no" 1>&6
|
|---|
| 1683 | fi
|
|---|
| 1684 |
|
|---|
| 1685 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
|
|---|
| 1686 | echo "configure:1687: checking how to recognise dependant libraries" >&5
|
|---|
| 1687 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
|
|---|
| 1688 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1689 | else
|
|---|
| 1690 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
|---|
| 1691 | lt_cv_file_magic_test_file=
|
|---|
| 1692 | lt_cv_deplibs_check_method='unknown'
|
|---|
| 1693 | # Need to set the preceding variable on all platforms that support
|
|---|
| 1694 | # interlibrary dependencies.
|
|---|
| 1695 | # 'none' -- dependencies not supported.
|
|---|
| 1696 | # `unknown' -- same as none, but documents that we really don't know.
|
|---|
| 1697 | # 'pass_all' -- all dependencies passed with no checks.
|
|---|
| 1698 | # 'test_compile' -- check by making test program.
|
|---|
| 1699 | # 'file_magic [regex]' -- check by looking for files in library path
|
|---|
| 1700 | # which responds to the $file_magic_cmd with a given egrep regex.
|
|---|
| 1701 | # If you have `file' or equivalent on your system and you're not sure
|
|---|
| 1702 | # whether `pass_all' will *always* work, you probably want this one.
|
|---|
| 1703 |
|
|---|
| 1704 | case $host_os in
|
|---|
| 1705 | aix*)
|
|---|
| 1706 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1707 | ;;
|
|---|
| 1708 |
|
|---|
| 1709 | beos*)
|
|---|
| 1710 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1711 | ;;
|
|---|
| 1712 |
|
|---|
| 1713 | bsdi4*)
|
|---|
| 1714 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
|---|
| 1715 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 1716 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 1717 | ;;
|
|---|
| 1718 |
|
|---|
| 1719 | cygwin* | mingw* |pw32*)
|
|---|
| 1720 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|---|
| 1721 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|---|
| 1722 | ;;
|
|---|
| 1723 |
|
|---|
| 1724 | darwin* | rhapsody*)
|
|---|
| 1725 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
|
|---|
| 1726 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 1727 | case "$host_os" in
|
|---|
| 1728 | rhapsody* | darwin1.012)
|
|---|
| 1729 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
|
|---|
| 1730 | ;;
|
|---|
| 1731 | *) # Darwin 1.3 on
|
|---|
| 1732 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
|
|---|
| 1733 | ;;
|
|---|
| 1734 | esac
|
|---|
| 1735 | ;;
|
|---|
| 1736 |
|
|---|
| 1737 | freebsd* )
|
|---|
| 1738 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 1739 | case $host_cpu in
|
|---|
| 1740 | i*86 )
|
|---|
| 1741 | # Not sure whether the presence of OpenBSD here was a mistake.
|
|---|
| 1742 | # Let's accept both of them until this is cleared up.
|
|---|
| 1743 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
|---|
| 1744 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1745 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
|---|
| 1746 | ;;
|
|---|
| 1747 | esac
|
|---|
| 1748 | else
|
|---|
| 1749 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1750 | fi
|
|---|
| 1751 | ;;
|
|---|
| 1752 |
|
|---|
| 1753 | gnu*)
|
|---|
| 1754 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1755 | ;;
|
|---|
| 1756 |
|
|---|
| 1757 | hpux10.20*|hpux11*)
|
|---|
| 1758 | case $host_cpu in
|
|---|
| 1759 | hppa*)
|
|---|
| 1760 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
|---|
| 1761 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1762 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
|---|
| 1763 | ;;
|
|---|
| 1764 | ia64*)
|
|---|
| 1765 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
|---|
| 1766 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1767 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
|---|
| 1768 | ;;
|
|---|
| 1769 | esac
|
|---|
| 1770 | ;;
|
|---|
| 1771 |
|
|---|
| 1772 | irix5* | irix6*)
|
|---|
| 1773 | case $host_os in
|
|---|
| 1774 | irix5*)
|
|---|
| 1775 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1776 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
|---|
| 1777 | ;;
|
|---|
| 1778 | *)
|
|---|
| 1779 | case $LD in
|
|---|
| 1780 | *-32|*"-32 ") libmagic=32-bit;;
|
|---|
| 1781 | *-n32|*"-n32 ") libmagic=N32;;
|
|---|
| 1782 | *-64|*"-64 ") libmagic=64-bit;;
|
|---|
| 1783 | *) libmagic=never-match;;
|
|---|
| 1784 | esac
|
|---|
| 1785 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1786 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
|
|---|
| 1787 | ;;
|
|---|
| 1788 | esac
|
|---|
| 1789 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
|---|
| 1790 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1791 | ;;
|
|---|
| 1792 |
|
|---|
| 1793 | # This must be Linux ELF.
|
|---|
| 1794 | linux-gnu*)
|
|---|
| 1795 | case $host_cpu in
|
|---|
| 1796 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
|
|---|
| 1797 | lt_cv_deplibs_check_method=pass_all ;;
|
|---|
| 1798 | *)
|
|---|
| 1799 | # glibc up to 2.1.1 does not perform some relocations on ARM
|
|---|
| 1800 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
|
|---|
| 1801 | esac
|
|---|
| 1802 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
|---|
| 1803 | ;;
|
|---|
| 1804 |
|
|---|
| 1805 | netbsd*)
|
|---|
| 1806 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 1807 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
|---|
| 1808 | else
|
|---|
| 1809 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
|
|---|
| 1810 | fi
|
|---|
| 1811 | ;;
|
|---|
| 1812 |
|
|---|
| 1813 | os2*)
|
|---|
| 1814 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1815 | ;;
|
|---|
| 1816 |
|
|---|
| 1817 | newsos6)
|
|---|
| 1818 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
|---|
| 1819 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1820 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
|---|
| 1821 | ;;
|
|---|
| 1822 |
|
|---|
| 1823 | osf3* | osf4* | osf5*)
|
|---|
| 1824 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1825 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
|---|
| 1826 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 1827 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1828 | ;;
|
|---|
| 1829 |
|
|---|
| 1830 | sco3.2v5*)
|
|---|
| 1831 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1832 | ;;
|
|---|
| 1833 |
|
|---|
| 1834 | solaris*)
|
|---|
| 1835 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1836 | lt_cv_file_magic_test_file=/lib/libc.so
|
|---|
| 1837 | ;;
|
|---|
| 1838 |
|
|---|
| 1839 | sysv5uw[78]* | sysv4*uw2*)
|
|---|
| 1840 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1841 | ;;
|
|---|
| 1842 |
|
|---|
| 1843 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|---|
| 1844 | case $host_vendor in
|
|---|
| 1845 | ncr)
|
|---|
| 1846 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1847 | ;;
|
|---|
| 1848 | motorola)
|
|---|
| 1849 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
|
|---|
| 1850 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
|---|
| 1851 | ;;
|
|---|
| 1852 | esac
|
|---|
| 1853 | ;;
|
|---|
| 1854 | esac
|
|---|
| 1855 |
|
|---|
| 1856 | fi
|
|---|
| 1857 |
|
|---|
| 1858 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
|
|---|
| 1859 | file_magic_cmd=$lt_cv_file_magic_cmd
|
|---|
| 1860 | deplibs_check_method=$lt_cv_deplibs_check_method
|
|---|
| 1861 |
|
|---|
| 1862 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
|---|
| 1863 | echo "configure:1864: checking for object suffix" >&5
|
|---|
| 1864 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
|---|
| 1865 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1866 | else
|
|---|
| 1867 | rm -f conftest*
|
|---|
| 1868 | echo 'int i = 1;' > conftest.$ac_ext
|
|---|
| 1869 | if { (eval echo configure:1870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 1870 | for ac_file in conftest.*; do
|
|---|
| 1871 | case $ac_file in
|
|---|
| 1872 | *.c) ;;
|
|---|
| 1873 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
|---|
| 1874 | esac
|
|---|
| 1875 | done
|
|---|
| 1876 | else
|
|---|
| 1877 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
|---|
| 1878 | fi
|
|---|
| 1879 | rm -f conftest*
|
|---|
| 1880 | fi
|
|---|
| 1881 |
|
|---|
| 1882 | echo "$ac_t""$ac_cv_objext" 1>&6
|
|---|
| 1883 | OBJEXT=$ac_cv_objext
|
|---|
| 1884 | ac_objext=$ac_cv_objext
|
|---|
| 1885 |
|
|---|
| 1886 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
|---|
| 1887 |
|
|---|
| 1888 | # Only perform the check for file, if the check method requires it
|
|---|
| 1889 | case $deplibs_check_method in
|
|---|
| 1890 | file_magic*)
|
|---|
| 1891 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
|---|
| 1892 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
|
|---|
| 1893 | echo "configure:1894: checking for ${ac_tool_prefix}file" >&5
|
|---|
| 1894 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 1895 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1896 | else
|
|---|
| 1897 | case $MAGIC_CMD in
|
|---|
| 1898 | /*)
|
|---|
| 1899 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 1900 | ;;
|
|---|
| 1901 | ?:/*)
|
|---|
| 1902 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 1903 | ;;
|
|---|
| 1904 | *)
|
|---|
| 1905 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 1906 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1907 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 1908 | for ac_dir in $ac_dummy; do
|
|---|
| 1909 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1910 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
|---|
| 1911 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
|---|
| 1912 | if test -n "$file_magic_test_file"; then
|
|---|
| 1913 | case $deplibs_check_method in
|
|---|
| 1914 | "file_magic "*)
|
|---|
| 1915 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 1916 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1917 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 1918 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 1919 | :
|
|---|
| 1920 | else
|
|---|
| 1921 | cat <<EOF 1>&2
|
|---|
| 1922 |
|
|---|
| 1923 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 1924 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 1925 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 1926 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 1927 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 1928 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 1929 | *** may want to report the problem to your system manager and/or to
|
|---|
| 1930 | *** bug-libtool@gnu.org
|
|---|
| 1931 |
|
|---|
| 1932 | EOF
|
|---|
| 1933 | fi ;;
|
|---|
| 1934 | esac
|
|---|
| 1935 | fi
|
|---|
| 1936 | break
|
|---|
| 1937 | fi
|
|---|
| 1938 | done
|
|---|
| 1939 | IFS="$ac_save_ifs"
|
|---|
| 1940 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 1941 | ;;
|
|---|
| 1942 | esac
|
|---|
| 1943 | fi
|
|---|
| 1944 |
|
|---|
| 1945 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1946 | if test -n "$MAGIC_CMD"; then
|
|---|
| 1947 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 1948 | else
|
|---|
| 1949 | echo "$ac_t""no" 1>&6
|
|---|
| 1950 | fi
|
|---|
| 1951 |
|
|---|
| 1952 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
|---|
| 1953 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1954 | echo $ac_n "checking for file""... $ac_c" 1>&6
|
|---|
| 1955 | echo "configure:1956: checking for file" >&5
|
|---|
| 1956 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 1957 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1958 | else
|
|---|
| 1959 | case $MAGIC_CMD in
|
|---|
| 1960 | /*)
|
|---|
| 1961 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 1962 | ;;
|
|---|
| 1963 | ?:/*)
|
|---|
| 1964 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 1965 | ;;
|
|---|
| 1966 | *)
|
|---|
| 1967 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 1968 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1969 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 1970 | for ac_dir in $ac_dummy; do
|
|---|
| 1971 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1972 | if test -f $ac_dir/file; then
|
|---|
| 1973 | lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
|---|
| 1974 | if test -n "$file_magic_test_file"; then
|
|---|
| 1975 | case $deplibs_check_method in
|
|---|
| 1976 | "file_magic "*)
|
|---|
| 1977 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 1978 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1979 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 1980 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 1981 | :
|
|---|
| 1982 | else
|
|---|
| 1983 | cat <<EOF 1>&2
|
|---|
| 1984 |
|
|---|
| 1985 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 1986 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 1987 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 1988 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 1989 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 1990 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 1991 | *** may want to report the problem to your system manager and/or to
|
|---|
| 1992 | *** bug-libtool@gnu.org
|
|---|
| 1993 |
|
|---|
| 1994 | EOF
|
|---|
| 1995 | fi ;;
|
|---|
| 1996 | esac
|
|---|
| 1997 | fi
|
|---|
| 1998 | break
|
|---|
| 1999 | fi
|
|---|
| 2000 | done
|
|---|
| 2001 | IFS="$ac_save_ifs"
|
|---|
| 2002 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 2003 | ;;
|
|---|
| 2004 | esac
|
|---|
| 2005 | fi
|
|---|
| 2006 |
|
|---|
| 2007 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 2008 | if test -n "$MAGIC_CMD"; then
|
|---|
| 2009 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 2010 | else
|
|---|
| 2011 | echo "$ac_t""no" 1>&6
|
|---|
| 2012 | fi
|
|---|
| 2013 |
|
|---|
| 2014 | else
|
|---|
| 2015 | MAGIC_CMD=:
|
|---|
| 2016 | fi
|
|---|
| 2017 | fi
|
|---|
| 2018 |
|
|---|
| 2019 | fi
|
|---|
| 2020 | ;;
|
|---|
| 2021 | esac
|
|---|
| 2022 |
|
|---|
| 2023 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|---|
| 2024 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|---|
| 2025 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2026 | echo "configure:2027: checking for $ac_word" >&5
|
|---|
| 2027 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 2028 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2029 | else
|
|---|
| 2030 | if test -n "$RANLIB"; then
|
|---|
| 2031 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 2032 | else
|
|---|
| 2033 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2034 | ac_dummy="$PATH"
|
|---|
| 2035 | for ac_dir in $ac_dummy; do
|
|---|
| 2036 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2037 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2038 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2039 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|---|
| 2040 | break
|
|---|
| 2041 | fi
|
|---|
| 2042 | done
|
|---|
| 2043 | IFS="$ac_save_ifs"
|
|---|
| 2044 | fi
|
|---|
| 2045 | fi
|
|---|
| 2046 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 2047 | if test -n "$RANLIB"; then
|
|---|
| 2048 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 2049 | else
|
|---|
| 2050 | echo "$ac_t""no" 1>&6
|
|---|
| 2051 | fi
|
|---|
| 2052 |
|
|---|
| 2053 |
|
|---|
| 2054 | if test -z "$ac_cv_prog_RANLIB"; then
|
|---|
| 2055 | if test -n "$ac_tool_prefix"; then
|
|---|
| 2056 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 2057 | set dummy ranlib; ac_word=$2
|
|---|
| 2058 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2059 | echo "configure:2060: checking for $ac_word" >&5
|
|---|
| 2060 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 2061 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2062 | else
|
|---|
| 2063 | if test -n "$RANLIB"; then
|
|---|
| 2064 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 2065 | else
|
|---|
| 2066 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2067 | ac_dummy="$PATH"
|
|---|
| 2068 | for ac_dir in $ac_dummy; do
|
|---|
| 2069 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2070 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2071 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2072 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 2073 | break
|
|---|
| 2074 | fi
|
|---|
| 2075 | done
|
|---|
| 2076 | IFS="$ac_save_ifs"
|
|---|
| 2077 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 2078 | fi
|
|---|
| 2079 | fi
|
|---|
| 2080 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 2081 | if test -n "$RANLIB"; then
|
|---|
| 2082 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 2083 | else
|
|---|
| 2084 | echo "$ac_t""no" 1>&6
|
|---|
| 2085 | fi
|
|---|
| 2086 |
|
|---|
| 2087 | else
|
|---|
| 2088 | RANLIB=":"
|
|---|
| 2089 | fi
|
|---|
| 2090 | fi
|
|---|
| 2091 |
|
|---|
| 2092 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|---|
| 2093 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|---|
| 2094 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2095 | echo "configure:2096: checking for $ac_word" >&5
|
|---|
| 2096 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 2097 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2098 | else
|
|---|
| 2099 | if test -n "$STRIP"; then
|
|---|
| 2100 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 2101 | else
|
|---|
| 2102 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2103 | ac_dummy="$PATH"
|
|---|
| 2104 | for ac_dir in $ac_dummy; do
|
|---|
| 2105 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2106 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2107 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2108 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
|---|
| 2109 | break
|
|---|
| 2110 | fi
|
|---|
| 2111 | done
|
|---|
| 2112 | IFS="$ac_save_ifs"
|
|---|
| 2113 | fi
|
|---|
| 2114 | fi
|
|---|
| 2115 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 2116 | if test -n "$STRIP"; then
|
|---|
| 2117 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 2118 | else
|
|---|
| 2119 | echo "$ac_t""no" 1>&6
|
|---|
| 2120 | fi
|
|---|
| 2121 |
|
|---|
| 2122 |
|
|---|
| 2123 | if test -z "$ac_cv_prog_STRIP"; then
|
|---|
| 2124 | if test -n "$ac_tool_prefix"; then
|
|---|
| 2125 | # Extract the first word of "strip", so it can be a program name with args.
|
|---|
| 2126 | set dummy strip; ac_word=$2
|
|---|
| 2127 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2128 | echo "configure:2129: checking for $ac_word" >&5
|
|---|
| 2129 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 2130 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2131 | else
|
|---|
| 2132 | if test -n "$STRIP"; then
|
|---|
| 2133 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 2134 | else
|
|---|
| 2135 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2136 | ac_dummy="$PATH"
|
|---|
| 2137 | for ac_dir in $ac_dummy; do
|
|---|
| 2138 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2139 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2140 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2141 | ac_cv_prog_STRIP="strip"
|
|---|
| 2142 | break
|
|---|
| 2143 | fi
|
|---|
| 2144 | done
|
|---|
| 2145 | IFS="$ac_save_ifs"
|
|---|
| 2146 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
|---|
| 2147 | fi
|
|---|
| 2148 | fi
|
|---|
| 2149 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 2150 | if test -n "$STRIP"; then
|
|---|
| 2151 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 2152 | else
|
|---|
| 2153 | echo "$ac_t""no" 1>&6
|
|---|
| 2154 | fi
|
|---|
| 2155 |
|
|---|
| 2156 | else
|
|---|
| 2157 | STRIP=":"
|
|---|
| 2158 | fi
|
|---|
| 2159 | fi
|
|---|
| 2160 |
|
|---|
| 2161 |
|
|---|
| 2162 | # Check for any special flags to pass to ltconfig.
|
|---|
| 2163 | libtool_flags="--cache-file=$cache_file"
|
|---|
| 2164 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
|---|
| 2165 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
|---|
| 2166 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
|---|
| 2167 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
|
|---|
| 2168 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
|---|
| 2169 |
|
|---|
| 2170 |
|
|---|
| 2171 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
|---|
| 2172 | if test "${enable_libtool_lock+set}" = set; then
|
|---|
| 2173 | enableval="$enable_libtool_lock"
|
|---|
| 2174 | :
|
|---|
| 2175 | fi
|
|---|
| 2176 |
|
|---|
| 2177 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
|---|
| 2178 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
|---|
| 2179 |
|
|---|
| 2180 | # Check whether --with-pic or --without-pic was given.
|
|---|
| 2181 | if test "${with_pic+set}" = set; then
|
|---|
| 2182 | withval="$with_pic"
|
|---|
| 2183 | pic_mode="$withval"
|
|---|
| 2184 | else
|
|---|
| 2185 | pic_mode=default
|
|---|
| 2186 | fi
|
|---|
| 2187 |
|
|---|
| 2188 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
|
|---|
| 2189 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
|---|
| 2190 |
|
|---|
| 2191 | # Some flags need to be propagated to the compiler or linker for good
|
|---|
| 2192 | # libtool support.
|
|---|
| 2193 | case $host in
|
|---|
| 2194 | *-*-irix6*)
|
|---|
| 2195 | # Find out which ABI we are using.
|
|---|
| 2196 | echo '#line 2197 "configure"' > conftest.$ac_ext
|
|---|
| 2197 | if { (eval echo configure:2198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2198 | if test "$lt_cv_prog_gnu_ld" = yes; then
|
|---|
| 2199 | case `/usr/bin/file conftest.$ac_objext` in
|
|---|
| 2200 | *32-bit*)
|
|---|
| 2201 | LD="${LD-ld} -melf32bsmip"
|
|---|
| 2202 | ;;
|
|---|
| 2203 | *N32*)
|
|---|
| 2204 | LD="${LD-ld} -melf32bmipn32"
|
|---|
| 2205 | ;;
|
|---|
| 2206 | *64-bit*)
|
|---|
| 2207 | LD="${LD-ld} -melf64bmip"
|
|---|
| 2208 | ;;
|
|---|
| 2209 | esac
|
|---|
| 2210 | else
|
|---|
| 2211 | case `/usr/bin/file conftest.$ac_objext` in
|
|---|
| 2212 | *32-bit*)
|
|---|
| 2213 | LD="${LD-ld} -32"
|
|---|
| 2214 | ;;
|
|---|
| 2215 | *N32*)
|
|---|
| 2216 | LD="${LD-ld} -n32"
|
|---|
| 2217 | ;;
|
|---|
| 2218 | *64-bit*)
|
|---|
| 2219 | LD="${LD-ld} -64"
|
|---|
| 2220 | ;;
|
|---|
| 2221 | esac
|
|---|
| 2222 | fi
|
|---|
| 2223 | fi
|
|---|
| 2224 | rm -rf conftest*
|
|---|
| 2225 | ;;
|
|---|
| 2226 |
|
|---|
| 2227 | ia64-*-hpux*)
|
|---|
| 2228 | # Find out which ABI we are using.
|
|---|
| 2229 | echo 'int i;' > conftest.$ac_ext
|
|---|
| 2230 | if { (eval echo configure:2231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2231 | case "`/usr/bin/file conftest.o`" in
|
|---|
| 2232 | *ELF-32*)
|
|---|
| 2233 | HPUX_IA64_MODE="32"
|
|---|
| 2234 | ;;
|
|---|
| 2235 | *ELF-64*)
|
|---|
| 2236 | HPUX_IA64_MODE="64"
|
|---|
| 2237 | ;;
|
|---|
| 2238 | esac
|
|---|
| 2239 | fi
|
|---|
| 2240 | rm -rf conftest*
|
|---|
| 2241 | ;;
|
|---|
| 2242 |
|
|---|
| 2243 | *-*-sco3.2v5*)
|
|---|
| 2244 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
|---|
| 2245 | SAVE_CFLAGS="$CFLAGS"
|
|---|
| 2246 | CFLAGS="$CFLAGS -belf"
|
|---|
| 2247 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
|---|
| 2248 | echo "configure:2249: checking whether the C compiler needs -belf" >&5
|
|---|
| 2249 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
|
|---|
| 2250 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2251 | else
|
|---|
| 2252 |
|
|---|
| 2253 | ac_ext=c
|
|---|
| 2254 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2255 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2256 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2257 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2258 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2259 |
|
|---|
| 2260 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2261 | #line 2262 "configure"
|
|---|
| 2262 | #include "confdefs.h"
|
|---|
| 2263 |
|
|---|
| 2264 | int main() {
|
|---|
| 2265 |
|
|---|
| 2266 | ; return 0; }
|
|---|
| 2267 | EOF
|
|---|
| 2268 | if { (eval echo configure:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2269 | rm -rf conftest*
|
|---|
| 2270 | lt_cv_cc_needs_belf=yes
|
|---|
| 2271 | else
|
|---|
| 2272 | echo "configure: failed program was:" >&5
|
|---|
| 2273 | cat conftest.$ac_ext >&5
|
|---|
| 2274 | rm -rf conftest*
|
|---|
| 2275 | lt_cv_cc_needs_belf=no
|
|---|
| 2276 | fi
|
|---|
| 2277 | rm -f conftest*
|
|---|
| 2278 | ac_ext=c
|
|---|
| 2279 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2280 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2281 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2282 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2283 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2284 |
|
|---|
| 2285 | fi
|
|---|
| 2286 |
|
|---|
| 2287 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
|---|
| 2288 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
|---|
| 2289 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
|---|
| 2290 | CFLAGS="$SAVE_CFLAGS"
|
|---|
| 2291 | fi
|
|---|
| 2292 | ;;
|
|---|
| 2293 |
|
|---|
| 2294 |
|
|---|
| 2295 | esac
|
|---|
| 2296 |
|
|---|
| 2297 |
|
|---|
| 2298 | # Save cache, so that ltconfig can load it
|
|---|
| 2299 | cat > confcache <<\EOF
|
|---|
| 2300 | # This file is a shell script that caches the results of configure
|
|---|
| 2301 | # tests run on this system so they can be shared between configure
|
|---|
| 2302 | # scripts and configure runs. It is not useful on other systems.
|
|---|
| 2303 | # If it contains results you don't want to keep, you may remove or edit it.
|
|---|
| 2304 | #
|
|---|
| 2305 | # By default, configure uses ./config.cache as the cache file,
|
|---|
| 2306 | # creating it if it does not exist already. You can give configure
|
|---|
| 2307 | # the --cache-file=FILE option to use a different cache file; that is
|
|---|
| 2308 | # what configure does when it calls configure scripts in
|
|---|
| 2309 | # subdirectories, so they share the cache.
|
|---|
| 2310 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|---|
| 2311 | # config.status only pays attention to the cache file if you give it the
|
|---|
| 2312 | # --recheck option to rerun configure.
|
|---|
| 2313 | #
|
|---|
| 2314 | EOF
|
|---|
| 2315 | # The following way of writing the cache mishandles newlines in values,
|
|---|
| 2316 | # but we know of no workaround that is simple, portable, and efficient.
|
|---|
| 2317 | # So, don't put newlines in cache variables' values.
|
|---|
| 2318 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
|---|
| 2319 | # and sets the high bit in the cache file unless we assign to the vars.
|
|---|
| 2320 | (set) 2>&1 |
|
|---|
| 2321 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|---|
| 2322 | *ac_space=\ *)
|
|---|
| 2323 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
|---|
| 2324 | # turns \\\\ into \\, and sed turns \\ into \).
|
|---|
| 2325 | sed -n \
|
|---|
| 2326 | -e "s/'/'\\\\''/g" \
|
|---|
| 2327 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|---|
| 2328 | ;;
|
|---|
| 2329 | *)
|
|---|
| 2330 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|---|
| 2331 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|---|
| 2332 | ;;
|
|---|
| 2333 | esac >> confcache
|
|---|
| 2334 | if cmp -s $cache_file confcache; then
|
|---|
| 2335 | :
|
|---|
| 2336 | else
|
|---|
| 2337 | if test -w $cache_file; then
|
|---|
| 2338 | echo "updating cache $cache_file"
|
|---|
| 2339 | cat confcache > $cache_file
|
|---|
| 2340 | else
|
|---|
| 2341 | echo "not updating unwritable cache $cache_file"
|
|---|
| 2342 | fi
|
|---|
| 2343 | fi
|
|---|
| 2344 | rm -f confcache
|
|---|
| 2345 |
|
|---|
| 2346 |
|
|---|
| 2347 | # Actually configure libtool. ac_aux_dir is where install-sh is found.
|
|---|
| 2348 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
|---|
| 2349 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
|---|
| 2350 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
|---|
| 2351 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
|---|
| 2352 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
|---|
| 2353 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
|
|---|
| 2354 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
|---|
| 2355 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|
|---|
| 2356 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
|---|
| 2357 |
|
|---|
| 2358 | # Reload cache, that may have been modified by ltconfig
|
|---|
| 2359 | if test -r "$cache_file"; then
|
|---|
| 2360 | echo "loading cache $cache_file"
|
|---|
| 2361 | . $cache_file
|
|---|
| 2362 | else
|
|---|
| 2363 | echo "creating cache $cache_file"
|
|---|
| 2364 | > $cache_file
|
|---|
| 2365 | fi
|
|---|
| 2366 |
|
|---|
| 2367 |
|
|---|
| 2368 | # This can be used to rebuild libtool when needed
|
|---|
| 2369 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
|
|---|
| 2370 |
|
|---|
| 2371 | # Always use our own libtool.
|
|---|
| 2372 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
|---|
| 2373 |
|
|---|
| 2374 | # Redirect the config.log output again, so that the ltconfig log is not
|
|---|
| 2375 | # clobbered by the next message.
|
|---|
| 2376 | exec 5>>./config.log
|
|---|
| 2377 |
|
|---|
| 2378 |
|
|---|
| 2379 |
|
|---|
| 2380 |
|
|---|
| 2381 |
|
|---|
| 2382 |
|
|---|
| 2383 |
|
|---|
| 2384 | # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
|
|---|
| 2385 | if test "${enable_64_bit_bfd+set}" = set; then
|
|---|
| 2386 | enableval="$enable_64_bit_bfd"
|
|---|
| 2387 | case "${enableval}" in
|
|---|
| 2388 | yes) want64=true ;;
|
|---|
| 2389 | no) want64=false ;;
|
|---|
| 2390 | *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
|
|---|
| 2391 | esac
|
|---|
| 2392 | else
|
|---|
| 2393 | want64=false
|
|---|
| 2394 | fi
|
|---|
| 2395 | # Check whether --enable-targets or --disable-targets was given.
|
|---|
| 2396 | if test "${enable_targets+set}" = set; then
|
|---|
| 2397 | enableval="$enable_targets"
|
|---|
| 2398 | case "${enableval}" in
|
|---|
| 2399 | yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
|
|---|
| 2400 | ;;
|
|---|
| 2401 | no) enable_targets= ;;
|
|---|
| 2402 | *) enable_targets=$enableval ;;
|
|---|
| 2403 | esac
|
|---|
| 2404 | fi
|
|---|
| 2405 | # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
|
|---|
| 2406 | if test "${enable_commonbfdlib+set}" = set; then
|
|---|
| 2407 | enableval="$enable_commonbfdlib"
|
|---|
| 2408 | case "${enableval}" in
|
|---|
| 2409 | yes) commonbfdlib=true ;;
|
|---|
| 2410 | no) commonbfdlib=false ;;
|
|---|
| 2411 | *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
|
|---|
| 2412 | esac
|
|---|
| 2413 | fi
|
|---|
| 2414 | # Check whether --with-mmap or --without-mmap was given.
|
|---|
| 2415 | if test "${with_mmap+set}" = set; then
|
|---|
| 2416 | withval="$with_mmap"
|
|---|
| 2417 | case "${withval}" in
|
|---|
| 2418 | yes) want_mmap=true ;;
|
|---|
| 2419 | no) want_mmap=false ;;
|
|---|
| 2420 | *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
|
|---|
| 2421 | esac
|
|---|
| 2422 | else
|
|---|
| 2423 | want_mmap=false
|
|---|
| 2424 | fi
|
|---|
| 2425 |
|
|---|
| 2426 | build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
|---|
| 2427 | # Check whether --enable-build-warnings or --disable-build-warnings was given.
|
|---|
| 2428 | if test "${enable_build_warnings+set}" = set; then
|
|---|
| 2429 | enableval="$enable_build_warnings"
|
|---|
| 2430 | case "${enableval}" in
|
|---|
| 2431 | yes) ;;
|
|---|
| 2432 | no) build_warnings="-w";;
|
|---|
| 2433 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
|---|
| 2434 | build_warnings="${build_warnings} ${t}";;
|
|---|
| 2435 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
|---|
| 2436 | build_warnings="${t} ${build_warnings}";;
|
|---|
| 2437 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
|
|---|
| 2438 | esac
|
|---|
| 2439 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
|
|---|
| 2440 | echo "Setting warning flags = $build_warnings" 6>&1
|
|---|
| 2441 | fi
|
|---|
| 2442 | fi
|
|---|
| 2443 | WARN_CFLAGS=""
|
|---|
| 2444 | if test "x${build_warnings}" != x && test "x$GCC" = xyes ; then
|
|---|
| 2445 | WARN_CFLAGS="${build_warnings}"
|
|---|
| 2446 | fi
|
|---|
| 2447 |
|
|---|
| 2448 |
|
|---|
| 2449 |
|
|---|
| 2450 |
|
|---|
| 2451 |
|
|---|
| 2452 |
|
|---|
| 2453 | if test -z "$target" ; then
|
|---|
| 2454 | { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
|
|---|
| 2455 | fi
|
|---|
| 2456 |
|
|---|
| 2457 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
|---|
| 2458 | echo "configure:2459: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
|---|
| 2459 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
|---|
| 2460 | if test "${enable_maintainer_mode+set}" = set; then
|
|---|
| 2461 | enableval="$enable_maintainer_mode"
|
|---|
| 2462 | USE_MAINTAINER_MODE=$enableval
|
|---|
| 2463 | else
|
|---|
| 2464 | USE_MAINTAINER_MODE=no
|
|---|
| 2465 | fi
|
|---|
| 2466 |
|
|---|
| 2467 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
|---|
| 2468 |
|
|---|
| 2469 |
|
|---|
| 2470 | if test $USE_MAINTAINER_MODE = yes; then
|
|---|
| 2471 | MAINTAINER_MODE_TRUE=
|
|---|
| 2472 | MAINTAINER_MODE_FALSE='#'
|
|---|
| 2473 | else
|
|---|
| 2474 | MAINTAINER_MODE_TRUE='#'
|
|---|
| 2475 | MAINTAINER_MODE_FALSE=
|
|---|
| 2476 | fi
|
|---|
| 2477 | MAINT=$MAINTAINER_MODE_TRUE
|
|---|
| 2478 |
|
|---|
| 2479 |
|
|---|
| 2480 | echo $ac_n "checking whether to install libbfd""... $ac_c" 1>&6
|
|---|
| 2481 | echo "configure:2482: checking whether to install libbfd" >&5
|
|---|
| 2482 | # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
|
|---|
| 2483 | if test "${enable_install_libbfd+set}" = set; then
|
|---|
| 2484 | enableval="$enable_install_libbfd"
|
|---|
| 2485 | install_libbfd_p=$enableval
|
|---|
| 2486 | else
|
|---|
| 2487 | if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
|
|---|
| 2488 | install_libbfd_p=yes
|
|---|
| 2489 | else
|
|---|
| 2490 | install_libbfd_p=no
|
|---|
| 2491 | fi
|
|---|
| 2492 | fi
|
|---|
| 2493 |
|
|---|
| 2494 | echo "$ac_t""$install_libbfd_p" 1>&6
|
|---|
| 2495 |
|
|---|
| 2496 |
|
|---|
| 2497 | if test $install_libbfd_p = yes; then
|
|---|
| 2498 | INSTALL_LIBBFD_TRUE=
|
|---|
| 2499 | INSTALL_LIBBFD_FALSE='#'
|
|---|
| 2500 | else
|
|---|
| 2501 | INSTALL_LIBBFD_TRUE='#'
|
|---|
| 2502 | INSTALL_LIBBFD_FALSE=
|
|---|
| 2503 | fi
|
|---|
| 2504 | # libbfd.a is a host library containing target dependent code
|
|---|
| 2505 | bfdlibdir='$(libdir)'
|
|---|
| 2506 | bfdincludedir='$(includedir)'
|
|---|
| 2507 | if test "${host}" != "${target}"; then
|
|---|
| 2508 | bfdlibdir='$(exec_prefix)/$(host_alias)/$(target_alias)/lib'
|
|---|
| 2509 | bfdincludedir='$(exec_prefix)/$(host_alias)/$(target_alias)/include'
|
|---|
| 2510 | fi
|
|---|
| 2511 |
|
|---|
| 2512 |
|
|---|
| 2513 |
|
|---|
| 2514 |
|
|---|
| 2515 |
|
|---|
| 2516 |
|
|---|
| 2517 |
|
|---|
| 2518 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 2519 | echo "configure:2520: checking for executable suffix" >&5
|
|---|
| 2520 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 2521 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2522 | else
|
|---|
| 2523 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
|---|
| 2524 | ac_cv_exeext=.exe
|
|---|
| 2525 | else
|
|---|
| 2526 | rm -f conftest*
|
|---|
| 2527 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 2528 | ac_cv_exeext=
|
|---|
| 2529 | if { (eval echo configure:2530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 2530 | for file in conftest.*; do
|
|---|
| 2531 | case $file in
|
|---|
| 2532 | *.c | *.o | *.obj) ;;
|
|---|
| 2533 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 2534 | esac
|
|---|
| 2535 | done
|
|---|
| 2536 | else
|
|---|
| 2537 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 2538 | fi
|
|---|
| 2539 | rm -f conftest*
|
|---|
| 2540 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 2541 | fi
|
|---|
| 2542 | fi
|
|---|
| 2543 |
|
|---|
| 2544 | EXEEXT=""
|
|---|
| 2545 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 2546 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 2547 | ac_exeext=$EXEEXT
|
|---|
| 2548 |
|
|---|
| 2549 |
|
|---|
| 2550 | host64=false
|
|---|
| 2551 | target64=false
|
|---|
| 2552 | bfd_default_target_size=32
|
|---|
| 2553 |
|
|---|
| 2554 | # host stuff:
|
|---|
| 2555 |
|
|---|
| 2556 | # Extract the first word of "gcc", so it can be a program name with args.
|
|---|
| 2557 | set dummy gcc; ac_word=$2
|
|---|
| 2558 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2559 | echo "configure:2560: checking for $ac_word" >&5
|
|---|
| 2560 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 2561 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2562 | else
|
|---|
| 2563 | if test -n "$CC"; then
|
|---|
| 2564 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 2565 | else
|
|---|
| 2566 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2567 | ac_dummy="$PATH"
|
|---|
| 2568 | for ac_dir in $ac_dummy; do
|
|---|
| 2569 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2570 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2571 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2572 | ac_cv_prog_CC="gcc"
|
|---|
| 2573 | break
|
|---|
| 2574 | fi
|
|---|
| 2575 | done
|
|---|
| 2576 | IFS="$ac_save_ifs"
|
|---|
| 2577 | fi
|
|---|
| 2578 | fi
|
|---|
| 2579 | CC="$ac_cv_prog_CC"
|
|---|
| 2580 | if test -n "$CC"; then
|
|---|
| 2581 | echo "$ac_t""$CC" 1>&6
|
|---|
| 2582 | else
|
|---|
| 2583 | echo "$ac_t""no" 1>&6
|
|---|
| 2584 | fi
|
|---|
| 2585 |
|
|---|
| 2586 | if test -z "$CC"; then
|
|---|
| 2587 | # Extract the first word of "cc", so it can be a program name with args.
|
|---|
| 2588 | set dummy cc; ac_word=$2
|
|---|
| 2589 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2590 | echo "configure:2591: checking for $ac_word" >&5
|
|---|
| 2591 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 2592 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2593 | else
|
|---|
| 2594 | if test -n "$CC"; then
|
|---|
| 2595 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 2596 | else
|
|---|
| 2597 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2598 | ac_prog_rejected=no
|
|---|
| 2599 | ac_dummy="$PATH"
|
|---|
| 2600 | for ac_dir in $ac_dummy; do
|
|---|
| 2601 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2602 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2603 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2604 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
|---|
| 2605 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
|---|
| 2606 | ac_prog_rejected=yes
|
|---|
| 2607 | continue
|
|---|
| 2608 | fi
|
|---|
| 2609 | ac_cv_prog_CC="cc"
|
|---|
| 2610 | break
|
|---|
| 2611 | fi
|
|---|
| 2612 | done
|
|---|
| 2613 | IFS="$ac_save_ifs"
|
|---|
| 2614 | if test $ac_prog_rejected = yes; then
|
|---|
| 2615 | # We found a bogon in the path, so make sure we never use it.
|
|---|
| 2616 | set dummy $ac_cv_prog_CC
|
|---|
| 2617 | shift
|
|---|
| 2618 | if test $# -gt 0; then
|
|---|
| 2619 | # We chose a different compiler from the bogus one.
|
|---|
| 2620 | # However, it has the same basename, so the bogon will be chosen
|
|---|
| 2621 | # first if we set CC to just the basename; use the full file name.
|
|---|
| 2622 | shift
|
|---|
| 2623 | set dummy "$ac_dir/$ac_word" "$@"
|
|---|
| 2624 | shift
|
|---|
| 2625 | ac_cv_prog_CC="$@"
|
|---|
| 2626 | fi
|
|---|
| 2627 | fi
|
|---|
| 2628 | fi
|
|---|
| 2629 | fi
|
|---|
| 2630 | CC="$ac_cv_prog_CC"
|
|---|
| 2631 | if test -n "$CC"; then
|
|---|
| 2632 | echo "$ac_t""$CC" 1>&6
|
|---|
| 2633 | else
|
|---|
| 2634 | echo "$ac_t""no" 1>&6
|
|---|
| 2635 | fi
|
|---|
| 2636 |
|
|---|
| 2637 | if test -z "$CC"; then
|
|---|
| 2638 | case "`uname -s`" in
|
|---|
| 2639 | *win32* | *WIN32*)
|
|---|
| 2640 | # Extract the first word of "cl", so it can be a program name with args.
|
|---|
| 2641 | set dummy cl; ac_word=$2
|
|---|
| 2642 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2643 | echo "configure:2644: checking for $ac_word" >&5
|
|---|
| 2644 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 2645 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2646 | else
|
|---|
| 2647 | if test -n "$CC"; then
|
|---|
| 2648 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 2649 | else
|
|---|
| 2650 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2651 | ac_dummy="$PATH"
|
|---|
| 2652 | for ac_dir in $ac_dummy; do
|
|---|
| 2653 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2654 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2655 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2656 | ac_cv_prog_CC="cl"
|
|---|
| 2657 | break
|
|---|
| 2658 | fi
|
|---|
| 2659 | done
|
|---|
| 2660 | IFS="$ac_save_ifs"
|
|---|
| 2661 | fi
|
|---|
| 2662 | fi
|
|---|
| 2663 | CC="$ac_cv_prog_CC"
|
|---|
| 2664 | if test -n "$CC"; then
|
|---|
| 2665 | echo "$ac_t""$CC" 1>&6
|
|---|
| 2666 | else
|
|---|
| 2667 | echo "$ac_t""no" 1>&6
|
|---|
| 2668 | fi
|
|---|
| 2669 | ;;
|
|---|
| 2670 | esac
|
|---|
| 2671 | fi
|
|---|
| 2672 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|---|
| 2673 | fi
|
|---|
| 2674 |
|
|---|
| 2675 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|---|
| 2676 | echo "configure:2677: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|---|
| 2677 |
|
|---|
| 2678 | ac_ext=c
|
|---|
| 2679 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2680 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2681 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2682 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2683 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2684 |
|
|---|
| 2685 | cat > conftest.$ac_ext << EOF
|
|---|
| 2686 |
|
|---|
| 2687 | #line 2688 "configure"
|
|---|
| 2688 | #include "confdefs.h"
|
|---|
| 2689 |
|
|---|
| 2690 | main(){return(0);}
|
|---|
| 2691 | EOF
|
|---|
| 2692 | if { (eval echo configure:2693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2693 | ac_cv_prog_cc_works=yes
|
|---|
| 2694 | # If we can't run a trivial program, we are probably using a cross compiler.
|
|---|
| 2695 | if (./conftest; exit) 2>/dev/null; then
|
|---|
| 2696 | ac_cv_prog_cc_cross=no
|
|---|
| 2697 | else
|
|---|
| 2698 | ac_cv_prog_cc_cross=yes
|
|---|
| 2699 | fi
|
|---|
| 2700 | else
|
|---|
| 2701 | echo "configure: failed program was:" >&5
|
|---|
| 2702 | cat conftest.$ac_ext >&5
|
|---|
| 2703 | ac_cv_prog_cc_works=no
|
|---|
| 2704 | fi
|
|---|
| 2705 | rm -fr conftest*
|
|---|
| 2706 | ac_ext=c
|
|---|
| 2707 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2708 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2709 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2710 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2711 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2712 |
|
|---|
| 2713 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|---|
| 2714 | if test $ac_cv_prog_cc_works = no; then
|
|---|
| 2715 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 2716 | fi
|
|---|
| 2717 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|---|
| 2718 | echo "configure:2719: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|---|
| 2719 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|---|
| 2720 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2721 |
|
|---|
| 2722 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|---|
| 2723 | echo "configure:2724: checking whether we are using GNU C" >&5
|
|---|
| 2724 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|---|
| 2725 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2726 | else
|
|---|
| 2727 | cat > conftest.c <<EOF
|
|---|
| 2728 | #ifdef __GNUC__
|
|---|
| 2729 | yes;
|
|---|
| 2730 | #endif
|
|---|
| 2731 | EOF
|
|---|
| 2732 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|---|
| 2733 | ac_cv_prog_gcc=yes
|
|---|
| 2734 | else
|
|---|
| 2735 | ac_cv_prog_gcc=no
|
|---|
| 2736 | fi
|
|---|
| 2737 | fi
|
|---|
| 2738 |
|
|---|
| 2739 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|---|
| 2740 |
|
|---|
| 2741 | if test $ac_cv_prog_gcc = yes; then
|
|---|
| 2742 | GCC=yes
|
|---|
| 2743 | else
|
|---|
| 2744 | GCC=
|
|---|
| 2745 | fi
|
|---|
| 2746 |
|
|---|
| 2747 | ac_test_CFLAGS="${CFLAGS+set}"
|
|---|
| 2748 | ac_save_CFLAGS="$CFLAGS"
|
|---|
| 2749 | CFLAGS=
|
|---|
| 2750 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|---|
| 2751 | echo "configure:2752: checking whether ${CC-cc} accepts -g" >&5
|
|---|
| 2752 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|---|
| 2753 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2754 | else
|
|---|
| 2755 | echo 'void f(){}' > conftest.c
|
|---|
| 2756 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|---|
| 2757 | ac_cv_prog_cc_g=yes
|
|---|
| 2758 | else
|
|---|
| 2759 | ac_cv_prog_cc_g=no
|
|---|
| 2760 | fi
|
|---|
| 2761 | rm -f conftest*
|
|---|
| 2762 |
|
|---|
| 2763 | fi
|
|---|
| 2764 |
|
|---|
| 2765 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|---|
| 2766 | if test "$ac_test_CFLAGS" = set; then
|
|---|
| 2767 | CFLAGS="$ac_save_CFLAGS"
|
|---|
| 2768 | elif test $ac_cv_prog_cc_g = yes; then
|
|---|
| 2769 | if test "$GCC" = yes; then
|
|---|
| 2770 | CFLAGS="-g -O2"
|
|---|
| 2771 | else
|
|---|
| 2772 | CFLAGS="-g"
|
|---|
| 2773 | fi
|
|---|
| 2774 | else
|
|---|
| 2775 | if test "$GCC" = yes; then
|
|---|
| 2776 | CFLAGS="-O2"
|
|---|
| 2777 | else
|
|---|
| 2778 | CFLAGS=
|
|---|
| 2779 | fi
|
|---|
| 2780 | fi
|
|---|
| 2781 |
|
|---|
| 2782 |
|
|---|
| 2783 | ALL_LINGUAS="fr ja es sv da zh_CN"
|
|---|
| 2784 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
|---|
| 2785 | echo "configure:2786: checking how to run the C preprocessor" >&5
|
|---|
| 2786 | # On Suns, sometimes $CPP names a directory.
|
|---|
| 2787 | if test -n "$CPP" && test -d "$CPP"; then
|
|---|
| 2788 | CPP=
|
|---|
| 2789 | fi
|
|---|
| 2790 | if test -z "$CPP"; then
|
|---|
| 2791 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
|---|
| 2792 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2793 | else
|
|---|
| 2794 | # This must be in double quotes, not single quotes, because CPP may get
|
|---|
| 2795 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
|---|
| 2796 | CPP="${CC-cc} -E"
|
|---|
| 2797 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
|---|
| 2798 | # not just through cpp.
|
|---|
| 2799 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2800 | #include <sys/types.h>
|
|---|
| 2801 | #line 2802 "configure"
|
|---|
| 2802 | #include "confdefs.h"
|
|---|
| 2803 | #include <assert.h>
|
|---|
| 2804 | Syntax Error
|
|---|
| 2805 | EOF
|
|---|
| 2806 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2807 | { (eval echo configure:2808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2808 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2809 | if test -z "$ac_err"; then
|
|---|
| 2810 | :
|
|---|
| 2811 | else
|
|---|
| 2812 | echo "$ac_err" >&5
|
|---|
| 2813 | echo "configure: failed program was:" >&5
|
|---|
| 2814 | cat conftest.$ac_ext >&5
|
|---|
| 2815 | rm -rf conftest*
|
|---|
| 2816 | CPP="${CC-cc} -E -traditional-cpp"
|
|---|
| 2817 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2818 | #include <sys/types.h>
|
|---|
| 2819 | #line 2820 "configure"
|
|---|
| 2820 | #include "confdefs.h"
|
|---|
| 2821 | #include <assert.h>
|
|---|
| 2822 | Syntax Error
|
|---|
| 2823 | EOF
|
|---|
| 2824 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2825 | { (eval echo configure:2826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2826 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2827 | if test -z "$ac_err"; then
|
|---|
| 2828 | :
|
|---|
| 2829 | else
|
|---|
| 2830 | echo "$ac_err" >&5
|
|---|
| 2831 | echo "configure: failed program was:" >&5
|
|---|
| 2832 | cat conftest.$ac_ext >&5
|
|---|
| 2833 | rm -rf conftest*
|
|---|
| 2834 | CPP="${CC-cc} -nologo -E"
|
|---|
| 2835 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2836 | #include <sys/types.h>
|
|---|
| 2837 | #line 2838 "configure"
|
|---|
| 2838 | #include "confdefs.h"
|
|---|
| 2839 | #include <assert.h>
|
|---|
| 2840 | Syntax Error
|
|---|
| 2841 | EOF
|
|---|
| 2842 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2843 | { (eval echo configure:2844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2844 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2845 | if test -z "$ac_err"; then
|
|---|
| 2846 | :
|
|---|
| 2847 | else
|
|---|
| 2848 | echo "$ac_err" >&5
|
|---|
| 2849 | echo "configure: failed program was:" >&5
|
|---|
| 2850 | cat conftest.$ac_ext >&5
|
|---|
| 2851 | rm -rf conftest*
|
|---|
| 2852 | CPP=/lib/cpp
|
|---|
| 2853 | fi
|
|---|
| 2854 | rm -f conftest*
|
|---|
| 2855 | fi
|
|---|
| 2856 | rm -f conftest*
|
|---|
| 2857 | fi
|
|---|
| 2858 | rm -f conftest*
|
|---|
| 2859 | ac_cv_prog_CPP="$CPP"
|
|---|
| 2860 | fi
|
|---|
| 2861 | CPP="$ac_cv_prog_CPP"
|
|---|
| 2862 | else
|
|---|
| 2863 | ac_cv_prog_CPP="$CPP"
|
|---|
| 2864 | fi
|
|---|
| 2865 | echo "$ac_t""$CPP" 1>&6
|
|---|
| 2866 |
|
|---|
| 2867 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 2868 | set dummy ranlib; ac_word=$2
|
|---|
| 2869 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2870 | echo "configure:2871: checking for $ac_word" >&5
|
|---|
| 2871 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 2872 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2873 | else
|
|---|
| 2874 | if test -n "$RANLIB"; then
|
|---|
| 2875 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 2876 | else
|
|---|
| 2877 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2878 | ac_dummy="$PATH"
|
|---|
| 2879 | for ac_dir in $ac_dummy; do
|
|---|
| 2880 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2881 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2882 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2883 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 2884 | break
|
|---|
| 2885 | fi
|
|---|
| 2886 | done
|
|---|
| 2887 | IFS="$ac_save_ifs"
|
|---|
| 2888 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 2889 | fi
|
|---|
| 2890 | fi
|
|---|
| 2891 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 2892 | if test -n "$RANLIB"; then
|
|---|
| 2893 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 2894 | else
|
|---|
| 2895 | echo "$ac_t""no" 1>&6
|
|---|
| 2896 | fi
|
|---|
| 2897 |
|
|---|
| 2898 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
|---|
| 2899 | echo "configure:2900: checking for ANSI C header files" >&5
|
|---|
| 2900 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
|---|
| 2901 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2902 | else
|
|---|
| 2903 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2904 | #include <sys/types.h>
|
|---|
| 2905 | #line 2906 "configure"
|
|---|
| 2906 | #include "confdefs.h"
|
|---|
| 2907 | #include <stdlib.h>
|
|---|
| 2908 | #include <stdarg.h>
|
|---|
| 2909 | #include <string.h>
|
|---|
| 2910 | #include <float.h>
|
|---|
| 2911 | EOF
|
|---|
| 2912 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2913 | { (eval echo configure:2914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2914 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2915 | if test -z "$ac_err"; then
|
|---|
| 2916 | rm -rf conftest*
|
|---|
| 2917 | ac_cv_header_stdc=yes
|
|---|
| 2918 | else
|
|---|
| 2919 | echo "$ac_err" >&5
|
|---|
| 2920 | echo "configure: failed program was:" >&5
|
|---|
| 2921 | cat conftest.$ac_ext >&5
|
|---|
| 2922 | rm -rf conftest*
|
|---|
| 2923 | ac_cv_header_stdc=no
|
|---|
| 2924 | fi
|
|---|
| 2925 | rm -f conftest*
|
|---|
| 2926 |
|
|---|
| 2927 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2928 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|---|
| 2929 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2930 | #line 2931 "configure"
|
|---|
| 2931 | #include "confdefs.h"
|
|---|
| 2932 | #include <string.h>
|
|---|
| 2933 | EOF
|
|---|
| 2934 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 2935 | egrep "memchr" >/dev/null 2>&1; then
|
|---|
| 2936 | :
|
|---|
| 2937 | else
|
|---|
| 2938 | rm -rf conftest*
|
|---|
| 2939 | ac_cv_header_stdc=no
|
|---|
| 2940 | fi
|
|---|
| 2941 | rm -f conftest*
|
|---|
| 2942 |
|
|---|
| 2943 | fi
|
|---|
| 2944 |
|
|---|
| 2945 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2946 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|---|
| 2947 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2948 | #line 2949 "configure"
|
|---|
| 2949 | #include "confdefs.h"
|
|---|
| 2950 | #include <stdlib.h>
|
|---|
| 2951 | EOF
|
|---|
| 2952 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 2953 | egrep "free" >/dev/null 2>&1; then
|
|---|
| 2954 | :
|
|---|
| 2955 | else
|
|---|
| 2956 | rm -rf conftest*
|
|---|
| 2957 | ac_cv_header_stdc=no
|
|---|
| 2958 | fi
|
|---|
| 2959 | rm -f conftest*
|
|---|
| 2960 |
|
|---|
| 2961 | fi
|
|---|
| 2962 |
|
|---|
| 2963 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2964 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|---|
| 2965 | if test "$cross_compiling" = yes; then
|
|---|
| 2966 | :
|
|---|
| 2967 | else
|
|---|
| 2968 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2969 | #line 2970 "configure"
|
|---|
| 2970 | #include "confdefs.h"
|
|---|
| 2971 | #include <ctype.h>
|
|---|
| 2972 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|---|
| 2973 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|---|
| 2974 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|---|
| 2975 | int main () { int i; for (i = 0; i < 256; i++)
|
|---|
| 2976 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|---|
| 2977 | exit (0); }
|
|---|
| 2978 |
|
|---|
| 2979 | EOF
|
|---|
| 2980 | if { (eval echo configure:2981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 2981 | then
|
|---|
| 2982 | :
|
|---|
| 2983 | else
|
|---|
| 2984 | echo "configure: failed program was:" >&5
|
|---|
| 2985 | cat conftest.$ac_ext >&5
|
|---|
| 2986 | rm -fr conftest*
|
|---|
| 2987 | ac_cv_header_stdc=no
|
|---|
| 2988 | fi
|
|---|
| 2989 | rm -fr conftest*
|
|---|
| 2990 | fi
|
|---|
| 2991 |
|
|---|
| 2992 | fi
|
|---|
| 2993 | fi
|
|---|
| 2994 |
|
|---|
| 2995 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|---|
| 2996 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2997 | cat >> confdefs.h <<\EOF
|
|---|
| 2998 | #define STDC_HEADERS 1
|
|---|
| 2999 | EOF
|
|---|
| 3000 |
|
|---|
| 3001 | fi
|
|---|
| 3002 |
|
|---|
| 3003 | echo $ac_n "checking for working const""... $ac_c" 1>&6
|
|---|
| 3004 | echo "configure:3005: checking for working const" >&5
|
|---|
| 3005 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
|---|
| 3006 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3007 | else
|
|---|
| 3008 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3009 | #line 3010 "configure"
|
|---|
| 3010 | #include "confdefs.h"
|
|---|
| 3011 |
|
|---|
| 3012 | int main() {
|
|---|
| 3013 |
|
|---|
| 3014 | /* Ultrix mips cc rejects this. */
|
|---|
| 3015 | typedef int charset[2]; const charset x;
|
|---|
| 3016 | /* SunOS 4.1.1 cc rejects this. */
|
|---|
| 3017 | char const *const *ccp;
|
|---|
| 3018 | char **p;
|
|---|
| 3019 | /* NEC SVR4.0.2 mips cc rejects this. */
|
|---|
| 3020 | struct point {int x, y;};
|
|---|
| 3021 | static struct point const zero = {0,0};
|
|---|
| 3022 | /* AIX XL C 1.02.0.0 rejects this.
|
|---|
| 3023 | It does not let you subtract one const X* pointer from another in an arm
|
|---|
| 3024 | of an if-expression whose if-part is not a constant expression */
|
|---|
| 3025 | const char *g = "string";
|
|---|
| 3026 | ccp = &g + (g ? g-g : 0);
|
|---|
| 3027 | /* HPUX 7.0 cc rejects these. */
|
|---|
| 3028 | ++ccp;
|
|---|
| 3029 | p = (char**) ccp;
|
|---|
| 3030 | ccp = (char const *const *) p;
|
|---|
| 3031 | { /* SCO 3.2v4 cc rejects this. */
|
|---|
| 3032 | char *t;
|
|---|
| 3033 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|---|
| 3034 |
|
|---|
| 3035 | *t++ = 0;
|
|---|
| 3036 | }
|
|---|
| 3037 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
|---|
| 3038 | int x[] = {25, 17};
|
|---|
| 3039 | const int *foo = &x[0];
|
|---|
| 3040 | ++foo;
|
|---|
| 3041 | }
|
|---|
| 3042 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|---|
| 3043 | typedef const int *iptr;
|
|---|
| 3044 | iptr p = 0;
|
|---|
| 3045 | ++p;
|
|---|
| 3046 | }
|
|---|
| 3047 | { /* AIX XL C 1.02.0.0 rejects this saying
|
|---|
| 3048 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|---|
| 3049 | struct s { int j; const int *ap[3]; };
|
|---|
| 3050 | struct s *b; b->j = 5;
|
|---|
| 3051 | }
|
|---|
| 3052 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|---|
| 3053 | const int foo = 10;
|
|---|
| 3054 | }
|
|---|
| 3055 |
|
|---|
| 3056 | ; return 0; }
|
|---|
| 3057 | EOF
|
|---|
| 3058 | if { (eval echo configure:3059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 3059 | rm -rf conftest*
|
|---|
| 3060 | ac_cv_c_const=yes
|
|---|
| 3061 | else
|
|---|
| 3062 | echo "configure: failed program was:" >&5
|
|---|
| 3063 | cat conftest.$ac_ext >&5
|
|---|
| 3064 | rm -rf conftest*
|
|---|
| 3065 | ac_cv_c_const=no
|
|---|
| 3066 | fi
|
|---|
| 3067 | rm -f conftest*
|
|---|
| 3068 | fi
|
|---|
| 3069 |
|
|---|
| 3070 | echo "$ac_t""$ac_cv_c_const" 1>&6
|
|---|
| 3071 | if test $ac_cv_c_const = no; then
|
|---|
| 3072 | cat >> confdefs.h <<\EOF
|
|---|
| 3073 | #define const
|
|---|
| 3074 | EOF
|
|---|
| 3075 |
|
|---|
| 3076 | fi
|
|---|
| 3077 |
|
|---|
| 3078 | echo $ac_n "checking for inline""... $ac_c" 1>&6
|
|---|
| 3079 | echo "configure:3080: checking for inline" >&5
|
|---|
| 3080 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
|---|
| 3081 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3082 | else
|
|---|
| 3083 | ac_cv_c_inline=no
|
|---|
| 3084 | for ac_kw in inline __inline__ __inline; do
|
|---|
| 3085 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3086 | #line 3087 "configure"
|
|---|
| 3087 | #include "confdefs.h"
|
|---|
| 3088 |
|
|---|
| 3089 | int main() {
|
|---|
| 3090 | } $ac_kw foo() {
|
|---|
| 3091 | ; return 0; }
|
|---|
| 3092 | EOF
|
|---|
| 3093 | if { (eval echo configure:3094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 3094 | rm -rf conftest*
|
|---|
| 3095 | ac_cv_c_inline=$ac_kw; break
|
|---|
| 3096 | else
|
|---|
| 3097 | echo "configure: failed program was:" >&5
|
|---|
| 3098 | cat conftest.$ac_ext >&5
|
|---|
| 3099 | fi
|
|---|
| 3100 | rm -f conftest*
|
|---|
| 3101 | done
|
|---|
| 3102 |
|
|---|
| 3103 | fi
|
|---|
| 3104 |
|
|---|
| 3105 | echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|---|
| 3106 | case "$ac_cv_c_inline" in
|
|---|
| 3107 | inline | yes) ;;
|
|---|
| 3108 | no) cat >> confdefs.h <<\EOF
|
|---|
| 3109 | #define inline
|
|---|
| 3110 | EOF
|
|---|
| 3111 | ;;
|
|---|
| 3112 | *) cat >> confdefs.h <<EOF
|
|---|
| 3113 | #define inline $ac_cv_c_inline
|
|---|
| 3114 | EOF
|
|---|
| 3115 | ;;
|
|---|
| 3116 | esac
|
|---|
| 3117 |
|
|---|
| 3118 | echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
|---|
| 3119 | echo "configure:3120: checking for off_t" >&5
|
|---|
| 3120 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
|---|
| 3121 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3122 | else
|
|---|
| 3123 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3124 | #line 3125 "configure"
|
|---|
| 3125 | #include "confdefs.h"
|
|---|
| 3126 | #include <sys/types.h>
|
|---|
| 3127 | #if STDC_HEADERS
|
|---|
| 3128 | #include <stdlib.h>
|
|---|
| 3129 | #include <stddef.h>
|
|---|
| 3130 | #endif
|
|---|
| 3131 | EOF
|
|---|
| 3132 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3133 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|---|
| 3134 | rm -rf conftest*
|
|---|
| 3135 | ac_cv_type_off_t=yes
|
|---|
| 3136 | else
|
|---|
| 3137 | rm -rf conftest*
|
|---|
| 3138 | ac_cv_type_off_t=no
|
|---|
| 3139 | fi
|
|---|
| 3140 | rm -f conftest*
|
|---|
| 3141 |
|
|---|
| 3142 | fi
|
|---|
| 3143 | echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
|---|
| 3144 | if test $ac_cv_type_off_t = no; then
|
|---|
| 3145 | cat >> confdefs.h <<\EOF
|
|---|
| 3146 | #define off_t long
|
|---|
| 3147 | EOF
|
|---|
| 3148 |
|
|---|
| 3149 | fi
|
|---|
| 3150 |
|
|---|
| 3151 | echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
|---|
| 3152 | echo "configure:3153: checking for size_t" >&5
|
|---|
| 3153 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
|---|
| 3154 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3155 | else
|
|---|
| 3156 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3157 | #line 3158 "configure"
|
|---|
| 3158 | #include "confdefs.h"
|
|---|
| 3159 | #include <sys/types.h>
|
|---|
| 3160 | #if STDC_HEADERS
|
|---|
| 3161 | #include <stdlib.h>
|
|---|
| 3162 | #include <stddef.h>
|
|---|
| 3163 | #endif
|
|---|
| 3164 | EOF
|
|---|
| 3165 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3166 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|---|
| 3167 | rm -rf conftest*
|
|---|
| 3168 | ac_cv_type_size_t=yes
|
|---|
| 3169 | else
|
|---|
| 3170 | rm -rf conftest*
|
|---|
| 3171 | ac_cv_type_size_t=no
|
|---|
| 3172 | fi
|
|---|
| 3173 | rm -f conftest*
|
|---|
| 3174 |
|
|---|
| 3175 | fi
|
|---|
| 3176 | echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
|---|
| 3177 | if test $ac_cv_type_size_t = no; then
|
|---|
| 3178 | cat >> confdefs.h <<\EOF
|
|---|
| 3179 | #define size_t unsigned
|
|---|
| 3180 | EOF
|
|---|
| 3181 |
|
|---|
| 3182 | fi
|
|---|
| 3183 |
|
|---|
| 3184 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
|---|
| 3185 | # for constant arguments. Useless!
|
|---|
| 3186 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
|---|
| 3187 | echo "configure:3188: checking for working alloca.h" >&5
|
|---|
| 3188 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
|---|
| 3189 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3190 | else
|
|---|
| 3191 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3192 | #line 3193 "configure"
|
|---|
| 3193 | #include "confdefs.h"
|
|---|
| 3194 | #include <alloca.h>
|
|---|
| 3195 | int main() {
|
|---|
| 3196 | char *p = alloca(2 * sizeof(int));
|
|---|
| 3197 | ; return 0; }
|
|---|
| 3198 | EOF
|
|---|
| 3199 | if { (eval echo configure:3200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3200 | rm -rf conftest*
|
|---|
| 3201 | ac_cv_header_alloca_h=yes
|
|---|
| 3202 | else
|
|---|
| 3203 | echo "configure: failed program was:" >&5
|
|---|
| 3204 | cat conftest.$ac_ext >&5
|
|---|
| 3205 | rm -rf conftest*
|
|---|
| 3206 | ac_cv_header_alloca_h=no
|
|---|
| 3207 | fi
|
|---|
| 3208 | rm -f conftest*
|
|---|
| 3209 | fi
|
|---|
| 3210 |
|
|---|
| 3211 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|---|
| 3212 | if test $ac_cv_header_alloca_h = yes; then
|
|---|
| 3213 | cat >> confdefs.h <<\EOF
|
|---|
| 3214 | #define HAVE_ALLOCA_H 1
|
|---|
| 3215 | EOF
|
|---|
| 3216 |
|
|---|
| 3217 | fi
|
|---|
| 3218 |
|
|---|
| 3219 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
|---|
| 3220 | echo "configure:3221: checking for alloca" >&5
|
|---|
| 3221 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
|---|
| 3222 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3223 | else
|
|---|
| 3224 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3225 | #line 3226 "configure"
|
|---|
| 3226 | #include "confdefs.h"
|
|---|
| 3227 |
|
|---|
| 3228 | #ifdef __GNUC__
|
|---|
| 3229 | # define alloca __builtin_alloca
|
|---|
| 3230 | #else
|
|---|
| 3231 | # ifdef _MSC_VER
|
|---|
| 3232 | # include <malloc.h>
|
|---|
| 3233 | # define alloca _alloca
|
|---|
| 3234 | # else
|
|---|
| 3235 | # if HAVE_ALLOCA_H
|
|---|
| 3236 | # include <alloca.h>
|
|---|
| 3237 | # else
|
|---|
| 3238 | # ifdef _AIX
|
|---|
| 3239 | #pragma alloca
|
|---|
| 3240 | # else
|
|---|
| 3241 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
|---|
| 3242 | char *alloca ();
|
|---|
| 3243 | # endif
|
|---|
| 3244 | # endif
|
|---|
| 3245 | # endif
|
|---|
| 3246 | # endif
|
|---|
| 3247 | #endif
|
|---|
| 3248 |
|
|---|
| 3249 | int main() {
|
|---|
| 3250 | char *p = (char *) alloca(1);
|
|---|
| 3251 | ; return 0; }
|
|---|
| 3252 | EOF
|
|---|
| 3253 | if { (eval echo configure:3254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3254 | rm -rf conftest*
|
|---|
| 3255 | ac_cv_func_alloca_works=yes
|
|---|
| 3256 | else
|
|---|
| 3257 | echo "configure: failed program was:" >&5
|
|---|
| 3258 | cat conftest.$ac_ext >&5
|
|---|
| 3259 | rm -rf conftest*
|
|---|
| 3260 | ac_cv_func_alloca_works=no
|
|---|
| 3261 | fi
|
|---|
| 3262 | rm -f conftest*
|
|---|
| 3263 | fi
|
|---|
| 3264 |
|
|---|
| 3265 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
|---|
| 3266 | if test $ac_cv_func_alloca_works = yes; then
|
|---|
| 3267 | cat >> confdefs.h <<\EOF
|
|---|
| 3268 | #define HAVE_ALLOCA 1
|
|---|
| 3269 | EOF
|
|---|
| 3270 |
|
|---|
| 3271 | fi
|
|---|
| 3272 |
|
|---|
| 3273 | if test $ac_cv_func_alloca_works = no; then
|
|---|
| 3274 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|---|
| 3275 | # that cause trouble. Some versions do not even contain alloca or
|
|---|
| 3276 | # contain a buggy version. If you still want to use their alloca,
|
|---|
| 3277 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
|---|
| 3278 | ALLOCA=alloca.${ac_objext}
|
|---|
| 3279 | cat >> confdefs.h <<\EOF
|
|---|
| 3280 | #define C_ALLOCA 1
|
|---|
| 3281 | EOF
|
|---|
| 3282 |
|
|---|
| 3283 |
|
|---|
| 3284 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
|---|
| 3285 | echo "configure:3286: checking whether alloca needs Cray hooks" >&5
|
|---|
| 3286 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
|---|
| 3287 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3288 | else
|
|---|
| 3289 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3290 | #line 3291 "configure"
|
|---|
| 3291 | #include "confdefs.h"
|
|---|
| 3292 | #if defined(CRAY) && ! defined(CRAY2)
|
|---|
| 3293 | webecray
|
|---|
| 3294 | #else
|
|---|
| 3295 | wenotbecray
|
|---|
| 3296 | #endif
|
|---|
| 3297 |
|
|---|
| 3298 | EOF
|
|---|
| 3299 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3300 | egrep "webecray" >/dev/null 2>&1; then
|
|---|
| 3301 | rm -rf conftest*
|
|---|
| 3302 | ac_cv_os_cray=yes
|
|---|
| 3303 | else
|
|---|
| 3304 | rm -rf conftest*
|
|---|
| 3305 | ac_cv_os_cray=no
|
|---|
| 3306 | fi
|
|---|
| 3307 | rm -f conftest*
|
|---|
| 3308 |
|
|---|
| 3309 | fi
|
|---|
| 3310 |
|
|---|
| 3311 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
|---|
| 3312 | if test $ac_cv_os_cray = yes; then
|
|---|
| 3313 | for ac_func in _getb67 GETB67 getb67; do
|
|---|
| 3314 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3315 | echo "configure:3316: checking for $ac_func" >&5
|
|---|
| 3316 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3317 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3318 | else
|
|---|
| 3319 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3320 | #line 3321 "configure"
|
|---|
| 3321 | #include "confdefs.h"
|
|---|
| 3322 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3323 | which can conflict with char $ac_func(); below. */
|
|---|
| 3324 | #include <assert.h>
|
|---|
| 3325 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3326 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3327 | builtin and then its argument prototype would still apply. */
|
|---|
| 3328 | char $ac_func();
|
|---|
| 3329 |
|
|---|
| 3330 | int main() {
|
|---|
| 3331 |
|
|---|
| 3332 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3333 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3334 | something starting with __ and the normal name is an alias. */
|
|---|
| 3335 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3336 | choke me
|
|---|
| 3337 | #else
|
|---|
| 3338 | $ac_func();
|
|---|
| 3339 | #endif
|
|---|
| 3340 |
|
|---|
| 3341 | ; return 0; }
|
|---|
| 3342 | EOF
|
|---|
| 3343 | if { (eval echo configure:3344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3344 | rm -rf conftest*
|
|---|
| 3345 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3346 | else
|
|---|
| 3347 | echo "configure: failed program was:" >&5
|
|---|
| 3348 | cat conftest.$ac_ext >&5
|
|---|
| 3349 | rm -rf conftest*
|
|---|
| 3350 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3351 | fi
|
|---|
| 3352 | rm -f conftest*
|
|---|
| 3353 | fi
|
|---|
| 3354 |
|
|---|
| 3355 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3356 | echo "$ac_t""yes" 1>&6
|
|---|
| 3357 | cat >> confdefs.h <<EOF
|
|---|
| 3358 | #define CRAY_STACKSEG_END $ac_func
|
|---|
| 3359 | EOF
|
|---|
| 3360 |
|
|---|
| 3361 | break
|
|---|
| 3362 | else
|
|---|
| 3363 | echo "$ac_t""no" 1>&6
|
|---|
| 3364 | fi
|
|---|
| 3365 |
|
|---|
| 3366 | done
|
|---|
| 3367 | fi
|
|---|
| 3368 |
|
|---|
| 3369 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
|---|
| 3370 | echo "configure:3371: checking stack direction for C alloca" >&5
|
|---|
| 3371 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
|---|
| 3372 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3373 | else
|
|---|
| 3374 | if test "$cross_compiling" = yes; then
|
|---|
| 3375 | ac_cv_c_stack_direction=0
|
|---|
| 3376 | else
|
|---|
| 3377 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3378 | #line 3379 "configure"
|
|---|
| 3379 | #include "confdefs.h"
|
|---|
| 3380 | find_stack_direction ()
|
|---|
| 3381 | {
|
|---|
| 3382 | static char *addr = 0;
|
|---|
| 3383 | auto char dummy;
|
|---|
| 3384 | if (addr == 0)
|
|---|
| 3385 | {
|
|---|
| 3386 | addr = &dummy;
|
|---|
| 3387 | return find_stack_direction ();
|
|---|
| 3388 | }
|
|---|
| 3389 | else
|
|---|
| 3390 | return (&dummy > addr) ? 1 : -1;
|
|---|
| 3391 | }
|
|---|
| 3392 | main ()
|
|---|
| 3393 | {
|
|---|
| 3394 | exit (find_stack_direction() < 0);
|
|---|
| 3395 | }
|
|---|
| 3396 | EOF
|
|---|
| 3397 | if { (eval echo configure:3398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 3398 | then
|
|---|
| 3399 | ac_cv_c_stack_direction=1
|
|---|
| 3400 | else
|
|---|
| 3401 | echo "configure: failed program was:" >&5
|
|---|
| 3402 | cat conftest.$ac_ext >&5
|
|---|
| 3403 | rm -fr conftest*
|
|---|
| 3404 | ac_cv_c_stack_direction=-1
|
|---|
| 3405 | fi
|
|---|
| 3406 | rm -fr conftest*
|
|---|
| 3407 | fi
|
|---|
| 3408 |
|
|---|
| 3409 | fi
|
|---|
| 3410 |
|
|---|
| 3411 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
|---|
| 3412 | cat >> confdefs.h <<EOF
|
|---|
| 3413 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
|---|
| 3414 | EOF
|
|---|
| 3415 |
|
|---|
| 3416 | fi
|
|---|
| 3417 |
|
|---|
| 3418 | for ac_hdr in unistd.h
|
|---|
| 3419 | do
|
|---|
| 3420 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 3421 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 3422 | echo "configure:3423: checking for $ac_hdr" >&5
|
|---|
| 3423 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 3424 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3425 | else
|
|---|
| 3426 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3427 | #include <sys/types.h>
|
|---|
| 3428 | #line 3429 "configure"
|
|---|
| 3429 | #include "confdefs.h"
|
|---|
| 3430 | #include <$ac_hdr>
|
|---|
| 3431 | EOF
|
|---|
| 3432 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3433 | { (eval echo configure:3434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3434 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3435 | if test -z "$ac_err"; then
|
|---|
| 3436 | rm -rf conftest*
|
|---|
| 3437 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 3438 | else
|
|---|
| 3439 | echo "$ac_err" >&5
|
|---|
| 3440 | echo "configure: failed program was:" >&5
|
|---|
| 3441 | cat conftest.$ac_ext >&5
|
|---|
| 3442 | rm -rf conftest*
|
|---|
| 3443 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 3444 | fi
|
|---|
| 3445 | rm -f conftest*
|
|---|
| 3446 | fi
|
|---|
| 3447 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 3448 | echo "$ac_t""yes" 1>&6
|
|---|
| 3449 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 3450 | cat >> confdefs.h <<EOF
|
|---|
| 3451 | #define $ac_tr_hdr 1
|
|---|
| 3452 | EOF
|
|---|
| 3453 |
|
|---|
| 3454 | else
|
|---|
| 3455 | echo "$ac_t""no" 1>&6
|
|---|
| 3456 | fi
|
|---|
| 3457 | done
|
|---|
| 3458 |
|
|---|
| 3459 | for ac_func in getpagesize
|
|---|
| 3460 | do
|
|---|
| 3461 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3462 | echo "configure:3463: checking for $ac_func" >&5
|
|---|
| 3463 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3464 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3465 | else
|
|---|
| 3466 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3467 | #line 3468 "configure"
|
|---|
| 3468 | #include "confdefs.h"
|
|---|
| 3469 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3470 | which can conflict with char $ac_func(); below. */
|
|---|
| 3471 | #include <assert.h>
|
|---|
| 3472 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3473 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3474 | builtin and then its argument prototype would still apply. */
|
|---|
| 3475 | char $ac_func();
|
|---|
| 3476 |
|
|---|
| 3477 | int main() {
|
|---|
| 3478 |
|
|---|
| 3479 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3480 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3481 | something starting with __ and the normal name is an alias. */
|
|---|
| 3482 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3483 | choke me
|
|---|
| 3484 | #else
|
|---|
| 3485 | $ac_func();
|
|---|
| 3486 | #endif
|
|---|
| 3487 |
|
|---|
| 3488 | ; return 0; }
|
|---|
| 3489 | EOF
|
|---|
| 3490 | if { (eval echo configure:3491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3491 | rm -rf conftest*
|
|---|
| 3492 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3493 | else
|
|---|
| 3494 | echo "configure: failed program was:" >&5
|
|---|
| 3495 | cat conftest.$ac_ext >&5
|
|---|
| 3496 | rm -rf conftest*
|
|---|
| 3497 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3498 | fi
|
|---|
| 3499 | rm -f conftest*
|
|---|
| 3500 | fi
|
|---|
| 3501 |
|
|---|
| 3502 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3503 | echo "$ac_t""yes" 1>&6
|
|---|
| 3504 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3505 | cat >> confdefs.h <<EOF
|
|---|
| 3506 | #define $ac_tr_func 1
|
|---|
| 3507 | EOF
|
|---|
| 3508 |
|
|---|
| 3509 | else
|
|---|
| 3510 | echo "$ac_t""no" 1>&6
|
|---|
| 3511 | fi
|
|---|
| 3512 | done
|
|---|
| 3513 |
|
|---|
| 3514 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
|---|
| 3515 | echo "configure:3516: checking for working mmap" >&5
|
|---|
| 3516 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
|---|
| 3517 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3518 | else
|
|---|
| 3519 | if test "$cross_compiling" = yes; then
|
|---|
| 3520 | ac_cv_func_mmap_fixed_mapped=no
|
|---|
| 3521 | else
|
|---|
| 3522 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3523 | #line 3524 "configure"
|
|---|
| 3524 | #include "confdefs.h"
|
|---|
| 3525 |
|
|---|
| 3526 | /* Thanks to Mike Haertel and Jim Avera for this test.
|
|---|
| 3527 | Here is a matrix of mmap possibilities:
|
|---|
| 3528 | mmap private not fixed
|
|---|
| 3529 | mmap private fixed at somewhere currently unmapped
|
|---|
| 3530 | mmap private fixed at somewhere already mapped
|
|---|
| 3531 | mmap shared not fixed
|
|---|
| 3532 | mmap shared fixed at somewhere currently unmapped
|
|---|
| 3533 | mmap shared fixed at somewhere already mapped
|
|---|
| 3534 | For private mappings, we should verify that changes cannot be read()
|
|---|
| 3535 | back from the file, nor mmap's back from the file at a different
|
|---|
| 3536 | address. (There have been systems where private was not correctly
|
|---|
| 3537 | implemented like the infamous i386 svr4.0, and systems where the
|
|---|
| 3538 | VM page cache was not coherent with the filesystem buffer cache
|
|---|
| 3539 | like early versions of FreeBSD and possibly contemporary NetBSD.)
|
|---|
| 3540 | For shared mappings, we should conversely verify that changes get
|
|---|
| 3541 | propogated back to all the places they're supposed to be.
|
|---|
| 3542 |
|
|---|
| 3543 | Grep wants private fixed already mapped.
|
|---|
| 3544 | The main things grep needs to know about mmap are:
|
|---|
| 3545 | * does it exist and is it safe to write into the mmap'd area
|
|---|
| 3546 | * how to use it (BSD variants) */
|
|---|
| 3547 | #include <sys/types.h>
|
|---|
| 3548 | #include <fcntl.h>
|
|---|
| 3549 | #include <sys/mman.h>
|
|---|
| 3550 |
|
|---|
| 3551 | /* This mess was copied from the GNU getpagesize.h. */
|
|---|
| 3552 | #ifndef HAVE_GETPAGESIZE
|
|---|
| 3553 | # ifdef HAVE_UNISTD_H
|
|---|
| 3554 | # include <unistd.h>
|
|---|
| 3555 | # endif
|
|---|
| 3556 |
|
|---|
| 3557 | /* Assume that all systems that can run configure have sys/param.h. */
|
|---|
| 3558 | # ifndef HAVE_SYS_PARAM_H
|
|---|
| 3559 | # define HAVE_SYS_PARAM_H 1
|
|---|
| 3560 | # endif
|
|---|
| 3561 |
|
|---|
| 3562 | # ifdef _SC_PAGESIZE
|
|---|
| 3563 | # define getpagesize() sysconf(_SC_PAGESIZE)
|
|---|
| 3564 | # else /* no _SC_PAGESIZE */
|
|---|
| 3565 | # ifdef HAVE_SYS_PARAM_H
|
|---|
| 3566 | # include <sys/param.h>
|
|---|
| 3567 | # ifdef EXEC_PAGESIZE
|
|---|
| 3568 | # define getpagesize() EXEC_PAGESIZE
|
|---|
| 3569 | # else /* no EXEC_PAGESIZE */
|
|---|
| 3570 | # ifdef NBPG
|
|---|
| 3571 | # define getpagesize() NBPG * CLSIZE
|
|---|
| 3572 | # ifndef CLSIZE
|
|---|
| 3573 | # define CLSIZE 1
|
|---|
| 3574 | # endif /* no CLSIZE */
|
|---|
| 3575 | # else /* no NBPG */
|
|---|
| 3576 | # ifdef NBPC
|
|---|
| 3577 | # define getpagesize() NBPC
|
|---|
| 3578 | # else /* no NBPC */
|
|---|
| 3579 | # ifdef PAGESIZE
|
|---|
| 3580 | # define getpagesize() PAGESIZE
|
|---|
| 3581 | # endif /* PAGESIZE */
|
|---|
| 3582 | # endif /* no NBPC */
|
|---|
| 3583 | # endif /* no NBPG */
|
|---|
| 3584 | # endif /* no EXEC_PAGESIZE */
|
|---|
| 3585 | # else /* no HAVE_SYS_PARAM_H */
|
|---|
| 3586 | # define getpagesize() 8192 /* punt totally */
|
|---|
| 3587 | # endif /* no HAVE_SYS_PARAM_H */
|
|---|
| 3588 | # endif /* no _SC_PAGESIZE */
|
|---|
| 3589 |
|
|---|
| 3590 | #endif /* no HAVE_GETPAGESIZE */
|
|---|
| 3591 |
|
|---|
| 3592 | #ifdef __cplusplus
|
|---|
| 3593 | extern "C" { void *malloc(unsigned); }
|
|---|
| 3594 | #else
|
|---|
| 3595 | char *malloc();
|
|---|
| 3596 | #endif
|
|---|
| 3597 |
|
|---|
| 3598 | int
|
|---|
| 3599 | main()
|
|---|
| 3600 | {
|
|---|
| 3601 | char *data, *data2, *data3;
|
|---|
| 3602 | int i, pagesize;
|
|---|
| 3603 | int fd;
|
|---|
| 3604 |
|
|---|
| 3605 | pagesize = getpagesize();
|
|---|
| 3606 |
|
|---|
| 3607 | /*
|
|---|
| 3608 | * First, make a file with some known garbage in it.
|
|---|
| 3609 | */
|
|---|
| 3610 | data = malloc(pagesize);
|
|---|
| 3611 | if (!data)
|
|---|
| 3612 | exit(1);
|
|---|
| 3613 | for (i = 0; i < pagesize; ++i)
|
|---|
| 3614 | *(data + i) = rand();
|
|---|
| 3615 | umask(0);
|
|---|
| 3616 | fd = creat("conftestmmap", 0600);
|
|---|
| 3617 | if (fd < 0)
|
|---|
| 3618 | exit(1);
|
|---|
| 3619 | if (write(fd, data, pagesize) != pagesize)
|
|---|
| 3620 | exit(1);
|
|---|
| 3621 | close(fd);
|
|---|
| 3622 |
|
|---|
| 3623 | /*
|
|---|
| 3624 | * Next, try to mmap the file at a fixed address which
|
|---|
| 3625 | * already has something else allocated at it. If we can,
|
|---|
| 3626 | * also make sure that we see the same garbage.
|
|---|
| 3627 | */
|
|---|
| 3628 | fd = open("conftestmmap", O_RDWR);
|
|---|
| 3629 | if (fd < 0)
|
|---|
| 3630 | exit(1);
|
|---|
| 3631 | data2 = malloc(2 * pagesize);
|
|---|
| 3632 | if (!data2)
|
|---|
| 3633 | exit(1);
|
|---|
| 3634 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
|---|
| 3635 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
|---|
| 3636 | MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
|---|
| 3637 | exit(1);
|
|---|
| 3638 | for (i = 0; i < pagesize; ++i)
|
|---|
| 3639 | if (*(data + i) != *(data2 + i))
|
|---|
| 3640 | exit(1);
|
|---|
| 3641 |
|
|---|
| 3642 | /*
|
|---|
| 3643 | * Finally, make sure that changes to the mapped area
|
|---|
| 3644 | * do not percolate back to the file as seen by read().
|
|---|
| 3645 | * (This is a bug on some variants of i386 svr4.0.)
|
|---|
| 3646 | */
|
|---|
| 3647 | for (i = 0; i < pagesize; ++i)
|
|---|
| 3648 | *(data2 + i) = *(data2 + i) + 1;
|
|---|
| 3649 | data3 = malloc(pagesize);
|
|---|
| 3650 | if (!data3)
|
|---|
| 3651 | exit(1);
|
|---|
| 3652 | if (read(fd, data3, pagesize) != pagesize)
|
|---|
| 3653 | exit(1);
|
|---|
| 3654 | for (i = 0; i < pagesize; ++i)
|
|---|
| 3655 | if (*(data + i) != *(data3 + i))
|
|---|
| 3656 | exit(1);
|
|---|
| 3657 | close(fd);
|
|---|
| 3658 | unlink("conftestmmap");
|
|---|
| 3659 | exit(0);
|
|---|
| 3660 | }
|
|---|
| 3661 |
|
|---|
| 3662 | EOF
|
|---|
| 3663 | if { (eval echo configure:3664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 3664 | then
|
|---|
| 3665 | ac_cv_func_mmap_fixed_mapped=yes
|
|---|
| 3666 | else
|
|---|
| 3667 | echo "configure: failed program was:" >&5
|
|---|
| 3668 | cat conftest.$ac_ext >&5
|
|---|
| 3669 | rm -fr conftest*
|
|---|
| 3670 | ac_cv_func_mmap_fixed_mapped=no
|
|---|
| 3671 | fi
|
|---|
| 3672 | rm -fr conftest*
|
|---|
| 3673 | fi
|
|---|
| 3674 |
|
|---|
| 3675 | fi
|
|---|
| 3676 |
|
|---|
| 3677 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
|---|
| 3678 | if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
|---|
| 3679 | cat >> confdefs.h <<\EOF
|
|---|
| 3680 | #define HAVE_MMAP 1
|
|---|
| 3681 | EOF
|
|---|
| 3682 |
|
|---|
| 3683 | fi
|
|---|
| 3684 |
|
|---|
| 3685 |
|
|---|
| 3686 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
|
|---|
| 3687 | unistd.h values.h sys/param.h
|
|---|
| 3688 | do
|
|---|
| 3689 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 3690 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 3691 | echo "configure:3692: checking for $ac_hdr" >&5
|
|---|
| 3692 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 3693 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3694 | else
|
|---|
| 3695 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3696 | #include <sys/types.h>
|
|---|
| 3697 | #line 3698 "configure"
|
|---|
| 3698 | #include "confdefs.h"
|
|---|
| 3699 | #include <$ac_hdr>
|
|---|
| 3700 | EOF
|
|---|
| 3701 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3702 | { (eval echo configure:3703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3703 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3704 | if test -z "$ac_err"; then
|
|---|
| 3705 | rm -rf conftest*
|
|---|
| 3706 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 3707 | else
|
|---|
| 3708 | echo "$ac_err" >&5
|
|---|
| 3709 | echo "configure: failed program was:" >&5
|
|---|
| 3710 | cat conftest.$ac_ext >&5
|
|---|
| 3711 | rm -rf conftest*
|
|---|
| 3712 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 3713 | fi
|
|---|
| 3714 | rm -f conftest*
|
|---|
| 3715 | fi
|
|---|
| 3716 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 3717 | echo "$ac_t""yes" 1>&6
|
|---|
| 3718 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 3719 | cat >> confdefs.h <<EOF
|
|---|
| 3720 | #define $ac_tr_hdr 1
|
|---|
| 3721 | EOF
|
|---|
| 3722 |
|
|---|
| 3723 | else
|
|---|
| 3724 | echo "$ac_t""no" 1>&6
|
|---|
| 3725 | fi
|
|---|
| 3726 | done
|
|---|
| 3727 |
|
|---|
| 3728 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
|
|---|
| 3729 | __argz_count __argz_stringify __argz_next
|
|---|
| 3730 | do
|
|---|
| 3731 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3732 | echo "configure:3733: checking for $ac_func" >&5
|
|---|
| 3733 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3734 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3735 | else
|
|---|
| 3736 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3737 | #line 3738 "configure"
|
|---|
| 3738 | #include "confdefs.h"
|
|---|
| 3739 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3740 | which can conflict with char $ac_func(); below. */
|
|---|
| 3741 | #include <assert.h>
|
|---|
| 3742 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3743 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3744 | builtin and then its argument prototype would still apply. */
|
|---|
| 3745 | char $ac_func();
|
|---|
| 3746 |
|
|---|
| 3747 | int main() {
|
|---|
| 3748 |
|
|---|
| 3749 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3750 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3751 | something starting with __ and the normal name is an alias. */
|
|---|
| 3752 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3753 | choke me
|
|---|
| 3754 | #else
|
|---|
| 3755 | $ac_func();
|
|---|
| 3756 | #endif
|
|---|
| 3757 |
|
|---|
| 3758 | ; return 0; }
|
|---|
| 3759 | EOF
|
|---|
| 3760 | if { (eval echo configure:3761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3761 | rm -rf conftest*
|
|---|
| 3762 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3763 | else
|
|---|
| 3764 | echo "configure: failed program was:" >&5
|
|---|
| 3765 | cat conftest.$ac_ext >&5
|
|---|
| 3766 | rm -rf conftest*
|
|---|
| 3767 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3768 | fi
|
|---|
| 3769 | rm -f conftest*
|
|---|
| 3770 | fi
|
|---|
| 3771 |
|
|---|
| 3772 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3773 | echo "$ac_t""yes" 1>&6
|
|---|
| 3774 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3775 | cat >> confdefs.h <<EOF
|
|---|
| 3776 | #define $ac_tr_func 1
|
|---|
| 3777 | EOF
|
|---|
| 3778 |
|
|---|
| 3779 | else
|
|---|
| 3780 | echo "$ac_t""no" 1>&6
|
|---|
| 3781 | fi
|
|---|
| 3782 | done
|
|---|
| 3783 |
|
|---|
| 3784 |
|
|---|
| 3785 | if test "${ac_cv_func_stpcpy+set}" != "set"; then
|
|---|
| 3786 | for ac_func in stpcpy
|
|---|
| 3787 | do
|
|---|
| 3788 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3789 | echo "configure:3790: checking for $ac_func" >&5
|
|---|
| 3790 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3791 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3792 | else
|
|---|
| 3793 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3794 | #line 3795 "configure"
|
|---|
| 3795 | #include "confdefs.h"
|
|---|
| 3796 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3797 | which can conflict with char $ac_func(); below. */
|
|---|
| 3798 | #include <assert.h>
|
|---|
| 3799 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3800 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3801 | builtin and then its argument prototype would still apply. */
|
|---|
| 3802 | char $ac_func();
|
|---|
| 3803 |
|
|---|
| 3804 | int main() {
|
|---|
| 3805 |
|
|---|
| 3806 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3807 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3808 | something starting with __ and the normal name is an alias. */
|
|---|
| 3809 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3810 | choke me
|
|---|
| 3811 | #else
|
|---|
| 3812 | $ac_func();
|
|---|
| 3813 | #endif
|
|---|
| 3814 |
|
|---|
| 3815 | ; return 0; }
|
|---|
| 3816 | EOF
|
|---|
| 3817 | if { (eval echo configure:3818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3818 | rm -rf conftest*
|
|---|
| 3819 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3820 | else
|
|---|
| 3821 | echo "configure: failed program was:" >&5
|
|---|
| 3822 | cat conftest.$ac_ext >&5
|
|---|
| 3823 | rm -rf conftest*
|
|---|
| 3824 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3825 | fi
|
|---|
| 3826 | rm -f conftest*
|
|---|
| 3827 | fi
|
|---|
| 3828 |
|
|---|
| 3829 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3830 | echo "$ac_t""yes" 1>&6
|
|---|
| 3831 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3832 | cat >> confdefs.h <<EOF
|
|---|
| 3833 | #define $ac_tr_func 1
|
|---|
| 3834 | EOF
|
|---|
| 3835 |
|
|---|
| 3836 | else
|
|---|
| 3837 | echo "$ac_t""no" 1>&6
|
|---|
| 3838 | fi
|
|---|
| 3839 | done
|
|---|
| 3840 |
|
|---|
| 3841 | fi
|
|---|
| 3842 | if test "${ac_cv_func_stpcpy}" = "yes"; then
|
|---|
| 3843 | cat >> confdefs.h <<\EOF
|
|---|
| 3844 | #define HAVE_STPCPY 1
|
|---|
| 3845 | EOF
|
|---|
| 3846 |
|
|---|
| 3847 | fi
|
|---|
| 3848 |
|
|---|
| 3849 | if test $ac_cv_header_locale_h = yes; then
|
|---|
| 3850 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
|
|---|
| 3851 | echo "configure:3852: checking for LC_MESSAGES" >&5
|
|---|
| 3852 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
|
|---|
| 3853 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3854 | else
|
|---|
| 3855 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3856 | #line 3857 "configure"
|
|---|
| 3857 | #include "confdefs.h"
|
|---|
| 3858 | #include <locale.h>
|
|---|
| 3859 | int main() {
|
|---|
| 3860 | return LC_MESSAGES
|
|---|
| 3861 | ; return 0; }
|
|---|
| 3862 | EOF
|
|---|
| 3863 | if { (eval echo configure:3864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3864 | rm -rf conftest*
|
|---|
| 3865 | am_cv_val_LC_MESSAGES=yes
|
|---|
| 3866 | else
|
|---|
| 3867 | echo "configure: failed program was:" >&5
|
|---|
| 3868 | cat conftest.$ac_ext >&5
|
|---|
| 3869 | rm -rf conftest*
|
|---|
| 3870 | am_cv_val_LC_MESSAGES=no
|
|---|
| 3871 | fi
|
|---|
| 3872 | rm -f conftest*
|
|---|
| 3873 | fi
|
|---|
| 3874 |
|
|---|
| 3875 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
|
|---|
| 3876 | if test $am_cv_val_LC_MESSAGES = yes; then
|
|---|
| 3877 | cat >> confdefs.h <<\EOF
|
|---|
| 3878 | #define HAVE_LC_MESSAGES 1
|
|---|
| 3879 | EOF
|
|---|
| 3880 |
|
|---|
| 3881 | fi
|
|---|
| 3882 | fi
|
|---|
| 3883 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
|
|---|
| 3884 | echo "configure:3885: checking whether NLS is requested" >&5
|
|---|
| 3885 | # Check whether --enable-nls or --disable-nls was given.
|
|---|
| 3886 | if test "${enable_nls+set}" = set; then
|
|---|
| 3887 | enableval="$enable_nls"
|
|---|
| 3888 | USE_NLS=$enableval
|
|---|
| 3889 | else
|
|---|
| 3890 | USE_NLS=yes
|
|---|
| 3891 | fi
|
|---|
| 3892 |
|
|---|
| 3893 | echo "$ac_t""$USE_NLS" 1>&6
|
|---|
| 3894 |
|
|---|
| 3895 |
|
|---|
| 3896 | USE_INCLUDED_LIBINTL=no
|
|---|
| 3897 |
|
|---|
| 3898 | if test "$USE_NLS" = "yes"; then
|
|---|
| 3899 | cat >> confdefs.h <<\EOF
|
|---|
| 3900 | #define ENABLE_NLS 1
|
|---|
| 3901 | EOF
|
|---|
| 3902 |
|
|---|
| 3903 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
|
|---|
| 3904 | echo "configure:3905: checking whether included gettext is requested" >&5
|
|---|
| 3905 | # Check whether --with-included-gettext or --without-included-gettext was given.
|
|---|
| 3906 | if test "${with_included_gettext+set}" = set; then
|
|---|
| 3907 | withval="$with_included_gettext"
|
|---|
| 3908 | nls_cv_force_use_gnu_gettext=$withval
|
|---|
| 3909 | else
|
|---|
| 3910 | nls_cv_force_use_gnu_gettext=no
|
|---|
| 3911 | fi
|
|---|
| 3912 |
|
|---|
| 3913 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
|
|---|
| 3914 |
|
|---|
| 3915 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
|---|
| 3916 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
|---|
| 3917 | nls_cv_header_intl=
|
|---|
| 3918 | nls_cv_header_libgt=
|
|---|
| 3919 | CATOBJEXT=NONE
|
|---|
| 3920 |
|
|---|
| 3921 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
|
|---|
| 3922 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
|
|---|
| 3923 | echo "configure:3924: checking for libintl.h" >&5
|
|---|
| 3924 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 3925 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3926 | else
|
|---|
| 3927 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3928 | #include <sys/types.h>
|
|---|
| 3929 | #line 3930 "configure"
|
|---|
| 3930 | #include "confdefs.h"
|
|---|
| 3931 | #include <libintl.h>
|
|---|
| 3932 | EOF
|
|---|
| 3933 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3934 | { (eval echo configure:3935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3935 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3936 | if test -z "$ac_err"; then
|
|---|
| 3937 | rm -rf conftest*
|
|---|
| 3938 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 3939 | else
|
|---|
| 3940 | echo "$ac_err" >&5
|
|---|
| 3941 | echo "configure: failed program was:" >&5
|
|---|
| 3942 | cat conftest.$ac_ext >&5
|
|---|
| 3943 | rm -rf conftest*
|
|---|
| 3944 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 3945 | fi
|
|---|
| 3946 | rm -f conftest*
|
|---|
| 3947 | fi
|
|---|
| 3948 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 3949 | echo "$ac_t""yes" 1>&6
|
|---|
| 3950 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
|
|---|
| 3951 | echo "configure:3952: checking for gettext in libc" >&5
|
|---|
| 3952 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
|
|---|
| 3953 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3954 | else
|
|---|
| 3955 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3956 | #line 3957 "configure"
|
|---|
| 3957 | #include "confdefs.h"
|
|---|
| 3958 | #include <libintl.h>
|
|---|
| 3959 | int main() {
|
|---|
| 3960 | return (int) gettext ("")
|
|---|
| 3961 | ; return 0; }
|
|---|
| 3962 | EOF
|
|---|
| 3963 | if { (eval echo configure:3964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3964 | rm -rf conftest*
|
|---|
| 3965 | gt_cv_func_gettext_libc=yes
|
|---|
| 3966 | else
|
|---|
| 3967 | echo "configure: failed program was:" >&5
|
|---|
| 3968 | cat conftest.$ac_ext >&5
|
|---|
| 3969 | rm -rf conftest*
|
|---|
| 3970 | gt_cv_func_gettext_libc=no
|
|---|
| 3971 | fi
|
|---|
| 3972 | rm -f conftest*
|
|---|
| 3973 | fi
|
|---|
| 3974 |
|
|---|
| 3975 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
|
|---|
| 3976 |
|
|---|
| 3977 | if test "$gt_cv_func_gettext_libc" != "yes"; then
|
|---|
| 3978 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
|
|---|
| 3979 | echo "configure:3980: checking for bindtextdomain in -lintl" >&5
|
|---|
| 3980 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
|
|---|
| 3981 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 3982 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3983 | else
|
|---|
| 3984 | ac_save_LIBS="$LIBS"
|
|---|
| 3985 | LIBS="-lintl $LIBS"
|
|---|
| 3986 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3987 | #line 3988 "configure"
|
|---|
| 3988 | #include "confdefs.h"
|
|---|
| 3989 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3990 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3991 | builtin and then its argument prototype would still apply. */
|
|---|
| 3992 | char bindtextdomain();
|
|---|
| 3993 |
|
|---|
| 3994 | int main() {
|
|---|
| 3995 | bindtextdomain()
|
|---|
| 3996 | ; return 0; }
|
|---|
| 3997 | EOF
|
|---|
| 3998 | if { (eval echo configure:3999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3999 | rm -rf conftest*
|
|---|
| 4000 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 4001 | else
|
|---|
| 4002 | echo "configure: failed program was:" >&5
|
|---|
| 4003 | cat conftest.$ac_ext >&5
|
|---|
| 4004 | rm -rf conftest*
|
|---|
| 4005 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 4006 | fi
|
|---|
| 4007 | rm -f conftest*
|
|---|
| 4008 | LIBS="$ac_save_LIBS"
|
|---|
| 4009 |
|
|---|
| 4010 | fi
|
|---|
| 4011 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 4012 | echo "$ac_t""yes" 1>&6
|
|---|
| 4013 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
|
|---|
| 4014 | echo "configure:4015: checking for gettext in libintl" >&5
|
|---|
| 4015 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
|
|---|
| 4016 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4017 | else
|
|---|
| 4018 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4019 | #line 4020 "configure"
|
|---|
| 4020 | #include "confdefs.h"
|
|---|
| 4021 |
|
|---|
| 4022 | int main() {
|
|---|
| 4023 | return (int) gettext ("")
|
|---|
| 4024 | ; return 0; }
|
|---|
| 4025 | EOF
|
|---|
| 4026 | if { (eval echo configure:4027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4027 | rm -rf conftest*
|
|---|
| 4028 | gt_cv_func_gettext_libintl=yes
|
|---|
| 4029 | else
|
|---|
| 4030 | echo "configure: failed program was:" >&5
|
|---|
| 4031 | cat conftest.$ac_ext >&5
|
|---|
| 4032 | rm -rf conftest*
|
|---|
| 4033 | gt_cv_func_gettext_libintl=no
|
|---|
| 4034 | fi
|
|---|
| 4035 | rm -f conftest*
|
|---|
| 4036 | fi
|
|---|
| 4037 |
|
|---|
| 4038 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
|
|---|
| 4039 | else
|
|---|
| 4040 | echo "$ac_t""no" 1>&6
|
|---|
| 4041 | fi
|
|---|
| 4042 |
|
|---|
| 4043 | fi
|
|---|
| 4044 |
|
|---|
| 4045 | if test "$gt_cv_func_gettext_libc" = "yes" \
|
|---|
| 4046 | || test "$gt_cv_func_gettext_libintl" = "yes"; then
|
|---|
| 4047 | cat >> confdefs.h <<\EOF
|
|---|
| 4048 | #define HAVE_GETTEXT 1
|
|---|
| 4049 | EOF
|
|---|
| 4050 |
|
|---|
| 4051 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
|---|
| 4052 | set dummy msgfmt; ac_word=$2
|
|---|
| 4053 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 4054 | echo "configure:4055: checking for $ac_word" >&5
|
|---|
| 4055 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
|---|
| 4056 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4057 | else
|
|---|
| 4058 | case "$MSGFMT" in
|
|---|
| 4059 | /*)
|
|---|
| 4060 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
|---|
| 4061 | ;;
|
|---|
| 4062 | *)
|
|---|
| 4063 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
|---|
| 4064 | for ac_dir in $PATH; do
|
|---|
| 4065 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 4066 | if test -f $ac_dir/$ac_word; then
|
|---|
| 4067 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
|---|
| 4068 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
|---|
| 4069 | break
|
|---|
| 4070 | fi
|
|---|
| 4071 | fi
|
|---|
| 4072 | done
|
|---|
| 4073 | IFS="$ac_save_ifs"
|
|---|
| 4074 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
|
|---|
| 4075 | ;;
|
|---|
| 4076 | esac
|
|---|
| 4077 | fi
|
|---|
| 4078 | MSGFMT="$ac_cv_path_MSGFMT"
|
|---|
| 4079 | if test -n "$MSGFMT"; then
|
|---|
| 4080 | echo "$ac_t""$MSGFMT" 1>&6
|
|---|
| 4081 | else
|
|---|
| 4082 | echo "$ac_t""no" 1>&6
|
|---|
| 4083 | fi
|
|---|
| 4084 | if test "$MSGFMT" != "no"; then
|
|---|
| 4085 | for ac_func in dcgettext
|
|---|
| 4086 | do
|
|---|
| 4087 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 4088 | echo "configure:4089: checking for $ac_func" >&5
|
|---|
| 4089 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 4090 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4091 | else
|
|---|
| 4092 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4093 | #line 4094 "configure"
|
|---|
| 4094 | #include "confdefs.h"
|
|---|
| 4095 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 4096 | which can conflict with char $ac_func(); below. */
|
|---|
| 4097 | #include <assert.h>
|
|---|
| 4098 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4099 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4100 | builtin and then its argument prototype would still apply. */
|
|---|
| 4101 | char $ac_func();
|
|---|
| 4102 |
|
|---|
| 4103 | int main() {
|
|---|
| 4104 |
|
|---|
| 4105 | /* The GNU C library defines this for functions which it implements
|
|---|
| 4106 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 4107 | something starting with __ and the normal name is an alias. */
|
|---|
| 4108 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 4109 | choke me
|
|---|
| 4110 | #else
|
|---|
| 4111 | $ac_func();
|
|---|
| 4112 | #endif
|
|---|
| 4113 |
|
|---|
| 4114 | ; return 0; }
|
|---|
| 4115 | EOF
|
|---|
| 4116 | if { (eval echo configure:4117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4117 | rm -rf conftest*
|
|---|
| 4118 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 4119 | else
|
|---|
| 4120 | echo "configure: failed program was:" >&5
|
|---|
| 4121 | cat conftest.$ac_ext >&5
|
|---|
| 4122 | rm -rf conftest*
|
|---|
| 4123 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 4124 | fi
|
|---|
| 4125 | rm -f conftest*
|
|---|
| 4126 | fi
|
|---|
| 4127 |
|
|---|
| 4128 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 4129 | echo "$ac_t""yes" 1>&6
|
|---|
| 4130 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 4131 | cat >> confdefs.h <<EOF
|
|---|
| 4132 | #define $ac_tr_func 1
|
|---|
| 4133 | EOF
|
|---|
| 4134 |
|
|---|
| 4135 | else
|
|---|
| 4136 | echo "$ac_t""no" 1>&6
|
|---|
| 4137 | fi
|
|---|
| 4138 | done
|
|---|
| 4139 |
|
|---|
| 4140 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
|---|
| 4141 | set dummy gmsgfmt; ac_word=$2
|
|---|
| 4142 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 4143 | echo "configure:4144: checking for $ac_word" >&5
|
|---|
| 4144 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
|---|
| 4145 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4146 | else
|
|---|
| 4147 | case "$GMSGFMT" in
|
|---|
| 4148 | /* | [a-zA-Z]:*)
|
|---|
| 4149 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
|---|
| 4150 | ;;
|
|---|
| 4151 | ?:/*)
|
|---|
| 4152 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
|---|
| 4153 | ;;
|
|---|
| 4154 | *)
|
|---|
| 4155 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 4156 | ac_dummy="$PATH"
|
|---|
| 4157 | for ac_dir in $ac_dummy; do
|
|---|
| 4158 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 4159 | if test -f $ac_dir/$ac_word; then
|
|---|
| 4160 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
|---|
| 4161 | break
|
|---|
| 4162 | fi
|
|---|
| 4163 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
|---|
| 4164 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
|---|
| 4165 | break
|
|---|
| 4166 | fi
|
|---|
| 4167 | done
|
|---|
| 4168 | IFS="$ac_save_ifs"
|
|---|
| 4169 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
|---|
| 4170 | ;;
|
|---|
| 4171 | esac
|
|---|
| 4172 | fi
|
|---|
| 4173 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
|---|
| 4174 | if test -n "$GMSGFMT"; then
|
|---|
| 4175 | echo "$ac_t""$GMSGFMT" 1>&6
|
|---|
| 4176 | else
|
|---|
| 4177 | echo "$ac_t""no" 1>&6
|
|---|
| 4178 | fi
|
|---|
| 4179 |
|
|---|
| 4180 | # Extract the first word of "xgettext", so it can be a program name with args.
|
|---|
| 4181 | set dummy xgettext; ac_word=$2
|
|---|
| 4182 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 4183 | echo "configure:4184: checking for $ac_word" >&5
|
|---|
| 4184 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
|---|
| 4185 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4186 | else
|
|---|
| 4187 | case "$XGETTEXT" in
|
|---|
| 4188 | /*)
|
|---|
| 4189 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
|---|
| 4190 | ;;
|
|---|
| 4191 | *)
|
|---|
| 4192 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
|---|
| 4193 | for ac_dir in $PATH; do
|
|---|
| 4194 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 4195 | if test -f $ac_dir/$ac_word; then
|
|---|
| 4196 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
|---|
| 4197 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
|---|
| 4198 | break
|
|---|
| 4199 | fi
|
|---|
| 4200 | fi
|
|---|
| 4201 | done
|
|---|
| 4202 | IFS="$ac_save_ifs"
|
|---|
| 4203 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
|---|
| 4204 | ;;
|
|---|
| 4205 | esac
|
|---|
| 4206 | fi
|
|---|
| 4207 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
|---|
| 4208 | if test -n "$XGETTEXT"; then
|
|---|
| 4209 | echo "$ac_t""$XGETTEXT" 1>&6
|
|---|
| 4210 | else
|
|---|
| 4211 | echo "$ac_t""no" 1>&6
|
|---|
| 4212 | fi
|
|---|
| 4213 |
|
|---|
| 4214 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4215 | #line 4216 "configure"
|
|---|
| 4216 | #include "confdefs.h"
|
|---|
| 4217 |
|
|---|
| 4218 | int main() {
|
|---|
| 4219 | extern int _nl_msg_cat_cntr;
|
|---|
| 4220 | return _nl_msg_cat_cntr
|
|---|
| 4221 | ; return 0; }
|
|---|
| 4222 | EOF
|
|---|
| 4223 | if { (eval echo configure:4224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4224 | rm -rf conftest*
|
|---|
| 4225 | CATOBJEXT=.gmo
|
|---|
| 4226 | DATADIRNAME=share
|
|---|
| 4227 | else
|
|---|
| 4228 | echo "configure: failed program was:" >&5
|
|---|
| 4229 | cat conftest.$ac_ext >&5
|
|---|
| 4230 | rm -rf conftest*
|
|---|
| 4231 | CATOBJEXT=.mo
|
|---|
| 4232 | DATADIRNAME=lib
|
|---|
| 4233 | fi
|
|---|
| 4234 | rm -f conftest*
|
|---|
| 4235 | INSTOBJEXT=.mo
|
|---|
| 4236 | fi
|
|---|
| 4237 | fi
|
|---|
| 4238 |
|
|---|
| 4239 | else
|
|---|
| 4240 | echo "$ac_t""no" 1>&6
|
|---|
| 4241 | fi
|
|---|
| 4242 |
|
|---|
| 4243 |
|
|---|
| 4244 |
|
|---|
| 4245 | if test "$CATOBJEXT" = "NONE"; then
|
|---|
| 4246 | nls_cv_use_gnu_gettext=yes
|
|---|
| 4247 | fi
|
|---|
| 4248 | fi
|
|---|
| 4249 |
|
|---|
| 4250 | if test "$nls_cv_use_gnu_gettext" = "yes"; then
|
|---|
| 4251 | INTLOBJS="\$(GETTOBJS)"
|
|---|
| 4252 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
|---|
| 4253 | set dummy msgfmt; ac_word=$2
|
|---|
| 4254 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 4255 | echo "configure:4256: checking for $ac_word" >&5
|
|---|
| 4256 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
|---|
| 4257 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4258 | else
|
|---|
| 4259 | case "$MSGFMT" in
|
|---|
| 4260 | /*)
|
|---|
| 4261 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
|---|
| 4262 | ;;
|
|---|
| 4263 | *)
|
|---|
| 4264 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
|---|
| 4265 | for ac_dir in $PATH; do
|
|---|
| 4266 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 4267 | if test -f $ac_dir/$ac_word; then
|
|---|
| 4268 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
|---|
| 4269 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
|---|
| 4270 | break
|
|---|
| 4271 | fi
|
|---|
| 4272 | fi
|
|---|
| 4273 | done
|
|---|
| 4274 | IFS="$ac_save_ifs"
|
|---|
| 4275 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
|
|---|
| 4276 | ;;
|
|---|
| 4277 | esac
|
|---|
| 4278 | fi
|
|---|
| 4279 | MSGFMT="$ac_cv_path_MSGFMT"
|
|---|
| 4280 | if test -n "$MSGFMT"; then
|
|---|
| 4281 | echo "$ac_t""$MSGFMT" 1>&6
|
|---|
| 4282 | else
|
|---|
| 4283 | echo "$ac_t""no" 1>&6
|
|---|
| 4284 | fi
|
|---|
| 4285 |
|
|---|
| 4286 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
|---|
| 4287 | set dummy gmsgfmt; ac_word=$2
|
|---|
| 4288 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 4289 | echo "configure:4290: checking for $ac_word" >&5
|
|---|
| 4290 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
|---|
| 4291 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4292 | else
|
|---|
| 4293 | case "$GMSGFMT" in
|
|---|
| 4294 | /* | [a-zA-Z]:*)
|
|---|
| 4295 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
|---|
| 4296 | ;;
|
|---|
| 4297 | ?:/*)
|
|---|
| 4298 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
|---|
| 4299 | ;;
|
|---|
| 4300 | *)
|
|---|
| 4301 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 4302 | ac_dummy="$PATH"
|
|---|
| 4303 | for ac_dir in $ac_dummy; do
|
|---|
| 4304 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 4305 | if test -f $ac_dir/$ac_word; then
|
|---|
| 4306 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
|---|
| 4307 | break
|
|---|
| 4308 | fi
|
|---|
| 4309 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
|---|
| 4310 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
|---|
| 4311 | break
|
|---|
| 4312 | fi
|
|---|
| 4313 | done
|
|---|
| 4314 | IFS="$ac_save_ifs"
|
|---|
| 4315 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
|---|
| 4316 | ;;
|
|---|
| 4317 | esac
|
|---|
| 4318 | fi
|
|---|
| 4319 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
|---|
| 4320 | if test -n "$GMSGFMT"; then
|
|---|
| 4321 | echo "$ac_t""$GMSGFMT" 1>&6
|
|---|
| 4322 | else
|
|---|
| 4323 | echo "$ac_t""no" 1>&6
|
|---|
| 4324 | fi
|
|---|
| 4325 |
|
|---|
| 4326 | # Extract the first word of "xgettext", so it can be a program name with args.
|
|---|
| 4327 | set dummy xgettext; ac_word=$2
|
|---|
| 4328 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 4329 | echo "configure:4330: checking for $ac_word" >&5
|
|---|
| 4330 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
|---|
| 4331 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4332 | else
|
|---|
| 4333 | case "$XGETTEXT" in
|
|---|
| 4334 | /*)
|
|---|
| 4335 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
|---|
| 4336 | ;;
|
|---|
| 4337 | *)
|
|---|
| 4338 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
|---|
| 4339 | for ac_dir in $PATH; do
|
|---|
| 4340 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 4341 | if test -f $ac_dir/$ac_word; then
|
|---|
| 4342 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
|---|
| 4343 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
|---|
| 4344 | break
|
|---|
| 4345 | fi
|
|---|
| 4346 | fi
|
|---|
| 4347 | done
|
|---|
| 4348 | IFS="$ac_save_ifs"
|
|---|
| 4349 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
|---|
| 4350 | ;;
|
|---|
| 4351 | esac
|
|---|
| 4352 | fi
|
|---|
| 4353 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
|---|
| 4354 | if test -n "$XGETTEXT"; then
|
|---|
| 4355 | echo "$ac_t""$XGETTEXT" 1>&6
|
|---|
| 4356 | else
|
|---|
| 4357 | echo "$ac_t""no" 1>&6
|
|---|
| 4358 | fi
|
|---|
| 4359 |
|
|---|
| 4360 |
|
|---|
| 4361 | USE_INCLUDED_LIBINTL=yes
|
|---|
| 4362 | CATOBJEXT=.gmo
|
|---|
| 4363 | INSTOBJEXT=.mo
|
|---|
| 4364 | DATADIRNAME=share
|
|---|
| 4365 | INTLDEPS='$(top_builddir)/../intl/libintl.a'
|
|---|
| 4366 | INTLLIBS=$INTLDEPS
|
|---|
| 4367 | LIBS=`echo $LIBS | sed -e 's/-lintl//'`
|
|---|
| 4368 | nls_cv_header_intl=libintl.h
|
|---|
| 4369 | nls_cv_header_libgt=libgettext.h
|
|---|
| 4370 | fi
|
|---|
| 4371 |
|
|---|
| 4372 | if test "$XGETTEXT" != ":"; then
|
|---|
| 4373 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
|---|
| 4374 | : ;
|
|---|
| 4375 | else
|
|---|
| 4376 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
|
|---|
| 4377 | XGETTEXT=":"
|
|---|
| 4378 | fi
|
|---|
| 4379 | fi
|
|---|
| 4380 |
|
|---|
| 4381 | # We need to process the po/ directory.
|
|---|
| 4382 | POSUB=po
|
|---|
| 4383 | else
|
|---|
| 4384 | DATADIRNAME=share
|
|---|
| 4385 | nls_cv_header_intl=libintl.h
|
|---|
| 4386 | nls_cv_header_libgt=libgettext.h
|
|---|
| 4387 | fi
|
|---|
| 4388 |
|
|---|
| 4389 | # If this is used in GNU gettext we have to set USE_NLS to `yes'
|
|---|
| 4390 | # because some of the sources are only built for this goal.
|
|---|
| 4391 | if test "$PACKAGE" = gettext; then
|
|---|
| 4392 | USE_NLS=yes
|
|---|
| 4393 | USE_INCLUDED_LIBINTL=yes
|
|---|
| 4394 | fi
|
|---|
| 4395 |
|
|---|
| 4396 | for lang in $ALL_LINGUAS; do
|
|---|
| 4397 | GMOFILES="$GMOFILES $lang.gmo"
|
|---|
| 4398 | POFILES="$POFILES $lang.po"
|
|---|
| 4399 | done
|
|---|
| 4400 |
|
|---|
| 4401 |
|
|---|
| 4402 |
|
|---|
| 4403 |
|
|---|
| 4404 |
|
|---|
| 4405 |
|
|---|
| 4406 |
|
|---|
| 4407 |
|
|---|
| 4408 |
|
|---|
| 4409 |
|
|---|
| 4410 |
|
|---|
| 4411 |
|
|---|
| 4412 |
|
|---|
| 4413 |
|
|---|
| 4414 | if test "x$CATOBJEXT" != "x"; then
|
|---|
| 4415 | if test "x$ALL_LINGUAS" = "x"; then
|
|---|
| 4416 | LINGUAS=
|
|---|
| 4417 | else
|
|---|
| 4418 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
|
|---|
| 4419 | echo "configure:4420: checking for catalogs to be installed" >&5
|
|---|
| 4420 | NEW_LINGUAS=
|
|---|
| 4421 | for lang in ${LINGUAS=$ALL_LINGUAS}; do
|
|---|
| 4422 | case "$ALL_LINGUAS" in
|
|---|
| 4423 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
|
|---|
| 4424 | esac
|
|---|
| 4425 | done
|
|---|
| 4426 | LINGUAS=$NEW_LINGUAS
|
|---|
| 4427 | echo "$ac_t""$LINGUAS" 1>&6
|
|---|
| 4428 | fi
|
|---|
| 4429 |
|
|---|
| 4430 | if test -n "$LINGUAS"; then
|
|---|
| 4431 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
|
|---|
| 4432 | fi
|
|---|
| 4433 | fi
|
|---|
| 4434 |
|
|---|
| 4435 | if test $ac_cv_header_locale_h = yes; then
|
|---|
| 4436 | INCLUDE_LOCALE_H="#include <locale.h>"
|
|---|
| 4437 | else
|
|---|
| 4438 | INCLUDE_LOCALE_H="\
|
|---|
| 4439 | /* The system does not provide the header <locale.h>. Take care yourself. */"
|
|---|
| 4440 | fi
|
|---|
| 4441 |
|
|---|
| 4442 |
|
|---|
| 4443 | if test -f $srcdir/po2tbl.sed.in; then
|
|---|
| 4444 | if test "$CATOBJEXT" = ".cat"; then
|
|---|
| 4445 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
|
|---|
| 4446 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
|
|---|
| 4447 | echo "configure:4448: checking for linux/version.h" >&5
|
|---|
| 4448 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 4449 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4450 | else
|
|---|
| 4451 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4452 | #include <sys/types.h>
|
|---|
| 4453 | #line 4454 "configure"
|
|---|
| 4454 | #include "confdefs.h"
|
|---|
| 4455 | #include <linux/version.h>
|
|---|
| 4456 | EOF
|
|---|
| 4457 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 4458 | { (eval echo configure:4459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 4459 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 4460 | if test -z "$ac_err"; then
|
|---|
| 4461 | rm -rf conftest*
|
|---|
| 4462 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 4463 | else
|
|---|
| 4464 | echo "$ac_err" >&5
|
|---|
| 4465 | echo "configure: failed program was:" >&5
|
|---|
| 4466 | cat conftest.$ac_ext >&5
|
|---|
| 4467 | rm -rf conftest*
|
|---|
| 4468 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 4469 | fi
|
|---|
| 4470 | rm -f conftest*
|
|---|
| 4471 | fi
|
|---|
| 4472 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 4473 | echo "$ac_t""yes" 1>&6
|
|---|
| 4474 | msgformat=linux
|
|---|
| 4475 | else
|
|---|
| 4476 | echo "$ac_t""no" 1>&6
|
|---|
| 4477 | msgformat=xopen
|
|---|
| 4478 | fi
|
|---|
| 4479 |
|
|---|
| 4480 |
|
|---|
| 4481 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
|
|---|
| 4482 | fi
|
|---|
| 4483 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
|
|---|
| 4484 | $srcdir/po2tbl.sed.in > po2tbl.sed
|
|---|
| 4485 | fi
|
|---|
| 4486 |
|
|---|
| 4487 | if test "$PACKAGE" = "gettext"; then
|
|---|
| 4488 | GT_NO="#NO#"
|
|---|
| 4489 | GT_YES=
|
|---|
| 4490 | else
|
|---|
| 4491 | GT_NO=
|
|---|
| 4492 | GT_YES="#YES#"
|
|---|
| 4493 | fi
|
|---|
| 4494 |
|
|---|
| 4495 |
|
|---|
| 4496 |
|
|---|
| 4497 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
|
|---|
| 4498 |
|
|---|
| 4499 |
|
|---|
| 4500 | l=
|
|---|
| 4501 |
|
|---|
| 4502 |
|
|---|
| 4503 | if test -f $srcdir/po/POTFILES.in; then
|
|---|
| 4504 | test -d po || mkdir po
|
|---|
| 4505 | if test "x$srcdir" != "x."; then
|
|---|
| 4506 | if test "x`echo $srcdir | sed -e 's@.\:/.*@@' -e 's@/.*@@' `" = "x"; then
|
|---|
| 4507 | posrcprefix="$srcdir/"
|
|---|
| 4508 | else
|
|---|
| 4509 | posrcprefix="../$srcdir/"
|
|---|
| 4510 | fi
|
|---|
| 4511 | else
|
|---|
| 4512 | posrcprefix="../"
|
|---|
| 4513 | fi
|
|---|
| 4514 | rm -f po/POTFILES
|
|---|
| 4515 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
|
|---|
| 4516 | < $srcdir/po/POTFILES.in > po/POTFILES
|
|---|
| 4517 | fi
|
|---|
| 4518 |
|
|---|
| 4519 |
|
|---|
| 4520 | # Permit host specific settings.
|
|---|
| 4521 | . ${srcdir}/configure.host
|
|---|
| 4522 |
|
|---|
| 4523 |
|
|---|
| 4524 | # Find a good install program. We prefer a C program (faster),
|
|---|
| 4525 | # so one script is as good as another. But avoid the broken or
|
|---|
| 4526 | # incompatible versions:
|
|---|
| 4527 | # SysV /etc/install, /usr/sbin/install
|
|---|
| 4528 | # SunOS /usr/etc/install
|
|---|
| 4529 | # IRIX /sbin/install
|
|---|
| 4530 | # AIX /bin/install
|
|---|
| 4531 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|---|
| 4532 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|---|
| 4533 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|---|
| 4534 | # ./install, which can be erroneously created by make from ./install.sh.
|
|---|
| 4535 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|---|
| 4536 | echo "configure:4537: checking for a BSD compatible install" >&5
|
|---|
| 4537 | if test -z "$INSTALL"; then
|
|---|
| 4538 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|---|
| 4539 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4540 | else
|
|---|
| 4541 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
|---|
| 4542 | for ac_dir in $PATH; do
|
|---|
| 4543 | # Account for people who put trailing slashes in PATH elements.
|
|---|
| 4544 | case "$ac_dir/" in
|
|---|
| 4545 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|---|
| 4546 | # We reject the install program from OS/2 or W3.1
|
|---|
| 4547 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
|---|
| 4548 | *)
|
|---|
| 4549 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
|---|
| 4550 | # Don't use installbsd from OSF since it installs stuff as root
|
|---|
| 4551 | # by default.
|
|---|
| 4552 | for ac_prog in ginstall scoinst install; do
|
|---|
| 4553 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
|---|
| 4554 | if test $ac_prog = install &&
|
|---|
| 4555 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|---|
| 4556 | # AIX install. It has an incompatible calling convention.
|
|---|
| 4557 | :
|
|---|
| 4558 | else
|
|---|
| 4559 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
|---|
| 4560 | break 2
|
|---|
| 4561 | fi
|
|---|
| 4562 | fi
|
|---|
| 4563 | done
|
|---|
| 4564 | ;;
|
|---|
| 4565 | esac
|
|---|
| 4566 | done
|
|---|
| 4567 | IFS="$ac_save_IFS"
|
|---|
| 4568 |
|
|---|
| 4569 | fi
|
|---|
| 4570 | if test "${ac_cv_path_install+set}" = set; then
|
|---|
| 4571 | INSTALL="$ac_cv_path_install"
|
|---|
| 4572 | else
|
|---|
| 4573 | # As a last resort, use the slow shell script. We don't cache a
|
|---|
| 4574 | # path for INSTALL within a source directory, because that will
|
|---|
| 4575 | # break other packages using the cache if that directory is
|
|---|
| 4576 | # removed, or if the path is relative.
|
|---|
| 4577 | INSTALL="$ac_install_sh"
|
|---|
| 4578 | fi
|
|---|
| 4579 | fi
|
|---|
| 4580 | echo "$ac_t""$INSTALL" 1>&6
|
|---|
| 4581 |
|
|---|
| 4582 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|---|
| 4583 | # It thinks the first close brace ends the variable substitution.
|
|---|
| 4584 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|---|
| 4585 |
|
|---|
| 4586 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|---|
| 4587 |
|
|---|
| 4588 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|---|
| 4589 |
|
|---|
| 4590 |
|
|---|
| 4591 | BFD_HOST_64BIT_LONG=0
|
|---|
| 4592 | BFD_HOST_64_BIT_DEFINED=0
|
|---|
| 4593 | BFD_HOST_64_BIT=
|
|---|
| 4594 | BFD_HOST_U_64_BIT=
|
|---|
| 4595 | if test "x${HOST_64BIT_TYPE}" = "xlong"; then
|
|---|
| 4596 | BFD_HOST_64BIT_LONG=1
|
|---|
| 4597 | elif test "x${HOST_64BIT_TYPE}" != "x"; then
|
|---|
| 4598 | BFD_HOST_64_BIT_DEFINED=1
|
|---|
| 4599 | BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
|
|---|
| 4600 | BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
|
|---|
| 4601 | fi
|
|---|
| 4602 |
|
|---|
| 4603 |
|
|---|
| 4604 |
|
|---|
| 4605 |
|
|---|
| 4606 |
|
|---|
| 4607 | # Put a plausible default for CC_FOR_BUILD in Makefile.
|
|---|
| 4608 | if test -z "$CC_FOR_BUILD"; then
|
|---|
| 4609 | if test "x$cross_compiling" = "xno"; then
|
|---|
| 4610 | CC_FOR_BUILD='$(CC)'
|
|---|
| 4611 | else
|
|---|
| 4612 | CC_FOR_BUILD=gcc
|
|---|
| 4613 | fi
|
|---|
| 4614 | fi
|
|---|
| 4615 |
|
|---|
| 4616 | # Also set EXEEXT_FOR_BUILD.
|
|---|
| 4617 | if test "x$cross_compiling" = "xno"; then
|
|---|
| 4618 | EXEEXT_FOR_BUILD='$(EXEEXT)'
|
|---|
| 4619 | else
|
|---|
| 4620 | echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
|
|---|
| 4621 | echo "configure:4622: checking for build system executable suffix" >&5
|
|---|
| 4622 | if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
|
|---|
| 4623 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4624 | else
|
|---|
| 4625 | rm -f conftest*
|
|---|
| 4626 | echo 'int main () { return 0; }' > conftest.c
|
|---|
| 4627 | bfd_cv_build_exeext=
|
|---|
| 4628 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
|
|---|
| 4629 | for file in conftest.*; do
|
|---|
| 4630 | case $file in
|
|---|
| 4631 | *.c | *.o | *.obj | *.ilk | *.pdb) ;;
|
|---|
| 4632 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 4633 | esac
|
|---|
| 4634 | done
|
|---|
| 4635 | rm -f conftest*
|
|---|
| 4636 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
|
|---|
| 4637 | fi
|
|---|
| 4638 |
|
|---|
| 4639 | echo "$ac_t""$bfd_cv_build_exeext" 1>&6
|
|---|
| 4640 | EXEEXT_FOR_BUILD=""
|
|---|
| 4641 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
|
|---|
| 4642 | fi
|
|---|
| 4643 |
|
|---|
| 4644 |
|
|---|
| 4645 | for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h
|
|---|
| 4646 | do
|
|---|
| 4647 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 4648 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 4649 | echo "configure:4650: checking for $ac_hdr" >&5
|
|---|
| 4650 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 4651 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4652 | else
|
|---|
| 4653 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4654 | #include <sys/types.h>
|
|---|
| 4655 | #line 4656 "configure"
|
|---|
| 4656 | #include "confdefs.h"
|
|---|
| 4657 | #include <$ac_hdr>
|
|---|
| 4658 | EOF
|
|---|
| 4659 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 4660 | { (eval echo configure:4661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 4661 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 4662 | if test -z "$ac_err"; then
|
|---|
| 4663 | rm -rf conftest*
|
|---|
| 4664 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 4665 | else
|
|---|
| 4666 | echo "$ac_err" >&5
|
|---|
| 4667 | echo "configure: failed program was:" >&5
|
|---|
| 4668 | cat conftest.$ac_ext >&5
|
|---|
| 4669 | rm -rf conftest*
|
|---|
| 4670 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 4671 | fi
|
|---|
| 4672 | rm -f conftest*
|
|---|
| 4673 | fi
|
|---|
| 4674 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 4675 | echo "$ac_t""yes" 1>&6
|
|---|
| 4676 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 4677 | cat >> confdefs.h <<EOF
|
|---|
| 4678 | #define $ac_tr_hdr 1
|
|---|
| 4679 | EOF
|
|---|
| 4680 |
|
|---|
| 4681 | else
|
|---|
| 4682 | echo "$ac_t""no" 1>&6
|
|---|
| 4683 | fi
|
|---|
| 4684 | done
|
|---|
| 4685 |
|
|---|
| 4686 | for ac_hdr in fcntl.h sys/file.h sys/time.h
|
|---|
| 4687 | do
|
|---|
| 4688 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 4689 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 4690 | echo "configure:4691: checking for $ac_hdr" >&5
|
|---|
| 4691 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 4692 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4693 | else
|
|---|
| 4694 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4695 | #include <sys/types.h>
|
|---|
| 4696 | #line 4697 "configure"
|
|---|
| 4697 | #include "confdefs.h"
|
|---|
| 4698 | #include <$ac_hdr>
|
|---|
| 4699 | EOF
|
|---|
| 4700 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 4701 | { (eval echo configure:4702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 4702 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 4703 | if test -z "$ac_err"; then
|
|---|
| 4704 | rm -rf conftest*
|
|---|
| 4705 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 4706 | else
|
|---|
| 4707 | echo "$ac_err" >&5
|
|---|
| 4708 | echo "configure: failed program was:" >&5
|
|---|
| 4709 | cat conftest.$ac_ext >&5
|
|---|
| 4710 | rm -rf conftest*
|
|---|
| 4711 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 4712 | fi
|
|---|
| 4713 | rm -f conftest*
|
|---|
| 4714 | fi
|
|---|
| 4715 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 4716 | echo "$ac_t""yes" 1>&6
|
|---|
| 4717 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 4718 | cat >> confdefs.h <<EOF
|
|---|
| 4719 | #define $ac_tr_hdr 1
|
|---|
| 4720 | EOF
|
|---|
| 4721 |
|
|---|
| 4722 | else
|
|---|
| 4723 | echo "$ac_t""no" 1>&6
|
|---|
| 4724 | fi
|
|---|
| 4725 | done
|
|---|
| 4726 |
|
|---|
| 4727 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
|---|
| 4728 | echo "configure:4729: checking whether time.h and sys/time.h may both be included" >&5
|
|---|
| 4729 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
|
|---|
| 4730 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4731 | else
|
|---|
| 4732 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4733 | #line 4734 "configure"
|
|---|
| 4734 | #include "confdefs.h"
|
|---|
| 4735 | #include <sys/types.h>
|
|---|
| 4736 | #include <sys/time.h>
|
|---|
| 4737 | #include <time.h>
|
|---|
| 4738 | int main() {
|
|---|
| 4739 | struct tm *tp;
|
|---|
| 4740 | ; return 0; }
|
|---|
| 4741 | EOF
|
|---|
| 4742 | if { (eval echo configure:4743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 4743 | rm -rf conftest*
|
|---|
| 4744 | ac_cv_header_time=yes
|
|---|
| 4745 | else
|
|---|
| 4746 | echo "configure: failed program was:" >&5
|
|---|
| 4747 | cat conftest.$ac_ext >&5
|
|---|
| 4748 | rm -rf conftest*
|
|---|
| 4749 | ac_cv_header_time=no
|
|---|
| 4750 | fi
|
|---|
| 4751 | rm -f conftest*
|
|---|
| 4752 | fi
|
|---|
| 4753 |
|
|---|
| 4754 | echo "$ac_t""$ac_cv_header_time" 1>&6
|
|---|
| 4755 | if test $ac_cv_header_time = yes; then
|
|---|
| 4756 | cat >> confdefs.h <<\EOF
|
|---|
| 4757 | #define TIME_WITH_SYS_TIME 1
|
|---|
| 4758 | EOF
|
|---|
| 4759 |
|
|---|
| 4760 | fi
|
|---|
| 4761 |
|
|---|
| 4762 | ac_header_dirent=no
|
|---|
| 4763 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
|
|---|
| 4764 | do
|
|---|
| 4765 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 4766 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
|
|---|
| 4767 | echo "configure:4768: checking for $ac_hdr that defines DIR" >&5
|
|---|
| 4768 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
|
|---|
| 4769 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4770 | else
|
|---|
| 4771 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4772 | #line 4773 "configure"
|
|---|
| 4773 | #include "confdefs.h"
|
|---|
| 4774 | #include <sys/types.h>
|
|---|
| 4775 | #include <$ac_hdr>
|
|---|
| 4776 | int main() {
|
|---|
| 4777 | DIR *dirp = 0;
|
|---|
| 4778 | ; return 0; }
|
|---|
| 4779 | EOF
|
|---|
| 4780 | if { (eval echo configure:4781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 4781 | rm -rf conftest*
|
|---|
| 4782 | eval "ac_cv_header_dirent_$ac_safe=yes"
|
|---|
| 4783 | else
|
|---|
| 4784 | echo "configure: failed program was:" >&5
|
|---|
| 4785 | cat conftest.$ac_ext >&5
|
|---|
| 4786 | rm -rf conftest*
|
|---|
| 4787 | eval "ac_cv_header_dirent_$ac_safe=no"
|
|---|
| 4788 | fi
|
|---|
| 4789 | rm -f conftest*
|
|---|
| 4790 | fi
|
|---|
| 4791 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
|
|---|
| 4792 | echo "$ac_t""yes" 1>&6
|
|---|
| 4793 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 4794 | cat >> confdefs.h <<EOF
|
|---|
| 4795 | #define $ac_tr_hdr 1
|
|---|
| 4796 | EOF
|
|---|
| 4797 | ac_header_dirent=$ac_hdr; break
|
|---|
| 4798 | else
|
|---|
| 4799 | echo "$ac_t""no" 1>&6
|
|---|
| 4800 | fi
|
|---|
| 4801 | done
|
|---|
| 4802 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
|---|
| 4803 | if test $ac_header_dirent = dirent.h; then
|
|---|
| 4804 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
|
|---|
| 4805 | echo "configure:4806: checking for opendir in -ldir" >&5
|
|---|
| 4806 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
|
|---|
| 4807 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 4808 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4809 | else
|
|---|
| 4810 | ac_save_LIBS="$LIBS"
|
|---|
| 4811 | LIBS="-ldir $LIBS"
|
|---|
| 4812 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4813 | #line 4814 "configure"
|
|---|
| 4814 | #include "confdefs.h"
|
|---|
| 4815 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4816 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4817 | builtin and then its argument prototype would still apply. */
|
|---|
| 4818 | char opendir();
|
|---|
| 4819 |
|
|---|
| 4820 | int main() {
|
|---|
| 4821 | opendir()
|
|---|
| 4822 | ; return 0; }
|
|---|
| 4823 | EOF
|
|---|
| 4824 | if { (eval echo configure:4825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4825 | rm -rf conftest*
|
|---|
| 4826 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 4827 | else
|
|---|
| 4828 | echo "configure: failed program was:" >&5
|
|---|
| 4829 | cat conftest.$ac_ext >&5
|
|---|
| 4830 | rm -rf conftest*
|
|---|
| 4831 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 4832 | fi
|
|---|
| 4833 | rm -f conftest*
|
|---|
| 4834 | LIBS="$ac_save_LIBS"
|
|---|
| 4835 |
|
|---|
| 4836 | fi
|
|---|
| 4837 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 4838 | echo "$ac_t""yes" 1>&6
|
|---|
| 4839 | LIBS="$LIBS -ldir"
|
|---|
| 4840 | else
|
|---|
| 4841 | echo "$ac_t""no" 1>&6
|
|---|
| 4842 | fi
|
|---|
| 4843 |
|
|---|
| 4844 | else
|
|---|
| 4845 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
|
|---|
| 4846 | echo "configure:4847: checking for opendir in -lx" >&5
|
|---|
| 4847 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
|
|---|
| 4848 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 4849 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4850 | else
|
|---|
| 4851 | ac_save_LIBS="$LIBS"
|
|---|
| 4852 | LIBS="-lx $LIBS"
|
|---|
| 4853 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4854 | #line 4855 "configure"
|
|---|
| 4855 | #include "confdefs.h"
|
|---|
| 4856 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4857 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4858 | builtin and then its argument prototype would still apply. */
|
|---|
| 4859 | char opendir();
|
|---|
| 4860 |
|
|---|
| 4861 | int main() {
|
|---|
| 4862 | opendir()
|
|---|
| 4863 | ; return 0; }
|
|---|
| 4864 | EOF
|
|---|
| 4865 | if { (eval echo configure:4866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4866 | rm -rf conftest*
|
|---|
| 4867 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 4868 | else
|
|---|
| 4869 | echo "configure: failed program was:" >&5
|
|---|
| 4870 | cat conftest.$ac_ext >&5
|
|---|
| 4871 | rm -rf conftest*
|
|---|
| 4872 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 4873 | fi
|
|---|
| 4874 | rm -f conftest*
|
|---|
| 4875 | LIBS="$ac_save_LIBS"
|
|---|
| 4876 |
|
|---|
| 4877 | fi
|
|---|
| 4878 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 4879 | echo "$ac_t""yes" 1>&6
|
|---|
| 4880 | LIBS="$LIBS -lx"
|
|---|
| 4881 | else
|
|---|
| 4882 | echo "$ac_t""no" 1>&6
|
|---|
| 4883 | fi
|
|---|
| 4884 |
|
|---|
| 4885 | fi
|
|---|
| 4886 |
|
|---|
| 4887 | for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
|
|---|
| 4888 | do
|
|---|
| 4889 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 4890 | echo "configure:4891: checking for $ac_func" >&5
|
|---|
| 4891 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 4892 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4893 | else
|
|---|
| 4894 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4895 | #line 4896 "configure"
|
|---|
| 4896 | #include "confdefs.h"
|
|---|
| 4897 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 4898 | which can conflict with char $ac_func(); below. */
|
|---|
| 4899 | #include <assert.h>
|
|---|
| 4900 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4901 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4902 | builtin and then its argument prototype would still apply. */
|
|---|
| 4903 | char $ac_func();
|
|---|
| 4904 |
|
|---|
| 4905 | int main() {
|
|---|
| 4906 |
|
|---|
| 4907 | /* The GNU C library defines this for functions which it implements
|
|---|
| 4908 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 4909 | something starting with __ and the normal name is an alias. */
|
|---|
| 4910 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 4911 | choke me
|
|---|
| 4912 | #else
|
|---|
| 4913 | $ac_func();
|
|---|
| 4914 | #endif
|
|---|
| 4915 |
|
|---|
| 4916 | ; return 0; }
|
|---|
| 4917 | EOF
|
|---|
| 4918 | if { (eval echo configure:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4919 | rm -rf conftest*
|
|---|
| 4920 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 4921 | else
|
|---|
| 4922 | echo "configure: failed program was:" >&5
|
|---|
| 4923 | cat conftest.$ac_ext >&5
|
|---|
| 4924 | rm -rf conftest*
|
|---|
| 4925 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 4926 | fi
|
|---|
| 4927 | rm -f conftest*
|
|---|
| 4928 | fi
|
|---|
| 4929 |
|
|---|
| 4930 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 4931 | echo "$ac_t""yes" 1>&6
|
|---|
| 4932 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 4933 | cat >> confdefs.h <<EOF
|
|---|
| 4934 | #define $ac_tr_func 1
|
|---|
| 4935 | EOF
|
|---|
| 4936 |
|
|---|
| 4937 | else
|
|---|
| 4938 | echo "$ac_t""no" 1>&6
|
|---|
| 4939 | fi
|
|---|
| 4940 | done
|
|---|
| 4941 |
|
|---|
| 4942 |
|
|---|
| 4943 |
|
|---|
| 4944 | case "${host}" in
|
|---|
| 4945 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows* | *-*-os2*)
|
|---|
| 4946 | cat >> confdefs.h <<\EOF
|
|---|
| 4947 | #define USE_BINARY_FOPEN 1
|
|---|
| 4948 | EOF
|
|---|
| 4949 | ;;
|
|---|
| 4950 | esac
|
|---|
| 4951 |
|
|---|
| 4952 | echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
|
|---|
| 4953 | echo "configure:4954: checking whether strstr must be declared" >&5
|
|---|
| 4954 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
|
|---|
| 4955 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4956 | else
|
|---|
| 4957 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4958 | #line 4959 "configure"
|
|---|
| 4959 | #include "confdefs.h"
|
|---|
| 4960 |
|
|---|
| 4961 | #include <stdio.h>
|
|---|
| 4962 | #ifdef HAVE_STRING_H
|
|---|
| 4963 | #include <string.h>
|
|---|
| 4964 | #else
|
|---|
| 4965 | #ifdef HAVE_STRINGS_H
|
|---|
| 4966 | #include <strings.h>
|
|---|
| 4967 | #endif
|
|---|
| 4968 | #endif
|
|---|
| 4969 | #ifdef HAVE_STDLIB_H
|
|---|
| 4970 | #include <stdlib.h>
|
|---|
| 4971 | #endif
|
|---|
| 4972 | #ifdef HAVE_UNISTD_H
|
|---|
| 4973 | #include <unistd.h>
|
|---|
| 4974 | #endif
|
|---|
| 4975 | int main() {
|
|---|
| 4976 | char *(*pfn) = (char *(*)) strstr
|
|---|
| 4977 | ; return 0; }
|
|---|
| 4978 | EOF
|
|---|
| 4979 | if { (eval echo configure:4980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 4980 | rm -rf conftest*
|
|---|
| 4981 | bfd_cv_decl_needed_strstr=no
|
|---|
| 4982 | else
|
|---|
| 4983 | echo "configure: failed program was:" >&5
|
|---|
| 4984 | cat conftest.$ac_ext >&5
|
|---|
| 4985 | rm -rf conftest*
|
|---|
| 4986 | bfd_cv_decl_needed_strstr=yes
|
|---|
| 4987 | fi
|
|---|
| 4988 | rm -f conftest*
|
|---|
| 4989 | fi
|
|---|
| 4990 |
|
|---|
| 4991 | echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
|
|---|
| 4992 | if test $bfd_cv_decl_needed_strstr = yes; then
|
|---|
| 4993 | cat >> confdefs.h <<\EOF
|
|---|
| 4994 | #define NEED_DECLARATION_STRSTR 1
|
|---|
| 4995 | EOF
|
|---|
| 4996 |
|
|---|
| 4997 | fi
|
|---|
| 4998 |
|
|---|
| 4999 | echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
|
|---|
| 5000 | echo "configure:5001: checking whether malloc must be declared" >&5
|
|---|
| 5001 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
|
|---|
| 5002 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5003 | else
|
|---|
| 5004 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5005 | #line 5006 "configure"
|
|---|
| 5006 | #include "confdefs.h"
|
|---|
| 5007 |
|
|---|
| 5008 | #include <stdio.h>
|
|---|
| 5009 | #ifdef HAVE_STRING_H
|
|---|
| 5010 | #include <string.h>
|
|---|
| 5011 | #else
|
|---|
| 5012 | #ifdef HAVE_STRINGS_H
|
|---|
| 5013 | #include <strings.h>
|
|---|
| 5014 | #endif
|
|---|
| 5015 | #endif
|
|---|
| 5016 | #ifdef HAVE_STDLIB_H
|
|---|
| 5017 | #include <stdlib.h>
|
|---|
| 5018 | #endif
|
|---|
| 5019 | #ifdef HAVE_UNISTD_H
|
|---|
| 5020 | #include <unistd.h>
|
|---|
| 5021 | #endif
|
|---|
| 5022 | int main() {
|
|---|
| 5023 | char *(*pfn) = (char *(*)) malloc
|
|---|
| 5024 | ; return 0; }
|
|---|
| 5025 | EOF
|
|---|
| 5026 | if { (eval echo configure:5027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5027 | rm -rf conftest*
|
|---|
| 5028 | bfd_cv_decl_needed_malloc=no
|
|---|
| 5029 | else
|
|---|
| 5030 | echo "configure: failed program was:" >&5
|
|---|
| 5031 | cat conftest.$ac_ext >&5
|
|---|
| 5032 | rm -rf conftest*
|
|---|
| 5033 | bfd_cv_decl_needed_malloc=yes
|
|---|
| 5034 | fi
|
|---|
| 5035 | rm -f conftest*
|
|---|
| 5036 | fi
|
|---|
| 5037 |
|
|---|
| 5038 | echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
|
|---|
| 5039 | if test $bfd_cv_decl_needed_malloc = yes; then
|
|---|
| 5040 | cat >> confdefs.h <<\EOF
|
|---|
| 5041 | #define NEED_DECLARATION_MALLOC 1
|
|---|
| 5042 | EOF
|
|---|
| 5043 |
|
|---|
| 5044 | fi
|
|---|
| 5045 |
|
|---|
| 5046 | echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
|
|---|
| 5047 | echo "configure:5048: checking whether realloc must be declared" >&5
|
|---|
| 5048 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
|
|---|
| 5049 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5050 | else
|
|---|
| 5051 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5052 | #line 5053 "configure"
|
|---|
| 5053 | #include "confdefs.h"
|
|---|
| 5054 |
|
|---|
| 5055 | #include <stdio.h>
|
|---|
| 5056 | #ifdef HAVE_STRING_H
|
|---|
| 5057 | #include <string.h>
|
|---|
| 5058 | #else
|
|---|
| 5059 | #ifdef HAVE_STRINGS_H
|
|---|
| 5060 | #include <strings.h>
|
|---|
| 5061 | #endif
|
|---|
| 5062 | #endif
|
|---|
| 5063 | #ifdef HAVE_STDLIB_H
|
|---|
| 5064 | #include <stdlib.h>
|
|---|
| 5065 | #endif
|
|---|
| 5066 | #ifdef HAVE_UNISTD_H
|
|---|
| 5067 | #include <unistd.h>
|
|---|
| 5068 | #endif
|
|---|
| 5069 | int main() {
|
|---|
| 5070 | char *(*pfn) = (char *(*)) realloc
|
|---|
| 5071 | ; return 0; }
|
|---|
| 5072 | EOF
|
|---|
| 5073 | if { (eval echo configure:5074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5074 | rm -rf conftest*
|
|---|
| 5075 | bfd_cv_decl_needed_realloc=no
|
|---|
| 5076 | else
|
|---|
| 5077 | echo "configure: failed program was:" >&5
|
|---|
| 5078 | cat conftest.$ac_ext >&5
|
|---|
| 5079 | rm -rf conftest*
|
|---|
| 5080 | bfd_cv_decl_needed_realloc=yes
|
|---|
| 5081 | fi
|
|---|
| 5082 | rm -f conftest*
|
|---|
| 5083 | fi
|
|---|
| 5084 |
|
|---|
| 5085 | echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
|
|---|
| 5086 | if test $bfd_cv_decl_needed_realloc = yes; then
|
|---|
| 5087 | cat >> confdefs.h <<\EOF
|
|---|
| 5088 | #define NEED_DECLARATION_REALLOC 1
|
|---|
| 5089 | EOF
|
|---|
| 5090 |
|
|---|
| 5091 | fi
|
|---|
| 5092 |
|
|---|
| 5093 | echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
|
|---|
| 5094 | echo "configure:5095: checking whether free must be declared" >&5
|
|---|
| 5095 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
|
|---|
| 5096 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5097 | else
|
|---|
| 5098 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5099 | #line 5100 "configure"
|
|---|
| 5100 | #include "confdefs.h"
|
|---|
| 5101 |
|
|---|
| 5102 | #include <stdio.h>
|
|---|
| 5103 | #ifdef HAVE_STRING_H
|
|---|
| 5104 | #include <string.h>
|
|---|
| 5105 | #else
|
|---|
| 5106 | #ifdef HAVE_STRINGS_H
|
|---|
| 5107 | #include <strings.h>
|
|---|
| 5108 | #endif
|
|---|
| 5109 | #endif
|
|---|
| 5110 | #ifdef HAVE_STDLIB_H
|
|---|
| 5111 | #include <stdlib.h>
|
|---|
| 5112 | #endif
|
|---|
| 5113 | #ifdef HAVE_UNISTD_H
|
|---|
| 5114 | #include <unistd.h>
|
|---|
| 5115 | #endif
|
|---|
| 5116 | int main() {
|
|---|
| 5117 | char *(*pfn) = (char *(*)) free
|
|---|
| 5118 | ; return 0; }
|
|---|
| 5119 | EOF
|
|---|
| 5120 | if { (eval echo configure:5121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5121 | rm -rf conftest*
|
|---|
| 5122 | bfd_cv_decl_needed_free=no
|
|---|
| 5123 | else
|
|---|
| 5124 | echo "configure: failed program was:" >&5
|
|---|
| 5125 | cat conftest.$ac_ext >&5
|
|---|
| 5126 | rm -rf conftest*
|
|---|
| 5127 | bfd_cv_decl_needed_free=yes
|
|---|
| 5128 | fi
|
|---|
| 5129 | rm -f conftest*
|
|---|
| 5130 | fi
|
|---|
| 5131 |
|
|---|
| 5132 | echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
|
|---|
| 5133 | if test $bfd_cv_decl_needed_free = yes; then
|
|---|
| 5134 | cat >> confdefs.h <<\EOF
|
|---|
| 5135 | #define NEED_DECLARATION_FREE 1
|
|---|
| 5136 | EOF
|
|---|
| 5137 |
|
|---|
| 5138 | fi
|
|---|
| 5139 |
|
|---|
| 5140 | echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
|
|---|
| 5141 | echo "configure:5142: checking whether getenv must be declared" >&5
|
|---|
| 5142 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
|
|---|
| 5143 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5144 | else
|
|---|
| 5145 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5146 | #line 5147 "configure"
|
|---|
| 5147 | #include "confdefs.h"
|
|---|
| 5148 |
|
|---|
| 5149 | #include <stdio.h>
|
|---|
| 5150 | #ifdef HAVE_STRING_H
|
|---|
| 5151 | #include <string.h>
|
|---|
| 5152 | #else
|
|---|
| 5153 | #ifdef HAVE_STRINGS_H
|
|---|
| 5154 | #include <strings.h>
|
|---|
| 5155 | #endif
|
|---|
| 5156 | #endif
|
|---|
| 5157 | #ifdef HAVE_STDLIB_H
|
|---|
| 5158 | #include <stdlib.h>
|
|---|
| 5159 | #endif
|
|---|
| 5160 | #ifdef HAVE_UNISTD_H
|
|---|
| 5161 | #include <unistd.h>
|
|---|
| 5162 | #endif
|
|---|
| 5163 | int main() {
|
|---|
| 5164 | char *(*pfn) = (char *(*)) getenv
|
|---|
| 5165 | ; return 0; }
|
|---|
| 5166 | EOF
|
|---|
| 5167 | if { (eval echo configure:5168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5168 | rm -rf conftest*
|
|---|
| 5169 | bfd_cv_decl_needed_getenv=no
|
|---|
| 5170 | else
|
|---|
| 5171 | echo "configure: failed program was:" >&5
|
|---|
| 5172 | cat conftest.$ac_ext >&5
|
|---|
| 5173 | rm -rf conftest*
|
|---|
| 5174 | bfd_cv_decl_needed_getenv=yes
|
|---|
| 5175 | fi
|
|---|
| 5176 | rm -f conftest*
|
|---|
| 5177 | fi
|
|---|
| 5178 |
|
|---|
| 5179 | echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
|
|---|
| 5180 | if test $bfd_cv_decl_needed_getenv = yes; then
|
|---|
| 5181 | cat >> confdefs.h <<\EOF
|
|---|
| 5182 | #define NEED_DECLARATION_GETENV 1
|
|---|
| 5183 | EOF
|
|---|
| 5184 |
|
|---|
| 5185 | fi
|
|---|
| 5186 |
|
|---|
| 5187 |
|
|---|
| 5188 | # If we are configured native, pick a core file support file.
|
|---|
| 5189 | COREFILE=
|
|---|
| 5190 | COREFLAG=
|
|---|
| 5191 | TRAD_HEADER=
|
|---|
| 5192 | if test "${target}" = "${host}"; then
|
|---|
| 5193 | case "${host}" in
|
|---|
| 5194 | alpha*-*-freebsd*)
|
|---|
| 5195 | COREFILE=''
|
|---|
| 5196 | ;;
|
|---|
| 5197 | alpha*-*-linux-gnu*)
|
|---|
| 5198 | COREFILE=trad-core.lo
|
|---|
| 5199 | TRAD_HEADER='"hosts/alphalinux.h"'
|
|---|
| 5200 | ;;
|
|---|
| 5201 | alpha*-*-netbsd* | alpha*-*-openbsd*)
|
|---|
| 5202 | COREFILE=netbsd-core.lo
|
|---|
| 5203 | ;;
|
|---|
| 5204 | alpha*-*-*) COREFILE=osf-core.lo ;;
|
|---|
| 5205 | arm-*-freebsd*) COREFILE='' ;;
|
|---|
| 5206 | arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
|
|---|
| 5207 | arm-*-riscix) COREFILE=trad-core.lo ;;
|
|---|
| 5208 | hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
|
|---|
| 5209 | hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
|
|---|
| 5210 | hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
|
|---|
| 5211 | hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
|
|---|
| 5212 | COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
|
|---|
| 5213 | i370-*-*)
|
|---|
| 5214 | COREFILE=trad-core.lo
|
|---|
| 5215 | TRAD_HEADER='"hosts/i370linux.h"'
|
|---|
| 5216 | ;;
|
|---|
| 5217 |
|
|---|
| 5218 | i[3456]86-sequent-bsd*)
|
|---|
| 5219 | COREFILE=trad-core.lo
|
|---|
| 5220 | TRAD_HEADER='"hosts/symmetry.h"'
|
|---|
| 5221 | ;;
|
|---|
| 5222 | i[3456]86-sequent-sysv4*) ;;
|
|---|
| 5223 | i[3456]86-sequent-sysv*)
|
|---|
| 5224 | COREFILE=trad-core.lo
|
|---|
| 5225 | TRAD_HEADER='"hosts/symmetry.h"'
|
|---|
| 5226 | ;;
|
|---|
| 5227 | i[3456]86-*-bsdi)
|
|---|
| 5228 | COREFILE=
|
|---|
| 5229 | ;;
|
|---|
| 5230 | i[3456]86-*-bsd* | i[34567]86-*-freebsd[123] | i[34567]86-*-freebsd[123]\.* | i[34567]86-*-freebsd4\.[01234]* | i[34567]86-*-freebsd*aout*)
|
|---|
| 5231 | COREFILE=trad-core.lo
|
|---|
| 5232 | TRAD_HEADER='"hosts/i386bsd.h"'
|
|---|
| 5233 | ;;
|
|---|
| 5234 | i[3456]86-*-freebsd*)
|
|---|
| 5235 | COREFILE=''
|
|---|
| 5236 | TRAD_HEADER='"hosts/i386bsd.h"'
|
|---|
| 5237 | ;;
|
|---|
| 5238 | i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
|
|---|
| 5239 | COREFILE=netbsd-core.lo
|
|---|
| 5240 | ;;
|
|---|
| 5241 | i[3456]86-esix-sysv3*)
|
|---|
| 5242 | COREFILE=trad-core.lo
|
|---|
| 5243 | TRAD_HEADER='"hosts/esix.h"'
|
|---|
| 5244 | ;;
|
|---|
| 5245 | i[3456]86-*-sco3.2v5*)
|
|---|
| 5246 | COREFILE=sco5-core.lo
|
|---|
| 5247 | ;;
|
|---|
| 5248 | i[3456]86-*-sco* | i[3456]86-*-isc*)
|
|---|
| 5249 | COREFILE=trad-core.lo
|
|---|
| 5250 | TRAD_HEADER='"hosts/i386sco.h"'
|
|---|
| 5251 | ;;
|
|---|
| 5252 | i[3456]86-*-mach3*)
|
|---|
| 5253 | COREFILE=trad-core.lo
|
|---|
| 5254 | TRAD_HEADER='"hosts/i386mach3.h"'
|
|---|
| 5255 | ;;
|
|---|
| 5256 | i[3456]86-*-linux-gnu*)
|
|---|
| 5257 | COREFILE=trad-core.lo
|
|---|
| 5258 | TRAD_HEADER='"hosts/i386linux.h"'
|
|---|
| 5259 | ;;
|
|---|
| 5260 | i[3456]86-*-isc*) COREFILE=trad-core.lo ;;
|
|---|
| 5261 | i[3456]86-*-aix*) COREFILE=aix386-core.lo ;;
|
|---|
| 5262 | i[3456]86-*-os2*)
|
|---|
| 5263 | COREFILE=trad-core.lo
|
|---|
| 5264 | TRAD_HEADER='"hosts/i386emx.h"'
|
|---|
| 5265 | ;;
|
|---|
| 5266 | i860-*-mach3* | i860-*-osf1*)
|
|---|
| 5267 | COREFILE=trad-core.lo
|
|---|
| 5268 | TRAD_HEADER='"hosts/i860mach3.h"'
|
|---|
| 5269 | ;;
|
|---|
| 5270 | mips-dec-bsd*)
|
|---|
| 5271 | COREFILE=trad-core.lo
|
|---|
| 5272 | TRAD_HEADER='"hosts/mipsbsd.h"'
|
|---|
| 5273 | ;;
|
|---|
| 5274 | mips-dec-mach3*)
|
|---|
| 5275 | COREFILE=trad-core.lo
|
|---|
| 5276 | TRAD_HEADER='"hosts/mipsmach3.h"'
|
|---|
| 5277 | ;;
|
|---|
| 5278 | mips-*-netbsd* | mips*-*-openbsd*)
|
|---|
| 5279 | COREFILE=netbsd-core.lo
|
|---|
| 5280 | ;;
|
|---|
| 5281 | mips-dec-*)
|
|---|
| 5282 | COREFILE=trad-core.lo
|
|---|
| 5283 | TRAD_HEADER='"hosts/decstation.h"'
|
|---|
| 5284 | ;;
|
|---|
| 5285 | mips-sgi-irix4*) COREFILE=irix-core.lo ;;
|
|---|
| 5286 | mips-sgi-irix5*) COREFILE=irix-core.lo ;;
|
|---|
| 5287 | mips-sgi-irix6*) COREFILE=irix-core.lo ;;
|
|---|
| 5288 | mips-*-mach3*)
|
|---|
| 5289 | COREFILE=trad-core.lo
|
|---|
| 5290 | TRAD_HEADER='"hosts/mipsmach3.h"'
|
|---|
| 5291 | ;;
|
|---|
| 5292 | mips-*-sysv4*) ;;
|
|---|
| 5293 | mips-*-sysv* | mips-*-riscos*)
|
|---|
| 5294 | COREFILE=trad-core.lo
|
|---|
| 5295 | TRAD_HEADER='"hosts/riscos.h"'
|
|---|
| 5296 | ;;
|
|---|
| 5297 | mips-sony-bsd*)
|
|---|
| 5298 | COREFILE=trad-core.lo
|
|---|
| 5299 | TRAD_HEADER='"hosts/news-mips.h"'
|
|---|
| 5300 | ;;
|
|---|
| 5301 | m68*-bull*-sysv*)
|
|---|
| 5302 | COREFILE=trad-core.lo
|
|---|
| 5303 | TRAD_HEADER='"hosts/dpx2.h"'
|
|---|
| 5304 | ;;
|
|---|
| 5305 | m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
|
|---|
| 5306 | m68*-hp-bsd*)
|
|---|
| 5307 | COREFILE=trad-core.lo
|
|---|
| 5308 | TRAD_HEADER='"hosts/hp300bsd.h"'
|
|---|
| 5309 | ;;
|
|---|
| 5310 | m68*-*-linux-gnu*)
|
|---|
| 5311 | COREFILE=trad-core.lo
|
|---|
| 5312 | TRAD_HEADER='"hosts/m68klinux.h"'
|
|---|
| 5313 | ;;
|
|---|
| 5314 | m68*-motorola-sysv*)
|
|---|
| 5315 | COREFILE=trad-core.lo
|
|---|
| 5316 | TRAD_HEADER='"hosts/delta68.h"'
|
|---|
| 5317 | ;;
|
|---|
| 5318 | m68*-sony-*)
|
|---|
| 5319 | COREFILE=trad-core.lo
|
|---|
| 5320 | TRAD_HEADER='"hosts/news.h"'
|
|---|
| 5321 | ;;
|
|---|
| 5322 | m68*-*-netbsd* | m68*-*-openbsd*)
|
|---|
| 5323 | COREFILE=netbsd-core.lo
|
|---|
| 5324 | ;;
|
|---|
| 5325 | m68*-apple-aux*)
|
|---|
| 5326 | COREFILE=trad-core.lo
|
|---|
| 5327 | TRAD_HEADER='"hosts/m68kaux.h"'
|
|---|
| 5328 | ;;
|
|---|
| 5329 | m88*-*-sysv4*)
|
|---|
| 5330 | ;;
|
|---|
| 5331 | m88*-motorola-sysv*)
|
|---|
| 5332 | COREFILE=ptrace-core.lo
|
|---|
| 5333 | ;;
|
|---|
| 5334 | m88*-*-mach3*)
|
|---|
| 5335 | COREFILE=trad-core.lo
|
|---|
| 5336 | TRAD_HEADER='"hosts/m88kmach3.h"'
|
|---|
| 5337 | ;;
|
|---|
| 5338 | ns32k-pc532-mach)
|
|---|
| 5339 | COREFILE=trad-core.lo
|
|---|
| 5340 | TRAD_HEADER='"hosts/pc532mach.h"'
|
|---|
| 5341 | ;;
|
|---|
| 5342 | ns32k-*-netbsd* | ns32k-*-openbsd*)
|
|---|
| 5343 | COREFILE=netbsd-core.lo
|
|---|
| 5344 | ;;
|
|---|
| 5345 | rs6000-*-lynx*)
|
|---|
| 5346 | COREFILE=lynx-core.lo
|
|---|
| 5347 | ;;
|
|---|
| 5348 | rs6000-*-aix5.* | powerpc-*-aix5.*)
|
|---|
| 5349 | COREFILE=rs6000-core.lo
|
|---|
| 5350 | COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
|
|---|
| 5351 | ;;
|
|---|
| 5352 | rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
|
|---|
| 5353 | COREFILE=rs6000-core.lo
|
|---|
| 5354 | COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
|
|---|
| 5355 | # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
|
|---|
| 5356 | # have c_impl as a member of struct core_dumpx
|
|---|
| 5357 | echo $ac_n "checking for c_impl in struct core_dumpx""... $ac_c" 1>&6
|
|---|
| 5358 | echo "configure:5359: checking for c_impl in struct core_dumpx" >&5
|
|---|
| 5359 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5360 | #line 5361 "configure"
|
|---|
| 5361 | #include "confdefs.h"
|
|---|
| 5362 | #include <core.h>
|
|---|
| 5363 | int main() {
|
|---|
| 5364 | struct core_dumpx c; c.c_impl = 0;
|
|---|
| 5365 | ; return 0; }
|
|---|
| 5366 | EOF
|
|---|
| 5367 | if { (eval echo configure:5368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5368 | rm -rf conftest*
|
|---|
| 5369 | cat >> confdefs.h <<\EOF
|
|---|
| 5370 | #define HAVE_ST_C_IMPL 1
|
|---|
| 5371 | EOF
|
|---|
| 5372 |
|
|---|
| 5373 | echo "$ac_t""yes" 1>&6
|
|---|
| 5374 | else
|
|---|
| 5375 | echo "configure: failed program was:" >&5
|
|---|
| 5376 | cat conftest.$ac_ext >&5
|
|---|
| 5377 | rm -rf conftest*
|
|---|
| 5378 | echo "$ac_t""no" 1>&6
|
|---|
| 5379 | fi
|
|---|
| 5380 | rm -f conftest*
|
|---|
| 5381 | ;;
|
|---|
| 5382 | rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
|
|---|
| 5383 | rs6000-*-*) COREFILE=rs6000-core.lo ;;
|
|---|
| 5384 | powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
|
|---|
| 5385 | powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
|
|---|
| 5386 | powerpc-*-beos*) ;;
|
|---|
| 5387 | powerpc-*-freebsd*) COREFILE='' ;;
|
|---|
| 5388 | powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
|
|---|
| 5389 | powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
|
|---|
| 5390 | s390*-*-*) COREFILE=trad-core.lo ;;
|
|---|
| 5391 | sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
|
|---|
| 5392 | sparc-*-netbsd* | sparc*-*-openbsd*)
|
|---|
| 5393 | COREFILE=netbsd-core.lo
|
|---|
| 5394 | ;;
|
|---|
| 5395 | tahoe-*-*)
|
|---|
| 5396 | COREFILE=trad-core.lo
|
|---|
| 5397 | TRAD_HEADER='"hosts/tahoe.h"'
|
|---|
| 5398 | ;;
|
|---|
| 5399 | vax-*-netbsd*) COREFILE=netbsd-core.lo ;;
|
|---|
| 5400 | vax-*-ultrix2*)
|
|---|
| 5401 | COREFILE=trad-core.lo
|
|---|
| 5402 | TRAD_HEADER='"hosts/vaxult2.h"'
|
|---|
| 5403 | ;;
|
|---|
| 5404 | vax-*-ultrix*)
|
|---|
| 5405 | COREFILE=trad-core.lo
|
|---|
| 5406 | TRAD_HEADER='"hosts/vaxult2.h"'
|
|---|
| 5407 | ;;
|
|---|
| 5408 | vax-*-*)
|
|---|
| 5409 | COREFILE=trad-core.lo
|
|---|
| 5410 | TRAD_HEADER='"hosts/vaxbsd.h"'
|
|---|
| 5411 | ;;
|
|---|
| 5412 | x86_64-*-netbsd*) COREFILE=netbsd-core.lo ;;
|
|---|
| 5413 | esac
|
|---|
| 5414 |
|
|---|
| 5415 | case "$COREFILE" in
|
|---|
| 5416 | aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
|
|---|
| 5417 | hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
|
|---|
| 5418 | hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
|
|---|
| 5419 | irix-core.lo) COREFLAG=-DIRIX_CORE ;;
|
|---|
| 5420 | lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
|
|---|
| 5421 | netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
|
|---|
| 5422 | osf-core.lo) COREFLAG=-DOSF_CORE ;;
|
|---|
| 5423 | ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
|
|---|
| 5424 | rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
|
|---|
| 5425 | sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
|
|---|
| 5426 | trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
|
|---|
| 5427 | esac
|
|---|
| 5428 |
|
|---|
| 5429 | # ELF corefile support has several flavors, but all of
|
|---|
| 5430 | # them use something called <sys/procfs.h>
|
|---|
| 5431 | for ac_hdr in sys/procfs.h
|
|---|
| 5432 | do
|
|---|
| 5433 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 5434 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 5435 | echo "configure:5436: checking for $ac_hdr" >&5
|
|---|
| 5436 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 5437 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5438 | else
|
|---|
| 5439 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5440 | #include <sys/types.h>
|
|---|
| 5441 | #line 5442 "configure"
|
|---|
| 5442 | #include "confdefs.h"
|
|---|
| 5443 | #include <$ac_hdr>
|
|---|
| 5444 | EOF
|
|---|
| 5445 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 5446 | { (eval echo configure:5447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 5447 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 5448 | if test -z "$ac_err"; then
|
|---|
| 5449 | rm -rf conftest*
|
|---|
| 5450 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 5451 | else
|
|---|
| 5452 | echo "$ac_err" >&5
|
|---|
| 5453 | echo "configure: failed program was:" >&5
|
|---|
| 5454 | cat conftest.$ac_ext >&5
|
|---|
| 5455 | rm -rf conftest*
|
|---|
| 5456 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 5457 | fi
|
|---|
| 5458 | rm -f conftest*
|
|---|
| 5459 | fi
|
|---|
| 5460 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 5461 | echo "$ac_t""yes" 1>&6
|
|---|
| 5462 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 5463 | cat >> confdefs.h <<EOF
|
|---|
| 5464 | #define $ac_tr_hdr 1
|
|---|
| 5465 | EOF
|
|---|
| 5466 |
|
|---|
| 5467 | else
|
|---|
| 5468 | echo "$ac_t""no" 1>&6
|
|---|
| 5469 | fi
|
|---|
| 5470 | done
|
|---|
| 5471 |
|
|---|
| 5472 | if test "$ac_cv_header_sys_procfs_h" = yes; then
|
|---|
| 5473 | echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5474 | echo "configure:5475: checking for prstatus_t in sys/procfs.h" >&5
|
|---|
| 5475 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
|
|---|
| 5476 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5477 | else
|
|---|
| 5478 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5479 | #line 5480 "configure"
|
|---|
| 5480 | #include "confdefs.h"
|
|---|
| 5481 |
|
|---|
| 5482 | #define _SYSCALL32
|
|---|
| 5483 | #include <sys/procfs.h>
|
|---|
| 5484 | int main() {
|
|---|
| 5485 | prstatus_t avar
|
|---|
| 5486 | ; return 0; }
|
|---|
| 5487 | EOF
|
|---|
| 5488 | if { (eval echo configure:5489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5489 | rm -rf conftest*
|
|---|
| 5490 | bfd_cv_have_sys_procfs_type_prstatus_t=yes
|
|---|
| 5491 | else
|
|---|
| 5492 | echo "configure: failed program was:" >&5
|
|---|
| 5493 | cat conftest.$ac_ext >&5
|
|---|
| 5494 | rm -rf conftest*
|
|---|
| 5495 | bfd_cv_have_sys_procfs_type_prstatus_t=no
|
|---|
| 5496 |
|
|---|
| 5497 | fi
|
|---|
| 5498 | rm -f conftest*
|
|---|
| 5499 | fi
|
|---|
| 5500 |
|
|---|
| 5501 | if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
|
|---|
| 5502 | cat >> confdefs.h <<\EOF
|
|---|
| 5503 | #define HAVE_PRSTATUS_T 1
|
|---|
| 5504 | EOF
|
|---|
| 5505 |
|
|---|
| 5506 | fi
|
|---|
| 5507 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
|
|---|
| 5508 |
|
|---|
| 5509 | echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5510 | echo "configure:5511: checking for prstatus32_t in sys/procfs.h" >&5
|
|---|
| 5511 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
|
|---|
| 5512 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5513 | else
|
|---|
| 5514 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5515 | #line 5516 "configure"
|
|---|
| 5516 | #include "confdefs.h"
|
|---|
| 5517 |
|
|---|
| 5518 | #define _SYSCALL32
|
|---|
| 5519 | #include <sys/procfs.h>
|
|---|
| 5520 | int main() {
|
|---|
| 5521 | prstatus32_t avar
|
|---|
| 5522 | ; return 0; }
|
|---|
| 5523 | EOF
|
|---|
| 5524 | if { (eval echo configure:5525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5525 | rm -rf conftest*
|
|---|
| 5526 | bfd_cv_have_sys_procfs_type_prstatus32_t=yes
|
|---|
| 5527 | else
|
|---|
| 5528 | echo "configure: failed program was:" >&5
|
|---|
| 5529 | cat conftest.$ac_ext >&5
|
|---|
| 5530 | rm -rf conftest*
|
|---|
| 5531 | bfd_cv_have_sys_procfs_type_prstatus32_t=no
|
|---|
| 5532 |
|
|---|
| 5533 | fi
|
|---|
| 5534 | rm -f conftest*
|
|---|
| 5535 | fi
|
|---|
| 5536 |
|
|---|
| 5537 | if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
|
|---|
| 5538 | cat >> confdefs.h <<\EOF
|
|---|
| 5539 | #define HAVE_PRSTATUS32_T 1
|
|---|
| 5540 | EOF
|
|---|
| 5541 |
|
|---|
| 5542 | fi
|
|---|
| 5543 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
|
|---|
| 5544 |
|
|---|
| 5545 | echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5546 | echo "configure:5547: checking for prstatus_t.pr_who in sys/procfs.h" >&5
|
|---|
| 5547 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
|
|---|
| 5548 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5549 | else
|
|---|
| 5550 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5551 | #line 5552 "configure"
|
|---|
| 5552 | #include "confdefs.h"
|
|---|
| 5553 |
|
|---|
| 5554 | #define _SYSCALL32
|
|---|
| 5555 | #include <sys/procfs.h>
|
|---|
| 5556 | int main() {
|
|---|
| 5557 | prstatus_t avar; void* aref = (void*) &avar.pr_who
|
|---|
| 5558 | ; return 0; }
|
|---|
| 5559 | EOF
|
|---|
| 5560 | if { (eval echo configure:5561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5561 | rm -rf conftest*
|
|---|
| 5562 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
|
|---|
| 5563 | else
|
|---|
| 5564 | echo "configure: failed program was:" >&5
|
|---|
| 5565 | cat conftest.$ac_ext >&5
|
|---|
| 5566 | rm -rf conftest*
|
|---|
| 5567 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
|
|---|
| 5568 |
|
|---|
| 5569 | fi
|
|---|
| 5570 | rm -f conftest*
|
|---|
| 5571 | fi
|
|---|
| 5572 |
|
|---|
| 5573 | if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
|
|---|
| 5574 | cat >> confdefs.h <<\EOF
|
|---|
| 5575 | #define HAVE_PRSTATUS_T_PR_WHO 1
|
|---|
| 5576 | EOF
|
|---|
| 5577 |
|
|---|
| 5578 | fi
|
|---|
| 5579 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
|
|---|
| 5580 |
|
|---|
| 5581 | echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5582 | echo "configure:5583: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
|
|---|
| 5583 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
|
|---|
| 5584 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5585 | else
|
|---|
| 5586 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5587 | #line 5588 "configure"
|
|---|
| 5588 | #include "confdefs.h"
|
|---|
| 5589 |
|
|---|
| 5590 | #define _SYSCALL32
|
|---|
| 5591 | #include <sys/procfs.h>
|
|---|
| 5592 | int main() {
|
|---|
| 5593 | prstatus32_t avar; void* aref = (void*) &avar.pr_who
|
|---|
| 5594 | ; return 0; }
|
|---|
| 5595 | EOF
|
|---|
| 5596 | if { (eval echo configure:5597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5597 | rm -rf conftest*
|
|---|
| 5598 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
|
|---|
| 5599 | else
|
|---|
| 5600 | echo "configure: failed program was:" >&5
|
|---|
| 5601 | cat conftest.$ac_ext >&5
|
|---|
| 5602 | rm -rf conftest*
|
|---|
| 5603 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
|
|---|
| 5604 |
|
|---|
| 5605 | fi
|
|---|
| 5606 | rm -f conftest*
|
|---|
| 5607 | fi
|
|---|
| 5608 |
|
|---|
| 5609 | if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
|
|---|
| 5610 | cat >> confdefs.h <<\EOF
|
|---|
| 5611 | #define HAVE_PRSTATUS32_T_PR_WHO 1
|
|---|
| 5612 | EOF
|
|---|
| 5613 |
|
|---|
| 5614 | fi
|
|---|
| 5615 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
|
|---|
| 5616 |
|
|---|
| 5617 | echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5618 | echo "configure:5619: checking for pstatus_t in sys/procfs.h" >&5
|
|---|
| 5619 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
|
|---|
| 5620 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5621 | else
|
|---|
| 5622 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5623 | #line 5624 "configure"
|
|---|
| 5624 | #include "confdefs.h"
|
|---|
| 5625 |
|
|---|
| 5626 | #define _SYSCALL32
|
|---|
| 5627 | #include <sys/procfs.h>
|
|---|
| 5628 | int main() {
|
|---|
| 5629 | pstatus_t avar
|
|---|
| 5630 | ; return 0; }
|
|---|
| 5631 | EOF
|
|---|
| 5632 | if { (eval echo configure:5633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5633 | rm -rf conftest*
|
|---|
| 5634 | bfd_cv_have_sys_procfs_type_pstatus_t=yes
|
|---|
| 5635 | else
|
|---|
| 5636 | echo "configure: failed program was:" >&5
|
|---|
| 5637 | cat conftest.$ac_ext >&5
|
|---|
| 5638 | rm -rf conftest*
|
|---|
| 5639 | bfd_cv_have_sys_procfs_type_pstatus_t=no
|
|---|
| 5640 |
|
|---|
| 5641 | fi
|
|---|
| 5642 | rm -f conftest*
|
|---|
| 5643 | fi
|
|---|
| 5644 |
|
|---|
| 5645 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
|
|---|
| 5646 | cat >> confdefs.h <<\EOF
|
|---|
| 5647 | #define HAVE_PSTATUS_T 1
|
|---|
| 5648 | EOF
|
|---|
| 5649 |
|
|---|
| 5650 | fi
|
|---|
| 5651 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
|
|---|
| 5652 |
|
|---|
| 5653 | echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5654 | echo "configure:5655: checking for pxstatus_t in sys/procfs.h" >&5
|
|---|
| 5655 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then
|
|---|
| 5656 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5657 | else
|
|---|
| 5658 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5659 | #line 5660 "configure"
|
|---|
| 5660 | #include "confdefs.h"
|
|---|
| 5661 |
|
|---|
| 5662 | #define _SYSCALL32
|
|---|
| 5663 | #include <sys/procfs.h>
|
|---|
| 5664 | int main() {
|
|---|
| 5665 | pxstatus_t avar
|
|---|
| 5666 | ; return 0; }
|
|---|
| 5667 | EOF
|
|---|
| 5668 | if { (eval echo configure:5669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5669 | rm -rf conftest*
|
|---|
| 5670 | bfd_cv_have_sys_procfs_type_pxstatus_t=yes
|
|---|
| 5671 | else
|
|---|
| 5672 | echo "configure: failed program was:" >&5
|
|---|
| 5673 | cat conftest.$ac_ext >&5
|
|---|
| 5674 | rm -rf conftest*
|
|---|
| 5675 | bfd_cv_have_sys_procfs_type_pxstatus_t=no
|
|---|
| 5676 |
|
|---|
| 5677 | fi
|
|---|
| 5678 | rm -f conftest*
|
|---|
| 5679 | fi
|
|---|
| 5680 |
|
|---|
| 5681 | if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
|
|---|
| 5682 | cat >> confdefs.h <<\EOF
|
|---|
| 5683 | #define HAVE_PXSTATUS_T 1
|
|---|
| 5684 | EOF
|
|---|
| 5685 |
|
|---|
| 5686 | fi
|
|---|
| 5687 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6
|
|---|
| 5688 |
|
|---|
| 5689 | echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5690 | echo "configure:5691: checking for pstatus32_t in sys/procfs.h" >&5
|
|---|
| 5691 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
|
|---|
| 5692 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5693 | else
|
|---|
| 5694 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5695 | #line 5696 "configure"
|
|---|
| 5696 | #include "confdefs.h"
|
|---|
| 5697 |
|
|---|
| 5698 | #define _SYSCALL32
|
|---|
| 5699 | #include <sys/procfs.h>
|
|---|
| 5700 | int main() {
|
|---|
| 5701 | pstatus32_t avar
|
|---|
| 5702 | ; return 0; }
|
|---|
| 5703 | EOF
|
|---|
| 5704 | if { (eval echo configure:5705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5705 | rm -rf conftest*
|
|---|
| 5706 | bfd_cv_have_sys_procfs_type_pstatus32_t=yes
|
|---|
| 5707 | else
|
|---|
| 5708 | echo "configure: failed program was:" >&5
|
|---|
| 5709 | cat conftest.$ac_ext >&5
|
|---|
| 5710 | rm -rf conftest*
|
|---|
| 5711 | bfd_cv_have_sys_procfs_type_pstatus32_t=no
|
|---|
| 5712 |
|
|---|
| 5713 | fi
|
|---|
| 5714 | rm -f conftest*
|
|---|
| 5715 | fi
|
|---|
| 5716 |
|
|---|
| 5717 | if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
|
|---|
| 5718 | cat >> confdefs.h <<\EOF
|
|---|
| 5719 | #define HAVE_PSTATUS32_T 1
|
|---|
| 5720 | EOF
|
|---|
| 5721 |
|
|---|
| 5722 | fi
|
|---|
| 5723 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
|
|---|
| 5724 |
|
|---|
| 5725 | echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5726 | echo "configure:5727: checking for prpsinfo_t in sys/procfs.h" >&5
|
|---|
| 5727 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
|
|---|
| 5728 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5729 | else
|
|---|
| 5730 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5731 | #line 5732 "configure"
|
|---|
| 5732 | #include "confdefs.h"
|
|---|
| 5733 |
|
|---|
| 5734 | #define _SYSCALL32
|
|---|
| 5735 | #include <sys/procfs.h>
|
|---|
| 5736 | int main() {
|
|---|
| 5737 | prpsinfo_t avar
|
|---|
| 5738 | ; return 0; }
|
|---|
| 5739 | EOF
|
|---|
| 5740 | if { (eval echo configure:5741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5741 | rm -rf conftest*
|
|---|
| 5742 | bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
|
|---|
| 5743 | else
|
|---|
| 5744 | echo "configure: failed program was:" >&5
|
|---|
| 5745 | cat conftest.$ac_ext >&5
|
|---|
| 5746 | rm -rf conftest*
|
|---|
| 5747 | bfd_cv_have_sys_procfs_type_prpsinfo_t=no
|
|---|
| 5748 |
|
|---|
| 5749 | fi
|
|---|
| 5750 | rm -f conftest*
|
|---|
| 5751 | fi
|
|---|
| 5752 |
|
|---|
| 5753 | if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
|
|---|
| 5754 | cat >> confdefs.h <<\EOF
|
|---|
| 5755 | #define HAVE_PRPSINFO_T 1
|
|---|
| 5756 | EOF
|
|---|
| 5757 |
|
|---|
| 5758 | fi
|
|---|
| 5759 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
|
|---|
| 5760 |
|
|---|
| 5761 | echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5762 | echo "configure:5763: checking for prpsinfo32_t in sys/procfs.h" >&5
|
|---|
| 5763 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
|
|---|
| 5764 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5765 | else
|
|---|
| 5766 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5767 | #line 5768 "configure"
|
|---|
| 5768 | #include "confdefs.h"
|
|---|
| 5769 |
|
|---|
| 5770 | #define _SYSCALL32
|
|---|
| 5771 | #include <sys/procfs.h>
|
|---|
| 5772 | int main() {
|
|---|
| 5773 | prpsinfo32_t avar
|
|---|
| 5774 | ; return 0; }
|
|---|
| 5775 | EOF
|
|---|
| 5776 | if { (eval echo configure:5777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5777 | rm -rf conftest*
|
|---|
| 5778 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
|
|---|
| 5779 | else
|
|---|
| 5780 | echo "configure: failed program was:" >&5
|
|---|
| 5781 | cat conftest.$ac_ext >&5
|
|---|
| 5782 | rm -rf conftest*
|
|---|
| 5783 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
|
|---|
| 5784 |
|
|---|
| 5785 | fi
|
|---|
| 5786 | rm -f conftest*
|
|---|
| 5787 | fi
|
|---|
| 5788 |
|
|---|
| 5789 | if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
|
|---|
| 5790 | cat >> confdefs.h <<\EOF
|
|---|
| 5791 | #define HAVE_PRPSINFO32_T 1
|
|---|
| 5792 | EOF
|
|---|
| 5793 |
|
|---|
| 5794 | fi
|
|---|
| 5795 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
|
|---|
| 5796 |
|
|---|
| 5797 | echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5798 | echo "configure:5799: checking for psinfo_t in sys/procfs.h" >&5
|
|---|
| 5799 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
|
|---|
| 5800 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5801 | else
|
|---|
| 5802 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5803 | #line 5804 "configure"
|
|---|
| 5804 | #include "confdefs.h"
|
|---|
| 5805 |
|
|---|
| 5806 | #define _SYSCALL32
|
|---|
| 5807 | #include <sys/procfs.h>
|
|---|
| 5808 | int main() {
|
|---|
| 5809 | psinfo_t avar
|
|---|
| 5810 | ; return 0; }
|
|---|
| 5811 | EOF
|
|---|
| 5812 | if { (eval echo configure:5813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5813 | rm -rf conftest*
|
|---|
| 5814 | bfd_cv_have_sys_procfs_type_psinfo_t=yes
|
|---|
| 5815 | else
|
|---|
| 5816 | echo "configure: failed program was:" >&5
|
|---|
| 5817 | cat conftest.$ac_ext >&5
|
|---|
| 5818 | rm -rf conftest*
|
|---|
| 5819 | bfd_cv_have_sys_procfs_type_psinfo_t=no
|
|---|
| 5820 |
|
|---|
| 5821 | fi
|
|---|
| 5822 | rm -f conftest*
|
|---|
| 5823 | fi
|
|---|
| 5824 |
|
|---|
| 5825 | if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
|
|---|
| 5826 | cat >> confdefs.h <<\EOF
|
|---|
| 5827 | #define HAVE_PSINFO_T 1
|
|---|
| 5828 | EOF
|
|---|
| 5829 |
|
|---|
| 5830 | fi
|
|---|
| 5831 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
|
|---|
| 5832 |
|
|---|
| 5833 | echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5834 | echo "configure:5835: checking for psinfo32_t in sys/procfs.h" >&5
|
|---|
| 5835 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
|
|---|
| 5836 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5837 | else
|
|---|
| 5838 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5839 | #line 5840 "configure"
|
|---|
| 5840 | #include "confdefs.h"
|
|---|
| 5841 |
|
|---|
| 5842 | #define _SYSCALL32
|
|---|
| 5843 | #include <sys/procfs.h>
|
|---|
| 5844 | int main() {
|
|---|
| 5845 | psinfo32_t avar
|
|---|
| 5846 | ; return 0; }
|
|---|
| 5847 | EOF
|
|---|
| 5848 | if { (eval echo configure:5849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5849 | rm -rf conftest*
|
|---|
| 5850 | bfd_cv_have_sys_procfs_type_psinfo32_t=yes
|
|---|
| 5851 | else
|
|---|
| 5852 | echo "configure: failed program was:" >&5
|
|---|
| 5853 | cat conftest.$ac_ext >&5
|
|---|
| 5854 | rm -rf conftest*
|
|---|
| 5855 | bfd_cv_have_sys_procfs_type_psinfo32_t=no
|
|---|
| 5856 |
|
|---|
| 5857 | fi
|
|---|
| 5858 | rm -f conftest*
|
|---|
| 5859 | fi
|
|---|
| 5860 |
|
|---|
| 5861 | if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
|
|---|
| 5862 | cat >> confdefs.h <<\EOF
|
|---|
| 5863 | #define HAVE_PSINFO32_T 1
|
|---|
| 5864 | EOF
|
|---|
| 5865 |
|
|---|
| 5866 | fi
|
|---|
| 5867 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
|
|---|
| 5868 |
|
|---|
| 5869 | echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5870 | echo "configure:5871: checking for lwpstatus_t in sys/procfs.h" >&5
|
|---|
| 5871 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
|
|---|
| 5872 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5873 | else
|
|---|
| 5874 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5875 | #line 5876 "configure"
|
|---|
| 5876 | #include "confdefs.h"
|
|---|
| 5877 |
|
|---|
| 5878 | #define _SYSCALL32
|
|---|
| 5879 | #include <sys/procfs.h>
|
|---|
| 5880 | int main() {
|
|---|
| 5881 | lwpstatus_t avar
|
|---|
| 5882 | ; return 0; }
|
|---|
| 5883 | EOF
|
|---|
| 5884 | if { (eval echo configure:5885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5885 | rm -rf conftest*
|
|---|
| 5886 | bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
|
|---|
| 5887 | else
|
|---|
| 5888 | echo "configure: failed program was:" >&5
|
|---|
| 5889 | cat conftest.$ac_ext >&5
|
|---|
| 5890 | rm -rf conftest*
|
|---|
| 5891 | bfd_cv_have_sys_procfs_type_lwpstatus_t=no
|
|---|
| 5892 |
|
|---|
| 5893 | fi
|
|---|
| 5894 | rm -f conftest*
|
|---|
| 5895 | fi
|
|---|
| 5896 |
|
|---|
| 5897 | if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
|
|---|
| 5898 | cat >> confdefs.h <<\EOF
|
|---|
| 5899 | #define HAVE_LWPSTATUS_T 1
|
|---|
| 5900 | EOF
|
|---|
| 5901 |
|
|---|
| 5902 | fi
|
|---|
| 5903 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
|
|---|
| 5904 |
|
|---|
| 5905 | echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5906 | echo "configure:5907: checking for lwpxstatus_t in sys/procfs.h" >&5
|
|---|
| 5907 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then
|
|---|
| 5908 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5909 | else
|
|---|
| 5910 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5911 | #line 5912 "configure"
|
|---|
| 5912 | #include "confdefs.h"
|
|---|
| 5913 |
|
|---|
| 5914 | #define _SYSCALL32
|
|---|
| 5915 | #include <sys/procfs.h>
|
|---|
| 5916 | int main() {
|
|---|
| 5917 | lwpxstatus_t avar
|
|---|
| 5918 | ; return 0; }
|
|---|
| 5919 | EOF
|
|---|
| 5920 | if { (eval echo configure:5921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5921 | rm -rf conftest*
|
|---|
| 5922 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
|
|---|
| 5923 | else
|
|---|
| 5924 | echo "configure: failed program was:" >&5
|
|---|
| 5925 | cat conftest.$ac_ext >&5
|
|---|
| 5926 | rm -rf conftest*
|
|---|
| 5927 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
|
|---|
| 5928 |
|
|---|
| 5929 | fi
|
|---|
| 5930 | rm -f conftest*
|
|---|
| 5931 | fi
|
|---|
| 5932 |
|
|---|
| 5933 | if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
|
|---|
| 5934 | cat >> confdefs.h <<\EOF
|
|---|
| 5935 | #define HAVE_LWPXSTATUS_T 1
|
|---|
| 5936 | EOF
|
|---|
| 5937 |
|
|---|
| 5938 | fi
|
|---|
| 5939 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6
|
|---|
| 5940 |
|
|---|
| 5941 | echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5942 | echo "configure:5943: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
|
|---|
| 5943 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
|
|---|
| 5944 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5945 | else
|
|---|
| 5946 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5947 | #line 5948 "configure"
|
|---|
| 5948 | #include "confdefs.h"
|
|---|
| 5949 |
|
|---|
| 5950 | #define _SYSCALL32
|
|---|
| 5951 | #include <sys/procfs.h>
|
|---|
| 5952 | int main() {
|
|---|
| 5953 | lwpstatus_t avar; void* aref = (void*) &avar.pr_context
|
|---|
| 5954 | ; return 0; }
|
|---|
| 5955 | EOF
|
|---|
| 5956 | if { (eval echo configure:5957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5957 | rm -rf conftest*
|
|---|
| 5958 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
|
|---|
| 5959 | else
|
|---|
| 5960 | echo "configure: failed program was:" >&5
|
|---|
| 5961 | cat conftest.$ac_ext >&5
|
|---|
| 5962 | rm -rf conftest*
|
|---|
| 5963 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
|
|---|
| 5964 |
|
|---|
| 5965 | fi
|
|---|
| 5966 | rm -f conftest*
|
|---|
| 5967 | fi
|
|---|
| 5968 |
|
|---|
| 5969 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
|
|---|
| 5970 | cat >> confdefs.h <<\EOF
|
|---|
| 5971 | #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
|
|---|
| 5972 | EOF
|
|---|
| 5973 |
|
|---|
| 5974 | fi
|
|---|
| 5975 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
|
|---|
| 5976 |
|
|---|
| 5977 | echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5978 | echo "configure:5979: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
|
|---|
| 5979 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
|
|---|
| 5980 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5981 | else
|
|---|
| 5982 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5983 | #line 5984 "configure"
|
|---|
| 5984 | #include "confdefs.h"
|
|---|
| 5985 |
|
|---|
| 5986 | #define _SYSCALL32
|
|---|
| 5987 | #include <sys/procfs.h>
|
|---|
| 5988 | int main() {
|
|---|
| 5989 | lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
|
|---|
| 5990 | ; return 0; }
|
|---|
| 5991 | EOF
|
|---|
| 5992 | if { (eval echo configure:5993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5993 | rm -rf conftest*
|
|---|
| 5994 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
|
|---|
| 5995 | else
|
|---|
| 5996 | echo "configure: failed program was:" >&5
|
|---|
| 5997 | cat conftest.$ac_ext >&5
|
|---|
| 5998 | rm -rf conftest*
|
|---|
| 5999 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
|
|---|
| 6000 |
|
|---|
| 6001 | fi
|
|---|
| 6002 | rm -f conftest*
|
|---|
| 6003 | fi
|
|---|
| 6004 |
|
|---|
| 6005 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
|
|---|
| 6006 | cat >> confdefs.h <<\EOF
|
|---|
| 6007 | #define HAVE_LWPSTATUS_T_PR_REG 1
|
|---|
| 6008 | EOF
|
|---|
| 6009 |
|
|---|
| 6010 | fi
|
|---|
| 6011 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
|
|---|
| 6012 |
|
|---|
| 6013 | echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 6014 | echo "configure:6015: checking for win32_pstatus_t in sys/procfs.h" >&5
|
|---|
| 6015 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
|
|---|
| 6016 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6017 | else
|
|---|
| 6018 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6019 | #line 6020 "configure"
|
|---|
| 6020 | #include "confdefs.h"
|
|---|
| 6021 |
|
|---|
| 6022 | #define _SYSCALL32
|
|---|
| 6023 | #include <sys/procfs.h>
|
|---|
| 6024 | int main() {
|
|---|
| 6025 | win32_pstatus_t avar
|
|---|
| 6026 | ; return 0; }
|
|---|
| 6027 | EOF
|
|---|
| 6028 | if { (eval echo configure:6029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 6029 | rm -rf conftest*
|
|---|
| 6030 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
|
|---|
| 6031 | else
|
|---|
| 6032 | echo "configure: failed program was:" >&5
|
|---|
| 6033 | cat conftest.$ac_ext >&5
|
|---|
| 6034 | rm -rf conftest*
|
|---|
| 6035 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
|
|---|
| 6036 |
|
|---|
| 6037 | fi
|
|---|
| 6038 | rm -f conftest*
|
|---|
| 6039 | fi
|
|---|
| 6040 |
|
|---|
| 6041 | if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
|
|---|
| 6042 | cat >> confdefs.h <<\EOF
|
|---|
| 6043 | #define HAVE_WIN32_PSTATUS_T 1
|
|---|
| 6044 | EOF
|
|---|
| 6045 |
|
|---|
| 6046 | fi
|
|---|
| 6047 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
|
|---|
| 6048 |
|
|---|
| 6049 | fi
|
|---|
| 6050 | fi
|
|---|
| 6051 |
|
|---|
| 6052 |
|
|---|
| 6053 | if test -n "$TRAD_HEADER"; then
|
|---|
| 6054 | cat >> confdefs.h <<EOF
|
|---|
| 6055 | #define TRAD_HEADER $TRAD_HEADER
|
|---|
| 6056 | EOF
|
|---|
| 6057 |
|
|---|
| 6058 | fi
|
|---|
| 6059 |
|
|---|
| 6060 | # Horrible hacks to build DLLs on Windows.
|
|---|
| 6061 | WIN32LDFLAGS=
|
|---|
| 6062 | WIN32LIBADD=
|
|---|
| 6063 | case "${host}" in
|
|---|
| 6064 | *-*-cygwin*)
|
|---|
| 6065 | if test "$enable_shared" = "yes"; then
|
|---|
| 6066 | WIN32LDFLAGS="-no-undefined"
|
|---|
| 6067 | WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
|
|---|
| 6068 | fi
|
|---|
| 6069 | ;;
|
|---|
| 6070 | *-*-os2*)
|
|---|
| 6071 | if test "$enable_shared" = "yes"; then
|
|---|
| 6072 | WIN32LDFLAGS="-no-undefined"
|
|---|
| 6073 | WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl"
|
|---|
| 6074 | fi
|
|---|
| 6075 | ;;
|
|---|
| 6076 | *-*-linux*)
|
|---|
| 6077 | # We borrow WIN32LIBADD so that the shared libbfd won't depend on
|
|---|
| 6078 | # libiberty.a.
|
|---|
| 6079 | case "${host}" in
|
|---|
| 6080 | mips*-*-linux*)
|
|---|
| 6081 | # Linux/MIPS uses PIC by default.
|
|---|
| 6082 | if test "$enable_shared" = "yes"; then
|
|---|
| 6083 | WIN32LIBADD="-L../libiberty -liberty"
|
|---|
| 6084 | fi
|
|---|
| 6085 | ;;
|
|---|
| 6086 | *)
|
|---|
| 6087 | x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
|
|---|
| 6088 | if test -n "$x"; then
|
|---|
| 6089 | WIN32LIBADD="-L../libiberty/pic -liberty"
|
|---|
| 6090 | fi
|
|---|
| 6091 | ;;
|
|---|
| 6092 | esac
|
|---|
| 6093 | ;;
|
|---|
| 6094 | esac
|
|---|
| 6095 |
|
|---|
| 6096 |
|
|---|
| 6097 |
|
|---|
| 6098 | # target stuff:
|
|---|
| 6099 |
|
|---|
| 6100 | # Canonicalize the secondary target names.
|
|---|
| 6101 | if test -n "$enable_targets" ; then
|
|---|
| 6102 | for targ in `echo $enable_targets | sed 's/,/ /g'`
|
|---|
| 6103 | do
|
|---|
| 6104 | result=`$ac_config_sub $targ 2>/dev/null`
|
|---|
| 6105 | if test -n "$result" ; then
|
|---|
| 6106 | canon_targets="$canon_targets $result"
|
|---|
| 6107 | else
|
|---|
| 6108 | # Allow targets that config.sub doesn't recognize, like "all".
|
|---|
| 6109 | canon_targets="$canon_targets $targ"
|
|---|
| 6110 | fi
|
|---|
| 6111 | done
|
|---|
| 6112 | fi
|
|---|
| 6113 |
|
|---|
| 6114 | all_targets=false
|
|---|
| 6115 | defvec=
|
|---|
| 6116 | selvecs=
|
|---|
| 6117 | assocvecs=
|
|---|
| 6118 | selarchs=
|
|---|
| 6119 | TDEFINES=
|
|---|
| 6120 | for targ in $target $canon_targets
|
|---|
| 6121 | do
|
|---|
| 6122 | if test "x$targ" = "xall"; then
|
|---|
| 6123 | all_targets=true
|
|---|
| 6124 | assocvecs="$assocvecs $targ_defvec $targ_selvecs"
|
|---|
| 6125 | else
|
|---|
| 6126 | . $srcdir/config.bfd
|
|---|
| 6127 | if test "x$targ" = "x$target"; then
|
|---|
| 6128 | defvec=$targ_defvec
|
|---|
| 6129 | fi
|
|---|
| 6130 | selvecs="$selvecs $targ_defvec $targ_selvecs"
|
|---|
| 6131 | selarchs="$selarchs $targ_archs"
|
|---|
| 6132 | TDEFINES="$TDEFINES $targ_cflags"
|
|---|
| 6133 | fi
|
|---|
| 6134 | done
|
|---|
| 6135 |
|
|---|
| 6136 |
|
|---|
| 6137 | # This processing still needs to be done if we're to decide properly whether
|
|---|
| 6138 | # 64-bit support needs to be compiled in. Currently, it will be included if
|
|---|
| 6139 | # the default or any other explicitly requested target requires it; it
|
|---|
| 6140 | # will not be included on a 32-bit host if no 64-bit target is requested, and
|
|---|
| 6141 | # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
|
|---|
| 6142 | # used.
|
|---|
| 6143 |
|
|---|
| 6144 | # uniq the default and selected vectors in all the configured targets.
|
|---|
| 6145 | f=""
|
|---|
| 6146 | for i in $selvecs ; do
|
|---|
| 6147 | case " $f " in
|
|---|
| 6148 | *" $i "*) ;;
|
|---|
| 6149 | *) f="$f $i" ;;
|
|---|
| 6150 | esac
|
|---|
| 6151 | done
|
|---|
| 6152 | selvecs="$f"
|
|---|
| 6153 |
|
|---|
| 6154 |
|
|---|
| 6155 | # uniq the associated vectors in all the configured targets.
|
|---|
| 6156 | f=""
|
|---|
| 6157 | for i in $assocvecs ; do
|
|---|
| 6158 | case " $f " in
|
|---|
| 6159 | *" $i "*) ;;
|
|---|
| 6160 | *) f="$f $i" ;;
|
|---|
| 6161 | esac
|
|---|
| 6162 | done
|
|---|
| 6163 | assocvecs="$f"
|
|---|
| 6164 |
|
|---|
| 6165 |
|
|---|
| 6166 | # uniq the architectures in all the configured targets.
|
|---|
| 6167 | f=""
|
|---|
| 6168 | for i in $selarchs ; do
|
|---|
| 6169 | case " $f " in
|
|---|
| 6170 | *" $i "*) ;;
|
|---|
| 6171 | *) f="$f $i" ;;
|
|---|
| 6172 | esac
|
|---|
| 6173 | done
|
|---|
| 6174 | selarchs="$f"
|
|---|
| 6175 |
|
|---|
| 6176 | # Target backend .o files.
|
|---|
| 6177 | tb=
|
|---|
| 6178 |
|
|---|
| 6179 | elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
|
|---|
| 6180 |
|
|---|
| 6181 | for vec in $selvecs
|
|---|
| 6182 | do
|
|---|
| 6183 | target_size=32
|
|---|
| 6184 | case "$vec" in
|
|---|
| 6185 | # This list is alphabetized to make it easy to compare
|
|---|
| 6186 | # with the two vector lists in targets.c. For the same reason,
|
|---|
| 6187 | # use one entry per line, even though this leads to long lines.
|
|---|
| 6188 | a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
|
|---|
| 6189 | a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
|
|---|
| 6190 | aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
|
|---|
| 6191 | aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
|
|---|
| 6192 | aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
|
|---|
| 6193 | aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
|
|---|
| 6194 | aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
|
|---|
| 6195 | aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
|
|---|
| 6196 | apollocoff_vec) tb="$tb coff-apollo.lo" ;;
|
|---|
| 6197 | arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
|
|---|
| 6198 | arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
|
|---|
| 6199 | arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
|
|---|
| 6200 | arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
|
|---|
| 6201 | armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
|
|---|
| 6202 | armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
|
|---|
| 6203 | armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
|
|---|
| 6204 | armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
|
|---|
| 6205 | armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
|
|---|
| 6206 | armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
|
|---|
| 6207 | armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
|
|---|
| 6208 | b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
|
|---|
| 6209 | b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
|
|---|
| 6210 | bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6211 | bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
|
|---|
| 6212 | bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
|
|---|
| 6213 | bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
|
|---|
| 6214 | bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
|
|---|
| 6215 | bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
|
|---|
| 6216 | bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
|
|---|
| 6217 | bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
|---|
| 6218 | bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
|
|---|
| 6219 | bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
|
|---|
| 6220 | bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
|
|---|
| 6221 | bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
|
|---|
| 6222 | bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
|
|---|
| 6223 | bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
|
|---|
| 6224 | bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
|
|---|
| 6225 | bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
|
|---|
| 6226 | bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
|
|---|
| 6227 | bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
|
|---|
| 6228 | bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
|
|---|
| 6229 | bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
|
|---|
| 6230 | bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
|
|---|
| 6231 | bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
|
|---|
| 6232 | bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
|
|---|
| 6233 | bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
|
|---|
| 6234 | bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
|
|---|
| 6235 | bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
|
|---|
| 6236 | bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
|
|---|
| 6237 | bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
|
|---|
| 6238 | bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
|
|---|
| 6239 | bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
|
|---|
| 6240 | bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
|
|---|
| 6241 | bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
|---|
| 6242 | bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
|
|---|
| 6243 | bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
|
|---|
| 6244 | bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
|
|---|
| 6245 | bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
|
|---|
| 6246 | bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
|
|---|
| 6247 | bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
|
|---|
| 6248 | bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
|
|---|
| 6249 | bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
|
|---|
| 6250 | bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
|
|---|
| 6251 | bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
|
|---|
| 6252 | bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
|---|
| 6253 | bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
|---|
| 6254 | bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
|---|
| 6255 | bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
|---|
| 6256 | bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
|
|---|
| 6257 | bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
|
|---|
| 6258 | bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
|
|---|
| 6259 | bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
|
|---|
| 6260 | bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
|
|---|
| 6261 | bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
|
|---|
| 6262 | bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
|
|---|
| 6263 | # FIXME: We include cofflink.lo not because it's needed for
|
|---|
| 6264 | # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
|
|---|
| 6265 | # which needs it but does not list it. Should be fixed in right place.
|
|---|
| 6266 | bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
|
|---|
| 6267 | bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
|
|---|
| 6268 | bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
|
|---|
| 6269 | bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
|
|---|
| 6270 | bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
|
|---|
| 6271 | bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
|
|---|
| 6272 | bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
|
|---|
| 6273 | bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
|---|
| 6274 | bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
|
|---|
| 6275 | bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
|---|
| 6276 | bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
|---|
| 6277 | bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
|---|
| 6278 | bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
|
|---|
| 6279 | bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
|---|
| 6280 | bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
|---|
| 6281 | bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
|
|---|
| 6282 | bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
|
|---|
| 6283 | bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
|
|---|
| 6284 | bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
|
|---|
| 6285 | bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
|
|---|
| 6286 | bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
|
|---|
| 6287 | bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
|
|---|
| 6288 | bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
|
|---|
| 6289 | bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
|
|---|
| 6290 | bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
|---|
| 6291 | bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
|
|---|
| 6292 | bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
|
|---|
| 6293 | bfd_elf64_ia64_aix_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
|
|---|
| 6294 | bfd_elf64_ia64_aix_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
|
|---|
| 6295 | bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
|
|---|
| 6296 | bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
|
|---|
| 6297 | bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
|
|---|
| 6298 | bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
|
|---|
| 6299 | bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
|---|
| 6300 | bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
|
|---|
| 6301 | bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
|
|---|
| 6302 | bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
|
|---|
| 6303 | bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
|
|---|
| 6304 | bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
|
|---|
| 6305 | bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
|
|---|
| 6306 | bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
|
|---|
| 6307 | bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
|
|---|
| 6308 | bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
|
|---|
| 6309 | bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
|
|---|
| 6310 | bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;;
|
|---|
| 6311 | bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
|---|
| 6312 | bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
|---|
| 6313 | bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
|
|---|
| 6314 | bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
|
|---|
| 6315 | bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6316 | bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6317 | bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6318 | bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6319 | cris_aout_vec) tb="$tb aout-cris.lo" ;;
|
|---|
| 6320 | demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
|
|---|
| 6321 | ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
|
|---|
| 6322 | ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
|
|---|
| 6323 | ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
|
|---|
| 6324 | ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
|
|---|
| 6325 | go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
|
|---|
| 6326 | go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
|
|---|
| 6327 | h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
|
|---|
| 6328 | h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
|
|---|
| 6329 | host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
|
|---|
| 6330 | hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
|
|---|
| 6331 | hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
|
|---|
| 6332 | i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
|
|---|
| 6333 | i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
|
|---|
| 6334 | i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
|
|---|
| 6335 | i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
|
|---|
| 6336 | i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
|
|---|
| 6337 | i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
|
|---|
| 6338 | i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
|
|---|
| 6339 | i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
|
|---|
| 6340 | i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
|
|---|
| 6341 | i386msdos_vec) tb="$tb i386msdos.lo" ;;
|
|---|
| 6342 | i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
|
|---|
| 6343 | i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
|
|---|
| 6344 | i386aout_emx_vec) tb="$tb i386aoutemx.lo aout32.lo" ;;
|
|---|
| 6345 | i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6346 | i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6347 | i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
|
|---|
| 6348 | icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
|
|---|
| 6349 | icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
|
|---|
| 6350 | ieee_vec) tb="$tb ieee.lo" ;;
|
|---|
| 6351 | m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
|
|---|
| 6352 | m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
|
|---|
| 6353 | m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
|
|---|
| 6354 | m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
|
|---|
| 6355 | m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
|
|---|
| 6356 | m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
|
|---|
| 6357 | m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
|
|---|
| 6358 | m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
|
|---|
| 6359 | m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
|
|---|
| 6360 | m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
|
|---|
| 6361 | m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
|
|---|
| 6362 | mach_o_be_vec) tb="$tb mach-o.lo" ;;
|
|---|
| 6363 | mach_o_le_vec) tb="$tb mach-o.lo" ;;
|
|---|
| 6364 | mach_o_fat_vec) tb="$tb mach-o.lo" ;;
|
|---|
| 6365 | mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6366 | mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6367 | mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6368 | mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6369 | mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6370 | mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6371 | newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
|
|---|
| 6372 | nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
|
|---|
| 6373 | nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
|
|---|
| 6374 | nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
|
|---|
| 6375 | nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
|
|---|
| 6376 | or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
|
|---|
| 6377 | pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
|
|---|
| 6378 | pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
|
|---|
| 6379 | pef_vec) tb="$tb pef.lo" ;;
|
|---|
| 6380 | pef_xlib_vec) tb="$tb pef.lo" ;;
|
|---|
| 6381 | pdp11_aout_vec) tb="$tb pdp11.lo" ;;
|
|---|
| 6382 | pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
|
|---|
| 6383 | ppcboot_vec) tb="$tb ppcboot.lo" ;;
|
|---|
| 6384 | riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
|
|---|
| 6385 | rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
|
|---|
| 6386 | rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
|
|---|
| 6387 | shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
|---|
| 6388 | shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
|---|
| 6389 | shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
|---|
| 6390 | shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
|---|
| 6391 | shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6392 | shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6393 | som_vec) tb="$tb som.lo" ;;
|
|---|
| 6394 | sparccoff_vec) tb="$tb coff-sparc.lo" ;;
|
|---|
| 6395 | sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
|
|---|
| 6396 | sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
|
|---|
| 6397 | sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
|
|---|
| 6398 | sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
|
|---|
| 6399 | sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
|
|---|
| 6400 | sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
|
|---|
| 6401 | sym_vec) tb="$tb xsym.lo" ;;
|
|---|
| 6402 | tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
|
|---|
| 6403 | tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
|
|---|
| 6404 | tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
|
|---|
| 6405 | tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
|
|---|
| 6406 | tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
|
|---|
| 6407 | tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
|
|---|
| 6408 | tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
|
|---|
| 6409 | tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
|
|---|
| 6410 | tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
|
|---|
| 6411 | tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
|
|---|
| 6412 | tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
|
|---|
| 6413 | tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
|
|---|
| 6414 | tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
|
|---|
| 6415 | tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
|
|---|
| 6416 | tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
|
|---|
| 6417 | vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
|
|---|
| 6418 | vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
|
|---|
| 6419 | vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
|
|---|
| 6420 | versados_vec) tb="$tb versados.lo" ;;
|
|---|
| 6421 | vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
|
|---|
| 6422 | vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
|
|---|
| 6423 | w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
|
|---|
| 6424 | we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
|
|---|
| 6425 | z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
|
|---|
| 6426 |
|
|---|
| 6427 | # These appear out of order in targets.c
|
|---|
| 6428 | srec_vec) tb="$tb srec.lo" ;;
|
|---|
| 6429 | symbolsrec_vec) tb="$tb srec.lo" ;;
|
|---|
| 6430 | tekhex_vec) tb="$tb tekhex.lo" ;;
|
|---|
| 6431 | cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
|
|---|
| 6432 | cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
|
|---|
| 6433 |
|
|---|
| 6434 | "") ;;
|
|---|
| 6435 | *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
|
|---|
| 6436 | esac
|
|---|
| 6437 |
|
|---|
| 6438 | if test ${target_size} = 64; then
|
|---|
| 6439 | target64=true
|
|---|
| 6440 | fi
|
|---|
| 6441 | if test x"${vec}" = x"${defvec}"; then
|
|---|
| 6442 | bfd_default_target_size=${target_size}
|
|---|
| 6443 | fi
|
|---|
| 6444 | done
|
|---|
| 6445 |
|
|---|
| 6446 | # Target architecture .o files.
|
|---|
| 6447 | # A couple of CPUs use shorter file names to avoid problems on DOS
|
|---|
| 6448 | # filesystems.
|
|---|
| 6449 | ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
|
|---|
| 6450 |
|
|---|
| 6451 | # Weed out duplicate .o files.
|
|---|
| 6452 | f=""
|
|---|
| 6453 | for i in $tb ; do
|
|---|
| 6454 | case " $f " in
|
|---|
| 6455 | *" $i "*) ;;
|
|---|
| 6456 | *) f="$f $i" ;;
|
|---|
| 6457 | esac
|
|---|
| 6458 | done
|
|---|
| 6459 | tb="$f"
|
|---|
| 6460 |
|
|---|
| 6461 | f=""
|
|---|
| 6462 | for i in $ta ; do
|
|---|
| 6463 | case " $f " in
|
|---|
| 6464 | *" $i "*) ;;
|
|---|
| 6465 | *) f="$f $i" ;;
|
|---|
| 6466 | esac
|
|---|
| 6467 | done
|
|---|
| 6468 | ta="$f"
|
|---|
| 6469 |
|
|---|
| 6470 | bfd_backends="$tb"
|
|---|
| 6471 | bfd_machines="$ta"
|
|---|
| 6472 |
|
|---|
| 6473 | if test x${all_targets} = xtrue ; then
|
|---|
| 6474 | bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
|
|---|
| 6475 | bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
|
|---|
| 6476 | selvecs=
|
|---|
| 6477 | havevecs=
|
|---|
| 6478 | selarchs=
|
|---|
| 6479 | test -n "$assocvecs" &&
|
|---|
| 6480 | assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
|
|---|
| 6481 | else # all_targets is true
|
|---|
| 6482 | # Only set these if they will be nonempty, for the clever echo.
|
|---|
| 6483 | havevecs=
|
|---|
| 6484 | assocvecs=
|
|---|
| 6485 | test -n "$selvecs" &&
|
|---|
| 6486 | havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
|
|---|
| 6487 | test -n "$selvecs" &&
|
|---|
| 6488 | selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
|
|---|
| 6489 | test -n "$selarchs" &&
|
|---|
| 6490 | selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
|
|---|
| 6491 | fi # all_targets is true
|
|---|
| 6492 |
|
|---|
| 6493 | case ${host64}-${target64}-${want64} in
|
|---|
| 6494 | *true*)
|
|---|
| 6495 | wordsize=64
|
|---|
| 6496 | bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
|
|---|
| 6497 | all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
|
|---|
| 6498 | if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
|
|---|
| 6499 | echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
|
|---|
| 6500 | echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
|
|---|
| 6501 | fi
|
|---|
| 6502 | if test -n "$GCC" ; then
|
|---|
| 6503 | bad_64bit_gcc=no;
|
|---|
| 6504 | echo $ac_n "checking for gcc version with buggy 64-bit support""... $ac_c" 1>&6
|
|---|
| 6505 | echo "configure:6506: checking for gcc version with buggy 64-bit support" >&5
|
|---|
| 6506 | # Add more tests for gcc versions with non-working 64-bit support here.
|
|---|
| 6507 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6508 | #line 6509 "configure"
|
|---|
| 6509 | #include "confdefs.h"
|
|---|
| 6510 | :__GNUC__:__GNUC_MINOR__:__i386__:
|
|---|
| 6511 | EOF
|
|---|
| 6512 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 6513 | egrep ": 2 : 91 : 1 :" >/dev/null 2>&1; then
|
|---|
| 6514 | rm -rf conftest*
|
|---|
| 6515 | bad_64bit_gcc=yes;
|
|---|
| 6516 | echo "$ac_t""yes: egcs-1.1.2 on ix86 spotted" 1>&6
|
|---|
| 6517 | else
|
|---|
| 6518 | rm -rf conftest*
|
|---|
| 6519 | echo "$ac_t""no" 1>&6
|
|---|
| 6520 | fi
|
|---|
| 6521 | rm -f conftest*
|
|---|
| 6522 |
|
|---|
| 6523 | if test $bad_64bit_gcc = yes ; then
|
|---|
| 6524 | { echo "configure: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" 1>&2; exit 1; }
|
|---|
| 6525 | fi
|
|---|
| 6526 | fi
|
|---|
| 6527 | ;;
|
|---|
| 6528 | false-false-false)
|
|---|
| 6529 | wordsize=32
|
|---|
| 6530 | bfd_libs='$(BFD32_LIBS)'
|
|---|
| 6531 | all_backends='$(BFD32_BACKENDS)'
|
|---|
| 6532 | ;;
|
|---|
| 6533 | esac
|
|---|
| 6534 |
|
|---|
| 6535 |
|
|---|
| 6536 |
|
|---|
| 6537 |
|
|---|
| 6538 |
|
|---|
| 6539 |
|
|---|
| 6540 |
|
|---|
| 6541 |
|
|---|
| 6542 | tdefaults=""
|
|---|
| 6543 | test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
|
|---|
| 6544 | test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
|
|---|
| 6545 | test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
|
|---|
| 6546 | test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
|
|---|
| 6547 | test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
|
|---|
| 6548 |
|
|---|
| 6549 |
|
|---|
| 6550 | for ac_hdr in unistd.h
|
|---|
| 6551 | do
|
|---|
| 6552 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 6553 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 6554 | echo "configure:6555: checking for $ac_hdr" >&5
|
|---|
| 6555 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 6556 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6557 | else
|
|---|
| 6558 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6559 | #include <sys/types.h>
|
|---|
| 6560 | #line 6561 "configure"
|
|---|
| 6561 | #include "confdefs.h"
|
|---|
| 6562 | #include <$ac_hdr>
|
|---|
| 6563 | EOF
|
|---|
| 6564 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 6565 | { (eval echo configure:6566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 6566 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 6567 | if test -z "$ac_err"; then
|
|---|
| 6568 | rm -rf conftest*
|
|---|
| 6569 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 6570 | else
|
|---|
| 6571 | echo "$ac_err" >&5
|
|---|
| 6572 | echo "configure: failed program was:" >&5
|
|---|
| 6573 | cat conftest.$ac_ext >&5
|
|---|
| 6574 | rm -rf conftest*
|
|---|
| 6575 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 6576 | fi
|
|---|
| 6577 | rm -f conftest*
|
|---|
| 6578 | fi
|
|---|
| 6579 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 6580 | echo "$ac_t""yes" 1>&6
|
|---|
| 6581 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 6582 | cat >> confdefs.h <<EOF
|
|---|
| 6583 | #define $ac_tr_hdr 1
|
|---|
| 6584 | EOF
|
|---|
| 6585 |
|
|---|
| 6586 | else
|
|---|
| 6587 | echo "$ac_t""no" 1>&6
|
|---|
| 6588 | fi
|
|---|
| 6589 | done
|
|---|
| 6590 |
|
|---|
| 6591 | for ac_func in getpagesize
|
|---|
| 6592 | do
|
|---|
| 6593 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 6594 | echo "configure:6595: checking for $ac_func" >&5
|
|---|
| 6595 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 6596 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6597 | else
|
|---|
| 6598 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6599 | #line 6600 "configure"
|
|---|
| 6600 | #include "confdefs.h"
|
|---|
| 6601 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 6602 | which can conflict with char $ac_func(); below. */
|
|---|
| 6603 | #include <assert.h>
|
|---|
| 6604 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 6605 | /* We use char because int might match the return type of a gcc2
|
|---|
| 6606 | builtin and then its argument prototype would still apply. */
|
|---|
| 6607 | char $ac_func();
|
|---|
| 6608 |
|
|---|
| 6609 | int main() {
|
|---|
| 6610 |
|
|---|
| 6611 | /* The GNU C library defines this for functions which it implements
|
|---|
| 6612 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 6613 | something starting with __ and the normal name is an alias. */
|
|---|
| 6614 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 6615 | choke me
|
|---|
| 6616 | #else
|
|---|
| 6617 | $ac_func();
|
|---|
| 6618 | #endif
|
|---|
| 6619 |
|
|---|
| 6620 | ; return 0; }
|
|---|
| 6621 | EOF
|
|---|
| 6622 | if { (eval echo configure:6623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6623 | rm -rf conftest*
|
|---|
| 6624 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 6625 | else
|
|---|
| 6626 | echo "configure: failed program was:" >&5
|
|---|
| 6627 | cat conftest.$ac_ext >&5
|
|---|
| 6628 | rm -rf conftest*
|
|---|
| 6629 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 6630 | fi
|
|---|
| 6631 | rm -f conftest*
|
|---|
| 6632 | fi
|
|---|
| 6633 |
|
|---|
| 6634 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 6635 | echo "$ac_t""yes" 1>&6
|
|---|
| 6636 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 6637 | cat >> confdefs.h <<EOF
|
|---|
| 6638 | #define $ac_tr_func 1
|
|---|
| 6639 | EOF
|
|---|
| 6640 |
|
|---|
| 6641 | else
|
|---|
| 6642 | echo "$ac_t""no" 1>&6
|
|---|
| 6643 | fi
|
|---|
| 6644 | done
|
|---|
| 6645 |
|
|---|
| 6646 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
|---|
| 6647 | echo "configure:6648: checking for working mmap" >&5
|
|---|
| 6648 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
|---|
| 6649 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6650 | else
|
|---|
| 6651 | if test "$cross_compiling" = yes; then
|
|---|
| 6652 | ac_cv_func_mmap_fixed_mapped=no
|
|---|
| 6653 | else
|
|---|
| 6654 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6655 | #line 6656 "configure"
|
|---|
| 6656 | #include "confdefs.h"
|
|---|
| 6657 |
|
|---|
| 6658 | /* Thanks to Mike Haertel and Jim Avera for this test.
|
|---|
| 6659 | Here is a matrix of mmap possibilities:
|
|---|
| 6660 | mmap private not fixed
|
|---|
| 6661 | mmap private fixed at somewhere currently unmapped
|
|---|
| 6662 | mmap private fixed at somewhere already mapped
|
|---|
| 6663 | mmap shared not fixed
|
|---|
| 6664 | mmap shared fixed at somewhere currently unmapped
|
|---|
| 6665 | mmap shared fixed at somewhere already mapped
|
|---|
| 6666 | For private mappings, we should verify that changes cannot be read()
|
|---|
| 6667 | back from the file, nor mmap's back from the file at a different
|
|---|
| 6668 | address. (There have been systems where private was not correctly
|
|---|
| 6669 | implemented like the infamous i386 svr4.0, and systems where the
|
|---|
| 6670 | VM page cache was not coherent with the filesystem buffer cache
|
|---|
| 6671 | like early versions of FreeBSD and possibly contemporary NetBSD.)
|
|---|
| 6672 | For shared mappings, we should conversely verify that changes get
|
|---|
| 6673 | propogated back to all the places they're supposed to be.
|
|---|
| 6674 |
|
|---|
| 6675 | Grep wants private fixed already mapped.
|
|---|
| 6676 | The main things grep needs to know about mmap are:
|
|---|
| 6677 | * does it exist and is it safe to write into the mmap'd area
|
|---|
| 6678 | * how to use it (BSD variants) */
|
|---|
| 6679 | #include <sys/types.h>
|
|---|
| 6680 | #include <fcntl.h>
|
|---|
| 6681 | #include <sys/mman.h>
|
|---|
| 6682 |
|
|---|
| 6683 | /* This mess was copied from the GNU getpagesize.h. */
|
|---|
| 6684 | #ifndef HAVE_GETPAGESIZE
|
|---|
| 6685 | # ifdef HAVE_UNISTD_H
|
|---|
| 6686 | # include <unistd.h>
|
|---|
| 6687 | # endif
|
|---|
| 6688 |
|
|---|
| 6689 | /* Assume that all systems that can run configure have sys/param.h. */
|
|---|
| 6690 | # ifndef HAVE_SYS_PARAM_H
|
|---|
| 6691 | # define HAVE_SYS_PARAM_H 1
|
|---|
| 6692 | # endif
|
|---|
| 6693 |
|
|---|
| 6694 | # ifdef _SC_PAGESIZE
|
|---|
| 6695 | # define getpagesize() sysconf(_SC_PAGESIZE)
|
|---|
| 6696 | # else /* no _SC_PAGESIZE */
|
|---|
| 6697 | # ifdef HAVE_SYS_PARAM_H
|
|---|
| 6698 | # include <sys/param.h>
|
|---|
| 6699 | # ifdef EXEC_PAGESIZE
|
|---|
| 6700 | # define getpagesize() EXEC_PAGESIZE
|
|---|
| 6701 | # else /* no EXEC_PAGESIZE */
|
|---|
| 6702 | # ifdef NBPG
|
|---|
| 6703 | # define getpagesize() NBPG * CLSIZE
|
|---|
| 6704 | # ifndef CLSIZE
|
|---|
| 6705 | # define CLSIZE 1
|
|---|
| 6706 | # endif /* no CLSIZE */
|
|---|
| 6707 | # else /* no NBPG */
|
|---|
| 6708 | # ifdef NBPC
|
|---|
| 6709 | # define getpagesize() NBPC
|
|---|
| 6710 | # else /* no NBPC */
|
|---|
| 6711 | # ifdef PAGESIZE
|
|---|
| 6712 | # define getpagesize() PAGESIZE
|
|---|
| 6713 | # endif /* PAGESIZE */
|
|---|
| 6714 | # endif /* no NBPC */
|
|---|
| 6715 | # endif /* no NBPG */
|
|---|
| 6716 | # endif /* no EXEC_PAGESIZE */
|
|---|
| 6717 | # else /* no HAVE_SYS_PARAM_H */
|
|---|
| 6718 | # define getpagesize() 8192 /* punt totally */
|
|---|
| 6719 | # endif /* no HAVE_SYS_PARAM_H */
|
|---|
| 6720 | # endif /* no _SC_PAGESIZE */
|
|---|
| 6721 |
|
|---|
| 6722 | #endif /* no HAVE_GETPAGESIZE */
|
|---|
| 6723 |
|
|---|
| 6724 | #ifdef __cplusplus
|
|---|
| 6725 | extern "C" { void *malloc(unsigned); }
|
|---|
| 6726 | #else
|
|---|
| 6727 | char *malloc();
|
|---|
| 6728 | #endif
|
|---|
| 6729 |
|
|---|
| 6730 | int
|
|---|
| 6731 | main()
|
|---|
| 6732 | {
|
|---|
| 6733 | char *data, *data2, *data3;
|
|---|
| 6734 | int i, pagesize;
|
|---|
| 6735 | int fd;
|
|---|
| 6736 |
|
|---|
| 6737 | pagesize = getpagesize();
|
|---|
| 6738 |
|
|---|
| 6739 | /*
|
|---|
| 6740 | * First, make a file with some known garbage in it.
|
|---|
| 6741 | */
|
|---|
| 6742 | data = malloc(pagesize);
|
|---|
| 6743 | if (!data)
|
|---|
| 6744 | exit(1);
|
|---|
| 6745 | for (i = 0; i < pagesize; ++i)
|
|---|
| 6746 | *(data + i) = rand();
|
|---|
| 6747 | umask(0);
|
|---|
| 6748 | fd = creat("conftestmmap", 0600);
|
|---|
| 6749 | if (fd < 0)
|
|---|
| 6750 | exit(1);
|
|---|
| 6751 | if (write(fd, data, pagesize) != pagesize)
|
|---|
| 6752 | exit(1);
|
|---|
| 6753 | close(fd);
|
|---|
| 6754 |
|
|---|
| 6755 | /*
|
|---|
| 6756 | * Next, try to mmap the file at a fixed address which
|
|---|
| 6757 | * already has something else allocated at it. If we can,
|
|---|
| 6758 | * also make sure that we see the same garbage.
|
|---|
| 6759 | */
|
|---|
| 6760 | fd = open("conftestmmap", O_RDWR);
|
|---|
| 6761 | if (fd < 0)
|
|---|
| 6762 | exit(1);
|
|---|
| 6763 | data2 = malloc(2 * pagesize);
|
|---|
| 6764 | if (!data2)
|
|---|
| 6765 | exit(1);
|
|---|
| 6766 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
|---|
| 6767 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
|---|
| 6768 | MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
|---|
| 6769 | exit(1);
|
|---|
| 6770 | for (i = 0; i < pagesize; ++i)
|
|---|
| 6771 | if (*(data + i) != *(data2 + i))
|
|---|
| 6772 | exit(1);
|
|---|
| 6773 |
|
|---|
| 6774 | /*
|
|---|
| 6775 | * Finally, make sure that changes to the mapped area
|
|---|
| 6776 | * do not percolate back to the file as seen by read().
|
|---|
| 6777 | * (This is a bug on some variants of i386 svr4.0.)
|
|---|
| 6778 | */
|
|---|
| 6779 | for (i = 0; i < pagesize; ++i)
|
|---|
| 6780 | *(data2 + i) = *(data2 + i) + 1;
|
|---|
| 6781 | data3 = malloc(pagesize);
|
|---|
| 6782 | if (!data3)
|
|---|
| 6783 | exit(1);
|
|---|
| 6784 | if (read(fd, data3, pagesize) != pagesize)
|
|---|
| 6785 | exit(1);
|
|---|
| 6786 | for (i = 0; i < pagesize; ++i)
|
|---|
| 6787 | if (*(data + i) != *(data3 + i))
|
|---|
| 6788 | exit(1);
|
|---|
| 6789 | close(fd);
|
|---|
| 6790 | unlink("conftestmmap");
|
|---|
| 6791 | exit(0);
|
|---|
| 6792 | }
|
|---|
| 6793 |
|
|---|
| 6794 | EOF
|
|---|
| 6795 | if { (eval echo configure:6796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 6796 | then
|
|---|
| 6797 | ac_cv_func_mmap_fixed_mapped=yes
|
|---|
| 6798 | else
|
|---|
| 6799 | echo "configure: failed program was:" >&5
|
|---|
| 6800 | cat conftest.$ac_ext >&5
|
|---|
| 6801 | rm -fr conftest*
|
|---|
| 6802 | ac_cv_func_mmap_fixed_mapped=no
|
|---|
| 6803 | fi
|
|---|
| 6804 | rm -fr conftest*
|
|---|
| 6805 | fi
|
|---|
| 6806 |
|
|---|
| 6807 | fi
|
|---|
| 6808 |
|
|---|
| 6809 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
|---|
| 6810 | if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
|---|
| 6811 | cat >> confdefs.h <<\EOF
|
|---|
| 6812 | #define HAVE_MMAP 1
|
|---|
| 6813 | EOF
|
|---|
| 6814 |
|
|---|
| 6815 | fi
|
|---|
| 6816 |
|
|---|
| 6817 | for ac_func in madvise mprotect
|
|---|
| 6818 | do
|
|---|
| 6819 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 6820 | echo "configure:6821: checking for $ac_func" >&5
|
|---|
| 6821 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 6822 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6823 | else
|
|---|
| 6824 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6825 | #line 6826 "configure"
|
|---|
| 6826 | #include "confdefs.h"
|
|---|
| 6827 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 6828 | which can conflict with char $ac_func(); below. */
|
|---|
| 6829 | #include <assert.h>
|
|---|
| 6830 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 6831 | /* We use char because int might match the return type of a gcc2
|
|---|
| 6832 | builtin and then its argument prototype would still apply. */
|
|---|
| 6833 | char $ac_func();
|
|---|
| 6834 |
|
|---|
| 6835 | int main() {
|
|---|
| 6836 |
|
|---|
| 6837 | /* The GNU C library defines this for functions which it implements
|
|---|
| 6838 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 6839 | something starting with __ and the normal name is an alias. */
|
|---|
| 6840 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 6841 | choke me
|
|---|
| 6842 | #else
|
|---|
| 6843 | $ac_func();
|
|---|
| 6844 | #endif
|
|---|
| 6845 |
|
|---|
| 6846 | ; return 0; }
|
|---|
| 6847 | EOF
|
|---|
| 6848 | if { (eval echo configure:6849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6849 | rm -rf conftest*
|
|---|
| 6850 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 6851 | else
|
|---|
| 6852 | echo "configure: failed program was:" >&5
|
|---|
| 6853 | cat conftest.$ac_ext >&5
|
|---|
| 6854 | rm -rf conftest*
|
|---|
| 6855 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 6856 | fi
|
|---|
| 6857 | rm -f conftest*
|
|---|
| 6858 | fi
|
|---|
| 6859 |
|
|---|
| 6860 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 6861 | echo "$ac_t""yes" 1>&6
|
|---|
| 6862 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 6863 | cat >> confdefs.h <<EOF
|
|---|
| 6864 | #define $ac_tr_func 1
|
|---|
| 6865 | EOF
|
|---|
| 6866 |
|
|---|
| 6867 | else
|
|---|
| 6868 | echo "$ac_t""no" 1>&6
|
|---|
| 6869 | fi
|
|---|
| 6870 | done
|
|---|
| 6871 |
|
|---|
| 6872 | case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
|
|---|
| 6873 | true+yes ) cat >> confdefs.h <<\EOF
|
|---|
| 6874 | #define USE_MMAP 1
|
|---|
| 6875 | EOF
|
|---|
| 6876 | ;;
|
|---|
| 6877 | esac
|
|---|
| 6878 |
|
|---|
| 6879 | rm -f doc/config.status
|
|---|
| 6880 | trap '' 1 2 15
|
|---|
| 6881 | cat > confcache <<\EOF
|
|---|
| 6882 | # This file is a shell script that caches the results of configure
|
|---|
| 6883 | # tests run on this system so they can be shared between configure
|
|---|
| 6884 | # scripts and configure runs. It is not useful on other systems.
|
|---|
| 6885 | # If it contains results you don't want to keep, you may remove or edit it.
|
|---|
| 6886 | #
|
|---|
| 6887 | # By default, configure uses ./config.cache as the cache file,
|
|---|
| 6888 | # creating it if it does not exist already. You can give configure
|
|---|
| 6889 | # the --cache-file=FILE option to use a different cache file; that is
|
|---|
| 6890 | # what configure does when it calls configure scripts in
|
|---|
| 6891 | # subdirectories, so they share the cache.
|
|---|
| 6892 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|---|
| 6893 | # config.status only pays attention to the cache file if you give it the
|
|---|
| 6894 | # --recheck option to rerun configure.
|
|---|
| 6895 | #
|
|---|
| 6896 | EOF
|
|---|
| 6897 | # The following way of writing the cache mishandles newlines in values,
|
|---|
| 6898 | # but we know of no workaround that is simple, portable, and efficient.
|
|---|
| 6899 | # So, don't put newlines in cache variables' values.
|
|---|
| 6900 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
|---|
| 6901 | # and sets the high bit in the cache file unless we assign to the vars.
|
|---|
| 6902 | (set) 2>&1 |
|
|---|
| 6903 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|---|
| 6904 | *ac_space=\ *)
|
|---|
| 6905 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
|---|
| 6906 | # turns \\\\ into \\, and sed turns \\ into \).
|
|---|
| 6907 | sed -n \
|
|---|
| 6908 | -e "s/'/'\\\\''/g" \
|
|---|
| 6909 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|---|
| 6910 | ;;
|
|---|
| 6911 | *)
|
|---|
| 6912 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|---|
| 6913 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|---|
| 6914 | ;;
|
|---|
| 6915 | esac >> confcache
|
|---|
| 6916 | if cmp -s $cache_file confcache; then
|
|---|
| 6917 | :
|
|---|
| 6918 | else
|
|---|
| 6919 | if test -w $cache_file; then
|
|---|
| 6920 | echo "updating cache $cache_file"
|
|---|
| 6921 | cat confcache > $cache_file
|
|---|
| 6922 | else
|
|---|
| 6923 | echo "not updating unwritable cache $cache_file"
|
|---|
| 6924 | fi
|
|---|
| 6925 | fi
|
|---|
| 6926 | rm -f confcache
|
|---|
| 6927 |
|
|---|
| 6928 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|---|
| 6929 |
|
|---|
| 6930 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|---|
| 6931 | # Let make expand exec_prefix.
|
|---|
| 6932 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|---|
| 6933 |
|
|---|
| 6934 | # Any assignment to VPATH causes Sun make to only execute
|
|---|
| 6935 | # the first set of double-colon rules, so remove it if not needed.
|
|---|
| 6936 | # If there is a colon in the path, we need to keep it.
|
|---|
| 6937 | if test "x$srcdir" = x.; then
|
|---|
| 6938 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|---|
| 6939 | fi
|
|---|
| 6940 |
|
|---|
| 6941 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|---|
| 6942 |
|
|---|
| 6943 | DEFS=-DHAVE_CONFIG_H
|
|---|
| 6944 |
|
|---|
| 6945 | # Without the "./", some shells look in PATH for config.status.
|
|---|
| 6946 | : ${CONFIG_STATUS=./config.status}
|
|---|
| 6947 |
|
|---|
| 6948 | echo creating $CONFIG_STATUS
|
|---|
| 6949 | rm -f $CONFIG_STATUS
|
|---|
| 6950 | cat > $CONFIG_STATUS <<EOF
|
|---|
| 6951 | #! /bin/sh
|
|---|
| 6952 | # Generated automatically by configure.
|
|---|
| 6953 | # Run this file to recreate the current configuration.
|
|---|
| 6954 | # This directory was configured as follows,
|
|---|
| 6955 | EOF
|
|---|
| 6956 | echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
|
|---|
| 6957 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 6958 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|---|
| 6959 | #
|
|---|
| 6960 | # $0 $ac_configure_args
|
|---|
| 6961 | #
|
|---|
| 6962 | # Compiler output produced by configure, useful for debugging
|
|---|
| 6963 | # configure, is in ./config.log if it exists.
|
|---|
| 6964 |
|
|---|
| 6965 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
|---|
| 6966 | for ac_option
|
|---|
| 6967 | do
|
|---|
| 6968 | case "\$ac_option" in
|
|---|
| 6969 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|---|
| 6970 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|---|
| 6971 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
|---|
| 6972 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
|---|
| 6973 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
|---|
| 6974 | exit 0 ;;
|
|---|
| 6975 | -help | --help | --hel | --he | --h)
|
|---|
| 6976 | echo "\$ac_cs_usage"; exit 0 ;;
|
|---|
| 6977 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
|---|
| 6978 | esac
|
|---|
| 6979 | done
|
|---|
| 6980 |
|
|---|
| 6981 | ac_given_srcdir=$srcdir
|
|---|
| 6982 | ac_given_INSTALL="$INSTALL"
|
|---|
| 6983 | PATHIFS="$PATH_IFS"
|
|---|
| 6984 |
|
|---|
| 6985 | trap 'rm -fr `echo "Makefile doc/Makefile bfd-in3.h:bfd-in2.h bfdver.h:version.h po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
|---|
| 6986 | EOF
|
|---|
| 6987 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 6988 |
|
|---|
| 6989 | # Protect against being on the right side of a sed subst in config.status.
|
|---|
| 6990 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|---|
| 6991 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
|---|
| 6992 | $ac_vpsub
|
|---|
| 6993 | $extrasub
|
|---|
| 6994 | s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
|
|---|
| 6995 | s%@SHELL@%$SHELL%g
|
|---|
| 6996 | s%@CFLAGS@%$CFLAGS%g
|
|---|
| 6997 | s%@CPPFLAGS@%$CPPFLAGS%g
|
|---|
| 6998 | s%@CXXFLAGS@%$CXXFLAGS%g
|
|---|
| 6999 | s%@FFLAGS@%$FFLAGS%g
|
|---|
| 7000 | s%@DEFS@%$DEFS%g
|
|---|
| 7001 | s%@LDFLAGS@%$LDFLAGS%g
|
|---|
| 7002 | s%@LIBS@%$LIBS%g
|
|---|
| 7003 | s%@exec_prefix@%$exec_prefix%g
|
|---|
| 7004 | s%@prefix@%$prefix%g
|
|---|
| 7005 | s%@program_transform_name@%$program_transform_name%g
|
|---|
| 7006 | s%@bindir@%$bindir%g
|
|---|
| 7007 | s%@sbindir@%$sbindir%g
|
|---|
| 7008 | s%@libexecdir@%$libexecdir%g
|
|---|
| 7009 | s%@datadir@%$datadir%g
|
|---|
| 7010 | s%@sysconfdir@%$sysconfdir%g
|
|---|
| 7011 | s%@sharedstatedir@%$sharedstatedir%g
|
|---|
| 7012 | s%@localstatedir@%$localstatedir%g
|
|---|
| 7013 | s%@libdir@%$libdir%g
|
|---|
| 7014 | s%@includedir@%$includedir%g
|
|---|
| 7015 | s%@oldincludedir@%$oldincludedir%g
|
|---|
| 7016 | s%@infodir@%$infodir%g
|
|---|
| 7017 | s%@mandir@%$mandir%g
|
|---|
| 7018 | s%@PATH_IFS@%$PATH_IFS%g
|
|---|
| 7019 | s%@EXEEXT@%$EXEEXT%g
|
|---|
| 7020 | s%@host@%$host%g
|
|---|
| 7021 | s%@host_alias@%$host_alias%g
|
|---|
| 7022 | s%@host_cpu@%$host_cpu%g
|
|---|
| 7023 | s%@host_vendor@%$host_vendor%g
|
|---|
| 7024 | s%@host_os@%$host_os%g
|
|---|
| 7025 | s%@target@%$target%g
|
|---|
| 7026 | s%@target_alias@%$target_alias%g
|
|---|
| 7027 | s%@target_cpu@%$target_cpu%g
|
|---|
| 7028 | s%@target_vendor@%$target_vendor%g
|
|---|
| 7029 | s%@target_os@%$target_os%g
|
|---|
| 7030 | s%@build@%$build%g
|
|---|
| 7031 | s%@build_alias@%$build_alias%g
|
|---|
| 7032 | s%@build_cpu@%$build_cpu%g
|
|---|
| 7033 | s%@build_vendor@%$build_vendor%g
|
|---|
| 7034 | s%@build_os@%$build_os%g
|
|---|
| 7035 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
|---|
| 7036 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
|---|
| 7037 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|---|
| 7038 | s%@PACKAGE@%$PACKAGE%g
|
|---|
| 7039 | s%@VERSION@%$VERSION%g
|
|---|
| 7040 | s%@ACLOCAL@%$ACLOCAL%g
|
|---|
| 7041 | s%@AUTOCONF@%$AUTOCONF%g
|
|---|
| 7042 | s%@AUTOMAKE@%$AUTOMAKE%g
|
|---|
| 7043 | s%@AUTOHEADER@%$AUTOHEADER%g
|
|---|
| 7044 | s%@MAKEINFO@%$MAKEINFO%g
|
|---|
| 7045 | s%@SET_MAKE@%$SET_MAKE%g
|
|---|
| 7046 | s%@bfd_version@%$bfd_version%g
|
|---|
| 7047 | s%@bfd_version_string@%$bfd_version_string%g
|
|---|
| 7048 | s%@AR@%$AR%g
|
|---|
| 7049 | s%@RANLIB@%$RANLIB%g
|
|---|
| 7050 | s%@CC@%$CC%g
|
|---|
| 7051 | s%@LN_S@%$LN_S%g
|
|---|
| 7052 | s%@OBJEXT@%$OBJEXT%g
|
|---|
| 7053 | s%@STRIP@%$STRIP%g
|
|---|
| 7054 | s%@LIBTOOL@%$LIBTOOL%g
|
|---|
| 7055 | s%@WARN_CFLAGS@%$WARN_CFLAGS%g
|
|---|
| 7056 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
|
|---|
| 7057 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
|
|---|
| 7058 | s%@MAINT@%$MAINT%g
|
|---|
| 7059 | s%@INSTALL_LIBBFD_TRUE@%$INSTALL_LIBBFD_TRUE%g
|
|---|
| 7060 | s%@INSTALL_LIBBFD_FALSE@%$INSTALL_LIBBFD_FALSE%g
|
|---|
| 7061 | s%@bfdlibdir@%$bfdlibdir%g
|
|---|
| 7062 | s%@bfdincludedir@%$bfdincludedir%g
|
|---|
| 7063 | s%@CPP@%$CPP%g
|
|---|
| 7064 | s%@ALLOCA@%$ALLOCA%g
|
|---|
| 7065 | s%@USE_NLS@%$USE_NLS%g
|
|---|
| 7066 | s%@MSGFMT@%$MSGFMT%g
|
|---|
| 7067 | s%@GMSGFMT@%$GMSGFMT%g
|
|---|
| 7068 | s%@XGETTEXT@%$XGETTEXT%g
|
|---|
| 7069 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
|
|---|
| 7070 | s%@CATALOGS@%$CATALOGS%g
|
|---|
| 7071 | s%@CATOBJEXT@%$CATOBJEXT%g
|
|---|
| 7072 | s%@DATADIRNAME@%$DATADIRNAME%g
|
|---|
| 7073 | s%@GMOFILES@%$GMOFILES%g
|
|---|
| 7074 | s%@INSTOBJEXT@%$INSTOBJEXT%g
|
|---|
| 7075 | s%@INTLDEPS@%$INTLDEPS%g
|
|---|
| 7076 | s%@INTLLIBS@%$INTLLIBS%g
|
|---|
| 7077 | s%@INTLOBJS@%$INTLOBJS%g
|
|---|
| 7078 | s%@POFILES@%$POFILES%g
|
|---|
| 7079 | s%@POSUB@%$POSUB%g
|
|---|
| 7080 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
|
|---|
| 7081 | s%@GT_NO@%$GT_NO%g
|
|---|
| 7082 | s%@GT_YES@%$GT_YES%g
|
|---|
| 7083 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
|
|---|
| 7084 | s%@l@%$l%g
|
|---|
| 7085 | s%@HDEFINES@%$HDEFINES%g
|
|---|
| 7086 | s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
|
|---|
| 7087 | s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
|
|---|
| 7088 | s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
|
|---|
| 7089 | s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
|
|---|
| 7090 | s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
|
|---|
| 7091 | s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
|
|---|
| 7092 | s%@COREFILE@%$COREFILE%g
|
|---|
| 7093 | s%@COREFLAG@%$COREFLAG%g
|
|---|
| 7094 | s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
|
|---|
| 7095 | s%@WIN32LIBADD@%$WIN32LIBADD%g
|
|---|
| 7096 | s%@TDEFINES@%$TDEFINES%g
|
|---|
| 7097 | s%@wordsize@%$wordsize%g
|
|---|
| 7098 | s%@bfd_libs@%$bfd_libs%g
|
|---|
| 7099 | s%@all_backends@%$all_backends%g
|
|---|
| 7100 | s%@bfd_backends@%$bfd_backends%g
|
|---|
| 7101 | s%@bfd_machines@%$bfd_machines%g
|
|---|
| 7102 | s%@bfd_default_target_size@%$bfd_default_target_size%g
|
|---|
| 7103 | s%@tdefaults@%$tdefaults%g
|
|---|
| 7104 |
|
|---|
| 7105 | CEOF
|
|---|
| 7106 | EOF
|
|---|
| 7107 |
|
|---|
| 7108 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 7109 |
|
|---|
| 7110 | # Split the substitutions into bite-sized pieces for seds with
|
|---|
| 7111 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
|---|
| 7112 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|---|
| 7113 | ac_file=1 # Number of current file.
|
|---|
| 7114 | ac_beg=1 # First line for current file.
|
|---|
| 7115 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|---|
| 7116 | ac_more_lines=:
|
|---|
| 7117 | ac_sed_cmds=""
|
|---|
| 7118 | while $ac_more_lines; do
|
|---|
| 7119 | if test $ac_beg -gt 1; then
|
|---|
| 7120 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|---|
| 7121 | else
|
|---|
| 7122 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|---|
| 7123 | fi
|
|---|
| 7124 | if test ! -s conftest.s$ac_file; then
|
|---|
| 7125 | ac_more_lines=false
|
|---|
| 7126 | rm -f conftest.s$ac_file
|
|---|
| 7127 | else
|
|---|
| 7128 | if test -z "$ac_sed_cmds"; then
|
|---|
| 7129 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
|---|
| 7130 | else
|
|---|
| 7131 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|---|
| 7132 | fi
|
|---|
| 7133 | ac_file=`expr $ac_file + 1`
|
|---|
| 7134 | ac_beg=$ac_end
|
|---|
| 7135 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|---|
| 7136 | fi
|
|---|
| 7137 | done
|
|---|
| 7138 | if test -z "$ac_sed_cmds"; then
|
|---|
| 7139 | ac_sed_cmds=cat
|
|---|
| 7140 | fi
|
|---|
| 7141 | EOF
|
|---|
| 7142 |
|
|---|
| 7143 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 7144 |
|
|---|
| 7145 | CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h bfdver.h:version.h po/Makefile.in:po/Make-in"}
|
|---|
| 7146 | EOF
|
|---|
| 7147 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 7148 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|---|
| 7149 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|---|
| 7150 | case "$ac_file" in
|
|---|
| 7151 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|---|
| 7152 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|---|
| 7153 | *) ac_file_in="${ac_file}.in" ;;
|
|---|
| 7154 | esac
|
|---|
| 7155 |
|
|---|
| 7156 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|---|
| 7157 |
|
|---|
| 7158 | # Remove last slash and all that follows it. Not all systems have dirname.
|
|---|
| 7159 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|---|
| 7160 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|---|
| 7161 | # The file is in a subdirectory.
|
|---|
| 7162 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|---|
| 7163 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|---|
| 7164 | # A "../" for each directory in $ac_dir_suffix.
|
|---|
| 7165 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|---|
| 7166 | else
|
|---|
| 7167 | ac_dir_suffix= ac_dots=
|
|---|
| 7168 | fi
|
|---|
| 7169 |
|
|---|
| 7170 | case "$ac_given_srcdir" in
|
|---|
| 7171 | .) srcdir=.
|
|---|
| 7172 | if test -z "$ac_dots"; then top_srcdir=.
|
|---|
| 7173 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|---|
| 7174 | /* | [A-Za-z]:*)
|
|---|
| 7175 | srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|---|
| 7176 | *) # Relative path.
|
|---|
| 7177 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|---|
| 7178 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|---|
| 7179 | esac
|
|---|
| 7180 |
|
|---|
| 7181 | case "$ac_given_INSTALL" in
|
|---|
| 7182 | [/$]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
|
|---|
| 7183 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|---|
| 7184 | esac
|
|---|
| 7185 |
|
|---|
| 7186 | echo creating "$ac_file"
|
|---|
| 7187 | rm -f "$ac_file"
|
|---|
| 7188 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|---|
| 7189 | case "$ac_file" in
|
|---|
| 7190 | *Makefile*) ac_comsub="1i\\
|
|---|
| 7191 | # $configure_input" ;;
|
|---|
| 7192 | *) ac_comsub= ;;
|
|---|
| 7193 | esac
|
|---|
| 7194 |
|
|---|
| 7195 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
|
|---|
| 7196 | sed -e "$ac_comsub
|
|---|
| 7197 | s%@configure_input@%$configure_input%g
|
|---|
| 7198 | s%@srcdir@%$srcdir%g
|
|---|
| 7199 | s%@top_srcdir@%$top_srcdir%g
|
|---|
| 7200 | s%@INSTALL@%$INSTALL%g
|
|---|
| 7201 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
|---|
| 7202 | fi; done
|
|---|
| 7203 | rm -f conftest.s*
|
|---|
| 7204 |
|
|---|
| 7205 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|---|
| 7206 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
|---|
| 7207 | #
|
|---|
| 7208 | # ac_d sets the value in "#define NAME VALUE" lines.
|
|---|
| 7209 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|---|
| 7210 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
|---|
| 7211 | ac_dC='\3'
|
|---|
| 7212 | ac_dD='%g'
|
|---|
| 7213 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
|---|
| 7214 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|---|
| 7215 | ac_uB='\([ ]\)%\1#\2define\3'
|
|---|
| 7216 | ac_uC=' '
|
|---|
| 7217 | ac_uD='\4%g'
|
|---|
| 7218 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
|---|
| 7219 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|---|
| 7220 | ac_eB='$%\1#\2define\3'
|
|---|
| 7221 | ac_eC=' '
|
|---|
| 7222 | ac_eD='%g'
|
|---|
| 7223 |
|
|---|
| 7224 | if test "${CONFIG_HEADERS+set}" != set; then
|
|---|
| 7225 | EOF
|
|---|
| 7226 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 7227 | CONFIG_HEADERS="config.h:config.in"
|
|---|
| 7228 | EOF
|
|---|
| 7229 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 7230 | fi
|
|---|
| 7231 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|---|
| 7232 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|---|
| 7233 | case "$ac_file" in
|
|---|
| 7234 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|---|
| 7235 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|---|
| 7236 | *) ac_file_in="${ac_file}.in" ;;
|
|---|
| 7237 | esac
|
|---|
| 7238 |
|
|---|
| 7239 | echo creating $ac_file
|
|---|
| 7240 |
|
|---|
| 7241 | rm -f conftest.frag conftest.in conftest.out
|
|---|
| 7242 | # kso the other way around might work better with drive letters and such.
|
|---|
| 7243 | # ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|---|
| 7244 | ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
|
|---|
| 7245 | cat $ac_file_inputs > conftest.in
|
|---|
| 7246 |
|
|---|
| 7247 | EOF
|
|---|
| 7248 |
|
|---|
| 7249 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
|---|
| 7250 | # the proper values into config.h.in to produce config.h. And first:
|
|---|
| 7251 | # Protect against being on the right side of a sed subst in config.status.
|
|---|
| 7252 | # Protect against being in an unquoted here document in config.status.
|
|---|
| 7253 | rm -f conftest.vals
|
|---|
| 7254 | cat > conftest.hdr <<\EOF
|
|---|
| 7255 | s/[\\&%]/\\&/g
|
|---|
| 7256 | s%[\\$`]%\\&%g
|
|---|
| 7257 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|---|
| 7258 | s%ac_d%ac_u%gp
|
|---|
| 7259 | s%ac_u%ac_e%gp
|
|---|
| 7260 | EOF
|
|---|
| 7261 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|---|
| 7262 | rm -f conftest.hdr
|
|---|
| 7263 |
|
|---|
| 7264 | # This sed command replaces #undef with comments. This is necessary, for
|
|---|
| 7265 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|---|
| 7266 | # on some systems where configure will not decide to define it.
|
|---|
| 7267 | cat >> conftest.vals <<\EOF
|
|---|
| 7268 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|---|
| 7269 | EOF
|
|---|
| 7270 |
|
|---|
| 7271 | # Break up conftest.vals because some shells have a limit on
|
|---|
| 7272 | # the size of here documents, and old seds have small limits too.
|
|---|
| 7273 |
|
|---|
| 7274 | rm -f conftest.tail
|
|---|
| 7275 | while :
|
|---|
| 7276 | do
|
|---|
| 7277 | ac_lines=`grep -c . conftest.vals`
|
|---|
| 7278 | # grep -c gives empty output for an empty file on some AIX systems.
|
|---|
| 7279 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|---|
| 7280 | # Write a limited-size here document to conftest.frag.
|
|---|
| 7281 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|---|
| 7282 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|---|
| 7283 | echo 'CEOF
|
|---|
| 7284 | sed -f conftest.frag conftest.in > conftest.out
|
|---|
| 7285 | rm -f conftest.in
|
|---|
| 7286 | mv conftest.out conftest.in
|
|---|
| 7287 | ' >> $CONFIG_STATUS
|
|---|
| 7288 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|---|
| 7289 | rm -f conftest.vals
|
|---|
| 7290 | mv conftest.tail conftest.vals
|
|---|
| 7291 | done
|
|---|
| 7292 | rm -f conftest.vals
|
|---|
| 7293 |
|
|---|
| 7294 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 7295 | rm -f conftest.frag conftest.h
|
|---|
| 7296 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
|---|
| 7297 | cat conftest.in >> conftest.h
|
|---|
| 7298 | rm -f conftest.in
|
|---|
| 7299 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|---|
| 7300 | echo "$ac_file is unchanged"
|
|---|
| 7301 | rm -f conftest.h
|
|---|
| 7302 | else
|
|---|
| 7303 | # Remove last slash and all that follows it. Not all systems have dirname.
|
|---|
| 7304 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|---|
| 7305 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|---|
| 7306 | # The file is in a subdirectory.
|
|---|
| 7307 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|---|
| 7308 | fi
|
|---|
| 7309 | rm -f $ac_file
|
|---|
| 7310 | mv conftest.h $ac_file
|
|---|
| 7311 | fi
|
|---|
| 7312 | fi; done
|
|---|
| 7313 |
|
|---|
| 7314 | EOF
|
|---|
| 7315 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 7316 |
|
|---|
| 7317 |
|
|---|
| 7318 | EOF
|
|---|
| 7319 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 7320 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
|
|---|
| 7321 | sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile
|
|---|
| 7322 | exit 0
|
|---|
| 7323 | EOF
|
|---|
| 7324 | chmod +x $CONFIG_STATUS
|
|---|
| 7325 | rm -fr confdefs* $ac_clean_files
|
|---|
| 7326 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
|---|
| 7327 |
|
|---|
| 7328 |
|
|---|