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