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