| 1 | #! /bin/sh
|
|---|
| 2 |
|
|---|
| 3 | # Guess values for system-dependent variables and create Makefiles.
|
|---|
| 4 | # Generated automatically using autoconf version 2.13
|
|---|
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
|---|
| 6 | #
|
|---|
| 7 | # This configure script is free software; the Free Software Foundation
|
|---|
| 8 | # gives unlimited permission to copy, distribute and modify it.
|
|---|
| 9 |
|
|---|
| 10 | # Defaults:
|
|---|
| 11 | ac_help=
|
|---|
| 12 | ac_default_prefix=/usr/local
|
|---|
| 13 | # Any additions from configure.in:
|
|---|
| 14 | ac_help="$ac_help
|
|---|
| 15 | --enable-shared[=PKGS] build shared libraries [default=no]"
|
|---|
| 16 | ac_help="$ac_help
|
|---|
| 17 | --enable-static[=PKGS] build static libraries [default=yes]"
|
|---|
| 18 | ac_help="$ac_help
|
|---|
| 19 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
|
|---|
| 20 | ac_help="$ac_help
|
|---|
| 21 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
|
|---|
| 22 | ac_help="$ac_help
|
|---|
| 23 | --disable-libtool-lock avoid locking (might break parallel builds)"
|
|---|
| 24 | ac_help="$ac_help
|
|---|
| 25 | --with-pic try to use only PIC/non-PIC objects [default=use both]"
|
|---|
| 26 | ac_help="$ac_help
|
|---|
| 27 | --enable-targets alternative target configurations"
|
|---|
| 28 | ac_help="$ac_help
|
|---|
| 29 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
|
|---|
| 30 | ac_help="$ac_help
|
|---|
| 31 | --enable-build-warnings Enable build-time compiler warnings if gcc is used"
|
|---|
| 32 | ac_help="$ac_help
|
|---|
| 33 | --enable-maintainer-mode enable make rules and dependencies not useful
|
|---|
| 34 | (and sometimes confusing) to the casual installer"
|
|---|
| 35 | ac_help="$ac_help
|
|---|
| 36 | --disable-nls do not use Native Language Support"
|
|---|
| 37 | ac_help="$ac_help
|
|---|
| 38 | --with-included-gettext use the GNU gettext library included here"
|
|---|
| 39 | ac_help="$ac_help
|
|---|
| 40 | --enable-cgen-maint[=dir] build cgen generated files"
|
|---|
| 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=z8k-dis.c
|
|---|
| 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 [email protected].
|
|---|
| 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 | # We currently only use the version number for the name of any shared
|
|---|
| 1060 | # library. For user convenience, we always use the same version
|
|---|
| 1061 | # number that BFD is using.
|
|---|
| 1062 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
|
|---|
| 1063 |
|
|---|
| 1064 | # Find a good install program. We prefer a C program (faster),
|
|---|
| 1065 | # so one script is as good as another. But avoid the broken or
|
|---|
| 1066 | # incompatible versions:
|
|---|
| 1067 | # SysV /etc/install, /usr/sbin/install
|
|---|
| 1068 | # SunOS /usr/etc/install
|
|---|
| 1069 | # IRIX /sbin/install
|
|---|
| 1070 | # AIX /bin/install
|
|---|
| 1071 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|---|
| 1072 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|---|
| 1073 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|---|
| 1074 | # ./install, which can be erroneously created by make from ./install.sh.
|
|---|
| 1075 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|---|
| 1076 | echo "configure:1077: checking for a BSD compatible install" >&5
|
|---|
| 1077 | if test -z "$INSTALL"; then
|
|---|
| 1078 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|---|
| 1079 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1080 | else
|
|---|
| 1081 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1082 | for ac_dir in $PATH; do
|
|---|
| 1083 | # Account for people who put trailing slashes in PATH elements.
|
|---|
| 1084 | case "$ac_dir/" in
|
|---|
| 1085 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|---|
| 1086 | # We reject the install program from OS/2 or W3.1
|
|---|
| 1087 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
|---|
| 1088 | *)
|
|---|
| 1089 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
|---|
| 1090 | # Don't use installbsd from OSF since it installs stuff as root
|
|---|
| 1091 | # by default.
|
|---|
| 1092 | for ac_prog in ginstall scoinst install; do
|
|---|
| 1093 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
|---|
| 1094 | if test $ac_prog = install &&
|
|---|
| 1095 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|---|
| 1096 | # AIX install. It has an incompatible calling convention.
|
|---|
| 1097 | :
|
|---|
| 1098 | else
|
|---|
| 1099 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
|---|
| 1100 | break 2
|
|---|
| 1101 | fi
|
|---|
| 1102 | fi
|
|---|
| 1103 | done
|
|---|
| 1104 | ;;
|
|---|
| 1105 | esac
|
|---|
| 1106 | done
|
|---|
| 1107 | IFS="$ac_save_IFS"
|
|---|
| 1108 |
|
|---|
| 1109 | fi
|
|---|
| 1110 | if test "${ac_cv_path_install+set}" = set; then
|
|---|
| 1111 | INSTALL="$ac_cv_path_install"
|
|---|
| 1112 | else
|
|---|
| 1113 | # As a last resort, use the slow shell script. We don't cache a
|
|---|
| 1114 | # path for INSTALL within a source directory, because that will
|
|---|
| 1115 | # break other packages using the cache if that directory is
|
|---|
| 1116 | # removed, or if the path is relative.
|
|---|
| 1117 | INSTALL="$ac_install_sh"
|
|---|
| 1118 | fi
|
|---|
| 1119 | fi
|
|---|
| 1120 | echo "$ac_t""$INSTALL" 1>&6
|
|---|
| 1121 |
|
|---|
| 1122 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|---|
| 1123 | # It thinks the first close brace ends the variable substitution.
|
|---|
| 1124 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|---|
| 1125 |
|
|---|
| 1126 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|---|
| 1127 |
|
|---|
| 1128 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|---|
| 1129 |
|
|---|
| 1130 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
|---|
| 1131 | echo "configure:1132: checking whether build environment is sane" >&5
|
|---|
| 1132 | # Just in case
|
|---|
| 1133 | sleep 1
|
|---|
| 1134 | echo timestamp > conftestfile
|
|---|
| 1135 | # Do `set' in a subshell so we don't clobber the current shell's
|
|---|
| 1136 | # arguments. Must try -L first in case configure is actually a
|
|---|
| 1137 | # symlink; some systems play weird games with the mod time of symlinks
|
|---|
| 1138 | # (eg FreeBSD returns the mod time of the symlink's containing
|
|---|
| 1139 | # directory).
|
|---|
| 1140 | if (
|
|---|
| 1141 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
|---|
| 1142 | if test "$*" = "X"; then
|
|---|
| 1143 | # -L didn't work.
|
|---|
| 1144 | set X `ls -t $srcdir/configure conftestfile`
|
|---|
| 1145 | fi
|
|---|
| 1146 | if test "$*" != "X $srcdir/configure conftestfile" \
|
|---|
| 1147 | && test "$*" != "X conftestfile $srcdir/configure"; then
|
|---|
| 1148 |
|
|---|
| 1149 | # If neither matched, then we have a broken ls. This can happen
|
|---|
| 1150 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
|---|
| 1151 | # broken ls alias from the environment. This has actually
|
|---|
| 1152 | # happened. Such a system could not be considered "sane".
|
|---|
| 1153 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
|---|
| 1154 | alias in your environment" 1>&2; exit 1; }
|
|---|
| 1155 | fi
|
|---|
| 1156 |
|
|---|
| 1157 | test "$2" = conftestfile
|
|---|
| 1158 | )
|
|---|
| 1159 | then
|
|---|
| 1160 | # Ok.
|
|---|
| 1161 | :
|
|---|
| 1162 | else
|
|---|
| 1163 | { echo "configure: error: newly created file is older than distributed files!
|
|---|
| 1164 | Check your system clock" 1>&2; exit 1; }
|
|---|
| 1165 | fi
|
|---|
| 1166 | rm -f conftest*
|
|---|
| 1167 | echo "$ac_t""yes" 1>&6
|
|---|
| 1168 | if test "$program_transform_name" = s,x,x,; then
|
|---|
| 1169 | program_transform_name=
|
|---|
| 1170 | else
|
|---|
| 1171 | # Double any \ or $. echo might interpret backslashes.
|
|---|
| 1172 | cat <<\EOF_SED > conftestsed
|
|---|
| 1173 | s,\\,\\\\,g; s,\$,$$,g
|
|---|
| 1174 | EOF_SED
|
|---|
| 1175 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
|---|
| 1176 | rm -f conftestsed
|
|---|
| 1177 | fi
|
|---|
| 1178 | test "$program_prefix" != NONE &&
|
|---|
| 1179 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
|---|
| 1180 | # Use a double $ so make ignores it.
|
|---|
| 1181 | test "$program_suffix" != NONE &&
|
|---|
| 1182 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
|---|
| 1183 |
|
|---|
| 1184 | # sed with no file args requires a program.
|
|---|
| 1185 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
|---|
| 1186 |
|
|---|
| 1187 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
|---|
| 1188 | echo "configure:1189: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
|---|
| 1189 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|---|
| 1190 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
|---|
| 1191 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1192 | else
|
|---|
| 1193 | cat > conftestmake <<\EOF
|
|---|
| 1194 | all:
|
|---|
| 1195 | @echo 'ac_maketemp="${MAKE}"'
|
|---|
| 1196 | EOF
|
|---|
| 1197 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|---|
| 1198 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
|---|
| 1199 | if test -n "$ac_maketemp"; then
|
|---|
| 1200 | eval ac_cv_prog_make_${ac_make}_set=yes
|
|---|
| 1201 | else
|
|---|
| 1202 | eval ac_cv_prog_make_${ac_make}_set=no
|
|---|
| 1203 | fi
|
|---|
| 1204 | rm -f conftestmake
|
|---|
| 1205 | fi
|
|---|
| 1206 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|---|
| 1207 | echo "$ac_t""yes" 1>&6
|
|---|
| 1208 | SET_MAKE=
|
|---|
| 1209 | else
|
|---|
| 1210 | echo "$ac_t""no" 1>&6
|
|---|
| 1211 | SET_MAKE="MAKE=${MAKE-make}"
|
|---|
| 1212 | fi
|
|---|
| 1213 |
|
|---|
| 1214 |
|
|---|
| 1215 | PACKAGE=opcodes
|
|---|
| 1216 |
|
|---|
| 1217 | VERSION=${BFD_VERSION}
|
|---|
| 1218 |
|
|---|
| 1219 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
|---|
| 1220 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
|---|
| 1221 | fi
|
|---|
| 1222 | cat >> confdefs.h <<EOF
|
|---|
| 1223 | #define PACKAGE "$PACKAGE"
|
|---|
| 1224 | EOF
|
|---|
| 1225 |
|
|---|
| 1226 | cat >> confdefs.h <<EOF
|
|---|
| 1227 | #define VERSION "$VERSION"
|
|---|
| 1228 | EOF
|
|---|
| 1229 |
|
|---|
| 1230 |
|
|---|
| 1231 |
|
|---|
| 1232 | missing_dir=`cd $ac_aux_dir && pwd`
|
|---|
| 1233 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
|---|
| 1234 | echo "configure:1235: checking for working aclocal" >&5
|
|---|
| 1235 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1236 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1237 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1238 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1239 | ACLOCAL=aclocal
|
|---|
| 1240 | echo "$ac_t""found" 1>&6
|
|---|
| 1241 | else
|
|---|
| 1242 | ACLOCAL="$missing_dir/missing aclocal"
|
|---|
| 1243 | echo "$ac_t""missing" 1>&6
|
|---|
| 1244 | fi
|
|---|
| 1245 |
|
|---|
| 1246 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
|---|
| 1247 | echo "configure:1248: checking for working autoconf" >&5
|
|---|
| 1248 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1249 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1250 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1251 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1252 | AUTOCONF=autoconf
|
|---|
| 1253 | echo "$ac_t""found" 1>&6
|
|---|
| 1254 | else
|
|---|
| 1255 | AUTOCONF="$missing_dir/missing autoconf"
|
|---|
| 1256 | echo "$ac_t""missing" 1>&6
|
|---|
| 1257 | fi
|
|---|
| 1258 |
|
|---|
| 1259 | echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
|---|
| 1260 | echo "configure:1261: checking for working automake" >&5
|
|---|
| 1261 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1262 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1263 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1264 | if (automake --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1265 | AUTOMAKE=automake
|
|---|
| 1266 | echo "$ac_t""found" 1>&6
|
|---|
| 1267 | else
|
|---|
| 1268 | AUTOMAKE="$missing_dir/missing automake"
|
|---|
| 1269 | echo "$ac_t""missing" 1>&6
|
|---|
| 1270 | fi
|
|---|
| 1271 |
|
|---|
| 1272 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
|---|
| 1273 | echo "configure:1274: checking for working autoheader" >&5
|
|---|
| 1274 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1275 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1276 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1277 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1278 | AUTOHEADER=autoheader
|
|---|
| 1279 | echo "$ac_t""found" 1>&6
|
|---|
| 1280 | else
|
|---|
| 1281 | AUTOHEADER="$missing_dir/missing autoheader"
|
|---|
| 1282 | echo "$ac_t""missing" 1>&6
|
|---|
| 1283 | fi
|
|---|
| 1284 |
|
|---|
| 1285 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
|---|
| 1286 | echo "configure:1287: checking for working makeinfo" >&5
|
|---|
| 1287 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1288 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1289 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1290 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1291 | MAKEINFO=makeinfo
|
|---|
| 1292 | echo "$ac_t""found" 1>&6
|
|---|
| 1293 | else
|
|---|
| 1294 | MAKEINFO="$missing_dir/missing makeinfo"
|
|---|
| 1295 | echo "$ac_t""missing" 1>&6
|
|---|
| 1296 | fi
|
|---|
| 1297 |
|
|---|
| 1298 |
|
|---|
| 1299 |
|
|---|
| 1300 | if test $host != $build; then
|
|---|
| 1301 | ac_tool_prefix=${host_alias}-
|
|---|
| 1302 | else
|
|---|
| 1303 | ac_tool_prefix=
|
|---|
| 1304 | fi
|
|---|
| 1305 |
|
|---|
| 1306 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
|---|
| 1307 | set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|---|
| 1308 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1309 | echo "configure:1310: checking for $ac_word" >&5
|
|---|
| 1310 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
|---|
| 1311 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1312 | else
|
|---|
| 1313 | if test -n "$AR"; then
|
|---|
| 1314 | ac_cv_prog_AR="$AR" # Let the user override the test.
|
|---|
| 1315 | else
|
|---|
| 1316 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1317 | ac_dummy="$PATH"
|
|---|
| 1318 | for ac_dir in $ac_dummy; do
|
|---|
| 1319 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1320 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1321 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1322 | ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|---|
| 1323 | break
|
|---|
| 1324 | fi
|
|---|
| 1325 | done
|
|---|
| 1326 | IFS="$ac_save_ifs"
|
|---|
| 1327 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
|
|---|
| 1328 | fi
|
|---|
| 1329 | fi
|
|---|
| 1330 | AR="$ac_cv_prog_AR"
|
|---|
| 1331 | if test -n "$AR"; then
|
|---|
| 1332 | echo "$ac_t""$AR" 1>&6
|
|---|
| 1333 | else
|
|---|
| 1334 | echo "$ac_t""no" 1>&6
|
|---|
| 1335 | fi
|
|---|
| 1336 |
|
|---|
| 1337 |
|
|---|
| 1338 |
|
|---|
| 1339 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|---|
| 1340 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|---|
| 1341 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1342 | echo "configure:1343: checking for $ac_word" >&5
|
|---|
| 1343 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1344 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1345 | else
|
|---|
| 1346 | if test -n "$RANLIB"; then
|
|---|
| 1347 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1348 | else
|
|---|
| 1349 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1350 | ac_dummy="$PATH"
|
|---|
| 1351 | for ac_dir in $ac_dummy; do
|
|---|
| 1352 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1353 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1354 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1355 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|---|
| 1356 | break
|
|---|
| 1357 | fi
|
|---|
| 1358 | done
|
|---|
| 1359 | IFS="$ac_save_ifs"
|
|---|
| 1360 | fi
|
|---|
| 1361 | fi
|
|---|
| 1362 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1363 | if test -n "$RANLIB"; then
|
|---|
| 1364 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1365 | else
|
|---|
| 1366 | echo "$ac_t""no" 1>&6
|
|---|
| 1367 | fi
|
|---|
| 1368 |
|
|---|
| 1369 |
|
|---|
| 1370 | if test -z "$ac_cv_prog_RANLIB"; then
|
|---|
| 1371 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1372 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 1373 | set dummy ranlib; ac_word=$2
|
|---|
| 1374 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1375 | echo "configure:1376: checking for $ac_word" >&5
|
|---|
| 1376 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1377 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1378 | else
|
|---|
| 1379 | if test -n "$RANLIB"; then
|
|---|
| 1380 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1381 | else
|
|---|
| 1382 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1383 | ac_dummy="$PATH"
|
|---|
| 1384 | for ac_dir in $ac_dummy; do
|
|---|
| 1385 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1386 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1387 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1388 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 1389 | break
|
|---|
| 1390 | fi
|
|---|
| 1391 | done
|
|---|
| 1392 | IFS="$ac_save_ifs"
|
|---|
| 1393 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 1394 | fi
|
|---|
| 1395 | fi
|
|---|
| 1396 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1397 | if test -n "$RANLIB"; then
|
|---|
| 1398 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1399 | else
|
|---|
| 1400 | echo "$ac_t""no" 1>&6
|
|---|
| 1401 | fi
|
|---|
| 1402 |
|
|---|
| 1403 | else
|
|---|
| 1404 | RANLIB=":"
|
|---|
| 1405 | fi
|
|---|
| 1406 | fi
|
|---|
| 1407 |
|
|---|
| 1408 |
|
|---|
| 1409 | # Check whether --enable-shared or --disable-shared was given.
|
|---|
| 1410 | if test "${enable_shared+set}" = set; then
|
|---|
| 1411 | enableval="$enable_shared"
|
|---|
| 1412 | p=${PACKAGE-default}
|
|---|
| 1413 | case "$enableval" in
|
|---|
| 1414 | yes) enable_shared=yes ;;
|
|---|
| 1415 | no) enable_shared=no ;;
|
|---|
| 1416 | *)
|
|---|
| 1417 | enable_shared=no
|
|---|
| 1418 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1419 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1420 | for pkg in $enableval; do
|
|---|
| 1421 | if test "X$pkg" = "X$p"; then
|
|---|
| 1422 | enable_shared=yes
|
|---|
| 1423 | fi
|
|---|
| 1424 | done
|
|---|
| 1425 | IFS="$ac_save_ifs"
|
|---|
| 1426 | ;;
|
|---|
| 1427 | esac
|
|---|
| 1428 | else
|
|---|
| 1429 | enable_shared=no
|
|---|
| 1430 | fi
|
|---|
| 1431 |
|
|---|
| 1432 |
|
|---|
| 1433 | # Check whether --enable-static or --disable-static was given.
|
|---|
| 1434 | if test "${enable_static+set}" = set; then
|
|---|
| 1435 | enableval="$enable_static"
|
|---|
| 1436 | p=${PACKAGE-default}
|
|---|
| 1437 | case "$enableval" in
|
|---|
| 1438 | yes) enable_static=yes ;;
|
|---|
| 1439 | no) enable_static=no ;;
|
|---|
| 1440 | *)
|
|---|
| 1441 | enable_static=no
|
|---|
| 1442 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1443 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1444 | for pkg in $enableval; do
|
|---|
| 1445 | if test "X$pkg" = "X$p"; then
|
|---|
| 1446 | enable_static=yes
|
|---|
| 1447 | fi
|
|---|
| 1448 | done
|
|---|
| 1449 | IFS="$ac_save_ifs"
|
|---|
| 1450 | ;;
|
|---|
| 1451 | esac
|
|---|
| 1452 | else
|
|---|
| 1453 | enable_static=yes
|
|---|
| 1454 | fi
|
|---|
| 1455 |
|
|---|
| 1456 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
|---|
| 1457 | if test "${enable_fast_install+set}" = set; then
|
|---|
| 1458 | enableval="$enable_fast_install"
|
|---|
| 1459 | p=${PACKAGE-default}
|
|---|
| 1460 | case "$enableval" in
|
|---|
| 1461 | yes) enable_fast_install=yes ;;
|
|---|
| 1462 | no) enable_fast_install=no ;;
|
|---|
| 1463 | *)
|
|---|
| 1464 | enable_fast_install=no
|
|---|
| 1465 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1466 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1467 | for pkg in $enableval; do
|
|---|
| 1468 | if test "X$pkg" = "X$p"; then
|
|---|
| 1469 | enable_fast_install=yes
|
|---|
| 1470 | fi
|
|---|
| 1471 | done
|
|---|
| 1472 | IFS="$ac_save_ifs"
|
|---|
| 1473 | ;;
|
|---|
| 1474 | esac
|
|---|
| 1475 | else
|
|---|
| 1476 | enable_fast_install=yes
|
|---|
| 1477 | fi
|
|---|
| 1478 |
|
|---|
| 1479 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
|---|
| 1480 | if test "${with_gnu_ld+set}" = set; then
|
|---|
| 1481 | withval="$with_gnu_ld"
|
|---|
| 1482 | test "$withval" = no || with_gnu_ld=yes
|
|---|
| 1483 | else
|
|---|
| 1484 | with_gnu_ld=no
|
|---|
| 1485 | fi
|
|---|
| 1486 |
|
|---|
| 1487 | ac_prog=ld
|
|---|
| 1488 | if test "$ac_cv_prog_gcc" = yes; then
|
|---|
| 1489 | # Check if gcc -print-prog-name=ld gives a path.
|
|---|
| 1490 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
|---|
| 1491 | echo "configure:1492: checking for ld used by GCC" >&5
|
|---|
| 1492 | case $host in
|
|---|
| 1493 | *-*-mingw*)
|
|---|
| 1494 | # gcc leaves a trailing carriage return which upsets mingw
|
|---|
| 1495 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
|---|
| 1496 | *)
|
|---|
| 1497 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
|---|
| 1498 | esac
|
|---|
| 1499 | case "$ac_prog" in
|
|---|
| 1500 | # Accept absolute paths.
|
|---|
| 1501 | [\\/]* | [A-Za-z]:[\\/]*)
|
|---|
| 1502 | re_direlt='/[^/][^/]*/\.\./'
|
|---|
| 1503 | # Canonicalize the path of ld
|
|---|
| 1504 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
|---|
| 1505 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
|---|
| 1506 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
|---|
| 1507 | done
|
|---|
| 1508 | test -z "$LD" && LD="$ac_prog"
|
|---|
| 1509 | ;;
|
|---|
| 1510 | "")
|
|---|
| 1511 | # If it fails, then pretend we aren't using GCC.
|
|---|
| 1512 | ac_prog=ld
|
|---|
| 1513 | ;;
|
|---|
| 1514 | *)
|
|---|
| 1515 | # If it is relative, then search for the first ld in PATH.
|
|---|
| 1516 | with_gnu_ld=unknown
|
|---|
| 1517 | ;;
|
|---|
| 1518 | esac
|
|---|
| 1519 | elif test "$with_gnu_ld" = yes; then
|
|---|
| 1520 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
|---|
| 1521 | echo "configure:1522: checking for GNU ld" >&5
|
|---|
| 1522 | else
|
|---|
| 1523 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
|---|
| 1524 | echo "configure:1525: checking for non-GNU ld" >&5
|
|---|
| 1525 | fi
|
|---|
| 1526 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
|
|---|
| 1527 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1528 | else
|
|---|
| 1529 | if test -z "$LD"; then
|
|---|
| 1530 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1531 | for ac_dir in $PATH; do
|
|---|
| 1532 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1533 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|---|
| 1534 | ac_cv_path_LD="$ac_dir/$ac_prog"
|
|---|
| 1535 | # Check to see if the program is GNU ld. I'd rather use --version,
|
|---|
| 1536 | # but apparently some GNU ld's only accept -v.
|
|---|
| 1537 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
|---|
| 1538 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
|---|
| 1539 | test "$with_gnu_ld" != no && break
|
|---|
| 1540 | else
|
|---|
| 1541 | test "$with_gnu_ld" != yes && break
|
|---|
| 1542 | fi
|
|---|
| 1543 | fi
|
|---|
| 1544 | done
|
|---|
| 1545 | IFS="$ac_save_ifs"
|
|---|
| 1546 | else
|
|---|
| 1547 | ac_cv_path_LD="$LD" # Let the user override the test with a path.
|
|---|
| 1548 | fi
|
|---|
| 1549 | fi
|
|---|
| 1550 |
|
|---|
| 1551 | LD="$ac_cv_path_LD"
|
|---|
| 1552 | if test -n "$LD"; then
|
|---|
| 1553 | echo "$ac_t""$LD" 1>&6
|
|---|
| 1554 | else
|
|---|
| 1555 | echo "$ac_t""no" 1>&6
|
|---|
| 1556 | fi
|
|---|
| 1557 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
|---|
| 1558 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
|---|
| 1559 | echo "configure:1560: checking if the linker ($LD) is GNU ld" >&5
|
|---|
| 1560 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
|
|---|
| 1561 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1562 | else
|
|---|
| 1563 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
|---|
| 1564 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
|---|
| 1565 | ac_cv_prog_gnu_ld=yes
|
|---|
| 1566 | else
|
|---|
| 1567 | ac_cv_prog_gnu_ld=no
|
|---|
| 1568 | fi
|
|---|
| 1569 | fi
|
|---|
| 1570 |
|
|---|
| 1571 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
|
|---|
| 1572 | with_gnu_ld=$ac_cv_prog_gnu_ld
|
|---|
| 1573 |
|
|---|
| 1574 |
|
|---|
| 1575 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
|
|---|
| 1576 | echo "configure:1577: checking for $LD option to reload object files" >&5
|
|---|
| 1577 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
|
|---|
| 1578 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1579 | else
|
|---|
| 1580 | lt_cv_ld_reload_flag='-r'
|
|---|
| 1581 | fi
|
|---|
| 1582 |
|
|---|
| 1583 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
|
|---|
| 1584 | reload_flag=$lt_cv_ld_reload_flag
|
|---|
| 1585 | test -n "$reload_flag" && reload_flag=" $reload_flag"
|
|---|
| 1586 |
|
|---|
| 1587 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
|---|
| 1588 | echo "configure:1589: checking for BSD-compatible nm" >&5
|
|---|
| 1589 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
|
|---|
| 1590 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1591 | else
|
|---|
| 1592 | if test -n "$NM"; then
|
|---|
| 1593 | # Let the user override the test.
|
|---|
| 1594 | ac_cv_path_NM="$NM"
|
|---|
| 1595 | else
|
|---|
| 1596 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1597 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
|---|
| 1598 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1599 | tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
|---|
| 1600 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
|---|
| 1601 | # Check to see if the nm accepts a BSD-compat flag.
|
|---|
| 1602 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
|---|
| 1603 | # nm: unknown option "B" ignored
|
|---|
| 1604 | # Tru64's nm complains that /dev/null is an invalid object file
|
|---|
| 1605 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
|---|
| 1606 | ac_cv_path_NM="$tmp_nm -B"
|
|---|
| 1607 | break
|
|---|
| 1608 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
|---|
| 1609 | ac_cv_path_NM="$tmp_nm -p"
|
|---|
| 1610 | break
|
|---|
| 1611 | else
|
|---|
| 1612 | ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
|
|---|
| 1613 | continue # so that we can try to find one that supports BSD flags
|
|---|
| 1614 | fi
|
|---|
| 1615 | fi
|
|---|
| 1616 | done
|
|---|
| 1617 | IFS="$ac_save_ifs"
|
|---|
| 1618 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
|
|---|
| 1619 | fi
|
|---|
| 1620 | fi
|
|---|
| 1621 |
|
|---|
| 1622 | NM="$ac_cv_path_NM"
|
|---|
| 1623 | echo "$ac_t""$NM" 1>&6
|
|---|
| 1624 |
|
|---|
| 1625 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
|---|
| 1626 | echo "configure:1627: checking whether ln -s works" >&5
|
|---|
| 1627 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
|---|
| 1628 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
|
|---|