| 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 | --enable-install-libbfd controls installation of libbfd and related headers"
|
|---|
| 37 | ac_help="$ac_help
|
|---|
| 38 | --disable-nls do not use Native Language Support"
|
|---|
| 39 | ac_help="$ac_help
|
|---|
| 40 | --with-included-gettext use the GNU gettext library included here"
|
|---|
| 41 | ac_help="$ac_help
|
|---|
| 42 | --enable-cgen-maint[=dir] build cgen generated files"
|
|---|
| 43 |
|
|---|
| 44 | # Initialize some variables set by options.
|
|---|
| 45 | # The variables have the same names as the options, with
|
|---|
| 46 | # dashes changed to underlines.
|
|---|
| 47 | build=NONE
|
|---|
| 48 | cache_file=./config.cache
|
|---|
| 49 | exec_prefix=NONE
|
|---|
| 50 | host=NONE
|
|---|
| 51 | no_create=
|
|---|
| 52 | nonopt=NONE
|
|---|
| 53 | no_recursion=
|
|---|
| 54 | prefix=NONE
|
|---|
| 55 | program_prefix=NONE
|
|---|
| 56 | program_suffix=NONE
|
|---|
| 57 | program_transform_name=s,x,x,
|
|---|
| 58 | silent=
|
|---|
| 59 | site=
|
|---|
| 60 | srcdir=
|
|---|
| 61 | target=NONE
|
|---|
| 62 | verbose=
|
|---|
| 63 | x_includes=NONE
|
|---|
| 64 | x_libraries=NONE
|
|---|
| 65 | bindir='${exec_prefix}/bin'
|
|---|
| 66 | sbindir='${exec_prefix}/sbin'
|
|---|
| 67 | libexecdir='${exec_prefix}/libexec'
|
|---|
| 68 | datadir='${prefix}/share'
|
|---|
| 69 | sysconfdir='${prefix}/etc'
|
|---|
| 70 | sharedstatedir='${prefix}/com'
|
|---|
| 71 | localstatedir='${prefix}/var'
|
|---|
| 72 | libdir='${exec_prefix}/lib'
|
|---|
| 73 | includedir='${prefix}/include'
|
|---|
| 74 | oldincludedir='/usr/include'
|
|---|
| 75 | infodir='${prefix}/info'
|
|---|
| 76 | mandir='${prefix}/man'
|
|---|
| 77 |
|
|---|
| 78 | # Initialize some other variables.
|
|---|
| 79 | subdirs=
|
|---|
| 80 | MFLAGS= MAKEFLAGS=
|
|---|
| 81 | SHELL=${CONFIG_SHELL-/bin/sh}
|
|---|
| 82 | # Maximum number of lines to put in a shell here document.
|
|---|
| 83 | ac_max_here_lines=12
|
|---|
| 84 |
|
|---|
| 85 | ac_prev=
|
|---|
| 86 | for ac_option
|
|---|
| 87 | do
|
|---|
| 88 |
|
|---|
| 89 | # If the previous option needs an argument, assign it.
|
|---|
| 90 | if test -n "$ac_prev"; then
|
|---|
| 91 | eval "$ac_prev=\$ac_option"
|
|---|
| 92 | ac_prev=
|
|---|
| 93 | continue
|
|---|
| 94 | fi
|
|---|
| 95 |
|
|---|
| 96 | case "$ac_option" in
|
|---|
| 97 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|---|
| 98 | *) ac_optarg= ;;
|
|---|
| 99 | esac
|
|---|
| 100 |
|
|---|
| 101 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
|---|
| 102 |
|
|---|
| 103 | case "$ac_option" in
|
|---|
| 104 |
|
|---|
| 105 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|---|
| 106 | ac_prev=bindir ;;
|
|---|
| 107 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
|---|
| 108 | bindir="$ac_optarg" ;;
|
|---|
| 109 |
|
|---|
| 110 | -build | --build | --buil | --bui | --bu)
|
|---|
| 111 | ac_prev=build ;;
|
|---|
| 112 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
|---|
| 113 | build="$ac_optarg" ;;
|
|---|
| 114 |
|
|---|
| 115 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
|---|
| 116 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|---|
| 117 | ac_prev=cache_file ;;
|
|---|
| 118 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|---|
| 119 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|---|
| 120 | cache_file="$ac_optarg" ;;
|
|---|
| 121 |
|
|---|
| 122 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
|---|
| 123 | ac_prev=datadir ;;
|
|---|
| 124 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
|---|
| 125 | | --da=*)
|
|---|
| 126 | datadir="$ac_optarg" ;;
|
|---|
| 127 |
|
|---|
| 128 | -disable-* | --disable-*)
|
|---|
| 129 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
|---|
| 130 | # Reject names that are not valid shell variable names.
|
|---|
| 131 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 132 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 133 | fi
|
|---|
| 134 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 135 | eval "enable_${ac_feature}=no" ;;
|
|---|
| 136 |
|
|---|
| 137 | -enable-* | --enable-*)
|
|---|
| 138 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
|---|
| 139 | # Reject names that are not valid shell variable names.
|
|---|
| 140 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 141 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 142 | fi
|
|---|
| 143 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 144 | case "$ac_option" in
|
|---|
| 145 | *=*) ;;
|
|---|
| 146 | *) ac_optarg=yes ;;
|
|---|
| 147 | esac
|
|---|
| 148 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
|---|
| 149 |
|
|---|
| 150 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
|---|
| 151 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
|---|
| 152 | | --exec | --exe | --ex)
|
|---|
| 153 | ac_prev=exec_prefix ;;
|
|---|
| 154 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
|---|
| 155 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
|---|
| 156 | | --exec=* | --exe=* | --ex=*)
|
|---|
| 157 | exec_prefix="$ac_optarg" ;;
|
|---|
| 158 |
|
|---|
| 159 | -gas | --gas | --ga | --g)
|
|---|
| 160 | # Obsolete; use --with-gas.
|
|---|
| 161 | with_gas=yes ;;
|
|---|
| 162 |
|
|---|
| 163 | -help | --help | --hel | --he)
|
|---|
| 164 | # Omit some internal or obsolete options to make the list less imposing.
|
|---|
| 165 | # This message is too long to be a string in the A/UX 3.1 sh.
|
|---|
| 166 | cat << EOF
|
|---|
| 167 | Usage: configure [options] [host]
|
|---|
| 168 | Options: [defaults in brackets after descriptions]
|
|---|
| 169 | Configuration:
|
|---|
| 170 | --cache-file=FILE cache test results in FILE
|
|---|
| 171 | --help print this message
|
|---|
| 172 | --no-create do not create output files
|
|---|
| 173 | --quiet, --silent do not print \`checking...' messages
|
|---|
| 174 | --version print the version of autoconf that created configure
|
|---|
| 175 | Directory and file names:
|
|---|
| 176 | --prefix=PREFIX install architecture-independent files in PREFIX
|
|---|
| 177 | [$ac_default_prefix]
|
|---|
| 178 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
|---|
| 179 | [same as prefix]
|
|---|
| 180 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
|---|
| 181 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
|---|
| 182 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
|---|
| 183 | --datadir=DIR read-only architecture-independent data in DIR
|
|---|
| 184 | [PREFIX/share]
|
|---|
| 185 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
|---|
| 186 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
|---|
| 187 | [PREFIX/com]
|
|---|
| 188 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
|---|
| 189 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
|---|
| 190 | --includedir=DIR C header files in DIR [PREFIX/include]
|
|---|
| 191 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
|---|
| 192 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
|---|
| 193 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
|---|
| 194 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
|---|
| 195 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
|---|
| 196 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
|---|
| 197 | --program-transform-name=PROGRAM
|
|---|
| 198 | run sed PROGRAM on installed program names
|
|---|
| 199 | EOF
|
|---|
| 200 | cat << EOF
|
|---|
| 201 | Host type:
|
|---|
| 202 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
|---|
| 203 | --host=HOST configure for HOST [guessed]
|
|---|
| 204 | --target=TARGET configure for TARGET [TARGET=HOST]
|
|---|
| 205 | Features and packages:
|
|---|
| 206 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|---|
| 207 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|---|
| 208 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
|---|
| 209 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
|---|
| 210 | --x-includes=DIR X include files are in DIR
|
|---|
| 211 | --x-libraries=DIR X library files are in DIR
|
|---|
| 212 | EOF
|
|---|
| 213 | if test -n "$ac_help"; then
|
|---|
| 214 | echo "--enable and --with options recognized:$ac_help"
|
|---|
| 215 | fi
|
|---|
| 216 | exit 0 ;;
|
|---|
| 217 |
|
|---|
| 218 | -host | --host | --hos | --ho)
|
|---|
| 219 | ac_prev=host ;;
|
|---|
| 220 | -host=* | --host=* | --hos=* | --ho=*)
|
|---|
| 221 | host="$ac_optarg" ;;
|
|---|
| 222 |
|
|---|
| 223 | -includedir | --includedir | --includedi | --included | --include \
|
|---|
| 224 | | --includ | --inclu | --incl | --inc)
|
|---|
| 225 | ac_prev=includedir ;;
|
|---|
| 226 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|---|
| 227 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
|---|
| 228 | includedir="$ac_optarg" ;;
|
|---|
| 229 |
|
|---|
| 230 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
|---|
| 231 | ac_prev=infodir ;;
|
|---|
| 232 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
|---|
| 233 | infodir="$ac_optarg" ;;
|
|---|
| 234 |
|
|---|
| 235 | -libdir | --libdir | --libdi | --libd)
|
|---|
| 236 | ac_prev=libdir ;;
|
|---|
| 237 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
|---|
| 238 | libdir="$ac_optarg" ;;
|
|---|
| 239 |
|
|---|
| 240 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|---|
| 241 | | --libexe | --libex | --libe)
|
|---|
| 242 | ac_prev=libexecdir ;;
|
|---|
| 243 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|---|
| 244 | | --libexe=* | --libex=* | --libe=*)
|
|---|
| 245 | libexecdir="$ac_optarg" ;;
|
|---|
| 246 |
|
|---|
| 247 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
|---|
| 248 | | --localstate | --localstat | --localsta | --localst \
|
|---|
| 249 | | --locals | --local | --loca | --loc | --lo)
|
|---|
| 250 | ac_prev=localstatedir ;;
|
|---|
| 251 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
|---|
| 252 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
|---|
| 253 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
|---|
| 254 | localstatedir="$ac_optarg" ;;
|
|---|
| 255 |
|
|---|
| 256 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|---|
| 257 | ac_prev=mandir ;;
|
|---|
| 258 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
|---|
| 259 | mandir="$ac_optarg" ;;
|
|---|
| 260 |
|
|---|
| 261 | -nfp | --nfp | --nf)
|
|---|
| 262 | # Obsolete; use --without-fp.
|
|---|
| 263 | with_fp=no ;;
|
|---|
| 264 |
|
|---|
| 265 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 266 | | --no-cr | --no-c)
|
|---|
| 267 | no_create=yes ;;
|
|---|
| 268 |
|
|---|
| 269 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 270 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
|---|
| 271 | no_recursion=yes ;;
|
|---|
| 272 |
|
|---|
| 273 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
|---|
| 274 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
|---|
| 275 | | --oldin | --oldi | --old | --ol | --o)
|
|---|
| 276 | ac_prev=oldincludedir ;;
|
|---|
| 277 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
|---|
| 278 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
|---|
| 279 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
|---|
| 280 | oldincludedir="$ac_optarg" ;;
|
|---|
| 281 |
|
|---|
| 282 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|---|
| 283 | ac_prev=prefix ;;
|
|---|
| 284 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
|---|
| 285 | prefix="$ac_optarg" ;;
|
|---|
| 286 |
|
|---|
| 287 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
|---|
| 288 | | --program-pre | --program-pr | --program-p)
|
|---|
| 289 | ac_prev=program_prefix ;;
|
|---|
| 290 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
|---|
| 291 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
|---|
| 292 | program_prefix="$ac_optarg" ;;
|
|---|
| 293 |
|
|---|
| 294 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
|---|
| 295 | | --program-suf | --program-su | --program-s)
|
|---|
| 296 | ac_prev=program_suffix ;;
|
|---|
| 297 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
|---|
| 298 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
|---|
| 299 | program_suffix="$ac_optarg" ;;
|
|---|
| 300 |
|
|---|
| 301 | -program-transform-name | --program-transform-name \
|
|---|
| 302 | | --program-transform-nam | --program-transform-na \
|
|---|
| 303 | | --program-transform-n | --program-transform- \
|
|---|
| 304 | | --program-transform | --program-transfor \
|
|---|
| 305 | | --program-transfo | --program-transf \
|
|---|
| 306 | | --program-trans | --program-tran \
|
|---|
| 307 | | --progr-tra | --program-tr | --program-t)
|
|---|
| 308 | ac_prev=program_transform_name ;;
|
|---|
| 309 | -program-transform-name=* | --program-transform-name=* \
|
|---|
| 310 | | --program-transform-nam=* | --program-transform-na=* \
|
|---|
| 311 | | --program-transform-n=* | --program-transform-=* \
|
|---|
| 312 | | --program-transform=* | --program-transfor=* \
|
|---|
| 313 | | --program-transfo=* | --program-transf=* \
|
|---|
| 314 | | --program-trans=* | --program-tran=* \
|
|---|
| 315 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
|---|
| 316 | program_transform_name="$ac_optarg" ;;
|
|---|
| 317 |
|
|---|
| 318 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|---|
| 319 | | -silent | --silent | --silen | --sile | --sil)
|
|---|
| 320 | silent=yes ;;
|
|---|
| 321 |
|
|---|
| 322 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
|---|
| 323 | ac_prev=sbindir ;;
|
|---|
| 324 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
|---|
| 325 | | --sbi=* | --sb=*)
|
|---|
| 326 | sbindir="$ac_optarg" ;;
|
|---|
| 327 |
|
|---|
| 328 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
|---|
| 329 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
|---|
| 330 | | --sharedst | --shareds | --shared | --share | --shar \
|
|---|
| 331 | | --sha | --sh)
|
|---|
| 332 | ac_prev=sharedstatedir ;;
|
|---|
| 333 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
|---|
| 334 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
|---|
| 335 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
|---|
| 336 | | --sha=* | --sh=*)
|
|---|
| 337 | sharedstatedir="$ac_optarg" ;;
|
|---|
| 338 |
|
|---|
| 339 | -site | --site | --sit)
|
|---|
| 340 | ac_prev=site ;;
|
|---|
| 341 | -site=* | --site=* | --sit=*)
|
|---|
| 342 | site="$ac_optarg" ;;
|
|---|
| 343 |
|
|---|
| 344 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|---|
| 345 | ac_prev=srcdir ;;
|
|---|
| 346 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|---|
| 347 | srcdir="$ac_optarg" ;;
|
|---|
| 348 |
|
|---|
| 349 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|---|
| 350 | | --syscon | --sysco | --sysc | --sys | --sy)
|
|---|
| 351 | ac_prev=sysconfdir ;;
|
|---|
| 352 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|---|
| 353 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
|---|
| 354 | sysconfdir="$ac_optarg" ;;
|
|---|
| 355 |
|
|---|
| 356 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
|---|
| 357 | ac_prev=target ;;
|
|---|
| 358 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
|---|
| 359 | target="$ac_optarg" ;;
|
|---|
| 360 |
|
|---|
| 361 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|---|
| 362 | verbose=yes ;;
|
|---|
| 363 |
|
|---|
| 364 | -version | --version | --versio | --versi | --vers)
|
|---|
| 365 | echo "configure generated by autoconf version 2.13"
|
|---|
| 366 | exit 0 ;;
|
|---|
| 367 |
|
|---|
| 368 | -with-* | --with-*)
|
|---|
| 369 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
|---|
| 370 | # Reject names that are not valid shell variable names.
|
|---|
| 371 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 372 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 373 | fi
|
|---|
| 374 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 375 | case "$ac_option" in
|
|---|
| 376 | *=*) ;;
|
|---|
| 377 | *) ac_optarg=yes ;;
|
|---|
| 378 | esac
|
|---|
| 379 | eval "with_${ac_package}='$ac_optarg'" ;;
|
|---|
| 380 |
|
|---|
| 381 | -without-* | --without-*)
|
|---|
| 382 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
|---|
| 383 | # Reject names that are not valid shell variable names.
|
|---|
| 384 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 385 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 386 | fi
|
|---|
| 387 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 388 | eval "with_${ac_package}=no" ;;
|
|---|
| 389 |
|
|---|
| 390 | --x)
|
|---|
| 391 | # Obsolete; use --with-x.
|
|---|
| 392 | with_x=yes ;;
|
|---|
| 393 |
|
|---|
| 394 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
|---|
| 395 | | --x-incl | --x-inc | --x-in | --x-i)
|
|---|
| 396 | ac_prev=x_includes ;;
|
|---|
| 397 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
|---|
| 398 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
|---|
| 399 | x_includes="$ac_optarg" ;;
|
|---|
| 400 |
|
|---|
| 401 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
|---|
| 402 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
|---|
| 403 | ac_prev=x_libraries ;;
|
|---|
| 404 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
|---|
| 405 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
|---|
| 406 | x_libraries="$ac_optarg" ;;
|
|---|
| 407 |
|
|---|
| 408 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
|---|
| 409 | ;;
|
|---|
| 410 |
|
|---|
| 411 | *)
|
|---|
| 412 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
|---|
| 413 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
|---|
| 414 | fi
|
|---|
| 415 | if test "x$nonopt" != xNONE; then
|
|---|
| 416 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
|---|
| 417 | fi
|
|---|
| 418 | nonopt="$ac_option"
|
|---|
| 419 | ;;
|
|---|
| 420 |
|
|---|
| 421 | esac
|
|---|
| 422 | done
|
|---|
| 423 |
|
|---|
| 424 | if test -n "$ac_prev"; then
|
|---|
| 425 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
|---|
| 426 | fi
|
|---|
| 427 |
|
|---|
| 428 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|---|
| 429 |
|
|---|
| 430 | # File descriptor usage:
|
|---|
| 431 | # 0 standard input
|
|---|
| 432 | # 1 file creation
|
|---|
| 433 | # 2 errors and warnings
|
|---|
| 434 | # 3 some systems may open it to /dev/tty
|
|---|
| 435 | # 4 used on the Kubota Titan
|
|---|
| 436 | # 6 checking for... messages and results
|
|---|
| 437 | # 5 compiler messages saved in config.log
|
|---|
| 438 | if test "$silent" = yes; then
|
|---|
| 439 | exec 6>/dev/null
|
|---|
| 440 | else
|
|---|
| 441 | exec 6>&1
|
|---|
| 442 | fi
|
|---|
| 443 | exec 5>./config.log
|
|---|
| 444 |
|
|---|
| 445 | echo "\
|
|---|
| 446 | This file contains any messages produced by compilers while
|
|---|
| 447 | running configure, to aid debugging if configure makes a mistake.
|
|---|
| 448 | " 1>&5
|
|---|
| 449 |
|
|---|
| 450 | # Strip out --no-create and --no-recursion so they do not pile up.
|
|---|
| 451 | # Also quote any args containing shell metacharacters.
|
|---|
| 452 | ac_configure_args=
|
|---|
| 453 | for ac_arg
|
|---|
| 454 | do
|
|---|
| 455 | case "$ac_arg" in
|
|---|
| 456 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 457 | | --no-cr | --no-c) ;;
|
|---|
| 458 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 459 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|---|
| 460 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|---|
| 461 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|---|
| 462 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|---|
| 463 | esac
|
|---|
| 464 | done
|
|---|
| 465 |
|
|---|
| 466 | # NLS nuisances.
|
|---|
| 467 | # Only set these to C if already set. These must not be set unconditionally
|
|---|
| 468 | # because not all systems understand e.g. LANG=C (notably SCO).
|
|---|
| 469 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|---|
| 470 | # Non-C LC_CTYPE values break the ctype check.
|
|---|
| 471 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|---|
| 472 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|---|
| 473 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|---|
| 474 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|---|
| 475 |
|
|---|
| 476 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|---|
| 477 | rm -rf conftest* confdefs.h
|
|---|
| 478 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|---|
| 479 | echo > confdefs.h
|
|---|
| 480 |
|
|---|
| 481 | # A filename unique to this package, relative to the directory that
|
|---|
| 482 | # configure is in, which we can look for to find out if srcdir is correct.
|
|---|
| 483 | ac_unique_file=z8k-dis.c
|
|---|
| 484 |
|
|---|
| 485 | # Find the source files, if location was not specified.
|
|---|
| 486 | if test -z "$srcdir"; then
|
|---|
| 487 | ac_srcdir_defaulted=yes
|
|---|
| 488 | # Try the directory containing this script, then its parent.
|
|---|
| 489 | ac_prog=$0
|
|---|
| 490 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|---|
| 491 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|---|
| 492 | srcdir=$ac_confdir
|
|---|
| 493 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 494 | srcdir=..
|
|---|
| 495 | fi
|
|---|
| 496 | else
|
|---|
| 497 | ac_srcdir_defaulted=no
|
|---|
| 498 | fi
|
|---|
| 499 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 500 | if test "$ac_srcdir_defaulted" = yes; then
|
|---|
| 501 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|---|
| 502 | else
|
|---|
| 503 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|---|
| 504 | fi
|
|---|
| 505 | fi
|
|---|
| 506 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|---|
| 507 |
|
|---|
| 508 | # Prefer explicitly selected file to automatically selected ones.
|
|---|
| 509 | if test -z "$CONFIG_SITE"; then
|
|---|
| 510 | if test "x$prefix" != xNONE; then
|
|---|
| 511 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|---|
| 512 | else
|
|---|
| 513 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|---|
| 514 | fi
|
|---|
| 515 | fi
|
|---|
| 516 | for ac_site_file in $CONFIG_SITE; do
|
|---|
| 517 | if test -r "$ac_site_file"; then
|
|---|
| 518 | echo "loading site script $ac_site_file"
|
|---|
| 519 | . "$ac_site_file"
|
|---|
| 520 | fi
|
|---|
| 521 | done
|
|---|
| 522 |
|
|---|
| 523 | if test -r "$cache_file"; then
|
|---|
| 524 | echo "loading cache $cache_file"
|
|---|
| 525 | . $cache_file
|
|---|
| 526 | else
|
|---|
| 527 | echo "creating cache $cache_file"
|
|---|
| 528 | > $cache_file
|
|---|
| 529 | fi
|
|---|
| 530 |
|
|---|
| 531 | ac_ext=c
|
|---|
| 532 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 533 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 534 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 535 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 536 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 537 |
|
|---|
| 538 | ac_exeext=
|
|---|
| 539 | ac_objext=o
|
|---|
| 540 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|---|
| 541 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
|---|
| 542 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|---|
| 543 | ac_n= ac_c='
|
|---|
| 544 | ' ac_t=' '
|
|---|
| 545 | else
|
|---|
| 546 | ac_n=-n ac_c= ac_t=
|
|---|
| 547 | fi
|
|---|
| 548 | else
|
|---|
| 549 | ac_n= ac_c='\c' ac_t=
|
|---|
| 550 | fi
|
|---|
| 551 |
|
|---|
| 552 | echo $ac_n "checking for path separator""... $ac_c" 1>&6
|
|---|
| 553 | echo "configure:554: checking for path separator" >&5
|
|---|
| 554 | # Filter path to get backslahes into forwardslashes
|
|---|
| 555 | case "`uname -s 2> /dev/null`" in
|
|---|
| 556 | OS/2)
|
|---|
| 557 | PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
|
|---|
| 558 | PATH_IFS=';'
|
|---|
| 559 | ;;
|
|---|
| 560 | *)
|
|---|
| 561 | PATH_IFS=':'
|
|---|
| 562 | ;;
|
|---|
| 563 | esac
|
|---|
| 564 | echo "$ac_t""${PATH_IFS}" 1>&6
|
|---|
| 565 |
|
|---|
| 566 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
|---|
| 567 | echo "configure:568: checking for Cygwin environment" >&5
|
|---|
| 568 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
|---|
| 569 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 570 | else
|
|---|
| 571 | cat > conftest.$ac_ext <<EOF
|
|---|
| 572 | #line 573 "configure"
|
|---|
| 573 | #include "confdefs.h"
|
|---|
| 574 |
|
|---|
| 575 | int main() {
|
|---|
| 576 |
|
|---|
| 577 | #ifndef __CYGWIN__
|
|---|
| 578 | #define __CYGWIN__ __CYGWIN32__
|
|---|
| 579 | #endif
|
|---|
| 580 | return __CYGWIN__;
|
|---|
| 581 | ; return 0; }
|
|---|
| 582 | EOF
|
|---|
| 583 | if { (eval echo configure:584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 584 | rm -rf conftest*
|
|---|
| 585 | ac_cv_cygwin=yes
|
|---|
| 586 | else
|
|---|
| 587 | echo "configure: failed program was:" >&5
|
|---|
| 588 | cat conftest.$ac_ext >&5
|
|---|
| 589 | rm -rf conftest*
|
|---|
| 590 | ac_cv_cygwin=no
|
|---|
| 591 | fi
|
|---|
| 592 | rm -f conftest*
|
|---|
| 593 | rm -f conftest*
|
|---|
| 594 | fi
|
|---|
| 595 |
|
|---|
| 596 | echo "$ac_t""$ac_cv_cygwin" 1>&6
|
|---|
| 597 | CYGWIN=
|
|---|
| 598 | test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
|---|
| 599 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
|---|
| 600 | echo "configure:601: checking for mingw32 environment" >&5
|
|---|
| 601 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
|---|
| 602 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 603 | else
|
|---|
| 604 | cat > conftest.$ac_ext <<EOF
|
|---|
| 605 | #line 606 "configure"
|
|---|
| 606 | #include "confdefs.h"
|
|---|
| 607 |
|
|---|
| 608 | int main() {
|
|---|
| 609 | return __MINGW32__;
|
|---|
| 610 | ; return 0; }
|
|---|
| 611 | EOF
|
|---|
| 612 | if { (eval echo configure:613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 613 | rm -rf conftest*
|
|---|
| 614 | ac_cv_mingw32=yes
|
|---|
| 615 | else
|
|---|
| 616 | echo "configure: failed program was:" >&5
|
|---|
| 617 | cat conftest.$ac_ext >&5
|
|---|
| 618 | rm -rf conftest*
|
|---|
| 619 | ac_cv_mingw32=no
|
|---|
| 620 | fi
|
|---|
| 621 | rm -f conftest*
|
|---|
| 622 | rm -f conftest*
|
|---|
| 623 | fi
|
|---|
| 624 |
|
|---|
| 625 | echo "$ac_t""$ac_cv_mingw32" 1>&6
|
|---|
| 626 | MINGW32=
|
|---|
| 627 | test "$ac_cv_mingw32" = yes && MINGW32=yes
|
|---|
| 628 | echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
|
|---|
| 629 | echo "configure:630: checking for EMX/OS2 environment" >&5
|
|---|
| 630 | if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
|
|---|
| 631 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 632 | else
|
|---|
| 633 | : ${CC=gcc.exe}
|
|---|
| 634 | cat > conftest.$ac_ext <<EOF
|
|---|
| 635 | #line 636 "configure"
|
|---|
| 636 | #include "confdefs.h"
|
|---|
| 637 |
|
|---|
| 638 | int main() {
|
|---|
| 639 | return __EMX__;
|
|---|
| 640 | ; return 0; }
|
|---|
| 641 | EOF
|
|---|
| 642 | if { (eval echo configure:643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 643 | rm -rf conftest*
|
|---|
| 644 | ac_cv_emxos2=yes
|
|---|
| 645 | else
|
|---|
| 646 | echo "configure: failed program was:" >&5
|
|---|
| 647 | cat conftest.$ac_ext >&5
|
|---|
| 648 | rm -rf conftest*
|
|---|
| 649 | ac_cv_emxos2=no
|
|---|
| 650 | fi
|
|---|
| 651 | rm -f conftest*
|
|---|
| 652 | rm -f conftest*
|
|---|
| 653 | fi
|
|---|
| 654 |
|
|---|
| 655 | echo "$ac_t""$ac_cv_emxos2" 1>&6
|
|---|
| 656 | if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
|
|---|
| 657 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 658 | else
|
|---|
| 659 | if test "$ac_cv_emxos2" = yes ; then
|
|---|
| 660 | ac_cv_libpre=
|
|---|
| 661 | else
|
|---|
| 662 | ac_cv_libpre=lib
|
|---|
| 663 | fi
|
|---|
| 664 |
|
|---|
| 665 | fi
|
|---|
| 666 |
|
|---|
| 667 | EMXOS2=
|
|---|
| 668 | test "$ac_cv_emxos2" = yes && EMXOS2=yes
|
|---|
| 669 |
|
|---|
| 670 |
|
|---|
| 671 |
|
|---|
| 672 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 673 | echo "configure:674: checking for executable suffix" >&5
|
|---|
| 674 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 675 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 676 | else
|
|---|
| 677 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
|---|
| 678 | ac_cv_exeext=.exe
|
|---|
| 679 | else
|
|---|
| 680 | rm -f conftest*
|
|---|
| 681 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 682 | ac_cv_exeext=
|
|---|
| 683 | if { (eval echo configure:684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 684 | for file in conftest.*; do
|
|---|
| 685 | case $file in
|
|---|
| 686 | *.c | *.o | *.obj) ;;
|
|---|
| 687 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 688 | esac
|
|---|
| 689 | done
|
|---|
| 690 | else
|
|---|
| 691 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 692 | fi
|
|---|
| 693 | rm -f conftest*
|
|---|
| 694 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 695 | fi
|
|---|
| 696 | fi
|
|---|
| 697 |
|
|---|
| 698 | EXEEXT=""
|
|---|
| 699 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 700 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 701 | ac_exeext=$EXEEXT
|
|---|
| 702 |
|
|---|
| 703 |
|
|---|
| 704 |
|
|---|
| 705 | ac_aux_dir=
|
|---|
| 706 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
|---|
| 707 | if test -f $ac_dir/install-sh; then
|
|---|
| 708 | ac_aux_dir=$ac_dir
|
|---|
| 709 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
|---|
| 710 | break
|
|---|
| 711 | elif test -f $ac_dir/install.sh; then
|
|---|
| 712 | ac_aux_dir=$ac_dir
|
|---|
| 713 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
|---|
| 714 | break
|
|---|
| 715 | fi
|
|---|
| 716 | done
|
|---|
| 717 | if test -z "$ac_aux_dir"; then
|
|---|
| 718 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
|---|
| 719 | fi
|
|---|
| 720 | ac_config_guess=$ac_aux_dir/config.guess
|
|---|
| 721 | ac_config_sub=$ac_aux_dir/config.sub
|
|---|
| 722 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|---|
| 723 |
|
|---|
| 724 |
|
|---|
| 725 | # Do some error checking and defaulting for the host and target type.
|
|---|
| 726 | # The inputs are:
|
|---|
| 727 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT
|
|---|
| 728 | #
|
|---|
| 729 | # The rules are:
|
|---|
| 730 | # 1. You are not allowed to specify --host, --target, and nonopt at the
|
|---|
| 731 | # same time.
|
|---|
| 732 | # 2. Host defaults to nonopt.
|
|---|
| 733 | # 3. If nonopt is not specified, then host defaults to the current host,
|
|---|
| 734 | # as determined by config.guess.
|
|---|
| 735 | # 4. Target and build default to nonopt.
|
|---|
| 736 | # 5. If nonopt is not specified, then target and build default to host.
|
|---|
| 737 |
|
|---|
| 738 | # The aliases save the names the user supplied, while $host etc.
|
|---|
| 739 | # will get canonicalized.
|
|---|
| 740 | case $host---$target---$nonopt in
|
|---|
| 741 | NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
|---|
| 742 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
|
|---|
| 743 | esac
|
|---|
| 744 |
|
|---|
| 745 |
|
|---|
| 746 | # Make sure we can run config.sub.
|
|---|
| 747 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
|---|
| 748 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
|---|
| 749 | fi
|
|---|
| 750 |
|
|---|
| 751 | echo $ac_n "checking host system type""... $ac_c" 1>&6
|
|---|
| 752 | echo "configure:753: checking host system type" >&5
|
|---|
| 753 |
|
|---|
| 754 | host_alias=$host
|
|---|
| 755 | case "$host_alias" in
|
|---|
| 756 | NONE)
|
|---|
| 757 | case $nonopt in
|
|---|
| 758 | NONE)
|
|---|
| 759 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
|---|
| 760 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
|---|
| 761 | fi ;;
|
|---|
| 762 | *) host_alias=$nonopt ;;
|
|---|
| 763 | esac ;;
|
|---|
| 764 | esac
|
|---|
| 765 |
|
|---|
| 766 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
|---|
| 767 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 768 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 769 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 770 | echo "$ac_t""$host" 1>&6
|
|---|
| 771 |
|
|---|
| 772 | echo $ac_n "checking target system type""... $ac_c" 1>&6
|
|---|
| 773 | echo "configure:774: checking target system type" >&5
|
|---|
| 774 |
|
|---|
| 775 | target_alias=$target
|
|---|
| 776 | case "$target_alias" in
|
|---|
| 777 | NONE)
|
|---|
| 778 | case $nonopt in
|
|---|
| 779 | NONE) target_alias=$host_alias ;;
|
|---|
| 780 | *) target_alias=$nonopt ;;
|
|---|
| 781 | esac ;;
|
|---|
| 782 | esac
|
|---|
| 783 |
|
|---|
| 784 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
|
|---|
| 785 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 786 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 787 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 788 | echo "$ac_t""$target" 1>&6
|
|---|
| 789 |
|
|---|
| 790 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
|---|
| 791 | echo "configure:792: checking build system type" >&5
|
|---|
| 792 |
|
|---|
| 793 | build_alias=$build
|
|---|
| 794 | case "$build_alias" in
|
|---|
| 795 | NONE)
|
|---|
| 796 | case $nonopt in
|
|---|
| 797 | NONE) build_alias=$host_alias ;;
|
|---|
| 798 | *) build_alias=$nonopt ;;
|
|---|
| 799 | esac ;;
|
|---|
| 800 | esac
|
|---|
| 801 |
|
|---|
| 802 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
|---|
| 803 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 804 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 805 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 806 | echo "$ac_t""$build" 1>&6
|
|---|
| 807 |
|
|---|
| 808 | test "$host_alias" != "$target_alias" &&
|
|---|
| 809 | test "$program_prefix$program_suffix$program_transform_name" = \
|
|---|
| 810 | NONENONEs,x,x, &&
|
|---|
| 811 | program_prefix=${target_alias}-
|
|---|
| 812 |
|
|---|
| 813 | # Extract the first word of "gcc", so it can be a program name with args.
|
|---|
| 814 | set dummy gcc; ac_word=$2
|
|---|
| 815 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 816 | echo "configure:817: checking for $ac_word" >&5
|
|---|
| 817 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 818 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 819 | else
|
|---|
| 820 | if test -n "$CC"; then
|
|---|
| 821 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 822 | else
|
|---|
| 823 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 824 | ac_dummy="$PATH"
|
|---|
| 825 | for ac_dir in $ac_dummy; do
|
|---|
| 826 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 827 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 828 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 829 | ac_cv_prog_CC="gcc"
|
|---|
| 830 | break
|
|---|
| 831 | fi
|
|---|
| 832 | done
|
|---|
| 833 | IFS="$ac_save_ifs"
|
|---|
| 834 | fi
|
|---|
| 835 | fi
|
|---|
| 836 | CC="$ac_cv_prog_CC"
|
|---|
| 837 | if test -n "$CC"; then
|
|---|
| 838 | echo "$ac_t""$CC" 1>&6
|
|---|
| 839 | else
|
|---|
| 840 | echo "$ac_t""no" 1>&6
|
|---|
| 841 | fi
|
|---|
| 842 |
|
|---|
| 843 | if test -z "$CC"; then
|
|---|
| 844 | # Extract the first word of "cc", so it can be a program name with args.
|
|---|
| 845 | set dummy cc; ac_word=$2
|
|---|
| 846 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 847 | echo "configure:848: checking for $ac_word" >&5
|
|---|
| 848 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 849 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 850 | else
|
|---|
| 851 | if test -n "$CC"; then
|
|---|
| 852 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 853 | else
|
|---|
| 854 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 855 | ac_prog_rejected=no
|
|---|
| 856 | ac_dummy="$PATH"
|
|---|
| 857 | for ac_dir in $ac_dummy; do
|
|---|
| 858 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 859 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 860 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 861 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
|---|
| 862 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
|---|
| 863 | ac_prog_rejected=yes
|
|---|
| 864 | continue
|
|---|
| 865 | fi
|
|---|
| 866 | ac_cv_prog_CC="cc"
|
|---|
| 867 | break
|
|---|
| 868 | fi
|
|---|
| 869 | done
|
|---|
| 870 | IFS="$ac_save_ifs"
|
|---|
| 871 | if test $ac_prog_rejected = yes; then
|
|---|
| 872 | # We found a bogon in the path, so make sure we never use it.
|
|---|
| 873 | set dummy $ac_cv_prog_CC
|
|---|
| 874 | shift
|
|---|
| 875 | if test $# -gt 0; then
|
|---|
| 876 | # We chose a different compiler from the bogus one.
|
|---|
| 877 | # However, it has the same basename, so the bogon will be chosen
|
|---|
| 878 | # first if we set CC to just the basename; use the full file name.
|
|---|
| 879 | shift
|
|---|
| 880 | set dummy "$ac_dir/$ac_word" "$@"
|
|---|
| 881 | shift
|
|---|
| 882 | ac_cv_prog_CC="$@"
|
|---|
| 883 | fi
|
|---|
| 884 | fi
|
|---|
| 885 | fi
|
|---|
| 886 | fi
|
|---|
| 887 | CC="$ac_cv_prog_CC"
|
|---|
| 888 | if test -n "$CC"; then
|
|---|
| 889 | echo "$ac_t""$CC" 1>&6
|
|---|
| 890 | else
|
|---|
| 891 | echo "$ac_t""no" 1>&6
|
|---|
| 892 | fi
|
|---|
| 893 |
|
|---|
| 894 | if test -z "$CC"; then
|
|---|
| 895 | case "`uname -s`" in
|
|---|
| 896 | *win32* | *WIN32*)
|
|---|
| 897 | # Extract the first word of "cl", so it can be a program name with args.
|
|---|
| 898 | set dummy cl; ac_word=$2
|
|---|
| 899 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 900 | echo "configure:901: checking for $ac_word" >&5
|
|---|
| 901 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 902 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 903 | else
|
|---|
| 904 | if test -n "$CC"; then
|
|---|
| 905 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 906 | else
|
|---|
| 907 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 908 | ac_dummy="$PATH"
|
|---|
| 909 | for ac_dir in $ac_dummy; do
|
|---|
| 910 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 911 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 912 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 913 | ac_cv_prog_CC="cl"
|
|---|
| 914 | break
|
|---|
| 915 | fi
|
|---|
| 916 | done
|
|---|
| 917 | IFS="$ac_save_ifs"
|
|---|
| 918 | fi
|
|---|
| 919 | fi
|
|---|
| 920 | CC="$ac_cv_prog_CC"
|
|---|
| 921 | if test -n "$CC"; then
|
|---|
| 922 | echo "$ac_t""$CC" 1>&6
|
|---|
| 923 | else
|
|---|
| 924 | echo "$ac_t""no" 1>&6
|
|---|
| 925 | fi
|
|---|
| 926 | ;;
|
|---|
| 927 | esac
|
|---|
| 928 | fi
|
|---|
| 929 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|---|
| 930 | fi
|
|---|
| 931 |
|
|---|
| 932 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|---|
| 933 | echo "configure:934: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|---|
| 934 |
|
|---|
| 935 | ac_ext=c
|
|---|
| 936 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 937 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 938 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 939 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 940 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 941 |
|
|---|
| 942 | cat > conftest.$ac_ext << EOF
|
|---|
| 943 |
|
|---|
| 944 | #line 945 "configure"
|
|---|
| 945 | #include "confdefs.h"
|
|---|
| 946 |
|
|---|
| 947 | main(){return(0);}
|
|---|
| 948 | EOF
|
|---|
| 949 | if { (eval echo configure:950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 950 | ac_cv_prog_cc_works=yes
|
|---|
| 951 | # If we can't run a trivial program, we are probably using a cross compiler.
|
|---|
| 952 | if (./conftest; exit) 2>/dev/null; then
|
|---|
| 953 | ac_cv_prog_cc_cross=no
|
|---|
| 954 | else
|
|---|
| 955 | ac_cv_prog_cc_cross=yes
|
|---|
| 956 | fi
|
|---|
| 957 | else
|
|---|
| 958 | echo "configure: failed program was:" >&5
|
|---|
| 959 | cat conftest.$ac_ext >&5
|
|---|
| 960 | ac_cv_prog_cc_works=no
|
|---|
| 961 | fi
|
|---|
| 962 | rm -fr conftest*
|
|---|
| 963 | ac_ext=c
|
|---|
| 964 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 965 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 966 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 967 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 968 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 969 |
|
|---|
| 970 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|---|
| 971 | if test $ac_cv_prog_cc_works = no; then
|
|---|
| 972 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 973 | fi
|
|---|
| 974 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|---|
| 975 | echo "configure:976: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|---|
| 976 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|---|
| 977 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 978 |
|
|---|
| 979 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|---|
| 980 | echo "configure:981: checking whether we are using GNU C" >&5
|
|---|
| 981 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|---|
| 982 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 983 | else
|
|---|
| 984 | cat > conftest.c <<EOF
|
|---|
| 985 | #ifdef __GNUC__
|
|---|
| 986 | yes;
|
|---|
| 987 | #endif
|
|---|
| 988 | EOF
|
|---|
| 989 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|---|
| 990 | ac_cv_prog_gcc=yes
|
|---|
| 991 | else
|
|---|
| 992 | ac_cv_prog_gcc=no
|
|---|
| 993 | fi
|
|---|
| 994 | fi
|
|---|
| 995 |
|
|---|
| 996 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|---|
| 997 |
|
|---|
| 998 | if test $ac_cv_prog_gcc = yes; then
|
|---|
| 999 | GCC=yes
|
|---|
| 1000 | else
|
|---|
| 1001 | GCC=
|
|---|
| 1002 | fi
|
|---|
| 1003 |
|
|---|
| 1004 | ac_test_CFLAGS="${CFLAGS+set}"
|
|---|
| 1005 | ac_save_CFLAGS="$CFLAGS"
|
|---|
| 1006 | CFLAGS=
|
|---|
| 1007 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|---|
| 1008 | echo "configure:1009: checking whether ${CC-cc} accepts -g" >&5
|
|---|
| 1009 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|---|
| 1010 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1011 | else
|
|---|
| 1012 | echo 'void f(){}' > conftest.c
|
|---|
| 1013 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|---|
| 1014 | ac_cv_prog_cc_g=yes
|
|---|
| 1015 | else
|
|---|
| 1016 | ac_cv_prog_cc_g=no
|
|---|
| 1017 | fi
|
|---|
| 1018 | rm -f conftest*
|
|---|
| 1019 |
|
|---|
| 1020 | fi
|
|---|
| 1021 |
|
|---|
| 1022 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|---|
| 1023 | if test "$ac_test_CFLAGS" = set; then
|
|---|
| 1024 | CFLAGS="$ac_save_CFLAGS"
|
|---|
| 1025 | elif test $ac_cv_prog_cc_g = yes; then
|
|---|
| 1026 | if test "$GCC" = yes; then
|
|---|
| 1027 | CFLAGS="-g -O2"
|
|---|
| 1028 | else
|
|---|
| 1029 | CFLAGS="-g"
|
|---|
| 1030 | fi
|
|---|
| 1031 | else
|
|---|
| 1032 | if test "$GCC" = yes; then
|
|---|
| 1033 | CFLAGS="-O2"
|
|---|
| 1034 | else
|
|---|
| 1035 | CFLAGS=
|
|---|
| 1036 | fi
|
|---|
| 1037 | fi
|
|---|
| 1038 |
|
|---|
| 1039 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
|
|---|
| 1040 | echo "configure:1041: checking for POSIXized ISC" >&5
|
|---|
| 1041 | if test -d /etc/conf/kconfig.d &&
|
|---|
| 1042 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
|
|---|
| 1043 | then
|
|---|
| 1044 | echo "$ac_t""yes" 1>&6
|
|---|
| 1045 | ISC=yes # If later tests want to check for ISC.
|
|---|
| 1046 | cat >> confdefs.h <<\EOF
|
|---|
| 1047 | #define _POSIX_SOURCE 1
|
|---|
| 1048 | EOF
|
|---|
| 1049 |
|
|---|
| 1050 | if test "$GCC" = yes; then
|
|---|
| 1051 | CC="$CC -posix"
|
|---|
| 1052 | else
|
|---|
| 1053 | CC="$CC -Xp"
|
|---|
| 1054 | fi
|
|---|
| 1055 | else
|
|---|
| 1056 | echo "$ac_t""no" 1>&6
|
|---|
| 1057 | ISC=
|
|---|
| 1058 | fi
|
|---|
| 1059 |
|
|---|
| 1060 |
|
|---|
| 1061 | # We currently only use the version number for the name of any shared
|
|---|
| 1062 | # library. For user convenience, we always use the same version
|
|---|
| 1063 | # number that BFD is using.
|
|---|
| 1064 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
|
|---|
| 1065 |
|
|---|
| 1066 | # Find a good install program. We prefer a C program (faster),
|
|---|
| 1067 | # so one script is as good as another. But avoid the broken or
|
|---|
| 1068 | # incompatible versions:
|
|---|
| 1069 | # SysV /etc/install, /usr/sbin/install
|
|---|
| 1070 | # SunOS /usr/etc/install
|
|---|
| 1071 | # IRIX /sbin/install
|
|---|
| 1072 | # AIX /bin/install
|
|---|
| 1073 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|---|
| 1074 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|---|
| 1075 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|---|
| 1076 | # ./install, which can be erroneously created by make from ./install.sh.
|
|---|
| 1077 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|---|
| 1078 | echo "configure:1079: checking for a BSD compatible install" >&5
|
|---|
| 1079 | if test -z "$INSTALL"; then
|
|---|
| 1080 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|---|
| 1081 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1082 | else
|
|---|
| 1083 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1084 | for ac_dir in $PATH; do
|
|---|
| 1085 | # Account for people who put trailing slashes in PATH elements.
|
|---|
| 1086 | case "$ac_dir/" in
|
|---|
| 1087 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|---|
| 1088 | # We reject the install program from OS/2 or W3.1
|
|---|
| 1089 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
|---|
| 1090 | *)
|
|---|
| 1091 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
|---|
| 1092 | # Don't use installbsd from OSF since it installs stuff as root
|
|---|
| 1093 | # by default.
|
|---|
| 1094 | for ac_prog in ginstall scoinst install; do
|
|---|
| 1095 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
|---|
| 1096 | if test $ac_prog = install &&
|
|---|
| 1097 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|---|
| 1098 | # AIX install. It has an incompatible calling convention.
|
|---|
| 1099 | :
|
|---|
| 1100 | else
|
|---|
| 1101 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
|---|
| 1102 | break 2
|
|---|
| 1103 | fi
|
|---|
| 1104 | fi
|
|---|
| 1105 | done
|
|---|
| 1106 | ;;
|
|---|
| 1107 | esac
|
|---|
| 1108 | done
|
|---|
| 1109 | IFS="$ac_save_IFS"
|
|---|
| 1110 |
|
|---|
| 1111 | fi
|
|---|
| 1112 | if test "${ac_cv_path_install+set}" = set; then
|
|---|
| 1113 | INSTALL="$ac_cv_path_install"
|
|---|
| 1114 | else
|
|---|
| 1115 | # As a last resort, use the slow shell script. We don't cache a
|
|---|
| 1116 | # path for INSTALL within a source directory, because that will
|
|---|
| 1117 | # break other packages using the cache if that directory is
|
|---|
| 1118 | # removed, or if the path is relative.
|
|---|
| 1119 | INSTALL="$ac_install_sh"
|
|---|
| 1120 | fi
|
|---|
| 1121 | fi
|
|---|
| 1122 | echo "$ac_t""$INSTALL" 1>&6
|
|---|
| 1123 |
|
|---|
| 1124 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|---|
| 1125 | # It thinks the first close brace ends the variable substitution.
|
|---|
| 1126 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|---|
| 1127 |
|
|---|
| 1128 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|---|
| 1129 |
|
|---|
| 1130 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|---|
| 1131 |
|
|---|
| 1132 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
|---|
| 1133 | echo "configure:1134: checking whether build environment is sane" >&5
|
|---|
| 1134 | # Just in case
|
|---|
| 1135 | sleep 1
|
|---|
| 1136 | echo timestamp > conftestfile
|
|---|
| 1137 | # Do `set' in a subshell so we don't clobber the current shell's
|
|---|
| 1138 | # arguments. Must try -L first in case configure is actually a
|
|---|
| 1139 | # symlink; some systems play weird games with the mod time of symlinks
|
|---|
| 1140 | # (eg FreeBSD returns the mod time of the symlink's containing
|
|---|
| 1141 | # directory).
|
|---|
| 1142 | if (
|
|---|
| 1143 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
|---|
| 1144 | if test "$*" = "X"; then
|
|---|
| 1145 | # -L didn't work.
|
|---|
| 1146 | set X `ls -t $srcdir/configure conftestfile`
|
|---|
| 1147 | fi
|
|---|
| 1148 | if test "$*" != "X $srcdir/configure conftestfile" \
|
|---|
| 1149 | && test "$*" != "X conftestfile $srcdir/configure"; then
|
|---|
| 1150 |
|
|---|
| 1151 | # If neither matched, then we have a broken ls. This can happen
|
|---|
| 1152 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
|---|
| 1153 | # broken ls alias from the environment. This has actually
|
|---|
| 1154 | # happened. Such a system could not be considered "sane".
|
|---|
| 1155 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
|---|
| 1156 | alias in your environment" 1>&2; exit 1; }
|
|---|
| 1157 | fi
|
|---|
| 1158 |
|
|---|
| 1159 | test "$2" = conftestfile
|
|---|
| 1160 | )
|
|---|
| 1161 | then
|
|---|
| 1162 | # Ok.
|
|---|
| 1163 | :
|
|---|
| 1164 | else
|
|---|
| 1165 | { echo "configure: error: newly created file is older than distributed files!
|
|---|
| 1166 | Check your system clock" 1>&2; exit 1; }
|
|---|
| 1167 | fi
|
|---|
| 1168 | rm -f conftest*
|
|---|
| 1169 | echo "$ac_t""yes" 1>&6
|
|---|
| 1170 | if test "$program_transform_name" = s,x,x,; then
|
|---|
| 1171 | program_transform_name=
|
|---|
| 1172 | else
|
|---|
| 1173 | # Double any \ or $. echo might interpret backslashes.
|
|---|
| 1174 | cat <<\EOF_SED > conftestsed
|
|---|
| 1175 | s,\\,\\\\,g; s,\$,$$,g
|
|---|
| 1176 | EOF_SED
|
|---|
| 1177 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
|---|
| 1178 | rm -f conftestsed
|
|---|
| 1179 | fi
|
|---|
| 1180 | test "$program_prefix" != NONE &&
|
|---|
| 1181 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
|---|
| 1182 | # Use a double $ so make ignores it.
|
|---|
| 1183 | test "$program_suffix" != NONE &&
|
|---|
| 1184 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
|---|
| 1185 |
|
|---|
| 1186 | # sed with no file args requires a program.
|
|---|
| 1187 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
|---|
| 1188 |
|
|---|
| 1189 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
|---|
| 1190 | echo "configure:1191: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
|---|
| 1191 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|---|
| 1192 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
|---|
| 1193 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1194 | else
|
|---|
| 1195 | cat > conftestmake <<\EOF
|
|---|
| 1196 | all:
|
|---|
| 1197 | @echo 'ac_maketemp="${MAKE}"'
|
|---|
| 1198 | EOF
|
|---|
| 1199 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|---|
| 1200 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
|---|
| 1201 | if test -n "$ac_maketemp"; then
|
|---|
| 1202 | eval ac_cv_prog_make_${ac_make}_set=yes
|
|---|
| 1203 | else
|
|---|
| 1204 | eval ac_cv_prog_make_${ac_make}_set=no
|
|---|
| 1205 | fi
|
|---|
| 1206 | rm -f conftestmake
|
|---|
| 1207 | fi
|
|---|
| 1208 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|---|
| 1209 | echo "$ac_t""yes" 1>&6
|
|---|
| 1210 | SET_MAKE=
|
|---|
| 1211 | else
|
|---|
| 1212 | echo "$ac_t""no" 1>&6
|
|---|
| 1213 | SET_MAKE="MAKE=${MAKE-make}"
|
|---|
| 1214 | fi
|
|---|
| 1215 |
|
|---|
| 1216 |
|
|---|
| 1217 | PACKAGE=opcodes
|
|---|
| 1218 |
|
|---|
| 1219 | VERSION=${BFD_VERSION}
|
|---|
| 1220 |
|
|---|
| 1221 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
|---|
| 1222 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
|---|
| 1223 | fi
|
|---|
| 1224 | cat >> confdefs.h <<EOF
|
|---|
| 1225 | #define PACKAGE "$PACKAGE"
|
|---|
| 1226 | EOF
|
|---|
| 1227 |
|
|---|
| 1228 | cat >> confdefs.h <<EOF
|
|---|
| 1229 | #define VERSION "$VERSION"
|
|---|
| 1230 | EOF
|
|---|
| 1231 |
|
|---|
| 1232 |
|
|---|
| 1233 |
|
|---|
| 1234 | missing_dir=`cd $ac_aux_dir && pwd`
|
|---|
| 1235 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
|---|
| 1236 | echo "configure:1237: checking for working aclocal" >&5
|
|---|
| 1237 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1238 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1239 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1240 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1241 | ACLOCAL=aclocal
|
|---|
| 1242 | echo "$ac_t""found" 1>&6
|
|---|
| 1243 | else
|
|---|
| 1244 | ACLOCAL="$missing_dir/missing aclocal"
|
|---|
| 1245 | echo "$ac_t""missing" 1>&6
|
|---|
| 1246 | fi
|
|---|
| 1247 |
|
|---|
| 1248 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
|---|
| 1249 | echo "configure:1250: checking for working autoconf" >&5
|
|---|
| 1250 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1251 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1252 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1253 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1254 | AUTOCONF=autoconf
|
|---|
| 1255 | echo "$ac_t""found" 1>&6
|
|---|
| 1256 | else
|
|---|
| 1257 | AUTOCONF="$missing_dir/missing autoconf"
|
|---|
| 1258 | echo "$ac_t""missing" 1>&6
|
|---|
| 1259 | fi
|
|---|
| 1260 |
|
|---|
| 1261 | echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
|---|
| 1262 | echo "configure:1263: checking for working automake" >&5
|
|---|
| 1263 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1264 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1265 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1266 | if (automake --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1267 | AUTOMAKE=automake
|
|---|
| 1268 | echo "$ac_t""found" 1>&6
|
|---|
| 1269 | else
|
|---|
| 1270 | AUTOMAKE="$missing_dir/missing automake"
|
|---|
| 1271 | echo "$ac_t""missing" 1>&6
|
|---|
| 1272 | fi
|
|---|
| 1273 |
|
|---|
| 1274 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
|---|
| 1275 | echo "configure:1276: checking for working autoheader" >&5
|
|---|
| 1276 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1277 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1278 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1279 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1280 | AUTOHEADER=autoheader
|
|---|
| 1281 | echo "$ac_t""found" 1>&6
|
|---|
| 1282 | else
|
|---|
| 1283 | AUTOHEADER="$missing_dir/missing autoheader"
|
|---|
| 1284 | echo "$ac_t""missing" 1>&6
|
|---|
| 1285 | fi
|
|---|
| 1286 |
|
|---|
| 1287 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
|---|
| 1288 | echo "configure:1289: checking for working makeinfo" >&5
|
|---|
| 1289 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1290 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1291 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1292 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1293 | MAKEINFO=makeinfo
|
|---|
| 1294 | echo "$ac_t""found" 1>&6
|
|---|
| 1295 | else
|
|---|
| 1296 | MAKEINFO="$missing_dir/missing makeinfo"
|
|---|
| 1297 | echo "$ac_t""missing" 1>&6
|
|---|
| 1298 | fi
|
|---|
| 1299 |
|
|---|
| 1300 |
|
|---|
| 1301 |
|
|---|
| 1302 | if test $host != $build; then
|
|---|
| 1303 | ac_tool_prefix=${host_alias}-
|
|---|
| 1304 | else
|
|---|
| 1305 | ac_tool_prefix=
|
|---|
| 1306 | fi
|
|---|
| 1307 |
|
|---|
| 1308 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
|---|
| 1309 | set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|---|
| 1310 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1311 | echo "configure:1312: checking for $ac_word" >&5
|
|---|
| 1312 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
|---|
| 1313 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1314 | else
|
|---|
| 1315 | if test -n "$AR"; then
|
|---|
| 1316 | ac_cv_prog_AR="$AR" # Let the user override the test.
|
|---|
| 1317 | else
|
|---|
| 1318 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1319 | ac_dummy="$PATH"
|
|---|
| 1320 | for ac_dir in $ac_dummy; do
|
|---|
| 1321 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1322 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1323 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1324 | ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|---|
| 1325 | break
|
|---|
| 1326 | fi
|
|---|
| 1327 | done
|
|---|
| 1328 | IFS="$ac_save_ifs"
|
|---|
| 1329 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
|
|---|
| 1330 | fi
|
|---|
| 1331 | fi
|
|---|
| 1332 | AR="$ac_cv_prog_AR"
|
|---|
| 1333 | if test -n "$AR"; then
|
|---|
| 1334 | echo "$ac_t""$AR" 1>&6
|
|---|
| 1335 | else
|
|---|
| 1336 | echo "$ac_t""no" 1>&6
|
|---|
| 1337 | fi
|
|---|
| 1338 |
|
|---|
| 1339 |
|
|---|
| 1340 |
|
|---|
| 1341 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|---|
| 1342 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|---|
| 1343 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1344 | echo "configure:1345: checking for $ac_word" >&5
|
|---|
| 1345 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1346 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1347 | else
|
|---|
| 1348 | if test -n "$RANLIB"; then
|
|---|
| 1349 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1350 | else
|
|---|
| 1351 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1352 | ac_dummy="$PATH"
|
|---|
| 1353 | for ac_dir in $ac_dummy; do
|
|---|
| 1354 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1355 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1356 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1357 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|---|
| 1358 | break
|
|---|
| 1359 | fi
|
|---|
| 1360 | done
|
|---|
| 1361 | IFS="$ac_save_ifs"
|
|---|
| 1362 | fi
|
|---|
| 1363 | fi
|
|---|
| 1364 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1365 | if test -n "$RANLIB"; then
|
|---|
| 1366 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1367 | else
|
|---|
| 1368 | echo "$ac_t""no" 1>&6
|
|---|
| 1369 | fi
|
|---|
| 1370 |
|
|---|
| 1371 |
|
|---|
| 1372 | if test -z "$ac_cv_prog_RANLIB"; then
|
|---|
| 1373 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1374 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 1375 | set dummy ranlib; ac_word=$2
|
|---|
| 1376 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1377 | echo "configure:1378: checking for $ac_word" >&5
|
|---|
| 1378 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1379 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1380 | else
|
|---|
| 1381 | if test -n "$RANLIB"; then
|
|---|
| 1382 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1383 | else
|
|---|
| 1384 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1385 | ac_dummy="$PATH"
|
|---|
| 1386 | for ac_dir in $ac_dummy; do
|
|---|
| 1387 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1388 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1389 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1390 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 1391 | break
|
|---|
| 1392 | fi
|
|---|
| 1393 | done
|
|---|
| 1394 | IFS="$ac_save_ifs"
|
|---|
| 1395 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 1396 | fi
|
|---|
| 1397 | fi
|
|---|
| 1398 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1399 | if test -n "$RANLIB"; then
|
|---|
| 1400 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1401 | else
|
|---|
| 1402 | echo "$ac_t""no" 1>&6
|
|---|
| 1403 | fi
|
|---|
| 1404 |
|
|---|
| 1405 | else
|
|---|
| 1406 | RANLIB=":"
|
|---|
| 1407 | fi
|
|---|
| 1408 | fi
|
|---|
| 1409 |
|
|---|
| 1410 |
|
|---|
| 1411 | # Check whether --enable-shared or --disable-shared was given.
|
|---|
| 1412 | if test "${enable_shared+set}" = set; then
|
|---|
| 1413 | enableval="$enable_shared"
|
|---|
| 1414 | p=${PACKAGE-default}
|
|---|
| 1415 | case $enableval in
|
|---|
| 1416 | yes) enable_shared=yes ;;
|
|---|
| 1417 | no) enable_shared=no ;;
|
|---|
| 1418 | *)
|
|---|
| 1419 | enable_shared=no
|
|---|
| 1420 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1421 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1422 | for pkg in $enableval; do
|
|---|
| 1423 | if test "X$pkg" = "X$p"; then
|
|---|
| 1424 | enable_shared=yes
|
|---|
| 1425 | fi
|
|---|
| 1426 | done
|
|---|
| 1427 | IFS="$ac_save_ifs"
|
|---|
| 1428 | ;;
|
|---|
| 1429 | esac
|
|---|
| 1430 | else
|
|---|
| 1431 | enable_shared=no
|
|---|
| 1432 | fi
|
|---|
| 1433 |
|
|---|
| 1434 |
|
|---|
| 1435 | # Check whether --enable-static or --disable-static was given.
|
|---|
| 1436 | if test "${enable_static+set}" = set; then
|
|---|
| 1437 | enableval="$enable_static"
|
|---|
| 1438 | p=${PACKAGE-default}
|
|---|
| 1439 | case $enableval in
|
|---|
| 1440 | yes) enable_static=yes ;;
|
|---|
| 1441 | no) enable_static=no ;;
|
|---|
| 1442 | *)
|
|---|
| 1443 | enable_static=no
|
|---|
| 1444 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1445 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1446 | for pkg in $enableval; do
|
|---|
| 1447 | if test "X$pkg" = "X$p"; then
|
|---|
| 1448 | enable_static=yes
|
|---|
| 1449 | fi
|
|---|
| 1450 | done
|
|---|
| 1451 | IFS="$ac_save_ifs"
|
|---|
| 1452 | ;;
|
|---|
| 1453 | esac
|
|---|
| 1454 | else
|
|---|
| 1455 | enable_static=yes
|
|---|
| 1456 | fi
|
|---|
| 1457 |
|
|---|
| 1458 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
|---|
| 1459 | if test "${enable_fast_install+set}" = set; then
|
|---|
| 1460 | enableval="$enable_fast_install"
|
|---|
| 1461 | p=${PACKAGE-default}
|
|---|
| 1462 | case $enableval in
|
|---|
| 1463 | yes) enable_fast_install=yes ;;
|
|---|
| 1464 | no) enable_fast_install=no ;;
|
|---|
| 1465 | *)
|
|---|
| 1466 | enable_fast_install=no
|
|---|
| 1467 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1468 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1469 | for pkg in $enableval; do
|
|---|
| 1470 | if test "X$pkg" = "X$p"; then
|
|---|
| 1471 | enable_fast_install=yes
|
|---|
| 1472 | fi
|
|---|
| 1473 | done
|
|---|
| 1474 | IFS="$ac_save_ifs"
|
|---|
| 1475 | ;;
|
|---|
| 1476 | esac
|
|---|
| 1477 | else
|
|---|
| 1478 | enable_fast_install=yes
|
|---|
| 1479 | fi
|
|---|
| 1480 |
|
|---|
| 1481 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
|---|
| 1482 | if test "${with_gnu_ld+set}" = set; then
|
|---|
| 1483 | withval="$with_gnu_ld"
|
|---|
| 1484 | test "$withval" = no || with_gnu_ld=yes
|
|---|
| 1485 | else
|
|---|
| 1486 | with_gnu_ld=no
|
|---|
| 1487 | fi
|
|---|
| 1488 |
|
|---|
| 1489 | ac_prog=ld
|
|---|
| 1490 | if test "$GCC" = yes; then
|
|---|
| 1491 | # Check if gcc -print-prog-name=ld gives a path.
|
|---|
| 1492 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
|---|
| 1493 | echo "configure:1494: checking for ld used by GCC" >&5
|
|---|
| 1494 | case $host in
|
|---|
| 1495 | *-*-mingw*)
|
|---|
| 1496 | # gcc leaves a trailing carriage return which upsets mingw
|
|---|
| 1497 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
|---|
| 1498 | *)
|
|---|
| 1499 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
|---|
| 1500 | esac
|
|---|
| 1501 | case $ac_prog in
|
|---|
| 1502 | # Accept absolute paths.
|
|---|
| 1503 | [\\/]* | [A-Za-z]:[\\/]*)
|
|---|
| 1504 | re_direlt='/[^/][^/]*/\.\./'
|
|---|
| 1505 | # Canonicalize the path of ld
|
|---|
| 1506 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
|---|
| 1507 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
|---|
| 1508 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
|---|
| 1509 | done
|
|---|
| 1510 | test -z "$LD" && LD="$ac_prog"
|
|---|
| 1511 | ;;
|
|---|
| 1512 | "")
|
|---|
| 1513 | # If it fails, then pretend we aren't using GCC.
|
|---|
| 1514 | ac_prog=ld
|
|---|
| 1515 | ;;
|
|---|
| 1516 | *)
|
|---|
| 1517 | # If it is relative, then search for the first ld in PATH.
|
|---|
| 1518 | with_gnu_ld=unknown
|
|---|
| 1519 | ;;
|
|---|
| 1520 | esac
|
|---|
| 1521 | elif test "$with_gnu_ld" = yes; then
|
|---|
| 1522 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
|---|
| 1523 | echo "configure:1524: checking for GNU ld" >&5
|
|---|
| 1524 | else
|
|---|
| 1525 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
|---|
| 1526 | echo "configure:1527: checking for non-GNU ld" >&5
|
|---|
| 1527 | fi
|
|---|
| 1528 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
|
|---|
| 1529 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1530 | else
|
|---|
| 1531 | if test -z "$LD"; then
|
|---|
| 1532 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1533 | for ac_dir in $PATH; do
|
|---|
| 1534 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1535 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|---|
| 1536 | lt_cv_path_LD="$ac_dir/$ac_prog"
|
|---|
| 1537 | # Check to see if the program is GNU ld. I'd rather use --version,
|
|---|
| 1538 | # but apparently some GNU ld's only accept -v.
|
|---|
| 1539 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
|---|
| 1540 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
|---|
| 1541 | test "$with_gnu_ld" != no && break
|
|---|
| 1542 | else
|
|---|
| 1543 | test "$with_gnu_ld" != yes && break
|
|---|
| 1544 | fi
|
|---|
| 1545 | fi
|
|---|
| 1546 | done
|
|---|
| 1547 | IFS="$ac_save_ifs"
|
|---|
| 1548 | else
|
|---|
| 1549 | lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
|---|
| 1550 | fi
|
|---|
| 1551 | fi
|
|---|
| 1552 |
|
|---|
| 1553 | LD="$lt_cv_path_LD"
|
|---|
| 1554 | if test -n "$LD"; then
|
|---|
| 1555 | echo "$ac_t""$LD" 1>&6
|
|---|
| 1556 | else
|
|---|
| 1557 | echo "$ac_t""no" 1>&6
|
|---|
| 1558 | fi
|
|---|
| 1559 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
|---|
| 1560 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
|---|
| 1561 | echo "configure:1562: checking if the linker ($LD) is GNU ld" >&5
|
|---|
| 1562 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
|
|---|
| 1563 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1564 | else
|
|---|
| 1565 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
|---|
| 1566 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
|---|
| 1567 | lt_cv_prog_gnu_ld=yes
|
|---|
| 1568 | else
|
|---|
| 1569 | lt_cv_prog_gnu_ld=no
|
|---|
| 1570 | fi
|
|---|
| 1571 | fi
|
|---|
| 1572 |
|
|---|
| 1573 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
|
|---|
| 1574 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
|---|
| 1575 |
|
|---|
| 1576 |
|
|---|
| 1577 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
|
|---|
| 1578 | echo "configure:1579: checking for $LD option to reload object files" >&5
|
|---|
| 1579 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
|
|---|
| 1580 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1581 | else
|
|---|
| 1582 | lt_cv_ld_reload_flag='-r'
|
|---|
| 1583 | fi
|
|---|
| 1584 |
|
|---|
| 1585 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
|
|---|
| 1586 | reload_flag=$lt_cv_ld_reload_flag
|
|---|
| 1587 | test -n "$reload_flag" && reload_flag=" $reload_flag"
|
|---|
| 1588 |
|
|---|
| 1589 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
|---|
| 1590 | echo "configure:1591: checking for BSD-compatible nm" >&5
|
|---|
| 1591 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
|
|---|
| 1592 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1593 | else
|
|---|
| 1594 | if test -n "$NM"; then
|
|---|
| 1595 | # Let the user override the test.
|
|---|
| 1596 | lt_cv_path_NM="$NM"
|
|---|
| 1597 | else
|
|---|
| 1598 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1599 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
|---|
| 1600 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1601 | tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
|---|
| 1602 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
|---|
| 1603 | # Check to see if the nm accepts a BSD-compat flag.
|
|---|
| 1604 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
|---|
| 1605 | # nm: unknown option "B" ignored
|
|---|
| 1606 | # Tru64's nm complains that /dev/null is an invalid object file
|
|---|
| 1607 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
|---|
| 1608 | lt_cv_path_NM="$tmp_nm -B"
|
|---|
| 1609 | break
|
|---|
| 1610 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
|---|
| 1611 | lt_cv_path_NM="$tmp_nm -p"
|
|---|
| 1612 | break
|
|---|
| 1613 | else
|
|---|
| 1614 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
|---|
| 1615 | continue # so that we can try to find one that supports BSD flags
|
|---|
| 1616 | fi
|
|---|
| 1617 | fi
|
|---|
| 1618 | done
|
|---|
| 1619 | IFS="$ac_save_ifs"
|
|---|
| 1620 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
|---|
| 1621 | fi
|
|---|
| 1622 | fi
|
|---|
| 1623 |
|
|---|
| 1624 | NM="$lt_cv_path_NM"
|
|---|
| 1625 | echo "$ac_t""$NM" 1>&6
|
|---|
| 1626 |
|
|---|
| 1627 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
|---|
| 1628 | echo "configure:1629: checking whether ln -s works" >&5
|
|---|
| 1629 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
|---|
| 1630 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1631 | else
|
|---|
| 1632 | rm -f conftestdata
|
|---|
| 1633 | if ln -s X conftestdata 2>/dev/null
|
|---|
| 1634 | then
|
|---|
| 1635 | rm -f conftestdata
|
|---|
| 1636 | ac_cv_prog_LN_S="ln -s"
|
|---|
| 1637 | else
|
|---|
| 1638 | echo A > conftestdata;
|
|---|
| 1639 | if ln conftestdata conftestdata2 2>/dev/null; then
|
|---|
| 1640 | ac_cv_prog_LN_S=ln
|
|---|
| 1641 | else
|
|---|
| 1642 | ac_cv_prog_LN_S=cp
|
|---|
| 1643 | fi
|
|---|
| 1644 | fi
|
|---|
| 1645 | rm -f conftestdata*
|
|---|
| 1646 | fi
|
|---|
| 1647 | LN_S="$ac_cv_prog_LN_S"
|
|---|
| 1648 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|---|
| 1649 | echo "$ac_t""yes" 1>&6
|
|---|
| 1650 | else
|
|---|
| 1651 | echo "$ac_t""no" 1>&6
|
|---|
| 1652 | fi
|
|---|
| 1653 |
|
|---|
| 1654 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
|
|---|
| 1655 | echo "configure:1656: checking how to recognise dependant libraries" >&5
|
|---|
| 1656 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
|
|---|
| 1657 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1658 | else
|
|---|
| 1659 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
|---|
| 1660 | lt_cv_file_magic_test_file=
|
|---|
| 1661 | lt_cv_deplibs_check_method='unknown'
|
|---|
| 1662 | # Need to set the preceding variable on all platforms that support
|
|---|
| 1663 | # interlibrary dependencies.
|
|---|
| 1664 | # 'none' -- dependencies not supported.
|
|---|
| 1665 | # `unknown' -- same as none, but documents that we really don't know.
|
|---|
| 1666 | # 'pass_all' -- all dependencies passed with no checks.
|
|---|
| 1667 | # 'test_compile' -- check by making test program.
|
|---|
| 1668 | # 'file_magic [regex]' -- check by looking for files in library path
|
|---|
| 1669 | # which responds to the $file_magic_cmd with a given egrep regex.
|
|---|
| 1670 | # If you have `file' or equivalent on your system and you're not sure
|
|---|
| 1671 | # whether `pass_all' will *always* work, you probably want this one.
|
|---|
| 1672 |
|
|---|
| 1673 | case $host_os in
|
|---|
| 1674 | aix*)
|
|---|
| 1675 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1676 | ;;
|
|---|
| 1677 |
|
|---|
| 1678 | beos*)
|
|---|
| 1679 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1680 | ;;
|
|---|
| 1681 |
|
|---|
| 1682 | bsdi4*)
|
|---|
| 1683 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
|---|
| 1684 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 1685 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 1686 | ;;
|
|---|
| 1687 |
|
|---|
| 1688 | cygwin* | mingw* |pw32*)
|
|---|
| 1689 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|---|
| 1690 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|---|
| 1691 | ;;
|
|---|
| 1692 |
|
|---|
| 1693 | darwin* | rhapsody*)
|
|---|
| 1694 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
|
|---|
| 1695 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 1696 | case "$host_os" in
|
|---|
| 1697 | rhapsody* | darwin1.012)
|
|---|
| 1698 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
|
|---|
| 1699 | ;;
|
|---|
| 1700 | *) # Darwin 1.3 on
|
|---|
| 1701 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
|
|---|
| 1702 | ;;
|
|---|
| 1703 | esac
|
|---|
| 1704 | ;;
|
|---|
| 1705 |
|
|---|
| 1706 | freebsd* )
|
|---|
| 1707 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 1708 | case $host_cpu in
|
|---|
| 1709 | i*86 )
|
|---|
| 1710 | # Not sure whether the presence of OpenBSD here was a mistake.
|
|---|
| 1711 | # Let's accept both of them until this is cleared up.
|
|---|
| 1712 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
|---|
| 1713 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1714 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
|---|
| 1715 | ;;
|
|---|
| 1716 | esac
|
|---|
| 1717 | else
|
|---|
| 1718 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1719 | fi
|
|---|
| 1720 | ;;
|
|---|
| 1721 |
|
|---|
| 1722 | gnu*)
|
|---|
| 1723 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1724 | ;;
|
|---|
| 1725 |
|
|---|
| 1726 | hpux10.20*|hpux11*)
|
|---|
| 1727 | case $host_cpu in
|
|---|
| 1728 | hppa*)
|
|---|
| 1729 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
|---|
| 1730 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1731 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
|---|
| 1732 | ;;
|
|---|
| 1733 | ia64*)
|
|---|
| 1734 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
|---|
| 1735 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1736 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
|---|
| 1737 | ;;
|
|---|
| 1738 | esac
|
|---|
| 1739 | ;;
|
|---|
| 1740 |
|
|---|
| 1741 | irix5* | irix6*)
|
|---|
| 1742 | case $host_os in
|
|---|
| 1743 | irix5*)
|
|---|
| 1744 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1745 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
|---|
| 1746 | ;;
|
|---|
| 1747 | *)
|
|---|
| 1748 | case $LD in
|
|---|
| 1749 | *-32|*"-32 ") libmagic=32-bit;;
|
|---|
| 1750 | *-n32|*"-n32 ") libmagic=N32;;
|
|---|
| 1751 | *-64|*"-64 ") libmagic=64-bit;;
|
|---|
| 1752 | *) libmagic=never-match;;
|
|---|
| 1753 | esac
|
|---|
| 1754 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1755 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
|
|---|
| 1756 | ;;
|
|---|
| 1757 | esac
|
|---|
| 1758 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
|---|
| 1759 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1760 | ;;
|
|---|
| 1761 |
|
|---|
| 1762 | # This must be Linux ELF.
|
|---|
| 1763 | linux-gnu*)
|
|---|
| 1764 | case $host_cpu in
|
|---|
| 1765 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
|
|---|
| 1766 | lt_cv_deplibs_check_method=pass_all ;;
|
|---|
| 1767 | *)
|
|---|
| 1768 | # glibc up to 2.1.1 does not perform some relocations on ARM
|
|---|
| 1769 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
|
|---|
| 1770 | esac
|
|---|
| 1771 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
|---|
| 1772 | ;;
|
|---|
| 1773 |
|
|---|
| 1774 | netbsd*)
|
|---|
| 1775 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 1776 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
|---|
| 1777 | else
|
|---|
| 1778 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
|
|---|
| 1779 | fi
|
|---|
| 1780 | ;;
|
|---|
| 1781 |
|
|---|
| 1782 | os2*)
|
|---|
| 1783 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1784 | ;;
|
|---|
| 1785 |
|
|---|
| 1786 | newsos6)
|
|---|
| 1787 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
|---|
| 1788 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1789 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
|---|
| 1790 | ;;
|
|---|
| 1791 |
|
|---|
| 1792 | osf3* | osf4* | osf5*)
|
|---|
| 1793 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1794 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
|---|
| 1795 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 1796 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1797 | ;;
|
|---|
| 1798 |
|
|---|
| 1799 | sco3.2v5*)
|
|---|
| 1800 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1801 | ;;
|
|---|
| 1802 |
|
|---|
| 1803 | solaris*)
|
|---|
| 1804 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1805 | lt_cv_file_magic_test_file=/lib/libc.so
|
|---|
| 1806 | ;;
|
|---|
| 1807 |
|
|---|
| 1808 | sysv5uw[78]* | sysv4*uw2*)
|
|---|
| 1809 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1810 | ;;
|
|---|
| 1811 |
|
|---|
| 1812 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|---|
| 1813 | case $host_vendor in
|
|---|
| 1814 | ncr)
|
|---|
| 1815 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1816 | ;;
|
|---|
| 1817 | motorola)
|
|---|
| 1818 | 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]'
|
|---|
| 1819 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
|---|
| 1820 | ;;
|
|---|
| 1821 | esac
|
|---|
| 1822 | ;;
|
|---|
| 1823 | esac
|
|---|
| 1824 |
|
|---|
| 1825 | fi
|
|---|
| 1826 |
|
|---|
| 1827 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
|
|---|
| 1828 | file_magic_cmd=$lt_cv_file_magic_cmd
|
|---|
| 1829 | deplibs_check_method=$lt_cv_deplibs_check_method
|
|---|
| 1830 |
|
|---|
| 1831 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
|---|
| 1832 | echo "configure:1833: checking for object suffix" >&5
|
|---|
| 1833 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
|---|
| 1834 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1835 | else
|
|---|
| 1836 | rm -f conftest*
|
|---|
| 1837 | echo 'int i = 1;' > conftest.$ac_ext
|
|---|
| 1838 | if { (eval echo configure:1839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 1839 | for ac_file in conftest.*; do
|
|---|
| 1840 | case $ac_file in
|
|---|
| 1841 | *.c) ;;
|
|---|
| 1842 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
|---|
| 1843 | esac
|
|---|
| 1844 | done
|
|---|
| 1845 | else
|
|---|
| 1846 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
|---|
| 1847 | fi
|
|---|
| 1848 | rm -f conftest*
|
|---|
| 1849 | fi
|
|---|
| 1850 |
|
|---|
| 1851 | echo "$ac_t""$ac_cv_objext" 1>&6
|
|---|
| 1852 | OBJEXT=$ac_cv_objext
|
|---|
| 1853 | ac_objext=$ac_cv_objext
|
|---|
| 1854 |
|
|---|
| 1855 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
|---|
| 1856 |
|
|---|
| 1857 | # Only perform the check for file, if the check method requires it
|
|---|
| 1858 | case $deplibs_check_method in
|
|---|
| 1859 | file_magic*)
|
|---|
| 1860 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
|---|
| 1861 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
|
|---|
| 1862 | echo "configure:1863: checking for ${ac_tool_prefix}file" >&5
|
|---|
| 1863 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 1864 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1865 | else
|
|---|
| 1866 | case $MAGIC_CMD in
|
|---|
| 1867 | /*)
|
|---|
| 1868 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 1869 | ;;
|
|---|
| 1870 | ?:/*)
|
|---|
| 1871 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 1872 | ;;
|
|---|
| 1873 | *)
|
|---|
| 1874 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 1875 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1876 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 1877 | for ac_dir in $ac_dummy; do
|
|---|
| 1878 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1879 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
|---|
| 1880 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
|---|
| 1881 | if test -n "$file_magic_test_file"; then
|
|---|
| 1882 | case $deplibs_check_method in
|
|---|
| 1883 | "file_magic "*)
|
|---|
| 1884 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 1885 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1886 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 1887 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 1888 | :
|
|---|
| 1889 | else
|
|---|
| 1890 | cat <<EOF 1>&2
|
|---|
| 1891 |
|
|---|
| 1892 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 1893 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 1894 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 1895 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 1896 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 1897 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 1898 | *** may want to report the problem to your system manager and/or to
|
|---|
| 1899 | *** bug-libtool@gnu.org
|
|---|
| 1900 |
|
|---|
| 1901 | EOF
|
|---|
| 1902 | fi ;;
|
|---|
| 1903 | esac
|
|---|
| 1904 | fi
|
|---|
| 1905 | break
|
|---|
| 1906 | fi
|
|---|
| 1907 | done
|
|---|
| 1908 | IFS="$ac_save_ifs"
|
|---|
| 1909 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 1910 | ;;
|
|---|
| 1911 | esac
|
|---|
| 1912 | fi
|
|---|
| 1913 |
|
|---|
| 1914 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1915 | if test -n "$MAGIC_CMD"; then
|
|---|
| 1916 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 1917 | else
|
|---|
| 1918 | echo "$ac_t""no" 1>&6
|
|---|
| 1919 | fi
|
|---|
| 1920 |
|
|---|
| 1921 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
|---|
| 1922 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1923 | echo $ac_n "checking for file""... $ac_c" 1>&6
|
|---|
| 1924 | echo "configure:1925: checking for file" >&5
|
|---|
| 1925 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 1926 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1927 | else
|
|---|
| 1928 | case $MAGIC_CMD in
|
|---|
| 1929 | /*)
|
|---|
| 1930 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 1931 | ;;
|
|---|
| 1932 | ?:/*)
|
|---|
| 1933 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 1934 | ;;
|
|---|
| 1935 | *)
|
|---|
| 1936 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 1937 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1938 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 1939 | for ac_dir in $ac_dummy; do
|
|---|
| 1940 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1941 | if test -f $ac_dir/file; then
|
|---|
| 1942 | lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
|---|
| 1943 | if test -n "$file_magic_test_file"; then
|
|---|
| 1944 | case $deplibs_check_method in
|
|---|
| 1945 | "file_magic "*)
|
|---|
| 1946 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 1947 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1948 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 1949 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 1950 | :
|
|---|
| 1951 | else
|
|---|
| 1952 | cat <<EOF 1>&2
|
|---|
| 1953 |
|
|---|
| 1954 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 1955 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 1956 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 1957 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 1958 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 1959 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 1960 | *** may want to report the problem to your system manager and/or to
|
|---|
| 1961 | *** bug-libtool@gnu.org
|
|---|
| 1962 |
|
|---|
| 1963 | EOF
|
|---|
| 1964 | fi ;;
|
|---|
| 1965 | esac
|
|---|
| 1966 | fi
|
|---|
| 1967 | break
|
|---|
| 1968 | fi
|
|---|
| 1969 | done
|
|---|
| 1970 | IFS="$ac_save_ifs"
|
|---|
| 1971 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 1972 | ;;
|
|---|
| 1973 | esac
|
|---|
| 1974 | fi
|
|---|
| 1975 |
|
|---|
| 1976 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1977 | if test -n "$MAGIC_CMD"; then
|
|---|
| 1978 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 1979 | else
|
|---|
| 1980 | echo "$ac_t""no" 1>&6
|
|---|
| 1981 | fi
|
|---|
| 1982 |
|
|---|
| 1983 | else
|
|---|
| 1984 | MAGIC_CMD=:
|
|---|
| 1985 | fi
|
|---|
| 1986 | fi
|
|---|
| 1987 |
|
|---|
| 1988 | fi
|
|---|
| 1989 | ;;
|
|---|
| 1990 | esac
|
|---|
| 1991 |
|
|---|
| 1992 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|---|
| 1993 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|---|
| 1994 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1995 | echo "configure:1996: checking for $ac_word" >&5
|
|---|
| 1996 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1997 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1998 | else
|
|---|
| 1999 | if test -n "$RANLIB"; then
|
|---|
| 2000 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 2001 | else
|
|---|
| 2002 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2003 | ac_dummy="$PATH"
|
|---|
| 2004 | for ac_dir in $ac_dummy; do
|
|---|
| 2005 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2006 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2007 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2008 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|---|
| 2009 | break
|
|---|
| 2010 | fi
|
|---|
| 2011 | done
|
|---|
| 2012 | IFS="$ac_save_ifs"
|
|---|
| 2013 | fi
|
|---|
| 2014 | fi
|
|---|
| 2015 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 2016 | if test -n "$RANLIB"; then
|
|---|
| 2017 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 2018 | else
|
|---|
| 2019 | echo "$ac_t""no" 1>&6
|
|---|
| 2020 | fi
|
|---|
| 2021 |
|
|---|
| 2022 |
|
|---|
| 2023 | if test -z "$ac_cv_prog_RANLIB"; then
|
|---|
| 2024 | if test -n "$ac_tool_prefix"; then
|
|---|
| 2025 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 2026 | set dummy ranlib; ac_word=$2
|
|---|
| 2027 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2028 | echo "configure:2029: checking for $ac_word" >&5
|
|---|
| 2029 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 2030 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2031 | else
|
|---|
| 2032 | if test -n "$RANLIB"; then
|
|---|
| 2033 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 2034 | else
|
|---|
| 2035 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2036 | ac_dummy="$PATH"
|
|---|
| 2037 | for ac_dir in $ac_dummy; do
|
|---|
| 2038 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2039 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2040 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2041 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 2042 | break
|
|---|
| 2043 | fi
|
|---|
| 2044 | done
|
|---|
| 2045 | IFS="$ac_save_ifs"
|
|---|
| 2046 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 2047 | fi
|
|---|
| 2048 | fi
|
|---|
| 2049 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 2050 | if test -n "$RANLIB"; then
|
|---|
| 2051 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 2052 | else
|
|---|
| 2053 | echo "$ac_t""no" 1>&6
|
|---|
| 2054 | fi
|
|---|
| 2055 |
|
|---|
| 2056 | else
|
|---|
| 2057 | RANLIB=":"
|
|---|
| 2058 | fi
|
|---|
| 2059 | fi
|
|---|
| 2060 |
|
|---|
| 2061 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|---|
| 2062 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|---|
| 2063 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2064 | echo "configure:2065: checking for $ac_word" >&5
|
|---|
| 2065 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 2066 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2067 | else
|
|---|
| 2068 | if test -n "$STRIP"; then
|
|---|
| 2069 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 2070 | else
|
|---|
| 2071 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2072 | ac_dummy="$PATH"
|
|---|
| 2073 | for ac_dir in $ac_dummy; do
|
|---|
| 2074 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2075 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2076 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2077 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
|---|
| 2078 | break
|
|---|
| 2079 | fi
|
|---|
| 2080 | done
|
|---|
| 2081 | IFS="$ac_save_ifs"
|
|---|
| 2082 | fi
|
|---|
| 2083 | fi
|
|---|
| 2084 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 2085 | if test -n "$STRIP"; then
|
|---|
| 2086 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 2087 | else
|
|---|
| 2088 | echo "$ac_t""no" 1>&6
|
|---|
| 2089 | fi
|
|---|
| 2090 |
|
|---|
| 2091 |
|
|---|
| 2092 | if test -z "$ac_cv_prog_STRIP"; then
|
|---|
| 2093 | if test -n "$ac_tool_prefix"; then
|
|---|
| 2094 | # Extract the first word of "strip", so it can be a program name with args.
|
|---|
| 2095 | set dummy strip; ac_word=$2
|
|---|
| 2096 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2097 | echo "configure:2098: checking for $ac_word" >&5
|
|---|
| 2098 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 2099 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2100 | else
|
|---|
| 2101 | if test -n "$STRIP"; then
|
|---|
| 2102 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 2103 | else
|
|---|
| 2104 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2105 | ac_dummy="$PATH"
|
|---|
| 2106 | for ac_dir in $ac_dummy; do
|
|---|
| 2107 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2108 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2109 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2110 | ac_cv_prog_STRIP="strip"
|
|---|
| 2111 | break
|
|---|
| 2112 | fi
|
|---|
| 2113 | done
|
|---|
| 2114 | IFS="$ac_save_ifs"
|
|---|
| 2115 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
|---|
| 2116 | fi
|
|---|
| 2117 | fi
|
|---|
| 2118 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 2119 | if test -n "$STRIP"; then
|
|---|
| 2120 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 2121 | else
|
|---|
| 2122 | echo "$ac_t""no" 1>&6
|
|---|
| 2123 | fi
|
|---|
| 2124 |
|
|---|
| 2125 | else
|
|---|
| 2126 | STRIP=":"
|
|---|
| 2127 | fi
|
|---|
| 2128 | fi
|
|---|
| 2129 |
|
|---|
| 2130 |
|
|---|
| 2131 | # Check for any special flags to pass to ltconfig.
|
|---|
| 2132 | libtool_flags="--cache-file=$cache_file"
|
|---|
| 2133 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
|---|
| 2134 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
|---|
| 2135 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
|---|
| 2136 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
|
|---|
| 2137 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
|---|
| 2138 |
|
|---|
| 2139 |
|
|---|
| 2140 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
|---|
| 2141 | if test "${enable_libtool_lock+set}" = set; then
|
|---|
| 2142 | enableval="$enable_libtool_lock"
|
|---|
| 2143 | :
|
|---|
| 2144 | fi
|
|---|
| 2145 |
|
|---|
| 2146 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
|---|
| 2147 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
|---|
| 2148 |
|
|---|
| 2149 | # Check whether --with-pic or --without-pic was given.
|
|---|
| 2150 | if test "${with_pic+set}" = set; then
|
|---|
| 2151 | withval="$with_pic"
|
|---|
| 2152 | pic_mode="$withval"
|
|---|
| 2153 | else
|
|---|
| 2154 | pic_mode=default
|
|---|
| 2155 | fi
|
|---|
| 2156 |
|
|---|
| 2157 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
|
|---|
| 2158 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
|---|
| 2159 |
|
|---|
| 2160 | # Some flags need to be propagated to the compiler or linker for good
|
|---|
| 2161 | # libtool support.
|
|---|
| 2162 | case $host in
|
|---|
| 2163 | *-*-irix6*)
|
|---|
| 2164 | # Find out which ABI we are using.
|
|---|
| 2165 | echo '#line 2166 "configure"' > conftest.$ac_ext
|
|---|
| 2166 | if { (eval echo configure:2167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2167 | if test "$lt_cv_prog_gnu_ld" = yes; then
|
|---|
| 2168 | case `/usr/bin/file conftest.$ac_objext` in
|
|---|
| 2169 | *32-bit*)
|
|---|
| 2170 | LD="${LD-ld} -melf32bsmip"
|
|---|
| 2171 | ;;
|
|---|
| 2172 | *N32*)
|
|---|
| 2173 | LD="${LD-ld} -melf32bmipn32"
|
|---|
| 2174 | ;;
|
|---|
| 2175 | *64-bit*)
|
|---|
| 2176 | LD="${LD-ld} -melf64bmip"
|
|---|
| 2177 | ;;
|
|---|
| 2178 | esac
|
|---|
| 2179 | else
|
|---|
| 2180 | case `/usr/bin/file conftest.$ac_objext` in
|
|---|
| 2181 | *32-bit*)
|
|---|
| 2182 | LD="${LD-ld} -32"
|
|---|
| 2183 | ;;
|
|---|
| 2184 | *N32*)
|
|---|
| 2185 | LD="${LD-ld} -n32"
|
|---|
| 2186 | ;;
|
|---|
| 2187 | *64-bit*)
|
|---|
| 2188 | LD="${LD-ld} -64"
|
|---|
| 2189 | ;;
|
|---|
| 2190 | esac
|
|---|
| 2191 | fi
|
|---|
| 2192 | fi
|
|---|
| 2193 | rm -rf conftest*
|
|---|
| 2194 | ;;
|
|---|
| 2195 |
|
|---|
| 2196 | ia64-*-hpux*)
|
|---|
| 2197 | # Find out which ABI we are using.
|
|---|
| 2198 | echo 'int i;' > conftest.$ac_ext
|
|---|
| 2199 | if { (eval echo configure:2200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2200 | case "`/usr/bin/file conftest.o`" in
|
|---|
| 2201 | *ELF-32*)
|
|---|
| 2202 | HPUX_IA64_MODE="32"
|
|---|
| 2203 | ;;
|
|---|
| 2204 | *ELF-64*)
|
|---|
| 2205 | HPUX_IA64_MODE="64"
|
|---|
| 2206 | ;;
|
|---|
| 2207 | esac
|
|---|
| 2208 | fi
|
|---|
| 2209 | rm -rf conftest*
|
|---|
| 2210 | ;;
|
|---|
| 2211 |
|
|---|
| 2212 | *-*-sco3.2v5*)
|
|---|
| 2213 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
|---|
| 2214 | SAVE_CFLAGS="$CFLAGS"
|
|---|
| 2215 | CFLAGS="$CFLAGS -belf"
|
|---|
| 2216 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
|---|
| 2217 | echo "configure:2218: checking whether the C compiler needs -belf" >&5
|
|---|
| 2218 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
|
|---|
| 2219 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2220 | else
|
|---|
| 2221 |
|
|---|
| 2222 | ac_ext=c
|
|---|
| 2223 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2224 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2225 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2226 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2227 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2228 |
|
|---|
| 2229 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2230 | #line 2231 "configure"
|
|---|
| 2231 | #include "confdefs.h"
|
|---|
| 2232 |
|
|---|
| 2233 | int main() {
|
|---|
| 2234 |
|
|---|
| 2235 | ; return 0; }
|
|---|
| 2236 | EOF
|
|---|
| 2237 | if { (eval echo configure:2238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2238 | rm -rf conftest*
|
|---|
| 2239 | lt_cv_cc_needs_belf=yes
|
|---|
| 2240 | else
|
|---|
| 2241 | echo "configure: failed program was:" >&5
|
|---|
| 2242 | cat conftest.$ac_ext >&5
|
|---|
| 2243 | rm -rf conftest*
|
|---|
| 2244 | lt_cv_cc_needs_belf=no
|
|---|
| 2245 | fi
|
|---|
| 2246 | rm -f conftest*
|
|---|
| 2247 | ac_ext=c
|
|---|
| 2248 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2249 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2250 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2251 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2252 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2253 |
|
|---|
| 2254 | fi
|
|---|
| 2255 |
|
|---|
| 2256 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
|---|
| 2257 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
|---|
| 2258 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
|---|
| 2259 | CFLAGS="$SAVE_CFLAGS"
|
|---|
| 2260 | fi
|
|---|
| 2261 | ;;
|
|---|
| 2262 |
|
|---|
| 2263 |
|
|---|
| 2264 | esac
|
|---|
| 2265 |
|
|---|
| 2266 |
|
|---|
| 2267 | # Save cache, so that ltconfig can load it
|
|---|
| 2268 | cat > confcache <<\EOF
|
|---|
| 2269 | # This file is a shell script that caches the results of configure
|
|---|
| 2270 | # tests run on this system so they can be shared between configure
|
|---|
| 2271 | # scripts and configure runs. It is not useful on other systems.
|
|---|
| 2272 | # If it contains results you don't want to keep, you may remove or edit it.
|
|---|
| 2273 | #
|
|---|
| 2274 | # By default, configure uses ./config.cache as the cache file,
|
|---|
| 2275 | # creating it if it does not exist already. You can give configure
|
|---|
| 2276 | # the --cache-file=FILE option to use a different cache file; that is
|
|---|
| 2277 | # what configure does when it calls configure scripts in
|
|---|
| 2278 | # subdirectories, so they share the cache.
|
|---|
| 2279 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|---|
| 2280 | # config.status only pays attention to the cache file if you give it the
|
|---|
| 2281 | # --recheck option to rerun configure.
|
|---|
| 2282 | #
|
|---|
| 2283 | EOF
|
|---|
| 2284 | # The following way of writing the cache mishandles newlines in values,
|
|---|
| 2285 | # but we know of no workaround that is simple, portable, and efficient.
|
|---|
| 2286 | # So, don't put newlines in cache variables' values.
|
|---|
| 2287 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
|---|
| 2288 | # and sets the high bit in the cache file unless we assign to the vars.
|
|---|
| 2289 | (set) 2>&1 |
|
|---|
| 2290 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|---|
| 2291 | *ac_space=\ *)
|
|---|
| 2292 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
|---|
| 2293 | # turns \\\\ into \\, and sed turns \\ into \).
|
|---|
| 2294 | sed -n \
|
|---|
| 2295 | -e "s/'/'\\\\''/g" \
|
|---|
| 2296 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|---|
| 2297 | ;;
|
|---|
| 2298 | *)
|
|---|
| 2299 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|---|
| 2300 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|---|
| 2301 | ;;
|
|---|
| 2302 | esac >> confcache
|
|---|
| 2303 | if cmp -s $cache_file confcache; then
|
|---|
| 2304 | :
|
|---|
| 2305 | else
|
|---|
| 2306 | if test -w $cache_file; then
|
|---|
| 2307 | echo "updating cache $cache_file"
|
|---|
| 2308 | cat confcache > $cache_file
|
|---|
| 2309 | else
|
|---|
| 2310 | echo "not updating unwritable cache $cache_file"
|
|---|
| 2311 | fi
|
|---|
| 2312 | fi
|
|---|
| 2313 | rm -f confcache
|
|---|
| 2314 |
|
|---|
| 2315 |
|
|---|
| 2316 | # Actually configure libtool. ac_aux_dir is where install-sh is found.
|
|---|
| 2317 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
|---|
| 2318 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
|---|
| 2319 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
|---|
| 2320 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
|---|
| 2321 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
|---|
| 2322 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
|
|---|
| 2323 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
|---|
| 2324 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|
|---|
| 2325 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
|---|
| 2326 |
|
|---|
| 2327 | # Reload cache, that may have been modified by ltconfig
|
|---|
| 2328 | if test -r "$cache_file"; then
|
|---|
| 2329 | echo "loading cache $cache_file"
|
|---|
| 2330 | . $cache_file
|
|---|
| 2331 | else
|
|---|
| 2332 | echo "creating cache $cache_file"
|
|---|
| 2333 | > $cache_file
|
|---|
| 2334 | fi
|
|---|
| 2335 |
|
|---|
| 2336 |
|
|---|
| 2337 | # This can be used to rebuild libtool when needed
|
|---|
| 2338 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
|
|---|
| 2339 |
|
|---|
| 2340 | # Always use our own libtool.
|
|---|
| 2341 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
|---|
| 2342 |
|
|---|
| 2343 | # Redirect the config.log output again, so that the ltconfig log is not
|
|---|
| 2344 | # clobbered by the next message.
|
|---|
| 2345 | exec 5>>./config.log
|
|---|
| 2346 |
|
|---|
| 2347 |
|
|---|
| 2348 |
|
|---|
| 2349 |
|
|---|
| 2350 |
|
|---|
| 2351 |
|
|---|
| 2352 |
|
|---|
| 2353 | # Check whether --enable-targets or --disable-targets was given.
|
|---|
| 2354 | if test "${enable_targets+set}" = set; then
|
|---|
| 2355 | enableval="$enable_targets"
|
|---|
| 2356 | case "${enableval}" in
|
|---|
| 2357 | yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
|
|---|
| 2358 | ;;
|
|---|
| 2359 | no) enable_targets= ;;
|
|---|
| 2360 | *) enable_targets=$enableval ;;
|
|---|
| 2361 | esac
|
|---|
| 2362 | fi
|
|---|
| 2363 | # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
|
|---|
| 2364 | if test "${enable_commonbfdlib+set}" = set; then
|
|---|
| 2365 | enableval="$enable_commonbfdlib"
|
|---|
| 2366 | case "${enableval}" in
|
|---|
| 2367 | yes) commonbfdlib=true ;;
|
|---|
| 2368 | no) commonbfdlib=false ;;
|
|---|
| 2369 | *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
|
|---|
| 2370 | esac
|
|---|
| 2371 | fi
|
|---|
| 2372 |
|
|---|
| 2373 | build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
|---|
| 2374 | # Check whether --enable-build-warnings or --disable-build-warnings was given.
|
|---|
| 2375 | if test "${enable_build_warnings+set}" = set; then
|
|---|
| 2376 | enableval="$enable_build_warnings"
|
|---|
| 2377 | case "${enableval}" in
|
|---|
| 2378 | yes) ;;
|
|---|
| 2379 | no) build_warnings="-w";;
|
|---|
| 2380 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
|---|
| 2381 | build_warnings="${build_warnings} ${t}";;
|
|---|
| 2382 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
|---|
| 2383 | build_warnings="${t} ${build_warnings}";;
|
|---|
| 2384 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
|
|---|
| 2385 | esac
|
|---|
| 2386 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
|
|---|
| 2387 | echo "Setting warning flags = $build_warnings" 6>&1
|
|---|
| 2388 | fi
|
|---|
| 2389 | fi
|
|---|
| 2390 | WARN_CFLAGS=""
|
|---|
| 2391 | if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
|
|---|
| 2392 | WARN_CFLAGS="${build_warnings}"
|
|---|
| 2393 | fi
|
|---|
| 2394 |
|
|---|
| 2395 |
|
|---|
| 2396 |
|
|---|
| 2397 |
|
|---|
| 2398 |
|
|---|
| 2399 |
|
|---|
| 2400 | if test -z "$target" ; then
|
|---|
| 2401 | { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
|
|---|
| 2402 | fi
|
|---|
| 2403 |
|
|---|
| 2404 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
|---|
| 2405 | echo "configure:2406: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
|---|
| 2406 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
|---|
| 2407 | if test "${enable_maintainer_mode+set}" = set; then
|
|---|
| 2408 | enableval="$enable_maintainer_mode"
|
|---|
| 2409 | USE_MAINTAINER_MODE=$enableval
|
|---|
| 2410 | else
|
|---|
| 2411 | USE_MAINTAINER_MODE=no
|
|---|
| 2412 | fi
|
|---|
| 2413 |
|
|---|
| 2414 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
|---|
| 2415 |
|
|---|
| 2416 |
|
|---|
| 2417 | if test $USE_MAINTAINER_MODE = yes; then
|
|---|
| 2418 | MAINTAINER_MODE_TRUE=
|
|---|
| 2419 | MAINTAINER_MODE_FALSE='#'
|
|---|
| 2420 | else
|
|---|
| 2421 | MAINTAINER_MODE_TRUE='#'
|
|---|
| 2422 | MAINTAINER_MODE_FALSE=
|
|---|
| 2423 | fi
|
|---|
| 2424 | MAINT=$MAINTAINER_MODE_TRUE
|
|---|
| 2425 |
|
|---|
| 2426 |
|
|---|
| 2427 | echo $ac_n "checking whether to install libbfd""... $ac_c" 1>&6
|
|---|
| 2428 | echo "configure:2429: checking whether to install libbfd" >&5
|
|---|
| 2429 | # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
|
|---|
| 2430 | if test "${enable_install_libbfd+set}" = set; then
|
|---|
| 2431 | enableval="$enable_install_libbfd"
|
|---|
| 2432 | install_libbfd_p=$enableval
|
|---|
| 2433 | else
|
|---|
| 2434 | if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
|
|---|
| 2435 | install_libbfd_p=yes
|
|---|
| 2436 | else
|
|---|
| 2437 | install_libbfd_p=no
|
|---|
| 2438 | fi
|
|---|
| 2439 | fi
|
|---|
| 2440 |
|
|---|
| 2441 | echo "$ac_t""$install_libbfd_p" 1>&6
|
|---|
| 2442 |
|
|---|
| 2443 |
|
|---|
| 2444 | if test $install_libbfd_p = yes; then
|
|---|
| 2445 | INSTALL_LIBBFD_TRUE=
|
|---|
| 2446 | INSTALL_LIBBFD_FALSE='#'
|
|---|
| 2447 | else
|
|---|
| 2448 | INSTALL_LIBBFD_TRUE='#'
|
|---|
| 2449 | INSTALL_LIBBFD_FALSE=
|
|---|
| 2450 | fi
|
|---|
| 2451 | # libbfd.a is a host library containing target dependent code
|
|---|
| 2452 | bfdlibdir='$(libdir)'
|
|---|
| 2453 | bfdincludedir='$(includedir)'
|
|---|
| 2454 | if test "${host}" != "${target}"; then
|
|---|
| 2455 | bfdlibdir='$(exec_prefix)/$(host_alias)/$(target_alias)/lib'
|
|---|
| 2456 | bfdincludedir='$(exec_prefix)/$(host_alias)/$(target_alias)/include'
|
|---|
| 2457 | fi
|
|---|
| 2458 |
|
|---|
| 2459 |
|
|---|
| 2460 |
|
|---|
| 2461 |
|
|---|
| 2462 |
|
|---|
| 2463 |
|
|---|
| 2464 |
|
|---|
| 2465 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 2466 | echo "configure:2467: checking for executable suffix" >&5
|
|---|
| 2467 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 2468 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2469 | else
|
|---|
| 2470 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
|---|
| 2471 | ac_cv_exeext=.exe
|
|---|
| 2472 | else
|
|---|
| 2473 | rm -f conftest*
|
|---|
| 2474 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 2475 | ac_cv_exeext=
|
|---|
| 2476 | if { (eval echo configure:2477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 2477 | for file in conftest.*; do
|
|---|
| 2478 | case $file in
|
|---|
| 2479 | *.c | *.o | *.obj) ;;
|
|---|
| 2480 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 2481 | esac
|
|---|
| 2482 | done
|
|---|
| 2483 | else
|
|---|
| 2484 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 2485 | fi
|
|---|
| 2486 | rm -f conftest*
|
|---|
| 2487 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 2488 | fi
|
|---|
| 2489 | fi
|
|---|
| 2490 |
|
|---|
| 2491 | EXEEXT=""
|
|---|
| 2492 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 2493 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 2494 | ac_exeext=$EXEEXT
|
|---|
| 2495 |
|
|---|
| 2496 |
|
|---|
| 2497 | # host-specific stuff:
|
|---|
| 2498 |
|
|---|
| 2499 | # Extract the first word of "gcc", so it can be a program name with args.
|
|---|
| 2500 | set dummy gcc; ac_word=$2
|
|---|
| 2501 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2502 | echo "configure:2503: checking for $ac_word" >&5
|
|---|
| 2503 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 2504 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2505 | else
|
|---|
| 2506 | if test -n "$CC"; then
|
|---|
| 2507 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 2508 | else
|
|---|
| 2509 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2510 | ac_dummy="$PATH"
|
|---|
| 2511 | for ac_dir in $ac_dummy; do
|
|---|
| 2512 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2513 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2514 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2515 | ac_cv_prog_CC="gcc"
|
|---|
| 2516 | break
|
|---|
| 2517 | fi
|
|---|
| 2518 | done
|
|---|
| 2519 | IFS="$ac_save_ifs"
|
|---|
| 2520 | fi
|
|---|
| 2521 | fi
|
|---|
| 2522 | CC="$ac_cv_prog_CC"
|
|---|
| 2523 | if test -n "$CC"; then
|
|---|
| 2524 | echo "$ac_t""$CC" 1>&6
|
|---|
| 2525 | else
|
|---|
| 2526 | echo "$ac_t""no" 1>&6
|
|---|
| 2527 | fi
|
|---|
| 2528 |
|
|---|
| 2529 | if test -z "$CC"; then
|
|---|
| 2530 | # Extract the first word of "cc", so it can be a program name with args.
|
|---|
| 2531 | set dummy cc; ac_word=$2
|
|---|
| 2532 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2533 | echo "configure:2534: checking for $ac_word" >&5
|
|---|
| 2534 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 2535 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2536 | else
|
|---|
| 2537 | if test -n "$CC"; then
|
|---|
| 2538 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 2539 | else
|
|---|
| 2540 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2541 | ac_prog_rejected=no
|
|---|
| 2542 | ac_dummy="$PATH"
|
|---|
| 2543 | for ac_dir in $ac_dummy; do
|
|---|
| 2544 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2545 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2546 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2547 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
|---|
| 2548 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
|---|
| 2549 | ac_prog_rejected=yes
|
|---|
| 2550 | continue
|
|---|
| 2551 | fi
|
|---|
| 2552 | ac_cv_prog_CC="cc"
|
|---|
| 2553 | break
|
|---|
| 2554 | fi
|
|---|
| 2555 | done
|
|---|
| 2556 | IFS="$ac_save_ifs"
|
|---|
| 2557 | if test $ac_prog_rejected = yes; then
|
|---|
| 2558 | # We found a bogon in the path, so make sure we never use it.
|
|---|
| 2559 | set dummy $ac_cv_prog_CC
|
|---|
| 2560 | shift
|
|---|
| 2561 | if test $# -gt 0; then
|
|---|
| 2562 | # We chose a different compiler from the bogus one.
|
|---|
| 2563 | # However, it has the same basename, so the bogon will be chosen
|
|---|
| 2564 | # first if we set CC to just the basename; use the full file name.
|
|---|
| 2565 | shift
|
|---|
| 2566 | set dummy "$ac_dir/$ac_word" "$@"
|
|---|
| 2567 | shift
|
|---|
| 2568 | ac_cv_prog_CC="$@"
|
|---|
| 2569 | fi
|
|---|
| 2570 | fi
|
|---|
| 2571 | fi
|
|---|
| 2572 | fi
|
|---|
| 2573 | CC="$ac_cv_prog_CC"
|
|---|
| 2574 | if test -n "$CC"; then
|
|---|
| 2575 | echo "$ac_t""$CC" 1>&6
|
|---|
| 2576 | else
|
|---|
| 2577 | echo "$ac_t""no" 1>&6
|
|---|
| 2578 | fi
|
|---|
| 2579 |
|
|---|
| 2580 | if test -z "$CC"; then
|
|---|
| 2581 | case "`uname -s`" in
|
|---|
| 2582 | *win32* | *WIN32*)
|
|---|
| 2583 | # Extract the first word of "cl", so it can be a program name with args.
|
|---|
| 2584 | set dummy cl; ac_word=$2
|
|---|
| 2585 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2586 | echo "configure:2587: checking for $ac_word" >&5
|
|---|
| 2587 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 2588 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2589 | else
|
|---|
| 2590 | if test -n "$CC"; then
|
|---|
| 2591 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 2592 | else
|
|---|
| 2593 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2594 | ac_dummy="$PATH"
|
|---|
| 2595 | for ac_dir in $ac_dummy; do
|
|---|
| 2596 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2597 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2598 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2599 | ac_cv_prog_CC="cl"
|
|---|
| 2600 | break
|
|---|
| 2601 | fi
|
|---|
| 2602 | done
|
|---|
| 2603 | IFS="$ac_save_ifs"
|
|---|
| 2604 | fi
|
|---|
| 2605 | fi
|
|---|
| 2606 | CC="$ac_cv_prog_CC"
|
|---|
| 2607 | if test -n "$CC"; then
|
|---|
| 2608 | echo "$ac_t""$CC" 1>&6
|
|---|
| 2609 | else
|
|---|
| 2610 | echo "$ac_t""no" 1>&6
|
|---|
| 2611 | fi
|
|---|
| 2612 | ;;
|
|---|
| 2613 | esac
|
|---|
| 2614 | fi
|
|---|
| 2615 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|---|
| 2616 | fi
|
|---|
| 2617 |
|
|---|
| 2618 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|---|
| 2619 | echo "configure:2620: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|---|
| 2620 |
|
|---|
| 2621 | ac_ext=c
|
|---|
| 2622 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2623 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2624 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2625 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2626 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2627 |
|
|---|
| 2628 | cat > conftest.$ac_ext << EOF
|
|---|
| 2629 |
|
|---|
| 2630 | #line 2631 "configure"
|
|---|
| 2631 | #include "confdefs.h"
|
|---|
| 2632 |
|
|---|
| 2633 | main(){return(0);}
|
|---|
| 2634 | EOF
|
|---|
| 2635 | if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2636 | ac_cv_prog_cc_works=yes
|
|---|
| 2637 | # If we can't run a trivial program, we are probably using a cross compiler.
|
|---|
| 2638 | if (./conftest; exit) 2>/dev/null; then
|
|---|
| 2639 | ac_cv_prog_cc_cross=no
|
|---|
| 2640 | else
|
|---|
| 2641 | ac_cv_prog_cc_cross=yes
|
|---|
| 2642 | fi
|
|---|
| 2643 | else
|
|---|
| 2644 | echo "configure: failed program was:" >&5
|
|---|
| 2645 | cat conftest.$ac_ext >&5
|
|---|
| 2646 | ac_cv_prog_cc_works=no
|
|---|
| 2647 | fi
|
|---|
| 2648 | rm -fr conftest*
|
|---|
| 2649 | ac_ext=c
|
|---|
| 2650 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2651 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2652 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2653 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2654 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2655 |
|
|---|
| 2656 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|---|
| 2657 | if test $ac_cv_prog_cc_works = no; then
|
|---|
| 2658 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 2659 | fi
|
|---|
| 2660 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|---|
| 2661 | echo "configure:2662: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|---|
| 2662 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|---|
| 2663 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2664 |
|
|---|
| 2665 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|---|
| 2666 | echo "configure:2667: checking whether we are using GNU C" >&5
|
|---|
| 2667 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|---|
| 2668 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2669 | else
|
|---|
| 2670 | cat > conftest.c <<EOF
|
|---|
| 2671 | #ifdef __GNUC__
|
|---|
| 2672 | yes;
|
|---|
| 2673 | #endif
|
|---|
| 2674 | EOF
|
|---|
| 2675 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|---|
| 2676 | ac_cv_prog_gcc=yes
|
|---|
| 2677 | else
|
|---|
| 2678 | ac_cv_prog_gcc=no
|
|---|
| 2679 | fi
|
|---|
| 2680 | fi
|
|---|
| 2681 |
|
|---|
| 2682 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|---|
| 2683 |
|
|---|
| 2684 | if test $ac_cv_prog_gcc = yes; then
|
|---|
| 2685 | GCC=yes
|
|---|
| 2686 | else
|
|---|
| 2687 | GCC=
|
|---|
| 2688 | fi
|
|---|
| 2689 |
|
|---|
| 2690 | ac_test_CFLAGS="${CFLAGS+set}"
|
|---|
| 2691 | ac_save_CFLAGS="$CFLAGS"
|
|---|
| 2692 | CFLAGS=
|
|---|
| 2693 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|---|
| 2694 | echo "configure:2695: checking whether ${CC-cc} accepts -g" >&5
|
|---|
| 2695 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|---|
| 2696 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2697 | else
|
|---|
| 2698 | echo 'void f(){}' > conftest.c
|
|---|
| 2699 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|---|
| 2700 | ac_cv_prog_cc_g=yes
|
|---|
| 2701 | else
|
|---|
| 2702 | ac_cv_prog_cc_g=no
|
|---|
| 2703 | fi
|
|---|
| 2704 | rm -f conftest*
|
|---|
| 2705 |
|
|---|
| 2706 | fi
|
|---|
| 2707 |
|
|---|
| 2708 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|---|
| 2709 | if test "$ac_test_CFLAGS" = set; then
|
|---|
| 2710 | CFLAGS="$ac_save_CFLAGS"
|
|---|
| 2711 | elif test $ac_cv_prog_cc_g = yes; then
|
|---|
| 2712 | if test "$GCC" = yes; then
|
|---|
| 2713 | CFLAGS="-g -O2"
|
|---|
| 2714 | else
|
|---|
| 2715 | CFLAGS="-g"
|
|---|
| 2716 | fi
|
|---|
| 2717 | else
|
|---|
| 2718 | if test "$GCC" = yes; then
|
|---|
| 2719 | CFLAGS="-O2"
|
|---|
| 2720 | else
|
|---|
| 2721 | CFLAGS=
|
|---|
| 2722 | fi
|
|---|
| 2723 | fi
|
|---|
| 2724 |
|
|---|
| 2725 |
|
|---|
| 2726 | ALL_LINGUAS="fr sv es da de id pt_BR ro"
|
|---|
| 2727 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
|---|
| 2728 | echo "configure:2729: checking how to run the C preprocessor" >&5
|
|---|
| 2729 | # On Suns, sometimes $CPP names a directory.
|
|---|
| 2730 | if test -n "$CPP" && test -d "$CPP"; then
|
|---|
| 2731 | CPP=
|
|---|
| 2732 | fi
|
|---|
| 2733 | if test -z "$CPP"; then
|
|---|
| 2734 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
|---|
| 2735 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2736 | else
|
|---|
| 2737 | # This must be in double quotes, not single quotes, because CPP may get
|
|---|
| 2738 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
|---|
| 2739 | CPP="${CC-cc} -E"
|
|---|
| 2740 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
|---|
| 2741 | # not just through cpp.
|
|---|
| 2742 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2743 | #include <sys/types.h>
|
|---|
| 2744 | #line 2745 "configure"
|
|---|
| 2745 | #include "confdefs.h"
|
|---|
| 2746 | #include <assert.h>
|
|---|
| 2747 | Syntax Error
|
|---|
| 2748 | EOF
|
|---|
| 2749 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2750 | { (eval echo configure:2751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2751 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2752 | if test -z "$ac_err"; then
|
|---|
| 2753 | :
|
|---|
| 2754 | else
|
|---|
| 2755 | echo "$ac_err" >&5
|
|---|
| 2756 | echo "configure: failed program was:" >&5
|
|---|
| 2757 | cat conftest.$ac_ext >&5
|
|---|
| 2758 | rm -rf conftest*
|
|---|
| 2759 | CPP="${CC-cc} -E -traditional-cpp"
|
|---|
| 2760 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2761 | #include <sys/types.h>
|
|---|
| 2762 | #line 2763 "configure"
|
|---|
| 2763 | #include "confdefs.h"
|
|---|
| 2764 | #include <assert.h>
|
|---|
| 2765 | Syntax Error
|
|---|
| 2766 | EOF
|
|---|
| 2767 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2768 | { (eval echo configure:2769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2769 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2770 | if test -z "$ac_err"; then
|
|---|
| 2771 | :
|
|---|
| 2772 | else
|
|---|
| 2773 | echo "$ac_err" >&5
|
|---|
| 2774 | echo "configure: failed program was:" >&5
|
|---|
| 2775 | cat conftest.$ac_ext >&5
|
|---|
| 2776 | rm -rf conftest*
|
|---|
| 2777 | CPP="${CC-cc} -nologo -E"
|
|---|
| 2778 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2779 | #include <sys/types.h>
|
|---|
| 2780 | #line 2781 "configure"
|
|---|
| 2781 | #include "confdefs.h"
|
|---|
| 2782 | #include <assert.h>
|
|---|
| 2783 | Syntax Error
|
|---|
| 2784 | EOF
|
|---|
| 2785 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2786 | { (eval echo configure:2787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2787 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2788 | if test -z "$ac_err"; then
|
|---|
| 2789 | :
|
|---|
| 2790 | else
|
|---|
| 2791 | echo "$ac_err" >&5
|
|---|
| 2792 | echo "configure: failed program was:" >&5
|
|---|
| 2793 | cat conftest.$ac_ext >&5
|
|---|
| 2794 | rm -rf conftest*
|
|---|
| 2795 | CPP=/lib/cpp
|
|---|
| 2796 | fi
|
|---|
| 2797 | rm -f conftest*
|
|---|
| 2798 | fi
|
|---|
| 2799 | rm -f conftest*
|
|---|
| 2800 | fi
|
|---|
| 2801 | rm -f conftest*
|
|---|
| 2802 | ac_cv_prog_CPP="$CPP"
|
|---|
| 2803 | fi
|
|---|
| 2804 | CPP="$ac_cv_prog_CPP"
|
|---|
| 2805 | else
|
|---|
| 2806 | ac_cv_prog_CPP="$CPP"
|
|---|
| 2807 | fi
|
|---|
| 2808 | echo "$ac_t""$CPP" 1>&6
|
|---|
| 2809 |
|
|---|
| 2810 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 2811 | set dummy ranlib; ac_word=$2
|
|---|
| 2812 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2813 | echo "configure:2814: checking for $ac_word" >&5
|
|---|
| 2814 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 2815 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2816 | else
|
|---|
| 2817 | if test -n "$RANLIB"; then
|
|---|
| 2818 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 2819 | else
|
|---|
| 2820 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2821 | ac_dummy="$PATH"
|
|---|
| 2822 | for ac_dir in $ac_dummy; do
|
|---|
| 2823 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2824 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2825 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2826 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 2827 | break
|
|---|
| 2828 | fi
|
|---|
| 2829 | done
|
|---|
| 2830 | IFS="$ac_save_ifs"
|
|---|
| 2831 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 2832 | fi
|
|---|
| 2833 | fi
|
|---|
| 2834 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 2835 | if test -n "$RANLIB"; then
|
|---|
| 2836 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 2837 | else
|
|---|
| 2838 | echo "$ac_t""no" 1>&6
|
|---|
| 2839 | fi
|
|---|
| 2840 |
|
|---|
| 2841 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
|---|
| 2842 | echo "configure:2843: checking for ANSI C header files" >&5
|
|---|
| 2843 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
|---|
| 2844 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2845 | else
|
|---|
| 2846 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2847 | #include <sys/types.h>
|
|---|
| 2848 | #line 2849 "configure"
|
|---|
| 2849 | #include "confdefs.h"
|
|---|
| 2850 | #include <stdlib.h>
|
|---|
| 2851 | #include <stdarg.h>
|
|---|
| 2852 | #include <string.h>
|
|---|
| 2853 | #include <float.h>
|
|---|
| 2854 | EOF
|
|---|
| 2855 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2856 | { (eval echo configure:2857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2857 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2858 | if test -z "$ac_err"; then
|
|---|
| 2859 | rm -rf conftest*
|
|---|
| 2860 | ac_cv_header_stdc=yes
|
|---|
| 2861 | else
|
|---|
| 2862 | echo "$ac_err" >&5
|
|---|
| 2863 | echo "configure: failed program was:" >&5
|
|---|
| 2864 | cat conftest.$ac_ext >&5
|
|---|
| 2865 | rm -rf conftest*
|
|---|
| 2866 | ac_cv_header_stdc=no
|
|---|
| 2867 | fi
|
|---|
| 2868 | rm -f conftest*
|
|---|
| 2869 |
|
|---|
| 2870 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2871 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|---|
| 2872 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2873 | #line 2874 "configure"
|
|---|
| 2874 | #include "confdefs.h"
|
|---|
| 2875 | #include <string.h>
|
|---|
| 2876 | EOF
|
|---|
| 2877 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 2878 | egrep "memchr" >/dev/null 2>&1; then
|
|---|
| 2879 | :
|
|---|
| 2880 | else
|
|---|
| 2881 | rm -rf conftest*
|
|---|
| 2882 | ac_cv_header_stdc=no
|
|---|
| 2883 | fi
|
|---|
| 2884 | rm -f conftest*
|
|---|
| 2885 |
|
|---|
| 2886 | fi
|
|---|
| 2887 |
|
|---|
| 2888 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2889 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|---|
| 2890 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2891 | #line 2892 "configure"
|
|---|
| 2892 | #include "confdefs.h"
|
|---|
| 2893 | #include <stdlib.h>
|
|---|
| 2894 | EOF
|
|---|
| 2895 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 2896 | egrep "free" >/dev/null 2>&1; then
|
|---|
| 2897 | :
|
|---|
| 2898 | else
|
|---|
| 2899 | rm -rf conftest*
|
|---|
| 2900 | ac_cv_header_stdc=no
|
|---|
| 2901 | fi
|
|---|
| 2902 | rm -f conftest*
|
|---|
| 2903 |
|
|---|
| 2904 | fi
|
|---|
| 2905 |
|
|---|
| 2906 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2907 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|---|
| 2908 | if test "$cross_compiling" = yes; then
|
|---|
| 2909 | :
|
|---|
| 2910 | else
|
|---|
| 2911 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2912 | #line 2913 "configure"
|
|---|
| 2913 | #include "confdefs.h"
|
|---|
| 2914 | #include <ctype.h>
|
|---|
| 2915 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|---|
| 2916 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|---|
| 2917 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|---|
| 2918 | int main () { int i; for (i = 0; i < 256; i++)
|
|---|
| 2919 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|---|
| 2920 | exit (0); }
|
|---|
| 2921 |
|
|---|
| 2922 | EOF
|
|---|
| 2923 | if { (eval echo configure:2924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 2924 | then
|
|---|
| 2925 | :
|
|---|
| 2926 | else
|
|---|
| 2927 | echo "configure: failed program was:" >&5
|
|---|
| 2928 | cat conftest.$ac_ext >&5
|
|---|
| 2929 | rm -fr conftest*
|
|---|
| 2930 | ac_cv_header_stdc=no
|
|---|
| 2931 | fi
|
|---|
| 2932 | rm -fr conftest*
|
|---|
| 2933 | fi
|
|---|
| 2934 |
|
|---|
| 2935 | fi
|
|---|
| 2936 | fi
|
|---|
| 2937 |
|
|---|
| 2938 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|---|
| 2939 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2940 | cat >> confdefs.h <<\EOF
|
|---|
| 2941 | #define STDC_HEADERS 1
|
|---|
| 2942 | EOF
|
|---|
| 2943 |
|
|---|
| 2944 | fi
|
|---|
| 2945 |
|
|---|
| 2946 | echo $ac_n "checking for working const""... $ac_c" 1>&6
|
|---|
| 2947 | echo "configure:2948: checking for working const" >&5
|
|---|
| 2948 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
|---|
| 2949 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2950 | else
|
|---|
| 2951 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2952 | #line 2953 "configure"
|
|---|
| 2953 | #include "confdefs.h"
|
|---|
| 2954 |
|
|---|
| 2955 | int main() {
|
|---|
| 2956 |
|
|---|
| 2957 | /* Ultrix mips cc rejects this. */
|
|---|
| 2958 | typedef int charset[2]; const charset x;
|
|---|
| 2959 | /* SunOS 4.1.1 cc rejects this. */
|
|---|
| 2960 | char const *const *ccp;
|
|---|
| 2961 | char **p;
|
|---|
| 2962 | /* NEC SVR4.0.2 mips cc rejects this. */
|
|---|
| 2963 | struct point {int x, y;};
|
|---|
| 2964 | static struct point const zero = {0,0};
|
|---|
| 2965 | /* AIX XL C 1.02.0.0 rejects this.
|
|---|
| 2966 | It does not let you subtract one const X* pointer from another in an arm
|
|---|
| 2967 | of an if-expression whose if-part is not a constant expression */
|
|---|
| 2968 | const char *g = "string";
|
|---|
| 2969 | ccp = &g + (g ? g-g : 0);
|
|---|
| 2970 | /* HPUX 7.0 cc rejects these. */
|
|---|
| 2971 | ++ccp;
|
|---|
| 2972 | p = (char**) ccp;
|
|---|
| 2973 | ccp = (char const *const *) p;
|
|---|
| 2974 | { /* SCO 3.2v4 cc rejects this. */
|
|---|
| 2975 | char *t;
|
|---|
| 2976 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|---|
| 2977 |
|
|---|
| 2978 | *t++ = 0;
|
|---|
| 2979 | }
|
|---|
| 2980 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
|---|
| 2981 | int x[] = {25, 17};
|
|---|
| 2982 | const int *foo = &x[0];
|
|---|
| 2983 | ++foo;
|
|---|
| 2984 | }
|
|---|
| 2985 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|---|
| 2986 | typedef const int *iptr;
|
|---|
| 2987 | iptr p = 0;
|
|---|
| 2988 | ++p;
|
|---|
| 2989 | }
|
|---|
| 2990 | { /* AIX XL C 1.02.0.0 rejects this saying
|
|---|
| 2991 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|---|
| 2992 | struct s { int j; const int *ap[3]; };
|
|---|
| 2993 | struct s *b; b->j = 5;
|
|---|
| 2994 | }
|
|---|
| 2995 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|---|
| 2996 | const int foo = 10;
|
|---|
| 2997 | }
|
|---|
| 2998 |
|
|---|
| 2999 | ; return 0; }
|
|---|
| 3000 | EOF
|
|---|
| 3001 | if { (eval echo configure:3002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 3002 | rm -rf conftest*
|
|---|
| 3003 | ac_cv_c_const=yes
|
|---|
| 3004 | else
|
|---|
| 3005 | echo "configure: failed program was:" >&5
|
|---|
| 3006 | cat conftest.$ac_ext >&5
|
|---|
| 3007 | rm -rf conftest*
|
|---|
| 3008 | ac_cv_c_const=no
|
|---|
| 3009 | fi
|
|---|
| 3010 | rm -f conftest*
|
|---|
| 3011 | fi
|
|---|
| 3012 |
|
|---|
| 3013 | echo "$ac_t""$ac_cv_c_const" 1>&6
|
|---|
| 3014 | if test $ac_cv_c_const = no; then
|
|---|
| 3015 | cat >> confdefs.h <<\EOF
|
|---|
| 3016 | #define const
|
|---|
| 3017 | EOF
|
|---|
| 3018 |
|
|---|
| 3019 | fi
|
|---|
| 3020 |
|
|---|
| 3021 | echo $ac_n "checking for inline""... $ac_c" 1>&6
|
|---|
| 3022 | echo "configure:3023: checking for inline" >&5
|
|---|
| 3023 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
|---|
| 3024 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3025 | else
|
|---|
| 3026 | ac_cv_c_inline=no
|
|---|
| 3027 | for ac_kw in inline __inline__ __inline; do
|
|---|
| 3028 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3029 | #line 3030 "configure"
|
|---|
| 3030 | #include "confdefs.h"
|
|---|
| 3031 |
|
|---|
| 3032 | int main() {
|
|---|
| 3033 | } $ac_kw foo() {
|
|---|
| 3034 | ; return 0; }
|
|---|
| 3035 | EOF
|
|---|
| 3036 | if { (eval echo configure:3037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 3037 | rm -rf conftest*
|
|---|
| 3038 | ac_cv_c_inline=$ac_kw; break
|
|---|
| 3039 | else
|
|---|
| 3040 | echo "configure: failed program was:" >&5
|
|---|
| 3041 | cat conftest.$ac_ext >&5
|
|---|
| 3042 | fi
|
|---|
| 3043 | rm -f conftest*
|
|---|
| 3044 | done
|
|---|
| 3045 |
|
|---|
| 3046 | fi
|
|---|
| 3047 |
|
|---|
| 3048 | echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|---|
| 3049 | case "$ac_cv_c_inline" in
|
|---|
| 3050 | inline | yes) ;;
|
|---|
| 3051 | no) cat >> confdefs.h <<\EOF
|
|---|
| 3052 | #define inline
|
|---|
| 3053 | EOF
|
|---|
| 3054 | ;;
|
|---|
| 3055 | *) cat >> confdefs.h <<EOF
|
|---|
| 3056 | #define inline $ac_cv_c_inline
|
|---|
| 3057 | EOF
|
|---|
| 3058 | ;;
|
|---|
| 3059 | esac
|
|---|
| 3060 |
|
|---|
| 3061 | echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
|---|
| 3062 | echo "configure:3063: checking for off_t" >&5
|
|---|
| 3063 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
|---|
| 3064 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3065 | else
|
|---|
| 3066 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3067 | #line 3068 "configure"
|
|---|
| 3068 | #include "confdefs.h"
|
|---|
| 3069 | #include <sys/types.h>
|
|---|
| 3070 | #if STDC_HEADERS
|
|---|
| 3071 | #include <stdlib.h>
|
|---|
| 3072 | #include <stddef.h>
|
|---|
| 3073 | #endif
|
|---|
| 3074 | EOF
|
|---|
| 3075 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3076 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|---|
| 3077 | rm -rf conftest*
|
|---|
| 3078 | ac_cv_type_off_t=yes
|
|---|
| 3079 | else
|
|---|
| 3080 | rm -rf conftest*
|
|---|
| 3081 | ac_cv_type_off_t=no
|
|---|
| 3082 | fi
|
|---|
| 3083 | rm -f conftest*
|
|---|
| 3084 |
|
|---|
| 3085 | fi
|
|---|
| 3086 | echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
|---|
| 3087 | if test $ac_cv_type_off_t = no; then
|
|---|
| 3088 | cat >> confdefs.h <<\EOF
|
|---|
| 3089 | #define off_t long
|
|---|
| 3090 | EOF
|
|---|
| 3091 |
|
|---|
| 3092 | fi
|
|---|
| 3093 |
|
|---|
| 3094 | echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
|---|
| 3095 | echo "configure:3096: checking for size_t" >&5
|
|---|
| 3096 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
|---|
| 3097 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3098 | else
|
|---|
| 3099 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3100 | #line 3101 "configure"
|
|---|
| 3101 | #include "confdefs.h"
|
|---|
| 3102 | #include <sys/types.h>
|
|---|
| 3103 | #if STDC_HEADERS
|
|---|
| 3104 | #include <stdlib.h>
|
|---|
| 3105 | #include <stddef.h>
|
|---|
| 3106 | #endif
|
|---|
| 3107 | EOF
|
|---|
| 3108 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3109 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|---|
| 3110 | rm -rf conftest*
|
|---|
| 3111 | ac_cv_type_size_t=yes
|
|---|
| 3112 | else
|
|---|
| 3113 | rm -rf conftest*
|
|---|
| 3114 | ac_cv_type_size_t=no
|
|---|
| 3115 | fi
|
|---|
| 3116 | rm -f conftest*
|
|---|
| 3117 |
|
|---|
| 3118 | fi
|
|---|
| 3119 | echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
|---|
| 3120 | if test $ac_cv_type_size_t = no; then
|
|---|
| 3121 | cat >> confdefs.h <<\EOF
|
|---|
| 3122 | #define size_t unsigned
|
|---|
| 3123 | EOF
|
|---|
| 3124 |
|
|---|
| 3125 | fi
|
|---|
| 3126 |
|
|---|
| 3127 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
|---|
| 3128 | # for constant arguments. Useless!
|
|---|
| 3129 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
|---|
| 3130 | echo "configure:3131: checking for working alloca.h" >&5
|
|---|
| 3131 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
|---|
| 3132 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3133 | else
|
|---|
| 3134 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3135 | #line 3136 "configure"
|
|---|
| 3136 | #include "confdefs.h"
|
|---|
| 3137 | #include <alloca.h>
|
|---|
| 3138 | int main() {
|
|---|
| 3139 | char *p = alloca(2 * sizeof(int));
|
|---|
| 3140 | ; return 0; }
|
|---|
| 3141 | EOF
|
|---|
| 3142 | if { (eval echo configure:3143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3143 | rm -rf conftest*
|
|---|
| 3144 | ac_cv_header_alloca_h=yes
|
|---|
| 3145 | else
|
|---|
| 3146 | echo "configure: failed program was:" >&5
|
|---|
| 3147 | cat conftest.$ac_ext >&5
|
|---|
| 3148 | rm -rf conftest*
|
|---|
| 3149 | ac_cv_header_alloca_h=no
|
|---|
| 3150 | fi
|
|---|
| 3151 | rm -f conftest*
|
|---|
| 3152 | fi
|
|---|
| 3153 |
|
|---|
| 3154 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|---|
| 3155 | if test $ac_cv_header_alloca_h = yes; then
|
|---|
| 3156 | cat >> confdefs.h <<\EOF
|
|---|
| 3157 | #define HAVE_ALLOCA_H 1
|
|---|
| 3158 | EOF
|
|---|
| 3159 |
|
|---|
| 3160 | fi
|
|---|
| 3161 |
|
|---|
| 3162 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
|---|
| 3163 | echo "configure:3164: checking for alloca" >&5
|
|---|
| 3164 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
|---|
| 3165 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3166 | else
|
|---|
| 3167 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3168 | #line 3169 "configure"
|
|---|
| 3169 | #include "confdefs.h"
|
|---|
| 3170 |
|
|---|
| 3171 | #ifdef __GNUC__
|
|---|
| 3172 | # define alloca __builtin_alloca
|
|---|
| 3173 | #else
|
|---|
| 3174 | # ifdef _MSC_VER
|
|---|
| 3175 | # include <malloc.h>
|
|---|
| 3176 | # define alloca _alloca
|
|---|
| 3177 | # else
|
|---|
| 3178 | # if HAVE_ALLOCA_H
|
|---|
| 3179 | # include <alloca.h>
|
|---|
| 3180 | # else
|
|---|
| 3181 | # ifdef _AIX
|
|---|
| 3182 | #pragma alloca
|
|---|
| 3183 | # else
|
|---|
| 3184 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
|---|
| 3185 | char *alloca ();
|
|---|
| 3186 | # endif
|
|---|
| 3187 | # endif
|
|---|
| 3188 | # endif
|
|---|
| 3189 | # endif
|
|---|
| 3190 | #endif
|
|---|
| 3191 |
|
|---|
| 3192 | int main() {
|
|---|
| 3193 | char *p = (char *) alloca(1);
|
|---|
| 3194 | ; return 0; }
|
|---|
| 3195 | EOF
|
|---|
| 3196 | if { (eval echo configure:3197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3197 | rm -rf conftest*
|
|---|
| 3198 | ac_cv_func_alloca_works=yes
|
|---|
| 3199 | else
|
|---|
| 3200 | echo "configure: failed program was:" >&5
|
|---|
| 3201 | cat conftest.$ac_ext >&5
|
|---|
| 3202 | rm -rf conftest*
|
|---|
| 3203 | ac_cv_func_alloca_works=no
|
|---|
| 3204 | fi
|
|---|
| 3205 | rm -f conftest*
|
|---|
| 3206 | fi
|
|---|
| 3207 |
|
|---|
| 3208 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
|---|
| 3209 | if test $ac_cv_func_alloca_works = yes; then
|
|---|
| 3210 | cat >> confdefs.h <<\EOF
|
|---|
| 3211 | #define HAVE_ALLOCA 1
|
|---|
| 3212 | EOF
|
|---|
| 3213 |
|
|---|
| 3214 | fi
|
|---|
| 3215 |
|
|---|
| 3216 | if test $ac_cv_func_alloca_works = no; then
|
|---|
| 3217 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|---|
| 3218 | # that cause trouble. Some versions do not even contain alloca or
|
|---|
| 3219 | # contain a buggy version. If you still want to use their alloca,
|
|---|
| 3220 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
|---|
| 3221 | ALLOCA=alloca.${ac_objext}
|
|---|
| 3222 | cat >> confdefs.h <<\EOF
|
|---|
| 3223 | #define C_ALLOCA 1
|
|---|
| 3224 | EOF
|
|---|
| 3225 |
|
|---|
| 3226 |
|
|---|
| 3227 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
|---|
| 3228 | echo "configure:3229: checking whether alloca needs Cray hooks" >&5
|
|---|
| 3229 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
|---|
| 3230 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3231 | else
|
|---|
| 3232 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3233 | #line 3234 "configure"
|
|---|
| 3234 | #include "confdefs.h"
|
|---|
| 3235 | #if defined(CRAY) && ! defined(CRAY2)
|
|---|
| 3236 | webecray
|
|---|
| 3237 | #else
|
|---|
| 3238 | wenotbecray
|
|---|
| 3239 | #endif
|
|---|
| 3240 |
|
|---|
| 3241 | EOF
|
|---|
| 3242 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3243 | egrep "webecray" >/dev/null 2>&1; then
|
|---|
| 3244 | rm -rf conftest*
|
|---|
| 3245 | ac_cv_os_cray=yes
|
|---|
| 3246 | else
|
|---|
| 3247 | rm -rf conftest*
|
|---|
| 3248 | ac_cv_os_cray=no
|
|---|
| 3249 | fi
|
|---|
| 3250 | rm -f conftest*
|
|---|
| 3251 |
|
|---|
| 3252 | fi
|
|---|
| 3253 |
|
|---|
| 3254 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
|---|
| 3255 | if test $ac_cv_os_cray = yes; then
|
|---|
| 3256 | for ac_func in _getb67 GETB67 getb67; do
|
|---|
| 3257 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3258 | echo "configure:3259: checking for $ac_func" >&5
|
|---|
| 3259 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3260 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3261 | else
|
|---|
| 3262 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3263 | #line 3264 "configure"
|
|---|
| 3264 | #include "confdefs.h"
|
|---|
| 3265 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3266 | which can conflict with char $ac_func(); below. */
|
|---|
| 3267 | #include <assert.h>
|
|---|
| 3268 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3269 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3270 | builtin and then its argument prototype would still apply. */
|
|---|
| 3271 | char $ac_func();
|
|---|
| 3272 |
|
|---|
| 3273 | int main() {
|
|---|
| 3274 |
|
|---|
| 3275 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3276 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3277 | something starting with __ and the normal name is an alias. */
|
|---|
| 3278 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3279 | choke me
|
|---|
| 3280 | #else
|
|---|
| 3281 | $ac_func();
|
|---|
| 3282 | #endif
|
|---|
| 3283 |
|
|---|
| 3284 | ; return 0; }
|
|---|
| 3285 | EOF
|
|---|
| 3286 | if { (eval echo configure:3287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3287 | rm -rf conftest*
|
|---|
| 3288 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3289 | else
|
|---|
| 3290 | echo "configure: failed program was:" >&5
|
|---|
| 3291 | cat conftest.$ac_ext >&5
|
|---|
| 3292 | rm -rf conftest*
|
|---|
| 3293 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3294 | fi
|
|---|
| 3295 | rm -f conftest*
|
|---|
| 3296 | fi
|
|---|
| 3297 |
|
|---|
| 3298 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3299 | echo "$ac_t""yes" 1>&6
|
|---|
| 3300 | cat >> confdefs.h <<EOF
|
|---|
| 3301 | #define CRAY_STACKSEG_END $ac_func
|
|---|
| 3302 | EOF
|
|---|
| 3303 |
|
|---|
| 3304 | break
|
|---|
| 3305 | else
|
|---|
| 3306 | echo "$ac_t""no" 1>&6
|
|---|
| 3307 | fi
|
|---|
| 3308 |
|
|---|
| 3309 | done
|
|---|
| 3310 | fi
|
|---|
| 3311 |
|
|---|
| 3312 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
|---|
| 3313 | echo "configure:3314: checking stack direction for C alloca" >&5
|
|---|
| 3314 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
|---|
| 3315 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3316 | else
|
|---|
| 3317 | if test "$cross_compiling" = yes; then
|
|---|
| 3318 | ac_cv_c_stack_direction=0
|
|---|
| 3319 | else
|
|---|
| 3320 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3321 | #line 3322 "configure"
|
|---|
| 3322 | #include "confdefs.h"
|
|---|
| 3323 | find_stack_direction ()
|
|---|
| 3324 | {
|
|---|
| 3325 | static char *addr = 0;
|
|---|
| 3326 | auto char dummy;
|
|---|
| 3327 | if (addr == 0)
|
|---|
| 3328 | {
|
|---|
| 3329 | addr = &dummy;
|
|---|
| 3330 | return find_stack_direction ();
|
|---|
| 3331 | }
|
|---|
| 3332 | else
|
|---|
| 3333 | return (&dummy > addr) ? 1 : -1;
|
|---|
| 3334 | }
|
|---|
| 3335 | main ()
|
|---|
| 3336 | {
|
|---|
| 3337 | exit (find_stack_direction() < 0);
|
|---|
| 3338 | }
|
|---|
| 3339 | EOF
|
|---|
| 3340 | if { (eval echo configure:3341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 3341 | then
|
|---|
| 3342 | ac_cv_c_stack_direction=1
|
|---|
| 3343 | else
|
|---|
| 3344 | echo "configure: failed program was:" >&5
|
|---|
| 3345 | cat conftest.$ac_ext >&5
|
|---|
| 3346 | rm -fr conftest*
|
|---|
| 3347 | ac_cv_c_stack_direction=-1
|
|---|
| 3348 | fi
|
|---|
| 3349 | rm -fr conftest*
|
|---|
| 3350 | fi
|
|---|
| 3351 |
|
|---|
| 3352 | fi
|
|---|
| 3353 |
|
|---|
| 3354 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
|---|
| 3355 | cat >> confdefs.h <<EOF
|
|---|
| 3356 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
|---|
| 3357 | EOF
|
|---|
| 3358 |
|
|---|
| 3359 | fi
|
|---|
| 3360 |
|
|---|
| 3361 | for ac_hdr in unistd.h
|
|---|
| 3362 | do
|
|---|
| 3363 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 3364 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 3365 | echo "configure:3366: checking for $ac_hdr" >&5
|
|---|
| 3366 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 3367 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3368 | else
|
|---|
| 3369 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3370 | #include <sys/types.h>
|
|---|
| 3371 | #line 3372 "configure"
|
|---|
| 3372 | #include "confdefs.h"
|
|---|
| 3373 | #include <$ac_hdr>
|
|---|
| 3374 | EOF
|
|---|
| 3375 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3376 | { (eval echo configure:3377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3377 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3378 | if test -z "$ac_err"; then
|
|---|
| 3379 | rm -rf conftest*
|
|---|
| 3380 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 3381 | else
|
|---|
| 3382 | echo "$ac_err" >&5
|
|---|
| 3383 | echo "configure: failed program was:" >&5
|
|---|
| 3384 | cat conftest.$ac_ext >&5
|
|---|
| 3385 | rm -rf conftest*
|
|---|
| 3386 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 3387 | fi
|
|---|
| 3388 | rm -f conftest*
|
|---|
| 3389 | fi
|
|---|
| 3390 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 3391 | echo "$ac_t""yes" 1>&6
|
|---|
| 3392 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 3393 | cat >> confdefs.h <<EOF
|
|---|
| 3394 | #define $ac_tr_hdr 1
|
|---|
| 3395 | EOF
|
|---|
| 3396 |
|
|---|
| 3397 | else
|
|---|
| 3398 | echo "$ac_t""no" 1>&6
|
|---|
| 3399 | fi
|
|---|
| 3400 | done
|
|---|
| 3401 |
|
|---|
| 3402 | for ac_func in getpagesize
|
|---|
| 3403 | do
|
|---|
| 3404 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3405 | echo "configure:3406: checking for $ac_func" >&5
|
|---|
| 3406 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3407 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3408 | else
|
|---|
| 3409 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3410 | #line 3411 "configure"
|
|---|
| 3411 | #include "confdefs.h"
|
|---|
| 3412 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3413 | which can conflict with char $ac_func(); below. */
|
|---|
| 3414 | #include <assert.h>
|
|---|
| 3415 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3416 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3417 | builtin and then its argument prototype would still apply. */
|
|---|
| 3418 | char $ac_func();
|
|---|
| 3419 |
|
|---|
| 3420 | int main() {
|
|---|
| 3421 |
|
|---|
| 3422 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3423 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3424 | something starting with __ and the normal name is an alias. */
|
|---|
| 3425 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3426 | choke me
|
|---|
| 3427 | #else
|
|---|
| 3428 | $ac_func();
|
|---|
| 3429 | #endif
|
|---|
| 3430 |
|
|---|
| 3431 | ; return 0; }
|
|---|
| 3432 | EOF
|
|---|
| 3433 | if { (eval echo configure:3434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3434 | rm -rf conftest*
|
|---|
| 3435 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3436 | else
|
|---|
| 3437 | echo "configure: failed program was:" >&5
|
|---|
| 3438 | cat conftest.$ac_ext >&5
|
|---|
| 3439 | rm -rf conftest*
|
|---|
| 3440 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3441 | fi
|
|---|
| 3442 | rm -f conftest*
|
|---|
| 3443 | fi
|
|---|
| 3444 |
|
|---|
| 3445 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3446 | echo "$ac_t""yes" 1>&6
|
|---|
| 3447 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3448 | cat >> confdefs.h <<EOF
|
|---|
| 3449 | #define $ac_tr_func 1
|
|---|
| 3450 | EOF
|
|---|
| 3451 |
|
|---|
| 3452 | else
|
|---|
| 3453 | echo "$ac_t""no" 1>&6
|
|---|
| 3454 | fi
|
|---|
| 3455 | done
|
|---|
| 3456 |
|
|---|
| 3457 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
|---|
| 3458 | echo "configure:3459: checking for working mmap" >&5
|
|---|
| 3459 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
|---|
| 3460 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3461 | else
|
|---|
| 3462 | if test "$cross_compiling" = yes; then
|
|---|
| 3463 | ac_cv_func_mmap_fixed_mapped=no
|
|---|
| 3464 | else
|
|---|
| 3465 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3466 | #line 3467 "configure"
|
|---|
| 3467 | #include "confdefs.h"
|
|---|
| 3468 |
|
|---|
| 3469 | /* Thanks to Mike Haertel and Jim Avera for this test.
|
|---|
| 3470 | Here is a matrix of mmap possibilities:
|
|---|
| 3471 | mmap private not fixed
|
|---|
| 3472 | mmap private fixed at somewhere currently unmapped
|
|---|
| 3473 | mmap private fixed at somewhere already mapped
|
|---|
| 3474 | mmap shared not fixed
|
|---|
| 3475 | mmap shared fixed at somewhere currently unmapped
|
|---|
| 3476 | mmap shared fixed at somewhere already mapped
|
|---|
| 3477 | For private mappings, we should verify that changes cannot be read()
|
|---|
| 3478 | back from the file, nor mmap's back from the file at a different
|
|---|
| 3479 | address. (There have been systems where private was not correctly
|
|---|
| 3480 | implemented like the infamous i386 svr4.0, and systems where the
|
|---|
| 3481 | VM page cache was not coherent with the filesystem buffer cache
|
|---|
| 3482 | like early versions of FreeBSD and possibly contemporary NetBSD.)
|
|---|
| 3483 | For shared mappings, we should conversely verify that changes get
|
|---|
| 3484 | propogated back to all the places they're supposed to be.
|
|---|
| 3485 |
|
|---|
| 3486 | Grep wants private fixed already mapped.
|
|---|
| 3487 | The main things grep needs to know about mmap are:
|
|---|
| 3488 | * does it exist and is it safe to write into the mmap'd area
|
|---|
| 3489 | * how to use it (BSD variants) */
|
|---|
| 3490 | #include <sys/types.h>
|
|---|
| 3491 | #include <fcntl.h>
|
|---|
| 3492 | #include <sys/mman.h>
|
|---|
| 3493 |
|
|---|
| 3494 | /* This mess was copied from the GNU getpagesize.h. */
|
|---|
| 3495 | #ifndef HAVE_GETPAGESIZE
|
|---|
| 3496 | # ifdef HAVE_UNISTD_H
|
|---|
| 3497 | # include <unistd.h>
|
|---|
| 3498 | # endif
|
|---|
| 3499 |
|
|---|
| 3500 | /* Assume that all systems that can run configure have sys/param.h. */
|
|---|
| 3501 | # ifndef HAVE_SYS_PARAM_H
|
|---|
| 3502 | # define HAVE_SYS_PARAM_H 1
|
|---|
| 3503 | # endif
|
|---|
| 3504 |
|
|---|
| 3505 | # ifdef _SC_PAGESIZE
|
|---|
| 3506 | # define getpagesize() sysconf(_SC_PAGESIZE)
|
|---|
| 3507 | # else /* no _SC_PAGESIZE */
|
|---|
| 3508 | # ifdef HAVE_SYS_PARAM_H
|
|---|
| 3509 | # include <sys/param.h>
|
|---|
| 3510 | # ifdef EXEC_PAGESIZE
|
|---|
| 3511 | # define getpagesize() EXEC_PAGESIZE
|
|---|
| 3512 | # else /* no EXEC_PAGESIZE */
|
|---|
| 3513 | # ifdef NBPG
|
|---|
| 3514 | # define getpagesize() NBPG * CLSIZE
|
|---|
| 3515 | # ifndef CLSIZE
|
|---|
| 3516 | # define CLSIZE 1
|
|---|
| 3517 | # endif /* no CLSIZE */
|
|---|
| 3518 | # else /* no NBPG */
|
|---|
| 3519 | # ifdef NBPC
|
|---|
| 3520 | # define getpagesize() NBPC
|
|---|
| 3521 | # else /* no NBPC */
|
|---|
| 3522 | # ifdef PAGESIZE
|
|---|
| 3523 | # define getpagesize() PAGESIZE
|
|---|
| 3524 | # endif /* PAGESIZE */
|
|---|
| 3525 | # endif /* no NBPC */
|
|---|
| 3526 | # endif /* no NBPG */
|
|---|
| 3527 | # endif /* no EXEC_PAGESIZE */
|
|---|
| 3528 | # else /* no HAVE_SYS_PARAM_H */
|
|---|
| 3529 | # define getpagesize() 8192 /* punt totally */
|
|---|
| 3530 | # endif /* no HAVE_SYS_PARAM_H */
|
|---|
| 3531 | # endif /* no _SC_PAGESIZE */
|
|---|
| 3532 |
|
|---|
| 3533 | #endif /* no HAVE_GETPAGESIZE */
|
|---|
| 3534 |
|
|---|
| 3535 | #ifdef __cplusplus
|
|---|
| 3536 | extern "C" { void *malloc(unsigned); }
|
|---|
| 3537 | #else
|
|---|
| 3538 | char *malloc();
|
|---|
| 3539 | #endif
|
|---|
| 3540 |
|
|---|
| 3541 | int
|
|---|
| 3542 | main()
|
|---|
| 3543 | {
|
|---|
| 3544 | char *data, *data2, *data3;
|
|---|
| 3545 | int i, pagesize;
|
|---|
| 3546 | int fd;
|
|---|
| 3547 |
|
|---|
| 3548 | pagesize = getpagesize();
|
|---|
| 3549 |
|
|---|
| 3550 | /*
|
|---|
| 3551 | * First, make a file with some known garbage in it.
|
|---|
| 3552 | */
|
|---|
| 3553 | data = malloc(pagesize);
|
|---|
| 3554 | if (!data)
|
|---|
| 3555 | exit(1);
|
|---|
| 3556 | for (i = 0; i < pagesize; ++i)
|
|---|
| 3557 | *(data + i) = rand();
|
|---|
| 3558 | umask(0);
|
|---|
| 3559 | fd = creat("conftestmmap", 0600);
|
|---|
| 3560 | if (fd < 0)
|
|---|
| 3561 | exit(1);
|
|---|
| 3562 | if (write(fd, data, pagesize) != pagesize)
|
|---|
| 3563 | exit(1);
|
|---|
| 3564 | close(fd);
|
|---|
| 3565 |
|
|---|
| 3566 | /*
|
|---|
| 3567 | * Next, try to mmap the file at a fixed address which
|
|---|
| 3568 | * already has something else allocated at it. If we can,
|
|---|
| 3569 | * also make sure that we see the same garbage.
|
|---|
| 3570 | */
|
|---|
| 3571 | fd = open("conftestmmap", O_RDWR);
|
|---|
| 3572 | if (fd < 0)
|
|---|
| 3573 | exit(1);
|
|---|
| 3574 | data2 = malloc(2 * pagesize);
|
|---|
| 3575 | if (!data2)
|
|---|
| 3576 | exit(1);
|
|---|
| 3577 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
|---|
| 3578 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
|---|
| 3579 | MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
|---|
| 3580 | exit(1);
|
|---|
| 3581 | for (i = 0; i < pagesize; ++i)
|
|---|
| 3582 | if (*(data + i) != *(data2 + i))
|
|---|
| 3583 | exit(1);
|
|---|
| 3584 |
|
|---|
| 3585 | /*
|
|---|
| 3586 | * Finally, make sure that changes to the mapped area
|
|---|
| 3587 | * do not percolate back to the file as seen by read().
|
|---|
| 3588 | * (This is a bug on some variants of i386 svr4.0.)
|
|---|
| 3589 | */
|
|---|
| 3590 | for (i = 0; i < pagesize; ++i)
|
|---|
| 3591 | *(data2 + i) = *(data2 + i) + 1;
|
|---|
| 3592 | data3 = malloc(pagesize);
|
|---|
| 3593 | if (!data3)
|
|---|
| 3594 | exit(1);
|
|---|
| 3595 | if (read(fd, data3, pagesize) != pagesize)
|
|---|
| 3596 | exit(1);
|
|---|
| 3597 | for (i = 0; i < pagesize; ++i)
|
|---|
| 3598 | if (*(data + i) != *(data3 + i))
|
|---|
| 3599 | exit(1);
|
|---|
| 3600 | close(fd);
|
|---|
| 3601 | unlink("conftestmmap");
|
|---|
| 3602 | exit(0);
|
|---|
| 3603 | }
|
|---|
| 3604 |
|
|---|
| 3605 | EOF
|
|---|
| 3606 | if { (eval echo configure:3607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 3607 | then
|
|---|
| 3608 | ac_cv_func_mmap_fixed_mapped=yes
|
|---|
| 3609 | else
|
|---|
| 3610 | echo "configure: failed program was:" >&5
|
|---|
| 3611 | cat conftest.$ac_ext >&5
|
|---|
| 3612 | rm -fr conftest*
|
|---|
| 3613 | ac_cv_func_mmap_fixed_mapped=no
|
|---|
| 3614 | fi
|
|---|
| 3615 | rm -fr conftest*
|
|---|
| 3616 | fi
|
|---|
| 3617 |
|
|---|
| 3618 | fi
|
|---|
| 3619 |
|
|---|
| 3620 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
|---|
| 3621 | if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
|---|
| 3622 | cat >> confdefs.h <<\EOF
|
|---|
| 3623 | #define HAVE_MMAP 1
|
|---|
| 3624 | EOF
|
|---|
| 3625 |
|
|---|
| 3626 | fi
|
|---|
| 3627 |
|
|---|
| 3628 |
|
|---|
| 3629 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
|
|---|
| 3630 | unistd.h values.h sys/param.h
|
|---|
| 3631 | do
|
|---|
| 3632 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 3633 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 3634 | echo "configure:3635: checking for $ac_hdr" >&5
|
|---|
| 3635 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 3636 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3637 | else
|
|---|
| 3638 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3639 | #include <sys/types.h>
|
|---|
| 3640 | #line 3641 "configure"
|
|---|
| 3641 | #include "confdefs.h"
|
|---|
| 3642 | #include <$ac_hdr>
|
|---|
| 3643 | EOF
|
|---|
| 3644 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3645 | { (eval echo configure:3646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3646 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3647 | if test -z "$ac_err"; then
|
|---|
| 3648 | rm -rf conftest*
|
|---|
| 3649 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 3650 | else
|
|---|
| 3651 | echo "$ac_err" >&5
|
|---|
| 3652 | echo "configure: failed program was:" >&5
|
|---|
| 3653 | cat conftest.$ac_ext >&5
|
|---|
| 3654 | rm -rf conftest*
|
|---|
| 3655 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 3656 | fi
|
|---|
| 3657 | rm -f conftest*
|
|---|
| 3658 | fi
|
|---|
| 3659 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 3660 | echo "$ac_t""yes" 1>&6
|
|---|
| 3661 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 3662 | cat >> confdefs.h <<EOF
|
|---|
| 3663 | #define $ac_tr_hdr 1
|
|---|
| 3664 | EOF
|
|---|
| 3665 |
|
|---|
| 3666 | else
|
|---|
| 3667 | echo "$ac_t""no" 1>&6
|
|---|
| 3668 | fi
|
|---|
| 3669 | done
|
|---|
| 3670 |
|
|---|
| 3671 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
|
|---|
| 3672 | __argz_count __argz_stringify __argz_next
|
|---|
| 3673 | do
|
|---|
| 3674 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3675 | echo "configure:3676: checking for $ac_func" >&5
|
|---|
| 3676 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3677 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3678 | else
|
|---|
| 3679 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3680 | #line 3681 "configure"
|
|---|
| 3681 | #include "confdefs.h"
|
|---|
| 3682 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3683 | which can conflict with char $ac_func(); below. */
|
|---|
| 3684 | #include <assert.h>
|
|---|
| 3685 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3686 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3687 | builtin and then its argument prototype would still apply. */
|
|---|
| 3688 | char $ac_func();
|
|---|
| 3689 |
|
|---|
| 3690 | int main() {
|
|---|
| 3691 |
|
|---|
| 3692 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3693 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3694 | something starting with __ and the normal name is an alias. */
|
|---|
| 3695 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3696 | choke me
|
|---|
| 3697 | #else
|
|---|
| 3698 | $ac_func();
|
|---|
| 3699 | #endif
|
|---|
| 3700 |
|
|---|
| 3701 | ; return 0; }
|
|---|
| 3702 | EOF
|
|---|
| 3703 | if { (eval echo configure:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3704 | rm -rf conftest*
|
|---|
| 3705 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3706 | else
|
|---|
| 3707 | echo "configure: failed program was:" >&5
|
|---|
| 3708 | cat conftest.$ac_ext >&5
|
|---|
| 3709 | rm -rf conftest*
|
|---|
| 3710 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3711 | fi
|
|---|
| 3712 | rm -f conftest*
|
|---|
| 3713 | fi
|
|---|
| 3714 |
|
|---|
| 3715 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3716 | echo "$ac_t""yes" 1>&6
|
|---|
| 3717 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3718 | cat >> confdefs.h <<EOF
|
|---|
| 3719 | #define $ac_tr_func 1
|
|---|
| 3720 | EOF
|
|---|
| 3721 |
|
|---|
| 3722 | else
|
|---|
| 3723 | echo "$ac_t""no" 1>&6
|
|---|
| 3724 | fi
|
|---|
| 3725 | done
|
|---|
| 3726 |
|
|---|
| 3727 |
|
|---|
| 3728 | if test "${ac_cv_func_stpcpy+set}" != "set"; then
|
|---|
| 3729 | for ac_func in stpcpy
|
|---|
| 3730 | do
|
|---|
| 3731 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3732 | echo "configure:3733: checking for $ac_func" >&5
|
|---|
| 3733 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3734 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3735 | else
|
|---|
| 3736 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3737 | #line 3738 "configure"
|
|---|
| 3738 | #include "confdefs.h"
|
|---|
| 3739 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3740 | which can conflict with char $ac_func(); below. */
|
|---|
| 3741 | #include <assert.h>
|
|---|
| 3742 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3743 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3744 | builtin and then its argument prototype would still apply. */
|
|---|
| 3745 | char $ac_func();
|
|---|
| 3746 |
|
|---|
| 3747 | int main() {
|
|---|
| 3748 |
|
|---|
| 3749 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3750 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3751 | something starting with __ and the normal name is an alias. */
|
|---|
| 3752 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3753 | choke me
|
|---|
| 3754 | #else
|
|---|
| 3755 | $ac_func();
|
|---|
| 3756 | #endif
|
|---|
| 3757 |
|
|---|
| 3758 | ; return 0; }
|
|---|
| 3759 | EOF
|
|---|
| 3760 | if { (eval echo configure:3761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3761 | rm -rf conftest*
|
|---|
| 3762 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3763 | else
|
|---|
| 3764 | echo "configure: failed program was:" >&5
|
|---|
| 3765 | cat conftest.$ac_ext >&5
|
|---|
| 3766 | rm -rf conftest*
|
|---|
| 3767 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3768 | fi
|
|---|
| 3769 | rm -f conftest*
|
|---|
| 3770 | fi
|
|---|
| 3771 |
|
|---|
| 3772 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3773 | echo "$ac_t""yes" 1>&6
|
|---|
| 3774 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3775 | cat >> confdefs.h <<EOF
|
|---|
| 3776 | #define $ac_tr_func 1
|
|---|
| 3777 | EOF
|
|---|
| 3778 |
|
|---|
| 3779 | else
|
|---|
| 3780 | echo "$ac_t""no" 1>&6
|
|---|
| 3781 | fi
|
|---|
| 3782 | done
|
|---|
| 3783 |
|
|---|
| 3784 | fi
|
|---|
| 3785 | if test "${ac_cv_func_stpcpy}" = "yes"; then
|
|---|
| 3786 | cat >> confdefs.h <<\EOF
|
|---|
| 3787 | #define HAVE_STPCPY 1
|
|---|
| 3788 | EOF
|
|---|
| 3789 |
|
|---|
| 3790 | fi
|
|---|
| 3791 |
|
|---|
| 3792 | if test $ac_cv_header_locale_h = yes; then
|
|---|
| 3793 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
|
|---|
| 3794 | echo "configure:3795: checking for LC_MESSAGES" >&5
|
|---|
| 3795 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
|
|---|
| 3796 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3797 | else
|
|---|
| 3798 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3799 | #line 3800 "configure"
|
|---|
| 3800 | #include "confdefs.h"
|
|---|
| 3801 | #include <locale.h>
|
|---|
| 3802 | int main() {
|
|---|
| 3803 | return LC_MESSAGES
|
|---|
| 3804 | ; return 0; }
|
|---|
| 3805 | EOF
|
|---|
| 3806 | if { (eval echo configure:3807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3807 | rm -rf conftest*
|
|---|
| 3808 | am_cv_val_LC_MESSAGES=yes
|
|---|
| 3809 | else
|
|---|
| 3810 | echo "configure: failed program was:" >&5
|
|---|
| 3811 | cat conftest.$ac_ext >&5
|
|---|
| 3812 | rm -rf conftest*
|
|---|
| 3813 | am_cv_val_LC_MESSAGES=no
|
|---|
| 3814 | fi
|
|---|
| 3815 | rm -f conftest*
|
|---|
| 3816 | fi
|
|---|
| 3817 |
|
|---|
| 3818 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
|
|---|
| 3819 | if test $am_cv_val_LC_MESSAGES = yes; then
|
|---|
| 3820 | cat >> confdefs.h <<\EOF
|
|---|
| 3821 | #define HAVE_LC_MESSAGES 1
|
|---|
| 3822 | EOF
|
|---|
| 3823 |
|
|---|
| 3824 | fi
|
|---|
| 3825 | fi
|
|---|
| 3826 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
|
|---|
| 3827 | echo "configure:3828: checking whether NLS is requested" >&5
|
|---|
| 3828 | # Check whether --enable-nls or --disable-nls was given.
|
|---|
| 3829 | if test "${enable_nls+set}" = set; then
|
|---|
| 3830 | enableval="$enable_nls"
|
|---|
| 3831 | USE_NLS=$enableval
|
|---|
| 3832 | else
|
|---|
| 3833 | USE_NLS=yes
|
|---|
| 3834 | fi
|
|---|
| 3835 |
|
|---|
| 3836 | echo "$ac_t""$USE_NLS" 1>&6
|
|---|
| 3837 |
|
|---|
| 3838 |
|
|---|
| 3839 | USE_INCLUDED_LIBINTL=no
|
|---|
| 3840 |
|
|---|
| 3841 | if test "$USE_NLS" = "yes"; then
|
|---|
| 3842 | cat >> confdefs.h <<\EOF
|
|---|
| 3843 | #define ENABLE_NLS 1
|
|---|
| 3844 | EOF
|
|---|
| 3845 |
|
|---|
| 3846 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
|
|---|
| 3847 | echo "configure:3848: checking whether included gettext is requested" >&5
|
|---|
| 3848 | # Check whether --with-included-gettext or --without-included-gettext was given.
|
|---|
| 3849 | if test "${with_included_gettext+set}" = set; then
|
|---|
| 3850 | withval="$with_included_gettext"
|
|---|
| 3851 | nls_cv_force_use_gnu_gettext=$withval
|
|---|
| 3852 | else
|
|---|
| 3853 | nls_cv_force_use_gnu_gettext=no
|
|---|
| 3854 | fi
|
|---|
| 3855 |
|
|---|
| 3856 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
|
|---|
| 3857 |
|
|---|
| 3858 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
|---|
| 3859 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
|---|
| 3860 | nls_cv_header_intl=
|
|---|
| 3861 | nls_cv_header_libgt=
|
|---|
| 3862 | CATOBJEXT=NONE
|
|---|
| 3863 |
|
|---|
| 3864 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
|
|---|
| 3865 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
|
|---|
| 3866 | echo "configure:3867: checking for libintl.h" >&5
|
|---|
| 3867 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 <libintl.h>
|
|---|
| 3875 | EOF
|
|---|
| 3876 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3877 | { (eval echo configure:3878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3878 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3879 | if test -z "$ac_err"; then
|
|---|
| 3880 | rm -rf conftest*
|
|---|
| 3881 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 3882 | else
|
|---|
| 3883 | echo "$ac_err" >&5
|
|---|
| 3884 | echo "configure: failed program was:" >&5
|
|---|
| 3885 | cat conftest.$ac_ext >&5
|
|---|
| 3886 | rm -rf conftest*
|
|---|
| 3887 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 3888 | fi
|
|---|
| 3889 | rm -f conftest*
|
|---|
| 3890 | fi
|
|---|
| 3891 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 3892 | echo "$ac_t""yes" 1>&6
|
|---|
| 3893 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
|
|---|
| 3894 | echo "configure:3895: checking for gettext in libc" >&5
|
|---|
| 3895 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
|
|---|
| 3896 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3897 | else
|
|---|
| 3898 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3899 | #line 3900 "configure"
|
|---|
| 3900 | #include "confdefs.h"
|
|---|
| 3901 | #include <libintl.h>
|
|---|
| 3902 | int main() {
|
|---|
| 3903 | return (int) gettext ("")
|
|---|
| 3904 | ; return 0; }
|
|---|
| 3905 | EOF
|
|---|
| 3906 | if { (eval echo configure:3907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3907 | rm -rf conftest*
|
|---|
| 3908 | gt_cv_func_gettext_libc=yes
|
|---|
| 3909 | else
|
|---|
| 3910 | echo "configure: failed program was:" >&5
|
|---|
| 3911 | cat conftest.$ac_ext >&5
|
|---|
| 3912 | rm -rf conftest*
|
|---|
| 3913 | gt_cv_func_gettext_libc=no
|
|---|
| 3914 | fi
|
|---|
| 3915 | rm -f conftest*
|
|---|
| 3916 | fi
|
|---|
| 3917 |
|
|---|
| 3918 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
|
|---|
| 3919 |
|
|---|
| 3920 | if test "$gt_cv_func_gettext_libc" != "yes"; then
|
|---|
| 3921 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
|
|---|
| 3922 | echo "configure:3923: checking for bindtextdomain in -lintl" >&5
|
|---|
| 3923 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
|
|---|
| 3924 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 3925 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3926 | else
|
|---|
| 3927 | ac_save_LIBS="$LIBS"
|
|---|
| 3928 | LIBS="-lintl $LIBS"
|
|---|
| 3929 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3930 | #line 3931 "configure"
|
|---|
| 3931 | #include "confdefs.h"
|
|---|
| 3932 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3933 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3934 | builtin and then its argument prototype would still apply. */
|
|---|
| 3935 | char bindtextdomain();
|
|---|
| 3936 |
|
|---|
| 3937 | int main() {
|
|---|
| 3938 | bindtextdomain()
|
|---|
| 3939 | ; return 0; }
|
|---|
| 3940 | EOF
|
|---|
| 3941 | if { (eval echo configure:3942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3942 | rm -rf conftest*
|
|---|
| 3943 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 3944 | else
|
|---|
| 3945 | echo "configure: failed program was:" >&5
|
|---|
| 3946 | cat conftest.$ac_ext >&5
|
|---|
| 3947 | rm -rf conftest*
|
|---|
| 3948 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 3949 | fi
|
|---|
| 3950 | rm -f conftest*
|
|---|
| 3951 | LIBS="$ac_save_LIBS"
|
|---|
| 3952 |
|
|---|
| 3953 | fi
|
|---|
| 3954 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 3955 | echo "$ac_t""yes" 1>&6
|
|---|
| 3956 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
|
|---|
| 3957 | echo "configure:3958: checking for gettext in libintl" >&5
|
|---|
| 3958 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
|
|---|
| 3959 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3960 | else
|
|---|
| 3961 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3962 | #line 3963 "configure"
|
|---|
| 3963 | #include "confdefs.h"
|
|---|
| 3964 |
|
|---|
| 3965 | int main() {
|
|---|
| 3966 | return (int) gettext ("")
|
|---|
| 3967 | ; return 0; }
|
|---|
| 3968 | EOF
|
|---|
| 3969 | if { (eval echo configure:3970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3970 | rm -rf conftest*
|
|---|
| 3971 | gt_cv_func_gettext_libintl=yes
|
|---|
| 3972 | else
|
|---|
| 3973 | echo "configure: failed program was:" >&5
|
|---|
| 3974 | cat conftest.$ac_ext >&5
|
|---|
| 3975 | rm -rf conftest*
|
|---|
| 3976 | gt_cv_func_gettext_libintl=no
|
|---|
| 3977 | fi
|
|---|
| 3978 | rm -f conftest*
|
|---|
| 3979 | fi
|
|---|
| 3980 |
|
|---|
| 3981 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
|
|---|
| 3982 | else
|
|---|
| 3983 | echo "$ac_t""no" 1>&6
|
|---|
| 3984 | fi
|
|---|
| 3985 |
|
|---|
| 3986 | fi
|
|---|
| 3987 |
|
|---|
| 3988 | if test "$gt_cv_func_gettext_libc" = "yes" \
|
|---|
| 3989 | || test "$gt_cv_func_gettext_libintl" = "yes"; then
|
|---|
| 3990 | cat >> confdefs.h <<\EOF
|
|---|
| 3991 | #define HAVE_GETTEXT 1
|
|---|
| 3992 | EOF
|
|---|
| 3993 |
|
|---|
| 3994 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
|---|
| 3995 | set dummy msgfmt; ac_word=$2
|
|---|
| 3996 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 3997 | echo "configure:3998: checking for $ac_word" >&5
|
|---|
| 3998 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
|---|
| 3999 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4000 | else
|
|---|
| 4001 | case "$MSGFMT" in
|
|---|
| 4002 | /*)
|
|---|
| 4003 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
|---|
| 4004 | ;;
|
|---|
| 4005 | *)
|
|---|
| 4006 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
|---|
| 4007 | for ac_dir in $PATH; do
|
|---|
| 4008 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 4009 | if test -f $ac_dir/$ac_word; then
|
|---|
| 4010 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
|---|
| 4011 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
|---|
| 4012 | break
|
|---|
| 4013 | fi
|
|---|
| 4014 | fi
|
|---|
| 4015 | done
|
|---|
| 4016 | IFS="$ac_save_ifs"
|
|---|
| 4017 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
|
|---|
| 4018 | ;;
|
|---|
| 4019 | esac
|
|---|
| 4020 | fi
|
|---|
| 4021 | MSGFMT="$ac_cv_path_MSGFMT"
|
|---|
| 4022 | if test -n "$MSGFMT"; then
|
|---|
| 4023 | echo "$ac_t""$MSGFMT" 1>&6
|
|---|
| 4024 | else
|
|---|
| 4025 | echo "$ac_t""no" 1>&6
|
|---|
| 4026 | fi
|
|---|
| 4027 | if test "$MSGFMT" != "no"; then
|
|---|
| 4028 | for ac_func in dcgettext
|
|---|
| 4029 | do
|
|---|
| 4030 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 4031 | echo "configure:4032: checking for $ac_func" >&5
|
|---|
| 4032 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 4033 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4034 | else
|
|---|
| 4035 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4036 | #line 4037 "configure"
|
|---|
| 4037 | #include "confdefs.h"
|
|---|
| 4038 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 4039 | which can conflict with char $ac_func(); below. */
|
|---|
| 4040 | #include <assert.h>
|
|---|
| 4041 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4042 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4043 | builtin and then its argument prototype would still apply. */
|
|---|
| 4044 | char $ac_func();
|
|---|
| 4045 |
|
|---|
| 4046 | int main() {
|
|---|
| 4047 |
|
|---|
| 4048 | /* The GNU C library defines this for functions which it implements
|
|---|
| 4049 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 4050 | something starting with __ and the normal name is an alias. */
|
|---|
| 4051 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 4052 | choke me
|
|---|
| 4053 | #else
|
|---|
| 4054 | $ac_func();
|
|---|
| 4055 | #endif
|
|---|
| 4056 |
|
|---|
| 4057 | ; return 0; }
|
|---|
| 4058 | EOF
|
|---|
| 4059 | if { (eval echo configure:4060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4060 | rm -rf conftest*
|
|---|
| 4061 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 4062 | else
|
|---|
| 4063 | echo "configure: failed program was:" >&5
|
|---|
| 4064 | cat conftest.$ac_ext >&5
|
|---|
| 4065 | rm -rf conftest*
|
|---|
| 4066 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 4067 | fi
|
|---|
| 4068 | rm -f conftest*
|
|---|
| 4069 | fi
|
|---|
| 4070 |
|
|---|
| 4071 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 4072 | echo "$ac_t""yes" 1>&6
|
|---|
| 4073 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 4074 | cat >> confdefs.h <<EOF
|
|---|
| 4075 | #define $ac_tr_func 1
|
|---|
| 4076 | EOF
|
|---|
| 4077 |
|
|---|
| 4078 | else
|
|---|
| 4079 | echo "$ac_t""no" 1>&6
|
|---|
| 4080 | fi
|
|---|
| 4081 | done
|
|---|
| 4082 |
|
|---|
| 4083 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
|---|
| 4084 | set dummy gmsgfmt; ac_word=$2
|
|---|
| 4085 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 4086 | echo "configure:4087: checking for $ac_word" >&5
|
|---|
| 4087 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
|---|
| 4088 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4089 | else
|
|---|
| 4090 | case "$GMSGFMT" in
|
|---|
| 4091 | /* | [a-zA-Z]:*)
|
|---|
| 4092 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
|---|
| 4093 | ;;
|
|---|
| 4094 | ?:/*)
|
|---|
| 4095 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
|---|
| 4096 | ;;
|
|---|
| 4097 | *)
|
|---|
| 4098 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 4099 | ac_dummy="$PATH"
|
|---|
| 4100 | for ac_dir in $ac_dummy; do
|
|---|
| 4101 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 4102 | if test -f $ac_dir/$ac_word; then
|
|---|
| 4103 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
|---|
| 4104 | break
|
|---|
| 4105 | fi
|
|---|
| 4106 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
|---|
| 4107 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
|---|
| 4108 | break
|
|---|
| 4109 | fi
|
|---|
| 4110 | done
|
|---|
| 4111 | IFS="$ac_save_ifs"
|
|---|
| 4112 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
|---|
| 4113 | ;;
|
|---|
| 4114 | esac
|
|---|
| 4115 | fi
|
|---|
| 4116 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
|---|
| 4117 | if test -n "$GMSGFMT"; then
|
|---|
| 4118 | echo "$ac_t""$GMSGFMT" 1>&6
|
|---|
| 4119 | else
|
|---|
| 4120 | echo "$ac_t""no" 1>&6
|
|---|
| 4121 | fi
|
|---|
| 4122 |
|
|---|
| 4123 | # Extract the first word of "xgettext", so it can be a program name with args.
|
|---|
| 4124 | set dummy xgettext; ac_word=$2
|
|---|
| 4125 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 4126 | echo "configure:4127: checking for $ac_word" >&5
|
|---|
| 4127 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
|---|
| 4128 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4129 | else
|
|---|
| 4130 | case "$XGETTEXT" in
|
|---|
| 4131 | /*)
|
|---|
| 4132 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
|---|
| 4133 | ;;
|
|---|
| 4134 | *)
|
|---|
| 4135 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
|---|
| 4136 | for ac_dir in $PATH; do
|
|---|
| 4137 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 4138 | if test -f $ac_dir/$ac_word; then
|
|---|
| 4139 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
|---|
| 4140 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
|---|
| 4141 | break
|
|---|
| 4142 | fi
|
|---|
| 4143 | fi
|
|---|
| 4144 | done
|
|---|
| 4145 | IFS="$ac_save_ifs"
|
|---|
| 4146 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
|---|
| 4147 | ;;
|
|---|
| 4148 | esac
|
|---|
| 4149 | fi
|
|---|
| 4150 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
|---|
| 4151 | if test -n "$XGETTEXT"; then
|
|---|
| 4152 | echo "$ac_t""$XGETTEXT" 1>&6
|
|---|
| 4153 | else
|
|---|
| 4154 | echo "$ac_t""no" 1>&6
|
|---|
| 4155 | fi
|
|---|
| 4156 |
|
|---|
| 4157 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4158 | #line 4159 "configure"
|
|---|
| 4159 | #include "confdefs.h"
|
|---|
| 4160 |
|
|---|
| 4161 | int main() {
|
|---|
| 4162 | extern int _nl_msg_cat_cntr;
|
|---|
| 4163 | return _nl_msg_cat_cntr
|
|---|
| 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 | CATOBJEXT=.gmo
|
|---|
| 4169 | DATADIRNAME=share
|
|---|
| 4170 | else
|
|---|
| 4171 | echo "configure: failed program was:" >&5
|
|---|
| 4172 | cat conftest.$ac_ext >&5
|
|---|
| 4173 | rm -rf conftest*
|
|---|
| 4174 | CATOBJEXT=.mo
|
|---|
| 4175 | DATADIRNAME=lib
|
|---|
| 4176 | fi
|
|---|
| 4177 | rm -f conftest*
|
|---|
| 4178 | INSTOBJEXT=.mo
|
|---|
| 4179 | fi
|
|---|
| 4180 | fi
|
|---|
| 4181 |
|
|---|
| 4182 | else
|
|---|
| 4183 | echo "$ac_t""no" 1>&6
|
|---|
| 4184 | fi
|
|---|
| 4185 |
|
|---|
| 4186 |
|
|---|
| 4187 |
|
|---|
| 4188 | if test "$CATOBJEXT" = "NONE"; then
|
|---|
| 4189 | nls_cv_use_gnu_gettext=yes
|
|---|
| 4190 | fi
|
|---|
| 4191 | fi
|
|---|
| 4192 |
|
|---|
| 4193 | if test "$nls_cv_use_gnu_gettext" = "yes"; then
|
|---|
| 4194 | INTLOBJS="\$(GETTOBJS)"
|
|---|
| 4195 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
|---|
| 4196 | set dummy msgfmt; ac_word=$2
|
|---|
| 4197 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 4198 | echo "configure:4199: checking for $ac_word" >&5
|
|---|
| 4199 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
|---|
| 4200 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4201 | else
|
|---|
| 4202 | case "$MSGFMT" in
|
|---|
| 4203 | /*)
|
|---|
| 4204 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
|---|
| 4205 | ;;
|
|---|
| 4206 | *)
|
|---|
| 4207 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
|---|
| 4208 | for ac_dir in $PATH; do
|
|---|
| 4209 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 4210 | if test -f $ac_dir/$ac_word; then
|
|---|
| 4211 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
|---|
| 4212 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
|---|
| 4213 | break
|
|---|
| 4214 | fi
|
|---|
| 4215 | fi
|
|---|
| 4216 | done
|
|---|
| 4217 | IFS="$ac_save_ifs"
|
|---|
| 4218 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
|
|---|
| 4219 | ;;
|
|---|
| 4220 | esac
|
|---|
| 4221 | fi
|
|---|
| 4222 | MSGFMT="$ac_cv_path_MSGFMT"
|
|---|
| 4223 | if test -n "$MSGFMT"; then
|
|---|
| 4224 | echo "$ac_t""$MSGFMT" 1>&6
|
|---|
| 4225 | else
|
|---|
| 4226 | echo "$ac_t""no" 1>&6
|
|---|
| 4227 | fi
|
|---|
| 4228 |
|
|---|
| 4229 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
|---|
| 4230 | set dummy gmsgfmt; ac_word=$2
|
|---|
| 4231 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 4232 | echo "configure:4233: checking for $ac_word" >&5
|
|---|
| 4233 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
|---|
| 4234 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4235 | else
|
|---|
| 4236 | case "$GMSGFMT" in
|
|---|
| 4237 | /* | [a-zA-Z]:*)
|
|---|
| 4238 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
|---|
| 4239 | ;;
|
|---|
| 4240 | ?:/*)
|
|---|
| 4241 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
|---|
| 4242 | ;;
|
|---|
| 4243 | *)
|
|---|
| 4244 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 4245 | ac_dummy="$PATH"
|
|---|
| 4246 | for ac_dir in $ac_dummy; do
|
|---|
| 4247 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 4248 | if test -f $ac_dir/$ac_word; then
|
|---|
| 4249 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
|---|
| 4250 | break
|
|---|
| 4251 | fi
|
|---|
| 4252 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
|---|
| 4253 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
|---|
| 4254 | break
|
|---|
| 4255 | fi
|
|---|
| 4256 | done
|
|---|
| 4257 | IFS="$ac_save_ifs"
|
|---|
| 4258 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
|---|
| 4259 | ;;
|
|---|
| 4260 | esac
|
|---|
| 4261 | fi
|
|---|
| 4262 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
|---|
| 4263 | if test -n "$GMSGFMT"; then
|
|---|
| 4264 | echo "$ac_t""$GMSGFMT" 1>&6
|
|---|
| 4265 | else
|
|---|
| 4266 | echo "$ac_t""no" 1>&6
|
|---|
| 4267 | fi
|
|---|
| 4268 |
|
|---|
| 4269 | # Extract the first word of "xgettext", so it can be a program name with args.
|
|---|
| 4270 | set dummy xgettext; ac_word=$2
|
|---|
| 4271 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 4272 | echo "configure:4273: checking for $ac_word" >&5
|
|---|
| 4273 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
|---|
| 4274 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4275 | else
|
|---|
| 4276 | case "$XGETTEXT" in
|
|---|
| 4277 | /*)
|
|---|
| 4278 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
|---|
| 4279 | ;;
|
|---|
| 4280 | *)
|
|---|
| 4281 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
|---|
| 4282 | for ac_dir in $PATH; do
|
|---|
| 4283 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 4284 | if test -f $ac_dir/$ac_word; then
|
|---|
| 4285 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
|---|
| 4286 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
|---|
| 4287 | break
|
|---|
| 4288 | fi
|
|---|
| 4289 | fi
|
|---|
| 4290 | done
|
|---|
| 4291 | IFS="$ac_save_ifs"
|
|---|
| 4292 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
|---|
| 4293 | ;;
|
|---|
| 4294 | esac
|
|---|
| 4295 | fi
|
|---|
| 4296 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
|---|
| 4297 | if test -n "$XGETTEXT"; then
|
|---|
| 4298 | echo "$ac_t""$XGETTEXT" 1>&6
|
|---|
| 4299 | else
|
|---|
| 4300 | echo "$ac_t""no" 1>&6
|
|---|
| 4301 | fi
|
|---|
| 4302 |
|
|---|
| 4303 |
|
|---|
| 4304 | USE_INCLUDED_LIBINTL=yes
|
|---|
| 4305 | CATOBJEXT=.gmo
|
|---|
| 4306 | INSTOBJEXT=.mo
|
|---|
| 4307 | DATADIRNAME=share
|
|---|
| 4308 | INTLDEPS='$(top_builddir)/../intl/libintl.a'
|
|---|
| 4309 | INTLLIBS=$INTLDEPS
|
|---|
| 4310 | LIBS=`echo $LIBS | sed -e 's/-lintl//'`
|
|---|
| 4311 | nls_cv_header_intl=libintl.h
|
|---|
| 4312 | nls_cv_header_libgt=libgettext.h
|
|---|
| 4313 | fi
|
|---|
| 4314 |
|
|---|
| 4315 | if test "$XGETTEXT" != ":"; then
|
|---|
| 4316 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
|---|
| 4317 | : ;
|
|---|
| 4318 | else
|
|---|
| 4319 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
|
|---|
| 4320 | XGETTEXT=":"
|
|---|
| 4321 | fi
|
|---|
| 4322 | fi
|
|---|
| 4323 |
|
|---|
| 4324 | # We need to process the po/ directory.
|
|---|
| 4325 | POSUB=po
|
|---|
| 4326 | else
|
|---|
| 4327 | DATADIRNAME=share
|
|---|
| 4328 | nls_cv_header_intl=libintl.h
|
|---|
| 4329 | nls_cv_header_libgt=libgettext.h
|
|---|
| 4330 | fi
|
|---|
| 4331 |
|
|---|
| 4332 | # If this is used in GNU gettext we have to set USE_NLS to `yes'
|
|---|
| 4333 | # because some of the sources are only built for this goal.
|
|---|
| 4334 | if test "$PACKAGE" = gettext; then
|
|---|
| 4335 | USE_NLS=yes
|
|---|
| 4336 | USE_INCLUDED_LIBINTL=yes
|
|---|
| 4337 | fi
|
|---|
| 4338 |
|
|---|
| 4339 | for lang in $ALL_LINGUAS; do
|
|---|
| 4340 | GMOFILES="$GMOFILES $lang.gmo"
|
|---|
| 4341 | POFILES="$POFILES $lang.po"
|
|---|
| 4342 | done
|
|---|
| 4343 |
|
|---|
| 4344 |
|
|---|
| 4345 |
|
|---|
| 4346 |
|
|---|
| 4347 |
|
|---|
| 4348 |
|
|---|
| 4349 |
|
|---|
| 4350 |
|
|---|
| 4351 |
|
|---|
| 4352 |
|
|---|
| 4353 |
|
|---|
| 4354 |
|
|---|
| 4355 |
|
|---|
| 4356 |
|
|---|
| 4357 | if test "x$CATOBJEXT" != "x"; then
|
|---|
| 4358 | if test "x$ALL_LINGUAS" = "x"; then
|
|---|
| 4359 | LINGUAS=
|
|---|
| 4360 | else
|
|---|
| 4361 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
|
|---|
| 4362 | echo "configure:4363: checking for catalogs to be installed" >&5
|
|---|
| 4363 | NEW_LINGUAS=
|
|---|
| 4364 | for lang in ${LINGUAS=$ALL_LINGUAS}; do
|
|---|
| 4365 | case "$ALL_LINGUAS" in
|
|---|
| 4366 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
|
|---|
| 4367 | esac
|
|---|
| 4368 | done
|
|---|
| 4369 | LINGUAS=$NEW_LINGUAS
|
|---|
| 4370 | echo "$ac_t""$LINGUAS" 1>&6
|
|---|
| 4371 | fi
|
|---|
| 4372 |
|
|---|
| 4373 | if test -n "$LINGUAS"; then
|
|---|
| 4374 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
|
|---|
| 4375 | fi
|
|---|
| 4376 | fi
|
|---|
| 4377 |
|
|---|
| 4378 | if test $ac_cv_header_locale_h = yes; then
|
|---|
| 4379 | INCLUDE_LOCALE_H="#include <locale.h>"
|
|---|
| 4380 | else
|
|---|
| 4381 | INCLUDE_LOCALE_H="\
|
|---|
| 4382 | /* The system does not provide the header <locale.h>. Take care yourself. */"
|
|---|
| 4383 | fi
|
|---|
| 4384 |
|
|---|
| 4385 |
|
|---|
| 4386 | if test -f $srcdir/po2tbl.sed.in; then
|
|---|
| 4387 | if test "$CATOBJEXT" = ".cat"; then
|
|---|
| 4388 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
|
|---|
| 4389 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
|
|---|
| 4390 | echo "configure:4391: checking for linux/version.h" >&5
|
|---|
| 4391 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 4392 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4393 | else
|
|---|
| 4394 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4395 | #include <sys/types.h>
|
|---|
| 4396 | #line 4397 "configure"
|
|---|
| 4397 | #include "confdefs.h"
|
|---|
| 4398 | #include <linux/version.h>
|
|---|
| 4399 | EOF
|
|---|
| 4400 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 4401 | { (eval echo configure:4402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 4402 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 4403 | if test -z "$ac_err"; then
|
|---|
| 4404 | rm -rf conftest*
|
|---|
| 4405 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 4406 | else
|
|---|
| 4407 | echo "$ac_err" >&5
|
|---|
| 4408 | echo "configure: failed program was:" >&5
|
|---|
| 4409 | cat conftest.$ac_ext >&5
|
|---|
| 4410 | rm -rf conftest*
|
|---|
| 4411 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 4412 | fi
|
|---|
| 4413 | rm -f conftest*
|
|---|
| 4414 | fi
|
|---|
| 4415 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 4416 | echo "$ac_t""yes" 1>&6
|
|---|
| 4417 | msgformat=linux
|
|---|
| 4418 | else
|
|---|
| 4419 | echo "$ac_t""no" 1>&6
|
|---|
| 4420 | msgformat=xopen
|
|---|
| 4421 | fi
|
|---|
| 4422 |
|
|---|
| 4423 |
|
|---|
| 4424 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
|
|---|
| 4425 | fi
|
|---|
| 4426 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
|
|---|
| 4427 | $srcdir/po2tbl.sed.in > po2tbl.sed
|
|---|
| 4428 | fi
|
|---|
| 4429 |
|
|---|
| 4430 | if test "$PACKAGE" = "gettext"; then
|
|---|
| 4431 | GT_NO="#NO#"
|
|---|
| 4432 | GT_YES=
|
|---|
| 4433 | else
|
|---|
| 4434 | GT_NO=
|
|---|
| 4435 | GT_YES="#YES#"
|
|---|
| 4436 | fi
|
|---|
| 4437 |
|
|---|
| 4438 |
|
|---|
| 4439 |
|
|---|
| 4440 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
|
|---|
| 4441 |
|
|---|
| 4442 |
|
|---|
| 4443 | l=
|
|---|
| 4444 |
|
|---|
| 4445 |
|
|---|
| 4446 | if test -f $srcdir/po/POTFILES.in; then
|
|---|
| 4447 | test -d po || mkdir po
|
|---|
| 4448 | if test "x$srcdir" != "x."; then
|
|---|
| 4449 | if test "x`echo $srcdir | sed -e 's@.\:/.*@@' -e 's@/.*@@' `" = "x"; then
|
|---|
| 4450 | posrcprefix="$srcdir/"
|
|---|
| 4451 | else
|
|---|
| 4452 | posrcprefix="../$srcdir/"
|
|---|
| 4453 | fi
|
|---|
| 4454 | else
|
|---|
| 4455 | posrcprefix="../"
|
|---|
| 4456 | fi
|
|---|
| 4457 | rm -f po/POTFILES
|
|---|
| 4458 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
|
|---|
| 4459 | < $srcdir/po/POTFILES.in > po/POTFILES
|
|---|
| 4460 | fi
|
|---|
| 4461 |
|
|---|
| 4462 |
|
|---|
| 4463 | . ${srcdir}/../bfd/configure.host
|
|---|
| 4464 |
|
|---|
| 4465 | # Put a plausible default for CC_FOR_BUILD in Makefile.
|
|---|
| 4466 | if test -z "$CC_FOR_BUILD"; then
|
|---|
| 4467 | if test "x$cross_compiling" = "xno"; then
|
|---|
| 4468 | CC_FOR_BUILD='$(CC)'
|
|---|
| 4469 | else
|
|---|
| 4470 | CC_FOR_BUILD=gcc
|
|---|
| 4471 | fi
|
|---|
| 4472 | fi
|
|---|
| 4473 |
|
|---|
| 4474 | # Also set EXEEXT_FOR_BUILD.
|
|---|
| 4475 | if test "x$cross_compiling" = "xno"; then
|
|---|
| 4476 | EXEEXT_FOR_BUILD='$(EXEEXT)'
|
|---|
| 4477 | else
|
|---|
| 4478 | echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
|
|---|
| 4479 | echo "configure:4480: checking for build system executable suffix" >&5
|
|---|
| 4480 | if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
|
|---|
| 4481 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4482 | else
|
|---|
| 4483 | rm -f conftest*
|
|---|
| 4484 | echo 'int main () { return 0; }' > conftest.c
|
|---|
| 4485 | bfd_cv_build_exeext=
|
|---|
| 4486 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
|
|---|
| 4487 | for file in conftest.*; do
|
|---|
| 4488 | case $file in
|
|---|
| 4489 | *.c | *.o | *.obj | *.ilk | *.pdb) ;;
|
|---|
| 4490 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 4491 | esac
|
|---|
| 4492 | done
|
|---|
| 4493 | rm -f conftest*
|
|---|
| 4494 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
|
|---|
| 4495 | fi
|
|---|
| 4496 |
|
|---|
| 4497 | echo "$ac_t""$bfd_cv_build_exeext" 1>&6
|
|---|
| 4498 | EXEEXT_FOR_BUILD=""
|
|---|
| 4499 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
|
|---|
| 4500 | fi
|
|---|
| 4501 |
|
|---|
| 4502 |
|
|---|
| 4503 |
|
|---|
| 4504 | # Find a good install program. We prefer a C program (faster),
|
|---|
| 4505 | # so one script is as good as another. But avoid the broken or
|
|---|
| 4506 | # incompatible versions:
|
|---|
| 4507 | # SysV /etc/install, /usr/sbin/install
|
|---|
| 4508 | # SunOS /usr/etc/install
|
|---|
| 4509 | # IRIX /sbin/install
|
|---|
| 4510 | # AIX /bin/install
|
|---|
| 4511 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|---|
| 4512 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|---|
| 4513 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|---|
| 4514 | # ./install, which can be erroneously created by make from ./install.sh.
|
|---|
| 4515 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|---|
| 4516 | echo "configure:4517: checking for a BSD compatible install" >&5
|
|---|
| 4517 | if test -z "$INSTALL"; then
|
|---|
| 4518 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|---|
| 4519 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4520 | else
|
|---|
| 4521 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
|---|
| 4522 | for ac_dir in $PATH; do
|
|---|
| 4523 | # Account for people who put trailing slashes in PATH elements.
|
|---|
| 4524 | case "$ac_dir/" in
|
|---|
| 4525 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|---|
| 4526 | # We reject the install program from OS/2 or W3.1
|
|---|
| 4527 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
|---|
| 4528 | *)
|
|---|
| 4529 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
|---|
| 4530 | # Don't use installbsd from OSF since it installs stuff as root
|
|---|
| 4531 | # by default.
|
|---|
| 4532 | for ac_prog in ginstall scoinst install; do
|
|---|
| 4533 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
|---|
| 4534 | if test $ac_prog = install &&
|
|---|
| 4535 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|---|
| 4536 | # AIX install. It has an incompatible calling convention.
|
|---|
| 4537 | :
|
|---|
| 4538 | else
|
|---|
| 4539 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
|---|
| 4540 | break 2
|
|---|
| 4541 | fi
|
|---|
| 4542 | fi
|
|---|
| 4543 | done
|
|---|
| 4544 | ;;
|
|---|
| 4545 | esac
|
|---|
| 4546 | done
|
|---|
| 4547 | IFS="$ac_save_IFS"
|
|---|
| 4548 |
|
|---|
| 4549 | fi
|
|---|
| 4550 | if test "${ac_cv_path_install+set}" = set; then
|
|---|
| 4551 | INSTALL="$ac_cv_path_install"
|
|---|
| 4552 | else
|
|---|
| 4553 | # As a last resort, use the slow shell script. We don't cache a
|
|---|
| 4554 | # path for INSTALL within a source directory, because that will
|
|---|
| 4555 | # break other packages using the cache if that directory is
|
|---|
| 4556 | # removed, or if the path is relative.
|
|---|
| 4557 | INSTALL="$ac_install_sh"
|
|---|
| 4558 | fi
|
|---|
| 4559 | fi
|
|---|
| 4560 | echo "$ac_t""$INSTALL" 1>&6
|
|---|
| 4561 |
|
|---|
| 4562 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|---|
| 4563 | # It thinks the first close brace ends the variable substitution.
|
|---|
| 4564 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|---|
| 4565 |
|
|---|
| 4566 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|---|
| 4567 |
|
|---|
| 4568 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|---|
| 4569 |
|
|---|
| 4570 |
|
|---|
| 4571 | for ac_hdr in string.h strings.h stdlib.h
|
|---|
| 4572 | do
|
|---|
| 4573 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 4574 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 4575 | echo "configure:4576: checking for $ac_hdr" >&5
|
|---|
| 4576 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 4577 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4578 | else
|
|---|
| 4579 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4580 | #include <sys/types.h>
|
|---|
| 4581 | #line 4582 "configure"
|
|---|
| 4582 | #include "confdefs.h"
|
|---|
| 4583 | #include <$ac_hdr>
|
|---|
| 4584 | EOF
|
|---|
| 4585 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 4586 | { (eval echo configure:4587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 4587 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 4588 | if test -z "$ac_err"; then
|
|---|
| 4589 | rm -rf conftest*
|
|---|
| 4590 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 4591 | else
|
|---|
| 4592 | echo "$ac_err" >&5
|
|---|
| 4593 | echo "configure: failed program was:" >&5
|
|---|
| 4594 | cat conftest.$ac_ext >&5
|
|---|
| 4595 | rm -rf conftest*
|
|---|
| 4596 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 4597 | fi
|
|---|
| 4598 | rm -f conftest*
|
|---|
| 4599 | fi
|
|---|
| 4600 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 4601 | echo "$ac_t""yes" 1>&6
|
|---|
| 4602 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 4603 | cat >> confdefs.h <<EOF
|
|---|
| 4604 | #define $ac_tr_hdr 1
|
|---|
| 4605 | EOF
|
|---|
| 4606 |
|
|---|
| 4607 | else
|
|---|
| 4608 | echo "$ac_t""no" 1>&6
|
|---|
| 4609 | fi
|
|---|
| 4610 | done
|
|---|
| 4611 |
|
|---|
| 4612 |
|
|---|
| 4613 | cgen_maint=no
|
|---|
| 4614 | cgendir='$(srcdir)/../cgen'
|
|---|
| 4615 |
|
|---|
| 4616 | # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
|
|---|
| 4617 | if test "${enable_cgen_maint+set}" = set; then
|
|---|
| 4618 | enableval="$enable_cgen_maint"
|
|---|
| 4619 | case "${enableval}" in
|
|---|
| 4620 | yes) cgen_maint=yes ;;
|
|---|
| 4621 | no) cgen_maint=no ;;
|
|---|
| 4622 | *)
|
|---|
| 4623 | # argument is cgen install directory (not implemented yet).
|
|---|
| 4624 | # Having a `share' directory might be more appropriate for the .scm,
|
|---|
| 4625 | # .cpu, etc. files.
|
|---|
| 4626 | cgen_maint=yes
|
|---|
| 4627 | cgendir=${cgen_maint}/lib/cgen
|
|---|
| 4628 | ;;
|
|---|
| 4629 | esac
|
|---|
| 4630 | fi
|
|---|
| 4631 |
|
|---|
| 4632 |
|
|---|
| 4633 | if test x${cgen_maint} = xyes; then
|
|---|
| 4634 | CGEN_MAINT_TRUE=
|
|---|
| 4635 | CGEN_MAINT_FALSE='#'
|
|---|
| 4636 | else
|
|---|
| 4637 | CGEN_MAINT_TRUE='#'
|
|---|
| 4638 | CGEN_MAINT_FALSE=
|
|---|
| 4639 | fi
|
|---|
| 4640 |
|
|---|
| 4641 |
|
|---|
| 4642 | using_cgen=no
|
|---|
| 4643 |
|
|---|
| 4644 | # Horrible hacks to build DLLs on Windows.
|
|---|
| 4645 | WIN32LDFLAGS=
|
|---|
| 4646 | WIN32LIBADD=
|
|---|
| 4647 | case "${host}" in
|
|---|
| 4648 | *-*-cygwin*)
|
|---|
| 4649 | if test "$enable_shared" = "yes"; then
|
|---|
| 4650 | WIN32LDFLAGS="-no-undefined"
|
|---|
| 4651 | WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
|
|---|
| 4652 | fi
|
|---|
| 4653 | ;;
|
|---|
| 4654 | *-*-os2*)
|
|---|
| 4655 | if test "$enable_shared" = "yes"; then
|
|---|
| 4656 | WIN32LDFLAGS="-no-undefined"
|
|---|
| 4657 | WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl"
|
|---|
| 4658 | fi
|
|---|
| 4659 | ;;
|
|---|
| 4660 | esac
|
|---|
| 4661 |
|
|---|
| 4662 |
|
|---|
| 4663 |
|
|---|
| 4664 | # target-specific stuff:
|
|---|
| 4665 |
|
|---|
| 4666 | # Canonicalize the secondary target names.
|
|---|
| 4667 | if test -n "$enable_targets" ; then
|
|---|
| 4668 | for targ in `echo $enable_targets | sed 's/,/ /g'`
|
|---|
| 4669 | do
|
|---|
| 4670 | result=`$ac_config_sub $targ 2>/dev/null`
|
|---|
| 4671 | if test -n "$result" ; then
|
|---|
| 4672 | canon_targets="$canon_targets $result"
|
|---|
| 4673 | else
|
|---|
| 4674 | # Allow targets that config.sub doesn't recognize, like "all".
|
|---|
| 4675 | canon_targets="$canon_targets $targ"
|
|---|
| 4676 | fi
|
|---|
| 4677 | done
|
|---|
| 4678 | fi
|
|---|
| 4679 |
|
|---|
| 4680 | all_targets=false
|
|---|
| 4681 | selarchs=
|
|---|
| 4682 | for targ in $target $canon_targets
|
|---|
| 4683 | do
|
|---|
| 4684 | if test "x$targ" = "xall" ; then
|
|---|
| 4685 | all_targets=true
|
|---|
| 4686 | else
|
|---|
| 4687 | . $srcdir/../bfd/config.bfd
|
|---|
| 4688 | selarchs="$selarchs $targ_archs"
|
|---|
| 4689 | fi
|
|---|
| 4690 | done
|
|---|
| 4691 |
|
|---|
| 4692 | # Utility var, documents generic cgen support files.
|
|---|
| 4693 |
|
|---|
| 4694 | cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
|
|---|
| 4695 |
|
|---|
| 4696 | # We don't do any links based on the target system, just makefile config.
|
|---|
| 4697 |
|
|---|
| 4698 | if test x${all_targets} = xfalse ; then
|
|---|
| 4699 |
|
|---|
| 4700 | # Target architecture .o files.
|
|---|
| 4701 | ta=
|
|---|
| 4702 |
|
|---|
| 4703 | for arch in $selarchs
|
|---|
| 4704 | do
|
|---|
| 4705 | ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
|
|---|
| 4706 | archdefs="$archdefs -DARCH_$ad"
|
|---|
| 4707 | case "$arch" in
|
|---|
| 4708 | bfd_a29k_arch) ta="$ta a29k-dis.lo" ;;
|
|---|
| 4709 | bfd_alliant_arch) ;;
|
|---|
| 4710 | bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
|
|---|
| 4711 | bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
|
|---|
| 4712 | bfd_arm_arch) ta="$ta arm-dis.lo" ;;
|
|---|
| 4713 | bfd_avr_arch) ta="$ta avr-dis.lo" ;;
|
|---|
| 4714 | bfd_convex_arch) ;;
|
|---|
| 4715 | bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo" ;;
|
|---|
| 4716 | bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
|
|---|
| 4717 | bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
|
|---|
| 4718 | bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
|
|---|
| 4719 | bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
|
|---|
| 4720 | bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
|
|---|
| 4721 | bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
|
|---|
| 4722 | bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
|
|---|
| 4723 | bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
|
|---|
| 4724 | bfd_i386_arch) ta="$ta i386-dis.lo" ;;
|
|---|
| 4725 | bfd_i860_arch) ta="$ta i860-dis.lo" ;;
|
|---|
| 4726 | bfd_i960_arch) ta="$ta i960-dis.lo" ;;
|
|---|
| 4727 | bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
|
|---|
| 4728 | bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
|
|---|
| 4729 | bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
|
|---|
| 4730 | bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
|
|---|
| 4731 | bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
|
|---|
| 4732 | bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
|
|---|
| 4733 | bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
|
|---|
| 4734 | bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
|
|---|
| 4735 | bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
|
|---|
| 4736 | bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
|
|---|
| 4737 | bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
|
|---|
| 4738 | bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
|
|---|
| 4739 | bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
|
|---|
| 4740 | bfd_msp430_arch) ta="$ta msp430-dis.lo" ;;
|
|---|
| 4741 | bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
|
|---|
| 4742 | bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
|
|---|
| 4743 | bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
|
|---|
| 4744 | bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
|
|---|
| 4745 | bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
|
|---|
| 4746 | bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
|
|---|
| 4747 | bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
|
|---|
| 4748 | bfd_pyramid_arch) ;;
|
|---|
| 4749 | bfd_romp_arch) ;;
|
|---|
| 4750 | bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
|
|---|
| 4751 | bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
|
|---|
| 4752 | bfd_sh_arch)
|
|---|
| 4753 | # We can't decide what we want just from the CPU family.
|
|---|
| 4754 | # We want SH5 support unless a specific version of sh is
|
|---|
| 4755 | # specified, as in sh3-elf, sh3b-linux-gnu, etc.
|
|---|
| 4756 | # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
|
|---|
| 4757 | for t in $target $canon_targets; do
|
|---|
| 4758 | case $t in
|
|---|
| 4759 | all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
|
|---|
| 4760 | sh-*-linux* | shl-*-linux*)
|
|---|
| 4761 | ta="$ta sh64-dis.lo sh64-opc.lo"
|
|---|
| 4762 | archdefs="$archdefs -DINCLUDE_SHMEDIA"
|
|---|
| 4763 | break;;
|
|---|
| 4764 | esac;
|
|---|
| 4765 | done
|
|---|
| 4766 | ta="$ta sh-dis.lo" ;;
|
|---|
| 4767 | bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
|
|---|
| 4768 | bfd_tahoe_arch) ;;
|
|---|
| 4769 | bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
|
|---|
| 4770 | bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
|
|---|
| 4771 | bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
|
|---|
| 4772 | bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
|
|---|
| 4773 | bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
|
|---|
| 4774 | bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
|
|---|
| 4775 | bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
|
|---|
| 4776 | bfd_vax_arch) ta="$ta vax-dis.lo" ;;
|
|---|
| 4777 | bfd_w65_arch) ta="$ta w65-dis.lo" ;;
|
|---|
| 4778 | bfd_we32k_arch) ;;
|
|---|
| 4779 | bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
|
|---|
| 4780 | bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
|
|---|
| 4781 | bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
|
|---|
| 4782 | bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
|
|---|
| 4783 |
|
|---|
| 4784 | "") ;;
|
|---|
| 4785 | *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
|
|---|
| 4786 | esac
|
|---|
| 4787 | done
|
|---|
| 4788 |
|
|---|
| 4789 | if test $using_cgen = yes ; then
|
|---|
| 4790 | ta="$ta $cgen_files"
|
|---|
| 4791 | fi
|
|---|
| 4792 |
|
|---|
| 4793 | # Weed out duplicate .o files.
|
|---|
| 4794 | f=""
|
|---|
| 4795 | for i in $ta ; do
|
|---|
| 4796 | case " $f " in
|
|---|
| 4797 | *" $i "*) ;;
|
|---|
| 4798 | *) f="$f $i" ;;
|
|---|
| 4799 | esac
|
|---|
| 4800 | done
|
|---|
| 4801 | ta="$f"
|
|---|
| 4802 |
|
|---|
| 4803 | # And duplicate -D flags.
|
|---|
| 4804 | f=""
|
|---|
| 4805 | for i in $archdefs ; do
|
|---|
| 4806 | case " $f " in
|
|---|
| 4807 | *" $i "*) ;;
|
|---|
| 4808 | *) f="$f $i" ;;
|
|---|
| 4809 | esac
|
|---|
| 4810 | done
|
|---|
| 4811 | archdefs="$f"
|
|---|
| 4812 |
|
|---|
| 4813 | BFD_MACHINES="$ta"
|
|---|
| 4814 |
|
|---|
| 4815 | else # all_targets is true
|
|---|
| 4816 | archdefs=-DARCH_all
|
|---|
| 4817 | BFD_MACHINES='$(ALL_MACHINES)'
|
|---|
| 4818 | fi
|
|---|
| 4819 |
|
|---|
| 4820 |
|
|---|
| 4821 |
|
|---|
| 4822 |
|
|---|
| 4823 | trap '' 1 2 15
|
|---|
| 4824 | cat > confcache <<\EOF
|
|---|
| 4825 | # This file is a shell script that caches the results of configure
|
|---|
| 4826 | # tests run on this system so they can be shared between configure
|
|---|
| 4827 | # scripts and configure runs. It is not useful on other systems.
|
|---|
| 4828 | # If it contains results you don't want to keep, you may remove or edit it.
|
|---|
| 4829 | #
|
|---|
| 4830 | # By default, configure uses ./config.cache as the cache file,
|
|---|
| 4831 | # creating it if it does not exist already. You can give configure
|
|---|
| 4832 | # the --cache-file=FILE option to use a different cache file; that is
|
|---|
| 4833 | # what configure does when it calls configure scripts in
|
|---|
| 4834 | # subdirectories, so they share the cache.
|
|---|
| 4835 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|---|
| 4836 | # config.status only pays attention to the cache file if you give it the
|
|---|
| 4837 | # --recheck option to rerun configure.
|
|---|
| 4838 | #
|
|---|
| 4839 | EOF
|
|---|
| 4840 | # The following way of writing the cache mishandles newlines in values,
|
|---|
| 4841 | # but we know of no workaround that is simple, portable, and efficient.
|
|---|
| 4842 | # So, don't put newlines in cache variables' values.
|
|---|
| 4843 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
|---|
| 4844 | # and sets the high bit in the cache file unless we assign to the vars.
|
|---|
| 4845 | (set) 2>&1 |
|
|---|
| 4846 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|---|
| 4847 | *ac_space=\ *)
|
|---|
| 4848 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
|---|
| 4849 | # turns \\\\ into \\, and sed turns \\ into \).
|
|---|
| 4850 | sed -n \
|
|---|
| 4851 | -e "s/'/'\\\\''/g" \
|
|---|
| 4852 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|---|
| 4853 | ;;
|
|---|
| 4854 | *)
|
|---|
| 4855 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|---|
| 4856 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|---|
| 4857 | ;;
|
|---|
| 4858 | esac >> confcache
|
|---|
| 4859 | if cmp -s $cache_file confcache; then
|
|---|
| 4860 | :
|
|---|
| 4861 | else
|
|---|
| 4862 | if test -w $cache_file; then
|
|---|
| 4863 | echo "updating cache $cache_file"
|
|---|
| 4864 | cat confcache > $cache_file
|
|---|
| 4865 | else
|
|---|
| 4866 | echo "not updating unwritable cache $cache_file"
|
|---|
| 4867 | fi
|
|---|
| 4868 | fi
|
|---|
| 4869 | rm -f confcache
|
|---|
| 4870 |
|
|---|
| 4871 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|---|
| 4872 |
|
|---|
| 4873 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|---|
| 4874 | # Let make expand exec_prefix.
|
|---|
| 4875 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|---|
| 4876 |
|
|---|
| 4877 | # Any assignment to VPATH causes Sun make to only execute
|
|---|
| 4878 | # the first set of double-colon rules, so remove it if not needed.
|
|---|
| 4879 | # If there is a colon in the path, we need to keep it.
|
|---|
| 4880 | if test "x$srcdir" = x.; then
|
|---|
| 4881 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|---|
| 4882 | fi
|
|---|
| 4883 |
|
|---|
| 4884 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|---|
| 4885 |
|
|---|
| 4886 | DEFS=-DHAVE_CONFIG_H
|
|---|
| 4887 |
|
|---|
| 4888 | # Without the "./", some shells look in PATH for config.status.
|
|---|
| 4889 | : ${CONFIG_STATUS=./config.status}
|
|---|
| 4890 |
|
|---|
| 4891 | echo creating $CONFIG_STATUS
|
|---|
| 4892 | rm -f $CONFIG_STATUS
|
|---|
| 4893 | cat > $CONFIG_STATUS <<EOF
|
|---|
| 4894 | #! /bin/sh
|
|---|
| 4895 | # Generated automatically by configure.
|
|---|
| 4896 | # Run this file to recreate the current configuration.
|
|---|
| 4897 | # This directory was configured as follows,
|
|---|
| 4898 | EOF
|
|---|
| 4899 | echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
|
|---|
| 4900 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 4901 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|---|
| 4902 | #
|
|---|
| 4903 | # $0 $ac_configure_args
|
|---|
| 4904 | #
|
|---|
| 4905 | # Compiler output produced by configure, useful for debugging
|
|---|
| 4906 | # configure, is in ./config.log if it exists.
|
|---|
| 4907 |
|
|---|
| 4908 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
|---|
| 4909 | for ac_option
|
|---|
| 4910 | do
|
|---|
| 4911 | case "\$ac_option" in
|
|---|
| 4912 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|---|
| 4913 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|---|
| 4914 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
|---|
| 4915 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
|---|
| 4916 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
|---|
| 4917 | exit 0 ;;
|
|---|
| 4918 | -help | --help | --hel | --he | --h)
|
|---|
| 4919 | echo "\$ac_cs_usage"; exit 0 ;;
|
|---|
| 4920 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
|---|
| 4921 | esac
|
|---|
| 4922 | done
|
|---|
| 4923 |
|
|---|
| 4924 | ac_given_srcdir=$srcdir
|
|---|
| 4925 | ac_given_INSTALL="$INSTALL"
|
|---|
| 4926 | PATHIFS="$PATH_IFS"
|
|---|
| 4927 |
|
|---|
| 4928 | trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
|---|
| 4929 | EOF
|
|---|
| 4930 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 4931 |
|
|---|
| 4932 | # Protect against being on the right side of a sed subst in config.status.
|
|---|
| 4933 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|---|
| 4934 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
|---|
| 4935 | $ac_vpsub
|
|---|
| 4936 | $extrasub
|
|---|
| 4937 | s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
|
|---|
| 4938 | s%@SHELL@%$SHELL%g
|
|---|
| 4939 | s%@CFLAGS@%$CFLAGS%g
|
|---|
| 4940 | s%@CPPFLAGS@%$CPPFLAGS%g
|
|---|
| 4941 | s%@CXXFLAGS@%$CXXFLAGS%g
|
|---|
| 4942 | s%@FFLAGS@%$FFLAGS%g
|
|---|
| 4943 | s%@DEFS@%$DEFS%g
|
|---|
| 4944 | s%@LDFLAGS@%$LDFLAGS%g
|
|---|
| 4945 | s%@LIBS@%$LIBS%g
|
|---|
| 4946 | s%@exec_prefix@%$exec_prefix%g
|
|---|
| 4947 | s%@prefix@%$prefix%g
|
|---|
| 4948 | s%@program_transform_name@%$program_transform_name%g
|
|---|
| 4949 | s%@bindir@%$bindir%g
|
|---|
| 4950 | s%@sbindir@%$sbindir%g
|
|---|
| 4951 | s%@libexecdir@%$libexecdir%g
|
|---|
| 4952 | s%@datadir@%$datadir%g
|
|---|
| 4953 | s%@sysconfdir@%$sysconfdir%g
|
|---|
| 4954 | s%@sharedstatedir@%$sharedstatedir%g
|
|---|
| 4955 | s%@localstatedir@%$localstatedir%g
|
|---|
| 4956 | s%@libdir@%$libdir%g
|
|---|
| 4957 | s%@includedir@%$includedir%g
|
|---|
| 4958 | s%@oldincludedir@%$oldincludedir%g
|
|---|
| 4959 | s%@infodir@%$infodir%g
|
|---|
| 4960 | s%@mandir@%$mandir%g
|
|---|
| 4961 | s%@PATH_IFS@%$PATH_IFS%g
|
|---|
| 4962 | s%@EXEEXT@%$EXEEXT%g
|
|---|
| 4963 | s%@host@%$host%g
|
|---|
| 4964 | s%@host_alias@%$host_alias%g
|
|---|
| 4965 | s%@host_cpu@%$host_cpu%g
|
|---|
| 4966 | s%@host_vendor@%$host_vendor%g
|
|---|
| 4967 | s%@host_os@%$host_os%g
|
|---|
| 4968 | s%@target@%$target%g
|
|---|
| 4969 | s%@target_alias@%$target_alias%g
|
|---|
| 4970 | s%@target_cpu@%$target_cpu%g
|
|---|
| 4971 | s%@target_vendor@%$target_vendor%g
|
|---|
| 4972 | s%@target_os@%$target_os%g
|
|---|
| 4973 | s%@build@%$build%g
|
|---|
| 4974 | s%@build_alias@%$build_alias%g
|
|---|
| 4975 | s%@build_cpu@%$build_cpu%g
|
|---|
| 4976 | s%@build_vendor@%$build_vendor%g
|
|---|
| 4977 | s%@build_os@%$build_os%g
|
|---|
| 4978 | s%@CC@%$CC%g
|
|---|
| 4979 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
|---|
| 4980 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
|---|
| 4981 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|---|
| 4982 | s%@PACKAGE@%$PACKAGE%g
|
|---|
| 4983 | s%@VERSION@%$VERSION%g
|
|---|
| 4984 | s%@ACLOCAL@%$ACLOCAL%g
|
|---|
| 4985 | s%@AUTOCONF@%$AUTOCONF%g
|
|---|
| 4986 | s%@AUTOMAKE@%$AUTOMAKE%g
|
|---|
| 4987 | s%@AUTOHEADER@%$AUTOHEADER%g
|
|---|
| 4988 | s%@MAKEINFO@%$MAKEINFO%g
|
|---|
| 4989 | s%@SET_MAKE@%$SET_MAKE%g
|
|---|
| 4990 | s%@AR@%$AR%g
|
|---|
| 4991 | s%@RANLIB@%$RANLIB%g
|
|---|
| 4992 | s%@LN_S@%$LN_S%g
|
|---|
| 4993 | s%@OBJEXT@%$OBJEXT%g
|
|---|
| 4994 | s%@STRIP@%$STRIP%g
|
|---|
| 4995 | s%@LIBTOOL@%$LIBTOOL%g
|
|---|
| 4996 | s%@WARN_CFLAGS@%$WARN_CFLAGS%g
|
|---|
| 4997 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
|
|---|
| 4998 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
|
|---|
| 4999 | s%@MAINT@%$MAINT%g
|
|---|
| 5000 | s%@INSTALL_LIBBFD_TRUE@%$INSTALL_LIBBFD_TRUE%g
|
|---|
| 5001 | s%@INSTALL_LIBBFD_FALSE@%$INSTALL_LIBBFD_FALSE%g
|
|---|
| 5002 | s%@bfdlibdir@%$bfdlibdir%g
|
|---|
| 5003 | s%@bfdincludedir@%$bfdincludedir%g
|
|---|
| 5004 | s%@CPP@%$CPP%g
|
|---|
| 5005 | s%@ALLOCA@%$ALLOCA%g
|
|---|
| 5006 | s%@USE_NLS@%$USE_NLS%g
|
|---|
| 5007 | s%@MSGFMT@%$MSGFMT%g
|
|---|
| 5008 | s%@GMSGFMT@%$GMSGFMT%g
|
|---|
| 5009 | s%@XGETTEXT@%$XGETTEXT%g
|
|---|
| 5010 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
|
|---|
| 5011 | s%@CATALOGS@%$CATALOGS%g
|
|---|
| 5012 | s%@CATOBJEXT@%$CATOBJEXT%g
|
|---|
| 5013 | s%@DATADIRNAME@%$DATADIRNAME%g
|
|---|
| 5014 | s%@GMOFILES@%$GMOFILES%g
|
|---|
| 5015 | s%@INSTOBJEXT@%$INSTOBJEXT%g
|
|---|
| 5016 | s%@INTLDEPS@%$INTLDEPS%g
|
|---|
| 5017 | s%@INTLLIBS@%$INTLLIBS%g
|
|---|
| 5018 | s%@INTLOBJS@%$INTLOBJS%g
|
|---|
| 5019 | s%@POFILES@%$POFILES%g
|
|---|
| 5020 | s%@POSUB@%$POSUB%g
|
|---|
| 5021 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
|
|---|
| 5022 | s%@GT_NO@%$GT_NO%g
|
|---|
| 5023 | s%@GT_YES@%$GT_YES%g
|
|---|
| 5024 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
|
|---|
| 5025 | s%@l@%$l%g
|
|---|
| 5026 | s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
|
|---|
| 5027 | s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
|
|---|
| 5028 | s%@HDEFINES@%$HDEFINES%g
|
|---|
| 5029 | s%@CGEN_MAINT_TRUE@%$CGEN_MAINT_TRUE%g
|
|---|
| 5030 | s%@CGEN_MAINT_FALSE@%$CGEN_MAINT_FALSE%g
|
|---|
| 5031 | s%@cgendir@%$cgendir%g
|
|---|
| 5032 | s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
|
|---|
| 5033 | s%@WIN32LIBADD@%$WIN32LIBADD%g
|
|---|
| 5034 | s%@archdefs@%$archdefs%g
|
|---|
| 5035 | s%@BFD_MACHINES@%$BFD_MACHINES%g
|
|---|
| 5036 |
|
|---|
| 5037 | CEOF
|
|---|
| 5038 | EOF
|
|---|
| 5039 |
|
|---|
| 5040 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 5041 |
|
|---|
| 5042 | # Split the substitutions into bite-sized pieces for seds with
|
|---|
| 5043 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
|---|
| 5044 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|---|
| 5045 | ac_file=1 # Number of current file.
|
|---|
| 5046 | ac_beg=1 # First line for current file.
|
|---|
| 5047 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|---|
| 5048 | ac_more_lines=:
|
|---|
| 5049 | ac_sed_cmds=""
|
|---|
| 5050 | while $ac_more_lines; do
|
|---|
| 5051 | if test $ac_beg -gt 1; then
|
|---|
| 5052 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|---|
| 5053 | else
|
|---|
| 5054 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|---|
| 5055 | fi
|
|---|
| 5056 | if test ! -s conftest.s$ac_file; then
|
|---|
| 5057 | ac_more_lines=false
|
|---|
| 5058 | rm -f conftest.s$ac_file
|
|---|
| 5059 | else
|
|---|
| 5060 | if test -z "$ac_sed_cmds"; then
|
|---|
| 5061 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
|---|
| 5062 | else
|
|---|
| 5063 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|---|
| 5064 | fi
|
|---|
| 5065 | ac_file=`expr $ac_file + 1`
|
|---|
| 5066 | ac_beg=$ac_end
|
|---|
| 5067 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|---|
| 5068 | fi
|
|---|
| 5069 | done
|
|---|
| 5070 | if test -z "$ac_sed_cmds"; then
|
|---|
| 5071 | ac_sed_cmds=cat
|
|---|
| 5072 | fi
|
|---|
| 5073 | EOF
|
|---|
| 5074 |
|
|---|
| 5075 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 5076 |
|
|---|
| 5077 | CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
|
|---|
| 5078 | EOF
|
|---|
| 5079 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 5080 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|---|
| 5081 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|---|
| 5082 | case "$ac_file" in
|
|---|
| 5083 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|---|
| 5084 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|---|
| 5085 | *) ac_file_in="${ac_file}.in" ;;
|
|---|
| 5086 | esac
|
|---|
| 5087 |
|
|---|
| 5088 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|---|
| 5089 |
|
|---|
| 5090 | # Remove last slash and all that follows it. Not all systems have dirname.
|
|---|
| 5091 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|---|
| 5092 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|---|
| 5093 | # The file is in a subdirectory.
|
|---|
| 5094 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|---|
| 5095 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|---|
| 5096 | # A "../" for each directory in $ac_dir_suffix.
|
|---|
| 5097 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|---|
| 5098 | else
|
|---|
| 5099 | ac_dir_suffix= ac_dots=
|
|---|
| 5100 | fi
|
|---|
| 5101 |
|
|---|
| 5102 | case "$ac_given_srcdir" in
|
|---|
| 5103 | .) srcdir=.
|
|---|
| 5104 | if test -z "$ac_dots"; then top_srcdir=.
|
|---|
| 5105 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|---|
| 5106 | /* | [A-Za-z]:*)
|
|---|
| 5107 | srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|---|
| 5108 | *) # Relative path.
|
|---|
| 5109 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|---|
| 5110 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|---|
| 5111 | esac
|
|---|
| 5112 |
|
|---|
| 5113 | case "$ac_given_INSTALL" in
|
|---|
| 5114 | [/$]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
|
|---|
| 5115 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|---|
| 5116 | esac
|
|---|
| 5117 |
|
|---|
| 5118 | echo creating "$ac_file"
|
|---|
| 5119 | rm -f "$ac_file"
|
|---|
| 5120 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|---|
| 5121 | case "$ac_file" in
|
|---|
| 5122 | *Makefile*) ac_comsub="1i\\
|
|---|
| 5123 | # $configure_input" ;;
|
|---|
| 5124 | *) ac_comsub= ;;
|
|---|
| 5125 | esac
|
|---|
| 5126 |
|
|---|
| 5127 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
|
|---|
| 5128 | sed -e "$ac_comsub
|
|---|
| 5129 | s%@configure_input@%$configure_input%g
|
|---|
| 5130 | s%@srcdir@%$srcdir%g
|
|---|
| 5131 | s%@top_srcdir@%$top_srcdir%g
|
|---|
| 5132 | s%@INSTALL@%$INSTALL%g
|
|---|
| 5133 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
|---|
| 5134 | fi; done
|
|---|
| 5135 | rm -f conftest.s*
|
|---|
| 5136 |
|
|---|
| 5137 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|---|
| 5138 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
|---|
| 5139 | #
|
|---|
| 5140 | # ac_d sets the value in "#define NAME VALUE" lines.
|
|---|
| 5141 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|---|
| 5142 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
|---|
| 5143 | ac_dC='\3'
|
|---|
| 5144 | ac_dD='%g'
|
|---|
| 5145 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
|---|
| 5146 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|---|
| 5147 | ac_uB='\([ ]\)%\1#\2define\3'
|
|---|
| 5148 | ac_uC=' '
|
|---|
| 5149 | ac_uD='\4%g'
|
|---|
| 5150 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
|---|
| 5151 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|---|
| 5152 | ac_eB='$%\1#\2define\3'
|
|---|
| 5153 | ac_eC=' '
|
|---|
| 5154 | ac_eD='%g'
|
|---|
| 5155 |
|
|---|
| 5156 | if test "${CONFIG_HEADERS+set}" != set; then
|
|---|
| 5157 | EOF
|
|---|
| 5158 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 5159 | CONFIG_HEADERS="config.h:config.in"
|
|---|
| 5160 | EOF
|
|---|
| 5161 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 5162 | fi
|
|---|
| 5163 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|---|
| 5164 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|---|
| 5165 | case "$ac_file" in
|
|---|
| 5166 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|---|
| 5167 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|---|
| 5168 | *) ac_file_in="${ac_file}.in" ;;
|
|---|
| 5169 | esac
|
|---|
| 5170 |
|
|---|
| 5171 | echo creating $ac_file
|
|---|
| 5172 |
|
|---|
| 5173 | rm -f conftest.frag conftest.in conftest.out
|
|---|
| 5174 | # kso the other way around might work better with drive letters and such.
|
|---|
| 5175 | # ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|---|
| 5176 | ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
|
|---|
| 5177 | cat $ac_file_inputs > conftest.in
|
|---|
| 5178 |
|
|---|
| 5179 | EOF
|
|---|
| 5180 |
|
|---|
| 5181 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
|---|
| 5182 | # the proper values into config.h.in to produce config.h. And first:
|
|---|
| 5183 | # Protect against being on the right side of a sed subst in config.status.
|
|---|
| 5184 | # Protect against being in an unquoted here document in config.status.
|
|---|
| 5185 | rm -f conftest.vals
|
|---|
| 5186 | cat > conftest.hdr <<\EOF
|
|---|
| 5187 | s/[\\&%]/\\&/g
|
|---|
| 5188 | s%[\\$`]%\\&%g
|
|---|
| 5189 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|---|
| 5190 | s%ac_d%ac_u%gp
|
|---|
| 5191 | s%ac_u%ac_e%gp
|
|---|
| 5192 | EOF
|
|---|
| 5193 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|---|
| 5194 | rm -f conftest.hdr
|
|---|
| 5195 |
|
|---|
| 5196 | # This sed command replaces #undef with comments. This is necessary, for
|
|---|
| 5197 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|---|
| 5198 | # on some systems where configure will not decide to define it.
|
|---|
| 5199 | cat >> conftest.vals <<\EOF
|
|---|
| 5200 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|---|
| 5201 | EOF
|
|---|
| 5202 |
|
|---|
| 5203 | # Break up conftest.vals because some shells have a limit on
|
|---|
| 5204 | # the size of here documents, and old seds have small limits too.
|
|---|
| 5205 |
|
|---|
| 5206 | rm -f conftest.tail
|
|---|
| 5207 | while :
|
|---|
| 5208 | do
|
|---|
| 5209 | ac_lines=`grep -c . conftest.vals`
|
|---|
| 5210 | # grep -c gives empty output for an empty file on some AIX systems.
|
|---|
| 5211 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|---|
| 5212 | # Write a limited-size here document to conftest.frag.
|
|---|
| 5213 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|---|
| 5214 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|---|
| 5215 | echo 'CEOF
|
|---|
| 5216 | sed -f conftest.frag conftest.in > conftest.out
|
|---|
| 5217 | rm -f conftest.in
|
|---|
| 5218 | mv conftest.out conftest.in
|
|---|
| 5219 | ' >> $CONFIG_STATUS
|
|---|
| 5220 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|---|
| 5221 | rm -f conftest.vals
|
|---|
| 5222 | mv conftest.tail conftest.vals
|
|---|
| 5223 | done
|
|---|
| 5224 | rm -f conftest.vals
|
|---|
| 5225 |
|
|---|
| 5226 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 5227 | rm -f conftest.frag conftest.h
|
|---|
| 5228 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
|---|
| 5229 | cat conftest.in >> conftest.h
|
|---|
| 5230 | rm -f conftest.in
|
|---|
| 5231 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|---|
| 5232 | echo "$ac_file is unchanged"
|
|---|
| 5233 | rm -f conftest.h
|
|---|
| 5234 | else
|
|---|
| 5235 | # Remove last slash and all that follows it. Not all systems have dirname.
|
|---|
| 5236 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|---|
| 5237 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|---|
| 5238 | # The file is in a subdirectory.
|
|---|
| 5239 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|---|
| 5240 | fi
|
|---|
| 5241 | rm -f $ac_file
|
|---|
| 5242 | mv conftest.h $ac_file
|
|---|
| 5243 | fi
|
|---|
| 5244 | fi; done
|
|---|
| 5245 |
|
|---|
| 5246 | EOF
|
|---|
| 5247 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 5248 |
|
|---|
| 5249 |
|
|---|
| 5250 | EOF
|
|---|
| 5251 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 5252 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
|
|---|
| 5253 | sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
|
|---|
| 5254 | exit 0
|
|---|
| 5255 | EOF
|
|---|
| 5256 | chmod +x $CONFIG_STATUS
|
|---|
| 5257 | rm -fr confdefs* $ac_clean_files
|
|---|
| 5258 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
|---|
| 5259 |
|
|---|