| 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=yes]"
|
|---|
| 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-bfd-assembler use BFD back end for writing object files"
|
|---|
| 28 | ac_help="$ac_help
|
|---|
| 29 | targets alternative target configurations besides the primary"
|
|---|
| 30 | ac_help="$ac_help
|
|---|
| 31 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
|
|---|
| 32 | ac_help="$ac_help
|
|---|
| 33 | --enable-build-warnings Enable build-time compiler warnings if gcc is used"
|
|---|
| 34 | ac_help="$ac_help
|
|---|
| 35 | --disable-nls do not use Native Language Support"
|
|---|
| 36 | ac_help="$ac_help
|
|---|
| 37 | --with-included-gettext use the GNU gettext library included here"
|
|---|
| 38 | ac_help="$ac_help
|
|---|
| 39 | --enable-maintainer-mode enable make rules and dependencies not useful
|
|---|
| 40 | (and sometimes confusing) to the casual installer"
|
|---|
| 41 |
|
|---|
| 42 | # Initialize some variables set by options.
|
|---|
| 43 | # The variables have the same names as the options, with
|
|---|
| 44 | # dashes changed to underlines.
|
|---|
| 45 | build=NONE
|
|---|
| 46 | cache_file=./config.cache
|
|---|
| 47 | exec_prefix=NONE
|
|---|
| 48 | host=NONE
|
|---|
| 49 | no_create=
|
|---|
| 50 | nonopt=NONE
|
|---|
| 51 | no_recursion=
|
|---|
| 52 | prefix=NONE
|
|---|
| 53 | program_prefix=NONE
|
|---|
| 54 | program_suffix=NONE
|
|---|
| 55 | program_transform_name=s,x,x,
|
|---|
| 56 | silent=
|
|---|
| 57 | site=
|
|---|
| 58 | srcdir=
|
|---|
| 59 | target=NONE
|
|---|
| 60 | verbose=
|
|---|
| 61 | x_includes=NONE
|
|---|
| 62 | x_libraries=NONE
|
|---|
| 63 | bindir='${exec_prefix}/bin'
|
|---|
| 64 | sbindir='${exec_prefix}/sbin'
|
|---|
| 65 | libexecdir='${exec_prefix}/libexec'
|
|---|
| 66 | datadir='${prefix}/share'
|
|---|
| 67 | sysconfdir='${prefix}/etc'
|
|---|
| 68 | sharedstatedir='${prefix}/com'
|
|---|
| 69 | localstatedir='${prefix}/var'
|
|---|
| 70 | libdir='${exec_prefix}/lib'
|
|---|
| 71 | includedir='${prefix}/include'
|
|---|
| 72 | oldincludedir='/usr/include'
|
|---|
| 73 | infodir='${prefix}/info'
|
|---|
| 74 | mandir='${prefix}/man'
|
|---|
| 75 |
|
|---|
| 76 | # Initialize some other variables.
|
|---|
| 77 | subdirs=
|
|---|
| 78 | MFLAGS= MAKEFLAGS=
|
|---|
| 79 | SHELL=${CONFIG_SHELL-/bin/sh}
|
|---|
| 80 | # Maximum number of lines to put in a shell here document.
|
|---|
| 81 | ac_max_here_lines=12
|
|---|
| 82 |
|
|---|
| 83 | ac_prev=
|
|---|
| 84 | for ac_option
|
|---|
| 85 | do
|
|---|
| 86 |
|
|---|
| 87 | # If the previous option needs an argument, assign it.
|
|---|
| 88 | if test -n "$ac_prev"; then
|
|---|
| 89 | eval "$ac_prev=\$ac_option"
|
|---|
| 90 | ac_prev=
|
|---|
| 91 | continue
|
|---|
| 92 | fi
|
|---|
| 93 |
|
|---|
| 94 | case "$ac_option" in
|
|---|
| 95 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|---|
| 96 | *) ac_optarg= ;;
|
|---|
| 97 | esac
|
|---|
| 98 |
|
|---|
| 99 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
|---|
| 100 |
|
|---|
| 101 | case "$ac_option" in
|
|---|
| 102 |
|
|---|
| 103 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|---|
| 104 | ac_prev=bindir ;;
|
|---|
| 105 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
|---|
| 106 | bindir="$ac_optarg" ;;
|
|---|
| 107 |
|
|---|
| 108 | -build | --build | --buil | --bui | --bu)
|
|---|
| 109 | ac_prev=build ;;
|
|---|
| 110 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
|---|
| 111 | build="$ac_optarg" ;;
|
|---|
| 112 |
|
|---|
| 113 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
|---|
| 114 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|---|
| 115 | ac_prev=cache_file ;;
|
|---|
| 116 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|---|
| 117 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|---|
| 118 | cache_file="$ac_optarg" ;;
|
|---|
| 119 |
|
|---|
| 120 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
|---|
| 121 | ac_prev=datadir ;;
|
|---|
| 122 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
|---|
| 123 | | --da=*)
|
|---|
| 124 | datadir="$ac_optarg" ;;
|
|---|
| 125 |
|
|---|
| 126 | -disable-* | --disable-*)
|
|---|
| 127 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
|---|
| 128 | # Reject names that are not valid shell variable names.
|
|---|
| 129 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 130 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 131 | fi
|
|---|
| 132 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 133 | eval "enable_${ac_feature}=no" ;;
|
|---|
| 134 |
|
|---|
| 135 | -enable-* | --enable-*)
|
|---|
| 136 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
|---|
| 137 | # Reject names that are not valid shell variable names.
|
|---|
| 138 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 139 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 140 | fi
|
|---|
| 141 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 142 | case "$ac_option" in
|
|---|
| 143 | *=*) ;;
|
|---|
| 144 | *) ac_optarg=yes ;;
|
|---|
| 145 | esac
|
|---|
| 146 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
|---|
| 147 |
|
|---|
| 148 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
|---|
| 149 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
|---|
| 150 | | --exec | --exe | --ex)
|
|---|
| 151 | ac_prev=exec_prefix ;;
|
|---|
| 152 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
|---|
| 153 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
|---|
| 154 | | --exec=* | --exe=* | --ex=*)
|
|---|
| 155 | exec_prefix="$ac_optarg" ;;
|
|---|
| 156 |
|
|---|
| 157 | -gas | --gas | --ga | --g)
|
|---|
| 158 | # Obsolete; use --with-gas.
|
|---|
| 159 | with_gas=yes ;;
|
|---|
| 160 |
|
|---|
| 161 | -help | --help | --hel | --he)
|
|---|
| 162 | # Omit some internal or obsolete options to make the list less imposing.
|
|---|
| 163 | # This message is too long to be a string in the A/UX 3.1 sh.
|
|---|
| 164 | cat << EOF
|
|---|
| 165 | Usage: configure [options] [host]
|
|---|
| 166 | Options: [defaults in brackets after descriptions]
|
|---|
| 167 | Configuration:
|
|---|
| 168 | --cache-file=FILE cache test results in FILE
|
|---|
| 169 | --help print this message
|
|---|
| 170 | --no-create do not create output files
|
|---|
| 171 | --quiet, --silent do not print \`checking...' messages
|
|---|
| 172 | --version print the version of autoconf that created configure
|
|---|
| 173 | Directory and file names:
|
|---|
| 174 | --prefix=PREFIX install architecture-independent files in PREFIX
|
|---|
| 175 | [$ac_default_prefix]
|
|---|
| 176 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
|---|
| 177 | [same as prefix]
|
|---|
| 178 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
|---|
| 179 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
|---|
| 180 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
|---|
| 181 | --datadir=DIR read-only architecture-independent data in DIR
|
|---|
| 182 | [PREFIX/share]
|
|---|
| 183 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
|---|
| 184 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
|---|
| 185 | [PREFIX/com]
|
|---|
| 186 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
|---|
| 187 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
|---|
| 188 | --includedir=DIR C header files in DIR [PREFIX/include]
|
|---|
| 189 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
|---|
| 190 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
|---|
| 191 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
|---|
| 192 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
|---|
| 193 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
|---|
| 194 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
|---|
| 195 | --program-transform-name=PROGRAM
|
|---|
| 196 | run sed PROGRAM on installed program names
|
|---|
| 197 | EOF
|
|---|
| 198 | cat << EOF
|
|---|
| 199 | Host type:
|
|---|
| 200 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
|---|
| 201 | --host=HOST configure for HOST [guessed]
|
|---|
| 202 | --target=TARGET configure for TARGET [TARGET=HOST]
|
|---|
| 203 | Features and packages:
|
|---|
| 204 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|---|
| 205 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|---|
| 206 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
|---|
| 207 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
|---|
| 208 | --x-includes=DIR X include files are in DIR
|
|---|
| 209 | --x-libraries=DIR X library files are in DIR
|
|---|
| 210 | EOF
|
|---|
| 211 | if test -n "$ac_help"; then
|
|---|
| 212 | echo "--enable and --with options recognized:$ac_help"
|
|---|
| 213 | fi
|
|---|
| 214 | exit 0 ;;
|
|---|
| 215 |
|
|---|
| 216 | -host | --host | --hos | --ho)
|
|---|
| 217 | ac_prev=host ;;
|
|---|
| 218 | -host=* | --host=* | --hos=* | --ho=*)
|
|---|
| 219 | host="$ac_optarg" ;;
|
|---|
| 220 |
|
|---|
| 221 | -includedir | --includedir | --includedi | --included | --include \
|
|---|
| 222 | | --includ | --inclu | --incl | --inc)
|
|---|
| 223 | ac_prev=includedir ;;
|
|---|
| 224 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|---|
| 225 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
|---|
| 226 | includedir="$ac_optarg" ;;
|
|---|
| 227 |
|
|---|
| 228 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
|---|
| 229 | ac_prev=infodir ;;
|
|---|
| 230 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
|---|
| 231 | infodir="$ac_optarg" ;;
|
|---|
| 232 |
|
|---|
| 233 | -libdir | --libdir | --libdi | --libd)
|
|---|
| 234 | ac_prev=libdir ;;
|
|---|
| 235 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
|---|
| 236 | libdir="$ac_optarg" ;;
|
|---|
| 237 |
|
|---|
| 238 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|---|
| 239 | | --libexe | --libex | --libe)
|
|---|
| 240 | ac_prev=libexecdir ;;
|
|---|
| 241 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|---|
| 242 | | --libexe=* | --libex=* | --libe=*)
|
|---|
| 243 | libexecdir="$ac_optarg" ;;
|
|---|
| 244 |
|
|---|
| 245 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
|---|
| 246 | | --localstate | --localstat | --localsta | --localst \
|
|---|
| 247 | | --locals | --local | --loca | --loc | --lo)
|
|---|
| 248 | ac_prev=localstatedir ;;
|
|---|
| 249 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
|---|
| 250 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
|---|
| 251 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
|---|
| 252 | localstatedir="$ac_optarg" ;;
|
|---|
| 253 |
|
|---|
| 254 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|---|
| 255 | ac_prev=mandir ;;
|
|---|
| 256 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
|---|
| 257 | mandir="$ac_optarg" ;;
|
|---|
| 258 |
|
|---|
| 259 | -nfp | --nfp | --nf)
|
|---|
| 260 | # Obsolete; use --without-fp.
|
|---|
| 261 | with_fp=no ;;
|
|---|
| 262 |
|
|---|
| 263 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 264 | | --no-cr | --no-c)
|
|---|
| 265 | no_create=yes ;;
|
|---|
| 266 |
|
|---|
| 267 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 268 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
|---|
| 269 | no_recursion=yes ;;
|
|---|
| 270 |
|
|---|
| 271 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
|---|
| 272 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
|---|
| 273 | | --oldin | --oldi | --old | --ol | --o)
|
|---|
| 274 | ac_prev=oldincludedir ;;
|
|---|
| 275 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
|---|
| 276 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
|---|
| 277 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
|---|
| 278 | oldincludedir="$ac_optarg" ;;
|
|---|
| 279 |
|
|---|
| 280 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|---|
| 281 | ac_prev=prefix ;;
|
|---|
| 282 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
|---|
| 283 | prefix="$ac_optarg" ;;
|
|---|
| 284 |
|
|---|
| 285 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
|---|
| 286 | | --program-pre | --program-pr | --program-p)
|
|---|
| 287 | ac_prev=program_prefix ;;
|
|---|
| 288 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
|---|
| 289 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
|---|
| 290 | program_prefix="$ac_optarg" ;;
|
|---|
| 291 |
|
|---|
| 292 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
|---|
| 293 | | --program-suf | --program-su | --program-s)
|
|---|
| 294 | ac_prev=program_suffix ;;
|
|---|
| 295 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
|---|
| 296 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
|---|
| 297 | program_suffix="$ac_optarg" ;;
|
|---|
| 298 |
|
|---|
| 299 | -program-transform-name | --program-transform-name \
|
|---|
| 300 | | --program-transform-nam | --program-transform-na \
|
|---|
| 301 | | --program-transform-n | --program-transform- \
|
|---|
| 302 | | --program-transform | --program-transfor \
|
|---|
| 303 | | --program-transfo | --program-transf \
|
|---|
| 304 | | --program-trans | --program-tran \
|
|---|
| 305 | | --progr-tra | --program-tr | --program-t)
|
|---|
| 306 | ac_prev=program_transform_name ;;
|
|---|
| 307 | -program-transform-name=* | --program-transform-name=* \
|
|---|
| 308 | | --program-transform-nam=* | --program-transform-na=* \
|
|---|
| 309 | | --program-transform-n=* | --program-transform-=* \
|
|---|
| 310 | | --program-transform=* | --program-transfor=* \
|
|---|
| 311 | | --program-transfo=* | --program-transf=* \
|
|---|
| 312 | | --program-trans=* | --program-tran=* \
|
|---|
| 313 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
|---|
| 314 | program_transform_name="$ac_optarg" ;;
|
|---|
| 315 |
|
|---|
| 316 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|---|
| 317 | | -silent | --silent | --silen | --sile | --sil)
|
|---|
| 318 | silent=yes ;;
|
|---|
| 319 |
|
|---|
| 320 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
|---|
| 321 | ac_prev=sbindir ;;
|
|---|
| 322 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
|---|
| 323 | | --sbi=* | --sb=*)
|
|---|
| 324 | sbindir="$ac_optarg" ;;
|
|---|
| 325 |
|
|---|
| 326 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
|---|
| 327 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
|---|
| 328 | | --sharedst | --shareds | --shared | --share | --shar \
|
|---|
| 329 | | --sha | --sh)
|
|---|
| 330 | ac_prev=sharedstatedir ;;
|
|---|
| 331 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
|---|
| 332 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
|---|
| 333 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
|---|
| 334 | | --sha=* | --sh=*)
|
|---|
| 335 | sharedstatedir="$ac_optarg" ;;
|
|---|
| 336 |
|
|---|
| 337 | -site | --site | --sit)
|
|---|
| 338 | ac_prev=site ;;
|
|---|
| 339 | -site=* | --site=* | --sit=*)
|
|---|
| 340 | site="$ac_optarg" ;;
|
|---|
| 341 |
|
|---|
| 342 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|---|
| 343 | ac_prev=srcdir ;;
|
|---|
| 344 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|---|
| 345 | srcdir="$ac_optarg" ;;
|
|---|
| 346 |
|
|---|
| 347 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|---|
| 348 | | --syscon | --sysco | --sysc | --sys | --sy)
|
|---|
| 349 | ac_prev=sysconfdir ;;
|
|---|
| 350 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|---|
| 351 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
|---|
| 352 | sysconfdir="$ac_optarg" ;;
|
|---|
| 353 |
|
|---|
| 354 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
|---|
| 355 | ac_prev=target ;;
|
|---|
| 356 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
|---|
| 357 | target="$ac_optarg" ;;
|
|---|
| 358 |
|
|---|
| 359 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|---|
| 360 | verbose=yes ;;
|
|---|
| 361 |
|
|---|
| 362 | -version | --version | --versio | --versi | --vers)
|
|---|
| 363 | echo "configure generated by autoconf version 2.13"
|
|---|
| 364 | exit 0 ;;
|
|---|
| 365 |
|
|---|
| 366 | -with-* | --with-*)
|
|---|
| 367 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
|---|
| 368 | # Reject names that are not valid shell variable names.
|
|---|
| 369 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 370 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 371 | fi
|
|---|
| 372 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 373 | case "$ac_option" in
|
|---|
| 374 | *=*) ;;
|
|---|
| 375 | *) ac_optarg=yes ;;
|
|---|
| 376 | esac
|
|---|
| 377 | eval "with_${ac_package}='$ac_optarg'" ;;
|
|---|
| 378 |
|
|---|
| 379 | -without-* | --without-*)
|
|---|
| 380 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
|---|
| 381 | # Reject names that are not valid shell variable names.
|
|---|
| 382 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 383 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 384 | fi
|
|---|
| 385 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 386 | eval "with_${ac_package}=no" ;;
|
|---|
| 387 |
|
|---|
| 388 | --x)
|
|---|
| 389 | # Obsolete; use --with-x.
|
|---|
| 390 | with_x=yes ;;
|
|---|
| 391 |
|
|---|
| 392 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
|---|
| 393 | | --x-incl | --x-inc | --x-in | --x-i)
|
|---|
| 394 | ac_prev=x_includes ;;
|
|---|
| 395 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
|---|
| 396 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
|---|
| 397 | x_includes="$ac_optarg" ;;
|
|---|
| 398 |
|
|---|
| 399 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
|---|
| 400 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
|---|
| 401 | ac_prev=x_libraries ;;
|
|---|
| 402 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
|---|
| 403 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
|---|
| 404 | x_libraries="$ac_optarg" ;;
|
|---|
| 405 |
|
|---|
| 406 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
|---|
| 407 | ;;
|
|---|
| 408 |
|
|---|
| 409 | *)
|
|---|
| 410 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
|---|
| 411 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
|---|
| 412 | fi
|
|---|
| 413 | if test "x$nonopt" != xNONE; then
|
|---|
| 414 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
|---|
| 415 | fi
|
|---|
| 416 | nonopt="$ac_option"
|
|---|
| 417 | ;;
|
|---|
| 418 |
|
|---|
| 419 | esac
|
|---|
| 420 | done
|
|---|
| 421 |
|
|---|
| 422 | if test -n "$ac_prev"; then
|
|---|
| 423 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
|---|
| 424 | fi
|
|---|
| 425 |
|
|---|
| 426 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|---|
| 427 |
|
|---|
| 428 | # File descriptor usage:
|
|---|
| 429 | # 0 standard input
|
|---|
| 430 | # 1 file creation
|
|---|
| 431 | # 2 errors and warnings
|
|---|
| 432 | # 3 some systems may open it to /dev/tty
|
|---|
| 433 | # 4 used on the Kubota Titan
|
|---|
| 434 | # 6 checking for... messages and results
|
|---|
| 435 | # 5 compiler messages saved in config.log
|
|---|
| 436 | if test "$silent" = yes; then
|
|---|
| 437 | exec 6>/dev/null
|
|---|
| 438 | else
|
|---|
| 439 | exec 6>&1
|
|---|
| 440 | fi
|
|---|
| 441 | exec 5>./config.log
|
|---|
| 442 |
|
|---|
| 443 | echo "\
|
|---|
| 444 | This file contains any messages produced by compilers while
|
|---|
| 445 | running configure, to aid debugging if configure makes a mistake.
|
|---|
| 446 | " 1>&5
|
|---|
| 447 |
|
|---|
| 448 | # Strip out --no-create and --no-recursion so they do not pile up.
|
|---|
| 449 | # Also quote any args containing shell metacharacters.
|
|---|
| 450 | ac_configure_args=
|
|---|
| 451 | for ac_arg
|
|---|
| 452 | do
|
|---|
| 453 | case "$ac_arg" in
|
|---|
| 454 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 455 | | --no-cr | --no-c) ;;
|
|---|
| 456 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 457 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|---|
| 458 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|---|
| 459 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|---|
| 460 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|---|
| 461 | esac
|
|---|
| 462 | done
|
|---|
| 463 |
|
|---|
| 464 | # NLS nuisances.
|
|---|
| 465 | # Only set these to C if already set. These must not be set unconditionally
|
|---|
| 466 | # because not all systems understand e.g. LANG=C (notably SCO).
|
|---|
| 467 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|---|
| 468 | # Non-C LC_CTYPE values break the ctype check.
|
|---|
| 469 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|---|
| 470 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|---|
| 471 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|---|
| 472 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|---|
| 473 |
|
|---|
| 474 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|---|
| 475 | rm -rf conftest* confdefs.h
|
|---|
| 476 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|---|
| 477 | echo > confdefs.h
|
|---|
| 478 |
|
|---|
| 479 | # A filename unique to this package, relative to the directory that
|
|---|
| 480 | # configure is in, which we can look for to find out if srcdir is correct.
|
|---|
| 481 | ac_unique_file=as.h
|
|---|
| 482 |
|
|---|
| 483 | # Find the source files, if location was not specified.
|
|---|
| 484 | if test -z "$srcdir"; then
|
|---|
| 485 | ac_srcdir_defaulted=yes
|
|---|
| 486 | # Try the directory containing this script, then its parent.
|
|---|
| 487 | ac_prog=$0
|
|---|
| 488 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|---|
| 489 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|---|
| 490 | srcdir=$ac_confdir
|
|---|
| 491 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 492 | srcdir=..
|
|---|
| 493 | fi
|
|---|
| 494 | else
|
|---|
| 495 | ac_srcdir_defaulted=no
|
|---|
| 496 | fi
|
|---|
| 497 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 498 | if test "$ac_srcdir_defaulted" = yes; then
|
|---|
| 499 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|---|
| 500 | else
|
|---|
| 501 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|---|
| 502 | fi
|
|---|
| 503 | fi
|
|---|
| 504 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|---|
| 505 |
|
|---|
| 506 | # Prefer explicitly selected file to automatically selected ones.
|
|---|
| 507 | if test -z "$CONFIG_SITE"; then
|
|---|
| 508 | if test "x$prefix" != xNONE; then
|
|---|
| 509 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|---|
| 510 | else
|
|---|
| 511 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|---|
| 512 | fi
|
|---|
| 513 | fi
|
|---|
| 514 | for ac_site_file in $CONFIG_SITE; do
|
|---|
| 515 | if test -r "$ac_site_file"; then
|
|---|
| 516 | echo "loading site script $ac_site_file"
|
|---|
| 517 | . "$ac_site_file"
|
|---|
| 518 | fi
|
|---|
| 519 | done
|
|---|
| 520 |
|
|---|
| 521 | if test -r "$cache_file"; then
|
|---|
| 522 | echo "loading cache $cache_file"
|
|---|
| 523 | . $cache_file
|
|---|
| 524 | else
|
|---|
| 525 | echo "creating cache $cache_file"
|
|---|
| 526 | > $cache_file
|
|---|
| 527 | fi
|
|---|
| 528 |
|
|---|
| 529 | ac_ext=c
|
|---|
| 530 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 531 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 532 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 533 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 534 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 535 |
|
|---|
| 536 | ac_exeext=
|
|---|
| 537 | ac_objext=o
|
|---|
| 538 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|---|
| 539 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
|---|
| 540 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|---|
| 541 | ac_n= ac_c='
|
|---|
| 542 | ' ac_t=' '
|
|---|
| 543 | else
|
|---|
| 544 | ac_n=-n ac_c= ac_t=
|
|---|
| 545 | fi
|
|---|
| 546 | else
|
|---|
| 547 | ac_n= ac_c='\c' ac_t=
|
|---|
| 548 | fi
|
|---|
| 549 |
|
|---|
| 550 | echo $ac_n "checking for path separator""... $ac_c" 1>&6
|
|---|
| 551 | echo "configure:552: checking for path separator" >&5
|
|---|
| 552 | # Filter path to get backslahes into forwardslashes
|
|---|
| 553 | case "`uname -s 2> /dev/null`" in
|
|---|
| 554 | OS/2)
|
|---|
| 555 | PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
|
|---|
| 556 | PATH_IFS=';'
|
|---|
| 557 | ;;
|
|---|
| 558 | *)
|
|---|
| 559 | PATH_IFS=':'
|
|---|
| 560 | ;;
|
|---|
| 561 | esac
|
|---|
| 562 | echo "$ac_t""${PATH_IFS}" 1>&6
|
|---|
| 563 |
|
|---|
| 564 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
|---|
| 565 | echo "configure:566: checking for Cygwin environment" >&5
|
|---|
| 566 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
|---|
| 567 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 568 | else
|
|---|
| 569 | cat > conftest.$ac_ext <<EOF
|
|---|
| 570 | #line 571 "configure"
|
|---|
| 571 | #include "confdefs.h"
|
|---|
| 572 |
|
|---|
| 573 | int main() {
|
|---|
| 574 |
|
|---|
| 575 | #ifndef __CYGWIN__
|
|---|
| 576 | #define __CYGWIN__ __CYGWIN32__
|
|---|
| 577 | #endif
|
|---|
| 578 | return __CYGWIN__;
|
|---|
| 579 | ; return 0; }
|
|---|
| 580 | EOF
|
|---|
| 581 | if { (eval echo configure:582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 582 | rm -rf conftest*
|
|---|
| 583 | ac_cv_cygwin=yes
|
|---|
| 584 | else
|
|---|
| 585 | echo "configure: failed program was:" >&5
|
|---|
| 586 | cat conftest.$ac_ext >&5
|
|---|
| 587 | rm -rf conftest*
|
|---|
| 588 | ac_cv_cygwin=no
|
|---|
| 589 | fi
|
|---|
| 590 | rm -f conftest*
|
|---|
| 591 | rm -f conftest*
|
|---|
| 592 | fi
|
|---|
| 593 |
|
|---|
| 594 | echo "$ac_t""$ac_cv_cygwin" 1>&6
|
|---|
| 595 | CYGWIN=
|
|---|
| 596 | test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
|---|
| 597 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
|---|
| 598 | echo "configure:599: checking for mingw32 environment" >&5
|
|---|
| 599 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
|---|
| 600 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 601 | else
|
|---|
| 602 | cat > conftest.$ac_ext <<EOF
|
|---|
| 603 | #line 604 "configure"
|
|---|
| 604 | #include "confdefs.h"
|
|---|
| 605 |
|
|---|
| 606 | int main() {
|
|---|
| 607 | return __MINGW32__;
|
|---|
| 608 | ; return 0; }
|
|---|
| 609 | EOF
|
|---|
| 610 | if { (eval echo configure:611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 611 | rm -rf conftest*
|
|---|
| 612 | ac_cv_mingw32=yes
|
|---|
| 613 | else
|
|---|
| 614 | echo "configure: failed program was:" >&5
|
|---|
| 615 | cat conftest.$ac_ext >&5
|
|---|
| 616 | rm -rf conftest*
|
|---|
| 617 | ac_cv_mingw32=no
|
|---|
| 618 | fi
|
|---|
| 619 | rm -f conftest*
|
|---|
| 620 | rm -f conftest*
|
|---|
| 621 | fi
|
|---|
| 622 |
|
|---|
| 623 | echo "$ac_t""$ac_cv_mingw32" 1>&6
|
|---|
| 624 | MINGW32=
|
|---|
| 625 | test "$ac_cv_mingw32" = yes && MINGW32=yes
|
|---|
| 626 | echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
|
|---|
| 627 | echo "configure:628: checking for EMX/OS2 environment" >&5
|
|---|
| 628 | if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
|
|---|
| 629 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 630 | else
|
|---|
| 631 | : ${CC=gcc.exe}
|
|---|
| 632 | cat > conftest.$ac_ext <<EOF
|
|---|
| 633 | #line 634 "configure"
|
|---|
| 634 | #include "confdefs.h"
|
|---|
| 635 |
|
|---|
| 636 | int main() {
|
|---|
| 637 | return __EMX__;
|
|---|
| 638 | ; return 0; }
|
|---|
| 639 | EOF
|
|---|
| 640 | if { (eval echo configure:641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 641 | rm -rf conftest*
|
|---|
| 642 | ac_cv_emxos2=yes
|
|---|
| 643 | else
|
|---|
| 644 | echo "configure: failed program was:" >&5
|
|---|
| 645 | cat conftest.$ac_ext >&5
|
|---|
| 646 | rm -rf conftest*
|
|---|
| 647 | ac_cv_emxos2=no
|
|---|
| 648 | fi
|
|---|
| 649 | rm -f conftest*
|
|---|
| 650 | rm -f conftest*
|
|---|
| 651 | fi
|
|---|
| 652 |
|
|---|
| 653 | echo "$ac_t""$ac_cv_emxos2" 1>&6
|
|---|
| 654 | if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
|
|---|
| 655 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 656 | else
|
|---|
| 657 | if test "$ac_cv_emxos2" = yes ; then
|
|---|
| 658 | ac_cv_libpre=
|
|---|
| 659 | else
|
|---|
| 660 | ac_cv_libpre=lib
|
|---|
| 661 | fi
|
|---|
| 662 |
|
|---|
| 663 | fi
|
|---|
| 664 |
|
|---|
| 665 | EMXOS2=
|
|---|
| 666 | test "$ac_cv_emxos2" = yes && EMXOS2=yes
|
|---|
| 667 |
|
|---|
| 668 |
|
|---|
| 669 |
|
|---|
| 670 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 671 | echo "configure:672: checking for executable suffix" >&5
|
|---|
| 672 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 673 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 674 | else
|
|---|
| 675 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
|---|
| 676 | ac_cv_exeext=.exe
|
|---|
| 677 | else
|
|---|
| 678 | rm -f conftest*
|
|---|
| 679 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 680 | ac_cv_exeext=
|
|---|
| 681 | if { (eval echo configure:682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 682 | for file in conftest.*; do
|
|---|
| 683 | case $file in
|
|---|
| 684 | *.c | *.o | *.obj) ;;
|
|---|
| 685 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 686 | esac
|
|---|
| 687 | done
|
|---|
| 688 | else
|
|---|
| 689 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 690 | fi
|
|---|
| 691 | rm -f conftest*
|
|---|
| 692 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 693 | fi
|
|---|
| 694 | fi
|
|---|
| 695 |
|
|---|
| 696 | EXEEXT=""
|
|---|
| 697 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 698 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 699 | ac_exeext=$EXEEXT
|
|---|
| 700 |
|
|---|
| 701 |
|
|---|
| 702 |
|
|---|
| 703 | ac_aux_dir=
|
|---|
| 704 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
|---|
| 705 | if test -f $ac_dir/install-sh; then
|
|---|
| 706 | ac_aux_dir=$ac_dir
|
|---|
| 707 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
|---|
| 708 | break
|
|---|
| 709 | elif 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 | fi
|
|---|
| 714 | done
|
|---|
| 715 | if test -z "$ac_aux_dir"; then
|
|---|
| 716 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
|---|
| 717 | fi
|
|---|
| 718 | ac_config_guess=$ac_aux_dir/config.guess
|
|---|
| 719 | ac_config_sub=$ac_aux_dir/config.sub
|
|---|
| 720 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|---|
| 721 |
|
|---|
| 722 |
|
|---|
| 723 | # Do some error checking and defaulting for the host and target type.
|
|---|
| 724 | # The inputs are:
|
|---|
| 725 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT
|
|---|
| 726 | #
|
|---|
| 727 | # The rules are:
|
|---|
| 728 | # 1. You are not allowed to specify --host, --target, and nonopt at the
|
|---|
| 729 | # same time.
|
|---|
| 730 | # 2. Host defaults to nonopt.
|
|---|
| 731 | # 3. If nonopt is not specified, then host defaults to the current host,
|
|---|
| 732 | # as determined by config.guess.
|
|---|
| 733 | # 4. Target and build default to nonopt.
|
|---|
| 734 | # 5. If nonopt is not specified, then target and build default to host.
|
|---|
| 735 |
|
|---|
| 736 | # The aliases save the names the user supplied, while $host etc.
|
|---|
| 737 | # will get canonicalized.
|
|---|
| 738 | case $host---$target---$nonopt in
|
|---|
| 739 | NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
|---|
| 740 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
|
|---|
| 741 | esac
|
|---|
| 742 |
|
|---|
| 743 |
|
|---|
| 744 | # Make sure we can run config.sub.
|
|---|
| 745 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
|---|
| 746 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
|---|
| 747 | fi
|
|---|
| 748 |
|
|---|
| 749 | echo $ac_n "checking host system type""... $ac_c" 1>&6
|
|---|
| 750 | echo "configure:751: checking host system type" >&5
|
|---|
| 751 |
|
|---|
| 752 | host_alias=$host
|
|---|
| 753 | case "$host_alias" in
|
|---|
| 754 | NONE)
|
|---|
| 755 | case $nonopt in
|
|---|
| 756 | NONE)
|
|---|
| 757 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
|---|
| 758 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
|---|
| 759 | fi ;;
|
|---|
| 760 | *) host_alias=$nonopt ;;
|
|---|
| 761 | esac ;;
|
|---|
| 762 | esac
|
|---|
| 763 |
|
|---|
| 764 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
|---|
| 765 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 766 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 767 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 768 | echo "$ac_t""$host" 1>&6
|
|---|
| 769 |
|
|---|
| 770 | echo $ac_n "checking target system type""... $ac_c" 1>&6
|
|---|
| 771 | echo "configure:772: checking target system type" >&5
|
|---|
| 772 |
|
|---|
| 773 | target_alias=$target
|
|---|
| 774 | case "$target_alias" in
|
|---|
| 775 | NONE)
|
|---|
| 776 | case $nonopt in
|
|---|
| 777 | NONE) target_alias=$host_alias ;;
|
|---|
| 778 | *) target_alias=$nonopt ;;
|
|---|
| 779 | esac ;;
|
|---|
| 780 | esac
|
|---|
| 781 |
|
|---|
| 782 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
|
|---|
| 783 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 784 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 785 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 786 | echo "$ac_t""$target" 1>&6
|
|---|
| 787 |
|
|---|
| 788 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
|---|
| 789 | echo "configure:790: checking build system type" >&5
|
|---|
| 790 |
|
|---|
| 791 | build_alias=$build
|
|---|
| 792 | case "$build_alias" in
|
|---|
| 793 | NONE)
|
|---|
| 794 | case $nonopt in
|
|---|
| 795 | NONE) build_alias=$host_alias ;;
|
|---|
| 796 | *) build_alias=$nonopt ;;
|
|---|
| 797 | esac ;;
|
|---|
| 798 | esac
|
|---|
| 799 |
|
|---|
| 800 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
|---|
| 801 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 802 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 803 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 804 | echo "$ac_t""$build" 1>&6
|
|---|
| 805 |
|
|---|
| 806 | test "$host_alias" != "$target_alias" &&
|
|---|
| 807 | test "$program_prefix$program_suffix$program_transform_name" = \
|
|---|
| 808 | NONENONEs,x,x, &&
|
|---|
| 809 | program_prefix=${target_alias}-
|
|---|
| 810 |
|
|---|
| 811 | # Extract the first word of "gcc", so it can be a program name with args.
|
|---|
| 812 | set dummy gcc; ac_word=$2
|
|---|
| 813 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 814 | echo "configure:815: checking for $ac_word" >&5
|
|---|
| 815 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 816 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 817 | else
|
|---|
| 818 | if test -n "$CC"; then
|
|---|
| 819 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 820 | else
|
|---|
| 821 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 822 | ac_dummy="$PATH"
|
|---|
| 823 | for ac_dir in $ac_dummy; do
|
|---|
| 824 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 825 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 826 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 827 | ac_cv_prog_CC="gcc"
|
|---|
| 828 | break
|
|---|
| 829 | fi
|
|---|
| 830 | done
|
|---|
| 831 | IFS="$ac_save_ifs"
|
|---|
| 832 | fi
|
|---|
| 833 | fi
|
|---|
| 834 | CC="$ac_cv_prog_CC"
|
|---|
| 835 | if test -n "$CC"; then
|
|---|
| 836 | echo "$ac_t""$CC" 1>&6
|
|---|
| 837 | else
|
|---|
| 838 | echo "$ac_t""no" 1>&6
|
|---|
| 839 | fi
|
|---|
| 840 |
|
|---|
| 841 | if test -z "$CC"; then
|
|---|
| 842 | # Extract the first word of "cc", so it can be a program name with args.
|
|---|
| 843 | set dummy cc; ac_word=$2
|
|---|
| 844 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 845 | echo "configure:846: checking for $ac_word" >&5
|
|---|
| 846 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 847 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 848 | else
|
|---|
| 849 | if test -n "$CC"; then
|
|---|
| 850 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 851 | else
|
|---|
| 852 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 853 | ac_prog_rejected=no
|
|---|
| 854 | ac_dummy="$PATH"
|
|---|
| 855 | for ac_dir in $ac_dummy; do
|
|---|
| 856 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 857 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 858 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 859 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
|---|
| 860 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
|---|
| 861 | ac_prog_rejected=yes
|
|---|
| 862 | continue
|
|---|
| 863 | fi
|
|---|
| 864 | ac_cv_prog_CC="cc"
|
|---|
| 865 | break
|
|---|
| 866 | fi
|
|---|
| 867 | done
|
|---|
| 868 | IFS="$ac_save_ifs"
|
|---|
| 869 | if test $ac_prog_rejected = yes; then
|
|---|
| 870 | # We found a bogon in the path, so make sure we never use it.
|
|---|
| 871 | set dummy $ac_cv_prog_CC
|
|---|
| 872 | shift
|
|---|
| 873 | if test $# -gt 0; then
|
|---|
| 874 | # We chose a different compiler from the bogus one.
|
|---|
| 875 | # However, it has the same basename, so the bogon will be chosen
|
|---|
| 876 | # first if we set CC to just the basename; use the full file name.
|
|---|
| 877 | shift
|
|---|
| 878 | set dummy "$ac_dir/$ac_word" "$@"
|
|---|
| 879 | shift
|
|---|
| 880 | ac_cv_prog_CC="$@"
|
|---|
| 881 | fi
|
|---|
| 882 | fi
|
|---|
| 883 | fi
|
|---|
| 884 | fi
|
|---|
| 885 | CC="$ac_cv_prog_CC"
|
|---|
| 886 | if test -n "$CC"; then
|
|---|
| 887 | echo "$ac_t""$CC" 1>&6
|
|---|
| 888 | else
|
|---|
| 889 | echo "$ac_t""no" 1>&6
|
|---|
| 890 | fi
|
|---|
| 891 |
|
|---|
| 892 | if test -z "$CC"; then
|
|---|
| 893 | case "`uname -s`" in
|
|---|
| 894 | *win32* | *WIN32*)
|
|---|
| 895 | # Extract the first word of "cl", so it can be a program name with args.
|
|---|
| 896 | set dummy cl; ac_word=$2
|
|---|
| 897 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 898 | echo "configure:899: checking for $ac_word" >&5
|
|---|
| 899 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 900 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 901 | else
|
|---|
| 902 | if test -n "$CC"; then
|
|---|
| 903 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 904 | else
|
|---|
| 905 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 906 | ac_dummy="$PATH"
|
|---|
| 907 | for ac_dir in $ac_dummy; do
|
|---|
| 908 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 909 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 910 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 911 | ac_cv_prog_CC="cl"
|
|---|
| 912 | break
|
|---|
| 913 | fi
|
|---|
| 914 | done
|
|---|
| 915 | IFS="$ac_save_ifs"
|
|---|
| 916 | fi
|
|---|
| 917 | fi
|
|---|
| 918 | CC="$ac_cv_prog_CC"
|
|---|
| 919 | if test -n "$CC"; then
|
|---|
| 920 | echo "$ac_t""$CC" 1>&6
|
|---|
| 921 | else
|
|---|
| 922 | echo "$ac_t""no" 1>&6
|
|---|
| 923 | fi
|
|---|
| 924 | ;;
|
|---|
| 925 | esac
|
|---|
| 926 | fi
|
|---|
| 927 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|---|
| 928 | fi
|
|---|
| 929 |
|
|---|
| 930 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|---|
| 931 | echo "configure:932: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|---|
| 932 |
|
|---|
| 933 | ac_ext=c
|
|---|
| 934 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 935 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 936 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 937 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 938 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 939 |
|
|---|
| 940 | cat > conftest.$ac_ext << EOF
|
|---|
| 941 |
|
|---|
| 942 | #line 943 "configure"
|
|---|
| 943 | #include "confdefs.h"
|
|---|
| 944 |
|
|---|
| 945 | main(){return(0);}
|
|---|
| 946 | EOF
|
|---|
| 947 | if { (eval echo configure:948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 948 | ac_cv_prog_cc_works=yes
|
|---|
| 949 | # If we can't run a trivial program, we are probably using a cross compiler.
|
|---|
| 950 | if (./conftest; exit) 2>/dev/null; then
|
|---|
| 951 | ac_cv_prog_cc_cross=no
|
|---|
| 952 | else
|
|---|
| 953 | ac_cv_prog_cc_cross=yes
|
|---|
| 954 | fi
|
|---|
| 955 | else
|
|---|
| 956 | echo "configure: failed program was:" >&5
|
|---|
| 957 | cat conftest.$ac_ext >&5
|
|---|
| 958 | ac_cv_prog_cc_works=no
|
|---|
| 959 | fi
|
|---|
| 960 | rm -fr conftest*
|
|---|
| 961 | ac_ext=c
|
|---|
| 962 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 963 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 964 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 965 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 966 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 967 |
|
|---|
| 968 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|---|
| 969 | if test $ac_cv_prog_cc_works = no; then
|
|---|
| 970 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 971 | fi
|
|---|
| 972 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|---|
| 973 | echo "configure:974: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|---|
| 974 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|---|
| 975 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 976 |
|
|---|
| 977 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|---|
| 978 | echo "configure:979: checking whether we are using GNU C" >&5
|
|---|
| 979 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|---|
| 980 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 981 | else
|
|---|
| 982 | cat > conftest.c <<EOF
|
|---|
| 983 | #ifdef __GNUC__
|
|---|
| 984 | yes;
|
|---|
| 985 | #endif
|
|---|
| 986 | EOF
|
|---|
| 987 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|---|
| 988 | ac_cv_prog_gcc=yes
|
|---|
| 989 | else
|
|---|
| 990 | ac_cv_prog_gcc=no
|
|---|
| 991 | fi
|
|---|
| 992 | fi
|
|---|
| 993 |
|
|---|
| 994 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|---|
| 995 |
|
|---|
| 996 | if test $ac_cv_prog_gcc = yes; then
|
|---|
| 997 | GCC=yes
|
|---|
| 998 | else
|
|---|
| 999 | GCC=
|
|---|
| 1000 | fi
|
|---|
| 1001 |
|
|---|
| 1002 | ac_test_CFLAGS="${CFLAGS+set}"
|
|---|
| 1003 | ac_save_CFLAGS="$CFLAGS"
|
|---|
| 1004 | CFLAGS=
|
|---|
| 1005 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|---|
| 1006 | echo "configure:1007: checking whether ${CC-cc} accepts -g" >&5
|
|---|
| 1007 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|---|
| 1008 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1009 | else
|
|---|
| 1010 | echo 'void f(){}' > conftest.c
|
|---|
| 1011 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|---|
| 1012 | ac_cv_prog_cc_g=yes
|
|---|
| 1013 | else
|
|---|
| 1014 | ac_cv_prog_cc_g=no
|
|---|
| 1015 | fi
|
|---|
| 1016 | rm -f conftest*
|
|---|
| 1017 |
|
|---|
| 1018 | fi
|
|---|
| 1019 |
|
|---|
| 1020 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|---|
| 1021 | if test "$ac_test_CFLAGS" = set; then
|
|---|
| 1022 | CFLAGS="$ac_save_CFLAGS"
|
|---|
| 1023 | elif test $ac_cv_prog_cc_g = yes; then
|
|---|
| 1024 | if test "$GCC" = yes; then
|
|---|
| 1025 | CFLAGS="-g -O2"
|
|---|
| 1026 | else
|
|---|
| 1027 | CFLAGS="-g"
|
|---|
| 1028 | fi
|
|---|
| 1029 | else
|
|---|
| 1030 | if test "$GCC" = yes; then
|
|---|
| 1031 | CFLAGS="-O2"
|
|---|
| 1032 | else
|
|---|
| 1033 | CFLAGS=
|
|---|
| 1034 | fi
|
|---|
| 1035 | fi
|
|---|
| 1036 |
|
|---|
| 1037 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
|
|---|
| 1038 | echo "configure:1039: checking for POSIXized ISC" >&5
|
|---|
| 1039 | if test -d /etc/conf/kconfig.d &&
|
|---|
| 1040 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
|
|---|
| 1041 | then
|
|---|
| 1042 | echo "$ac_t""yes" 1>&6
|
|---|
| 1043 | ISC=yes # If later tests want to check for ISC.
|
|---|
| 1044 | cat >> confdefs.h <<\EOF
|
|---|
| 1045 | #define _POSIX_SOURCE 1
|
|---|
| 1046 | EOF
|
|---|
| 1047 |
|
|---|
| 1048 | if test "$GCC" = yes; then
|
|---|
| 1049 | CC="$CC -posix"
|
|---|
| 1050 | else
|
|---|
| 1051 | CC="$CC -Xp"
|
|---|
| 1052 | fi
|
|---|
| 1053 | else
|
|---|
| 1054 | echo "$ac_t""no" 1>&6
|
|---|
| 1055 | ISC=
|
|---|
| 1056 | fi
|
|---|
| 1057 |
|
|---|
| 1058 |
|
|---|
| 1059 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
|
|---|
| 1060 | # Find a good install program. We prefer a C program (faster),
|
|---|
| 1061 | # so one script is as good as another. But avoid the broken or
|
|---|
| 1062 | # incompatible versions:
|
|---|
| 1063 | # SysV /etc/install, /usr/sbin/install
|
|---|
| 1064 | # SunOS /usr/etc/install
|
|---|
| 1065 | # IRIX /sbin/install
|
|---|
| 1066 | # AIX /bin/install
|
|---|
| 1067 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|---|
| 1068 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|---|
| 1069 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|---|
| 1070 | # ./install, which can be erroneously created by make from ./install.sh.
|
|---|
| 1071 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|---|
| 1072 | echo "configure:1073: checking for a BSD compatible install" >&5
|
|---|
| 1073 | if test -z "$INSTALL"; then
|
|---|
| 1074 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|---|
| 1075 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1076 | else
|
|---|
| 1077 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1078 | for ac_dir in $PATH; do
|
|---|
| 1079 | # Account for people who put trailing slashes in PATH elements.
|
|---|
| 1080 | case "$ac_dir/" in
|
|---|
| 1081 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|---|
| 1082 | # We reject the install program from OS/2 or W3.1
|
|---|
| 1083 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
|---|
| 1084 | *)
|
|---|
| 1085 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
|---|
| 1086 | # Don't use installbsd from OSF since it installs stuff as root
|
|---|
| 1087 | # by default.
|
|---|
| 1088 | for ac_prog in ginstall scoinst install; do
|
|---|
| 1089 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
|---|
| 1090 | if test $ac_prog = install &&
|
|---|
| 1091 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|---|
| 1092 | # AIX install. It has an incompatible calling convention.
|
|---|
| 1093 | :
|
|---|
| 1094 | else
|
|---|
| 1095 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
|---|
| 1096 | break 2
|
|---|
| 1097 | fi
|
|---|
| 1098 | fi
|
|---|
| 1099 | done
|
|---|
| 1100 | ;;
|
|---|
| 1101 | esac
|
|---|
| 1102 | done
|
|---|
| 1103 | IFS="$ac_save_IFS"
|
|---|
| 1104 |
|
|---|
| 1105 | fi
|
|---|
| 1106 | if test "${ac_cv_path_install+set}" = set; then
|
|---|
| 1107 | INSTALL="$ac_cv_path_install"
|
|---|
| 1108 | else
|
|---|
| 1109 | # As a last resort, use the slow shell script. We don't cache a
|
|---|
| 1110 | # path for INSTALL within a source directory, because that will
|
|---|
| 1111 | # break other packages using the cache if that directory is
|
|---|
| 1112 | # removed, or if the path is relative.
|
|---|
| 1113 | INSTALL="$ac_install_sh"
|
|---|
| 1114 | fi
|
|---|
| 1115 | fi
|
|---|
| 1116 | echo "$ac_t""$INSTALL" 1>&6
|
|---|
| 1117 |
|
|---|
| 1118 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|---|
| 1119 | # It thinks the first close brace ends the variable substitution.
|
|---|
| 1120 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|---|
| 1121 |
|
|---|
| 1122 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|---|
| 1123 |
|
|---|
| 1124 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|---|
| 1125 |
|
|---|
| 1126 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
|---|
| 1127 | echo "configure:1128: checking whether build environment is sane" >&5
|
|---|
| 1128 | # Just in case
|
|---|
| 1129 | sleep 1
|
|---|
| 1130 | echo timestamp > conftestfile
|
|---|
| 1131 | # Do `set' in a subshell so we don't clobber the current shell's
|
|---|
| 1132 | # arguments. Must try -L first in case configure is actually a
|
|---|
| 1133 | # symlink; some systems play weird games with the mod time of symlinks
|
|---|
| 1134 | # (eg FreeBSD returns the mod time of the symlink's containing
|
|---|
| 1135 | # directory).
|
|---|
| 1136 | if (
|
|---|
| 1137 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
|---|
| 1138 | if test "$*" = "X"; then
|
|---|
| 1139 | # -L didn't work.
|
|---|
| 1140 | set X `ls -t $srcdir/configure conftestfile`
|
|---|
| 1141 | fi
|
|---|
| 1142 | if test "$*" != "X $srcdir/configure conftestfile" \
|
|---|
| 1143 | && test "$*" != "X conftestfile $srcdir/configure"; then
|
|---|
| 1144 |
|
|---|
| 1145 | # If neither matched, then we have a broken ls. This can happen
|
|---|
| 1146 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
|---|
| 1147 | # broken ls alias from the environment. This has actually
|
|---|
| 1148 | # happened. Such a system could not be considered "sane".
|
|---|
| 1149 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
|---|
| 1150 | alias in your environment" 1>&2; exit 1; }
|
|---|
| 1151 | fi
|
|---|
| 1152 |
|
|---|
| 1153 | test "$2" = conftestfile
|
|---|
| 1154 | )
|
|---|
| 1155 | then
|
|---|
| 1156 | # Ok.
|
|---|
| 1157 | :
|
|---|
| 1158 | else
|
|---|
| 1159 | { echo "configure: error: newly created file is older than distributed files!
|
|---|
| 1160 | Check your system clock" 1>&2; exit 1; }
|
|---|
| 1161 | fi
|
|---|
| 1162 | rm -f conftest*
|
|---|
| 1163 | echo "$ac_t""yes" 1>&6
|
|---|
| 1164 | if test "$program_transform_name" = s,x,x,; then
|
|---|
| 1165 | program_transform_name=
|
|---|
| 1166 | else
|
|---|
| 1167 | # Double any \ or $. echo might interpret backslashes.
|
|---|
| 1168 | cat <<\EOF_SED > conftestsed
|
|---|
| 1169 | s,\\,\\\\,g; s,\$,$$,g
|
|---|
| 1170 | EOF_SED
|
|---|
| 1171 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
|---|
| 1172 | rm -f conftestsed
|
|---|
| 1173 | fi
|
|---|
| 1174 | test "$program_prefix" != NONE &&
|
|---|
| 1175 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
|---|
| 1176 | # Use a double $ so make ignores it.
|
|---|
| 1177 | test "$program_suffix" != NONE &&
|
|---|
| 1178 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
|---|
| 1179 |
|
|---|
| 1180 | # sed with no file args requires a program.
|
|---|
| 1181 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
|---|
| 1182 |
|
|---|
| 1183 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
|---|
| 1184 | echo "configure:1185: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
|---|
| 1185 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|---|
| 1186 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
|---|
| 1187 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1188 | else
|
|---|
| 1189 | cat > conftestmake <<\EOF
|
|---|
| 1190 | all:
|
|---|
| 1191 | @echo 'ac_maketemp="${MAKE}"'
|
|---|
| 1192 | EOF
|
|---|
| 1193 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|---|
| 1194 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
|---|
| 1195 | if test -n "$ac_maketemp"; then
|
|---|
| 1196 | eval ac_cv_prog_make_${ac_make}_set=yes
|
|---|
| 1197 | else
|
|---|
| 1198 | eval ac_cv_prog_make_${ac_make}_set=no
|
|---|
| 1199 | fi
|
|---|
| 1200 | rm -f conftestmake
|
|---|
| 1201 | fi
|
|---|
| 1202 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|---|
| 1203 | echo "$ac_t""yes" 1>&6
|
|---|
| 1204 | SET_MAKE=
|
|---|
| 1205 | else
|
|---|
| 1206 | echo "$ac_t""no" 1>&6
|
|---|
| 1207 | SET_MAKE="MAKE=${MAKE-make}"
|
|---|
| 1208 | fi
|
|---|
| 1209 |
|
|---|
| 1210 |
|
|---|
| 1211 | PACKAGE=gas
|
|---|
| 1212 |
|
|---|
| 1213 | VERSION=${BFD_VERSION}
|
|---|
| 1214 |
|
|---|
| 1215 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
|---|
| 1216 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
|---|
| 1217 | fi
|
|---|
| 1218 | cat >> confdefs.h <<EOF
|
|---|
| 1219 | #define PACKAGE "$PACKAGE"
|
|---|
| 1220 | EOF
|
|---|
| 1221 |
|
|---|
| 1222 | cat >> confdefs.h <<EOF
|
|---|
| 1223 | #define VERSION "$VERSION"
|
|---|
| 1224 | EOF
|
|---|
| 1225 |
|
|---|
| 1226 |
|
|---|
| 1227 |
|
|---|
| 1228 | missing_dir=`cd $ac_aux_dir && pwd`
|
|---|
| 1229 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
|---|
| 1230 | echo "configure:1231: checking for working aclocal" >&5
|
|---|
| 1231 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1232 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1233 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1234 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1235 | ACLOCAL=aclocal
|
|---|
| 1236 | echo "$ac_t""found" 1>&6
|
|---|
| 1237 | else
|
|---|
| 1238 | ACLOCAL="$missing_dir/missing aclocal"
|
|---|
| 1239 | echo "$ac_t""missing" 1>&6
|
|---|
| 1240 | fi
|
|---|
| 1241 |
|
|---|
| 1242 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
|---|
| 1243 | echo "configure:1244: checking for working autoconf" >&5
|
|---|
| 1244 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1245 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1246 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1247 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1248 | AUTOCONF=autoconf
|
|---|
| 1249 | echo "$ac_t""found" 1>&6
|
|---|
| 1250 | else
|
|---|
| 1251 | AUTOCONF="$missing_dir/missing autoconf"
|
|---|
| 1252 | echo "$ac_t""missing" 1>&6
|
|---|
| 1253 | fi
|
|---|
| 1254 |
|
|---|
| 1255 | echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
|---|
| 1256 | echo "configure:1257: checking for working automake" >&5
|
|---|
| 1257 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1258 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1259 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1260 | if (automake --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1261 | AUTOMAKE=automake
|
|---|
| 1262 | echo "$ac_t""found" 1>&6
|
|---|
| 1263 | else
|
|---|
| 1264 | AUTOMAKE="$missing_dir/missing automake"
|
|---|
| 1265 | echo "$ac_t""missing" 1>&6
|
|---|
| 1266 | fi
|
|---|
| 1267 |
|
|---|
| 1268 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
|---|
| 1269 | echo "configure:1270: checking for working autoheader" >&5
|
|---|
| 1270 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1271 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1272 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1273 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1274 | AUTOHEADER=autoheader
|
|---|
| 1275 | echo "$ac_t""found" 1>&6
|
|---|
| 1276 | else
|
|---|
| 1277 | AUTOHEADER="$missing_dir/missing autoheader"
|
|---|
| 1278 | echo "$ac_t""missing" 1>&6
|
|---|
| 1279 | fi
|
|---|
| 1280 |
|
|---|
| 1281 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
|---|
| 1282 | echo "configure:1283: checking for working makeinfo" >&5
|
|---|
| 1283 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1284 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1285 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1286 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1287 | MAKEINFO=makeinfo
|
|---|
| 1288 | echo "$ac_t""found" 1>&6
|
|---|
| 1289 | else
|
|---|
| 1290 | MAKEINFO="$missing_dir/missing makeinfo"
|
|---|
| 1291 | echo "$ac_t""missing" 1>&6
|
|---|
| 1292 | fi
|
|---|
| 1293 |
|
|---|
| 1294 |
|
|---|
| 1295 |
|
|---|
| 1296 | # Check whether --enable-shared or --disable-shared was given.
|
|---|
| 1297 | if test "${enable_shared+set}" = set; then
|
|---|
| 1298 | enableval="$enable_shared"
|
|---|
| 1299 | p=${PACKAGE-default}
|
|---|
| 1300 | case $enableval in
|
|---|
| 1301 | yes) enable_shared=yes ;;
|
|---|
| 1302 | no) enable_shared=no ;;
|
|---|
| 1303 | *)
|
|---|
| 1304 | enable_shared=no
|
|---|
| 1305 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1306 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1307 | for pkg in $enableval; do
|
|---|
| 1308 | if test "X$pkg" = "X$p"; then
|
|---|
| 1309 | enable_shared=yes
|
|---|
| 1310 | fi
|
|---|
| 1311 | done
|
|---|
| 1312 | IFS="$ac_save_ifs"
|
|---|
| 1313 | ;;
|
|---|
| 1314 | esac
|
|---|
| 1315 | else
|
|---|
| 1316 | enable_shared=yes
|
|---|
| 1317 | fi
|
|---|
| 1318 |
|
|---|
| 1319 | # Check whether --enable-static or --disable-static was given.
|
|---|
| 1320 | if test "${enable_static+set}" = set; then
|
|---|
| 1321 | enableval="$enable_static"
|
|---|
| 1322 | p=${PACKAGE-default}
|
|---|
| 1323 | case $enableval in
|
|---|
| 1324 | yes) enable_static=yes ;;
|
|---|
| 1325 | no) enable_static=no ;;
|
|---|
| 1326 | *)
|
|---|
| 1327 | enable_static=no
|
|---|
| 1328 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1329 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1330 | for pkg in $enableval; do
|
|---|
| 1331 | if test "X$pkg" = "X$p"; then
|
|---|
| 1332 | enable_static=yes
|
|---|
| 1333 | fi
|
|---|
| 1334 | done
|
|---|
| 1335 | IFS="$ac_save_ifs"
|
|---|
| 1336 | ;;
|
|---|
| 1337 | esac
|
|---|
| 1338 | else
|
|---|
| 1339 | enable_static=yes
|
|---|
| 1340 | fi
|
|---|
| 1341 |
|
|---|
| 1342 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
|---|
| 1343 | if test "${enable_fast_install+set}" = set; then
|
|---|
| 1344 | enableval="$enable_fast_install"
|
|---|
| 1345 | p=${PACKAGE-default}
|
|---|
| 1346 | case $enableval in
|
|---|
| 1347 | yes) enable_fast_install=yes ;;
|
|---|
| 1348 | no) enable_fast_install=no ;;
|
|---|
| 1349 | *)
|
|---|
| 1350 | enable_fast_install=no
|
|---|
| 1351 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1352 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1353 | for pkg in $enableval; do
|
|---|
| 1354 | if test "X$pkg" = "X$p"; then
|
|---|
| 1355 | enable_fast_install=yes
|
|---|
| 1356 | fi
|
|---|
| 1357 | done
|
|---|
| 1358 | IFS="$ac_save_ifs"
|
|---|
| 1359 | ;;
|
|---|
| 1360 | esac
|
|---|
| 1361 | else
|
|---|
| 1362 | enable_fast_install=yes
|
|---|
| 1363 | fi
|
|---|
| 1364 |
|
|---|
| 1365 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
|---|
| 1366 | if test "${with_gnu_ld+set}" = set; then
|
|---|
| 1367 | withval="$with_gnu_ld"
|
|---|
| 1368 | test "$withval" = no || with_gnu_ld=yes
|
|---|
| 1369 | else
|
|---|
| 1370 | with_gnu_ld=no
|
|---|
| 1371 | fi
|
|---|
| 1372 |
|
|---|
| 1373 | ac_prog=ld
|
|---|
| 1374 | if test "$GCC" = yes; then
|
|---|
| 1375 | # Check if gcc -print-prog-name=ld gives a path.
|
|---|
| 1376 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
|---|
| 1377 | echo "configure:1378: checking for ld used by GCC" >&5
|
|---|
| 1378 | case $host in
|
|---|
| 1379 | *-*-mingw*)
|
|---|
| 1380 | # gcc leaves a trailing carriage return which upsets mingw
|
|---|
| 1381 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
|---|
| 1382 | *)
|
|---|
| 1383 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
|---|
| 1384 | esac
|
|---|
| 1385 | case $ac_prog in
|
|---|
| 1386 | # Accept absolute paths.
|
|---|
| 1387 | [\\/]* | [A-Za-z]:[\\/]*)
|
|---|
| 1388 | re_direlt='/[^/][^/]*/\.\./'
|
|---|
| 1389 | # Canonicalize the path of ld
|
|---|
| 1390 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
|---|
| 1391 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
|---|
| 1392 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
|---|
| 1393 | done
|
|---|
| 1394 | test -z "$LD" && LD="$ac_prog"
|
|---|
| 1395 | ;;
|
|---|
| 1396 | "")
|
|---|
| 1397 | # If it fails, then pretend we aren't using GCC.
|
|---|
| 1398 | ac_prog=ld
|
|---|
| 1399 | ;;
|
|---|
| 1400 | *)
|
|---|
| 1401 | # If it is relative, then search for the first ld in PATH.
|
|---|
| 1402 | with_gnu_ld=unknown
|
|---|
| 1403 | ;;
|
|---|
| 1404 | esac
|
|---|
| 1405 | elif test "$with_gnu_ld" = yes; then
|
|---|
| 1406 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
|---|
| 1407 | echo "configure:1408: checking for GNU ld" >&5
|
|---|
| 1408 | else
|
|---|
| 1409 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
|---|
| 1410 | echo "configure:1411: checking for non-GNU ld" >&5
|
|---|
| 1411 | fi
|
|---|
| 1412 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
|
|---|
| 1413 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1414 | else
|
|---|
| 1415 | if test -z "$LD"; then
|
|---|
| 1416 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1417 | for ac_dir in $PATH; do
|
|---|
| 1418 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1419 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|---|
| 1420 | lt_cv_path_LD="$ac_dir/$ac_prog"
|
|---|
| 1421 | # Check to see if the program is GNU ld. I'd rather use --version,
|
|---|
| 1422 | # but apparently some GNU ld's only accept -v.
|
|---|
| 1423 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
|---|
| 1424 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
|---|
| 1425 | test "$with_gnu_ld" != no && break
|
|---|
| 1426 | else
|
|---|
| 1427 | test "$with_gnu_ld" != yes && break
|
|---|
| 1428 | fi
|
|---|
| 1429 | fi
|
|---|
| 1430 | done
|
|---|
| 1431 | IFS="$ac_save_ifs"
|
|---|
| 1432 | else
|
|---|
| 1433 | lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
|---|
| 1434 | fi
|
|---|
| 1435 | fi
|
|---|
| 1436 |
|
|---|
| 1437 | LD="$lt_cv_path_LD"
|
|---|
| 1438 | if test -n "$LD"; then
|
|---|
| 1439 | echo "$ac_t""$LD" 1>&6
|
|---|
| 1440 | else
|
|---|
| 1441 | echo "$ac_t""no" 1>&6
|
|---|
| 1442 | fi
|
|---|
| 1443 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
|---|
| 1444 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
|---|
| 1445 | echo "configure:1446: checking if the linker ($LD) is GNU ld" >&5
|
|---|
| 1446 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
|
|---|
| 1447 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1448 | else
|
|---|
| 1449 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
|---|
| 1450 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
|---|
| 1451 | lt_cv_prog_gnu_ld=yes
|
|---|
| 1452 | else
|
|---|
| 1453 | lt_cv_prog_gnu_ld=no
|
|---|
| 1454 | fi
|
|---|
| 1455 | fi
|
|---|
| 1456 |
|
|---|
| 1457 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
|
|---|
| 1458 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
|---|
| 1459 |
|
|---|
| 1460 |
|
|---|
| 1461 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
|
|---|
| 1462 | echo "configure:1463: checking for $LD option to reload object files" >&5
|
|---|
| 1463 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
|
|---|
| 1464 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1465 | else
|
|---|
| 1466 | lt_cv_ld_reload_flag='-r'
|
|---|
| 1467 | fi
|
|---|
| 1468 |
|
|---|
| 1469 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
|
|---|
| 1470 | reload_flag=$lt_cv_ld_reload_flag
|
|---|
| 1471 | test -n "$reload_flag" && reload_flag=" $reload_flag"
|
|---|
| 1472 |
|
|---|
| 1473 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
|---|
| 1474 | echo "configure:1475: checking for BSD-compatible nm" >&5
|
|---|
| 1475 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
|
|---|
| 1476 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1477 | else
|
|---|
| 1478 | if test -n "$NM"; then
|
|---|
| 1479 | # Let the user override the test.
|
|---|
| 1480 | lt_cv_path_NM="$NM"
|
|---|
| 1481 | else
|
|---|
| 1482 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1483 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
|---|
| 1484 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1485 | tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
|---|
| 1486 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
|---|
| 1487 | # Check to see if the nm accepts a BSD-compat flag.
|
|---|
| 1488 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
|---|
| 1489 | # nm: unknown option "B" ignored
|
|---|
| 1490 | # Tru64's nm complains that /dev/null is an invalid object file
|
|---|
| 1491 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
|---|
| 1492 | lt_cv_path_NM="$tmp_nm -B"
|
|---|
| 1493 | break
|
|---|
| 1494 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
|---|
| 1495 | lt_cv_path_NM="$tmp_nm -p"
|
|---|
| 1496 | break
|
|---|
| 1497 | else
|
|---|
| 1498 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
|---|
| 1499 | continue # so that we can try to find one that supports BSD flags
|
|---|
| 1500 | fi
|
|---|
| 1501 | fi
|
|---|
| 1502 | done
|
|---|
| 1503 | IFS="$ac_save_ifs"
|
|---|
| 1504 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
|---|
| 1505 | fi
|
|---|
| 1506 | fi
|
|---|
| 1507 |
|
|---|
| 1508 | NM="$lt_cv_path_NM"
|
|---|
| 1509 | echo "$ac_t""$NM" 1>&6
|
|---|
| 1510 |
|
|---|
| 1511 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
|---|
| 1512 | echo "configure:1513: checking whether ln -s works" >&5
|
|---|
| 1513 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
|---|
| 1514 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1515 | else
|
|---|
| 1516 | rm -f conftestdata
|
|---|
| 1517 | if ln -s X conftestdata 2>/dev/null
|
|---|
| 1518 | then
|
|---|
| 1519 | rm -f conftestdata
|
|---|
| 1520 | ac_cv_prog_LN_S="ln -s"
|
|---|
| 1521 | else
|
|---|
| 1522 | echo A > conftestdata;
|
|---|
| 1523 | if ln conftestdata conftestdata2 2>/dev/null; then
|
|---|
| 1524 | ac_cv_prog_LN_S=ln
|
|---|
| 1525 | else
|
|---|
| 1526 | ac_cv_prog_LN_S=cp
|
|---|
| 1527 | fi
|
|---|
| 1528 | fi
|
|---|
| 1529 | rm -f conftestdata*
|
|---|
| 1530 | fi
|
|---|
| 1531 | LN_S="$ac_cv_prog_LN_S"
|
|---|
| 1532 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|---|
| 1533 | echo "$ac_t""yes" 1>&6
|
|---|
| 1534 | else
|
|---|
| 1535 | echo "$ac_t""no" 1>&6
|
|---|
| 1536 | fi
|
|---|
| 1537 |
|
|---|
| 1538 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
|
|---|
| 1539 | echo "configure:1540: checking how to recognise dependant libraries" >&5
|
|---|
| 1540 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
|
|---|
| 1541 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1542 | else
|
|---|
| 1543 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
|---|
| 1544 | lt_cv_file_magic_test_file=
|
|---|
| 1545 | lt_cv_deplibs_check_method='unknown'
|
|---|
| 1546 | # Need to set the preceding variable on all platforms that support
|
|---|
| 1547 | # interlibrary dependencies.
|
|---|
| 1548 | # 'none' -- dependencies not supported.
|
|---|
| 1549 | # `unknown' -- same as none, but documents that we really don't know.
|
|---|
| 1550 | # 'pass_all' -- all dependencies passed with no checks.
|
|---|
| 1551 | # 'test_compile' -- check by making test program.
|
|---|
| 1552 | # 'file_magic [regex]' -- check by looking for files in library path
|
|---|
| 1553 | # which responds to the $file_magic_cmd with a given egrep regex.
|
|---|
| 1554 | # If you have `file' or equivalent on your system and you're not sure
|
|---|
| 1555 | # whether `pass_all' will *always* work, you probably want this one.
|
|---|
| 1556 |
|
|---|
| 1557 | case $host_os in
|
|---|
| 1558 | aix*)
|
|---|
| 1559 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1560 | ;;
|
|---|
| 1561 |
|
|---|
| 1562 | beos*)
|
|---|
| 1563 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1564 | ;;
|
|---|
| 1565 |
|
|---|
| 1566 | bsdi4*)
|
|---|
| 1567 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
|---|
| 1568 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 1569 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 1570 | ;;
|
|---|
| 1571 |
|
|---|
| 1572 | cygwin* | mingw* |pw32*)
|
|---|
| 1573 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|---|
| 1574 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|---|
| 1575 | ;;
|
|---|
| 1576 |
|
|---|
| 1577 | darwin* | rhapsody*)
|
|---|
| 1578 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
|
|---|
| 1579 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 1580 | case "$host_os" in
|
|---|
| 1581 | rhapsody* | darwin1.012)
|
|---|
| 1582 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
|
|---|
| 1583 | ;;
|
|---|
| 1584 | *) # Darwin 1.3 on
|
|---|
| 1585 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
|
|---|
| 1586 | ;;
|
|---|
| 1587 | esac
|
|---|
| 1588 | ;;
|
|---|
| 1589 |
|
|---|
| 1590 | freebsd* )
|
|---|
| 1591 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 1592 | case $host_cpu in
|
|---|
| 1593 | i*86 )
|
|---|
| 1594 | # Not sure whether the presence of OpenBSD here was a mistake.
|
|---|
| 1595 | # Let's accept both of them until this is cleared up.
|
|---|
| 1596 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
|---|
| 1597 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1598 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
|---|
| 1599 | ;;
|
|---|
| 1600 | esac
|
|---|
| 1601 | else
|
|---|
| 1602 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1603 | fi
|
|---|
| 1604 | ;;
|
|---|
| 1605 |
|
|---|
| 1606 | gnu*)
|
|---|
| 1607 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1608 | ;;
|
|---|
| 1609 |
|
|---|
| 1610 | hpux10.20*|hpux11*)
|
|---|
| 1611 | case $host_cpu in
|
|---|
| 1612 | hppa*)
|
|---|
| 1613 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
|---|
| 1614 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1615 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
|---|
| 1616 | ;;
|
|---|
| 1617 | ia64*)
|
|---|
| 1618 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
|---|
| 1619 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1620 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
|---|
| 1621 | ;;
|
|---|
| 1622 | esac
|
|---|
| 1623 | ;;
|
|---|
| 1624 |
|
|---|
| 1625 | irix5* | irix6*)
|
|---|
| 1626 | case $host_os in
|
|---|
| 1627 | irix5*)
|
|---|
| 1628 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1629 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
|---|
| 1630 | ;;
|
|---|
| 1631 | *)
|
|---|
| 1632 | case $LD in
|
|---|
| 1633 | *-32|*"-32 ") libmagic=32-bit;;
|
|---|
| 1634 | *-n32|*"-n32 ") libmagic=N32;;
|
|---|
| 1635 | *-64|*"-64 ") libmagic=64-bit;;
|
|---|
| 1636 | *) libmagic=never-match;;
|
|---|
| 1637 | esac
|
|---|
| 1638 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1639 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
|
|---|
| 1640 | ;;
|
|---|
| 1641 | esac
|
|---|
| 1642 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
|---|
| 1643 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1644 | ;;
|
|---|
| 1645 |
|
|---|
| 1646 | # This must be Linux ELF.
|
|---|
| 1647 | linux-gnu*)
|
|---|
| 1648 | case $host_cpu in
|
|---|
| 1649 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
|
|---|
| 1650 | lt_cv_deplibs_check_method=pass_all ;;
|
|---|
| 1651 | *)
|
|---|
| 1652 | # glibc up to 2.1.1 does not perform some relocations on ARM
|
|---|
| 1653 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
|
|---|
| 1654 | esac
|
|---|
| 1655 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
|---|
| 1656 | ;;
|
|---|
| 1657 |
|
|---|
| 1658 | netbsd*)
|
|---|
| 1659 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 1660 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
|---|
| 1661 | else
|
|---|
| 1662 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
|
|---|
| 1663 | fi
|
|---|
| 1664 | ;;
|
|---|
| 1665 |
|
|---|
| 1666 | os2*)
|
|---|
| 1667 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1668 | ;;
|
|---|
| 1669 |
|
|---|
| 1670 | newsos6)
|
|---|
| 1671 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
|---|
| 1672 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1673 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
|---|
| 1674 | ;;
|
|---|
| 1675 |
|
|---|
| 1676 | osf3* | osf4* | osf5*)
|
|---|
| 1677 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1678 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
|---|
| 1679 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 1680 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1681 | ;;
|
|---|
| 1682 |
|
|---|
| 1683 | sco3.2v5*)
|
|---|
| 1684 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1685 | ;;
|
|---|
| 1686 |
|
|---|
| 1687 | solaris*)
|
|---|
| 1688 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1689 | lt_cv_file_magic_test_file=/lib/libc.so
|
|---|
| 1690 | ;;
|
|---|
| 1691 |
|
|---|
| 1692 | sysv5uw[78]* | sysv4*uw2*)
|
|---|
| 1693 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1694 | ;;
|
|---|
| 1695 |
|
|---|
| 1696 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|---|
| 1697 | case $host_vendor in
|
|---|
| 1698 | ncr)
|
|---|
| 1699 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1700 | ;;
|
|---|
| 1701 | motorola)
|
|---|
| 1702 | 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]'
|
|---|
| 1703 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
|---|
| 1704 | ;;
|
|---|
| 1705 | esac
|
|---|
| 1706 | ;;
|
|---|
| 1707 | esac
|
|---|
| 1708 |
|
|---|
| 1709 | fi
|
|---|
| 1710 |
|
|---|
| 1711 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
|
|---|
| 1712 | file_magic_cmd=$lt_cv_file_magic_cmd
|
|---|
| 1713 | deplibs_check_method=$lt_cv_deplibs_check_method
|
|---|
| 1714 |
|
|---|
| 1715 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
|---|
| 1716 | echo "configure:1717: checking for object suffix" >&5
|
|---|
| 1717 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
|---|
| 1718 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1719 | else
|
|---|
| 1720 | rm -f conftest*
|
|---|
| 1721 | echo 'int i = 1;' > conftest.$ac_ext
|
|---|
| 1722 | if { (eval echo configure:1723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 1723 | for ac_file in conftest.*; do
|
|---|
| 1724 | case $ac_file in
|
|---|
| 1725 | *.c) ;;
|
|---|
| 1726 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
|---|
| 1727 | esac
|
|---|
| 1728 | done
|
|---|
| 1729 | else
|
|---|
| 1730 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
|---|
| 1731 | fi
|
|---|
| 1732 | rm -f conftest*
|
|---|
| 1733 | fi
|
|---|
| 1734 |
|
|---|
| 1735 | echo "$ac_t""$ac_cv_objext" 1>&6
|
|---|
| 1736 | OBJEXT=$ac_cv_objext
|
|---|
| 1737 | ac_objext=$ac_cv_objext
|
|---|
| 1738 |
|
|---|
| 1739 | if test $host != $build; then
|
|---|
| 1740 | ac_tool_prefix=${host_alias}-
|
|---|
| 1741 | else
|
|---|
| 1742 | ac_tool_prefix=
|
|---|
| 1743 | fi
|
|---|
| 1744 |
|
|---|
| 1745 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
|---|
| 1746 |
|
|---|
| 1747 | # Only perform the check for file, if the check method requires it
|
|---|
| 1748 | case $deplibs_check_method in
|
|---|
| 1749 | file_magic*)
|
|---|
| 1750 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
|---|
| 1751 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
|
|---|
| 1752 | echo "configure:1753: checking for ${ac_tool_prefix}file" >&5
|
|---|
| 1753 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 1754 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1755 | else
|
|---|
| 1756 | case $MAGIC_CMD in
|
|---|
| 1757 | /*)
|
|---|
| 1758 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 1759 | ;;
|
|---|
| 1760 | ?:/*)
|
|---|
| 1761 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 1762 | ;;
|
|---|
| 1763 | *)
|
|---|
| 1764 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 1765 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1766 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 1767 | for ac_dir in $ac_dummy; do
|
|---|
| 1768 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1769 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
|---|
| 1770 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
|---|
| 1771 | if test -n "$file_magic_test_file"; then
|
|---|
| 1772 | case $deplibs_check_method in
|
|---|
| 1773 | "file_magic "*)
|
|---|
| 1774 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 1775 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1776 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 1777 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 1778 | :
|
|---|
| 1779 | else
|
|---|
| 1780 | cat <<EOF 1>&2
|
|---|
| 1781 |
|
|---|
| 1782 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 1783 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 1784 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 1785 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 1786 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 1787 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 1788 | *** may want to report the problem to your system manager and/or to
|
|---|
| 1789 | *** bug-libtool@gnu.org
|
|---|
| 1790 |
|
|---|
| 1791 | EOF
|
|---|
| 1792 | fi ;;
|
|---|
| 1793 | esac
|
|---|
| 1794 | fi
|
|---|
| 1795 | break
|
|---|
| 1796 | fi
|
|---|
| 1797 | done
|
|---|
| 1798 | IFS="$ac_save_ifs"
|
|---|
| 1799 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 1800 | ;;
|
|---|
| 1801 | esac
|
|---|
| 1802 | fi
|
|---|
| 1803 |
|
|---|
| 1804 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1805 | if test -n "$MAGIC_CMD"; then
|
|---|
| 1806 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 1807 | else
|
|---|
| 1808 | echo "$ac_t""no" 1>&6
|
|---|
| 1809 | fi
|
|---|
| 1810 |
|
|---|
| 1811 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
|---|
| 1812 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1813 | echo $ac_n "checking for file""... $ac_c" 1>&6
|
|---|
| 1814 | echo "configure:1815: checking for file" >&5
|
|---|
| 1815 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 1816 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1817 | else
|
|---|
| 1818 | case $MAGIC_CMD in
|
|---|
| 1819 | /*)
|
|---|
| 1820 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 1821 | ;;
|
|---|
| 1822 | ?:/*)
|
|---|
| 1823 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 1824 | ;;
|
|---|
| 1825 | *)
|
|---|
| 1826 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 1827 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1828 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 1829 | for ac_dir in $ac_dummy; do
|
|---|
| 1830 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1831 | if test -f $ac_dir/file; then
|
|---|
| 1832 | lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
|---|
| 1833 | if test -n "$file_magic_test_file"; then
|
|---|
| 1834 | case $deplibs_check_method in
|
|---|
| 1835 | "file_magic "*)
|
|---|
| 1836 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 1837 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1838 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 1839 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 1840 | :
|
|---|
| 1841 | else
|
|---|
| 1842 | cat <<EOF 1>&2
|
|---|
| 1843 |
|
|---|
| 1844 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 1845 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 1846 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 1847 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 1848 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 1849 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 1850 | *** may want to report the problem to your system manager and/or to
|
|---|
| 1851 | *** bug-libtool@gnu.org
|
|---|
| 1852 |
|
|---|
| 1853 | EOF
|
|---|
| 1854 | fi ;;
|
|---|
| 1855 | esac
|
|---|
| 1856 | fi
|
|---|
| 1857 | break
|
|---|
| 1858 | fi
|
|---|
| 1859 | done
|
|---|
| 1860 | IFS="$ac_save_ifs"
|
|---|
| 1861 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 1862 | ;;
|
|---|
| 1863 | esac
|
|---|
| 1864 | fi
|
|---|
| 1865 |
|
|---|
| 1866 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1867 | if test -n "$MAGIC_CMD"; then
|
|---|
| 1868 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 1869 | else
|
|---|
| 1870 | echo "$ac_t""no" 1>&6
|
|---|
| 1871 | fi
|
|---|
| 1872 |
|
|---|
| 1873 | else
|
|---|
| 1874 | MAGIC_CMD=:
|
|---|
| 1875 | fi
|
|---|
| 1876 | fi
|
|---|
| 1877 |
|
|---|
| 1878 | fi
|
|---|
| 1879 | ;;
|
|---|
| 1880 | esac
|
|---|
| 1881 |
|
|---|
| 1882 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|---|
| 1883 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|---|
| 1884 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1885 | echo "configure:1886: checking for $ac_word" >&5
|
|---|
| 1886 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1887 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1888 | else
|
|---|
| 1889 | if test -n "$RANLIB"; then
|
|---|
| 1890 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1891 | else
|
|---|
| 1892 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1893 | ac_dummy="$PATH"
|
|---|
| 1894 | for ac_dir in $ac_dummy; do
|
|---|
| 1895 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1896 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1897 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1898 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|---|
| 1899 | break
|
|---|
| 1900 | fi
|
|---|
| 1901 | done
|
|---|
| 1902 | IFS="$ac_save_ifs"
|
|---|
| 1903 | fi
|
|---|
| 1904 | fi
|
|---|
| 1905 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1906 | if test -n "$RANLIB"; then
|
|---|
| 1907 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1908 | else
|
|---|
| 1909 | echo "$ac_t""no" 1>&6
|
|---|
| 1910 | fi
|
|---|
| 1911 |
|
|---|
| 1912 |
|
|---|
| 1913 | if test -z "$ac_cv_prog_RANLIB"; then
|
|---|
| 1914 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1915 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 1916 | set dummy ranlib; ac_word=$2
|
|---|
| 1917 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1918 | echo "configure:1919: checking for $ac_word" >&5
|
|---|
| 1919 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1920 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1921 | else
|
|---|
| 1922 | if test -n "$RANLIB"; then
|
|---|
| 1923 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1924 | else
|
|---|
| 1925 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1926 | ac_dummy="$PATH"
|
|---|
| 1927 | for ac_dir in $ac_dummy; do
|
|---|
| 1928 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1929 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1930 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1931 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 1932 | break
|
|---|
| 1933 | fi
|
|---|
| 1934 | done
|
|---|
| 1935 | IFS="$ac_save_ifs"
|
|---|
| 1936 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 1937 | fi
|
|---|
| 1938 | fi
|
|---|
| 1939 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1940 | if test -n "$RANLIB"; then
|
|---|
| 1941 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1942 | else
|
|---|
| 1943 | echo "$ac_t""no" 1>&6
|
|---|
| 1944 | fi
|
|---|
| 1945 |
|
|---|
| 1946 | else
|
|---|
| 1947 | RANLIB=":"
|
|---|
| 1948 | fi
|
|---|
| 1949 | fi
|
|---|
| 1950 |
|
|---|
| 1951 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|---|
| 1952 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|---|
| 1953 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1954 | echo "configure:1955: checking for $ac_word" >&5
|
|---|
| 1955 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 1956 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1957 | else
|
|---|
| 1958 | if test -n "$STRIP"; then
|
|---|
| 1959 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 1960 | else
|
|---|
| 1961 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1962 | ac_dummy="$PATH"
|
|---|
| 1963 | for ac_dir in $ac_dummy; do
|
|---|
| 1964 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1965 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1966 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1967 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
|---|
| 1968 | break
|
|---|
| 1969 | fi
|
|---|
| 1970 | done
|
|---|
| 1971 | IFS="$ac_save_ifs"
|
|---|
| 1972 | fi
|
|---|
| 1973 | fi
|
|---|
| 1974 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 1975 | if test -n "$STRIP"; then
|
|---|
| 1976 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 1977 | else
|
|---|
| 1978 | echo "$ac_t""no" 1>&6
|
|---|
| 1979 | fi
|
|---|
| 1980 |
|
|---|
| 1981 |
|
|---|
| 1982 | if test -z "$ac_cv_prog_STRIP"; then
|
|---|
| 1983 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1984 | # Extract the first word of "strip", so it can be a program name with args.
|
|---|
| 1985 | set dummy strip; ac_word=$2
|
|---|
| 1986 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1987 | echo "configure:1988: checking for $ac_word" >&5
|
|---|
| 1988 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 1989 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1990 | else
|
|---|
| 1991 | if test -n "$STRIP"; then
|
|---|
| 1992 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 1993 | else
|
|---|
| 1994 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1995 | ac_dummy="$PATH"
|
|---|
| 1996 | for ac_dir in $ac_dummy; do
|
|---|
| 1997 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1998 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1999 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2000 | ac_cv_prog_STRIP="strip"
|
|---|
| 2001 | break
|
|---|
| 2002 | fi
|
|---|
| 2003 | done
|
|---|
| 2004 | IFS="$ac_save_ifs"
|
|---|
| 2005 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
|---|
| 2006 | fi
|
|---|
| 2007 | fi
|
|---|
| 2008 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 2009 | if test -n "$STRIP"; then
|
|---|
| 2010 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 2011 | else
|
|---|
| 2012 | echo "$ac_t""no" 1>&6
|
|---|
| 2013 | fi
|
|---|
| 2014 |
|
|---|
| 2015 | else
|
|---|
| 2016 | STRIP=":"
|
|---|
| 2017 | fi
|
|---|
| 2018 | fi
|
|---|
| 2019 |
|
|---|
| 2020 |
|
|---|
| 2021 | # Check for any special flags to pass to ltconfig.
|
|---|
| 2022 | libtool_flags="--cache-file=$cache_file"
|
|---|
| 2023 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
|---|
| 2024 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
|---|
| 2025 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
|---|
| 2026 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
|
|---|
| 2027 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
|---|
| 2028 |
|
|---|
| 2029 |
|
|---|
| 2030 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
|---|
| 2031 | if test "${enable_libtool_lock+set}" = set; then
|
|---|
| 2032 | enableval="$enable_libtool_lock"
|
|---|
| 2033 | :
|
|---|
| 2034 | fi
|
|---|
| 2035 |
|
|---|
| 2036 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
|---|
| 2037 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
|---|
| 2038 |
|
|---|
| 2039 | # Check whether --with-pic or --without-pic was given.
|
|---|
| 2040 | if test "${with_pic+set}" = set; then
|
|---|
| 2041 | withval="$with_pic"
|
|---|
| 2042 | pic_mode="$withval"
|
|---|
| 2043 | else
|
|---|
| 2044 | pic_mode=default
|
|---|
| 2045 | fi
|
|---|
| 2046 |
|
|---|
| 2047 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
|
|---|
| 2048 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
|---|
| 2049 |
|
|---|
| 2050 | # Some flags need to be propagated to the compiler or linker for good
|
|---|
| 2051 | # libtool support.
|
|---|
| 2052 | case $host in
|
|---|
| 2053 | *-*-irix6*)
|
|---|
| 2054 | # Find out which ABI we are using.
|
|---|
| 2055 | echo '#line 2056 "configure"' > conftest.$ac_ext
|
|---|
| 2056 | if { (eval echo configure:2057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2057 | if test "$lt_cv_prog_gnu_ld" = yes; then
|
|---|
| 2058 | case `/usr/bin/file conftest.$ac_objext` in
|
|---|
| 2059 | *32-bit*)
|
|---|
| 2060 | LD="${LD-ld} -melf32bsmip"
|
|---|
| 2061 | ;;
|
|---|
| 2062 | *N32*)
|
|---|
| 2063 | LD="${LD-ld} -melf32bmipn32"
|
|---|
| 2064 | ;;
|
|---|
| 2065 | *64-bit*)
|
|---|
| 2066 | LD="${LD-ld} -melf64bmip"
|
|---|
| 2067 | ;;
|
|---|
| 2068 | esac
|
|---|
| 2069 | else
|
|---|
| 2070 | case `/usr/bin/file conftest.$ac_objext` in
|
|---|
| 2071 | *32-bit*)
|
|---|
| 2072 | LD="${LD-ld} -32"
|
|---|
| 2073 | ;;
|
|---|
| 2074 | *N32*)
|
|---|
| 2075 | LD="${LD-ld} -n32"
|
|---|
| 2076 | ;;
|
|---|
| 2077 | *64-bit*)
|
|---|
| 2078 | LD="${LD-ld} -64"
|
|---|
| 2079 | ;;
|
|---|
| 2080 | esac
|
|---|
| 2081 | fi
|
|---|
| 2082 | fi
|
|---|
| 2083 | rm -rf conftest*
|
|---|
| 2084 | ;;
|
|---|
| 2085 |
|
|---|
| 2086 | ia64-*-hpux*)
|
|---|
| 2087 | # Find out which ABI we are using.
|
|---|
| 2088 | echo 'int i;' > conftest.$ac_ext
|
|---|
| 2089 | if { (eval echo configure:2090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2090 | case "`/usr/bin/file conftest.o`" in
|
|---|
| 2091 | *ELF-32*)
|
|---|
| 2092 | HPUX_IA64_MODE="32"
|
|---|
| 2093 | ;;
|
|---|
| 2094 | *ELF-64*)
|
|---|
| 2095 | HPUX_IA64_MODE="64"
|
|---|
| 2096 | ;;
|
|---|
| 2097 | esac
|
|---|
| 2098 | fi
|
|---|
| 2099 | rm -rf conftest*
|
|---|
| 2100 | ;;
|
|---|
| 2101 |
|
|---|
| 2102 | *-*-sco3.2v5*)
|
|---|
| 2103 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
|---|
| 2104 | SAVE_CFLAGS="$CFLAGS"
|
|---|
| 2105 | CFLAGS="$CFLAGS -belf"
|
|---|
| 2106 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
|---|
| 2107 | echo "configure:2108: checking whether the C compiler needs -belf" >&5
|
|---|
| 2108 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
|
|---|
| 2109 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2110 | else
|
|---|
| 2111 |
|
|---|
| 2112 | ac_ext=c
|
|---|
| 2113 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2114 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2115 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2116 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2117 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2118 |
|
|---|
| 2119 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2120 | #line 2121 "configure"
|
|---|
| 2121 | #include "confdefs.h"
|
|---|
| 2122 |
|
|---|
| 2123 | int main() {
|
|---|
| 2124 |
|
|---|
| 2125 | ; return 0; }
|
|---|
| 2126 | EOF
|
|---|
| 2127 | if { (eval echo configure:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2128 | rm -rf conftest*
|
|---|
| 2129 | lt_cv_cc_needs_belf=yes
|
|---|
| 2130 | else
|
|---|
| 2131 | echo "configure: failed program was:" >&5
|
|---|
| 2132 | cat conftest.$ac_ext >&5
|
|---|
| 2133 | rm -rf conftest*
|
|---|
| 2134 | lt_cv_cc_needs_belf=no
|
|---|
| 2135 | fi
|
|---|
| 2136 | rm -f conftest*
|
|---|
| 2137 | ac_ext=c
|
|---|
| 2138 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2139 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2140 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2141 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2142 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2143 |
|
|---|
| 2144 | fi
|
|---|
| 2145 |
|
|---|
| 2146 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
|---|
| 2147 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
|---|
| 2148 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
|---|
| 2149 | CFLAGS="$SAVE_CFLAGS"
|
|---|
| 2150 | fi
|
|---|
| 2151 | ;;
|
|---|
| 2152 |
|
|---|
| 2153 |
|
|---|
| 2154 | esac
|
|---|
| 2155 |
|
|---|
| 2156 |
|
|---|
| 2157 | # Save cache, so that ltconfig can load it
|
|---|
| 2158 | cat > confcache <<\EOF
|
|---|
| 2159 | # This file is a shell script that caches the results of configure
|
|---|
| 2160 | # tests run on this system so they can be shared between configure
|
|---|
| 2161 | # scripts and configure runs. It is not useful on other systems.
|
|---|
| 2162 | # If it contains results you don't want to keep, you may remove or edit it.
|
|---|
| 2163 | #
|
|---|
| 2164 | # By default, configure uses ./config.cache as the cache file,
|
|---|
| 2165 | # creating it if it does not exist already. You can give configure
|
|---|
| 2166 | # the --cache-file=FILE option to use a different cache file; that is
|
|---|
| 2167 | # what configure does when it calls configure scripts in
|
|---|
| 2168 | # subdirectories, so they share the cache.
|
|---|
| 2169 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|---|
| 2170 | # config.status only pays attention to the cache file if you give it the
|
|---|
| 2171 | # --recheck option to rerun configure.
|
|---|
| 2172 | #
|
|---|
| 2173 | EOF
|
|---|
| 2174 | # The following way of writing the cache mishandles newlines in values,
|
|---|
| 2175 | # but we know of no workaround that is simple, portable, and efficient.
|
|---|
| 2176 | # So, don't put newlines in cache variables' values.
|
|---|
| 2177 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
|---|
| 2178 | # and sets the high bit in the cache file unless we assign to the vars.
|
|---|
| 2179 | (set) 2>&1 |
|
|---|
| 2180 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|---|
| 2181 | *ac_space=\ *)
|
|---|
| 2182 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
|---|
| 2183 | # turns \\\\ into \\, and sed turns \\ into \).
|
|---|
| 2184 | sed -n \
|
|---|
| 2185 | -e "s/'/'\\\\''/g" \
|
|---|
| 2186 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|---|
| 2187 | ;;
|
|---|
| 2188 | *)
|
|---|
| 2189 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|---|
| 2190 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|---|
| 2191 | ;;
|
|---|
| 2192 | esac >> confcache
|
|---|
| 2193 | if cmp -s $cache_file confcache; then
|
|---|
| 2194 | :
|
|---|
| 2195 | else
|
|---|
| 2196 | if test -w $cache_file; then
|
|---|
| 2197 | echo "updating cache $cache_file"
|
|---|
| 2198 | cat confcache > $cache_file
|
|---|
| 2199 | else
|
|---|
| 2200 | echo "not updating unwritable cache $cache_file"
|
|---|
| 2201 | fi
|
|---|
| 2202 | fi
|
|---|
| 2203 | rm -f confcache
|
|---|
| 2204 |
|
|---|
| 2205 |
|
|---|
| 2206 | # Actually configure libtool. ac_aux_dir is where install-sh is found.
|
|---|
| 2207 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
|---|
| 2208 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
|---|
| 2209 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
|---|
| 2210 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
|---|
| 2211 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
|---|
| 2212 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
|
|---|
| 2213 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
|---|
| 2214 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|
|---|
| 2215 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
|---|
| 2216 |
|
|---|
| 2217 | # Reload cache, that may have been modified by ltconfig
|
|---|
| 2218 | if test -r "$cache_file"; then
|
|---|
| 2219 | echo "loading cache $cache_file"
|
|---|
| 2220 | . $cache_file
|
|---|
| 2221 | else
|
|---|
| 2222 | echo "creating cache $cache_file"
|
|---|
| 2223 | > $cache_file
|
|---|
| 2224 | fi
|
|---|
| 2225 |
|
|---|
| 2226 |
|
|---|
| 2227 | # This can be used to rebuild libtool when needed
|
|---|
| 2228 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
|
|---|
| 2229 |
|
|---|
| 2230 | # Always use our own libtool.
|
|---|
| 2231 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
|---|
| 2232 |
|
|---|
| 2233 | # Redirect the config.log output again, so that the ltconfig log is not
|
|---|
| 2234 | # clobbered by the next message.
|
|---|
| 2235 | exec 5>>./config.log
|
|---|
| 2236 |
|
|---|
| 2237 |
|
|---|
| 2238 |
|
|---|
| 2239 |
|
|---|
| 2240 |
|
|---|
| 2241 |
|
|---|
| 2242 |
|
|---|
| 2243 | user_bfd_gas=
|
|---|
| 2244 | # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
|
|---|
| 2245 | if test "${enable_bfd_assembler+set}" = set; then
|
|---|
| 2246 | enableval="$enable_bfd_assembler"
|
|---|
| 2247 | case "${enableval}" in
|
|---|
| 2248 | yes) need_bfd=yes user_bfd_gas=yes ;;
|
|---|
| 2249 | no) user_bfd_gas=no ;;
|
|---|
| 2250 | *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
|
|---|
| 2251 | esac
|
|---|
| 2252 | fi
|
|---|
| 2253 | # Check whether --enable-targets or --disable-targets was given.
|
|---|
| 2254 | if test "${enable_targets+set}" = set; then
|
|---|
| 2255 | enableval="$enable_targets"
|
|---|
| 2256 | case "${enableval}" in
|
|---|
| 2257 | yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
|
|---|
| 2258 | ;;
|
|---|
| 2259 | no) enable_targets= ;;
|
|---|
| 2260 | *) enable_targets=$enableval ;;
|
|---|
| 2261 | esac
|
|---|
| 2262 | fi
|
|---|
| 2263 | # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
|
|---|
| 2264 | if test "${enable_commonbfdlib+set}" = set; then
|
|---|
| 2265 | enableval="$enable_commonbfdlib"
|
|---|
| 2266 | case "${enableval}" in
|
|---|
| 2267 | yes) commonbfdlib=true ;;
|
|---|
| 2268 | no) commonbfdlib=false ;;
|
|---|
| 2269 | *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
|
|---|
| 2270 | esac
|
|---|
| 2271 | fi
|
|---|
| 2272 |
|
|---|
| 2273 | using_cgen=no
|
|---|
| 2274 |
|
|---|
| 2275 | build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
|---|
| 2276 | # Check whether --enable-build-warnings or --disable-build-warnings was given.
|
|---|
| 2277 | if test "${enable_build_warnings+set}" = set; then
|
|---|
| 2278 | enableval="$enable_build_warnings"
|
|---|
| 2279 | case "${enableval}" in
|
|---|
| 2280 | yes) ;;
|
|---|
| 2281 | no) build_warnings="-w";;
|
|---|
| 2282 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
|---|
| 2283 | build_warnings="${build_warnings} ${t}";;
|
|---|
| 2284 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
|---|
| 2285 | build_warnings="${t} ${build_warnings}";;
|
|---|
| 2286 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
|
|---|
| 2287 | esac
|
|---|
| 2288 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
|
|---|
| 2289 | echo "Setting warning flags = $build_warnings" 6>&1
|
|---|
| 2290 | fi
|
|---|
| 2291 | fi
|
|---|
| 2292 | WARN_CFLAGS=""
|
|---|
| 2293 | if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
|
|---|
| 2294 | WARN_CFLAGS="${build_warnings}"
|
|---|
| 2295 | fi
|
|---|
| 2296 |
|
|---|
| 2297 |
|
|---|
| 2298 | # Generate a header file
|
|---|
| 2299 |
|
|---|
| 2300 |
|
|---|
| 2301 |
|
|---|
| 2302 |
|
|---|
| 2303 | # If we are on a DOS filesystem, we must use gdb.ini rather than
|
|---|
| 2304 | # .gdbinit.
|
|---|
| 2305 | GDBINIT=".gdbinit"
|
|---|
| 2306 | case "${host}" in
|
|---|
| 2307 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
|
|---|
| 2308 | GDBINIT="gdb.ini"
|
|---|
| 2309 | ;;
|
|---|
| 2310 | esac
|
|---|
| 2311 |
|
|---|
| 2312 |
|
|---|
| 2313 | te_file=generic
|
|---|
| 2314 |
|
|---|
| 2315 | # Makefile target for installing gas in $(tooldir)/bin.
|
|---|
| 2316 | install_tooldir=install-exec-tooldir
|
|---|
| 2317 |
|
|---|
| 2318 | canon_targets=""
|
|---|
| 2319 | all_targets=no
|
|---|
| 2320 | if test -n "$enable_targets" ; then
|
|---|
| 2321 | for t in `echo $enable_targets | sed 's/,/ /g'`; do
|
|---|
| 2322 | if test $t = "all"; then
|
|---|
| 2323 | all_targets=yes
|
|---|
| 2324 | continue
|
|---|
| 2325 | fi
|
|---|
| 2326 | result=`$ac_config_sub $t 2>/dev/null`
|
|---|
| 2327 | if test -n "$result" ; then
|
|---|
| 2328 | canon_targets="$canon_targets $result"
|
|---|
| 2329 | # else
|
|---|
| 2330 | # # Permit "all", etc. We don't support it yet though.
|
|---|
| 2331 | # canon_targets="$canon_targets $t"
|
|---|
| 2332 | fi
|
|---|
| 2333 | done
|
|---|
| 2334 | _gas_uniq_list="$canon_targets"
|
|---|
| 2335 | _gas_uniq_newlist=""
|
|---|
| 2336 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
|
|---|
| 2337 | case $_gas_uniq_i in
|
|---|
| 2338 | _gas_uniq_dummy) ;;
|
|---|
| 2339 | *) case " $_gas_uniq_newlist " in
|
|---|
| 2340 | *" $_gas_uniq_i "*) ;;
|
|---|
| 2341 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
|
|---|
| 2342 | esac ;;
|
|---|
| 2343 | esac
|
|---|
| 2344 | done
|
|---|
| 2345 | canon_targets=$_gas_uniq_newlist
|
|---|
| 2346 |
|
|---|
| 2347 | fi
|
|---|
| 2348 |
|
|---|
| 2349 | emulations=""
|
|---|
| 2350 |
|
|---|
| 2351 | for this_target in $target $canon_targets ; do
|
|---|
| 2352 |
|
|---|
| 2353 | eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
|
|---|
| 2354 |
|
|---|
| 2355 | # check for architecture variants
|
|---|
| 2356 | arch=
|
|---|
| 2357 | endian=
|
|---|
| 2358 | case ${cpu} in
|
|---|
| 2359 | alpha*) cpu_type=alpha ;;
|
|---|
| 2360 | arm*b|xscale*b|strongarm*b) cpu_type=arm endian=big ;;
|
|---|
| 2361 | arm*|xscale*|strongarm*) cpu_type=arm endian=little ;;
|
|---|
| 2362 | hppa*) cpu_type=hppa ;;
|
|---|
| 2363 | i[3456]86) cpu_type=i386 arch=i386;;
|
|---|
| 2364 | x86_64) cpu_type=i386 arch=x86_64;;
|
|---|
| 2365 | ia64) cpu_type=ia64 ;;
|
|---|
| 2366 | ip2k) cpu_type=ip2k endian=big ;;
|
|---|
| 2367 | iq2000) cpu_type=iq2000 endian=big ;;
|
|---|
| 2368 | m6811|m6812|m68hc12) cpu_type=m68hc11 ;;
|
|---|
| 2369 | m680[012346]0) cpu_type=m68k ;;
|
|---|
| 2370 | m68008) cpu_type=m68k ;;
|
|---|
| 2371 | m683??) cpu_type=m68k ;;
|
|---|
| 2372 | m5200) cpu_type=m68k ;;
|
|---|
| 2373 | m8*) cpu_type=m88k ;;
|
|---|
| 2374 | mips*el) cpu_type=mips endian=little ;;
|
|---|
| 2375 | mips*) cpu_type=mips endian=big ;;
|
|---|
| 2376 | or32*) cpu_type=or32 endian=big ;;
|
|---|
| 2377 | pjl*) cpu_type=pj endian=little ;;
|
|---|
| 2378 | pj*) cpu_type=pj endian=big ;;
|
|---|
| 2379 | powerpc*le*) cpu_type=ppc endian=little ;;
|
|---|
| 2380 | powerpc*) cpu_type=ppc endian=big ;;
|
|---|
| 2381 | rs6000*) cpu_type=ppc ;;
|
|---|
| 2382 | s390x*) cpu_type=s390 arch=s390x ;;
|
|---|
| 2383 | s390*) cpu_type=s390 arch=s390 ;;
|
|---|
| 2384 | sh5*) cpu_type=sh64 endian=big ;;
|
|---|
| 2385 | sh5le*) cpu_type=sh64 endian=little ;;
|
|---|
| 2386 | sh64*) cpu_type=sh64 endian=big ;;
|
|---|
| 2387 | sh64le*) cpu_type=sh64 endian=little ;;
|
|---|
| 2388 | sh*le) cpu_type=sh endian=little ;;
|
|---|
| 2389 | sh*) cpu_type=sh endian=big ;;
|
|---|
| 2390 | sparclite*) cpu_type=sparc arch=sparclite ;;
|
|---|
| 2391 | sparclet*) cpu_type=sparc arch=sparclet ;;
|
|---|
| 2392 | sparc64*) cpu_type=sparc arch=v9-64 ;;
|
|---|
| 2393 | sparc86x*) cpu_type=sparc arch=sparc86x ;;
|
|---|
| 2394 | sparc*) cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c.
|
|---|
| 2395 | v850*) cpu_type=v850 ;;
|
|---|
| 2396 | xtensa*) cpu_type=xtensa arch=xtensa ;;
|
|---|
| 2397 | *) cpu_type=${cpu} ;;
|
|---|
| 2398 | esac
|
|---|
| 2399 |
|
|---|
| 2400 | if test ${this_target} = $target ; then
|
|---|
| 2401 | target_cpu_type=${cpu_type}
|
|---|
| 2402 | elif test ${target_cpu_type} != ${cpu_type} ; then
|
|---|
| 2403 | continue
|
|---|
| 2404 | fi
|
|---|
| 2405 |
|
|---|
| 2406 | generic_target=${cpu_type}-$vendor-$os
|
|---|
| 2407 | dev=no
|
|---|
| 2408 | bfd_gas=no
|
|---|
| 2409 | em=generic
|
|---|
| 2410 |
|
|---|
| 2411 | # assign object format
|
|---|
| 2412 | case ${generic_target} in
|
|---|
| 2413 | a29k-*-coff) fmt=coff ;;
|
|---|
| 2414 | a29k-amd-udi) fmt=coff ;;
|
|---|
| 2415 | a29k-amd-ebmon) fmt=coff ;;
|
|---|
| 2416 | a29k-nyu-sym1) fmt=coff ;;
|
|---|
| 2417 | a29k-*-rtems*) fmt=coff ;;
|
|---|
| 2418 | a29k-*-vxworks*) fmt=coff ;;
|
|---|
| 2419 |
|
|---|
| 2420 | alpha*-*-*vms*) fmt=evax ;;
|
|---|
| 2421 | alpha*-*-netware*) fmt=ecoff ;;
|
|---|
| 2422 | alpha*-*-osf*) fmt=ecoff ;;
|
|---|
| 2423 | alpha*-*-linuxecoff*) fmt=ecoff ;;
|
|---|
| 2424 | alpha*-*-linux-gnu*) fmt=elf em=linux ;;
|
|---|
| 2425 | alpha*-*-netbsd*) fmt=elf em=nbsd ;;
|
|---|
| 2426 | alpha*-*-openbsd*) fmt=elf em=obsd ;;
|
|---|
| 2427 |
|
|---|
| 2428 | arc-*-elf*) fmt=elf ;;
|
|---|
| 2429 |
|
|---|
| 2430 | arm-*-aout) fmt=aout ;;
|
|---|
| 2431 | arm-*-coff | thumb-*-coff) fmt=coff ;;
|
|---|
| 2432 | arm-*-rtems | thumb-*-rtems) fmt=elf ;;
|
|---|
| 2433 | arm-*-elf | thumb-*-elf) fmt=elf ;;
|
|---|
| 2434 | arm-*-kaos*) fmt=elf ;;
|
|---|
| 2435 | arm*-*-conix*) fmt=elf ;;
|
|---|
| 2436 | arm-*-linux*aout*) fmt=aout em=linux ;;
|
|---|
| 2437 | arm*-*-linux-gnu*) fmt=elf em=linux ;;
|
|---|
| 2438 | arm*-*-uclinux*) fmt=elf em=linux ;;
|
|---|
| 2439 | arm-*-netbsdelf*) fmt=elf em=nbsd ;;
|
|---|
| 2440 | arm-*-*n*bsd*) fmt=aout em=nbsd ;;
|
|---|
| 2441 | arm-**-nto*) fmt=elf ;;
|
|---|
| 2442 | arm-*-oabi | thumb-*-oabi) fmt=elf ;;
|
|---|
| 2443 | arm-epoc-pe | thumb-epoc-pe) fmt=coff em=epoc-pe ;;
|
|---|
| 2444 | arm-*-wince) fmt=coff em=wince-pe ;;
|
|---|
| 2445 | arm-*-pe | thumb-*-pe) fmt=coff em=pe ;;
|
|---|
| 2446 | arm-*-riscix*) fmt=aout em=riscix ;;
|
|---|
| 2447 | arm-*-vxworks) fmt=coff ;;
|
|---|
| 2448 |
|
|---|
| 2449 | avr-*-*) fmt=elf ;;
|
|---|
| 2450 |
|
|---|
| 2451 | cris-*-*) fmt=multi bfd_gas=yes ;;
|
|---|
| 2452 |
|
|---|
| 2453 | d10v-*-*) fmt=elf ;;
|
|---|
| 2454 | d30v-*-*) fmt=elf ;;
|
|---|
| 2455 | dlx-*-*) fmt=elf ;;
|
|---|
| 2456 |
|
|---|
| 2457 | fr30-*-*) fmt=elf ;;
|
|---|
| 2458 | frv-*-*) fmt=elf ;;
|
|---|
| 2459 |
|
|---|
| 2460 | hppa-*-linux*) case ${cpu} in
|
|---|
| 2461 | hppa*64*) fmt=elf em=hppalinux64;;
|
|---|
| 2462 | hppa*) fmt=elf em=linux;;
|
|---|
| 2463 | esac ;;
|
|---|
| 2464 | hppa-*-*elf*) fmt=elf em=hppa ;;
|
|---|
| 2465 | hppa-*-lites*) fmt=elf em=hppa ;;
|
|---|
| 2466 | hppa-*-netbsd*) fmt=elf em=nbsd ;;
|
|---|
| 2467 | hppa-*-openbsd*) fmt=elf em=hppa ;;
|
|---|
| 2468 | hppa-*-osf*) fmt=som em=hppa ;;
|
|---|
| 2469 | hppa-*-rtems*) fmt=elf em=hppa ;;
|
|---|
| 2470 | hppa-*-hpux11*) case ${cpu} in
|
|---|
| 2471 | hppa*64*) fmt=elf em=hppa64 ;;
|
|---|
| 2472 | hppa*) fmt=som em=hppa ;;
|
|---|
| 2473 | esac ;;
|
|---|
| 2474 | hppa-*-hpux*) fmt=som em=hppa ;;
|
|---|
| 2475 | hppa-*-mpeix*) fmt=som em=hppa ;;
|
|---|
| 2476 | hppa-*-bsd*) fmt=som em=hppa ;;
|
|---|
| 2477 | hppa-*-hiux*) fmt=som em=hppa ;;
|
|---|
| 2478 |
|
|---|
| 2479 | h8300-*-rtems*) fmt=coff ;;
|
|---|
| 2480 | h8300-*-coff) fmt=coff ;;
|
|---|
| 2481 | h8300-*-elf) fmt=elf ;;
|
|---|
| 2482 | h8500-*-rtems*) fmt=coff ;;
|
|---|
| 2483 | h8500-*-coff) fmt=coff ;;
|
|---|
| 2484 |
|
|---|
| 2485 | i370-*-elf* | i370-*-linux*) fmt=elf ;;
|
|---|
| 2486 | i386-ibm-aix*) fmt=coff em=i386aix ;;
|
|---|
| 2487 | i386-sequent-bsd*) fmt=aout em=dynix ;;
|
|---|
| 2488 | i386-*-beospe*) fmt=coff em=pe ;;
|
|---|
| 2489 | i386-*-beos*) fmt=elf ;;
|
|---|
| 2490 | i386-*-coff) fmt=coff ;;
|
|---|
| 2491 | i386-*-elf) fmt=elf ;;
|
|---|
| 2492 | i386-*-kaos*) fmt=elf ;;
|
|---|
| 2493 | i386-*-bsd*) fmt=aout em=386bsd ;;
|
|---|
| 2494 | i386-*-netbsd0.8) fmt=aout em=386bsd ;;
|
|---|
| 2495 | i386-*-netbsdpe*) fmt=coff em=pe ;;
|
|---|
| 2496 | i386-*-netbsdelf*) fmt=elf em=nbsd ;;
|
|---|
| 2497 | i386-*-*n*bsd*) case ${cpu} in
|
|---|
| 2498 | x86_64) fmt=elf em=nbsd ;;
|
|---|
| 2499 | *) fmt=aout em=nbsd ;;
|
|---|
| 2500 | esac ;;
|
|---|
| 2501 | i386-*-linux*aout*) fmt=aout em=linux ;;
|
|---|
| 2502 | i386-*-linux*oldld) fmt=aout em=linux ;;
|
|---|
| 2503 | i386-*-linux*coff*) fmt=coff em=linux ;;
|
|---|
| 2504 | i386-*-linux-gnu*) fmt=elf em=linux ;;
|
|---|
| 2505 | x86_64-*-linux-gnu*) fmt=elf em=linux ;;
|
|---|
| 2506 | i386-*-lynxos*) fmt=coff em=lynx ;;
|
|---|
| 2507 | i386-*-sysv[45]*) fmt=elf ;;
|
|---|
| 2508 | i386-*-solaris*) fmt=elf ;;
|
|---|
| 2509 | i386-*-freebsdaout*) fmt=aout em=386bsd ;;
|
|---|
| 2510 | i386-*-freebsd[12].*) fmt=aout em=386bsd ;;
|
|---|
| 2511 | i386-*-freebsd[12]) fmt=aout em=386bsd ;;
|
|---|
| 2512 | i386-*-sysv*) fmt=coff ;;
|
|---|
| 2513 | i386-*-sco3.2v5*coff) fmt=coff ;;
|
|---|
| 2514 | i386-*-isc*) fmt=coff ;;
|
|---|
| 2515 | i386-*-sco3.2v5*) fmt=elf
|
|---|
| 2516 | if test ${this_target} = $target; then
|
|---|
| 2517 | cat >> confdefs.h <<\EOF
|
|---|
| 2518 | #define SCO_ELF 1
|
|---|
| 2519 | EOF
|
|---|
| 2520 |
|
|---|
| 2521 | fi ;;
|
|---|
| 2522 | i386-*-sco3.2*) fmt=coff ;;
|
|---|
| 2523 | i386-*-vsta) fmt=aout ;;
|
|---|
| 2524 | i386-*-msdosdjgpp* \
|
|---|
| 2525 | | i386-*-go32* \
|
|---|
| 2526 | | i386-go32-rtems*) fmt=coff em=go32
|
|---|
| 2527 | cat >> confdefs.h <<\EOF
|
|---|
| 2528 | #define STRICTCOFF 1
|
|---|
| 2529 | EOF
|
|---|
| 2530 | ;;
|
|---|
| 2531 | i386-*-rtemself*) fmt=elf ;;
|
|---|
| 2532 | i386-*-rtemscoff*) fmt=coff ;;
|
|---|
| 2533 | i386-*-rtems*) fmt=elf ;;
|
|---|
| 2534 | i386-*-gnu*) fmt=elf ;;
|
|---|
| 2535 | i386-*-mach*) fmt=aout em=mach ;;
|
|---|
| 2536 | i386-*-msdos*) fmt=aout ;;
|
|---|
| 2537 | i386-*-moss*) fmt=elf ;;
|
|---|
| 2538 | i386-*-pe) fmt=coff em=pe ;;
|
|---|
| 2539 | i386-*-cygwin*) fmt=coff em=pe ;;
|
|---|
| 2540 | i386-*-interix*) fmt=coff em=interix ;;
|
|---|
| 2541 | i386-*-mingw32*) fmt=coff em=pe ;;
|
|---|
| 2542 | i386-*-nto-qnx*) fmt=elf ;;
|
|---|
| 2543 | i386-*-*nt*) fmt=coff em=pe ;;
|
|---|
| 2544 | i386-*-os2*) fmt=aout em=emx bfd_gas=yes ;;
|
|---|
| 2545 | i386-*-vxworks*) fmt=aout ;;
|
|---|
| 2546 | i386-*-chaos) fmt=elf ;;
|
|---|
| 2547 |
|
|---|
| 2548 | i860-*-*) fmt=elf endian=little
|
|---|
| 2549 | echo "configure: warning: GAS support for ${generic_target} is preliminary and a work in progress" 1>&2 ;;
|
|---|
| 2550 | i960-*-bout) fmt=bout ;;
|
|---|
| 2551 | i960-*-coff) fmt=coff em=ic960 ;;
|
|---|
| 2552 | i960-*-rtems*) fmt=coff em=ic960 ;;
|
|---|
| 2553 | i960-*-nindy*) fmt=bout ;;
|
|---|
| 2554 | i960-*-vxworks5.0) fmt=bout ;;
|
|---|
| 2555 | i960-*-vxworks5.*) fmt=coff em=ic960 ;;
|
|---|
| 2556 | i960-*-vxworks*) fmt=bout ;;
|
|---|
| 2557 | i960-*-elf*) fmt=elf ;;
|
|---|
| 2558 |
|
|---|
| 2559 | ia64-*-elf*) fmt=elf ;;
|
|---|
| 2560 | ia64-*-aix*) fmt=elf em=ia64aix ;;
|
|---|
| 2561 | ia64-*-linux-gnu*) fmt=elf em=linux ;;
|
|---|
| 2562 | ia64-*-hpux*) fmt=elf em=hpux ;;
|
|---|
| 2563 | ia64-*-netbsd*) fmt=elf em=nbsd ;;
|
|---|
| 2564 |
|
|---|
| 2565 | ip2k-*-*) fmt=elf ;;
|
|---|
| 2566 |
|
|---|
| 2567 | iq2000-*-elf) fmt=elf bfd_gas=yes ;;
|
|---|
| 2568 |
|
|---|
| 2569 | m32r-*-*) fmt=elf ;;
|
|---|
| 2570 |
|
|---|
| 2571 | m68hc11-*-* | m6811-*-*) fmt=elf ;;
|
|---|
| 2572 | m68hc12-*-* | m6812-*-*) fmt=elf ;;
|
|---|
| 2573 |
|
|---|
| 2574 | m68k-*-vxworks*) fmt=aout em=sun3 ;;
|
|---|
| 2575 | m68k-ericsson-ose) fmt=aout em=sun3 ;;
|
|---|
| 2576 | m68k-*-sunos*) fmt=aout em=sun3 ;;
|
|---|
| 2577 | m68k-motorola-sysv*) fmt=coff em=delta ;;
|
|---|
| 2578 | m68k-bull-sysv3*) fmt=coff em=dpx2 ;;
|
|---|
| 2579 | m68k-apollo-*) fmt=coff em=apollo ;;
|
|---|
| 2580 | m68k-*-elf*) fmt=elf ;;
|
|---|
| 2581 | m68k-*-sysv4*) fmt=elf em=svr4 ;;
|
|---|
| 2582 | m68k-*-sysv*) fmt=coff ;;
|
|---|
| 2583 | m68k-*-coff | m68k-*-rtemscoff*) fmt=coff ;;
|
|---|
| 2584 | m68k-*-rtems*) fmt=elf ;;
|
|---|
| 2585 | m68k-*-hpux*) fmt=hp300 em=hp300 ;;
|
|---|
| 2586 | m68k-*-linux*aout*) fmt=aout em=linux ;;
|
|---|
| 2587 | m68k-*-linux-gnu*) fmt=elf em=linux ;;
|
|---|
| 2588 | m68k-*-gnu*) fmt=elf ;;
|
|---|
| 2589 | m68k-*-lynxos*) fmt=coff em=lynx ;;
|
|---|
| 2590 | m68k-*-netbsdelf*) fmt=elf em=nbsd ;;
|
|---|
| 2591 | m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
|
|---|
| 2592 | m68k-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
|
|---|
| 2593 | m68k-apple-aux*) fmt=coff em=aux ;;
|
|---|
| 2594 | m68k-*-psos*) fmt=elf em=psos;;
|
|---|
| 2595 |
|
|---|
| 2596 | m88k-motorola-sysv3*) fmt=coff em=delt88 ;;
|
|---|
| 2597 | m88k-*-coff*) fmt=coff ;;
|
|---|
| 2598 |
|
|---|
| 2599 | mcore-*-elf) fmt=elf ;;
|
|---|
| 2600 | mcore-*-pe) fmt=coff em=pe bfd_gas=yes ;;
|
|---|
| 2601 |
|
|---|
| 2602 | # don't change em like *-*-bsd does
|
|---|
| 2603 | mips-dec-openbsd*) fmt=elf endian=little ;;
|
|---|
| 2604 | mips-dec-bsd*) fmt=aout endian=little ;;
|
|---|
| 2605 | mips-sony-bsd*) fmt=ecoff ;;
|
|---|
| 2606 | mips-*-bsd*)
|
|---|
| 2607 | { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
|
|---|
| 2608 | mips-*-ultrix*) fmt=ecoff endian=little ;;
|
|---|
| 2609 | mips-*-osf*) fmt=ecoff endian=little ;;
|
|---|
| 2610 | mips-*-ecoff*) fmt=ecoff ;;
|
|---|
| 2611 | mips-*-pe*) fmt=coff endian=little em=pe ;;
|
|---|
| 2612 | mips-*-irix6*) fmt=elf em=irix ;;
|
|---|
| 2613 | mips-*-irix5*) fmt=elf em=irix ;;
|
|---|
| 2614 | mips-*-irix*) fmt=ecoff em=irix ;;
|
|---|
| 2615 | mips-*-lnews*) fmt=ecoff em=lnews ;;
|
|---|
| 2616 | mips-*-riscos*) fmt=ecoff ;;
|
|---|
| 2617 | mips*-*-linux*) fmt=elf em=tmips ;;
|
|---|
| 2618 | mips-*-sysv4*MP* | mips-*-gnu*) fmt=elf em=tmips ;;
|
|---|
| 2619 | mips-*-sysv*) fmt=ecoff ;;
|
|---|
| 2620 | mips-*-elf* | mips-*-rtems*) fmt=elf ;;
|
|---|
| 2621 | mips-*-netbsd*) fmt=elf ;;
|
|---|
| 2622 | mips-*-openbsd*) fmt=elf ;;
|
|---|
| 2623 | mips-*-vxworks*) fmt=elf ;;
|
|---|
| 2624 |
|
|---|
| 2625 | mmix-*-*) fmt=elf ;;
|
|---|
| 2626 | mn10200-*-*) fmt=elf ;;
|
|---|
| 2627 | mn10300-*-*) fmt=elf ;;
|
|---|
| 2628 | msp430-*-*) fmt=elf ;;
|
|---|
| 2629 | openrisc-*-*) fmt=elf ;;
|
|---|
| 2630 | or32-*-rtems*) fmt=coff ;;
|
|---|
| 2631 | or32-*-coff) fmt=coff ;;
|
|---|
| 2632 | or32-*-elf) fmt=elf ;;
|
|---|
| 2633 | pj*) fmt=elf ;;
|
|---|
| 2634 |
|
|---|
| 2635 | ppc-*-pe | ppc-*-cygwin*) fmt=coff em=pe ;;
|
|---|
| 2636 | ppc-*-winnt*) fmt=coff em=pe ;;
|
|---|
| 2637 | ppc-*-aix5*) fmt=coff em=aix5 ;;
|
|---|
| 2638 | ppc-*-aix*) fmt=coff ;;
|
|---|
| 2639 | ppc-*-beos*) fmt=coff ;;
|
|---|
| 2640 | ppc-*-*n*bsd* | ppc-*-elf*) fmt=elf ;;
|
|---|
| 2641 | ppc-*-eabi* | ppc-*-sysv4*) fmt=elf ;;
|
|---|
| 2642 | ppc-*-linux-gnu*) fmt=elf
|
|---|
| 2643 | case "$endian" in
|
|---|
| 2644 | big) ;;
|
|---|
| 2645 | *) { echo "configure: error: GNU/Linux must be configured big endian" 1>&2; exit 1; } ;;
|
|---|
| 2646 | esac ;;
|
|---|
| 2647 | ppc-*-solaris*) fmt=elf
|
|---|
| 2648 | if test ${this_target} = $target; then
|
|---|
| 2649 | cat >> confdefs.h <<\EOF
|
|---|
| 2650 | #define TARGET_SOLARIS_COMMENT 1
|
|---|
| 2651 | EOF
|
|---|
| 2652 |
|
|---|
| 2653 | fi
|
|---|
| 2654 | if test x${endian} = xbig; then
|
|---|
| 2655 | { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; }
|
|---|
| 2656 | fi ;;
|
|---|
| 2657 | ppc-*-rtems*) fmt=elf ;;
|
|---|
| 2658 | ppc-*-macos* | ppc-*-mpw*) fmt=coff em=macos ;;
|
|---|
| 2659 | ppc-*-netware*) fmt=elf em=ppcnw ;;
|
|---|
| 2660 | ppc-**-nto*) fmt=elf ;;
|
|---|
| 2661 | ppc-*-vxworks*) fmt=elf ;;
|
|---|
| 2662 | ppc-*-windiss*) fmt=elf ;;
|
|---|
| 2663 | ppc-*-kaos*) fmt=elf ;;
|
|---|
| 2664 |
|
|---|
| 2665 | s390x-*-linux-gnu*) fmt=elf em=linux ;;
|
|---|
| 2666 | s390-*-linux-gnu*) fmt=elf em=linux ;;
|
|---|
| 2667 |
|
|---|
| 2668 | sh*-*-linux*) fmt=elf em=linux
|
|---|
| 2669 | case ${cpu} in
|
|---|
| 2670 | sh*eb) endian=big ;;
|
|---|
| 2671 | *) endian=little ;;
|
|---|
| 2672 | esac ;;
|
|---|
| 2673 | sh5*-*-netbsd*) fmt=elf em=nbsd ;;
|
|---|
| 2674 | sh64*-*-netbsd*) fmt=elf em=nbsd ;;
|
|---|
| 2675 | sh*-*-netbsdelf*) fmt=elf em=nbsd ;;
|
|---|
| 2676 | sh-*-elf*) fmt=elf ;;
|
|---|
| 2677 | sh-*-coff*) fmt=coff ;;
|
|---|
| 2678 | sh-*-nto*) fmt=elf ;;
|
|---|
| 2679 | sh-*-pe*) fmt=coff em=pe bfd_gas=yes endian=little ;;
|
|---|
| 2680 | sh-*-rtemself*) fmt=elf ;;
|
|---|
| 2681 | sh-*-rtems*) fmt=coff ;;
|
|---|
| 2682 | sh-*-kaos*) fmt=elf ;;
|
|---|
| 2683 | shle*-*-kaos*) fmt=elf ;;
|
|---|
| 2684 | sh64-*-elf*) fmt=elf ;;
|
|---|
| 2685 |
|
|---|
| 2686 | ns32k-pc532-mach*) fmt=aout em=pc532mach ;;
|
|---|
| 2687 | ns32k-pc532-ux*) fmt=aout em=pc532mach ;;
|
|---|
| 2688 | ns32k-pc532-lites*) fmt=aout em=nbsd532 ;;
|
|---|
| 2689 | ns32k-*-*n*bsd*) fmt=aout em=nbsd532 ;;
|
|---|
| 2690 |
|
|---|
| 2691 | sparc-*-rtemsaout*) fmt=aout ;;
|
|---|
| 2692 | sparc-*-rtemself*) fmt=elf ;;
|
|---|
| 2693 | sparc-*-rtems*) fmt=elf ;;
|
|---|
| 2694 | sparc-*-sunos4*) fmt=aout em=sun3 ;;
|
|---|
| 2695 | sparc-*-aout | sparc*-*-vxworks*) fmt=aout em=sparcaout ;;
|
|---|
| 2696 | sparc-*-coff) fmt=coff ;;
|
|---|
| 2697 | sparc-*-linux*aout*) fmt=aout em=linux ;;
|
|---|
| 2698 | sparc-*-linux-gnu*) fmt=elf em=linux ;;
|
|---|
| 2699 | sparc-*-lynxos*) fmt=coff em=lynx ;;
|
|---|
| 2700 | sparc-fujitsu-none) fmt=aout ;;
|
|---|
| 2701 | sparc-*-elf) fmt=elf ;;
|
|---|
| 2702 | sparc-*-sysv4*) fmt=elf ;;
|
|---|
| 2703 | sparc-*-solaris*) fmt=elf ;;
|
|---|
| 2704 | sparc-*-netbsdelf*) fmt=elf em=nbsd ;;
|
|---|
| 2705 | sparc-*-*n*bsd*) case ${cpu} in
|
|---|
| 2706 | sparc64) fmt=elf em=nbsd ;;
|
|---|
| 2707 | *) fmt=aout em=nbsd ;;
|
|---|
| 2708 | esac ;;
|
|---|
| 2709 | strongarm-*-coff) fmt=coff ;;
|
|---|
| 2710 | strongarm-*-elf) fmt=elf ;;
|
|---|
| 2711 | strongarm-*-kaos*) fmt=elf ;;
|
|---|
| 2712 | xscale-*-coff) fmt=coff ;;
|
|---|
| 2713 | xscale-*-elf) fmt=elf ;;
|
|---|
| 2714 |
|
|---|
| 2715 | tic30-*-*aout*) fmt=aout bfd_gas=yes ;;
|
|---|
| 2716 | tic30-*-*coff*) fmt=coff bfd_gas=yes ;;
|
|---|
| 2717 | tic4x-*-* | c4x-*-*) fmt=coff bfd_gas=yes ;;
|
|---|
| 2718 | tic54x-*-* | c54x*-*-*) fmt=coff bfd_gas=yes need_libm=yes;;
|
|---|
| 2719 | tic80-*-*) fmt=coff ;;
|
|---|
| 2720 |
|
|---|
| 2721 | v850-*-*) fmt=elf ;;
|
|---|
| 2722 | v850e-*-*) fmt=elf ;;
|
|---|
| 2723 | v850ea-*-*) fmt=elf ;;
|
|---|
| 2724 |
|
|---|
| 2725 | vax-*-netbsdelf*) fmt=elf em=nbsd ;;
|
|---|
| 2726 | vax-*-netbsd*) fmt=aout em=nbsd ;;
|
|---|
| 2727 | vax-*-bsd* | vax-*-ultrix*) fmt=aout ;;
|
|---|
| 2728 | vax-*-vms) fmt=vms ;;
|
|---|
| 2729 |
|
|---|
| 2730 | w65-*-*) fmt=coff ;;
|
|---|
| 2731 |
|
|---|
| 2732 | xstormy16-*-*) fmt=elf ;;
|
|---|
| 2733 |
|
|---|
| 2734 | xtensa-*-*) fmt=elf ;;
|
|---|
| 2735 |
|
|---|
| 2736 | z8k-*-coff | z8k-*-sim) fmt=coff ;;
|
|---|
| 2737 |
|
|---|
| 2738 | *-*-aout | *-*-scout) fmt=aout ;;
|
|---|
| 2739 | *-*-freebsd*) fmt=elf em=freebsd ;;
|
|---|
| 2740 | *-*-nindy*) fmt=bout ;;
|
|---|
| 2741 | *-*-bsd*) fmt=aout em=sun3 ;;
|
|---|
| 2742 | *-*-generic) fmt=generic ;;
|
|---|
| 2743 | *-*-xray | *-*-hms) fmt=coff ;;
|
|---|
| 2744 | *-*-sim) fmt=coff ;;
|
|---|
| 2745 | *-*-elf | *-*-sysv4* | *-*-solaris*) fmt=elf dev=yes ;;
|
|---|
| 2746 | *-*-aros*) fmt=elf em=linux bfd_gas=yes ;;
|
|---|
| 2747 | *-*-vxworks) fmt=aout ;;
|
|---|
| 2748 | *-*-netware) fmt=elf ;;
|
|---|
| 2749 | esac
|
|---|
| 2750 |
|
|---|
| 2751 | if test ${this_target} = $target ; then
|
|---|
| 2752 | endian_def=
|
|---|
| 2753 | if test x${endian} = xbig; then
|
|---|
| 2754 | endian_def=1
|
|---|
| 2755 | elif test x${endian} = xlittle; then
|
|---|
| 2756 | endian_def=0
|
|---|
| 2757 | fi
|
|---|
| 2758 | if test x${endian_def} != x; then
|
|---|
| 2759 | cat >> confdefs.h <<EOF
|
|---|
| 2760 | #define TARGET_BYTES_BIG_ENDIAN $endian_def
|
|---|
| 2761 | EOF
|
|---|
| 2762 |
|
|---|
| 2763 | fi
|
|---|
| 2764 | fi
|
|---|
| 2765 |
|
|---|
| 2766 | case ${cpu_type}-${fmt} in
|
|---|
| 2767 | alpha*-* | arm-* | i386-* | ia64*-* | mips-* | ns32k-* \
|
|---|
| 2768 | | pdp11-* | ppc-* | sparc-* | strongarm-* | xscale-* \
|
|---|
| 2769 | | *-elf | *-ecoff | *-som)
|
|---|
| 2770 | bfd_gas=yes ;;
|
|---|
| 2771 | esac
|
|---|
| 2772 |
|
|---|
| 2773 | # Other random stuff.
|
|---|
| 2774 |
|
|---|
| 2775 | case ${cpu_type} in
|
|---|
| 2776 | mips)
|
|---|
| 2777 | # Set mips_cpu to the name of the default CPU.
|
|---|
| 2778 | case ${target_cpu} in
|
|---|
| 2779 | mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
|
|---|
| 2780 | mips_cpu=from-abi
|
|---|
| 2781 | ;;
|
|---|
| 2782 | mipsisa32 | mipsisa32el)
|
|---|
| 2783 | mips_cpu=mips32
|
|---|
| 2784 | ;;
|
|---|
| 2785 | mipsisa32r2 | mipsisa32r2el)
|
|---|
| 2786 | mips_cpu=mips32r2
|
|---|
| 2787 | ;;
|
|---|
| 2788 | mipsisa64 | mipsisa64el)
|
|---|
| 2789 | mips_cpu=mips64
|
|---|
| 2790 | ;;
|
|---|
| 2791 | mipstx39 | mipstx39el)
|
|---|
| 2792 | mips_cpu=r3900
|
|---|
| 2793 | ;;
|
|---|
| 2794 | mips64vr | mips64vrel)
|
|---|
| 2795 | mips_cpu=vr4100
|
|---|
| 2796 | ;;
|
|---|
| 2797 | mipsisa32r2*)
|
|---|
| 2798 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
|
|---|
| 2799 | ;;
|
|---|
| 2800 | mips64* | mipsisa64* | mipsisa32*)
|
|---|
| 2801 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
|
|---|
| 2802 | ;;
|
|---|
| 2803 | *)
|
|---|
| 2804 | { echo "configure: error: $target_cpu isn't a supported MIPS CPU name" 1>&2; exit 1; }
|
|---|
| 2805 | ;;
|
|---|
| 2806 | esac
|
|---|
| 2807 | # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
|
|---|
| 2808 | # binaries. It's a GNU extension that some OSes don't understand.
|
|---|
| 2809 | # The value only matters on ELF targets.
|
|---|
| 2810 | case ${target} in
|
|---|
| 2811 | *-*-irix*)
|
|---|
| 2812 | use_e_mips_abi_o32=0
|
|---|
| 2813 | ;;
|
|---|
| 2814 | *)
|
|---|
| 2815 | use_e_mips_abi_o32=1
|
|---|
| 2816 | ;;
|
|---|
| 2817 | esac
|
|---|
| 2818 | # Decide whether to generate 32-bit or 64-bit code by default.
|
|---|
| 2819 | # Used to resolve -march=from-abi when an embedded ABI is selected.
|
|---|
| 2820 | case ${target} in
|
|---|
| 2821 | mips64*-*-* | mipsisa64*-*-*)
|
|---|
| 2822 | mips_default_64bit=1
|
|---|
| 2823 | ;;
|
|---|
| 2824 | *)
|
|---|
| 2825 | mips_default_64bit=0
|
|---|
| 2826 | ;;
|
|---|
| 2827 | esac
|
|---|
| 2828 | # Decide which ABI to target by default.
|
|---|
| 2829 | case ${target} in
|
|---|
| 2830 | mips64*-linux* | mips-sgi-irix6*)
|
|---|
| 2831 | mips_default_abi=N32_ABI
|
|---|
| 2832 | ;;
|
|---|
| 2833 | mips*-linux*)
|
|---|
| 2834 | mips_default_abi=O32_ABI
|
|---|
| 2835 | ;;
|
|---|
| 2836 | *)
|
|---|
| 2837 | mips_default_abi=NO_ABI
|
|---|
| 2838 | ;;
|
|---|
| 2839 | esac
|
|---|
| 2840 | cat >> confdefs.h <<EOF
|
|---|
| 2841 | #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
|
|---|
| 2842 | EOF
|
|---|
| 2843 |
|
|---|
| 2844 | cat >> confdefs.h <<EOF
|
|---|
| 2845 | #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
|
|---|
| 2846 | EOF
|
|---|
| 2847 |
|
|---|
| 2848 | cat >> confdefs.h <<EOF
|
|---|
| 2849 | #define MIPS_DEFAULT_64BIT $mips_default_64bit
|
|---|
| 2850 | EOF
|
|---|
| 2851 |
|
|---|
| 2852 | cat >> confdefs.h <<EOF
|
|---|
| 2853 | #define MIPS_DEFAULT_ABI $mips_default_abi
|
|---|
| 2854 | EOF
|
|---|
| 2855 |
|
|---|
| 2856 | ;;
|
|---|
| 2857 | esac
|
|---|
| 2858 |
|
|---|
| 2859 | # Do we need the opcodes library?
|
|---|
| 2860 | case ${cpu_type} in
|
|---|
| 2861 | vax | i386 | tic30)
|
|---|
| 2862 | ;;
|
|---|
| 2863 |
|
|---|
| 2864 | *)
|
|---|
| 2865 | need_opcodes=yes
|
|---|
| 2866 |
|
|---|
| 2867 | case "${enable_shared}" in
|
|---|
| 2868 | yes) shared_opcodes=true ;;
|
|---|
| 2869 | *opcodes*) shared_opcodes=true ;;
|
|---|
| 2870 | *) shared_opcodes=false ;;
|
|---|
| 2871 | esac
|
|---|
| 2872 | if test "${shared_opcodes}" = "true"; then
|
|---|
| 2873 | # A shared libopcodes must be linked against libbfd.
|
|---|
| 2874 | need_bfd=yes
|
|---|
| 2875 | fi
|
|---|
| 2876 | ;;
|
|---|
| 2877 | esac
|
|---|
| 2878 |
|
|---|
| 2879 | # Any other special object files needed ?
|
|---|
| 2880 | case ${cpu_type} in
|
|---|
| 2881 | fr30 | ip2k | iq2000 | m32r | openrisc)
|
|---|
| 2882 | using_cgen=yes
|
|---|
| 2883 | ;;
|
|---|
| 2884 |
|
|---|
| 2885 | frv)
|
|---|
| 2886 | using_cgen=yes
|
|---|
| 2887 | ;;
|
|---|
| 2888 | m68k)
|
|---|
| 2889 | case ${extra_objects} in
|
|---|
| 2890 | *m68k-parse.o*) ;;
|
|---|
| 2891 | *) extra_objects="$extra_objects m68k-parse.o" ;;
|
|---|
| 2892 | esac
|
|---|
| 2893 | ;;
|
|---|
| 2894 |
|
|---|
| 2895 | mips)
|
|---|
| 2896 | echo ${extra_objects} | grep -s "itbl-parse.o"
|
|---|
| 2897 | if test $? -ne 0 ; then
|
|---|
| 2898 | extra_objects="$extra_objects itbl-parse.o"
|
|---|
| 2899 | fi
|
|---|
| 2900 |
|
|---|
| 2901 | echo ${extra_objects} | grep -s "itbl-lex.o"
|
|---|
| 2902 | if test $? -ne 0 ; then
|
|---|
| 2903 | extra_objects="$extra_objects itbl-lex.o"
|
|---|
| 2904 | fi
|
|---|
| 2905 |
|
|---|
| 2906 | echo ${extra_objects} | grep -s "itbl-ops.o"
|
|---|
| 2907 | if test $? -ne 0 ; then
|
|---|
| 2908 | extra_objects="$extra_objects itbl-ops.o"
|
|---|
| 2909 | fi
|
|---|
| 2910 | ;;
|
|---|
| 2911 |
|
|---|
| 2912 | i386 | s390 | sparc)
|
|---|
| 2913 | if test $this_target = $target ; then
|
|---|
| 2914 | cat >> confdefs.h <<EOF
|
|---|
| 2915 | #define DEFAULT_ARCH "${arch}"
|
|---|
| 2916 | EOF
|
|---|
| 2917 |
|
|---|
| 2918 | fi
|
|---|
| 2919 | ;;
|
|---|
| 2920 |
|
|---|
| 2921 | xstormy16)
|
|---|
| 2922 | using_cgen=yes
|
|---|
| 2923 | ;;
|
|---|
| 2924 |
|
|---|
| 2925 | xtensa)
|
|---|
| 2926 | echo ${extra_objects} | grep -s "xtensa-relax.o"
|
|---|
| 2927 | if test $? -ne 0 ; then
|
|---|
| 2928 | extra_objects="$extra_objects xtensa-relax.o"
|
|---|
| 2929 | fi
|
|---|
| 2930 | ;;
|
|---|
| 2931 |
|
|---|
| 2932 | *)
|
|---|
| 2933 | ;;
|
|---|
| 2934 | esac
|
|---|
| 2935 |
|
|---|
| 2936 | if test $using_cgen = yes ; then
|
|---|
| 2937 | case "x${extra_objects}" in
|
|---|
| 2938 | *cgen.o*) ;;
|
|---|
| 2939 | *) extra_objects="$extra_objects cgen.o" ;;
|
|---|
| 2940 | esac
|
|---|
| 2941 | fi
|
|---|
| 2942 |
|
|---|
| 2943 | # See if we really can support this configuration with the emulation code.
|
|---|
| 2944 |
|
|---|
| 2945 | if test $this_target = $target ; then
|
|---|
| 2946 | primary_bfd_gas=$bfd_gas
|
|---|
| 2947 | obj_format=$fmt
|
|---|
| 2948 | te_file=$em
|
|---|
| 2949 |
|
|---|
| 2950 | if test $bfd_gas = no ; then
|
|---|
| 2951 | # Can't support other configurations this way.
|
|---|
| 2952 | break
|
|---|
| 2953 | fi
|
|---|
| 2954 | elif test $bfd_gas = no ; then
|
|---|
| 2955 | # Can't support this configuration.
|
|---|
| 2956 | break
|
|---|
| 2957 | fi
|
|---|
| 2958 |
|
|---|
| 2959 | # From target name and format, produce a list of supported emulations.
|
|---|
| 2960 |
|
|---|
| 2961 | case ${generic_target}-${fmt} in
|
|---|
| 2962 | mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
|
|---|
| 2963 | mips*-*-linux*-*) case "$endian" in
|
|---|
| 2964 | big) emulation="mipsbelf mipslelf mipself" ;;
|
|---|
| 2965 | *) emulation="mipslelf mipsbelf mipself" ;;
|
|---|
| 2966 | esac ;;
|
|---|
| 2967 | mips-*-lnews*-ecoff) ;;
|
|---|
| 2968 | mips-*-*-ecoff) case "$endian" in
|
|---|
| 2969 | big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
|
|---|
| 2970 | *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
|
|---|
| 2971 | esac ;;
|
|---|
| 2972 | mips-*-*-elf) case "$endian" in
|
|---|
| 2973 | big) emulation="mipsbelf mipslelf mipself" ;;
|
|---|
| 2974 | *) emulation="mipslelf mipsbelf mipself" ;;
|
|---|
| 2975 | esac ;;
|
|---|
| 2976 | mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
|
|---|
| 2977 | # i386-pc-pe-coff != i386-pc-coff.
|
|---|
| 2978 | i386-*-pe-coff) ;;
|
|---|
| 2979 | # Uncommenting the next line will turn on support for i386 AOUT
|
|---|
| 2980 | # for the default linux configuration
|
|---|
| 2981 | # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
|
|---|
| 2982 | #
|
|---|
| 2983 | i386-*-aout) emulation="i386aout" ;;
|
|---|
| 2984 | i386-*-coff) emulation="i386coff" ;;
|
|---|
| 2985 | i386-*-elf) emulation="i386elf" ;;
|
|---|
| 2986 |
|
|---|
| 2987 | # Always all formats. The first stated emulation becomes the default.
|
|---|
| 2988 | cris-*-*aout*) emulation="crisaout criself" ;;
|
|---|
| 2989 | cris-*-*) emulation="criself crisaout" ;;
|
|---|
| 2990 | esac
|
|---|
| 2991 |
|
|---|
| 2992 | emulations="$emulations $emulation"
|
|---|
| 2993 |
|
|---|
| 2994 | done
|
|---|
| 2995 |
|
|---|
| 2996 | # Turn on all targets if possible
|
|---|
| 2997 | if test ${all_targets} = "yes"; then
|
|---|
| 2998 | case ${target_cpu_type} in
|
|---|
| 2999 | i386)
|
|---|
| 3000 | case ${obj_format} in
|
|---|
| 3001 | aout)
|
|---|
| 3002 | emulations="$emulations i386coff i386elf"
|
|---|
| 3003 | ;;
|
|---|
| 3004 | coff)
|
|---|
| 3005 | emulations="$emulations i386aout i386elf"
|
|---|
| 3006 | ;;
|
|---|
| 3007 | elf)
|
|---|
| 3008 | emulations="$emulations i386aout i386coff"
|
|---|
| 3009 | ;;
|
|---|
| 3010 | esac
|
|---|
| 3011 | ;;
|
|---|
| 3012 | esac
|
|---|
| 3013 | fi
|
|---|
| 3014 |
|
|---|
| 3015 | # Assign floating point type. Most processors with FP support
|
|---|
| 3016 | # IEEE FP. On those that don't support FP at all, usually IEEE
|
|---|
| 3017 | # is emulated.
|
|---|
| 3018 | case ${target_cpu} in
|
|---|
| 3019 | vax | tahoe ) atof=${target_cpu} ;;
|
|---|
| 3020 | pdp11) atof=vax ;;
|
|---|
| 3021 | *) atof=ieee ;;
|
|---|
| 3022 | esac
|
|---|
| 3023 |
|
|---|
| 3024 | case "${obj_format}" in
|
|---|
| 3025 | "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
|
|---|
| 3026 | esac
|
|---|
| 3027 |
|
|---|
| 3028 | # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
|
|---|
| 3029 | cgen_cpu_prefix=""
|
|---|
| 3030 | if test $using_cgen = yes ; then
|
|---|
| 3031 | case ${target_cpu} in
|
|---|
| 3032 | *) cgen_cpu_prefix=${target_cpu} ;;
|
|---|
| 3033 | esac
|
|---|
| 3034 |
|
|---|
| 3035 | cat >> confdefs.h <<\EOF
|
|---|
| 3036 | #define USING_CGEN 1
|
|---|
| 3037 | EOF
|
|---|
| 3038 |
|
|---|
| 3039 | fi
|
|---|
| 3040 |
|
|---|
| 3041 |
|
|---|
| 3042 | if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
|
|---|
| 3043 | { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
|
|---|
| 3044 | fi
|
|---|
| 3045 |
|
|---|
| 3046 | if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
|
|---|
| 3047 | { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
|
|---|
| 3048 | fi
|
|---|
| 3049 |
|
|---|
| 3050 | case ${user_bfd_gas}-${primary_bfd_gas} in
|
|---|
| 3051 | yes-yes | no-no)
|
|---|
| 3052 | # We didn't override user's choice.
|
|---|
| 3053 | ;;
|
|---|
| 3054 | no-yes)
|
|---|
| 3055 | echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
|
|---|
| 3056 | ;;
|
|---|
| 3057 | no-preferred)
|
|---|
| 3058 | primary_bfd_gas=no
|
|---|
| 3059 | ;;
|
|---|
| 3060 | *-preferred)
|
|---|
| 3061 | primary_bfd_gas=yes
|
|---|
| 3062 | ;;
|
|---|
| 3063 | yes-*)
|
|---|
| 3064 | primary_bfd_gas=yes
|
|---|
| 3065 | ;;
|
|---|
| 3066 | -*)
|
|---|
| 3067 | # User specified nothing.
|
|---|
| 3068 | ;;
|
|---|
| 3069 | esac
|
|---|
| 3070 |
|
|---|
| 3071 | # Some COFF configurations want these random other flags set.
|
|---|
| 3072 | case ${obj_format} in
|
|---|
| 3073 | coff)
|
|---|
| 3074 | case ${target_cpu_type} in
|
|---|
| 3075 | i386) cat >> confdefs.h <<\EOF
|
|---|
| 3076 | #define I386COFF 1
|
|---|
| 3077 | EOF
|
|---|
| 3078 | ;;
|
|---|
| 3079 | m68k) cat >> confdefs.h <<\EOF
|
|---|
| 3080 | #define M68KCOFF 1
|
|---|
| 3081 | EOF
|
|---|
| 3082 | ;;
|
|---|
| 3083 | m88k) cat >> confdefs.h <<\EOF
|
|---|
| 3084 | #define M88KCOFF 1
|
|---|
| 3085 | EOF
|
|---|
| 3086 | ;;
|
|---|
| 3087 | esac
|
|---|
| 3088 | ;;
|
|---|
| 3089 | esac
|
|---|
| 3090 |
|
|---|
| 3091 | # Getting this done right is going to be a bitch. Each configuration specified
|
|---|
| 3092 | # with --enable-targets=... should be checked for environment, format, cpu, and
|
|---|
| 3093 | # bfd_gas setting.
|
|---|
| 3094 | #
|
|---|
| 3095 | # For each configuration, the necessary object file support code must be linked
|
|---|
| 3096 | # in. This might be only one, it might be up to four. The necessary emulation
|
|---|
| 3097 | # code needs to be provided, too.
|
|---|
| 3098 | #
|
|---|
| 3099 | # And then there's "--enable-targets=all"....
|
|---|
| 3100 | #
|
|---|
| 3101 | # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
|
|---|
| 3102 |
|
|---|
| 3103 | formats="${obj_format}"
|
|---|
| 3104 | emfiles=""
|
|---|
| 3105 | EMULATIONS=""
|
|---|
| 3106 | _gas_uniq_list="$emulations"
|
|---|
| 3107 | _gas_uniq_newlist=""
|
|---|
| 3108 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
|
|---|
| 3109 | case $_gas_uniq_i in
|
|---|
| 3110 | _gas_uniq_dummy) ;;
|
|---|
| 3111 | *) case " $_gas_uniq_newlist " in
|
|---|
| 3112 | *" $_gas_uniq_i "*) ;;
|
|---|
| 3113 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
|
|---|
| 3114 | esac ;;
|
|---|
| 3115 | esac
|
|---|
| 3116 | done
|
|---|
| 3117 | emulations=$_gas_uniq_newlist
|
|---|
| 3118 |
|
|---|
| 3119 | for em in . $emulations ; do
|
|---|
| 3120 | case $em in
|
|---|
| 3121 | .) continue ;;
|
|---|
| 3122 | mipsbelf | mipslelf | mipself)
|
|---|
| 3123 | fmt=elf file=mipself ;;
|
|---|
| 3124 | mipsbecoff | mipslecoff | mipsecoff)
|
|---|
| 3125 | fmt=ecoff file=mipsecoff ;;
|
|---|
| 3126 | *coff)
|
|---|
| 3127 | fmt=coff file=$em ;;
|
|---|
| 3128 | *aout)
|
|---|
| 3129 | fmt=aout file=$em ;;
|
|---|
| 3130 | *elf)
|
|---|
| 3131 | fmt=elf file=$em ;;
|
|---|
| 3132 | esac
|
|---|
| 3133 | formats="$formats $fmt"
|
|---|
| 3134 | emfiles="$emfiles e-$file.o"
|
|---|
| 3135 | EMULATIONS="$EMULATIONS &$em,"
|
|---|
| 3136 | done
|
|---|
| 3137 | _gas_uniq_list="$formats"
|
|---|
| 3138 | _gas_uniq_newlist=""
|
|---|
| 3139 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
|
|---|
| 3140 | case $_gas_uniq_i in
|
|---|
| 3141 | _gas_uniq_dummy) ;;
|
|---|
| 3142 | *) case " $_gas_uniq_newlist " in
|
|---|
| 3143 | *" $_gas_uniq_i "*) ;;
|
|---|
| 3144 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
|
|---|
| 3145 | esac ;;
|
|---|
| 3146 | esac
|
|---|
| 3147 | done
|
|---|
| 3148 | formats=$_gas_uniq_newlist
|
|---|
| 3149 |
|
|---|
| 3150 | _gas_uniq_list="$emfiles"
|
|---|
| 3151 | _gas_uniq_newlist=""
|
|---|
| 3152 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
|
|---|
| 3153 | case $_gas_uniq_i in
|
|---|
| 3154 | _gas_uniq_dummy) ;;
|
|---|
| 3155 | *) case " $_gas_uniq_newlist " in
|
|---|
| 3156 | *" $_gas_uniq_i "*) ;;
|
|---|
| 3157 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
|
|---|
| 3158 | esac ;;
|
|---|
| 3159 | esac
|
|---|
| 3160 | done
|
|---|
| 3161 | emfiles=$_gas_uniq_newlist
|
|---|
| 3162 |
|
|---|
| 3163 | if test `set . $formats ; shift ; echo $#` -gt 1 ; then
|
|---|
| 3164 | for fmt in $formats ; do
|
|---|
| 3165 | case $fmt in
|
|---|
| 3166 | aout) cat >> confdefs.h <<\EOF
|
|---|
| 3167 | #define OBJ_MAYBE_AOUT 1
|
|---|
| 3168 | EOF
|
|---|
| 3169 | ;;
|
|---|
| 3170 | bout) cat >> confdefs.h <<\EOF
|
|---|
| 3171 | #define OBJ_MAYBE_BOUT 1
|
|---|
| 3172 | EOF
|
|---|
| 3173 | ;;
|
|---|
| 3174 | coff) cat >> confdefs.h <<\EOF
|
|---|
| 3175 | #define OBJ_MAYBE_COFF 1
|
|---|
| 3176 | EOF
|
|---|
| 3177 | ;;
|
|---|
| 3178 | ecoff) cat >> confdefs.h <<\EOF
|
|---|
| 3179 | #define OBJ_MAYBE_ECOFF 1
|
|---|
| 3180 | EOF
|
|---|
| 3181 | ;;
|
|---|
| 3182 | elf) cat >> confdefs.h <<\EOF
|
|---|
| 3183 | #define OBJ_MAYBE_ELF 1
|
|---|
| 3184 | EOF
|
|---|
| 3185 | ;;
|
|---|
| 3186 | generic) cat >> confdefs.h <<\EOF
|
|---|
| 3187 | #define OBJ_MAYBE_GENERIC 1
|
|---|
| 3188 | EOF
|
|---|
| 3189 | ;;
|
|---|
| 3190 | hp300) cat >> confdefs.h <<\EOF
|
|---|
| 3191 | #define OBJ_MAYBE_HP300 1
|
|---|
| 3192 | EOF
|
|---|
| 3193 | ;;
|
|---|
| 3194 | ieee) cat >> confdefs.h <<\EOF
|
|---|
| 3195 | #define OBJ_MAYBE_IEEE 1
|
|---|
| 3196 | EOF
|
|---|
| 3197 | ;;
|
|---|
| 3198 | som) cat >> confdefs.h <<\EOF
|
|---|
| 3199 | #define OBJ_MAYBE_SOM 1
|
|---|
| 3200 | EOF
|
|---|
| 3201 | ;;
|
|---|
| 3202 | vms) cat >> confdefs.h <<\EOF
|
|---|
| 3203 | #define OBJ_MAYBE_VMS 1
|
|---|
| 3204 | EOF
|
|---|
| 3205 | ;;
|
|---|
| 3206 | esac
|
|---|
| 3207 | extra_objects="$extra_objects obj-$fmt.o"
|
|---|
| 3208 | done
|
|---|
| 3209 | obj_format=multi
|
|---|
| 3210 | fi
|
|---|
| 3211 | if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
|
|---|
| 3212 | DEFAULT_EMULATION=`set . $emulations ; echo $2`
|
|---|
| 3213 | # e-mips* has more than one emulation per file, e-i386* has just one at the
|
|---|
| 3214 | # moment. If only one emulation is specified, then don't define
|
|---|
| 3215 | # USE_EMULATIONS or include any of the e-files as they will only be bloat.
|
|---|
| 3216 | case "${obj_format}${emfiles}" in
|
|---|
| 3217 | multi* | *mips*)
|
|---|
| 3218 | extra_objects="$extra_objects $emfiles"
|
|---|
| 3219 | cat >> confdefs.h <<\EOF
|
|---|
| 3220 | #define USE_EMULATIONS 1
|
|---|
| 3221 | EOF
|
|---|
| 3222 | ;;
|
|---|
| 3223 | esac
|
|---|
| 3224 | fi
|
|---|
| 3225 |
|
|---|
| 3226 | cat >> confdefs.h <<EOF
|
|---|
| 3227 | #define EMULATIONS $EMULATIONS
|
|---|
| 3228 | EOF
|
|---|
| 3229 |
|
|---|
| 3230 | cat >> confdefs.h <<EOF
|
|---|
| 3231 | #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
|
|---|
| 3232 | EOF
|
|---|
| 3233 |
|
|---|
| 3234 |
|
|---|
| 3235 | case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
|
|---|
| 3236 | yes-*-coff) need_bfd=yes ;;
|
|---|
| 3237 | no-*-coff) need_bfd=yes
|
|---|
| 3238 | cat >> confdefs.h <<\EOF
|
|---|
| 3239 | #define MANY_SEGMENTS 1
|
|---|
| 3240 | EOF
|
|---|
| 3241 | ;;
|
|---|
| 3242 | esac
|
|---|
| 3243 |
|
|---|
| 3244 | reject_dev_configs=yes
|
|---|
| 3245 |
|
|---|
| 3246 | case ${reject_dev_configs}-${dev} in
|
|---|
| 3247 | yes-yes) # Oops.
|
|---|
| 3248 | { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
|
|---|
| 3249 | ;;
|
|---|
| 3250 | esac
|
|---|
| 3251 |
|
|---|
| 3252 |
|
|---|
| 3253 |
|
|---|
| 3254 |
|
|---|
| 3255 |
|
|---|
| 3256 |
|
|---|
| 3257 |
|
|---|
| 3258 | case "${primary_bfd_gas}" in
|
|---|
| 3259 | yes) cat >> confdefs.h <<\EOF
|
|---|
| 3260 | #define BFD_ASSEMBLER 1
|
|---|
| 3261 | EOF
|
|---|
| 3262 |
|
|---|
| 3263 | need_bfd=yes ;;
|
|---|
| 3264 | esac
|
|---|
| 3265 |
|
|---|
| 3266 | # do we need the opcodes library?
|
|---|
| 3267 | case "${need_opcodes}" in
|
|---|
| 3268 | yes)
|
|---|
| 3269 | OPCODES_LIB=../opcodes/libopcodes.la
|
|---|
| 3270 | ;;
|
|---|
| 3271 | esac
|
|---|
| 3272 |
|
|---|
| 3273 | case "${need_bfd}" in
|
|---|
| 3274 | yes)
|
|---|
| 3275 | BFDLIB=../bfd/libbfd.la
|
|---|
| 3276 | BFDVER_H=../bfd/bfdver.h
|
|---|
| 3277 | ALL_OBJ_DEPS="$ALL_OBJ_DEPS"' ../bfd/bfd.h $(INCDIR)/symcat.h'
|
|---|
| 3278 | ;;
|
|---|
| 3279 | esac
|
|---|
| 3280 |
|
|---|
| 3281 |
|
|---|
| 3282 |
|
|---|
| 3283 |
|
|---|
| 3284 |
|
|---|
| 3285 |
|
|---|
| 3286 |
|
|---|
| 3287 | cat >> confdefs.h <<EOF
|
|---|
| 3288 | #define TARGET_ALIAS "${target_alias}"
|
|---|
| 3289 | EOF
|
|---|
| 3290 |
|
|---|
| 3291 | cat >> confdefs.h <<EOF
|
|---|
| 3292 | #define TARGET_CANONICAL "${target}"
|
|---|
| 3293 | EOF
|
|---|
| 3294 |
|
|---|
| 3295 | cat >> confdefs.h <<EOF
|
|---|
| 3296 | #define TARGET_CPU "${target_cpu}"
|
|---|
| 3297 | EOF
|
|---|
| 3298 |
|
|---|
| 3299 | cat >> confdefs.h <<EOF
|
|---|
| 3300 | #define TARGET_VENDOR "${target_vendor}"
|
|---|
| 3301 | EOF
|
|---|
| 3302 |
|
|---|
| 3303 | cat >> confdefs.h <<EOF
|
|---|
| 3304 | #define TARGET_OS "${target_os}"
|
|---|
| 3305 | EOF
|
|---|
| 3306 |
|
|---|
| 3307 |
|
|---|
| 3308 | # Extract the first word of "gcc", so it can be a program name with args.
|
|---|
| 3309 | set dummy gcc; ac_word=$2
|
|---|
| 3310 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 3311 | echo "configure:3312: checking for $ac_word" >&5
|
|---|
| 3312 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 3313 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3314 | else
|
|---|
| 3315 | if test -n "$CC"; then
|
|---|
| 3316 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 3317 | else
|
|---|
| 3318 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 3319 | ac_dummy="$PATH"
|
|---|
| 3320 | for ac_dir in $ac_dummy; do
|
|---|
| 3321 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 3322 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 3323 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 3324 | ac_cv_prog_CC="gcc"
|
|---|
| 3325 | break
|
|---|
| 3326 | fi
|
|---|
| 3327 | done
|
|---|
| 3328 | IFS="$ac_save_ifs"
|
|---|
| 3329 | fi
|
|---|
| 3330 | fi
|
|---|
| 3331 | CC="$ac_cv_prog_CC"
|
|---|
| 3332 | if test -n "$CC"; then
|
|---|
| 3333 | echo "$ac_t""$CC" 1>&6
|
|---|
| 3334 | else
|
|---|
| 3335 | echo "$ac_t""no" 1>&6
|
|---|
| 3336 | fi
|
|---|
| 3337 |
|
|---|
| 3338 | if test -z "$CC"; then
|
|---|
| 3339 | # Extract the first word of "cc", so it can be a program name with args.
|
|---|
| 3340 | set dummy cc; ac_word=$2
|
|---|
| 3341 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 3342 | echo "configure:3343: checking for $ac_word" >&5
|
|---|
| 3343 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 3344 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3345 | else
|
|---|
| 3346 | if test -n "$CC"; then
|
|---|
| 3347 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 3348 | else
|
|---|
| 3349 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 3350 | ac_prog_rejected=no
|
|---|
| 3351 | ac_dummy="$PATH"
|
|---|
| 3352 | for ac_dir in $ac_dummy; do
|
|---|
| 3353 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 3354 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 3355 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 3356 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
|---|
| 3357 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
|---|
| 3358 | ac_prog_rejected=yes
|
|---|
| 3359 | continue
|
|---|
| 3360 | fi
|
|---|
| 3361 | ac_cv_prog_CC="cc"
|
|---|
| 3362 | break
|
|---|
| 3363 | fi
|
|---|
| 3364 | done
|
|---|
| 3365 | IFS="$ac_save_ifs"
|
|---|
| 3366 | if test $ac_prog_rejected = yes; then
|
|---|
| 3367 | # We found a bogon in the path, so make sure we never use it.
|
|---|
| 3368 | set dummy $ac_cv_prog_CC
|
|---|
| 3369 | shift
|
|---|
| 3370 | if test $# -gt 0; then
|
|---|
| 3371 | # We chose a different compiler from the bogus one.
|
|---|
| 3372 | # However, it has the same basename, so the bogon will be chosen
|
|---|
| 3373 | # first if we set CC to just the basename; use the full file name.
|
|---|
| 3374 | shift
|
|---|
| 3375 | set dummy "$ac_dir/$ac_word" "$@"
|
|---|
| 3376 | shift
|
|---|
| 3377 | ac_cv_prog_CC="$@"
|
|---|
| 3378 | fi
|
|---|
| 3379 | fi
|
|---|
| 3380 | fi
|
|---|
| 3381 | fi
|
|---|
| 3382 | CC="$ac_cv_prog_CC"
|
|---|
| 3383 | if test -n "$CC"; then
|
|---|
| 3384 | echo "$ac_t""$CC" 1>&6
|
|---|
| 3385 | else
|
|---|
| 3386 | echo "$ac_t""no" 1>&6
|
|---|
| 3387 | fi
|
|---|
| 3388 |
|
|---|
| 3389 | if test -z "$CC"; then
|
|---|
| 3390 | case "`uname -s`" in
|
|---|
| 3391 | *win32* | *WIN32*)
|
|---|
| 3392 | # Extract the first word of "cl", so it can be a program name with args.
|
|---|
| 3393 | set dummy cl; ac_word=$2
|
|---|
| 3394 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 3395 | echo "configure:3396: checking for $ac_word" >&5
|
|---|
| 3396 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 3397 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3398 | else
|
|---|
| 3399 | if test -n "$CC"; then
|
|---|
| 3400 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 3401 | else
|
|---|
| 3402 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 3403 | ac_dummy="$PATH"
|
|---|
| 3404 | for ac_dir in $ac_dummy; do
|
|---|
| 3405 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 3406 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 3407 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 3408 | ac_cv_prog_CC="cl"
|
|---|
| 3409 | break
|
|---|
| 3410 | fi
|
|---|
| 3411 | done
|
|---|
| 3412 | IFS="$ac_save_ifs"
|
|---|
| 3413 | fi
|
|---|
| 3414 | fi
|
|---|
| 3415 | CC="$ac_cv_prog_CC"
|
|---|
| 3416 | if test -n "$CC"; then
|
|---|
| 3417 | echo "$ac_t""$CC" 1>&6
|
|---|
| 3418 | else
|
|---|
| 3419 | echo "$ac_t""no" 1>&6
|
|---|
| 3420 | fi
|
|---|
| 3421 | ;;
|
|---|
| 3422 | esac
|
|---|
| 3423 | fi
|
|---|
| 3424 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|---|
| 3425 | fi
|
|---|
| 3426 |
|
|---|
| 3427 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|---|
| 3428 | echo "configure:3429: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|---|
| 3429 |
|
|---|
| 3430 | ac_ext=c
|
|---|
| 3431 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 3432 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 3433 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 3434 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 3435 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 3436 |
|
|---|
| 3437 | cat > conftest.$ac_ext << EOF
|
|---|
| 3438 |
|
|---|
| 3439 | #line 3440 "configure"
|
|---|
| 3440 | #include "confdefs.h"
|
|---|
| 3441 |
|
|---|
| 3442 | main(){return(0);}
|
|---|
| 3443 | EOF
|
|---|
| 3444 | if { (eval echo configure:3445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3445 | ac_cv_prog_cc_works=yes
|
|---|
| 3446 | # If we can't run a trivial program, we are probably using a cross compiler.
|
|---|
| 3447 | if (./conftest; exit) 2>/dev/null; then
|
|---|
| 3448 | ac_cv_prog_cc_cross=no
|
|---|
| 3449 | else
|
|---|
| 3450 | ac_cv_prog_cc_cross=yes
|
|---|
| 3451 | fi
|
|---|
| 3452 | else
|
|---|
| 3453 | echo "configure: failed program was:" >&5
|
|---|
| 3454 | cat conftest.$ac_ext >&5
|
|---|
| 3455 | ac_cv_prog_cc_works=no
|
|---|
| 3456 | fi
|
|---|
| 3457 | rm -fr conftest*
|
|---|
| 3458 | ac_ext=c
|
|---|
| 3459 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 3460 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 3461 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 3462 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 3463 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 3464 |
|
|---|
| 3465 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|---|
| 3466 | if test $ac_cv_prog_cc_works = no; then
|
|---|
| 3467 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 3468 | fi
|
|---|
| 3469 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|---|
| 3470 | echo "configure:3471: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|---|
| 3471 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|---|
| 3472 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 3473 |
|
|---|
| 3474 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|---|
| 3475 | echo "configure:3476: checking whether we are using GNU C" >&5
|
|---|
| 3476 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|---|
| 3477 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3478 | else
|
|---|
| 3479 | cat > conftest.c <<EOF
|
|---|
| 3480 | #ifdef __GNUC__
|
|---|
| 3481 | yes;
|
|---|
| 3482 | #endif
|
|---|
| 3483 | EOF
|
|---|
| 3484 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|---|
| 3485 | ac_cv_prog_gcc=yes
|
|---|
| 3486 | else
|
|---|
| 3487 | ac_cv_prog_gcc=no
|
|---|
| 3488 | fi
|
|---|
| 3489 | fi
|
|---|
| 3490 |
|
|---|
| 3491 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|---|
| 3492 |
|
|---|
| 3493 | if test $ac_cv_prog_gcc = yes; then
|
|---|
| 3494 | GCC=yes
|
|---|
| 3495 | else
|
|---|
| 3496 | GCC=
|
|---|
| 3497 | fi
|
|---|
| 3498 |
|
|---|
| 3499 | ac_test_CFLAGS="${CFLAGS+set}"
|
|---|
| 3500 | ac_save_CFLAGS="$CFLAGS"
|
|---|
| 3501 | CFLAGS=
|
|---|
| 3502 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|---|
| 3503 | echo "configure:3504: checking whether ${CC-cc} accepts -g" >&5
|
|---|
| 3504 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|---|
| 3505 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3506 | else
|
|---|
| 3507 | echo 'void f(){}' > conftest.c
|
|---|
| 3508 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|---|
| 3509 | ac_cv_prog_cc_g=yes
|
|---|
| 3510 | else
|
|---|
| 3511 | ac_cv_prog_cc_g=no
|
|---|
| 3512 | fi
|
|---|
| 3513 | rm -f conftest*
|
|---|
| 3514 |
|
|---|
| 3515 | fi
|
|---|
| 3516 |
|
|---|
| 3517 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|---|
| 3518 | if test "$ac_test_CFLAGS" = set; then
|
|---|
| 3519 | CFLAGS="$ac_save_CFLAGS"
|
|---|
| 3520 | elif test $ac_cv_prog_cc_g = yes; then
|
|---|
| 3521 | if test "$GCC" = yes; then
|
|---|
| 3522 | CFLAGS="-g -O2"
|
|---|
| 3523 | else
|
|---|
| 3524 | CFLAGS="-g"
|
|---|
| 3525 | fi
|
|---|
| 3526 | else
|
|---|
| 3527 | if test "$GCC" = yes; then
|
|---|
| 3528 | CFLAGS="-O2"
|
|---|
| 3529 | else
|
|---|
| 3530 | CFLAGS=
|
|---|
| 3531 | fi
|
|---|
| 3532 | fi
|
|---|
| 3533 |
|
|---|
| 3534 |
|
|---|
| 3535 | for ac_prog in 'bison -y' byacc
|
|---|
| 3536 | do
|
|---|
| 3537 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|---|
| 3538 | set dummy $ac_prog; ac_word=$2
|
|---|
| 3539 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 3540 | echo "configure:3541: checking for $ac_word" >&5
|
|---|
| 3541 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
|
|---|
| 3542 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3543 | else
|
|---|
| 3544 | if test -n "$YACC"; then
|
|---|
| 3545 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
|---|
| 3546 | else
|
|---|
| 3547 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 3548 | ac_dummy="$PATH"
|
|---|
| 3549 | for ac_dir in $ac_dummy; do
|
|---|
| 3550 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 3551 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 3552 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 3553 | ac_cv_prog_YACC="$ac_prog"
|
|---|
| 3554 | break
|
|---|
| 3555 | fi
|
|---|
| 3556 | done
|
|---|
| 3557 | IFS="$ac_save_ifs"
|
|---|
| 3558 | fi
|
|---|
| 3559 | fi
|
|---|
| 3560 | YACC="$ac_cv_prog_YACC"
|
|---|
| 3561 | if test -n "$YACC"; then
|
|---|
| 3562 | echo "$ac_t""$YACC" 1>&6
|
|---|
| 3563 | else
|
|---|
| 3564 | echo "$ac_t""no" 1>&6
|
|---|
| 3565 | fi
|
|---|
| 3566 |
|
|---|
| 3567 | test -n "$YACC" && break
|
|---|
| 3568 | done
|
|---|
| 3569 | test -n "$YACC" || YACC="yacc"
|
|---|
| 3570 |
|
|---|
| 3571 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
|---|
| 3572 | echo "configure:3573: checking how to run the C preprocessor" >&5
|
|---|
| 3573 | # On Suns, sometimes $CPP names a directory.
|
|---|
| 3574 | if test -n "$CPP" && test -d "$CPP"; then
|
|---|
| 3575 | CPP=
|
|---|
| 3576 | fi
|
|---|
| 3577 | if test -z "$CPP"; then
|
|---|
| 3578 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
|---|
| 3579 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3580 | else
|
|---|
| 3581 | # This must be in double quotes, not single quotes, because CPP may get
|
|---|
| 3582 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
|---|
| 3583 | CPP="${CC-cc} -E"
|
|---|
| 3584 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
|---|
| 3585 | # not just through cpp.
|
|---|
| 3586 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3587 | #include <sys/types.h>
|
|---|
| 3588 | #line 3589 "configure"
|
|---|
| 3589 | #include "confdefs.h"
|
|---|
| 3590 | #include <assert.h>
|
|---|
| 3591 | Syntax Error
|
|---|
| 3592 | EOF
|
|---|
| 3593 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3594 | { (eval echo configure:3595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3595 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3596 | if test -z "$ac_err"; then
|
|---|
| 3597 | :
|
|---|
| 3598 | else
|
|---|
| 3599 | echo "$ac_err" >&5
|
|---|
| 3600 | echo "configure: failed program was:" >&5
|
|---|
| 3601 | cat conftest.$ac_ext >&5
|
|---|
| 3602 | rm -rf conftest*
|
|---|
| 3603 | CPP="${CC-cc} -E -traditional-cpp"
|
|---|
| 3604 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3605 | #include <sys/types.h>
|
|---|
| 3606 | #line 3607 "configure"
|
|---|
| 3607 | #include "confdefs.h"
|
|---|
| 3608 | #include <assert.h>
|
|---|
| 3609 | Syntax Error
|
|---|
| 3610 | EOF
|
|---|
| 3611 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3612 | { (eval echo configure:3613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3613 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3614 | if test -z "$ac_err"; then
|
|---|
| 3615 | :
|
|---|
| 3616 | else
|
|---|
| 3617 | echo "$ac_err" >&5
|
|---|
| 3618 | echo "configure: failed program was:" >&5
|
|---|
| 3619 | cat conftest.$ac_ext >&5
|
|---|
| 3620 | rm -rf conftest*
|
|---|
| 3621 | CPP="${CC-cc} -nologo -E"
|
|---|
| 3622 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3623 | #include <sys/types.h>
|
|---|
| 3624 | #line 3625 "configure"
|
|---|
| 3625 | #include "confdefs.h"
|
|---|
| 3626 | #include <assert.h>
|
|---|
| 3627 | Syntax Error
|
|---|
| 3628 | EOF
|
|---|
| 3629 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3630 | { (eval echo configure:3631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3631 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3632 | if test -z "$ac_err"; then
|
|---|
| 3633 | :
|
|---|
| 3634 | else
|
|---|
| 3635 | echo "$ac_err" >&5
|
|---|
| 3636 | echo "configure: failed program was:" >&5
|
|---|
| 3637 | cat conftest.$ac_ext >&5
|
|---|
| 3638 | rm -rf conftest*
|
|---|
| 3639 | CPP=/lib/cpp
|
|---|
| 3640 | fi
|
|---|
| 3641 | rm -f conftest*
|
|---|
| 3642 | fi
|
|---|
| 3643 | rm -f conftest*
|
|---|
| 3644 | fi
|
|---|
| 3645 | rm -f conftest*
|
|---|
| 3646 | ac_cv_prog_CPP="$CPP"
|
|---|
| 3647 | fi
|
|---|
| 3648 | CPP="$ac_cv_prog_CPP"
|
|---|
| 3649 | else
|
|---|
| 3650 | ac_cv_prog_CPP="$CPP"
|
|---|
| 3651 | fi
|
|---|
| 3652 | echo "$ac_t""$CPP" 1>&6
|
|---|
| 3653 |
|
|---|
| 3654 | missing_dir=`cd $ac_aux_dir && pwd`
|
|---|
| 3655 | for ac_prog in flex lex
|
|---|
| 3656 | do
|
|---|
| 3657 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|---|
| 3658 | set dummy $ac_prog; ac_word=$2
|
|---|
| 3659 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 3660 | echo "configure:3661: checking for $ac_word" >&5
|
|---|
| 3661 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
|
|---|
| 3662 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3663 | else
|
|---|
| 3664 | if test -n "$LEX"; then
|
|---|
| 3665 | ac_cv_prog_LEX="$LEX" # Let the user override the test.
|
|---|
| 3666 | else
|
|---|
| 3667 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 3668 | ac_dummy="$PATH"
|
|---|
| 3669 | for ac_dir in $ac_dummy; do
|
|---|
| 3670 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 3671 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 3672 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 3673 | ac_cv_prog_LEX="$ac_prog"
|
|---|
| 3674 | break
|
|---|
| 3675 | fi
|
|---|
| 3676 | done
|
|---|
| 3677 | IFS="$ac_save_ifs"
|
|---|
| 3678 | fi
|
|---|
| 3679 | fi
|
|---|
| 3680 | LEX="$ac_cv_prog_LEX"
|
|---|
| 3681 | if test -n "$LEX"; then
|
|---|
| 3682 | echo "$ac_t""$LEX" 1>&6
|
|---|
| 3683 | else
|
|---|
| 3684 | echo "$ac_t""no" 1>&6
|
|---|
| 3685 | fi
|
|---|
| 3686 |
|
|---|
| 3687 | test -n "$LEX" && break
|
|---|
| 3688 | done
|
|---|
| 3689 | test -n "$LEX" || LEX="$missing_dir/missing flex"
|
|---|
| 3690 |
|
|---|
| 3691 | # Extract the first word of "flex", so it can be a program name with args.
|
|---|
| 3692 | set dummy flex; ac_word=$2
|
|---|
| 3693 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 3694 | echo "configure:3695: checking for $ac_word" >&5
|
|---|
| 3695 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
|
|---|
| 3696 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3697 | else
|
|---|
| 3698 | if test -n "$LEX"; then
|
|---|
| 3699 | ac_cv_prog_LEX="$LEX" # Let the user override the test.
|
|---|
| 3700 | else
|
|---|
| 3701 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 3702 | ac_dummy="$PATH"
|
|---|
| 3703 | for ac_dir in $ac_dummy; do
|
|---|
| 3704 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 3705 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 3706 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 3707 | ac_cv_prog_LEX="flex"
|
|---|
| 3708 | break
|
|---|
| 3709 | fi
|
|---|
| 3710 | done
|
|---|
| 3711 | IFS="$ac_save_ifs"
|
|---|
| 3712 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
|
|---|
| 3713 | fi
|
|---|
| 3714 | fi
|
|---|
| 3715 | LEX="$ac_cv_prog_LEX"
|
|---|
| 3716 | if test -n "$LEX"; then
|
|---|
| 3717 | echo "$ac_t""$LEX" 1>&6
|
|---|
| 3718 | else
|
|---|
| 3719 | echo "$ac_t""no" 1>&6
|
|---|
| 3720 | fi
|
|---|
| 3721 |
|
|---|
| 3722 | if test -z "$LEXLIB"
|
|---|
| 3723 | then
|
|---|
| 3724 | case "$LEX" in
|
|---|
| 3725 | flex*) ac_lib=fl ;;
|
|---|
| 3726 | *) ac_lib=l ;;
|
|---|
| 3727 | esac
|
|---|
| 3728 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
|
|---|
| 3729 | echo "configure:3730: checking for yywrap in -l$ac_lib" >&5
|
|---|
| 3730 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
|
|---|
| 3731 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 3732 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3733 | else
|
|---|
| 3734 | ac_save_LIBS="$LIBS"
|
|---|
| 3735 | LIBS="-l$ac_lib $LIBS"
|
|---|
| 3736 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3737 | #line 3738 "configure"
|
|---|
| 3738 | #include "confdefs.h"
|
|---|
| 3739 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3740 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3741 | builtin and then its argument prototype would still apply. */
|
|---|
| 3742 | char yywrap();
|
|---|
| 3743 |
|
|---|
| 3744 | int main() {
|
|---|
| 3745 | yywrap()
|
|---|
| 3746 | ; return 0; }
|
|---|
| 3747 | EOF
|
|---|
| 3748 | if { (eval echo configure:3749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3749 | rm -rf conftest*
|
|---|
| 3750 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 3751 | else
|
|---|
| 3752 | echo "configure: failed program was:" >&5
|
|---|
| 3753 | cat conftest.$ac_ext >&5
|
|---|
| 3754 | rm -rf conftest*
|
|---|
| 3755 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 3756 | fi
|
|---|
| 3757 | rm -f conftest*
|
|---|
| 3758 | LIBS="$ac_save_LIBS"
|
|---|
| 3759 |
|
|---|
| 3760 | fi
|
|---|
| 3761 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 3762 | echo "$ac_t""yes" 1>&6
|
|---|
| 3763 | LEXLIB="-l$ac_lib"
|
|---|
| 3764 | else
|
|---|
| 3765 | echo "$ac_t""no" 1>&6
|
|---|
| 3766 | fi
|
|---|
| 3767 |
|
|---|
| 3768 | fi
|
|---|
| 3769 |
|
|---|
| 3770 | echo $ac_n "checking lex output file root""... $ac_c" 1>&6
|
|---|
| 3771 | echo "configure:3772: checking lex output file root" >&5
|
|---|
| 3772 | if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
|
|---|
| 3773 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3774 | else
|
|---|
| 3775 | # The minimal lex program is just a single line: %%. But some broken lexes
|
|---|
| 3776 | # (Solaris, I think it was) want two %% lines, so accommodate them.
|
|---|
| 3777 | echo '%%
|
|---|
| 3778 | %%' | $LEX
|
|---|
| 3779 | if test -f lex.yy.c; then
|
|---|
| 3780 | ac_cv_prog_lex_root=lex.yy
|
|---|
| 3781 | elif test -f lexyy.c; then
|
|---|
| 3782 | ac_cv_prog_lex_root=lexyy
|
|---|
| 3783 | else
|
|---|
| 3784 | { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
|
|---|
| 3785 | fi
|
|---|
| 3786 | fi
|
|---|
| 3787 |
|
|---|
| 3788 | echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
|
|---|
| 3789 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
|
|---|
| 3790 |
|
|---|
| 3791 | echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
|
|---|
| 3792 | echo "configure:3793: checking whether yytext is a pointer" >&5
|
|---|
| 3793 | if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
|
|---|
| 3794 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3795 | else
|
|---|
| 3796 | # POSIX says lex can declare yytext either as a pointer or an array; the
|
|---|
| 3797 | # default is implementation-dependent. Figure out which it is, since
|
|---|
| 3798 | # not all implementations provide the %pointer and %array declarations.
|
|---|
| 3799 | ac_cv_prog_lex_yytext_pointer=no
|
|---|
| 3800 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
|
|---|
| 3801 | ac_save_LIBS="$LIBS"
|
|---|
| 3802 | LIBS="$LIBS $LEXLIB"
|
|---|
| 3803 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3804 | #line 3805 "configure"
|
|---|
| 3805 | #include "confdefs.h"
|
|---|
| 3806 | `cat $LEX_OUTPUT_ROOT.c`
|
|---|
| 3807 | int main() {
|
|---|
| 3808 |
|
|---|
| 3809 | ; return 0; }
|
|---|
| 3810 | EOF
|
|---|
| 3811 | if { (eval echo configure:3812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3812 | rm -rf conftest*
|
|---|
| 3813 | ac_cv_prog_lex_yytext_pointer=yes
|
|---|
| 3814 | else
|
|---|
| 3815 | echo "configure: failed program was:" >&5
|
|---|
| 3816 | cat conftest.$ac_ext >&5
|
|---|
| 3817 | fi
|
|---|
| 3818 | rm -f conftest*
|
|---|
| 3819 | LIBS="$ac_save_LIBS"
|
|---|
| 3820 | rm -f "${LEX_OUTPUT_ROOT}.c"
|
|---|
| 3821 |
|
|---|
| 3822 | fi
|
|---|
| 3823 |
|
|---|
| 3824 | echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
|
|---|
| 3825 | if test $ac_cv_prog_lex_yytext_pointer = yes; then
|
|---|
| 3826 | cat >> confdefs.h <<\EOF
|
|---|
| 3827 | #define YYTEXT_POINTER 1
|
|---|
| 3828 | EOF
|
|---|
| 3829 |
|
|---|
| 3830 | fi
|
|---|
| 3831 |
|
|---|
| 3832 |
|
|---|
| 3833 | ALL_LINGUAS="fr tr es"
|
|---|
| 3834 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 3835 | set dummy ranlib; ac_word=$2
|
|---|
| 3836 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 3837 | echo "configure:3838: checking for $ac_word" >&5
|
|---|
| 3838 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 3839 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3840 | else
|
|---|
| 3841 | if test -n "$RANLIB"; then
|
|---|
| 3842 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 3843 | else
|
|---|
| 3844 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 3845 | ac_dummy="$PATH"
|
|---|
| 3846 | for ac_dir in $ac_dummy; do
|
|---|
| 3847 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 3848 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 3849 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 3850 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 3851 | break
|
|---|
| 3852 | fi
|
|---|
| 3853 | done
|
|---|
| 3854 | IFS="$ac_save_ifs"
|
|---|
| 3855 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 3856 | fi
|
|---|
| 3857 | fi
|
|---|
| 3858 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 3859 | if test -n "$RANLIB"; then
|
|---|
| 3860 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 3861 | else
|
|---|
| 3862 | echo "$ac_t""no" 1>&6
|
|---|
| 3863 | fi
|
|---|
| 3864 |
|
|---|
| 3865 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
|---|
| 3866 | echo "configure:3867: checking for ANSI C header files" >&5
|
|---|
| 3867 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
|---|
| 3868 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3869 | else
|
|---|
| 3870 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3871 | #include <sys/types.h>
|
|---|
| 3872 | #line 3873 "configure"
|
|---|
| 3873 | #include "confdefs.h"
|
|---|
| 3874 | #include <stdlib.h>
|
|---|
| 3875 | #include <stdarg.h>
|
|---|
| 3876 | #include <string.h>
|
|---|
| 3877 | #include <float.h>
|
|---|
| 3878 | EOF
|
|---|
| 3879 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3880 | { (eval echo configure:3881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3881 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3882 | if test -z "$ac_err"; then
|
|---|
| 3883 | rm -rf conftest*
|
|---|
| 3884 | ac_cv_header_stdc=yes
|
|---|
| 3885 | else
|
|---|
| 3886 | echo "$ac_err" >&5
|
|---|
| 3887 | echo "configure: failed program was:" >&5
|
|---|
| 3888 | cat conftest.$ac_ext >&5
|
|---|
| 3889 | rm -rf conftest*
|
|---|
| 3890 | ac_cv_header_stdc=no
|
|---|
| 3891 | fi
|
|---|
| 3892 | rm -f conftest*
|
|---|
| 3893 |
|
|---|
| 3894 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 3895 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|---|
| 3896 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3897 | #line 3898 "configure"
|
|---|
| 3898 | #include "confdefs.h"
|
|---|
| 3899 | #include <string.h>
|
|---|
| 3900 | EOF
|
|---|
| 3901 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3902 | egrep "memchr" >/dev/null 2>&1; then
|
|---|
| 3903 | :
|
|---|
| 3904 | else
|
|---|
| 3905 | rm -rf conftest*
|
|---|
| 3906 | ac_cv_header_stdc=no
|
|---|
| 3907 | fi
|
|---|
| 3908 | rm -f conftest*
|
|---|
| 3909 |
|
|---|
| 3910 | fi
|
|---|
| 3911 |
|
|---|
| 3912 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 3913 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|---|
| 3914 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3915 | #line 3916 "configure"
|
|---|
| 3916 | #include "confdefs.h"
|
|---|
| 3917 | #include <stdlib.h>
|
|---|
| 3918 | EOF
|
|---|
| 3919 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3920 | egrep "free" >/dev/null 2>&1; then
|
|---|
| 3921 | :
|
|---|
| 3922 | else
|
|---|
| 3923 | rm -rf conftest*
|
|---|
| 3924 | ac_cv_header_stdc=no
|
|---|
| 3925 | fi
|
|---|
| 3926 | rm -f conftest*
|
|---|
| 3927 |
|
|---|
| 3928 | fi
|
|---|
| 3929 |
|
|---|
| 3930 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 3931 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|---|
| 3932 | if test "$cross_compiling" = yes; then
|
|---|
| 3933 | :
|
|---|
| 3934 | else
|
|---|
| 3935 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3936 | #line 3937 "configure"
|
|---|
| 3937 | #include "confdefs.h"
|
|---|
| 3938 | #include <ctype.h>
|
|---|
| 3939 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|---|
| 3940 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|---|
| 3941 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|---|
| 3942 | int main () { int i; for (i = 0; i < 256; i++)
|
|---|
| 3943 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|---|
| 3944 | exit (0); }
|
|---|
| 3945 |
|
|---|
| 3946 | EOF
|
|---|
| 3947 | if { (eval echo configure:3948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 3948 | then
|
|---|
| 3949 | :
|
|---|
| 3950 | else
|
|---|
| 3951 | echo "configure: failed program was:" >&5
|
|---|
| 3952 | cat conftest.$ac_ext >&5
|
|---|
| 3953 | rm -fr conftest*
|
|---|
| 3954 | ac_cv_header_stdc=no
|
|---|
| 3955 | fi
|
|---|
| 3956 | rm -fr conftest*
|
|---|
| 3957 | fi
|
|---|
| 3958 |
|
|---|
| 3959 | fi
|
|---|
| 3960 | fi
|
|---|
| 3961 |
|
|---|
| 3962 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|---|
| 3963 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 3964 | cat >> confdefs.h <<\EOF
|
|---|
| 3965 | #define STDC_HEADERS 1
|
|---|
| 3966 | EOF
|
|---|
| 3967 |
|
|---|
| 3968 | fi
|
|---|
| 3969 |
|
|---|
| 3970 | echo $ac_n "checking for working const""... $ac_c" 1>&6
|
|---|
| 3971 | echo "configure:3972: checking for working const" >&5
|
|---|
| 3972 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
|---|
| 3973 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3974 | else
|
|---|
| 3975 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3976 | #line 3977 "configure"
|
|---|
| 3977 | #include "confdefs.h"
|
|---|
| 3978 |
|
|---|
| 3979 | int main() {
|
|---|
| 3980 |
|
|---|
| 3981 | /* Ultrix mips cc rejects this. */
|
|---|
| 3982 | typedef int charset[2]; const charset x;
|
|---|
| 3983 | /* SunOS 4.1.1 cc rejects this. */
|
|---|
| 3984 | char const *const *ccp;
|
|---|
| 3985 | char **p;
|
|---|
| 3986 | /* NEC SVR4.0.2 mips cc rejects this. */
|
|---|
| 3987 | struct point {int x, y;};
|
|---|
| 3988 | static struct point const zero = {0,0};
|
|---|
| 3989 | /* AIX XL C 1.02.0.0 rejects this.
|
|---|
| 3990 | It does not let you subtract one const X* pointer from another in an arm
|
|---|
| 3991 | of an if-expression whose if-part is not a constant expression */
|
|---|
| 3992 | const char *g = "string";
|
|---|
| 3993 | ccp = &g + (g ? g-g : 0);
|
|---|
| 3994 | /* HPUX 7.0 cc rejects these. */
|
|---|
| 3995 | ++ccp;
|
|---|
| 3996 | p = (char**) ccp;
|
|---|
| 3997 | ccp = (char const *const *) p;
|
|---|
| 3998 | { /* SCO 3.2v4 cc rejects this. */
|
|---|
| 3999 | char *t;
|
|---|
| 4000 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|---|
| 4001 |
|
|---|
| 4002 | *t++ = 0;
|
|---|
| 4003 | }
|
|---|
| 4004 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
|---|
| 4005 | int x[] = {25, 17};
|
|---|
| 4006 | const int *foo = &x[0];
|
|---|
| 4007 | ++foo;
|
|---|
| 4008 | }
|
|---|
| 4009 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|---|
| 4010 | typedef const int *iptr;
|
|---|
| 4011 | iptr p = 0;
|
|---|
| 4012 | ++p;
|
|---|
| 4013 | }
|
|---|
| 4014 | { /* AIX XL C 1.02.0.0 rejects this saying
|
|---|
| 4015 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|---|
| 4016 | struct s { int j; const int *ap[3]; };
|
|---|
| 4017 | struct s *b; b->j = 5;
|
|---|
| 4018 | }
|
|---|
| 4019 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|---|
| 4020 | const int foo = 10;
|
|---|
| 4021 | }
|
|---|
| 4022 |
|
|---|
| 4023 | ; return 0; }
|
|---|
| 4024 | EOF
|
|---|
| 4025 | if { (eval echo configure:4026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 4026 | rm -rf conftest*
|
|---|
| 4027 | ac_cv_c_const=yes
|
|---|
| 4028 | else
|
|---|
| 4029 | echo "configure: failed program was:" >&5
|
|---|
| 4030 | cat conftest.$ac_ext >&5
|
|---|
| 4031 | rm -rf conftest*
|
|---|
| 4032 | ac_cv_c_const=no
|
|---|
| 4033 | fi
|
|---|
| 4034 | rm -f conftest*
|
|---|
| 4035 | fi
|
|---|
| 4036 |
|
|---|
| 4037 | echo "$ac_t""$ac_cv_c_const" 1>&6
|
|---|
| 4038 | if test $ac_cv_c_const = no; then
|
|---|
| 4039 | cat >> confdefs.h <<\EOF
|
|---|
| 4040 | #define const
|
|---|
| 4041 | EOF
|
|---|
| 4042 |
|
|---|
| 4043 | fi
|
|---|
| 4044 |
|
|---|
| 4045 | echo $ac_n "checking for inline""... $ac_c" 1>&6
|
|---|
| 4046 | echo "configure:4047: checking for inline" >&5
|
|---|
| 4047 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
|---|
| 4048 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4049 | else
|
|---|
| 4050 | ac_cv_c_inline=no
|
|---|
| 4051 | for ac_kw in inline __inline__ __inline; do
|
|---|
| 4052 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4053 | #line 4054 "configure"
|
|---|
| 4054 | #include "confdefs.h"
|
|---|
| 4055 |
|
|---|
| 4056 | int main() {
|
|---|
| 4057 | } $ac_kw foo() {
|
|---|
| 4058 | ; return 0; }
|
|---|
| 4059 | EOF
|
|---|
| 4060 | if { (eval echo configure:4061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 4061 | rm -rf conftest*
|
|---|
| 4062 | ac_cv_c_inline=$ac_kw; break
|
|---|
| 4063 | else
|
|---|
| 4064 | echo "configure: failed program was:" >&5
|
|---|
| 4065 | cat conftest.$ac_ext >&5
|
|---|
| 4066 | fi
|
|---|
| 4067 | rm -f conftest*
|
|---|
| 4068 | done
|
|---|
| 4069 |
|
|---|
| 4070 | fi
|
|---|
| 4071 |
|
|---|
| 4072 | echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|---|
| 4073 | case "$ac_cv_c_inline" in
|
|---|
| 4074 | inline | yes) ;;
|
|---|
| 4075 | no) cat >> confdefs.h <<\EOF
|
|---|
| 4076 | #define inline
|
|---|
| 4077 | EOF
|
|---|
| 4078 | ;;
|
|---|
| 4079 | *) cat >> confdefs.h <<EOF
|
|---|
| 4080 | #define inline $ac_cv_c_inline
|
|---|
| 4081 | EOF
|
|---|
| 4082 | ;;
|
|---|
| 4083 | esac
|
|---|
| 4084 |
|
|---|
| 4085 | echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
|---|
| 4086 | echo "configure:4087: checking for off_t" >&5
|
|---|
| 4087 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
|---|
| 4088 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4089 | else
|
|---|
| 4090 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4091 | #line 4092 "configure"
|
|---|
| 4092 | #include "confdefs.h"
|
|---|
| 4093 | #include <sys/types.h>
|
|---|
| 4094 | #if STDC_HEADERS
|
|---|
| 4095 | #include <stdlib.h>
|
|---|
| 4096 | #include <stddef.h>
|
|---|
| 4097 | #endif
|
|---|
| 4098 | EOF
|
|---|
| 4099 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 4100 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|---|
| 4101 | rm -rf conftest*
|
|---|
| 4102 | ac_cv_type_off_t=yes
|
|---|
| 4103 | else
|
|---|
| 4104 | rm -rf conftest*
|
|---|
| 4105 | ac_cv_type_off_t=no
|
|---|
| 4106 | fi
|
|---|
| 4107 | rm -f conftest*
|
|---|
| 4108 |
|
|---|
| 4109 | fi
|
|---|
| 4110 | echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
|---|
| 4111 | if test $ac_cv_type_off_t = no; then
|
|---|
| 4112 | cat >> confdefs.h <<\EOF
|
|---|
| 4113 | #define off_t long
|
|---|
| 4114 | EOF
|
|---|
| 4115 |
|
|---|
| 4116 | fi
|
|---|
| 4117 |
|
|---|
| 4118 | echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
|---|
| 4119 | echo "configure:4120: checking for size_t" >&5
|
|---|
| 4120 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
|---|
| 4121 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4122 | else
|
|---|
| 4123 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4124 | #line 4125 "configure"
|
|---|
| 4125 | #include "confdefs.h"
|
|---|
| 4126 | #include <sys/types.h>
|
|---|
| 4127 | #if STDC_HEADERS
|
|---|
| 4128 | #include <stdlib.h>
|
|---|
| 4129 | #include <stddef.h>
|
|---|
| 4130 | #endif
|
|---|
| 4131 | EOF
|
|---|
| 4132 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 4133 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|---|
| 4134 | rm -rf conftest*
|
|---|
| 4135 | ac_cv_type_size_t=yes
|
|---|
| 4136 | else
|
|---|
| 4137 | rm -rf conftest*
|
|---|
| 4138 | ac_cv_type_size_t=no
|
|---|
| 4139 | fi
|
|---|
| 4140 | rm -f conftest*
|
|---|
| 4141 |
|
|---|
| 4142 | fi
|
|---|
| 4143 | echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
|---|
| 4144 | if test $ac_cv_type_size_t = no; then
|
|---|
| 4145 | cat >> confdefs.h <<\EOF
|
|---|
| 4146 | #define size_t unsigned
|
|---|
| 4147 | EOF
|
|---|
| 4148 |
|
|---|
| 4149 | fi
|
|---|
| 4150 |
|
|---|
| 4151 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
|---|
| 4152 | # for constant arguments. Useless!
|
|---|
| 4153 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
|---|
| 4154 | echo "configure:4155: checking for working alloca.h" >&5
|
|---|
| 4155 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
|---|
| 4156 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4157 | else
|
|---|
| 4158 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4159 | #line 4160 "configure"
|
|---|
| 4160 | #include "confdefs.h"
|
|---|
| 4161 | #include <alloca.h>
|
|---|
| 4162 | int main() {
|
|---|
| 4163 | char *p = alloca(2 * sizeof(int));
|
|---|
| 4164 | ; return 0; }
|
|---|
| 4165 | EOF
|
|---|
| 4166 | if { (eval echo configure:4167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4167 | rm -rf conftest*
|
|---|
| 4168 | ac_cv_header_alloca_h=yes
|
|---|
| 4169 | else
|
|---|
| 4170 | echo "configure: failed program was:" >&5
|
|---|
| 4171 | cat conftest.$ac_ext >&5
|
|---|
| 4172 | rm -rf conftest*
|
|---|
| 4173 | ac_cv_header_alloca_h=no
|
|---|
| 4174 | fi
|
|---|
| 4175 | rm -f conftest*
|
|---|
| 4176 | fi
|
|---|
| 4177 |
|
|---|
| 4178 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|---|
| 4179 | if test $ac_cv_header_alloca_h = yes; then
|
|---|
| 4180 | cat >> confdefs.h <<\EOF
|
|---|
| 4181 | #define HAVE_ALLOCA_H 1
|
|---|
| 4182 | EOF
|
|---|
| 4183 |
|
|---|
| 4184 | fi
|
|---|
| 4185 |
|
|---|
| 4186 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
|---|
| 4187 | echo "configure:4188: checking for alloca" >&5
|
|---|
| 4188 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
|---|
| 4189 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4190 | else
|
|---|
| 4191 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4192 | #line 4193 "configure"
|
|---|
| 4193 | #include "confdefs.h"
|
|---|
| 4194 |
|
|---|
| 4195 | #ifdef __GNUC__
|
|---|
| 4196 | # define alloca __builtin_alloca
|
|---|
| 4197 | #else
|
|---|
| 4198 | # ifdef _MSC_VER
|
|---|
| 4199 | # include <malloc.h>
|
|---|
| 4200 | # define alloca _alloca
|
|---|
| 4201 | # else
|
|---|
| 4202 | # if HAVE_ALLOCA_H
|
|---|
| 4203 | # include <alloca.h>
|
|---|
| 4204 | # else
|
|---|
| 4205 | # ifdef _AIX
|
|---|
| 4206 | #pragma alloca
|
|---|
| 4207 | # else
|
|---|
| 4208 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
|---|
| 4209 | char *alloca ();
|
|---|
| 4210 | # endif
|
|---|
| 4211 | # endif
|
|---|
| 4212 | # endif
|
|---|
| 4213 | # endif
|
|---|
| 4214 | #endif
|
|---|
| 4215 |
|
|---|
| 4216 | int main() {
|
|---|
| 4217 | char *p = (char *) alloca(1);
|
|---|
| 4218 | ; return 0; }
|
|---|
| 4219 | EOF
|
|---|
| 4220 | if { (eval echo configure:4221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4221 | rm -rf conftest*
|
|---|
| 4222 | ac_cv_func_alloca_works=yes
|
|---|
| 4223 | else
|
|---|
| 4224 | echo "configure: failed program was:" >&5
|
|---|
| 4225 | cat conftest.$ac_ext >&5
|
|---|
| 4226 | rm -rf conftest*
|
|---|
| 4227 | ac_cv_func_alloca_works=no
|
|---|
| 4228 | fi
|
|---|
| 4229 | rm -f conftest*
|
|---|
| 4230 | fi
|
|---|
| 4231 |
|
|---|
| 4232 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
|---|
| 4233 | if test $ac_cv_func_alloca_works = yes; then
|
|---|
| 4234 | cat >> confdefs.h <<\EOF
|
|---|
| 4235 | #define HAVE_ALLOCA 1
|
|---|
| 4236 | EOF
|
|---|
| 4237 |
|
|---|
| 4238 | fi
|
|---|
| 4239 |
|
|---|
| 4240 | if test $ac_cv_func_alloca_works = no; then
|
|---|
| 4241 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|---|
| 4242 | # that cause trouble. Some versions do not even contain alloca or
|
|---|
| 4243 | # contain a buggy version. If you still want to use their alloca,
|
|---|
| 4244 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
|---|
| 4245 | ALLOCA=alloca.${ac_objext}
|
|---|
| 4246 | cat >> confdefs.h <<\EOF
|
|---|
| 4247 | #define C_ALLOCA 1
|
|---|
| 4248 | EOF
|
|---|
| 4249 |
|
|---|
| 4250 |
|
|---|
| 4251 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
|---|
| 4252 | echo "configure:4253: checking whether alloca needs Cray hooks" >&5
|
|---|
| 4253 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
|---|
| 4254 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4255 | else
|
|---|
| 4256 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4257 | #line 4258 "configure"
|
|---|
| 4258 | #include "confdefs.h"
|
|---|
| 4259 | #if defined(CRAY) && ! defined(CRAY2)
|
|---|
| 4260 | webecray
|
|---|
| 4261 | #else
|
|---|
| 4262 | wenotbecray
|
|---|
| 4263 | #endif
|
|---|
| 4264 |
|
|---|
| 4265 | EOF
|
|---|
| 4266 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 4267 | egrep "webecray" >/dev/null 2>&1; then
|
|---|
| 4268 | rm -rf conftest*
|
|---|
| 4269 | ac_cv_os_cray=yes
|
|---|
| 4270 | else
|
|---|
| 4271 | rm -rf conftest*
|
|---|
| 4272 | ac_cv_os_cray=no
|
|---|
| 4273 | fi
|
|---|
| 4274 | rm -f conftest*
|
|---|
| 4275 |
|
|---|
| 4276 | fi
|
|---|
| 4277 |
|
|---|
| 4278 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
|---|
| 4279 | if test $ac_cv_os_cray = yes; then
|
|---|
| 4280 | for ac_func in _getb67 GETB67 getb67; do
|
|---|
| 4281 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 4282 | echo "configure:4283: checking for $ac_func" >&5
|
|---|
| 4283 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 4284 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4285 | else
|
|---|
| 4286 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4287 | #line 4288 "configure"
|
|---|
| 4288 | #include "confdefs.h"
|
|---|
| 4289 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 4290 | which can conflict with char $ac_func(); below. */
|
|---|
| 4291 | #include <assert.h>
|
|---|
| 4292 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4293 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4294 | builtin and then its argument prototype would still apply. */
|
|---|
| 4295 | char $ac_func();
|
|---|
| 4296 |
|
|---|
| 4297 | int main() {
|
|---|
| 4298 |
|
|---|
| 4299 | /* The GNU C library defines this for functions which it implements
|
|---|
| 4300 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 4301 | something starting with __ and the normal name is an alias. */
|
|---|
| 4302 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 4303 | choke me
|
|---|
| 4304 | #else
|
|---|
| 4305 | $ac_func();
|
|---|
| 4306 | #endif
|
|---|
| 4307 |
|
|---|
| 4308 | ; return 0; }
|
|---|
| 4309 | EOF
|
|---|
| 4310 | if { (eval echo configure:4311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4311 | rm -rf conftest*
|
|---|
| 4312 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 4313 | else
|
|---|
| 4314 | echo "configure: failed program was:" >&5
|
|---|
| 4315 | cat conftest.$ac_ext >&5
|
|---|
| 4316 | rm -rf conftest*
|
|---|
| 4317 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 4318 | fi
|
|---|
| 4319 | rm -f conftest*
|
|---|
| 4320 | fi
|
|---|
| 4321 |
|
|---|
| 4322 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 4323 | echo "$ac_t""yes" 1>&6
|
|---|
| 4324 | cat >> confdefs.h <<EOF
|
|---|
| 4325 | #define CRAY_STACKSEG_END $ac_func
|
|---|
| 4326 | EOF
|
|---|
| 4327 |
|
|---|
| 4328 | break
|
|---|
| 4329 | else
|
|---|
| 4330 | echo "$ac_t""no" 1>&6
|
|---|
| 4331 | fi
|
|---|
| 4332 |
|
|---|
| 4333 | done
|
|---|
| 4334 | fi
|
|---|
| 4335 |
|
|---|
| 4336 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
|---|
| 4337 | echo "configure:4338: checking stack direction for C alloca" >&5
|
|---|
| 4338 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
|---|
| 4339 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4340 | else
|
|---|
| 4341 | if test "$cross_compiling" = yes; then
|
|---|
| 4342 | ac_cv_c_stack_direction=0
|
|---|
| 4343 | else
|
|---|
| 4344 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4345 | #line 4346 "configure"
|
|---|
| 4346 | #include "confdefs.h"
|
|---|
| 4347 | find_stack_direction ()
|
|---|
| 4348 | {
|
|---|
| 4349 | static char *addr = 0;
|
|---|
| 4350 | auto char dummy;
|
|---|
| 4351 | if (addr == 0)
|
|---|
| 4352 | {
|
|---|
| 4353 | addr = &dummy;
|
|---|
| 4354 | return find_stack_direction ();
|
|---|
| 4355 | }
|
|---|
| 4356 | else
|
|---|
| 4357 | return (&dummy > addr) ? 1 : -1;
|
|---|
| 4358 | }
|
|---|
| 4359 | main ()
|
|---|
| 4360 | {
|
|---|
| 4361 | exit (find_stack_direction() < 0);
|
|---|
| 4362 | }
|
|---|
| 4363 | EOF
|
|---|
| 4364 | if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 4365 | then
|
|---|
| 4366 | ac_cv_c_stack_direction=1
|
|---|
| 4367 | else
|
|---|
| 4368 | echo "configure: failed program was:" >&5
|
|---|
| 4369 | cat conftest.$ac_ext >&5
|
|---|
| 4370 | rm -fr conftest*
|
|---|
| 4371 | ac_cv_c_stack_direction=-1
|
|---|
| 4372 | fi
|
|---|
| 4373 | rm -fr conftest*
|
|---|
| 4374 | fi
|
|---|
| 4375 |
|
|---|
| 4376 | fi
|
|---|
| 4377 |
|
|---|
| 4378 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
|---|
| 4379 | cat >> confdefs.h <<EOF
|
|---|
| 4380 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
|---|
| 4381 | EOF
|
|---|
| 4382 |
|
|---|
| 4383 | fi
|
|---|
| 4384 |
|
|---|
| 4385 | for ac_hdr in unistd.h
|
|---|
| 4386 | do
|
|---|
| 4387 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 4388 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 4389 | echo "configure:4390: checking for $ac_hdr" >&5
|
|---|
| 4390 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 4391 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4392 | else
|
|---|
| 4393 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4394 | #include <sys/types.h>
|
|---|
| 4395 | #line 4396 "configure"
|
|---|
| 4396 | #include "confdefs.h"
|
|---|
| 4397 | #include <$ac_hdr>
|
|---|
| 4398 | EOF
|
|---|
| 4399 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 4400 | { (eval echo configure:4401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 4401 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 4402 | if test -z "$ac_err"; then
|
|---|
| 4403 | rm -rf conftest*
|
|---|
| 4404 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 4405 | else
|
|---|
| 4406 | echo "$ac_err" >&5
|
|---|
| 4407 | echo "configure: failed program was:" >&5
|
|---|
| 4408 | cat conftest.$ac_ext >&5
|
|---|
| 4409 | rm -rf conftest*
|
|---|
| 4410 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 4411 | fi
|
|---|
| 4412 | rm -f conftest*
|
|---|
| 4413 | fi
|
|---|
| 4414 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 4415 | echo "$ac_t""yes" 1>&6
|
|---|
| 4416 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 4417 | cat >> confdefs.h <<EOF
|
|---|
| 4418 | #define $ac_tr_hdr 1
|
|---|
| 4419 | EOF
|
|---|
| 4420 |
|
|---|
| 4421 | else
|
|---|
| 4422 | echo "$ac_t""no" 1>&6
|
|---|
| 4423 | fi
|
|---|
| 4424 | done
|
|---|
| 4425 |
|
|---|
| 4426 | for ac_func in getpagesize
|
|---|
| 4427 | do
|
|---|
| 4428 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 4429 | echo "configure:4430: checking for $ac_func" >&5
|
|---|
| 4430 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 4431 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4432 | else
|
|---|
| 4433 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4434 | #line 4435 "configure"
|
|---|
| 4435 | #include "confdefs.h"
|
|---|
| 4436 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 4437 | which can conflict with char $ac_func(); below. */
|
|---|
| 4438 | #include <assert.h>
|
|---|
| 4439 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4440 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4441 | builtin and then its argument prototype would still apply. */
|
|---|
| 4442 | char $ac_func();
|
|---|
| 4443 |
|
|---|
| 4444 | int main() {
|
|---|
| 4445 |
|
|---|
| 4446 | /* The GNU C library defines this for functions which it implements
|
|---|
| 4447 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 4448 | something starting with __ and the normal name is an alias. */
|
|---|
| 4449 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 4450 | choke me
|
|---|
| 4451 | #else
|
|---|
| 4452 | $ac_func();
|
|---|
| 4453 | #endif
|
|---|
| 4454 |
|
|---|
| 4455 | ; return 0; }
|
|---|
| 4456 | EOF
|
|---|
| 4457 | if { (eval echo configure:4458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4458 | rm -rf conftest*
|
|---|
| 4459 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 4460 | else
|
|---|
| 4461 | echo "configure: failed program was:" >&5
|
|---|
| 4462 | cat conftest.$ac_ext >&5
|
|---|
| 4463 | rm -rf conftest*
|
|---|
| 4464 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 4465 | fi
|
|---|
| 4466 | rm -f conftest*
|
|---|
| 4467 | fi
|
|---|
| 4468 |
|
|---|
| 4469 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 4470 | echo "$ac_t""yes" 1>&6
|
|---|
| 4471 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 4472 | cat >> confdefs.h <<EOF
|
|---|
| 4473 | #define $ac_tr_func 1
|
|---|
| 4474 | EOF
|
|---|
| 4475 |
|
|---|
| 4476 | else
|
|---|
| 4477 | echo "$ac_t""no" 1>&6
|
|---|
| 4478 | fi
|
|---|
| 4479 | done
|
|---|
| 4480 |
|
|---|
| 4481 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
|---|
| 4482 | echo "configure:4483: checking for working mmap" >&5
|
|---|
| 4483 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
|---|
| 4484 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4485 | else
|
|---|
| 4486 | if test "$cross_compiling" = yes; then
|
|---|
| 4487 | ac_cv_func_mmap_fixed_mapped=no
|
|---|
| 4488 | else
|
|---|
| 4489 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4490 | #line 4491 "configure"
|
|---|
| 4491 | #include "confdefs.h"
|
|---|
| 4492 |
|
|---|
| 4493 | /* Thanks to Mike Haertel and Jim Avera for this test.
|
|---|
| 4494 | Here is a matrix of mmap possibilities:
|
|---|
| 4495 | mmap private not fixed
|
|---|
| 4496 | mmap private fixed at somewhere currently unmapped
|
|---|
| 4497 | mmap private fixed at somewhere already mapped
|
|---|
| 4498 | mmap shared not fixed
|
|---|
| 4499 | mmap shared fixed at somewhere currently unmapped
|
|---|
| 4500 | mmap shared fixed at somewhere already mapped
|
|---|
| 4501 | For private mappings, we should verify that changes cannot be read()
|
|---|
| 4502 | back from the file, nor mmap's back from the file at a different
|
|---|
| 4503 | address. (There have been systems where private was not correctly
|
|---|
| 4504 | implemented like the infamous i386 svr4.0, and systems where the
|
|---|
| 4505 | VM page cache was not coherent with the filesystem buffer cache
|
|---|
| 4506 | like early versions of FreeBSD and possibly contemporary NetBSD.)
|
|---|
| 4507 | For shared mappings, we should conversely verify that changes get
|
|---|
| 4508 | propogated back to all the places they're supposed to be.
|
|---|
| 4509 |
|
|---|
| 4510 | Grep wants private fixed already mapped.
|
|---|
| 4511 | The main things grep needs to know about mmap are:
|
|---|
| 4512 | * does it exist and is it safe to write into the mmap'd area
|
|---|
| 4513 | * how to use it (BSD variants) */
|
|---|
| 4514 | #include <sys/types.h>
|
|---|
| 4515 | #include <fcntl.h>
|
|---|
| 4516 | #include <sys/mman.h>
|
|---|
| 4517 |
|
|---|
| 4518 | /* This mess was copied from the GNU getpagesize.h. */
|
|---|
| 4519 | #ifndef HAVE_GETPAGESIZE
|
|---|
| 4520 | # ifdef HAVE_UNISTD_H
|
|---|
| 4521 | # include <unistd.h>
|
|---|
| 4522 | # endif
|
|---|
| 4523 |
|
|---|
| 4524 | /* Assume that all systems that can run configure have sys/param.h. */
|
|---|
| 4525 | # ifndef HAVE_SYS_PARAM_H
|
|---|
| 4526 | # define HAVE_SYS_PARAM_H 1
|
|---|
| 4527 | # endif
|
|---|
| 4528 |
|
|---|
| 4529 | # ifdef _SC_PAGESIZE
|
|---|
| 4530 | # define getpagesize() sysconf(_SC_PAGESIZE)
|
|---|
| 4531 | # else /* no _SC_PAGESIZE */
|
|---|
| 4532 | # ifdef HAVE_SYS_PARAM_H
|
|---|
| 4533 | # include <sys/param.h>
|
|---|
| 4534 | # ifdef EXEC_PAGESIZE
|
|---|
| 4535 | # define getpagesize() EXEC_PAGESIZE
|
|---|
| 4536 | # else /* no EXEC_PAGESIZE */
|
|---|
| 4537 | # ifdef NBPG
|
|---|
| 4538 | # define getpagesize() NBPG * CLSIZE
|
|---|
| 4539 | # ifndef CLSIZE
|
|---|
| 4540 | # define CLSIZE 1
|
|---|
| 4541 | # endif /* no CLSIZE */
|
|---|
| 4542 | # else /* no NBPG */
|
|---|
| 4543 | # ifdef NBPC
|
|---|
| 4544 | # define getpagesize() NBPC
|
|---|
| 4545 | # else /* no NBPC */
|
|---|
| 4546 | # ifdef PAGESIZE
|
|---|
| 4547 | # define getpagesize() PAGESIZE
|
|---|
| 4548 | # endif /* PAGESIZE */
|
|---|
| 4549 | # endif /* no NBPC */
|
|---|
| 4550 | # endif /* no NBPG */
|
|---|
| 4551 | # endif /* no EXEC_PAGESIZE */
|
|---|
| 4552 | # else /* no HAVE_SYS_PARAM_H */
|
|---|
| 4553 | # define getpagesize() 8192 /* punt totally */
|
|---|
| 4554 | # endif /* no HAVE_SYS_PARAM_H */
|
|---|
| 4555 | # endif /* no _SC_PAGESIZE */
|
|---|
| 4556 |
|
|---|
| 4557 | #endif /* no HAVE_GETPAGESIZE */
|
|---|
| 4558 |
|
|---|
| 4559 | #ifdef __cplusplus
|
|---|
| 4560 | extern "C" { void *malloc(unsigned); }
|
|---|
| 4561 | #else
|
|---|
| 4562 | char *malloc();
|
|---|
| 4563 | #endif
|
|---|
| 4564 |
|
|---|
| 4565 | int
|
|---|
| 4566 | main()
|
|---|
| 4567 | {
|
|---|
| 4568 | char *data, *data2, *data3;
|
|---|
| 4569 | int i, pagesize;
|
|---|
| 4570 | int fd;
|
|---|
| 4571 |
|
|---|
| 4572 | pagesize = getpagesize();
|
|---|
| 4573 |
|
|---|
| 4574 | /*
|
|---|
| 4575 | * First, make a file with some known garbage in it.
|
|---|
| 4576 | */
|
|---|
| 4577 | data = malloc(pagesize);
|
|---|
| 4578 | if (!data)
|
|---|
| 4579 | exit(1);
|
|---|
| 4580 | for (i = 0; i < pagesize; ++i)
|
|---|
| 4581 | *(data + i) = rand();
|
|---|
| 4582 | umask(0);
|
|---|
| 4583 | fd = creat("conftestmmap", 0600);
|
|---|
| 4584 | if (fd < 0)
|
|---|
| 4585 | exit(1);
|
|---|
| 4586 | if (write(fd, data, pagesize) != pagesize)
|
|---|
| 4587 | exit(1);
|
|---|
| 4588 | close(fd);
|
|---|
| 4589 |
|
|---|
| 4590 | /*
|
|---|
| 4591 | * Next, try to mmap the file at a fixed address which
|
|---|
| 4592 | * already has something else allocated at it. If we can,
|
|---|
| 4593 | * also make sure that we see the same garbage.
|
|---|
| 4594 | */
|
|---|
| 4595 | fd = open("conftestmmap", O_RDWR);
|
|---|
| 4596 | if (fd < 0)
|
|---|
| 4597 | exit(1);
|
|---|
| 4598 | data2 = malloc(2 * pagesize);
|
|---|
| 4599 | if (!data2)
|
|---|
| 4600 | exit(1);
|
|---|
| 4601 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
|---|
| 4602 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
|---|
| 4603 | MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
|---|
| 4604 | exit(1);
|
|---|
| 4605 | for (i = 0; i < pagesize; ++i)
|
|---|
| 4606 | if (*(data + i) != *(data2 + i))
|
|---|
| 4607 | exit(1);
|
|---|
| 4608 |
|
|---|
| 4609 | /*
|
|---|
| 4610 | * Finally, make sure that changes to the mapped area
|
|---|
| 4611 | * do not percolate back to the file as seen by read().
|
|---|
| 4612 | * (This is a bug on some variants of i386 svr4.0.)
|
|---|
| 4613 | */
|
|---|
| 4614 | for (i = 0; i < pagesize; ++i)
|
|---|
| 4615 | *(data2 + i) = *(data2 + i) + 1;
|
|---|
| 4616 | data3 = malloc(pagesize);
|
|---|
| 4617 | if (!data3)
|
|---|
| 4618 | exit(1);
|
|---|
| 4619 | if (read(fd, data3, pagesize) != pagesize)
|
|---|
| 4620 | exit(1);
|
|---|
| 4621 | for (i = 0; i < pagesize; ++i)
|
|---|
| 4622 | if (*(data + i) != *(data3 + i))
|
|---|
| 4623 | exit(1);
|
|---|
| 4624 | close(fd);
|
|---|
| 4625 | unlink("conftestmmap");
|
|---|
| 4626 | exit(0);
|
|---|
| 4627 | }
|
|---|
| 4628 |
|
|---|
| 4629 | EOF
|
|---|
| 4630 | if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 4631 | then
|
|---|
| 4632 | ac_cv_func_mmap_fixed_mapped=yes
|
|---|
| 4633 | else
|
|---|
| 4634 | echo "configure: failed program was:" >&5
|
|---|
| 4635 | cat conftest.$ac_ext >&5
|
|---|
| 4636 | rm -fr conftest*
|
|---|
| 4637 | ac_cv_func_mmap_fixed_mapped=no
|
|---|
| 4638 | fi
|
|---|
| 4639 | rm -fr conftest*
|
|---|
| 4640 | fi
|
|---|
| 4641 |
|
|---|
| 4642 | fi
|
|---|
| 4643 |
|
|---|
| 4644 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
|---|
| 4645 | if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
|---|
| 4646 | cat >> confdefs.h <<\EOF
|
|---|
| 4647 | #define HAVE_MMAP 1
|
|---|
| 4648 | EOF
|
|---|
| 4649 |
|
|---|
| 4650 | fi
|
|---|
| 4651 |
|
|---|
| 4652 |
|
|---|
| 4653 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
|
|---|
| 4654 | unistd.h values.h sys/param.h
|
|---|
| 4655 | do
|
|---|
| 4656 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 4657 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 4658 | echo "configure:4659: checking for $ac_hdr" >&5
|
|---|
| 4659 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 4660 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4661 | else
|
|---|
| 4662 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4663 | #include <sys/types.h>
|
|---|
| 4664 | #line 4665 "configure"
|
|---|
| 4665 | #include "confdefs.h"
|
|---|
| 4666 | #include <$ac_hdr>
|
|---|
| 4667 | EOF
|
|---|
| 4668 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 4669 | { (eval echo configure:4670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 4670 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 4671 | if test -z "$ac_err"; then
|
|---|
| 4672 | rm -rf conftest*
|
|---|
| 4673 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 4674 | else
|
|---|
| 4675 | echo "$ac_err" >&5
|
|---|
| 4676 | echo "configure: failed program was:" >&5
|
|---|
| 4677 | cat conftest.$ac_ext >&5
|
|---|
| 4678 | rm -rf conftest*
|
|---|
| 4679 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 4680 | fi
|
|---|
| 4681 | rm -f conftest*
|
|---|
| 4682 | fi
|
|---|
| 4683 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 4684 | echo "$ac_t""yes" 1>&6
|
|---|
| 4685 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 4686 | cat >> confdefs.h <<EOF
|
|---|
| 4687 | #define $ac_tr_hdr 1
|
|---|
| 4688 | EOF
|
|---|
| 4689 |
|
|---|
| 4690 | else
|
|---|
| 4691 | echo "$ac_t""no" 1>&6
|
|---|
| 4692 | fi
|
|---|
| 4693 | done
|
|---|
| 4694 |
|
|---|
| 4695 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
|
|---|
| 4696 | __argz_count __argz_stringify __argz_next
|
|---|
| 4697 | do
|
|---|
| 4698 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 4699 | echo "configure:4700: checking for $ac_func" >&5
|
|---|
| 4700 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 4701 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4702 | else
|
|---|
| 4703 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4704 | #line 4705 "configure"
|
|---|
| 4705 | #include "confdefs.h"
|
|---|
| 4706 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 4707 | which can conflict with char $ac_func(); below. */
|
|---|
| 4708 | #include <assert.h>
|
|---|
| 4709 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4710 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4711 | builtin and then its argument prototype would still apply. */
|
|---|
| 4712 | char $ac_func();
|
|---|
| 4713 |
|
|---|
| 4714 | int main() {
|
|---|
| 4715 |
|
|---|
| 4716 | /* The GNU C library defines this for functions which it implements
|
|---|
| 4717 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 4718 | something starting with __ and the normal name is an alias. */
|
|---|
| 4719 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 4720 | choke me
|
|---|
| 4721 | #else
|
|---|
| 4722 | $ac_func();
|
|---|
| 4723 | #endif
|
|---|
| 4724 |
|
|---|
| 4725 | ; return 0; }
|
|---|
| 4726 | EOF
|
|---|
| 4727 | if { (eval echo configure:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4728 | rm -rf conftest*
|
|---|
| 4729 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 4730 | else
|
|---|
| 4731 | echo "configure: failed program was:" >&5
|
|---|
| 4732 | cat conftest.$ac_ext >&5
|
|---|
| 4733 | rm -rf conftest*
|
|---|
| 4734 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 4735 | fi
|
|---|
| 4736 | rm -f conftest*
|
|---|
| 4737 | fi
|
|---|
| 4738 |
|
|---|
| 4739 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 4740 | echo "$ac_t""yes" 1>&6
|
|---|
| 4741 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 4742 | cat >> confdefs.h <<EOF
|
|---|
| 4743 | #define $ac_tr_func 1
|
|---|
| 4744 | EOF
|
|---|
| 4745 |
|
|---|
| 4746 | else
|
|---|
| 4747 | echo "$ac_t""no" 1>&6
|
|---|
| 4748 | fi
|
|---|
| 4749 | done
|
|---|
| 4750 |
|
|---|
| 4751 |
|
|---|
| 4752 | if test "${ac_cv_func_stpcpy+set}" != "set"; then
|
|---|
| 4753 | for ac_func in stpcpy
|
|---|
| 4754 | do
|
|---|
| 4755 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 4756 | echo "configure:4757: checking for $ac_func" >&5
|
|---|
| 4757 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 4758 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4759 | else
|
|---|
| 4760 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4761 | #line 4762 "configure"
|
|---|
| 4762 | #include "confdefs.h"
|
|---|
| 4763 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 4764 | which can conflict with char $ac_func(); below. */
|
|---|
| 4765 | #include <assert.h>
|
|---|
| 4766 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4767 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4768 | builtin and then its argument prototype would still apply. */
|
|---|
| 4769 | char $ac_func();
|
|---|
| 4770 |
|
|---|
| 4771 | int main() {
|
|---|
| 4772 |
|
|---|
| 4773 | /* The GNU C library defines this for functions which it implements
|
|---|
| 4774 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 4775 | something starting with __ and the normal name is an alias. */
|
|---|
| 4776 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 4777 | choke me
|
|---|
| 4778 | #else
|
|---|
| 4779 | $ac_func();
|
|---|
| 4780 | #endif
|
|---|
| 4781 |
|
|---|
| 4782 | ; return 0; }
|
|---|
| 4783 | EOF
|
|---|
| 4784 | if { (eval echo configure:4785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4785 | rm -rf conftest*
|
|---|
| 4786 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 4787 | else
|
|---|
| 4788 | echo "configure: failed program was:" >&5
|
|---|
| 4789 | cat conftest.$ac_ext >&5
|
|---|
| 4790 | rm -rf conftest*
|
|---|
| 4791 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 4792 | fi
|
|---|
| 4793 | rm -f conftest*
|
|---|
| 4794 | fi
|
|---|
| 4795 |
|
|---|
| 4796 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 4797 | echo "$ac_t""yes" 1>&6
|
|---|
| 4798 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 4799 | cat >> confdefs.h <<EOF
|
|---|
| 4800 | #define $ac_tr_func 1
|
|---|
| 4801 | EOF
|
|---|
| 4802 |
|
|---|
| 4803 | else
|
|---|
| 4804 | echo "$ac_t""no" 1>&6
|
|---|
| 4805 | fi
|
|---|
| 4806 | done
|
|---|
| 4807 |
|
|---|
| 4808 | fi
|
|---|
| 4809 | if test "${ac_cv_func_stpcpy}" = "yes"; then
|
|---|
| 4810 | cat >> confdefs.h <<\EOF
|
|---|
| 4811 | #define HAVE_STPCPY 1
|
|---|
| 4812 | EOF
|
|---|
| 4813 |
|
|---|
| 4814 | fi
|
|---|
| 4815 |
|
|---|
| 4816 | if test $ac_cv_header_locale_h = yes; then
|
|---|
| 4817 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
|
|---|
| 4818 | echo "configure:4819: checking for LC_MESSAGES" >&5
|
|---|
| 4819 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
|
|---|
| 4820 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4821 | else
|
|---|
| 4822 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4823 | #line 4824 "configure"
|
|---|
| 4824 | #include "confdefs.h"
|
|---|
| 4825 | #include <locale.h>
|
|---|
| 4826 | int main() {
|
|---|
| 4827 | return LC_MESSAGES
|
|---|
| 4828 | ; return 0; }
|
|---|
| 4829 | EOF
|
|---|
| 4830 | if { (eval echo configure:4831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4831 | rm -rf conftest*
|
|---|
| 4832 | am_cv_val_LC_MESSAGES=yes
|
|---|
| 4833 | else
|
|---|
| 4834 | echo "configure: failed program was:" >&5
|
|---|
| 4835 | cat conftest.$ac_ext >&5
|
|---|
| 4836 | rm -rf conftest*
|
|---|
| 4837 | am_cv_val_LC_MESSAGES=no
|
|---|
| 4838 | fi
|
|---|
| 4839 | rm -f conftest*
|
|---|
| 4840 | fi
|
|---|
| 4841 |
|
|---|
| 4842 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
|
|---|
| 4843 | if test $am_cv_val_LC_MESSAGES = yes; then
|
|---|
| 4844 | cat >> confdefs.h <<\EOF
|
|---|
| 4845 | #define HAVE_LC_MESSAGES 1
|
|---|
| 4846 | EOF
|
|---|
| 4847 |
|
|---|
| 4848 | fi
|
|---|
| 4849 | fi
|
|---|
| 4850 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
|
|---|
| 4851 | echo "configure:4852: checking whether NLS is requested" >&5
|
|---|
| 4852 | # Check whether --enable-nls or --disable-nls was given.
|
|---|
| 4853 | if test "${enable_nls+set}" = set; then
|
|---|
| 4854 | enableval="$enable_nls"
|
|---|
| 4855 | USE_NLS=$enableval
|
|---|
| 4856 | else
|
|---|
| 4857 | USE_NLS=yes
|
|---|
| 4858 | fi
|
|---|
| 4859 |
|
|---|
| 4860 | echo "$ac_t""$USE_NLS" 1>&6
|
|---|
| 4861 |
|
|---|
| 4862 |
|
|---|
| 4863 | USE_INCLUDED_LIBINTL=no
|
|---|
| 4864 |
|
|---|
| 4865 | if test "$USE_NLS" = "yes"; then
|
|---|
| 4866 | cat >> confdefs.h <<\EOF
|
|---|
| 4867 | #define ENABLE_NLS 1
|
|---|
| 4868 | EOF
|
|---|
| 4869 |
|
|---|
| 4870 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
|
|---|
| 4871 | echo "configure:4872: checking whether included gettext is requested" >&5
|
|---|
| 4872 | # Check whether --with-included-gettext or --without-included-gettext was given.
|
|---|
| 4873 | if test "${with_included_gettext+set}" = set; then
|
|---|
| 4874 | withval="$with_included_gettext"
|
|---|
| 4875 | nls_cv_force_use_gnu_gettext=$withval
|
|---|
| 4876 | else
|
|---|
| 4877 | nls_cv_force_use_gnu_gettext=no
|
|---|
| 4878 | fi
|
|---|
| 4879 |
|
|---|
| 4880 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
|
|---|
| 4881 |
|
|---|
| 4882 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
|---|
| 4883 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
|---|
| 4884 | nls_cv_header_intl=
|
|---|
| 4885 | nls_cv_header_libgt=
|
|---|
| 4886 | CATOBJEXT=NONE
|
|---|
| 4887 |
|
|---|
| 4888 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
|
|---|
| 4889 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
|
|---|
| 4890 | echo "configure:4891: checking for libintl.h" >&5
|
|---|
| 4891 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 4892 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4893 | else
|
|---|
| 4894 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4895 | #include <sys/types.h>
|
|---|
| 4896 | #line 4897 "configure"
|
|---|
| 4897 | #include "confdefs.h"
|
|---|
| 4898 | #include <libintl.h>
|
|---|
| 4899 | EOF
|
|---|
| 4900 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 4901 | { (eval echo configure:4902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 4902 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 4903 | if test -z "$ac_err"; then
|
|---|
| 4904 | rm -rf conftest*
|
|---|
| 4905 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 4906 | else
|
|---|
| 4907 | echo "$ac_err" >&5
|
|---|
| 4908 | echo "configure: failed program was:" >&5
|
|---|
| 4909 | cat conftest.$ac_ext >&5
|
|---|
| 4910 | rm -rf conftest*
|
|---|
| 4911 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 4912 | fi
|
|---|
| 4913 | rm -f conftest*
|
|---|
| 4914 | fi
|
|---|
| 4915 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 4916 | echo "$ac_t""yes" 1>&6
|
|---|
| 4917 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
|
|---|
| 4918 | echo "configure:4919: checking for gettext in libc" >&5
|
|---|
| 4919 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
|
|---|
| 4920 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4921 | else
|
|---|
| 4922 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4923 | #line 4924 "configure"
|
|---|
| 4924 | #include "confdefs.h"
|
|---|
| 4925 | #include <libintl.h>
|
|---|
| 4926 | int main() {
|
|---|
| 4927 | return (int) gettext ("")
|
|---|
| 4928 | ; return 0; }
|
|---|
| 4929 | EOF
|
|---|
| 4930 | if { (eval echo configure:4931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4931 | rm -rf conftest*
|
|---|
| 4932 | gt_cv_func_gettext_libc=yes
|
|---|
| 4933 | else
|
|---|
| 4934 | echo "configure: failed program was:" >&5
|
|---|
| 4935 | cat conftest.$ac_ext >&5
|
|---|
| 4936 | rm -rf conftest*
|
|---|
| 4937 | gt_cv_func_gettext_libc=no
|
|---|
| 4938 | fi
|
|---|
| 4939 | rm -f conftest*
|
|---|
| 4940 | fi
|
|---|
| 4941 |
|
|---|
| 4942 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
|
|---|
| 4943 |
|
|---|
| 4944 | if test "$gt_cv_func_gettext_libc" != "yes"; then
|
|---|
| 4945 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
|
|---|
| 4946 | echo "configure:4947: checking for bindtextdomain in -lintl" >&5
|
|---|
| 4947 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
|
|---|
| 4948 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 4949 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4950 | else
|
|---|
| 4951 | ac_save_LIBS="$LIBS"
|
|---|
| 4952 | LIBS="-lintl $LIBS"
|
|---|
| 4953 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4954 | #line 4955 "configure"
|
|---|
| 4955 | #include "confdefs.h"
|
|---|
| 4956 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4957 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4958 | builtin and then its argument prototype would still apply. */
|
|---|
| 4959 | char bindtextdomain();
|
|---|
| 4960 |
|
|---|
| 4961 | int main() {
|
|---|
| 4962 | bindtextdomain()
|
|---|
| 4963 | ; return 0; }
|
|---|
| 4964 | EOF
|
|---|
| 4965 | if { (eval echo configure:4966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4966 | rm -rf conftest*
|
|---|
| 4967 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 4968 | else
|
|---|
| 4969 | echo "configure: failed program was:" >&5
|
|---|
| 4970 | cat conftest.$ac_ext >&5
|
|---|
| 4971 | rm -rf conftest*
|
|---|
| 4972 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 4973 | fi
|
|---|
| 4974 | rm -f conftest*
|
|---|
| 4975 | LIBS="$ac_save_LIBS"
|
|---|
| 4976 |
|
|---|
| 4977 | fi
|
|---|
| 4978 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 4979 | echo "$ac_t""yes" 1>&6
|
|---|
| 4980 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
|
|---|
| 4981 | echo "configure:4982: checking for gettext in libintl" >&5
|
|---|
| 4982 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
|
|---|
| 4983 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4984 | else
|
|---|
| 4985 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4986 | #line 4987 "configure"
|
|---|
| 4987 | #include "confdefs.h"
|
|---|
| 4988 |
|
|---|
| 4989 | int main() {
|
|---|
| 4990 | return (int) gettext ("")
|
|---|
| 4991 | ; return 0; }
|
|---|
| 4992 | EOF
|
|---|
| 4993 | if { (eval echo configure:4994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4994 | rm -rf conftest*
|
|---|
| 4995 | gt_cv_func_gettext_libintl=yes
|
|---|
| 4996 | else
|
|---|
| 4997 | echo "configure: failed program was:" >&5
|
|---|
| 4998 | cat conftest.$ac_ext >&5
|
|---|
| 4999 | rm -rf conftest*
|
|---|
| 5000 | gt_cv_func_gettext_libintl=no
|
|---|
| 5001 | fi
|
|---|
| 5002 | rm -f conftest*
|
|---|
| 5003 | fi
|
|---|
| 5004 |
|
|---|
| 5005 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
|
|---|
| 5006 | else
|
|---|
| 5007 | echo "$ac_t""no" 1>&6
|
|---|
| 5008 | fi
|
|---|
| 5009 |
|
|---|
| 5010 | fi
|
|---|
| 5011 |
|
|---|
| 5012 | if test "$gt_cv_func_gettext_libc" = "yes" \
|
|---|
| 5013 | || test "$gt_cv_func_gettext_libintl" = "yes"; then
|
|---|
| 5014 | cat >> confdefs.h <<\EOF
|
|---|
| 5015 | #define HAVE_GETTEXT 1
|
|---|
| 5016 | EOF
|
|---|
| 5017 |
|
|---|
| 5018 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
|---|
| 5019 | set dummy msgfmt; ac_word=$2
|
|---|
| 5020 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 5021 | echo "configure:5022: checking for $ac_word" >&5
|
|---|
| 5022 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
|---|
| 5023 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5024 | else
|
|---|
| 5025 | case "$MSGFMT" in
|
|---|
| 5026 | /*)
|
|---|
| 5027 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
|---|
| 5028 | ;;
|
|---|
| 5029 | *)
|
|---|
| 5030 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
|---|
| 5031 | for ac_dir in $PATH; do
|
|---|
| 5032 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 5033 | if test -f $ac_dir/$ac_word; then
|
|---|
| 5034 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
|---|
| 5035 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
|---|
| 5036 | break
|
|---|
| 5037 | fi
|
|---|
| 5038 | fi
|
|---|
| 5039 | done
|
|---|
| 5040 | IFS="$ac_save_ifs"
|
|---|
| 5041 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
|
|---|
| 5042 | ;;
|
|---|
| 5043 | esac
|
|---|
| 5044 | fi
|
|---|
| 5045 | MSGFMT="$ac_cv_path_MSGFMT"
|
|---|
| 5046 | if test -n "$MSGFMT"; then
|
|---|
| 5047 | echo "$ac_t""$MSGFMT" 1>&6
|
|---|
| 5048 | else
|
|---|
| 5049 | echo "$ac_t""no" 1>&6
|
|---|
| 5050 | fi
|
|---|
| 5051 | if test "$MSGFMT" != "no"; then
|
|---|
| 5052 | for ac_func in dcgettext
|
|---|
| 5053 | do
|
|---|
| 5054 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 5055 | echo "configure:5056: checking for $ac_func" >&5
|
|---|
| 5056 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 5057 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5058 | else
|
|---|
| 5059 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5060 | #line 5061 "configure"
|
|---|
| 5061 | #include "confdefs.h"
|
|---|
| 5062 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 5063 | which can conflict with char $ac_func(); below. */
|
|---|
| 5064 | #include <assert.h>
|
|---|
| 5065 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 5066 | /* We use char because int might match the return type of a gcc2
|
|---|
| 5067 | builtin and then its argument prototype would still apply. */
|
|---|
| 5068 | char $ac_func();
|
|---|
| 5069 |
|
|---|
| 5070 | int main() {
|
|---|
| 5071 |
|
|---|
| 5072 | /* The GNU C library defines this for functions which it implements
|
|---|
| 5073 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 5074 | something starting with __ and the normal name is an alias. */
|
|---|
| 5075 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 5076 | choke me
|
|---|
| 5077 | #else
|
|---|
| 5078 | $ac_func();
|
|---|
| 5079 | #endif
|
|---|
| 5080 |
|
|---|
| 5081 | ; return 0; }
|
|---|
| 5082 | EOF
|
|---|
| 5083 | if { (eval echo configure:5084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 5084 | rm -rf conftest*
|
|---|
| 5085 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 5086 | else
|
|---|
| 5087 | echo "configure: failed program was:" >&5
|
|---|
| 5088 | cat conftest.$ac_ext >&5
|
|---|
| 5089 | rm -rf conftest*
|
|---|
| 5090 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 5091 | fi
|
|---|
| 5092 | rm -f conftest*
|
|---|
| 5093 | fi
|
|---|
| 5094 |
|
|---|
| 5095 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 5096 | echo "$ac_t""yes" 1>&6
|
|---|
| 5097 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 5098 | cat >> confdefs.h <<EOF
|
|---|
| 5099 | #define $ac_tr_func 1
|
|---|
| 5100 | EOF
|
|---|
| 5101 |
|
|---|
| 5102 | else
|
|---|
| 5103 | echo "$ac_t""no" 1>&6
|
|---|
| 5104 | fi
|
|---|
| 5105 | done
|
|---|
| 5106 |
|
|---|
| 5107 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
|---|
| 5108 | set dummy gmsgfmt; ac_word=$2
|
|---|
| 5109 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 5110 | echo "configure:5111: checking for $ac_word" >&5
|
|---|
| 5111 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
|---|
| 5112 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5113 | else
|
|---|
| 5114 | case "$GMSGFMT" in
|
|---|
| 5115 | /* | [a-zA-Z]:*)
|
|---|
| 5116 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
|---|
| 5117 | ;;
|
|---|
| 5118 | ?:/*)
|
|---|
| 5119 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
|---|
| 5120 | ;;
|
|---|
| 5121 | *)
|
|---|
| 5122 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 5123 | ac_dummy="$PATH"
|
|---|
| 5124 | for ac_dir in $ac_dummy; do
|
|---|
| 5125 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 5126 | if test -f $ac_dir/$ac_word; then
|
|---|
| 5127 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
|---|
| 5128 | break
|
|---|
| 5129 | fi
|
|---|
| 5130 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
|---|
| 5131 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
|---|
| 5132 | break
|
|---|
| 5133 | fi
|
|---|
| 5134 | done
|
|---|
| 5135 | IFS="$ac_save_ifs"
|
|---|
| 5136 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
|---|
| 5137 | ;;
|
|---|
| 5138 | esac
|
|---|
| 5139 | fi
|
|---|
| 5140 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
|---|
| 5141 | if test -n "$GMSGFMT"; then
|
|---|
| 5142 | echo "$ac_t""$GMSGFMT" 1>&6
|
|---|
| 5143 | else
|
|---|
| 5144 | echo "$ac_t""no" 1>&6
|
|---|
| 5145 | fi
|
|---|
| 5146 |
|
|---|
| 5147 | # Extract the first word of "xgettext", so it can be a program name with args.
|
|---|
| 5148 | set dummy xgettext; ac_word=$2
|
|---|
| 5149 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 5150 | echo "configure:5151: checking for $ac_word" >&5
|
|---|
| 5151 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
|---|
| 5152 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5153 | else
|
|---|
| 5154 | case "$XGETTEXT" in
|
|---|
| 5155 | /*)
|
|---|
| 5156 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
|---|
| 5157 | ;;
|
|---|
| 5158 | *)
|
|---|
| 5159 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
|---|
| 5160 | for ac_dir in $PATH; do
|
|---|
| 5161 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 5162 | if test -f $ac_dir/$ac_word; then
|
|---|
| 5163 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
|---|
| 5164 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
|---|
| 5165 | break
|
|---|
| 5166 | fi
|
|---|
| 5167 | fi
|
|---|
| 5168 | done
|
|---|
| 5169 | IFS="$ac_save_ifs"
|
|---|
| 5170 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
|---|
| 5171 | ;;
|
|---|
| 5172 | esac
|
|---|
| 5173 | fi
|
|---|
| 5174 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
|---|
| 5175 | if test -n "$XGETTEXT"; then
|
|---|
| 5176 | echo "$ac_t""$XGETTEXT" 1>&6
|
|---|
| 5177 | else
|
|---|
| 5178 | echo "$ac_t""no" 1>&6
|
|---|
| 5179 | fi
|
|---|
| 5180 |
|
|---|
| 5181 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5182 | #line 5183 "configure"
|
|---|
| 5183 | #include "confdefs.h"
|
|---|
| 5184 |
|
|---|
| 5185 | int main() {
|
|---|
| 5186 | extern int _nl_msg_cat_cntr;
|
|---|
| 5187 | return _nl_msg_cat_cntr
|
|---|
| 5188 | ; return 0; }
|
|---|
| 5189 | EOF
|
|---|
| 5190 | if { (eval echo configure:5191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 5191 | rm -rf conftest*
|
|---|
| 5192 | CATOBJEXT=.gmo
|
|---|
| 5193 | DATADIRNAME=share
|
|---|
| 5194 | else
|
|---|
| 5195 | echo "configure: failed program was:" >&5
|
|---|
| 5196 | cat conftest.$ac_ext >&5
|
|---|
| 5197 | rm -rf conftest*
|
|---|
| 5198 | CATOBJEXT=.mo
|
|---|
| 5199 | DATADIRNAME=lib
|
|---|
| 5200 | fi
|
|---|
| 5201 | rm -f conftest*
|
|---|
| 5202 | INSTOBJEXT=.mo
|
|---|
| 5203 | fi
|
|---|
| 5204 | fi
|
|---|
| 5205 |
|
|---|
| 5206 | else
|
|---|
| 5207 | echo "$ac_t""no" 1>&6
|
|---|
| 5208 | fi
|
|---|
| 5209 |
|
|---|
| 5210 |
|
|---|
| 5211 |
|
|---|
| 5212 | if test "$CATOBJEXT" = "NONE"; then
|
|---|
| 5213 | nls_cv_use_gnu_gettext=yes
|
|---|
| 5214 | fi
|
|---|
| 5215 | fi
|
|---|
| 5216 |
|
|---|
| 5217 | if test "$nls_cv_use_gnu_gettext" = "yes"; then
|
|---|
| 5218 | INTLOBJS="\$(GETTOBJS)"
|
|---|
| 5219 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
|---|
| 5220 | set dummy msgfmt; ac_word=$2
|
|---|
| 5221 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 5222 | echo "configure:5223: checking for $ac_word" >&5
|
|---|
| 5223 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
|---|
| 5224 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5225 | else
|
|---|
| 5226 | case "$MSGFMT" in
|
|---|
| 5227 | /*)
|
|---|
| 5228 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
|---|
| 5229 | ;;
|
|---|
| 5230 | *)
|
|---|
| 5231 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
|---|
| 5232 | for ac_dir in $PATH; do
|
|---|
| 5233 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 5234 | if test -f $ac_dir/$ac_word; then
|
|---|
| 5235 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
|---|
| 5236 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
|---|
| 5237 | break
|
|---|
| 5238 | fi
|
|---|
| 5239 | fi
|
|---|
| 5240 | done
|
|---|
| 5241 | IFS="$ac_save_ifs"
|
|---|
| 5242 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
|
|---|
| 5243 | ;;
|
|---|
| 5244 | esac
|
|---|
| 5245 | fi
|
|---|
| 5246 | MSGFMT="$ac_cv_path_MSGFMT"
|
|---|
| 5247 | if test -n "$MSGFMT"; then
|
|---|
| 5248 | echo "$ac_t""$MSGFMT" 1>&6
|
|---|
| 5249 | else
|
|---|
| 5250 | echo "$ac_t""no" 1>&6
|
|---|
| 5251 | fi
|
|---|
| 5252 |
|
|---|
| 5253 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
|---|
| 5254 | set dummy gmsgfmt; ac_word=$2
|
|---|
| 5255 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 5256 | echo "configure:5257: checking for $ac_word" >&5
|
|---|
| 5257 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
|---|
| 5258 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5259 | else
|
|---|
| 5260 | case "$GMSGFMT" in
|
|---|
| 5261 | /* | [a-zA-Z]:*)
|
|---|
| 5262 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
|---|
| 5263 | ;;
|
|---|
| 5264 | ?:/*)
|
|---|
| 5265 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
|---|
| 5266 | ;;
|
|---|
| 5267 | *)
|
|---|
| 5268 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 5269 | ac_dummy="$PATH"
|
|---|
| 5270 | for ac_dir in $ac_dummy; do
|
|---|
| 5271 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 5272 | if test -f $ac_dir/$ac_word; then
|
|---|
| 5273 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
|---|
| 5274 | break
|
|---|
| 5275 | fi
|
|---|
| 5276 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
|---|
| 5277 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
|---|
| 5278 | break
|
|---|
| 5279 | fi
|
|---|
| 5280 | done
|
|---|
| 5281 | IFS="$ac_save_ifs"
|
|---|
| 5282 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
|---|
| 5283 | ;;
|
|---|
| 5284 | esac
|
|---|
| 5285 | fi
|
|---|
| 5286 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
|---|
| 5287 | if test -n "$GMSGFMT"; then
|
|---|
| 5288 | echo "$ac_t""$GMSGFMT" 1>&6
|
|---|
| 5289 | else
|
|---|
| 5290 | echo "$ac_t""no" 1>&6
|
|---|
| 5291 | fi
|
|---|
| 5292 |
|
|---|
| 5293 | # Extract the first word of "xgettext", so it can be a program name with args.
|
|---|
| 5294 | set dummy xgettext; ac_word=$2
|
|---|
| 5295 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 5296 | echo "configure:5297: checking for $ac_word" >&5
|
|---|
| 5297 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
|---|
| 5298 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5299 | else
|
|---|
| 5300 | case "$XGETTEXT" in
|
|---|
| 5301 | /*)
|
|---|
| 5302 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
|---|
| 5303 | ;;
|
|---|
| 5304 | *)
|
|---|
| 5305 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
|---|
| 5306 | for ac_dir in $PATH; do
|
|---|
| 5307 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 5308 | if test -f $ac_dir/$ac_word; then
|
|---|
| 5309 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
|---|
| 5310 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
|---|
| 5311 | break
|
|---|
| 5312 | fi
|
|---|
| 5313 | fi
|
|---|
| 5314 | done
|
|---|
| 5315 | IFS="$ac_save_ifs"
|
|---|
| 5316 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
|---|
| 5317 | ;;
|
|---|
| 5318 | esac
|
|---|
| 5319 | fi
|
|---|
| 5320 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
|---|
| 5321 | if test -n "$XGETTEXT"; then
|
|---|
| 5322 | echo "$ac_t""$XGETTEXT" 1>&6
|
|---|
| 5323 | else
|
|---|
| 5324 | echo "$ac_t""no" 1>&6
|
|---|
| 5325 | fi
|
|---|
| 5326 |
|
|---|
| 5327 |
|
|---|
| 5328 | USE_INCLUDED_LIBINTL=yes
|
|---|
| 5329 | CATOBJEXT=.gmo
|
|---|
| 5330 | INSTOBJEXT=.mo
|
|---|
| 5331 | DATADIRNAME=share
|
|---|
| 5332 | INTLDEPS='$(top_builddir)/../intl/libintl.a'
|
|---|
| 5333 | INTLLIBS=$INTLDEPS
|
|---|
| 5334 | LIBS=`echo $LIBS | sed -e 's/-lintl//'`
|
|---|
| 5335 | nls_cv_header_intl=libintl.h
|
|---|
| 5336 | nls_cv_header_libgt=libgettext.h
|
|---|
| 5337 | fi
|
|---|
| 5338 |
|
|---|
| 5339 | if test "$XGETTEXT" != ":"; then
|
|---|
| 5340 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
|---|
| 5341 | : ;
|
|---|
| 5342 | else
|
|---|
| 5343 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
|
|---|
| 5344 | XGETTEXT=":"
|
|---|
| 5345 | fi
|
|---|
| 5346 | fi
|
|---|
| 5347 |
|
|---|
| 5348 | # We need to process the po/ directory.
|
|---|
| 5349 | POSUB=po
|
|---|
| 5350 | else
|
|---|
| 5351 | DATADIRNAME=share
|
|---|
| 5352 | nls_cv_header_intl=libintl.h
|
|---|
| 5353 | nls_cv_header_libgt=libgettext.h
|
|---|
| 5354 | fi
|
|---|
| 5355 |
|
|---|
| 5356 | # If this is used in GNU gettext we have to set USE_NLS to `yes'
|
|---|
| 5357 | # because some of the sources are only built for this goal.
|
|---|
| 5358 | if test "$PACKAGE" = gettext; then
|
|---|
| 5359 | USE_NLS=yes
|
|---|
| 5360 | USE_INCLUDED_LIBINTL=yes
|
|---|
| 5361 | fi
|
|---|
| 5362 |
|
|---|
| 5363 | for lang in $ALL_LINGUAS; do
|
|---|
| 5364 | GMOFILES="$GMOFILES $lang.gmo"
|
|---|
| 5365 | POFILES="$POFILES $lang.po"
|
|---|
| 5366 | done
|
|---|
| 5367 |
|
|---|
| 5368 |
|
|---|
| 5369 |
|
|---|
| 5370 |
|
|---|
| 5371 |
|
|---|
| 5372 |
|
|---|
| 5373 |
|
|---|
| 5374 |
|
|---|
| 5375 |
|
|---|
| 5376 |
|
|---|
| 5377 |
|
|---|
| 5378 |
|
|---|
| 5379 |
|
|---|
| 5380 |
|
|---|
| 5381 | if test "x$CATOBJEXT" != "x"; then
|
|---|
| 5382 | if test "x$ALL_LINGUAS" = "x"; then
|
|---|
| 5383 | LINGUAS=
|
|---|
| 5384 | else
|
|---|
| 5385 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
|
|---|
| 5386 | echo "configure:5387: checking for catalogs to be installed" >&5
|
|---|
| 5387 | NEW_LINGUAS=
|
|---|
| 5388 | for lang in ${LINGUAS=$ALL_LINGUAS}; do
|
|---|
| 5389 | case "$ALL_LINGUAS" in
|
|---|
| 5390 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
|
|---|
| 5391 | esac
|
|---|
| 5392 | done
|
|---|
| 5393 | LINGUAS=$NEW_LINGUAS
|
|---|
| 5394 | echo "$ac_t""$LINGUAS" 1>&6
|
|---|
| 5395 | fi
|
|---|
| 5396 |
|
|---|
| 5397 | if test -n "$LINGUAS"; then
|
|---|
| 5398 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
|
|---|
| 5399 | fi
|
|---|
| 5400 | fi
|
|---|
| 5401 |
|
|---|
| 5402 | if test $ac_cv_header_locale_h = yes; then
|
|---|
| 5403 | INCLUDE_LOCALE_H="#include <locale.h>"
|
|---|
| 5404 | else
|
|---|
| 5405 | INCLUDE_LOCALE_H="\
|
|---|
| 5406 | /* The system does not provide the header <locale.h>. Take care yourself. */"
|
|---|
| 5407 | fi
|
|---|
| 5408 |
|
|---|
| 5409 |
|
|---|
| 5410 | if test -f $srcdir/po2tbl.sed.in; then
|
|---|
| 5411 | if test "$CATOBJEXT" = ".cat"; then
|
|---|
| 5412 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
|
|---|
| 5413 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
|
|---|
| 5414 | echo "configure:5415: checking for linux/version.h" >&5
|
|---|
| 5415 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 5416 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5417 | else
|
|---|
| 5418 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5419 | #include <sys/types.h>
|
|---|
| 5420 | #line 5421 "configure"
|
|---|
| 5421 | #include "confdefs.h"
|
|---|
| 5422 | #include <linux/version.h>
|
|---|
| 5423 | EOF
|
|---|
| 5424 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 5425 | { (eval echo configure:5426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 5426 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 5427 | if test -z "$ac_err"; then
|
|---|
| 5428 | rm -rf conftest*
|
|---|
| 5429 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 5430 | else
|
|---|
| 5431 | echo "$ac_err" >&5
|
|---|
| 5432 | echo "configure: failed program was:" >&5
|
|---|
| 5433 | cat conftest.$ac_ext >&5
|
|---|
| 5434 | rm -rf conftest*
|
|---|
| 5435 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 5436 | fi
|
|---|
| 5437 | rm -f conftest*
|
|---|
| 5438 | fi
|
|---|
| 5439 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 5440 | echo "$ac_t""yes" 1>&6
|
|---|
| 5441 | msgformat=linux
|
|---|
| 5442 | else
|
|---|
| 5443 | echo "$ac_t""no" 1>&6
|
|---|
| 5444 | msgformat=xopen
|
|---|
| 5445 | fi
|
|---|
| 5446 |
|
|---|
| 5447 |
|
|---|
| 5448 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
|
|---|
| 5449 | fi
|
|---|
| 5450 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
|
|---|
| 5451 | $srcdir/po2tbl.sed.in > po2tbl.sed
|
|---|
| 5452 | fi
|
|---|
| 5453 |
|
|---|
| 5454 | if test "$PACKAGE" = "gettext"; then
|
|---|
| 5455 | GT_NO="#NO#"
|
|---|
| 5456 | GT_YES=
|
|---|
| 5457 | else
|
|---|
| 5458 | GT_NO=
|
|---|
| 5459 | GT_YES="#YES#"
|
|---|
| 5460 | fi
|
|---|
| 5461 |
|
|---|
| 5462 |
|
|---|
| 5463 |
|
|---|
| 5464 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
|
|---|
| 5465 |
|
|---|
| 5466 |
|
|---|
| 5467 | l=
|
|---|
| 5468 |
|
|---|
| 5469 |
|
|---|
| 5470 | if test -f $srcdir/po/POTFILES.in; then
|
|---|
| 5471 | test -d po || mkdir po
|
|---|
| 5472 | if test "x$srcdir" != "x."; then
|
|---|
| 5473 | if test "x`echo $srcdir | sed -e 's@.\:/.*@@' -e 's@/.*@@' `" = "x"; then
|
|---|
| 5474 | posrcprefix="$srcdir/"
|
|---|
| 5475 | else
|
|---|
| 5476 | posrcprefix="../$srcdir/"
|
|---|
| 5477 | fi
|
|---|
| 5478 | else
|
|---|
| 5479 | posrcprefix="../"
|
|---|
| 5480 | fi
|
|---|
| 5481 | rm -f po/POTFILES
|
|---|
| 5482 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
|
|---|
| 5483 | < $srcdir/po/POTFILES.in > po/POTFILES
|
|---|
| 5484 | fi
|
|---|
| 5485 |
|
|---|
| 5486 |
|
|---|
| 5487 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
|---|
| 5488 | echo "configure:5489: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
|---|
| 5489 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
|---|
| 5490 | if test "${enable_maintainer_mode+set}" = set; then
|
|---|
| 5491 | enableval="$enable_maintainer_mode"
|
|---|
| 5492 | USE_MAINTAINER_MODE=$enableval
|
|---|
| 5493 | else
|
|---|
| 5494 | USE_MAINTAINER_MODE=no
|
|---|
| 5495 | fi
|
|---|
| 5496 |
|
|---|
| 5497 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
|---|
| 5498 |
|
|---|
| 5499 |
|
|---|
| 5500 | if test $USE_MAINTAINER_MODE = yes; then
|
|---|
| 5501 | MAINTAINER_MODE_TRUE=
|
|---|
| 5502 | MAINTAINER_MODE_FALSE='#'
|
|---|
| 5503 | else
|
|---|
| 5504 | MAINTAINER_MODE_TRUE='#'
|
|---|
| 5505 | MAINTAINER_MODE_FALSE=
|
|---|
| 5506 | fi
|
|---|
| 5507 | MAINT=$MAINTAINER_MODE_TRUE
|
|---|
| 5508 |
|
|---|
| 5509 |
|
|---|
| 5510 |
|
|---|
| 5511 |
|
|---|
| 5512 |
|
|---|
| 5513 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 5514 | echo "configure:5515: checking for executable suffix" >&5
|
|---|
| 5515 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 5516 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5517 | else
|
|---|
| 5518 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
|---|
| 5519 | ac_cv_exeext=.exe
|
|---|
| 5520 | else
|
|---|
| 5521 | rm -f conftest*
|
|---|
| 5522 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 5523 | ac_cv_exeext=
|
|---|
| 5524 | if { (eval echo configure:5525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 5525 | for file in conftest.*; do
|
|---|
| 5526 | case $file in
|
|---|
| 5527 | *.c | *.o | *.obj) ;;
|
|---|
| 5528 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 5529 | esac
|
|---|
| 5530 | done
|
|---|
| 5531 | else
|
|---|
| 5532 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 5533 | fi
|
|---|
| 5534 | rm -f conftest*
|
|---|
| 5535 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 5536 | fi
|
|---|
| 5537 | fi
|
|---|
| 5538 |
|
|---|
| 5539 | EXEEXT=""
|
|---|
| 5540 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 5541 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 5542 | ac_exeext=$EXEEXT
|
|---|
| 5543 |
|
|---|
| 5544 |
|
|---|
| 5545 | for ac_hdr in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
|
|---|
| 5546 | do
|
|---|
| 5547 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 5548 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 5549 | echo "configure:5550: checking for $ac_hdr" >&5
|
|---|
| 5550 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 5551 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5552 | else
|
|---|
| 5553 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5554 | #include <sys/types.h>
|
|---|
| 5555 | #line 5556 "configure"
|
|---|
| 5556 | #include "confdefs.h"
|
|---|
| 5557 | #include <$ac_hdr>
|
|---|
| 5558 | EOF
|
|---|
| 5559 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 5560 | { (eval echo configure:5561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 5561 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 5562 | if test -z "$ac_err"; then
|
|---|
| 5563 | rm -rf conftest*
|
|---|
| 5564 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 5565 | else
|
|---|
| 5566 | echo "$ac_err" >&5
|
|---|
| 5567 | echo "configure: failed program was:" >&5
|
|---|
| 5568 | cat conftest.$ac_ext >&5
|
|---|
| 5569 | rm -rf conftest*
|
|---|
| 5570 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 5571 | fi
|
|---|
| 5572 | rm -f conftest*
|
|---|
| 5573 | fi
|
|---|
| 5574 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 5575 | echo "$ac_t""yes" 1>&6
|
|---|
| 5576 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 5577 | cat >> confdefs.h <<EOF
|
|---|
| 5578 | #define $ac_tr_hdr 1
|
|---|
| 5579 | EOF
|
|---|
| 5580 |
|
|---|
| 5581 | else
|
|---|
| 5582 | echo "$ac_t""no" 1>&6
|
|---|
| 5583 | fi
|
|---|
| 5584 | done
|
|---|
| 5585 |
|
|---|
| 5586 |
|
|---|
| 5587 | # Put this here so that autoconf's "cross-compiling" message doesn't confuse
|
|---|
| 5588 | # people who are not cross-compiling but are compiling cross-assemblers.
|
|---|
| 5589 | echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
|
|---|
| 5590 | echo "configure:5591: checking whether compiling a cross-assembler" >&5
|
|---|
| 5591 | if test "${host}" = "${target}"; then
|
|---|
| 5592 | cross_gas=no
|
|---|
| 5593 | else
|
|---|
| 5594 | cross_gas=yes
|
|---|
| 5595 | cat >> confdefs.h <<\EOF
|
|---|
| 5596 | #define CROSS_COMPILE 1
|
|---|
| 5597 | EOF
|
|---|
| 5598 |
|
|---|
| 5599 | fi
|
|---|
| 5600 | echo "$ac_t""$cross_gas" 1>&6
|
|---|
| 5601 |
|
|---|
| 5602 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
|---|
| 5603 | # for constant arguments. Useless!
|
|---|
| 5604 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
|---|
| 5605 | echo "configure:5606: checking for working alloca.h" >&5
|
|---|
| 5606 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
|---|
| 5607 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5608 | else
|
|---|
| 5609 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5610 | #line 5611 "configure"
|
|---|
| 5611 | #include "confdefs.h"
|
|---|
| 5612 | #include <alloca.h>
|
|---|
| 5613 | int main() {
|
|---|
| 5614 | char *p = alloca(2 * sizeof(int));
|
|---|
| 5615 | ; return 0; }
|
|---|
| 5616 | EOF
|
|---|
| 5617 | if { (eval echo configure:5618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 5618 | rm -rf conftest*
|
|---|
| 5619 | ac_cv_header_alloca_h=yes
|
|---|
| 5620 | else
|
|---|
| 5621 | echo "configure: failed program was:" >&5
|
|---|
| 5622 | cat conftest.$ac_ext >&5
|
|---|
| 5623 | rm -rf conftest*
|
|---|
| 5624 | ac_cv_header_alloca_h=no
|
|---|
| 5625 | fi
|
|---|
| 5626 | rm -f conftest*
|
|---|
| 5627 | fi
|
|---|
| 5628 |
|
|---|
| 5629 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|---|
| 5630 | if test $ac_cv_header_alloca_h = yes; then
|
|---|
| 5631 | cat >> confdefs.h <<\EOF
|
|---|
| 5632 | #define HAVE_ALLOCA_H 1
|
|---|
| 5633 | EOF
|
|---|
| 5634 |
|
|---|
| 5635 | fi
|
|---|
| 5636 |
|
|---|
| 5637 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
|---|
| 5638 | echo "configure:5639: checking for alloca" >&5
|
|---|
| 5639 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
|---|
| 5640 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5641 | else
|
|---|
| 5642 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5643 | #line 5644 "configure"
|
|---|
| 5644 | #include "confdefs.h"
|
|---|
| 5645 |
|
|---|
| 5646 | #ifdef __GNUC__
|
|---|
| 5647 | # define alloca __builtin_alloca
|
|---|
| 5648 | #else
|
|---|
| 5649 | # ifdef _MSC_VER
|
|---|
| 5650 | # include <malloc.h>
|
|---|
| 5651 | # define alloca _alloca
|
|---|
| 5652 | # else
|
|---|
| 5653 | # if HAVE_ALLOCA_H
|
|---|
| 5654 | # include <alloca.h>
|
|---|
| 5655 | # else
|
|---|
| 5656 | # ifdef _AIX
|
|---|
| 5657 | #pragma alloca
|
|---|
| 5658 | # else
|
|---|
| 5659 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
|---|
| 5660 | char *alloca ();
|
|---|
| 5661 | # endif
|
|---|
| 5662 | # endif
|
|---|
| 5663 | # endif
|
|---|
| 5664 | # endif
|
|---|
| 5665 | #endif
|
|---|
| 5666 |
|
|---|
| 5667 | int main() {
|
|---|
| 5668 | char *p = (char *) alloca(1);
|
|---|
| 5669 | ; return 0; }
|
|---|
| 5670 | EOF
|
|---|
| 5671 | if { (eval echo configure:5672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 5672 | rm -rf conftest*
|
|---|
| 5673 | ac_cv_func_alloca_works=yes
|
|---|
| 5674 | else
|
|---|
| 5675 | echo "configure: failed program was:" >&5
|
|---|
| 5676 | cat conftest.$ac_ext >&5
|
|---|
| 5677 | rm -rf conftest*
|
|---|
| 5678 | ac_cv_func_alloca_works=no
|
|---|
| 5679 | fi
|
|---|
| 5680 | rm -f conftest*
|
|---|
| 5681 | fi
|
|---|
| 5682 |
|
|---|
| 5683 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
|---|
| 5684 | if test $ac_cv_func_alloca_works = yes; then
|
|---|
| 5685 | cat >> confdefs.h <<\EOF
|
|---|
| 5686 | #define HAVE_ALLOCA 1
|
|---|
| 5687 | EOF
|
|---|
| 5688 |
|
|---|
| 5689 | fi
|
|---|
| 5690 |
|
|---|
| 5691 | if test $ac_cv_func_alloca_works = no; then
|
|---|
| 5692 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|---|
| 5693 | # that cause trouble. Some versions do not even contain alloca or
|
|---|
| 5694 | # contain a buggy version. If you still want to use their alloca,
|
|---|
| 5695 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
|---|
| 5696 | ALLOCA=alloca.${ac_objext}
|
|---|
| 5697 | cat >> confdefs.h <<\EOF
|
|---|
| 5698 | #define C_ALLOCA 1
|
|---|
| 5699 | EOF
|
|---|
| 5700 |
|
|---|
| 5701 |
|
|---|
| 5702 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
|---|
| 5703 | echo "configure:5704: checking whether alloca needs Cray hooks" >&5
|
|---|
| 5704 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
|---|
| 5705 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5706 | else
|
|---|
| 5707 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5708 | #line 5709 "configure"
|
|---|
| 5709 | #include "confdefs.h"
|
|---|
| 5710 | #if defined(CRAY) && ! defined(CRAY2)
|
|---|
| 5711 | webecray
|
|---|
| 5712 | #else
|
|---|
| 5713 | wenotbecray
|
|---|
| 5714 | #endif
|
|---|
| 5715 |
|
|---|
| 5716 | EOF
|
|---|
| 5717 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 5718 | egrep "webecray" >/dev/null 2>&1; then
|
|---|
| 5719 | rm -rf conftest*
|
|---|
| 5720 | ac_cv_os_cray=yes
|
|---|
| 5721 | else
|
|---|
| 5722 | rm -rf conftest*
|
|---|
| 5723 | ac_cv_os_cray=no
|
|---|
| 5724 | fi
|
|---|
| 5725 | rm -f conftest*
|
|---|
| 5726 |
|
|---|
| 5727 | fi
|
|---|
| 5728 |
|
|---|
| 5729 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
|---|
| 5730 | if test $ac_cv_os_cray = yes; then
|
|---|
| 5731 | for ac_func in _getb67 GETB67 getb67; do
|
|---|
| 5732 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 5733 | echo "configure:5734: checking for $ac_func" >&5
|
|---|
| 5734 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 5735 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5736 | else
|
|---|
| 5737 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5738 | #line 5739 "configure"
|
|---|
| 5739 | #include "confdefs.h"
|
|---|
| 5740 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 5741 | which can conflict with char $ac_func(); below. */
|
|---|
| 5742 | #include <assert.h>
|
|---|
| 5743 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 5744 | /* We use char because int might match the return type of a gcc2
|
|---|
| 5745 | builtin and then its argument prototype would still apply. */
|
|---|
| 5746 | char $ac_func();
|
|---|
| 5747 |
|
|---|
| 5748 | int main() {
|
|---|
| 5749 |
|
|---|
| 5750 | /* The GNU C library defines this for functions which it implements
|
|---|
| 5751 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 5752 | something starting with __ and the normal name is an alias. */
|
|---|
| 5753 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 5754 | choke me
|
|---|
| 5755 | #else
|
|---|
| 5756 | $ac_func();
|
|---|
| 5757 | #endif
|
|---|
| 5758 |
|
|---|
| 5759 | ; return 0; }
|
|---|
| 5760 | EOF
|
|---|
| 5761 | if { (eval echo configure:5762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 5762 | rm -rf conftest*
|
|---|
| 5763 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 5764 | else
|
|---|
| 5765 | echo "configure: failed program was:" >&5
|
|---|
| 5766 | cat conftest.$ac_ext >&5
|
|---|
| 5767 | rm -rf conftest*
|
|---|
| 5768 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 5769 | fi
|
|---|
| 5770 | rm -f conftest*
|
|---|
| 5771 | fi
|
|---|
| 5772 |
|
|---|
| 5773 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 5774 | echo "$ac_t""yes" 1>&6
|
|---|
| 5775 | cat >> confdefs.h <<EOF
|
|---|
| 5776 | #define CRAY_STACKSEG_END $ac_func
|
|---|
| 5777 | EOF
|
|---|
| 5778 |
|
|---|
| 5779 | break
|
|---|
| 5780 | else
|
|---|
| 5781 | echo "$ac_t""no" 1>&6
|
|---|
| 5782 | fi
|
|---|
| 5783 |
|
|---|
| 5784 | done
|
|---|
| 5785 | fi
|
|---|
| 5786 |
|
|---|
| 5787 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
|---|
| 5788 | echo "configure:5789: checking stack direction for C alloca" >&5
|
|---|
| 5789 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
|---|
| 5790 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5791 | else
|
|---|
| 5792 | if test "$cross_compiling" = yes; then
|
|---|
| 5793 | ac_cv_c_stack_direction=0
|
|---|
| 5794 | else
|
|---|
| 5795 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5796 | #line 5797 "configure"
|
|---|
| 5797 | #include "confdefs.h"
|
|---|
| 5798 | find_stack_direction ()
|
|---|
| 5799 | {
|
|---|
| 5800 | static char *addr = 0;
|
|---|
| 5801 | auto char dummy;
|
|---|
| 5802 | if (addr == 0)
|
|---|
| 5803 | {
|
|---|
| 5804 | addr = &dummy;
|
|---|
| 5805 | return find_stack_direction ();
|
|---|
| 5806 | }
|
|---|
| 5807 | else
|
|---|
| 5808 | return (&dummy > addr) ? 1 : -1;
|
|---|
| 5809 | }
|
|---|
| 5810 | main ()
|
|---|
| 5811 | {
|
|---|
| 5812 | exit (find_stack_direction() < 0);
|
|---|
| 5813 | }
|
|---|
| 5814 | EOF
|
|---|
| 5815 | if { (eval echo configure:5816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 5816 | then
|
|---|
| 5817 | ac_cv_c_stack_direction=1
|
|---|
| 5818 | else
|
|---|
| 5819 | echo "configure: failed program was:" >&5
|
|---|
| 5820 | cat conftest.$ac_ext >&5
|
|---|
| 5821 | rm -fr conftest*
|
|---|
| 5822 | ac_cv_c_stack_direction=-1
|
|---|
| 5823 | fi
|
|---|
| 5824 | rm -fr conftest*
|
|---|
| 5825 | fi
|
|---|
| 5826 |
|
|---|
| 5827 | fi
|
|---|
| 5828 |
|
|---|
| 5829 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
|---|
| 5830 | cat >> confdefs.h <<EOF
|
|---|
| 5831 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
|---|
| 5832 | EOF
|
|---|
| 5833 |
|
|---|
| 5834 | fi
|
|---|
| 5835 |
|
|---|
| 5836 | echo $ac_n "checking for inline""... $ac_c" 1>&6
|
|---|
| 5837 | echo "configure:5838: checking for inline" >&5
|
|---|
| 5838 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
|---|
| 5839 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5840 | else
|
|---|
| 5841 | ac_cv_c_inline=no
|
|---|
| 5842 | for ac_kw in inline __inline__ __inline; do
|
|---|
| 5843 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5844 | #line 5845 "configure"
|
|---|
| 5845 | #include "confdefs.h"
|
|---|
| 5846 |
|
|---|
| 5847 | int main() {
|
|---|
| 5848 | } $ac_kw foo() {
|
|---|
| 5849 | ; return 0; }
|
|---|
| 5850 | EOF
|
|---|
| 5851 | if { (eval echo configure:5852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5852 | rm -rf conftest*
|
|---|
| 5853 | ac_cv_c_inline=$ac_kw; break
|
|---|
| 5854 | else
|
|---|
| 5855 | echo "configure: failed program was:" >&5
|
|---|
| 5856 | cat conftest.$ac_ext >&5
|
|---|
| 5857 | fi
|
|---|
| 5858 | rm -f conftest*
|
|---|
| 5859 | done
|
|---|
| 5860 |
|
|---|
| 5861 | fi
|
|---|
| 5862 |
|
|---|
| 5863 | echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|---|
| 5864 | case "$ac_cv_c_inline" in
|
|---|
| 5865 | inline | yes) ;;
|
|---|
| 5866 | no) cat >> confdefs.h <<\EOF
|
|---|
| 5867 | #define inline
|
|---|
| 5868 | EOF
|
|---|
| 5869 | ;;
|
|---|
| 5870 | *) cat >> confdefs.h <<EOF
|
|---|
| 5871 | #define inline $ac_cv_c_inline
|
|---|
| 5872 | EOF
|
|---|
| 5873 | ;;
|
|---|
| 5874 | esac
|
|---|
| 5875 |
|
|---|
| 5876 |
|
|---|
| 5877 | # VMS doesn't have unlink.
|
|---|
| 5878 | for ac_func in unlink remove
|
|---|
| 5879 | do
|
|---|
| 5880 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 5881 | echo "configure:5882: checking for $ac_func" >&5
|
|---|
| 5882 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 5883 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5884 | else
|
|---|
| 5885 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5886 | #line 5887 "configure"
|
|---|
| 5887 | #include "confdefs.h"
|
|---|
| 5888 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 5889 | which can conflict with char $ac_func(); below. */
|
|---|
| 5890 | #include <assert.h>
|
|---|
| 5891 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 5892 | /* We use char because int might match the return type of a gcc2
|
|---|
| 5893 | builtin and then its argument prototype would still apply. */
|
|---|
| 5894 | char $ac_func();
|
|---|
| 5895 |
|
|---|
| 5896 | int main() {
|
|---|
| 5897 |
|
|---|
| 5898 | /* The GNU C library defines this for functions which it implements
|
|---|
| 5899 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 5900 | something starting with __ and the normal name is an alias. */
|
|---|
| 5901 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 5902 | choke me
|
|---|
| 5903 | #else
|
|---|
| 5904 | $ac_func();
|
|---|
| 5905 | #endif
|
|---|
| 5906 |
|
|---|
| 5907 | ; return 0; }
|
|---|
| 5908 | EOF
|
|---|
| 5909 | if { (eval echo configure:5910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 5910 | rm -rf conftest*
|
|---|
| 5911 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 5912 | else
|
|---|
| 5913 | echo "configure: failed program was:" >&5
|
|---|
| 5914 | cat conftest.$ac_ext >&5
|
|---|
| 5915 | rm -rf conftest*
|
|---|
| 5916 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 5917 | fi
|
|---|
| 5918 | rm -f conftest*
|
|---|
| 5919 | fi
|
|---|
| 5920 |
|
|---|
| 5921 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 5922 | echo "$ac_t""yes" 1>&6
|
|---|
| 5923 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 5924 | cat >> confdefs.h <<EOF
|
|---|
| 5925 | #define $ac_tr_func 1
|
|---|
| 5926 | EOF
|
|---|
| 5927 | break
|
|---|
| 5928 | else
|
|---|
| 5929 | echo "$ac_t""no" 1>&6
|
|---|
| 5930 | fi
|
|---|
| 5931 | done
|
|---|
| 5932 |
|
|---|
| 5933 |
|
|---|
| 5934 | # Some systems don't have sbrk().
|
|---|
| 5935 | for ac_func in sbrk
|
|---|
| 5936 | do
|
|---|
| 5937 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 5938 | echo "configure:5939: checking for $ac_func" >&5
|
|---|
| 5939 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 5940 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5941 | else
|
|---|
| 5942 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5943 | #line 5944 "configure"
|
|---|
| 5944 | #include "confdefs.h"
|
|---|
| 5945 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 5946 | which can conflict with char $ac_func(); below. */
|
|---|
| 5947 | #include <assert.h>
|
|---|
| 5948 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 5949 | /* We use char because int might match the return type of a gcc2
|
|---|
| 5950 | builtin and then its argument prototype would still apply. */
|
|---|
| 5951 | char $ac_func();
|
|---|
| 5952 |
|
|---|
| 5953 | int main() {
|
|---|
| 5954 |
|
|---|
| 5955 | /* The GNU C library defines this for functions which it implements
|
|---|
| 5956 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 5957 | something starting with __ and the normal name is an alias. */
|
|---|
| 5958 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 5959 | choke me
|
|---|
| 5960 | #else
|
|---|
| 5961 | $ac_func();
|
|---|
| 5962 | #endif
|
|---|
| 5963 |
|
|---|
| 5964 | ; return 0; }
|
|---|
| 5965 | EOF
|
|---|
| 5966 | if { (eval echo configure:5967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 5967 | rm -rf conftest*
|
|---|
| 5968 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 5969 | else
|
|---|
| 5970 | echo "configure: failed program was:" >&5
|
|---|
| 5971 | cat conftest.$ac_ext >&5
|
|---|
| 5972 | rm -rf conftest*
|
|---|
| 5973 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 5974 | fi
|
|---|
| 5975 | rm -f conftest*
|
|---|
| 5976 | fi
|
|---|
| 5977 |
|
|---|
| 5978 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 5979 | echo "$ac_t""yes" 1>&6
|
|---|
| 5980 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 5981 | cat >> confdefs.h <<EOF
|
|---|
| 5982 | #define $ac_tr_func 1
|
|---|
| 5983 | EOF
|
|---|
| 5984 |
|
|---|
| 5985 | else
|
|---|
| 5986 | echo "$ac_t""no" 1>&6
|
|---|
| 5987 | fi
|
|---|
| 5988 | done
|
|---|
| 5989 |
|
|---|
| 5990 |
|
|---|
| 5991 | # do we need the math library?
|
|---|
| 5992 | case "${need_libm}" in
|
|---|
| 5993 | yes)
|
|---|
| 5994 | LIBM=
|
|---|
| 5995 | case $host in
|
|---|
| 5996 | *-*-beos* | *-*-cygwin* | *-*-pw32*)
|
|---|
| 5997 | # These system don't have libm
|
|---|
| 5998 | ;;
|
|---|
| 5999 | *-ncr-sysv4.3*)
|
|---|
| 6000 | echo $ac_n "checking for _mwvalidcheckl in -lmw""... $ac_c" 1>&6
|
|---|
| 6001 | echo "configure:6002: checking for _mwvalidcheckl in -lmw" >&5
|
|---|
| 6002 | ac_lib_var=`echo mw'_'_mwvalidcheckl | sed 'y%./+-%__p_%'`
|
|---|
| 6003 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 6004 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6005 | else
|
|---|
| 6006 | ac_save_LIBS="$LIBS"
|
|---|
| 6007 | LIBS="-lmw $LIBS"
|
|---|
| 6008 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6009 | #line 6010 "configure"
|
|---|
| 6010 | #include "confdefs.h"
|
|---|
| 6011 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 6012 | /* We use char because int might match the return type of a gcc2
|
|---|
| 6013 | builtin and then its argument prototype would still apply. */
|
|---|
| 6014 | char _mwvalidcheckl();
|
|---|
| 6015 |
|
|---|
| 6016 | int main() {
|
|---|
| 6017 | _mwvalidcheckl()
|
|---|
| 6018 | ; return 0; }
|
|---|
| 6019 | EOF
|
|---|
| 6020 | if { (eval echo configure:6021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6021 | rm -rf conftest*
|
|---|
| 6022 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 6023 | else
|
|---|
| 6024 | echo "configure: failed program was:" >&5
|
|---|
| 6025 | cat conftest.$ac_ext >&5
|
|---|
| 6026 | rm -rf conftest*
|
|---|
| 6027 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 6028 | fi
|
|---|
| 6029 | rm -f conftest*
|
|---|
| 6030 | LIBS="$ac_save_LIBS"
|
|---|
| 6031 |
|
|---|
| 6032 | fi
|
|---|
| 6033 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 6034 | echo "$ac_t""yes" 1>&6
|
|---|
| 6035 | LIBM="-lmw"
|
|---|
| 6036 | else
|
|---|
| 6037 | echo "$ac_t""no" 1>&6
|
|---|
| 6038 | fi
|
|---|
| 6039 |
|
|---|
| 6040 | echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
|
|---|
| 6041 | echo "configure:6042: checking for main in -lm" >&5
|
|---|
| 6042 | ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
|
|---|
| 6043 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 6044 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6045 | else
|
|---|
| 6046 | ac_save_LIBS="$LIBS"
|
|---|
| 6047 | LIBS="-lm $LIBS"
|
|---|
| 6048 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6049 | #line 6050 "configure"
|
|---|
| 6050 | #include "confdefs.h"
|
|---|
| 6051 |
|
|---|
| 6052 | int main() {
|
|---|
| 6053 | main()
|
|---|
| 6054 | ; return 0; }
|
|---|
| 6055 | EOF
|
|---|
| 6056 | if { (eval echo configure:6057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6057 | rm -rf conftest*
|
|---|
| 6058 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 6059 | else
|
|---|
| 6060 | echo "configure: failed program was:" >&5
|
|---|
| 6061 | cat conftest.$ac_ext >&5
|
|---|
| 6062 | rm -rf conftest*
|
|---|
| 6063 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 6064 | fi
|
|---|
| 6065 | rm -f conftest*
|
|---|
| 6066 | LIBS="$ac_save_LIBS"
|
|---|
| 6067 |
|
|---|
| 6068 | fi
|
|---|
| 6069 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 6070 | echo "$ac_t""yes" 1>&6
|
|---|
| 6071 | LIBM="$LIBM -lm"
|
|---|
| 6072 | else
|
|---|
| 6073 | echo "$ac_t""no" 1>&6
|
|---|
| 6074 | fi
|
|---|
| 6075 |
|
|---|
| 6076 | ;;
|
|---|
| 6077 | *)
|
|---|
| 6078 | echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
|
|---|
| 6079 | echo "configure:6080: checking for main in -lm" >&5
|
|---|
| 6080 | ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
|
|---|
| 6081 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 6082 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6083 | else
|
|---|
| 6084 | ac_save_LIBS="$LIBS"
|
|---|
| 6085 | LIBS="-lm $LIBS"
|
|---|
| 6086 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6087 | #line 6088 "configure"
|
|---|
| 6088 | #include "confdefs.h"
|
|---|
| 6089 |
|
|---|
| 6090 | int main() {
|
|---|
| 6091 | main()
|
|---|
| 6092 | ; return 0; }
|
|---|
| 6093 | EOF
|
|---|
| 6094 | if { (eval echo configure:6095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6095 | rm -rf conftest*
|
|---|
| 6096 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 6097 | else
|
|---|
| 6098 | echo "configure: failed program was:" >&5
|
|---|
| 6099 | cat conftest.$ac_ext >&5
|
|---|
| 6100 | rm -rf conftest*
|
|---|
| 6101 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 6102 | fi
|
|---|
| 6103 | rm -f conftest*
|
|---|
| 6104 | LIBS="$ac_save_LIBS"
|
|---|
| 6105 |
|
|---|
| 6106 | fi
|
|---|
| 6107 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 6108 | echo "$ac_t""yes" 1>&6
|
|---|
| 6109 | LIBM="-lm"
|
|---|
| 6110 | else
|
|---|
| 6111 | echo "$ac_t""no" 1>&6
|
|---|
| 6112 | fi
|
|---|
| 6113 |
|
|---|
| 6114 | ;;
|
|---|
| 6115 | esac
|
|---|
| 6116 |
|
|---|
| 6117 |
|
|---|
| 6118 | ;;
|
|---|
| 6119 | esac
|
|---|
| 6120 |
|
|---|
| 6121 | # Some non-ANSI preprocessors botch requoting inside strings. That's bad
|
|---|
| 6122 | # enough, but on some of those systems, the assert macro relies on requoting
|
|---|
| 6123 | # working properly!
|
|---|
| 6124 | echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
|
|---|
| 6125 | echo "configure:6126: checking for working assert macro" >&5
|
|---|
| 6126 | if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
|
|---|
| 6127 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6128 | else
|
|---|
| 6129 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6130 | #line 6131 "configure"
|
|---|
| 6131 | #include "confdefs.h"
|
|---|
| 6132 | #include <assert.h>
|
|---|
| 6133 | #include <stdio.h>
|
|---|
| 6134 | int main() {
|
|---|
| 6135 |
|
|---|
| 6136 | /* check for requoting problems */
|
|---|
| 6137 | static int a, b, c, d;
|
|---|
| 6138 | static char *s;
|
|---|
| 6139 | assert (!strcmp(s, "foo bar baz quux"));
|
|---|
| 6140 | /* check for newline handling */
|
|---|
| 6141 | assert (a == b
|
|---|
| 6142 | || c == d);
|
|---|
| 6143 |
|
|---|
| 6144 | ; return 0; }
|
|---|
| 6145 | EOF
|
|---|
| 6146 | if { (eval echo configure:6147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6147 | rm -rf conftest*
|
|---|
| 6148 | gas_cv_assert_ok=yes
|
|---|
| 6149 | else
|
|---|
| 6150 | echo "configure: failed program was:" >&5
|
|---|
| 6151 | cat conftest.$ac_ext >&5
|
|---|
| 6152 | rm -rf conftest*
|
|---|
| 6153 | gas_cv_assert_ok=no
|
|---|
| 6154 | fi
|
|---|
| 6155 | rm -f conftest*
|
|---|
| 6156 | fi
|
|---|
| 6157 | echo "$ac_t""$gas_cv_assert_ok" 1>&6
|
|---|
| 6158 | test $gas_cv_assert_ok = yes || cat >> confdefs.h <<\EOF
|
|---|
| 6159 | #define BROKEN_ASSERT 1
|
|---|
| 6160 | EOF
|
|---|
| 6161 |
|
|---|
| 6162 |
|
|---|
| 6163 |
|
|---|
| 6164 | # On some systems, the system header files may not declare malloc, realloc,
|
|---|
| 6165 | # and free. There are places where gas needs these functions to have been
|
|---|
| 6166 | # declared -- such as when taking their addresses.
|
|---|
| 6167 | gas_test_headers="
|
|---|
| 6168 | #ifdef HAVE_MEMORY_H
|
|---|
| 6169 | #include <memory.h>
|
|---|
| 6170 | #endif
|
|---|
| 6171 | #ifdef HAVE_STRING_H
|
|---|
| 6172 | #include <string.h>
|
|---|
| 6173 | #else
|
|---|
| 6174 | #ifdef HAVE_STRINGS_H
|
|---|
| 6175 | #include <strings.h>
|
|---|
| 6176 | #endif
|
|---|
| 6177 | #endif
|
|---|
| 6178 | #ifdef HAVE_STDLIB_H
|
|---|
| 6179 | #include <stdlib.h>
|
|---|
| 6180 | #endif
|
|---|
| 6181 | #ifdef HAVE_UNISTD_H
|
|---|
| 6182 | #include <unistd.h>
|
|---|
| 6183 | #endif
|
|---|
| 6184 | "
|
|---|
| 6185 |
|
|---|
| 6186 | echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
|
|---|
| 6187 | echo "configure:6188: checking whether declaration is required for strstr" >&5
|
|---|
| 6188 | if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
|
|---|
| 6189 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6190 | else
|
|---|
| 6191 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6192 | #line 6193 "configure"
|
|---|
| 6193 | #include "confdefs.h"
|
|---|
| 6194 | $gas_test_headers
|
|---|
| 6195 | int main() {
|
|---|
| 6196 |
|
|---|
| 6197 | typedef char *(*f)();
|
|---|
| 6198 | f x;
|
|---|
| 6199 | x = (f) strstr;
|
|---|
| 6200 |
|
|---|
| 6201 | ; return 0; }
|
|---|
| 6202 | EOF
|
|---|
| 6203 | if { (eval echo configure:6204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6204 | rm -rf conftest*
|
|---|
| 6205 | gas_cv_decl_needed_strstr=no
|
|---|
| 6206 | else
|
|---|
| 6207 | echo "configure: failed program was:" >&5
|
|---|
| 6208 | cat conftest.$ac_ext >&5
|
|---|
| 6209 | rm -rf conftest*
|
|---|
| 6210 | gas_cv_decl_needed_strstr=yes
|
|---|
| 6211 | fi
|
|---|
| 6212 | rm -f conftest*
|
|---|
| 6213 | fi
|
|---|
| 6214 | echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
|
|---|
| 6215 | if test $gas_cv_decl_needed_strstr = yes; then
|
|---|
| 6216 | cat >> confdefs.h <<\EOF
|
|---|
| 6217 | #define NEED_DECLARATION_STRSTR 1
|
|---|
| 6218 | EOF
|
|---|
| 6219 |
|
|---|
| 6220 | fi
|
|---|
| 6221 |
|
|---|
| 6222 |
|
|---|
| 6223 | echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
|
|---|
| 6224 | echo "configure:6225: checking whether declaration is required for malloc" >&5
|
|---|
| 6225 | if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
|
|---|
| 6226 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6227 | else
|
|---|
| 6228 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6229 | #line 6230 "configure"
|
|---|
| 6230 | #include "confdefs.h"
|
|---|
| 6231 | $gas_test_headers
|
|---|
| 6232 | int main() {
|
|---|
| 6233 |
|
|---|
| 6234 | typedef char *(*f)();
|
|---|
| 6235 | f x;
|
|---|
| 6236 | x = (f) malloc;
|
|---|
| 6237 |
|
|---|
| 6238 | ; return 0; }
|
|---|
| 6239 | EOF
|
|---|
| 6240 | if { (eval echo configure:6241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6241 | rm -rf conftest*
|
|---|
| 6242 | gas_cv_decl_needed_malloc=no
|
|---|
| 6243 | else
|
|---|
| 6244 | echo "configure: failed program was:" >&5
|
|---|
| 6245 | cat conftest.$ac_ext >&5
|
|---|
| 6246 | rm -rf conftest*
|
|---|
| 6247 | gas_cv_decl_needed_malloc=yes
|
|---|
| 6248 | fi
|
|---|
| 6249 | rm -f conftest*
|
|---|
| 6250 | fi
|
|---|
| 6251 | echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
|
|---|
| 6252 | if test $gas_cv_decl_needed_malloc = yes; then
|
|---|
| 6253 | cat >> confdefs.h <<\EOF
|
|---|
| 6254 | #define NEED_DECLARATION_MALLOC 1
|
|---|
| 6255 | EOF
|
|---|
| 6256 |
|
|---|
| 6257 | fi
|
|---|
| 6258 |
|
|---|
| 6259 |
|
|---|
| 6260 | echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
|
|---|
| 6261 | echo "configure:6262: checking whether declaration is required for free" >&5
|
|---|
| 6262 | if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
|
|---|
| 6263 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6264 | else
|
|---|
| 6265 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6266 | #line 6267 "configure"
|
|---|
| 6267 | #include "confdefs.h"
|
|---|
| 6268 | $gas_test_headers
|
|---|
| 6269 | int main() {
|
|---|
| 6270 |
|
|---|
| 6271 | typedef void (*f)();
|
|---|
| 6272 | f x;
|
|---|
| 6273 | x = (f) free;
|
|---|
| 6274 |
|
|---|
| 6275 | ; return 0; }
|
|---|
| 6276 | EOF
|
|---|
| 6277 | if { (eval echo configure:6278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6278 | rm -rf conftest*
|
|---|
| 6279 | gas_cv_decl_needed_free=no
|
|---|
| 6280 | else
|
|---|
| 6281 | echo "configure: failed program was:" >&5
|
|---|
| 6282 | cat conftest.$ac_ext >&5
|
|---|
| 6283 | rm -rf conftest*
|
|---|
| 6284 | gas_cv_decl_needed_free=yes
|
|---|
| 6285 | fi
|
|---|
| 6286 | rm -f conftest*
|
|---|
| 6287 | fi
|
|---|
| 6288 | echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
|
|---|
| 6289 | if test $gas_cv_decl_needed_free = yes; then
|
|---|
| 6290 | cat >> confdefs.h <<\EOF
|
|---|
| 6291 | #define NEED_DECLARATION_FREE 1
|
|---|
| 6292 | EOF
|
|---|
| 6293 |
|
|---|
| 6294 | fi
|
|---|
| 6295 |
|
|---|
| 6296 |
|
|---|
| 6297 | echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
|
|---|
| 6298 | echo "configure:6299: checking whether declaration is required for sbrk" >&5
|
|---|
| 6299 | if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
|
|---|
| 6300 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6301 | else
|
|---|
| 6302 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6303 | #line 6304 "configure"
|
|---|
| 6304 | #include "confdefs.h"
|
|---|
| 6305 | $gas_test_headers
|
|---|
| 6306 | int main() {
|
|---|
| 6307 |
|
|---|
| 6308 | typedef char *(*f)();
|
|---|
| 6309 | f x;
|
|---|
| 6310 | x = (f) sbrk;
|
|---|
| 6311 |
|
|---|
| 6312 | ; return 0; }
|
|---|
| 6313 | EOF
|
|---|
| 6314 | if { (eval echo configure:6315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6315 | rm -rf conftest*
|
|---|
| 6316 | gas_cv_decl_needed_sbrk=no
|
|---|
| 6317 | else
|
|---|
| 6318 | echo "configure: failed program was:" >&5
|
|---|
| 6319 | cat conftest.$ac_ext >&5
|
|---|
| 6320 | rm -rf conftest*
|
|---|
| 6321 | gas_cv_decl_needed_sbrk=yes
|
|---|
| 6322 | fi
|
|---|
| 6323 | rm -f conftest*
|
|---|
| 6324 | fi
|
|---|
| 6325 | echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
|
|---|
| 6326 | if test $gas_cv_decl_needed_sbrk = yes; then
|
|---|
| 6327 | cat >> confdefs.h <<\EOF
|
|---|
| 6328 | #define NEED_DECLARATION_SBRK 1
|
|---|
| 6329 | EOF
|
|---|
| 6330 |
|
|---|
| 6331 | fi
|
|---|
| 6332 |
|
|---|
| 6333 |
|
|---|
| 6334 | echo $ac_n "checking whether declaration is required for environ""... $ac_c" 1>&6
|
|---|
| 6335 | echo "configure:6336: checking whether declaration is required for environ" >&5
|
|---|
| 6336 | if eval "test \"`echo '$''{'gas_cv_decl_needed_environ'+set}'`\" = set"; then
|
|---|
| 6337 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6338 | else
|
|---|
| 6339 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6340 | #line 6341 "configure"
|
|---|
| 6341 | #include "confdefs.h"
|
|---|
| 6342 | $gas_test_headers
|
|---|
| 6343 | int main() {
|
|---|
| 6344 |
|
|---|
| 6345 | typedef char **f;
|
|---|
| 6346 | f x;
|
|---|
| 6347 | x = (f) environ;
|
|---|
| 6348 |
|
|---|
| 6349 | ; return 0; }
|
|---|
| 6350 | EOF
|
|---|
| 6351 | if { (eval echo configure:6352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6352 | rm -rf conftest*
|
|---|
| 6353 | gas_cv_decl_needed_environ=no
|
|---|
| 6354 | else
|
|---|
| 6355 | echo "configure: failed program was:" >&5
|
|---|
| 6356 | cat conftest.$ac_ext >&5
|
|---|
| 6357 | rm -rf conftest*
|
|---|
| 6358 | gas_cv_decl_needed_environ=yes
|
|---|
| 6359 | fi
|
|---|
| 6360 | rm -f conftest*
|
|---|
| 6361 | fi
|
|---|
| 6362 | echo "$ac_t""$gas_cv_decl_needed_environ" 1>&6
|
|---|
| 6363 | if test $gas_cv_decl_needed_environ = yes; then
|
|---|
| 6364 | cat >> confdefs.h <<\EOF
|
|---|
| 6365 | #define NEED_DECLARATION_ENVIRON 1
|
|---|
| 6366 | EOF
|
|---|
| 6367 |
|
|---|
| 6368 | fi
|
|---|
| 6369 |
|
|---|
| 6370 |
|
|---|
| 6371 | # Does errno.h declare errno, or do we have to add a separate declaration
|
|---|
| 6372 | # for it?
|
|---|
| 6373 |
|
|---|
| 6374 | echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
|
|---|
| 6375 | echo "configure:6376: checking whether declaration is required for errno" >&5
|
|---|
| 6376 | if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
|
|---|
| 6377 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6378 | else
|
|---|
| 6379 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6380 | #line 6381 "configure"
|
|---|
| 6381 | #include "confdefs.h"
|
|---|
| 6382 |
|
|---|
| 6383 | #ifdef HAVE_ERRNO_H
|
|---|
| 6384 | #include <errno.h>
|
|---|
| 6385 | #endif
|
|---|
| 6386 |
|
|---|
| 6387 | int main() {
|
|---|
| 6388 |
|
|---|
| 6389 | typedef int f;
|
|---|
| 6390 | f x;
|
|---|
| 6391 | x = (f) errno;
|
|---|
| 6392 |
|
|---|
| 6393 | ; return 0; }
|
|---|
| 6394 | EOF
|
|---|
| 6395 | if { (eval echo configure:6396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6396 | rm -rf conftest*
|
|---|
| 6397 | gas_cv_decl_needed_errno=no
|
|---|
| 6398 | else
|
|---|
| 6399 | echo "configure: failed program was:" >&5
|
|---|
| 6400 | cat conftest.$ac_ext >&5
|
|---|
| 6401 | rm -rf conftest*
|
|---|
| 6402 | gas_cv_decl_needed_errno=yes
|
|---|
| 6403 | fi
|
|---|
| 6404 | rm -f conftest*
|
|---|
| 6405 | fi
|
|---|
| 6406 | echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
|
|---|
| 6407 | if test $gas_cv_decl_needed_errno = yes; then
|
|---|
| 6408 | cat >> confdefs.h <<\EOF
|
|---|
| 6409 | #define NEED_DECLARATION_ERRNO 1
|
|---|
| 6410 | EOF
|
|---|
| 6411 |
|
|---|
| 6412 | fi
|
|---|
| 6413 |
|
|---|
| 6414 |
|
|---|
| 6415 |
|
|---|
| 6416 |
|
|---|
| 6417 | trap '' 1 2 15
|
|---|
| 6418 | cat > confcache <<\EOF
|
|---|
| 6419 | # This file is a shell script that caches the results of configure
|
|---|
| 6420 | # tests run on this system so they can be shared between configure
|
|---|
| 6421 | # scripts and configure runs. It is not useful on other systems.
|
|---|
| 6422 | # If it contains results you don't want to keep, you may remove or edit it.
|
|---|
| 6423 | #
|
|---|
| 6424 | # By default, configure uses ./config.cache as the cache file,
|
|---|
| 6425 | # creating it if it does not exist already. You can give configure
|
|---|
| 6426 | # the --cache-file=FILE option to use a different cache file; that is
|
|---|
| 6427 | # what configure does when it calls configure scripts in
|
|---|
| 6428 | # subdirectories, so they share the cache.
|
|---|
| 6429 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|---|
| 6430 | # config.status only pays attention to the cache file if you give it the
|
|---|
| 6431 | # --recheck option to rerun configure.
|
|---|
| 6432 | #
|
|---|
| 6433 | EOF
|
|---|
| 6434 | # The following way of writing the cache mishandles newlines in values,
|
|---|
| 6435 | # but we know of no workaround that is simple, portable, and efficient.
|
|---|
| 6436 | # So, don't put newlines in cache variables' values.
|
|---|
| 6437 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
|---|
| 6438 | # and sets the high bit in the cache file unless we assign to the vars.
|
|---|
| 6439 | (set) 2>&1 |
|
|---|
| 6440 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|---|
| 6441 | *ac_space=\ *)
|
|---|
| 6442 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
|---|
| 6443 | # turns \\\\ into \\, and sed turns \\ into \).
|
|---|
| 6444 | sed -n \
|
|---|
| 6445 | -e "s/'/'\\\\''/g" \
|
|---|
| 6446 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|---|
| 6447 | ;;
|
|---|
| 6448 | *)
|
|---|
| 6449 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|---|
| 6450 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|---|
| 6451 | ;;
|
|---|
| 6452 | esac >> confcache
|
|---|
| 6453 | if cmp -s $cache_file confcache; then
|
|---|
| 6454 | :
|
|---|
| 6455 | else
|
|---|
| 6456 | if test -w $cache_file; then
|
|---|
| 6457 | echo "updating cache $cache_file"
|
|---|
| 6458 | cat confcache > $cache_file
|
|---|
| 6459 | else
|
|---|
| 6460 | echo "not updating unwritable cache $cache_file"
|
|---|
| 6461 | fi
|
|---|
| 6462 | fi
|
|---|
| 6463 | rm -f confcache
|
|---|
| 6464 |
|
|---|
| 6465 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|---|
| 6466 |
|
|---|
| 6467 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|---|
| 6468 | # Let make expand exec_prefix.
|
|---|
| 6469 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|---|
| 6470 |
|
|---|
| 6471 | # Any assignment to VPATH causes Sun make to only execute
|
|---|
| 6472 | # the first set of double-colon rules, so remove it if not needed.
|
|---|
| 6473 | # If there is a colon in the path, we need to keep it.
|
|---|
| 6474 | if test "x$srcdir" = x.; then
|
|---|
| 6475 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|---|
| 6476 | fi
|
|---|
| 6477 |
|
|---|
| 6478 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|---|
| 6479 |
|
|---|
| 6480 | DEFS=-DHAVE_CONFIG_H
|
|---|
| 6481 |
|
|---|
| 6482 | # Without the "./", some shells look in PATH for config.status.
|
|---|
| 6483 | : ${CONFIG_STATUS=./config.status}
|
|---|
| 6484 |
|
|---|
| 6485 | echo creating $CONFIG_STATUS
|
|---|
| 6486 | rm -f $CONFIG_STATUS
|
|---|
| 6487 | cat > $CONFIG_STATUS <<EOF
|
|---|
| 6488 | #! /bin/sh
|
|---|
| 6489 | # Generated automatically by configure.
|
|---|
| 6490 | # Run this file to recreate the current configuration.
|
|---|
| 6491 | # This directory was configured as follows,
|
|---|
| 6492 | EOF
|
|---|
| 6493 | echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
|
|---|
| 6494 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 6495 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|---|
| 6496 | #
|
|---|
| 6497 | # $0 $ac_configure_args
|
|---|
| 6498 | #
|
|---|
| 6499 | # Compiler output produced by configure, useful for debugging
|
|---|
| 6500 | # configure, is in ./config.log if it exists.
|
|---|
| 6501 |
|
|---|
| 6502 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
|---|
| 6503 | for ac_option
|
|---|
| 6504 | do
|
|---|
| 6505 | case "\$ac_option" in
|
|---|
| 6506 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|---|
| 6507 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|---|
| 6508 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
|---|
| 6509 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
|---|
| 6510 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
|---|
| 6511 | exit 0 ;;
|
|---|
| 6512 | -help | --help | --hel | --he | --h)
|
|---|
| 6513 | echo "\$ac_cs_usage"; exit 0 ;;
|
|---|
| 6514 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
|---|
| 6515 | esac
|
|---|
| 6516 | done
|
|---|
| 6517 |
|
|---|
| 6518 | ac_given_srcdir=$srcdir
|
|---|
| 6519 | ac_given_INSTALL="$INSTALL"
|
|---|
| 6520 | PATHIFS="$PATH_IFS"
|
|---|
| 6521 |
|
|---|
| 6522 | trap 'rm -fr `echo "Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
|---|
| 6523 | EOF
|
|---|
| 6524 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 6525 |
|
|---|
| 6526 | # Protect against being on the right side of a sed subst in config.status.
|
|---|
| 6527 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|---|
| 6528 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
|---|
| 6529 | $ac_vpsub
|
|---|
| 6530 | $extrasub
|
|---|
| 6531 | s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
|
|---|
| 6532 | s%@SHELL@%$SHELL%g
|
|---|
| 6533 | s%@CFLAGS@%$CFLAGS%g
|
|---|
| 6534 | s%@CPPFLAGS@%$CPPFLAGS%g
|
|---|
| 6535 | s%@CXXFLAGS@%$CXXFLAGS%g
|
|---|
| 6536 | s%@FFLAGS@%$FFLAGS%g
|
|---|
| 6537 | s%@DEFS@%$DEFS%g
|
|---|
| 6538 | s%@LDFLAGS@%$LDFLAGS%g
|
|---|
| 6539 | s%@LIBS@%$LIBS%g
|
|---|
| 6540 | s%@exec_prefix@%$exec_prefix%g
|
|---|
| 6541 | s%@prefix@%$prefix%g
|
|---|
| 6542 | s%@program_transform_name@%$program_transform_name%g
|
|---|
| 6543 | s%@bindir@%$bindir%g
|
|---|
| 6544 | s%@sbindir@%$sbindir%g
|
|---|
| 6545 | s%@libexecdir@%$libexecdir%g
|
|---|
| 6546 | s%@datadir@%$datadir%g
|
|---|
| 6547 | s%@sysconfdir@%$sysconfdir%g
|
|---|
| 6548 | s%@sharedstatedir@%$sharedstatedir%g
|
|---|
| 6549 | s%@localstatedir@%$localstatedir%g
|
|---|
| 6550 | s%@libdir@%$libdir%g
|
|---|
| 6551 | s%@includedir@%$includedir%g
|
|---|
| 6552 | s%@oldincludedir@%$oldincludedir%g
|
|---|
| 6553 | s%@infodir@%$infodir%g
|
|---|
| 6554 | s%@mandir@%$mandir%g
|
|---|
| 6555 | s%@PATH_IFS@%$PATH_IFS%g
|
|---|
| 6556 | s%@EXEEXT@%$EXEEXT%g
|
|---|
| 6557 | s%@host@%$host%g
|
|---|
| 6558 | s%@host_alias@%$host_alias%g
|
|---|
| 6559 | s%@host_cpu@%$host_cpu%g
|
|---|
| 6560 | s%@host_vendor@%$host_vendor%g
|
|---|
| 6561 | s%@host_os@%$host_os%g
|
|---|
| 6562 | s%@target@%$target%g
|
|---|
| 6563 | s%@target_alias@%$target_alias%g
|
|---|
| 6564 | s%@target_cpu@%$target_cpu%g
|
|---|
| 6565 | s%@target_vendor@%$target_vendor%g
|
|---|
| 6566 | s%@target_os@%$target_os%g
|
|---|
| 6567 | s%@build@%$build%g
|
|---|
| 6568 | s%@build_alias@%$build_alias%g
|
|---|
| 6569 | s%@build_cpu@%$build_cpu%g
|
|---|
| 6570 | s%@build_vendor@%$build_vendor%g
|
|---|
| 6571 | s%@build_os@%$build_os%g
|
|---|
| 6572 | s%@CC@%$CC%g
|
|---|
| 6573 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
|---|
| 6574 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
|---|
| 6575 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|---|
| 6576 | s%@PACKAGE@%$PACKAGE%g
|
|---|
| 6577 | s%@VERSION@%$VERSION%g
|
|---|
| 6578 | s%@ACLOCAL@%$ACLOCAL%g
|
|---|
| 6579 | s%@AUTOCONF@%$AUTOCONF%g
|
|---|
| 6580 | s%@AUTOMAKE@%$AUTOMAKE%g
|
|---|
| 6581 | s%@AUTOHEADER@%$AUTOHEADER%g
|
|---|
| 6582 | s%@MAKEINFO@%$MAKEINFO%g
|
|---|
| 6583 | s%@SET_MAKE@%$SET_MAKE%g
|
|---|
| 6584 | s%@LN_S@%$LN_S%g
|
|---|
| 6585 | s%@OBJEXT@%$OBJEXT%g
|
|---|
| 6586 | s%@RANLIB@%$RANLIB%g
|
|---|
| 6587 | s%@STRIP@%$STRIP%g
|
|---|
| 6588 | s%@LIBTOOL@%$LIBTOOL%g
|
|---|
| 6589 | s%@WARN_CFLAGS@%$WARN_CFLAGS%g
|
|---|
| 6590 | s%@GDBINIT@%$GDBINIT%g
|
|---|
| 6591 | s%@cgen_cpu_prefix@%$cgen_cpu_prefix%g
|
|---|
| 6592 | s%@extra_objects@%$extra_objects%g
|
|---|
| 6593 | s%@target_cpu_type@%$target_cpu_type%g
|
|---|
| 6594 | s%@obj_format@%$obj_format%g
|
|---|
| 6595 | s%@te_file@%$te_file%g
|
|---|
| 6596 | s%@install_tooldir@%$install_tooldir%g
|
|---|
| 6597 | s%@atof@%$atof%g
|
|---|
| 6598 | s%@BFDLIB@%$BFDLIB%g
|
|---|
| 6599 | s%@OPCODES_LIB@%$OPCODES_LIB%g
|
|---|
| 6600 | s%@BFDVER_H@%$BFDVER_H%g
|
|---|
| 6601 | s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
|
|---|
| 6602 | s%@YACC@%$YACC%g
|
|---|
| 6603 | s%@LEX@%$LEX%g
|
|---|
| 6604 | s%@LEXLIB@%$LEXLIB%g
|
|---|
| 6605 | s%@CPP@%$CPP%g
|
|---|
| 6606 | s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
|
|---|
| 6607 | s%@ALLOCA@%$ALLOCA%g
|
|---|
| 6608 | s%@USE_NLS@%$USE_NLS%g
|
|---|
| 6609 | s%@MSGFMT@%$MSGFMT%g
|
|---|
| 6610 | s%@GMSGFMT@%$GMSGFMT%g
|
|---|
| 6611 | s%@XGETTEXT@%$XGETTEXT%g
|
|---|
| 6612 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
|
|---|
| 6613 | s%@CATALOGS@%$CATALOGS%g
|
|---|
| 6614 | s%@CATOBJEXT@%$CATOBJEXT%g
|
|---|
| 6615 | s%@DATADIRNAME@%$DATADIRNAME%g
|
|---|
| 6616 | s%@GMOFILES@%$GMOFILES%g
|
|---|
| 6617 | s%@INSTOBJEXT@%$INSTOBJEXT%g
|
|---|
| 6618 | s%@INTLDEPS@%$INTLDEPS%g
|
|---|
| 6619 | s%@INTLLIBS@%$INTLLIBS%g
|
|---|
| 6620 | s%@INTLOBJS@%$INTLOBJS%g
|
|---|
| 6621 | s%@POFILES@%$POFILES%g
|
|---|
| 6622 | s%@POSUB@%$POSUB%g
|
|---|
| 6623 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
|
|---|
| 6624 | s%@GT_NO@%$GT_NO%g
|
|---|
| 6625 | s%@GT_YES@%$GT_YES%g
|
|---|
| 6626 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
|
|---|
| 6627 | s%@l@%$l%g
|
|---|
| 6628 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
|
|---|
| 6629 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
|
|---|
| 6630 | s%@MAINT@%$MAINT%g
|
|---|
| 6631 | s%@LIBM@%$LIBM%g
|
|---|
| 6632 |
|
|---|
| 6633 | CEOF
|
|---|
| 6634 | EOF
|
|---|
| 6635 |
|
|---|
| 6636 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 6637 |
|
|---|
| 6638 | # Split the substitutions into bite-sized pieces for seds with
|
|---|
| 6639 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
|---|
| 6640 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|---|
| 6641 | ac_file=1 # Number of current file.
|
|---|
| 6642 | ac_beg=1 # First line for current file.
|
|---|
| 6643 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|---|
| 6644 | ac_more_lines=:
|
|---|
| 6645 | ac_sed_cmds=""
|
|---|
| 6646 | while $ac_more_lines; do
|
|---|
| 6647 | if test $ac_beg -gt 1; then
|
|---|
| 6648 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|---|
| 6649 | else
|
|---|
| 6650 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|---|
| 6651 | fi
|
|---|
| 6652 | if test ! -s conftest.s$ac_file; then
|
|---|
| 6653 | ac_more_lines=false
|
|---|
| 6654 | rm -f conftest.s$ac_file
|
|---|
| 6655 | else
|
|---|
| 6656 | if test -z "$ac_sed_cmds"; then
|
|---|
| 6657 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
|---|
| 6658 | else
|
|---|
| 6659 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|---|
| 6660 | fi
|
|---|
| 6661 | ac_file=`expr $ac_file + 1`
|
|---|
| 6662 | ac_beg=$ac_end
|
|---|
| 6663 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|---|
| 6664 | fi
|
|---|
| 6665 | done
|
|---|
| 6666 | if test -z "$ac_sed_cmds"; then
|
|---|
| 6667 | ac_sed_cmds=cat
|
|---|
| 6668 | fi
|
|---|
| 6669 | EOF
|
|---|
| 6670 |
|
|---|
| 6671 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 6672 |
|
|---|
| 6673 | CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in"}
|
|---|
| 6674 | EOF
|
|---|
| 6675 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 6676 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|---|
| 6677 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|---|
| 6678 | case "$ac_file" in
|
|---|
| 6679 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|---|
| 6680 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|---|
| 6681 | *) ac_file_in="${ac_file}.in" ;;
|
|---|
| 6682 | esac
|
|---|
| 6683 |
|
|---|
| 6684 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|---|
| 6685 |
|
|---|
| 6686 | # Remove last slash and all that follows it. Not all systems have dirname.
|
|---|
| 6687 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|---|
| 6688 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|---|
| 6689 | # The file is in a subdirectory.
|
|---|
| 6690 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|---|
| 6691 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|---|
| 6692 | # A "../" for each directory in $ac_dir_suffix.
|
|---|
| 6693 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|---|
| 6694 | else
|
|---|
| 6695 | ac_dir_suffix= ac_dots=
|
|---|
| 6696 | fi
|
|---|
| 6697 |
|
|---|
| 6698 | case "$ac_given_srcdir" in
|
|---|
| 6699 | .) srcdir=.
|
|---|
| 6700 | if test -z "$ac_dots"; then top_srcdir=.
|
|---|
| 6701 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|---|
| 6702 | /* | [A-Za-z]:*)
|
|---|
| 6703 | srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|---|
| 6704 | *) # Relative path.
|
|---|
| 6705 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|---|
| 6706 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|---|
| 6707 | esac
|
|---|
| 6708 |
|
|---|
| 6709 | case "$ac_given_INSTALL" in
|
|---|
| 6710 | [/$]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
|
|---|
| 6711 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|---|
| 6712 | esac
|
|---|
| 6713 |
|
|---|
| 6714 | echo creating "$ac_file"
|
|---|
| 6715 | rm -f "$ac_file"
|
|---|
| 6716 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|---|
| 6717 | case "$ac_file" in
|
|---|
| 6718 | *Makefile*) ac_comsub="1i\\
|
|---|
| 6719 | # $configure_input" ;;
|
|---|
| 6720 | *) ac_comsub= ;;
|
|---|
| 6721 | esac
|
|---|
| 6722 |
|
|---|
| 6723 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
|
|---|
| 6724 | sed -e "$ac_comsub
|
|---|
| 6725 | s%@configure_input@%$configure_input%g
|
|---|
| 6726 | s%@srcdir@%$srcdir%g
|
|---|
| 6727 | s%@top_srcdir@%$top_srcdir%g
|
|---|
| 6728 | s%@INSTALL@%$INSTALL%g
|
|---|
| 6729 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
|---|
| 6730 | fi; done
|
|---|
| 6731 | rm -f conftest.s*
|
|---|
| 6732 |
|
|---|
| 6733 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|---|
| 6734 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
|---|
| 6735 | #
|
|---|
| 6736 | # ac_d sets the value in "#define NAME VALUE" lines.
|
|---|
| 6737 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|---|
| 6738 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
|---|
| 6739 | ac_dC='\3'
|
|---|
| 6740 | ac_dD='%g'
|
|---|
| 6741 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
|---|
| 6742 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|---|
| 6743 | ac_uB='\([ ]\)%\1#\2define\3'
|
|---|
| 6744 | ac_uC=' '
|
|---|
| 6745 | ac_uD='\4%g'
|
|---|
| 6746 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
|---|
| 6747 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|---|
| 6748 | ac_eB='$%\1#\2define\3'
|
|---|
| 6749 | ac_eC=' '
|
|---|
| 6750 | ac_eD='%g'
|
|---|
| 6751 |
|
|---|
| 6752 | if test "${CONFIG_HEADERS+set}" != set; then
|
|---|
| 6753 | EOF
|
|---|
| 6754 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 6755 | CONFIG_HEADERS="config.h:config.in"
|
|---|
| 6756 | EOF
|
|---|
| 6757 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 6758 | fi
|
|---|
| 6759 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|---|
| 6760 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|---|
| 6761 | case "$ac_file" in
|
|---|
| 6762 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|---|
| 6763 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|---|
| 6764 | *) ac_file_in="${ac_file}.in" ;;
|
|---|
| 6765 | esac
|
|---|
| 6766 |
|
|---|
| 6767 | echo creating $ac_file
|
|---|
| 6768 |
|
|---|
| 6769 | rm -f conftest.frag conftest.in conftest.out
|
|---|
| 6770 | # kso the other way around might work better with drive letters and such.
|
|---|
| 6771 | # ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|---|
| 6772 | ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
|
|---|
| 6773 | cat $ac_file_inputs > conftest.in
|
|---|
| 6774 |
|
|---|
| 6775 | EOF
|
|---|
| 6776 |
|
|---|
| 6777 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
|---|
| 6778 | # the proper values into config.h.in to produce config.h. And first:
|
|---|
| 6779 | # Protect against being on the right side of a sed subst in config.status.
|
|---|
| 6780 | # Protect against being in an unquoted here document in config.status.
|
|---|
| 6781 | rm -f conftest.vals
|
|---|
| 6782 | cat > conftest.hdr <<\EOF
|
|---|
| 6783 | s/[\\&%]/\\&/g
|
|---|
| 6784 | s%[\\$`]%\\&%g
|
|---|
| 6785 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|---|
| 6786 | s%ac_d%ac_u%gp
|
|---|
| 6787 | s%ac_u%ac_e%gp
|
|---|
| 6788 | EOF
|
|---|
| 6789 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|---|
| 6790 | rm -f conftest.hdr
|
|---|
| 6791 |
|
|---|
| 6792 | # This sed command replaces #undef with comments. This is necessary, for
|
|---|
| 6793 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|---|
| 6794 | # on some systems where configure will not decide to define it.
|
|---|
| 6795 | cat >> conftest.vals <<\EOF
|
|---|
| 6796 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|---|
| 6797 | EOF
|
|---|
| 6798 |
|
|---|
| 6799 | # Break up conftest.vals because some shells have a limit on
|
|---|
| 6800 | # the size of here documents, and old seds have small limits too.
|
|---|
| 6801 |
|
|---|
| 6802 | rm -f conftest.tail
|
|---|
| 6803 | while :
|
|---|
| 6804 | do
|
|---|
| 6805 | ac_lines=`grep -c . conftest.vals`
|
|---|
| 6806 | # grep -c gives empty output for an empty file on some AIX systems.
|
|---|
| 6807 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|---|
| 6808 | # Write a limited-size here document to conftest.frag.
|
|---|
| 6809 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|---|
| 6810 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|---|
| 6811 | echo 'CEOF
|
|---|
| 6812 | sed -f conftest.frag conftest.in > conftest.out
|
|---|
| 6813 | rm -f conftest.in
|
|---|
| 6814 | mv conftest.out conftest.in
|
|---|
| 6815 | ' >> $CONFIG_STATUS
|
|---|
| 6816 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|---|
| 6817 | rm -f conftest.vals
|
|---|
| 6818 | mv conftest.tail conftest.vals
|
|---|
| 6819 | done
|
|---|
| 6820 | rm -f conftest.vals
|
|---|
| 6821 |
|
|---|
| 6822 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 6823 | rm -f conftest.frag conftest.h
|
|---|
| 6824 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
|---|
| 6825 | cat conftest.in >> conftest.h
|
|---|
| 6826 | rm -f conftest.in
|
|---|
| 6827 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|---|
| 6828 | echo "$ac_file is unchanged"
|
|---|
| 6829 | rm -f conftest.h
|
|---|
| 6830 | else
|
|---|
| 6831 | # Remove last slash and all that follows it. Not all systems have dirname.
|
|---|
| 6832 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|---|
| 6833 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|---|
| 6834 | # The file is in a subdirectory.
|
|---|
| 6835 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|---|
| 6836 | fi
|
|---|
| 6837 | rm -f $ac_file
|
|---|
| 6838 | mv conftest.h $ac_file
|
|---|
| 6839 | fi
|
|---|
| 6840 | fi; done
|
|---|
| 6841 |
|
|---|
| 6842 | EOF
|
|---|
| 6843 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 6844 |
|
|---|
| 6845 | target_cpu_type=${target_cpu_type}
|
|---|
| 6846 | cgen_cpu_prefix=${cgen_cpu_prefix}
|
|---|
| 6847 | obj_format=${obj_format}
|
|---|
| 6848 | te_file=${te_file}
|
|---|
| 6849 | EOF
|
|---|
| 6850 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 6851 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
|
|---|
| 6852 | rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
|
|---|
| 6853 | echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
|
|---|
| 6854 | echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
|
|---|
| 6855 | echo '#include "te-'"${te_file}"'.h"' > targ-env.h
|
|---|
| 6856 | echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
|
|---|
| 6857 | if test "x$cgen_cpu_prefix" != x ; then
|
|---|
| 6858 | echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
|
|---|
| 6859 | fi
|
|---|
| 6860 |
|
|---|
| 6861 | sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
|
|---|
| 6862 | exit 0
|
|---|
| 6863 | EOF
|
|---|
| 6864 | chmod +x $CONFIG_STATUS
|
|---|
| 6865 | rm -fr confdefs* $ac_clean_files
|
|---|
| 6866 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
|---|
| 6867 |
|
|---|