Error Buddy
Do you have an error message from your application? Then find the answer with Error Buddy. You can search over 40000 source code files and troubleshooting documents using our beta lucene/nutch search interface or if you prefer, search as normal using google. With LXR technology you can drill right down into the line of source code where it came from with full cross-referencing.
If after searching you didn't get your ideal answer, or you are still unclear what the error means, you can choose to post that question to the community forums following the link included in the search results.
[1.6]001 #! /bin/sh 002 003 # Guess values for system-dependent variables and create Makefiles. 004 # Generated automatically using autoconf version 2.13 005 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 006 # 007 # This configure script is free software; the Free Software Foundation 008 # gives unlimited permission to copy, distribute and modify it. 009 010 # Defaults: 011 ac_help= 012 ac_default_prefix=/usr/local 013 # Any additions from configure.in: 014 ac_help="$ac_help 015 --enable-shared[=PKGS] build shared libraries [default=no]" 016 ac_help="$ac_help 017 --enable-static[=PKGS] build static libraries [default=yes]" 018 ac_help="$ac_help 019 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" 020 ac_help="$ac_help 021 --with-gnu-ld assume the C compiler uses GNU ld [default=no]" 022 ac_help="$ac_help 023 --disable-libtool-lock avoid locking (might break parallel builds)" 024 ac_help="$ac_help 025 --with-pic try to use only PIC/non-PIC objects [default=use both]" 026 ac_help="$ac_help 027 --enable-targets alternative target configurations" 028 ac_help="$ac_help 029 --enable-commonbfdlib build shared BFD/opcodes/libiberty library" 030 ac_help="$ac_help 031 --enable-build-warnings Enable build-time compiler warnings if gcc is used" 032 ac_help="$ac_help 033 --enable-maintainer-mode enable make rules and dependencies not useful 034 (and sometimes confusing) to the casual installer" 035 ac_help="$ac_help 036 --enable-install-libbfd controls installation of libbfd and related headers" 037 ac_help="$ac_help 038 --disable-nls do not use Native Language Support" 039 ac_help="$ac_help 040 --with-included-gettext use the GNU gettext library included here" 041 ac_help="$ac_help 042 --enable-cgen-maint[=dir] build cgen generated files" 043 044 # Initialize some variables set by options. 045 # The variables have the same names as the options, with 046 # dashes changed to underlines. 047 build=NONE 048 cache_file=./config.cache 049 exec_prefix=NONE 050 host=NONE 051 no_create= 052 nonopt=NONE 053 no_recursion= 054 prefix=NONE 055 program_prefix=NONE 056 program_suffix=NONE 057 program_transform_name=s,x,x, 058 silent= 059 site= 060 sitefile= 061 srcdir= 062 target=NONE 063 verbose= 064 x_includes=NONE 065 x_libraries=NONE 066 bindir='${exec_prefix}/bin' 067 sbindir='${exec_prefix}/sbin' 068 libexecdir='${exec_prefix}/libexec' 069 datadir='${prefix}/share' 070 sysconfdir='${prefix}/etc' 071 sharedstatedir='${prefix}/com' 072 localstatedir='${prefix}/var' 073 libdir='${exec_prefix}/lib' 074 includedir='${prefix}/include' 075 oldincludedir='/usr/include' 076 infodir='${prefix}/info' 077 mandir='${prefix}/man' 078 079 # Initialize some other variables. 080 subdirs= 081 MFLAGS= MAKEFLAGS= 082 SHELL=${CONFIG_SHELL-/bin/sh} 083 # Maximum number of lines to put in a shell here document. 084 ac_max_here_lines=12 085 086 ac_prev= 087 for ac_option 088 do 089 090 # If the previous option needs an argument, assign it. 091 if test -n "$ac_prev"; then 092 eval "$ac_prev=\$ac_option" 093 ac_prev= 094 continue 095 fi 096 097 case "$ac_option" in 098 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 099 *) ac_optarg= ;; 100 esac 101 102 # Accept the important Cygnus configure options, so we can diagnose typos. 103 104 case "$ac_option" in 105 106 -bindir | --bindir | --bindi | --bind | --bin | --bi) 107 ac_prev=bindir ;; 108 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 109 bindir="$ac_optarg" ;; 110 111 -build | --build | --buil | --bui | --bu) 112 ac_prev=build ;; 113 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 114 build="$ac_optarg" ;; 115 116 -cache-file | --cache-file | --cache-fil | --cache-fi \ 117 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 118 ac_prev=cache_file ;; 119 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 120 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 121 cache_file="$ac_optarg" ;; 122 123 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 124 ac_prev=datadir ;; 125 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 126 | --da=*) 127 datadir="$ac_optarg" ;; 128 129 -disable-* | --disable-*) 130 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 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 eval "enable_${ac_feature}=no" ;; 137 138 -enable-* | --enable-*) 139 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 140 # Reject names that are not valid shell variable names. 141 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 142 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 143 fi 144 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 145 case "$ac_option" in 146 *=*) ;; 147 *) ac_optarg=yes ;; 148 esac 149 eval "enable_${ac_feature}='$ac_optarg'" ;; 150 151 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 152 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 153 | --exec | --exe | --ex) 154 ac_prev=exec_prefix ;; 155 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 156 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 157 | --exec=* | --exe=* | --ex=*) 158 exec_prefix="$ac_optarg" ;; 159 160 -gas | --gas | --ga | --g) 161 # Obsolete; use --with-gas. 162 with_gas=yes ;; 163 164 -help | --help | --hel | --he) 165 # Omit some internal or obsolete options to make the list less imposing. 166 # This message is too long to be a string in the A/UX 3.1 sh. 167 cat << EOF 168 Usage: configure [options] [host] 169 Options: [defaults in brackets after descriptions] 170 Configuration: 171 --cache-file=FILE cache test results in FILE 172 --help print this message 173 --no-create do not create output files 174 --quiet, --silent do not print \`checking...' messages 175 --site-file=FILE use FILE as the site file 176 --version print the version of autoconf that created configure 177 Directory and file names: 178 --prefix=PREFIX install architecture-independent files in PREFIX 179 [$ac_default_prefix] 180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 181 [same as prefix] 182 --bindir=DIR user executables in DIR [EPREFIX/bin] 183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 185 --datadir=DIR read-only architecture-independent data in DIR 186 [PREFIX/share] 187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 188 --sharedstatedir=DIR modifiable architecture-independent data in DIR 189 [PREFIX/com] 190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 191 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 192 --includedir=DIR C header files in DIR [PREFIX/include] 193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 194 --infodir=DIR info documentation in DIR [PREFIX/info] 195 --mandir=DIR man documentation in DIR [PREFIX/man] 196 --srcdir=DIR find the sources in DIR [configure dir or ..] 197 --program-prefix=PREFIX prepend PREFIX to installed program names 198 --program-suffix=SUFFIX append SUFFIX to installed program names 199 --program-transform-name=PROGRAM 200 run sed PROGRAM on installed program names 201 EOF 202 cat << EOF 203 Host type: 204 --build=BUILD configure for building on BUILD [BUILD=HOST] 205 --host=HOST configure for HOST [guessed] 206 --target=TARGET configure for TARGET [TARGET=HOST] 207 Features and packages: 208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 212 --x-includes=DIR X include files are in DIR 213 --x-libraries=DIR X library files are in DIR 214 EOF 215 if test -n "$ac_help"; then 216 echo "--enable and --with options recognized:$ac_help" 217 fi 218 exit 0 ;; 219 220 -host | --host | --hos | --ho) 221 ac_prev=host ;; 222 -host=* | --host=* | --hos=* | --ho=*) 223 host="$ac_optarg" ;; 224 225 -includedir | --includedir | --includedi | --included | --include \ 226 | --includ | --inclu | --incl | --inc) 227 ac_prev=includedir ;; 228 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 229 | --includ=* | --inclu=* | --incl=* | --inc=*) 230 includedir="$ac_optarg" ;; 231 232 -infodir | --infodir | --infodi | --infod | --info | --inf) 233 ac_prev=infodir ;; 234 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 235 infodir="$ac_optarg" ;; 236 237 -libdir | --libdir | --libdi | --libd) 238 ac_prev=libdir ;; 239 -libdir=* | --libdir=* | --libdi=* | --libd=*) 240 libdir="$ac_optarg" ;; 241 242 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 243 | --libexe | --libex | --libe) 244 ac_prev=libexecdir ;; 245 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 246 | --libexe=* | --libex=* | --libe=*) 247 libexecdir="$ac_optarg" ;; 248 249 -localstatedir | --localstatedir | --localstatedi | --localstated \ 250 | --localstate | --localstat | --localsta | --localst \ 251 | --locals | --local | --loca | --loc | --lo) 252 ac_prev=localstatedir ;; 253 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 254 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 255 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 256 localstatedir="$ac_optarg" ;; 257 258 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 259 ac_prev=mandir ;; 260 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 261 mandir="$ac_optarg" ;; 262 263 -nfp | --nfp | --nf) 264 # Obsolete; use --without-fp. 265 with_fp=no ;; 266 267 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 268 | --no-cr | --no-c) 269 no_create=yes ;; 270 271 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 272 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 273 no_recursion=yes ;; 274 275 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 276 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 277 | --oldin | --oldi | --old | --ol | --o) 278 ac_prev=oldincludedir ;; 279 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 280 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 281 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 282 oldincludedir="$ac_optarg" ;; 283 284 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 285 ac_prev=prefix ;; 286 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 287 prefix="$ac_optarg" ;; 288 289 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 290 | --program-pre | --program-pr | --program-p) 291 ac_prev=program_prefix ;; 292 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 293 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 294 program_prefix="$ac_optarg" ;; 295 296 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 297 | --program-suf | --program-su | --program-s) 298 ac_prev=program_suffix ;; 299 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 300 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 301 program_suffix="$ac_optarg" ;; 302 303 -program-transform-name | --program-transform-name \ 304 | --program-transform-nam | --program-transform-na \ 305 | --program-transform-n | --program-transform- \ 306 | --program-transform | --program-transfor \ 307 | --program-transfo | --program-transf \ 308 | --program-trans | --program-tran \ 309 | --progr-tra | --program-tr | --program-t) 310 ac_prev=program_transform_name ;; 311 -program-transform-name=* | --program-transform-name=* \ 312 | --program-transform-nam=* | --program-transform-na=* \ 313 | --program-transform-n=* | --program-transform-=* \ 314 | --program-transform=* | --program-transfor=* \ 315 | --program-transfo=* | --program-transf=* \ 316 | --program-trans=* | --program-tran=* \ 317 | --progr-tra=* | --program-tr=* | --program-t=*) 318 program_transform_name="$ac_optarg" ;; 319 320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 321 | -silent | --silent | --silen | --sile | --sil) 322 silent=yes ;; 323 324 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 325 ac_prev=sbindir ;; 326 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 327 | --sbi=* | --sb=*) 328 sbindir="$ac_optarg" ;; 329 330 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 331 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 332 | --sharedst | --shareds | --shared | --share | --shar \ 333 | --sha | --sh) 334 ac_prev=sharedstatedir ;; 335 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 336 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 337 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 338 | --sha=* | --sh=*) 339 sharedstatedir="$ac_optarg" ;; 340 341 -site | --site | --sit) 342 ac_prev=site ;; 343 -site=* | --site=* | --sit=*) 344 site="$ac_optarg" ;; 345 346 -site-file | --site-file | --site-fil | --site-fi | --site-f) 347 ac_prev=sitefile ;; 348 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) 349 sitefile="$ac_optarg" ;; 350 351 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 352 ac_prev=srcdir ;; 353 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 354 srcdir="$ac_optarg" ;; 355 356 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 357 | --syscon | --sysco | --sysc | --sys | --sy) 358 ac_prev=sysconfdir ;; 359 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 360 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 361 sysconfdir="$ac_optarg" ;; 362 363 -target | --target | --targe | --targ | --tar | --ta | --t) 364 ac_prev=target ;; 365 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 366 target="$ac_optarg" ;; 367 368 -v | -verbose | --verbose | --verbos | --verbo | --verb) 369 verbose=yes ;; 370 371 -version | --version | --versio | --versi | --vers) 372 echo "configure generated by autoconf version 2.13" 373 exit 0 ;; 374 375 -with-* | --with-*) 376 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 377 # Reject names that are not valid shell variable names. 378 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 380 fi 381 ac_package=`echo $ac_package| sed 's/-/_/g'` 382 case "$ac_option" in 383 *=*) ;; 384 *) ac_optarg=yes ;; 385 esac 386 eval "with_${ac_package}='$ac_optarg'" ;; 387 388 -without-* | --without-*) 389 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 390 # Reject names that are not valid shell variable names. 391 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 393 fi 394 ac_package=`echo $ac_package| sed 's/-/_/g'` 395 eval "with_${ac_package}=no" ;; 396 397 --x) 398 # Obsolete; use --with-x. 399 with_x=yes ;; 400 401 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 402 | --x-incl | --x-inc | --x-in | --x-i) 403 ac_prev=x_includes ;; 404 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 405 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 406 x_includes="$ac_optarg" ;; 407 408 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 409 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 410 ac_prev=x_libraries ;; 411 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 412 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 413 x_libraries="$ac_optarg" ;; 414 415 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 416 ;; 417 418 *) 419 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 420 echo "configure: warning: $ac_option: invalid host type" 1>&2 421 fi 422 if test "x$nonopt" != xNONE; then 423 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 424 fi 425 nonopt="$ac_option" 426 ;; 427 428 esac 429 done 430 431 if test -n "$ac_prev"; then 432 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 433 fi 434 435 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 436 437 # File descriptor usage: 438 # 0 standard input 439 # 1 file creation 440 # 2 errors and warnings 441 # 3 some systems may open it to /dev/tty 442 # 4 used on the Kubota Titan 443 # 6 checking for... messages and results 444 # 5 compiler messages saved in config.log 445 if test "$silent" = yes; then 446 exec 6>/dev/null 447 else 448 exec 6>&1 449 fi 450 exec 5>./config.log 451 452 echo "\ 453 This file contains any messages produced by compilers while 454 running configure, to aid debugging if configure makes a mistake. 455 " 1>&5 456 457 # Strip out --no-create and --no-recursion so they do not pile up. 458 # Also quote any args containing shell metacharacters. 459 ac_configure_args= 460 for ac_arg 461 do 462 case "$ac_arg" in 463 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 464 | --no-cr | --no-c) ;; 465 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 466 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 467 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 468 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 469 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 470 esac 471 done 472 473 # NLS nuisances. 474 # Only set these to C if already set. These must not be set unconditionally 475 # because not all systems understand e.g. LANG=C (notably SCO). 476 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 477 # Non-C LC_CTYPE values break the ctype check. 478 if test "${LANG+set}" = set; then LANG=C; export LANG; fi 479 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 480 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 481 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 482 483 # confdefs.h avoids OS command line length limits that DEFS can exceed. 484 rm -rf conftest* confdefs.h 485 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 486 echo > confdefs.h 487 488 # A filename unique to this package, relative to the directory that 489 # configure is in, which we can look for to find out if srcdir is correct. 490 ac_unique_file=z8k-dis.c 491 492 # Find the source files, if location was not specified. 493 if test -z "$srcdir"; then 494 ac_srcdir_defaulted=yes 495 # Try the directory containing this script, then its parent. 496 ac_prog=$0 497 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 498 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 499 srcdir=$ac_confdir 500 if test ! -r $srcdir/$ac_unique_file; then 501 srcdir=.. 502 fi 503 else 504 ac_srcdir_defaulted=no 505 fi 506 if test ! -r $srcdir/$ac_unique_file; then 507 if test "$ac_srcdir_defaulted" = yes; then 508 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 509 else 510 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 511 fi 512 fi 513 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 514 515 # Prefer explicitly selected file to automatically selected ones. 516 if test -z "$sitefile"; then 517 if test -z "$CONFIG_SITE"; then 518 if test "x$prefix" != xNONE; then 519 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 520 else 521 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 522 fi 523 fi 524 else 525 CONFIG_SITE="$sitefile" 526 fi 527 for ac_site_file in $CONFIG_SITE; do 528 if test -r "$ac_site_file"; then 529 echo "loading site script $ac_site_file" 530 . "$ac_site_file" 531 fi 532 done 533 534 if test -r "$cache_file"; then 535 echo "loading cache $cache_file" 536 . $cache_file 537 else 538 echo "creating cache $cache_file" 539 > $cache_file 540 fi 541 542 ac_ext=c 543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 544 ac_cpp='$CPP $CPPFLAGS' 545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 547 cross_compiling=$ac_cv_prog_cc_cross 548 549 ac_exeext= 550 ac_objext=o 551 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 552 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 553 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 554 ac_n= ac_c=' 555 ' ac_t=' ' 556 else 557 ac_n=-n ac_c= ac_t= 558 fi 559 else 560 ac_n= ac_c='\c' ac_t= 561 fi 562 563 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 564 echo "configure:565: checking for Cygwin environment" >&5 565 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then 566 echo $ac_n "(cached) $ac_c" 1>&6 567 else 568 cat > conftest.$ac_ext <<EOF 569 #line 570 "configure" 570 #include "confdefs.h" 571 572 int main() { 573 574 #ifndef __CYGWIN__ 575 #define __CYGWIN__ __CYGWIN32__ 576 #endif 577 return __CYGWIN__; 578 ; return 0; } 579 EOF 580 if { (eval echo configure:581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 581 rm -rf conftest* 582 ac_cv_cygwin=yes 583 else 584 echo "configure: failed program was:" >&5 585 cat conftest.$ac_ext >&5 586 rm -rf conftest* 587 ac_cv_cygwin=no 588 fi 589 rm -f conftest* 590 rm -f conftest* 591 fi 592 593 echo "$ac_t""$ac_cv_cygwin" 1>&6 594 CYGWIN= 595 test "$ac_cv_cygwin" = yes && CYGWIN=yes 596 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 597 echo "configure:598: checking for mingw32 environment" >&5 598 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then 599 echo $ac_n "(cached) $ac_c" 1>&6 600 else 601 cat > conftest.$ac_ext <<EOF 602 #line 603 "configure" 603 #include "confdefs.h" 604 605 int main() { 606 return __MINGW32__; 607 ; return 0; } 608 EOF 609 if { (eval echo configure:610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 610 rm -rf conftest* 611 ac_cv_mingw32=yes 612 else 613 echo "configure: failed program was:" >&5 614 cat conftest.$ac_ext >&5 615 rm -rf conftest* 616 ac_cv_mingw32=no 617 fi 618 rm -f conftest* 619 rm -f conftest* 620 fi 621 622 echo "$ac_t""$ac_cv_mingw32" 1>&6 623 MINGW32= 624 test "$ac_cv_mingw32" = yes && MINGW32=yes 625 626 627 ac_aux_dir= 628 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 629 if test -f $ac_dir/install-sh; then 630 ac_aux_dir=$ac_dir 631 ac_install_sh="$ac_aux_dir/install-sh -c" 632 break 633 elif test -f $ac_dir/install.sh; then 634 ac_aux_dir=$ac_dir 635 ac_install_sh="$ac_aux_dir/install.sh -c" 636 break 637 fi 638 done 639 if test -z "$ac_aux_dir"; then 640 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 641 fi 642 ac_config_guess=$ac_aux_dir/config.guess 643 ac_config_sub=$ac_aux_dir/config.sub 644 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 645 646 647 # Do some error checking and defaulting for the host and target type. 648 # The inputs are: 649 # configure --host=HOST --target=TARGET --build=BUILD NONOPT 650 # 651 # The rules are: 652 # 1. You are not allowed to specify --host, --target, and nonopt at the 653 # same time. 654 # 2. Host defaults to nonopt. 655 # 3. If nonopt is not specified, then host defaults to the current host, 656 # as determined by config.guess. 657 # 4. Target and build default to nonopt. 658 # 5. If nonopt is not specified, then target and build default to host. 659 660 # The aliases save the names the user supplied, while $host etc. 661 # will get canonicalized. 662 case $host---$target---$nonopt in 663 NONE---*---* | *---NONE---* | *---*---NONE) ;; 664 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; 665 esac 666 667 668 # Make sure we can run config.sub. 669 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 670 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 671 fi 672 673 echo $ac_n "checking host system type""... $ac_c" 1>&6 674 echo "configure:675: checking host system type" >&5 675 676 host_alias=$host 677 case "$host_alias" in 678 NONE) 679 case $nonopt in 680 NONE) 681 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 682 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 683 fi ;; 684 *) host_alias=$nonopt ;; 685 esac ;; 686 esac 687 688 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 689 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 690 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 691 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 692 echo "$ac_t""$host" 1>&6 693 694 echo $ac_n "checking target system type""... $ac_c" 1>&6 695 echo "configure:696: checking target system type" >&5 696 697 target_alias=$target 698 case "$target_alias" in 699 NONE) 700 case $nonopt in 701 NONE) target_alias=$host_alias ;; 702 *) target_alias=$nonopt ;; 703 esac ;; 704 esac 705 706 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` 707 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 708 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 709 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 710 echo "$ac_t""$target" 1>&6 711 712 echo $ac_n "checking build system type""... $ac_c" 1>&6 713 echo "configure:714: checking build system type" >&5 714 715 build_alias=$build 716 case "$build_alias" in 717 NONE) 718 case $nonopt in 719 NONE) build_alias=$host_alias ;; 720 *) build_alias=$nonopt ;; 721 esac ;; 722 esac 723 724 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` 725 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 726 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 727 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 728 echo "$ac_t""$build" 1>&6 729 730 test "$host_alias" != "$target_alias" && 731 test "$program_prefix$program_suffix$program_transform_name" = \ 732 NONENONEs,x,x, && 733 program_prefix=${target_alias}- 734 735 736 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 737 echo "configure:738: checking for strerror in -lcposix" >&5 738 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` 739 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 740 echo $ac_n "(cached) $ac_c" 1>&6 741 else 742 ac_save_LIBS="$LIBS" 743 LIBS="-lcposix $LIBS" 744 cat > conftest.$ac_ext <<EOF 745 #line 746 "configure" 746 #include "confdefs.h" 747 /* Override any gcc2 internal prototype to avoid an error. */ 748 /* We use char because int might match the return type of a gcc2 749 builtin and then its argument prototype would still apply. */ 750 char strerror(); 751 752 int main() { 753 strerror() 754 ; return 0; } 755 EOF 756 if { (eval echo configure:757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 757 rm -rf conftest* 758 eval "ac_cv_lib_$ac_lib_var=yes" 759 else 760 echo "configure: failed program was:" >&5 761 cat conftest.$ac_ext >&5 762 rm -rf conftest* 763 eval "ac_cv_lib_$ac_lib_var=no" 764 fi 765 rm -f conftest* 766 LIBS="$ac_save_LIBS" 767 768 fi 769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 770 echo "$ac_t""yes" 1>&6 771 LIBS="$LIBS -lcposix" 772 else 773 echo "$ac_t""no" 1>&6 774 fi 775 776 777 778 779 # We currently only use the version number for the name of any shared 780 # library. For user convenience, we always use the same version 781 # number that BFD is using. 782 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` 783 784 # Find a good install program. We prefer a C program (faster), 785 # so one script is as good as another. But avoid the broken or 786 # incompatible versions: 787 # SysV /etc/install, /usr/sbin/install 788 # SunOS /usr/etc/install 789 # IRIX /sbin/install 790 # AIX /bin/install 791 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 792 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 793 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 794 # ./install, which can be erroneously created by make from ./install.sh. 795 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 796 echo "configure:797: checking for a BSD compatible install" >&5 797 if test -z "$INSTALL"; then 798 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 799 echo $ac_n "(cached) $ac_c" 1>&6 800 else 801 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 802 for ac_dir in $PATH; do 803 # Account for people who put trailing slashes in PATH elements. 804 case "$ac_dir/" in 805 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 806 *) 807 # OSF1 and SCO ODT 3.0 have their own names for install. 808 # Don't use installbsd from OSF since it installs stuff as root 809 # by default. 810 for ac_prog in ginstall scoinst install; do 811 if test -f $ac_dir/$ac_prog; then 812 if test $ac_prog = install && 813 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 814 # AIX install. It has an incompatible calling convention. 815 : 816 else 817 ac_cv_path_install="$ac_dir/$ac_prog -c" 818 break 2 819 fi 820 fi 821 done 822 ;; 823 esac 824 done 825 IFS="$ac_save_IFS" 826 827 fi 828 if test "${ac_cv_path_install+set}" = set; then 829 INSTALL="$ac_cv_path_install" 830 else 831 # As a last resort, use the slow shell script. We don't cache a 832 # path for INSTALL within a source directory, because that will 833 # break other packages using the cache if that directory is 834 # removed, or if the path is relative. 835 INSTALL="$ac_install_sh" 836 fi 837 fi 838 echo "$ac_t""$INSTALL" 1>&6 839 840 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 841 # It thinks the first close brace ends the variable substitution. 842 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 843 844 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 845 846 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 847 848 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 849 echo "configure:850: checking whether build environment is sane" >&5 850 # Just in case 851 sleep 1 852 echo timestamp > conftestfile 853 # Do `set' in a subshell so we don't clobber the current shell's 854 # arguments. Must try -L first in case configure is actually a 855 # symlink; some systems play weird games with the mod time of symlinks 856 # (eg FreeBSD returns the mod time of the symlink's containing 857 # directory). 858 if ( 859 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 860 if test "$*" = "X"; then 861 # -L didn't work. 862 set X `ls -t $srcdir/configure conftestfile` 863 fi 864 if test "$*" != "X $srcdir/configure conftestfile" \ 865 && test "$*" != "X conftestfile $srcdir/configure"; then 866 867 # If neither matched, then we have a broken ls. This can happen 868 # if, for instance, CONFIG_SHELL is bash and it inherits a 869 # broken ls alias from the environment. This has actually 870 # happened. Such a system could not be considered "sane". 871 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 872 alias in your environment" 1>&2; exit 1; } 873 fi 874 875 test "$2" = conftestfile 876 ) 877 then 878 # Ok. 879 : 880 else 881 { echo "configure: error: newly created file is older than distributed files! 882 Check your system clock" 1>&2; exit 1; } 883 fi 884 rm -f conftest* 885 echo "$ac_t""yes" 1>&6 886 if test "$program_transform_name" = s,x,x,; then 887 program_transform_name= 888 else 889 # Double any \ or $. echo might interpret backslashes. 890 cat <<\EOF_SED > conftestsed 891 s,\\,\\\\,g; s,\$,$$,g 892 EOF_SED 893 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 894 rm -f conftestsed 895 fi 896 test "$program_prefix" != NONE && 897 program_transform_name="s,^,${program_prefix},; $program_transform_name" 898 # Use a double $ so make ignores it. 899 test "$program_suffix" != NONE && 900 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 901 902 # sed with no file args requires a program. 903 test "$program_transform_name" = "" && program_transform_name="s,x,x," 904 905 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 906 echo "configure:907: checking whether ${MAKE-make} sets \${MAKE}" >&5 907 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 908 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 909 echo $ac_n "(cached) $ac_c" 1>&6 910 else 911 cat > conftestmake <<\EOF 912 all: 913 @echo 'ac_maketemp="${MAKE}"' 914 EOF 915 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 916 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 917 if test -n "$ac_maketemp"; then 918 eval ac_cv_prog_make_${ac_make}_set=yes 919 else 920 eval ac_cv_prog_make_${ac_make}_set=no 921 fi 922 rm -f conftestmake 923 fi 924 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 925 echo "$ac_t""yes" 1>&6 926 SET_MAKE= 927 else 928 echo "$ac_t""no" 1>&6 929 SET_MAKE="MAKE=${MAKE-make}" 930 fi 931 932 933 PACKAGE=opcodes 934 935 VERSION=${BFD_VERSION} 936 937 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 938 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 939 fi 940 cat >> confdefs.h <<EOF 941 #define PACKAGE "$PACKAGE" 942 EOF 943 944 cat >> confdefs.h <<EOF 945 #define VERSION "$VERSION" 946 EOF 947 948 949 950 missing_dir=`cd $ac_aux_dir && pwd` 951 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 952 echo "configure:953: checking for working aclocal" >&5 953 # Run test in a subshell; some versions of sh will print an error if 954 # an executable is not found, even if stderr is redirected. 955 # Redirect stdin to placate older versions of autoconf. Sigh. 956 if (aclocal --version) < /dev/null > /dev/null 2>&1; then 957 ACLOCAL=aclocal 958 echo "$ac_t""found" 1>&6 959 else 960 ACLOCAL="$missing_dir/missing aclocal" 961 echo "$ac_t""missing" 1>&6 962 fi 963 964 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 965 echo "configure:966: checking for working autoconf" >&5 966 # Run test in a subshell; some versions of sh will print an error if 967 # an executable is not found, even if stderr is redirected. 968 # Redirect stdin to placate older versions of autoconf. Sigh. 969 if (autoconf --version) < /dev/null > /dev/null 2>&1; then 970 AUTOCONF=autoconf 971 echo "$ac_t""found" 1>&6 972 else 973 AUTOCONF="$missing_dir/missing autoconf" 974 echo "$ac_t""missing" 1>&6 975 fi 976 977 echo $ac_n "checking for working automake""... $ac_c" 1>&6 978 echo "configure:979: checking for working automake" >&5 979 # Run test in a subshell; some versions of sh will print an error if 980 # an executable is not found, even if stderr is redirected. 981 # Redirect stdin to placate older versions of autoconf. Sigh. 982 if (automake --version) < /dev/null > /dev/null 2>&1; then 983 AUTOMAKE=automake 984 echo "$ac_t""found" 1>&6 985 else 986 AUTOMAKE="$missing_dir/missing automake" 987 echo "$ac_t""missing" 1>&6 988 fi 989 990 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 991 echo "configure:992: checking for working autoheader" >&5 992 # Run test in a subshell; some versions of sh will print an error if 993 # an executable is not found, even if stderr is redirected. 994 # Redirect stdin to placate older versions of autoconf. Sigh. 995 if (autoheader --version) < /dev/null > /dev/null 2>&1; then 996 AUTOHEADER=autoheader 997 echo "$ac_t""found" 1>&6 998 else 999 AUTOHEADER="$missing_dir/missing autoheader" 1000 echo "$ac_t""missing" 1>&6 1001 fi 1002 1003 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 1004 echo "configure:1005: checking for working makeinfo" >&5 1005 # Run test in a subshell; some versions of sh will print an error if 1006 # an executable is not found, even if stderr is redirected. 1007 # Redirect stdin to placate older versions of autoconf. Sigh. 1008 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 1009 MAKEINFO=makeinfo 1010 echo "$ac_t""found" 1>&6 1011 else 1012 MAKEINFO="$missing_dir/missing makeinfo" 1013 echo "$ac_t""missing" 1>&6 1014 fi 1015 1016 1017 1018 if test $host != $build; then 1019 ac_tool_prefix=${host_alias}- 1020 else 1021 ac_tool_prefix= 1022 fi 1023 1024 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 1025 set dummy ${ac_tool_prefix}ar; ac_word=$2 1026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1027 echo "configure:1028: checking for $ac_word" >&5 1028 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 1029 echo $ac_n "(cached) $ac_c" 1>&6 1030 else 1031 if test -n "$AR"; then 1032 ac_cv_prog_AR="$AR" # Let the user override the test. 1033 else 1034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1035 ac_dummy="$PATH" 1036 for ac_dir in $ac_dummy; do 1037 test -z "$ac_dir" && ac_dir=. 1038 if test -f $ac_dir/$ac_word; then 1039 ac_cv_prog_AR="${ac_tool_prefix}ar" 1040 break 1041 fi 1042 done 1043 IFS="$ac_save_ifs" 1044 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" 1045 fi 1046 fi 1047 AR="$ac_cv_prog_AR" 1048 if test -n "$AR"; then 1049 echo "$ac_t""$AR" 1>&6 1050 else 1051 echo "$ac_t""no" 1>&6 1052 fi 1053 1054 1055 1056 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 1057 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 1058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1059 echo "configure:1060: checking for $ac_word" >&5 1060 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1061 echo $ac_n "(cached) $ac_c" 1>&6 1062 else 1063 if test -n "$RANLIB"; then 1064 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1065 else 1066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1067 ac_dummy="$PATH" 1068 for ac_dir in $ac_dummy; do 1069 test -z "$ac_dir" && ac_dir=. 1070 if test -f $ac_dir/$ac_word; then 1071 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 1072 break 1073 fi 1074 done 1075 IFS="$ac_save_ifs" 1076 fi 1077 fi 1078 RANLIB="$ac_cv_prog_RANLIB" 1079 if test -n "$RANLIB"; then 1080 echo "$ac_t""$RANLIB" 1>&6 1081 else 1082 echo "$ac_t""no" 1>&6 1083 fi 1084 1085 1086 if test -z "$ac_cv_prog_RANLIB"; then 1087 if test -n "$ac_tool_prefix"; then 1088 # Extract the first word of "ranlib", so it can be a program name with args. 1089 set dummy ranlib; ac_word=$2 1090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1091 echo "configure:1092: checking for $ac_word" >&5 1092 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1093 echo $ac_n "(cached) $ac_c" 1>&6 1094 else 1095 if test -n "$RANLIB"; then 1096 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1097 else 1098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1099 ac_dummy="$PATH" 1100 for ac_dir in $ac_dummy; do 1101 test -z "$ac_dir" && ac_dir=. 1102 if test -f $ac_dir/$ac_word; then 1103 ac_cv_prog_RANLIB="ranlib" 1104 break 1105 fi 1106 done 1107 IFS="$ac_save_ifs" 1108 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1109 fi 1110 fi 1111 RANLIB="$ac_cv_prog_RANLIB" 1112 if test -n "$RANLIB"; then 1113 echo "$ac_t""$RANLIB" 1>&6 1114 else 1115 echo "$ac_t""no" 1>&6 1116 fi 1117 1118 else 1119 RANLIB=":" 1120 fi 1121 fi 1122 1123 1124 # Check whether --enable-shared or --disable-shared was given. 1125 if test "${enable_shared+set}" = set; then 1126 enableval="$enable_shared" 1127 p=${PACKAGE-default} 1128 case $enableval in 1129 yes) enable_shared=yes ;; 1130 no) enable_shared=no ;; 1131 *) 1132 enable_shared=no 1133 # Look at the argument we got. We use all the common list separators. 1134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 1135 for pkg in $enableval; do 1136 if test "X$pkg" = "X$p"; then 1137 enable_shared=yes 1138 fi 1139 done 1140 IFS="$ac_save_ifs" 1141 ;; 1142 esac 1143 else 1144 enable_shared=no 1145 fi 1146 1147 1148 # Check whether --enable-static or --disable-static was given. 1149 if test "${enable_static+set}" = set; then 1150 enableval="$enable_static" 1151 p=${PACKAGE-default} 1152 case $enableval in 1153 yes) enable_static=yes ;; 1154 no) enable_static=no ;; 1155 *) 1156 enable_static=no 1157 # Look at the argument we got. We use all the common list separators. 1158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 1159 for pkg in $enableval; do 1160 if test "X$pkg" = "X$p"; then 1161 enable_static=yes 1162 fi 1163 done 1164 IFS="$ac_save_ifs" 1165 ;; 1166 esac 1167 else 1168 enable_static=yes 1169 fi 1170 1171 # Check whether --enable-fast-install or --disable-fast-install was given. 1172 if test "${enable_fast_install+set}" = set; then 1173 enableval="$enable_fast_install" 1174 p=${PACKAGE-default} 1175 case $enableval in 1176 yes) enable_fast_install=yes ;; 1177 no) enable_fast_install=no ;; 1178 *) 1179 enable_fast_install=no 1180 # Look at the argument we got. We use all the common list separators. 1181 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 1182 for pkg in $enableval; do 1183 if test "X$pkg" = "X$p"; then 1184 enable_fast_install=yes 1185 fi 1186 done 1187 IFS="$ac_save_ifs" 1188 ;; 1189 esac 1190 else 1191 enable_fast_install=yes 1192 fi 1193 1194 # Extract the first word of "gcc", so it can be a program name with args. 1195 set dummy gcc; ac_word=$2 1196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1197 echo "configure:1198: checking for $ac_word" >&5 1198 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1199 echo $ac_n "(cached) $ac_c" 1>&6 1200 else 1201 if test -n "$CC"; then 1202 ac_cv_prog_CC="$CC" # Let the user override the test. 1203 else 1204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1205 ac_dummy="$PATH" 1206 for ac_dir in $ac_dummy; do 1207 test -z "$ac_dir" && ac_dir=. 1208 if test -f $ac_dir/$ac_word; then 1209 ac_cv_prog_CC="gcc" 1210 break 1211 fi 1212 done 1213 IFS="$ac_save_ifs" 1214 fi 1215 fi 1216 CC="$ac_cv_prog_CC" 1217 if test -n "$CC"; then 1218 echo "$ac_t""$CC" 1>&6 1219 else 1220 echo "$ac_t""no" 1>&6 1221 fi 1222 1223 if test -z "$CC"; then 1224 # Extract the first word of "cc", so it can be a program name with args. 1225 set dummy cc; ac_word=$2 1226 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1227 echo "configure:1228: checking for $ac_word" >&5 1228 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1229 echo $ac_n "(cached) $ac_c" 1>&6 1230 else 1231 if test -n "$CC"; then 1232 ac_cv_prog_CC="$CC" # Let the user override the test. 1233 else 1234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1235 ac_prog_rejected=no 1236 ac_dummy="$PATH" 1237 for ac_dir in $ac_dummy; do 1238 test -z "$ac_dir" && ac_dir=. 1239 if test -f $ac_dir/$ac_word; then 1240 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1241 ac_prog_rejected=yes 1242 continue 1243 fi 1244 ac_cv_prog_CC="cc" 1245 break 1246 fi 1247 done 1248 IFS="$ac_save_ifs" 1249 if test $ac_prog_rejected = yes; then 1250 # We found a bogon in the path, so make sure we never use it. 1251 set dummy $ac_cv_prog_CC 1252 shift 1253 if test $# -gt 0; then 1254 # We chose a different compiler from the bogus one. 1255 # However, it has the same basename, so the bogon will be chosen 1256 # first if we set CC to just the basename; use the full file name. 1257 shift 1258 set dummy "$ac_dir/$ac_word" "$@" 1259 shift 1260 ac_cv_prog_CC="$@" 1261 fi 1262 fi 1263 fi 1264 fi 1265 CC="$ac_cv_prog_CC" 1266 if test -n "$CC"; then 1267 echo "$ac_t""$CC" 1>&6 1268 else 1269 echo "$ac_t""no" 1>&6 1270 fi 1271 1272 if test -z "$CC"; then 1273 case "`uname -s`" in 1274 *win32* | *WIN32*) 1275 # Extract the first word of "cl", so it can be a program name with args. 1276 set dummy cl; ac_word=$2 1277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1278 echo "configure:1279: checking for $ac_word" >&5 1279 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1280 echo $ac_n "(cached) $ac_c" 1>&6 1281 else 1282 if test -n "$CC"; then 1283 ac_cv_prog_CC="$CC" # Let the user override the test. 1284 else 1285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1286 ac_dummy="$PATH" 1287 for ac_dir in $ac_dummy; do 1288 test -z "$ac_dir" && ac_dir=. 1289 if test -f $ac_dir/$ac_word; then 1290 ac_cv_prog_CC="cl" 1291 break 1292 fi 1293 done 1294 IFS="$ac_save_ifs" 1295 fi 1296 fi 1297 CC="$ac_cv_prog_CC" 1298 if test -n "$CC"; then 1299 echo "$ac_t""$CC" 1>&6 1300 else 1301 echo "$ac_t""no" 1>&6 1302 fi 1303 ;; 1304 esac 1305 fi 1306 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1307 fi 1308 1309 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1310 echo "configure:1311: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1311 1312 ac_ext=c 1313 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1314 ac_cpp='$CPP $CPPFLAGS' 1315 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1316 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1317 cross_compiling=$ac_cv_prog_cc_cross 1318 1319 cat > conftest.$ac_ext << EOF 1320 1321 #line 1322 "configure" 1322 #include "confdefs.h" 1323 1324 main(){return(0);} 1325 EOF 1326 if { (eval echo configure:1327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1327 ac_cv_prog_cc_works=yes 1328 # If we can't run a trivial program, we are probably using a cross compiler. 1329 if (./conftest; exit) 2>/dev/null; then 1330 ac_cv_prog_cc_cross=no 1331 else 1332 ac_cv_prog_cc_cross=yes 1333 fi 1334 else 1335 echo "configure: failed program was:" >&5 1336 cat conftest.$ac_ext >&5 1337 ac_cv_prog_cc_works=no 1338 fi 1339 rm -fr conftest* 1340 ac_ext=c 1341 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1342 ac_cpp='$CPP $CPPFLAGS' 1343 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1344 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1345 cross_compiling=$ac_cv_prog_cc_cross 1346 1347 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1348 if test $ac_cv_prog_cc_works = no; then 1349 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1350 fi 1351 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1352 echo "configure:1353: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1353 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1354 cross_compiling=$ac_cv_prog_cc_cross 1355 1356 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1357 echo "configure:1358: checking whether we are using GNU C" >&5 1358 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1359 echo $ac_n "(cached) $ac_c" 1>&6 1360 else 1361 cat > conftest.c <<EOF 1362 #ifdef __GNUC__ 1363 yes; 1364 #endif 1365 EOF 1366 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1367 ac_cv_prog_gcc=yes 1368 else 1369 ac_cv_prog_gcc=no 1370 fi 1371 fi 1372 1373 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1374 1375 if test $ac_cv_prog_gcc = yes; then 1376 GCC=yes 1377 else 1378 GCC= 1379 fi 1380 1381 ac_test_CFLAGS="${CFLAGS+set}" 1382 ac_save_CFLAGS="$CFLAGS" 1383 CFLAGS= 1384 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1385 echo "configure:1386: checking whether ${CC-cc} accepts -g" >&5 1386 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1387 echo $ac_n "(cached) $ac_c" 1>&6 1388 else 1389 echo 'void f(){}' > conftest.c 1390 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1391 ac_cv_prog_cc_g=yes 1392 else 1393 ac_cv_prog_cc_g=no 1394 fi 1395 rm -f conftest* 1396 1397 fi 1398 1399 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1400 if test "$ac_test_CFLAGS" = set; then 1401 CFLAGS="$ac_save_CFLAGS" 1402 elif test $ac_cv_prog_cc_g = yes; then 1403 if test "$GCC" = yes; then 1404 CFLAGS="-g -O2" 1405 else 1406 CFLAGS="-g" 1407 fi 1408 else 1409 if test "$GCC" = yes; then 1410 CFLAGS="-O2" 1411 else 1412 CFLAGS= 1413 fi 1414 fi 1415 1416 # Check whether --with-gnu-ld or --without-gnu-ld was given. 1417 if test "${with_gnu_ld+set}" = set; then 1418 withval="$with_gnu_ld" 1419 test "$withval" = no || with_gnu_ld=yes 1420 else 1421 with_gnu_ld=no 1422 fi 1423 1424 ac_prog=ld 1425 if test "$GCC" = yes; then 1426 # Check if gcc -print-prog-name=ld gives a path. 1427 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 1428 echo "configure:1429: checking for ld used by GCC" >&5 1429 case $host in 1430 *-*-mingw*) 1431 # gcc leaves a trailing carriage return which upsets mingw 1432 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 1433 *) 1434 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 1435 esac 1436 case $ac_prog in 1437 # Accept absolute paths. 1438 [\\/]* | [A-Za-z]:[\\/]*) 1439 re_direlt='/[^/][^/]*/\.\./' 1440 # Canonicalize the path of ld 1441 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 1442 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 1443 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 1444 done 1445 test -z "$LD" && LD="$ac_prog" 1446 ;; 1447 "") 1448 # If it fails, then pretend we aren't using GCC. 1449 ac_prog=ld 1450 ;; 1451 *) 1452 # If it is relative, then search for the first ld in PATH. 1453 with_gnu_ld=unknown 1454 ;; 1455 esac 1456 elif test "$with_gnu_ld" = yes; then 1457 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 1458 echo "configure:1459: checking for GNU ld" >&5 1459 else 1460 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 1461 echo "configure:1462: checking for non-GNU ld" >&5 1462 fi 1463 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then 1464 echo $ac_n "(cached) $ac_c" 1>&6 1465 else 1466 if test -z "$LD"; then 1467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 1468 for ac_dir in $PATH; do 1469 test -z "$ac_dir" && ac_dir=. 1470 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 1471 lt_cv_path_LD="$ac_dir/$ac_prog" 1472 # Check to see if the program is GNU ld. I'd rather use --version, 1473 # but apparently some GNU ld's only accept -v. 1474 # Break only if it was the GNU/non-GNU ld that we prefer. 1475 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 1476 test "$with_gnu_ld" != no && break 1477 else 1478 test "$with_gnu_ld" != yes && break 1479 fi 1480 fi 1481 done 1482 IFS="$ac_save_ifs" 1483 else 1484 lt_cv_path_LD="$LD" # Let the user override the test with a path. 1485 fi 1486 fi 1487 1488 LD="$lt_cv_path_LD" 1489 if test -n "$LD"; then 1490 echo "$ac_t""$LD" 1>&6 1491 else 1492 echo "$ac_t""no" 1>&6 1493 fi 1494 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 1495 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 1496 echo "configure:1497: checking if the linker ($LD) is GNU ld" >&5 1497 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then 1498 echo $ac_n "(cached) $ac_c" 1>&6 1499 else 1500 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 1501 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 1502 lt_cv_prog_gnu_ld=yes 1503 else 1504 lt_cv_prog_gnu_ld=no 1505 fi 1506 fi 1507 1508 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 1509 with_gnu_ld=$lt_cv_prog_gnu_ld 1510 1511 1512 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 1513 echo "configure:1514: checking for $LD option to reload object files" >&5 1514 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then 1515 echo $ac_n "(cached) $ac_c" 1>&6 1516 else 1517 lt_cv_ld_reload_flag='-r' 1518 fi 1519 1520 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 1521 reload_flag=$lt_cv_ld_reload_flag 1522 test -n "$reload_flag" && reload_flag=" $reload_flag" 1523 1524 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 1525 echo "configure:1526: checking for BSD-compatible nm" >&5 1526 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then 1527 echo $ac_n "(cached) $ac_c" 1>&6 1528 else 1529 if test -n "$NM"; then 1530 # Let the user override the test. 1531 lt_cv_path_NM="$NM" 1532 else 1533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 1534 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 1535 test -z "$ac_dir" && ac_dir=. 1536 tmp_nm=$ac_dir/${ac_tool_prefix}nm 1537 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 1538 # Check to see if the nm accepts a BSD-compat flag. 1539 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 1540 # nm: unknown option "B" ignored 1541 # Tru64's nm complains that /dev/null is an invalid object file 1542 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 1543 lt_cv_path_NM="$tmp_nm -B" 1544 break 1545 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 1546 lt_cv_path_NM="$tmp_nm -p" 1547 break 1548 else 1549 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 1550 continue # so that we can try to find one that supports BSD flags 1551 fi 1552 fi 1553 done 1554 IFS="$ac_save_ifs" 1555 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 1556 fi 1557 fi 1558 1559 NM="$lt_cv_path_NM" 1560 echo "$ac_t""$NM" 1>&6 1561 1562 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1563 echo "configure:1564: checking whether ln -s works" >&5 1564 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1565 echo $ac_n "(cached) $ac_c" 1>&6 1566 else 1567 rm -f conftestdata 1568 if ln -s X conftestdata 2>/dev/null 1569 then 1570 rm -f conftestdata 1571 ac_cv_prog_LN_S="ln -s" 1572 else 1573 ac_cv_prog_LN_S=ln 1574 fi 1575 fi 1576 LN_S="$ac_cv_prog_LN_S" 1577 if test "$ac_cv_prog_LN_S" = "ln -s"; then 1578 echo "$ac_t""yes" 1>&6 1579 else 1580 echo "$ac_t""no" 1>&6 1581 fi 1582 1583 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 1584 echo "configure:1585: checking how to recognise dependant libraries" >&5 1585 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then 1586 echo $ac_n "(cached) $ac_c" 1>&6 1587 else 1588 lt_cv_file_magic_cmd='$MAGIC_CMD' 1589 lt_cv_file_magic_test_file= 1590 lt_cv_deplibs_check_method='unknown' 1591 # Need to set the preceding variable on all platforms that support 1592 # interlibrary dependencies. 1593 # 'none' -- dependencies not supported. 1594 # `unknown' -- same as none, but documents that we really don't know. 1595 # 'pass_all' -- all dependencies passed with no checks. 1596 # 'test_compile' -- check by making test program. 1597 # 'file_magic [regex]' -- check by looking for files in library path 1598 # which responds to the $file_magic_cmd with a given egrep regex. 1599 # If you have `file' or equivalent on your system and you're not sure 1600 # whether `pass_all' will *always* work, you probably want this one. 1601 1602 case $host_os in 1603 aix*) 1604 lt_cv_deplibs_check_method=pass_all 1605 ;; 1606 1607 beos*) 1608 lt_cv_deplibs_check_method=pass_all 1609 ;; 1610 1611 bsdi4*) 1612 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 1613 lt_cv_file_magic_cmd='/usr/bin/file -L' 1614 lt_cv_file_magic_test_file=/shlib/libc.so 1615 ;; 1616 1617 cygwin* | mingw* |pw32*) 1618 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 1619 lt_cv_file_magic_cmd='$OBJDUMP -f' 1620 ;; 1621 1622 darwin* | rhapsody*) 1623 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 1624 lt_cv_file_magic_cmd='/usr/bin/file -L' 1625 case "$host_os" in 1626 rhapsody* | darwin1.012) 1627 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' 1628 ;; 1629 *) # Darwin 1.3 on 1630 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 1631 ;; 1632 esac 1633 ;; 1634 1635 freebsd* ) 1636 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 1637 case $host_cpu in 1638 i*86 ) 1639 # Not sure whether the presence of OpenBSD here was a mistake. 1640 # Let's accept both of them until this is cleared up. 1641 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 1642 lt_cv_file_magic_cmd=/usr/bin/file 1643 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 1644 ;; 1645 esac 1646 else 1647 lt_cv_deplibs_check_method=pass_all 1648 fi 1649 ;; 1650 1651 gnu*) 1652 lt_cv_deplibs_check_method=pass_all 1653 ;; 1654 1655 hpux10.20*|hpux11*) 1656 case $host_cpu in 1657 hppa*) 1658 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 1659 lt_cv_file_magic_cmd=/usr/bin/file 1660 lt_cv_file_magic_test_file=/usr/lib/libc.sl 1661 ;; 1662 ia64*) 1663 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 1664 lt_cv_file_magic_cmd=/usr/bin/file 1665 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 1666 ;; 1667 esac 1668 ;; 1669 1670 irix5* | irix6*) 1671 case $host_os in 1672 irix5*) 1673 # this will be overridden with pass_all, but let us keep it just in case 1674 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 1675 ;; 1676 *) 1677 case $LD in 1678 *-32|*"-32 ") libmagic=32-bit;; 1679 *-n32|*"-n32 ") libmagic=N32;; 1680 *-64|*"-64 ") libmagic=64-bit;; 1681 *) libmagic=never-match;; 1682 esac 1683 # this will be overridden with pass_all, but let us keep it just in case 1684 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 1685 ;; 1686 esac 1687 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 1688 lt_cv_deplibs_check_method=pass_all 1689 ;; 1690 1691 # This must be Linux ELF. 1692 linux-gnu*) 1693 case $host_cpu in 1694 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* ) 1695 lt_cv_deplibs_check_method=pass_all ;; 1696 *) 1697 # glibc up to 2.1.1 does not perform some relocations on ARM 1698 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 1699 esac 1700 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 1701 ;; 1702 1703 netbsd*) 1704 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 1705 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' 1706 else 1707 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' 1708 fi 1709 ;; 1710 1711 newsos6) 1712 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 1713 lt_cv_file_magic_cmd=/usr/bin/file 1714 lt_cv_file_magic_test_file=/usr/lib/libnls.so 1715 ;; 1716 1717 osf3* | osf4* | osf5*) 1718 # this will be overridden with pass_all, but let us keep it just in case 1719 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 1720 lt_cv_file_magic_test_file=/shlib/libc.so 1721 lt_cv_deplibs_check_method=pass_all 1722 ;; 1723 1724 sco3.2v5*) 1725 lt_cv_deplibs_check_method=pass_all 1726 ;; 1727 1728 solaris*) 1729 lt_cv_deplibs_check_method=pass_all 1730 lt_cv_file_magic_test_file=/lib/libc.so 1731 ;; 1732 1733 sysv5uw[78]* | sysv4*uw2*) 1734 lt_cv_deplibs_check_method=pass_all 1735 ;; 1736 1737 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 1738 case $host_vendor in 1739 ncr) 1740 lt_cv_deplibs_check_method=pass_all 1741 ;; 1742 motorola) 1743 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 1744 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 1745 ;; 1746 esac 1747 ;; 1748 esac 1749 1750 fi 1751 1752 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 1753 file_magic_cmd=$lt_cv_file_magic_cmd 1754 deplibs_check_method=$lt_cv_deplibs_check_method 1755 1756 echo $ac_n "checking for object suffix""... $ac_c" 1>&6 1757 echo "configure:1758: checking for object suffix" >&5 1758 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then 1759 echo $ac_n "(cached) $ac_c" 1>&6 1760 else 1761 rm -f conftest* 1762 echo 'int i = 1;' > conftest.$ac_ext 1763 if { (eval echo configure:1764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1764 for ac_file in conftest.*; do 1765 case $ac_file in 1766 *.c) ;; 1767 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; 1768 esac 1769 done 1770 else 1771 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } 1772 fi 1773 rm -f conftest* 1774 fi 1775 1776 echo "$ac_t""$ac_cv_objext" 1>&6 1777 OBJEXT=$ac_cv_objext 1778 ac_objext=$ac_cv_objext 1779 1780 1781 1782 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 1783 echo "configure:1784: checking for executable suffix" >&5 1784 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 1785 echo $ac_n "(cached) $ac_c" 1>&6 1786 else 1787 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 1788 ac_cv_exeext=.exe 1789 else 1790 rm -f conftest* 1791 echo 'int main () { return 0; }' > conftest.$ac_ext 1792 ac_cv_exeext= 1793 if { (eval echo configure:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1794 for file in conftest.*; do 1795 case $file in 1796 *.c | *.o | *.obj | *.ilk | *.pdb) ;; 1797 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 1798 esac 1799 done 1800 else 1801 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } 1802 fi 1803 rm -f conftest* 1804 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no 1805 fi 1806 fi 1807 1808 EXEEXT="" 1809 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} 1810 echo "$ac_t""${ac_cv_exeext}" 1>&6 1811 ac_exeext=$EXEEXT 1812 1813 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 1814 1815 # Only perform the check for file, if the check method requires it 1816 case $deplibs_check_method in 1817 file_magic*) 1818 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 1819 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 1820 echo "configure:1821: checking for ${ac_tool_prefix}file" >&5 1821 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then 1822 echo $ac_n "(cached) $ac_c" 1>&6 1823 else 1824 case $MAGIC_CMD in 1825 /*) 1826 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 1827 ;; 1828 ?:/*) 1829 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 1830 ;; 1831 *) 1832 ac_save_MAGIC_CMD="$MAGIC_CMD" 1833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1834 ac_dummy="/usr/bin:$PATH" 1835 for ac_dir in $ac_dummy; do 1836 test -z "$ac_dir" && ac_dir=. 1837 if test -f $ac_dir/${ac_tool_prefix}file; then 1838 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 1839 if test -n "$file_magic_test_file"; then 1840 case $deplibs_check_method in 1841 "file_magic "*) 1842 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 1843 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 1844 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 1845 egrep "$file_magic_regex" > /dev/null; then 1846 : 1847 else 1848 cat <<EOF 1>&2 1849 1850 *** Warning: the command libtool uses to detect shared libraries, 1851 *** $file_magic_cmd, produces output that libtool cannot recognize. 1852 *** The result is that libtool may fail to recognize shared libraries 1853 *** as such. This will affect the creation of libtool libraries that 1854 *** depend on shared libraries, but programs linked with such libtool 1855 *** libraries will work regardless of this problem. Nevertheless, you 1856 *** may want to report the problem to your system manager and/or to 1857 *** bug-libtool@gnu.org 1858 1859 EOF 1860 fi ;; 1861 esac 1862 fi 1863 break 1864 fi 1865 done 1866 IFS="$ac_save_ifs" 1867 MAGIC_CMD="$ac_save_MAGIC_CMD" 1868 ;; 1869 esac 1870 fi 1871 1872 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 1873 if test -n "$MAGIC_CMD"; then 1874 echo "$ac_t""$MAGIC_CMD" 1>&6 1875 else 1876 echo "$ac_t""no" 1>&6 1877 fi 1878 1879 if test -z "$lt_cv_path_MAGIC_CMD"; then 1880 if test -n "$ac_tool_prefix"; then 1881 echo $ac_n "checking for file""... $ac_c" 1>&6 1882 echo "configure:1883: checking for file" >&5 1883 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then 1884 echo $ac_n "(cached) $ac_c" 1>&6 1885 else 1886 case $MAGIC_CMD in 1887 /*) 1888 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 1889 ;; 1890 ?:/*) 1891 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 1892 ;; 1893 *) 1894 ac_save_MAGIC_CMD="$MAGIC_CMD" 1895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1896 ac_dummy="/usr/bin:$PATH" 1897 for ac_dir in $ac_dummy; do 1898 test -z "$ac_dir" && ac_dir=. 1899 if test -f $ac_dir/file; then 1900 lt_cv_path_MAGIC_CMD="$ac_dir/file" 1901 if test -n "$file_magic_test_file"; then 1902 case $deplibs_check_method in 1903 "file_magic "*) 1904 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 1905 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 1906 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 1907 egrep "$file_magic_regex" > /dev/null; then 1908 : 1909 else 1910 cat <<EOF 1>&2 1911 1912 *** Warning: the command libtool uses to detect shared libraries, 1913 *** $file_magic_cmd, produces output that libtool cannot recognize. 1914 *** The result is that libtool may fail to recognize shared libraries 1915 *** as such. This will affect the creation of libtool libraries that 1916 *** depend on shared libraries, but programs linked with such libtool 1917 *** libraries will work regardless of this problem. Nevertheless, you 1918 *** may want to report the problem to your system manager and/or to 1919 *** bug-libtool@gnu.org 1920 1921 EOF 1922 fi ;; 1923 esac 1924 fi 1925 break 1926 fi 1927 done 1928 IFS="$ac_save_ifs" 1929 MAGIC_CMD="$ac_save_MAGIC_CMD" 1930 ;; 1931 esac 1932 fi 1933 1934 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 1935 if test -n "$MAGIC_CMD"; then 1936 echo "$ac_t""$MAGIC_CMD" 1>&6 1937 else 1938 echo "$ac_t""no" 1>&6 1939 fi 1940 1941 else 1942 MAGIC_CMD=: 1943 fi 1944 fi 1945 1946 fi 1947 ;; 1948 esac 1949 1950 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 1951 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 1952 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1953 echo "configure:1954: checking for $ac_word" >&5 1954 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1955 echo $ac_n "(cached) $ac_c" 1>&6 1956 else 1957 if test -n "$RANLIB"; then 1958 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1959 else 1960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1961 ac_dummy="$PATH" 1962 for ac_dir in $ac_dummy; do 1963 test -z "$ac_dir" && ac_dir=. 1964 if test -f $ac_dir/$ac_word; then 1965 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 1966 break 1967 fi 1968 done 1969 IFS="$ac_save_ifs" 1970 fi 1971 fi 1972 RANLIB="$ac_cv_prog_RANLIB" 1973 if test -n "$RANLIB"; then 1974 echo "$ac_t""$RANLIB" 1>&6 1975 else 1976 echo "$ac_t""no" 1>&6 1977 fi 1978 1979 1980 if test -z "$ac_cv_prog_RANLIB"; then 1981 if test -n "$ac_tool_prefix"; then 1982 # Extract the first word of "ranlib", so it can be a program name with args. 1983 set dummy ranlib; ac_word=$2 1984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1985 echo "configure:1986: checking for $ac_word" >&5 1986 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1987 echo $ac_n "(cached) $ac_c" 1>&6 1988 else 1989 if test -n "$RANLIB"; then 1990 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1991 else 1992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1993 ac_dummy="$PATH" 1994 for ac_dir in $ac_dummy; do 1995 test -z "$ac_dir" && ac_dir=. 1996 if test -f $ac_dir/$ac_word; then 1997 ac_cv_prog_RANLIB="ranlib" 1998 break 1999 fi 2000 done 2001 IFS="$ac_save_ifs" 2002 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 2003 fi 2004 fi 2005 RANLIB="$ac_cv_prog_RANLIB" 2006 if test -n "$RANLIB"; then 2007 echo "$ac_t""$RANLIB" 1>&6 2008 else 2009 echo "$ac_t""no" 1>&6 2010 fi 2011 2012 else 2013 RANLIB=":" 2014 fi 2015 fi 2016 2017 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2018 set dummy ${ac_tool_prefix}strip; ac_word=$2 2019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2020 echo "configure:2021: checking for $ac_word" >&5 2021 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 2022 echo $ac_n "(cached) $ac_c" 1>&6 2023 else 2024 if test -n "$STRIP"; then 2025 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2026 else 2027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2028 ac_dummy="$PATH" 2029 for ac_dir in $ac_dummy; do 2030 test -z "$ac_dir" && ac_dir=. 2031 if test -f $ac_dir/$ac_word; then 2032 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2033 break 2034 fi 2035 done 2036 IFS="$ac_save_ifs" 2037 fi 2038 fi 2039 STRIP="$ac_cv_prog_STRIP" 2040 if test -n "$STRIP"; then 2041 echo "$ac_t""$STRIP" 1>&6 2042 else 2043 echo "$ac_t""no" 1>&6 2044 fi 2045 2046 2047 if test -z "$ac_cv_prog_STRIP"; then 2048 if test -n "$ac_tool_prefix"; then 2049 # Extract the first word of "strip", so it can be a program name with args. 2050 set dummy strip; ac_word=$2 2051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2052 echo "configure:2053: checking for $ac_word" >&5 2053 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 2054 echo $ac_n "(cached) $ac_c" 1>&6 2055 else 2056 if test -n "$STRIP"; then 2057 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2058 else 2059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2060 ac_dummy="$PATH" 2061 for ac_dir in $ac_dummy; do 2062 test -z "$ac_dir" && ac_dir=. 2063 if test -f $ac_dir/$ac_word; then 2064 ac_cv_prog_STRIP="strip" 2065 break 2066 fi 2067 done 2068 IFS="$ac_save_ifs" 2069 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 2070 fi 2071 fi 2072 STRIP="$ac_cv_prog_STRIP" 2073 if test -n "$STRIP"; then 2074 echo "$ac_t""$STRIP" 1>&6 2075 else 2076 echo "$ac_t""no" 1>&6 2077 fi 2078 2079 else 2080 STRIP=":" 2081 fi 2082 fi 2083 2084 2085 # Check for any special flags to pass to ltconfig. 2086 libtool_flags="--cache-file=$cache_file" 2087 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" 2088 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" 2089 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" 2090 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" 2091 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" 2092 2093 2094 # Check whether --enable-libtool-lock or --disable-libtool-lock was given. 2095 if test "${enable_libtool_lock+set}" = set; then 2096 enableval="$enable_libtool_lock" 2097 : 2098 fi 2099 2100 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" 2101 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" 2102 2103 # Check whether --with-pic or --without-pic was given. 2104 if test "${with_pic+set}" = set; then 2105 withval="$with_pic" 2106 pic_mode="$withval" 2107 else 2108 pic_mode=default 2109 fi 2110 2111 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" 2112 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" 2113 2114 # Some flags need to be propagated to the compiler or linker for good 2115 # libtool support. 2116 case $host in 2117 *-*-irix6*) 2118 # Find out which ABI we are using. 2119 echo '#line 2120 "configure"' > conftest.$ac_ext 2120 if { (eval echo configure:2121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2121 if test "$lt_cv_prog_gnu_ld" = yes; then 2122 case `/usr/bin/file conftest.$ac_objext` in 2123 *32-bit*) 2124 LD="${LD-ld} -melf32bsmip" 2125 ;; 2126 *N32*) 2127 LD="${LD-ld} -melf32bmipn32" 2128 ;; 2129 *64-bit*) 2130 LD="${LD-ld} -melf64bmip" 2131 ;; 2132 esac 2133 else 2134 case `/usr/bin/file conftest.$ac_objext` in 2135 *32-bit*) 2136 LD="${LD-ld} -32" 2137 ;; 2138 *N32*) 2139 LD="${LD-ld} -n32" 2140 ;; 2141 *64-bit*) 2142 LD="${LD-ld} -64" 2143 ;; 2144 esac 2145 fi 2146 fi 2147 rm -rf conftest* 2148 ;; 2149 2150 ia64-*-hpux*) 2151 # Find out which ABI we are using. 2152 echo 'int i;' > conftest.$ac_ext 2153 if { (eval echo configure:2154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2154 case "`/usr/bin/file conftest.o`" in 2155 *ELF-32*) 2156 HPUX_IA64_MODE="32" 2157 ;; 2158 *ELF-64*) 2159 HPUX_IA64_MODE="64" 2160 ;; 2161 esac 2162 fi 2163 rm -rf conftest* 2164 ;; 2165 2166 *-*-sco3.2v5*) 2167 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 2168 SAVE_CFLAGS="$CFLAGS" 2169 CFLAGS="$CFLAGS -belf" 2170 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 2171 echo "configure:2172: checking whether the C compiler needs -belf" >&5 2172 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then 2173 echo $ac_n "(cached) $ac_c" 1>&6 2174 else 2175 2176 ac_ext=c 2177 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2178 ac_cpp='$CPP $CPPFLAGS' 2179 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2180 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2181 cross_compiling=$ac_cv_prog_cc_cross 2182 2183 cat > conftest.$ac_ext <<EOF 2184 #line 2185 "configure" 2185 #include "confdefs.h" 2186 2187 int main() { 2188 2189 ; return 0; } 2190 EOF 2191 if { (eval echo configure:2192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2192 rm -rf conftest* 2193 lt_cv_cc_needs_belf=yes 2194 else 2195 echo "configure: failed program was:" >&5 2196 cat conftest.$ac_ext >&5 2197 rm -rf conftest* 2198 lt_cv_cc_needs_belf=no 2199 fi 2200 rm -f conftest* 2201 ac_ext=c 2202 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2203 ac_cpp='$CPP $CPPFLAGS' 2204 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2205 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2206 cross_compiling=$ac_cv_prog_cc_cross 2207 2208 fi 2209 2210 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 2211 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 2212 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 2213 CFLAGS="$SAVE_CFLAGS" 2214 fi 2215 ;; 2216 2217 2218 esac 2219 2220 2221 # Save cache, so that ltconfig can load it 2222 cat > confcache <<\EOF 2223 # This file is a shell script that caches the results of configure 2224 # tests run on this system so they can be shared between configure 2225 # scripts and configure runs. It is not useful on other systems. 2226 # If it contains results you don't want to keep, you may remove or edit it. 2227 # 2228 # By default, configure uses ./config.cache as the cache file, 2229 # creating it if it does not exist already. You can give configure 2230 # the --cache-file=FILE option to use a different cache file; that is 2231 # what configure does when it calls configure scripts in 2232 # subdirectories, so they share the cache. 2233 # Giving --cache-file=/dev/null disables caching, for debugging configure. 2234 # config.status only pays attention to the cache file if you give it the 2235 # --recheck option to rerun configure. 2236 # 2237 EOF 2238 # The following way of writing the cache mishandles newlines in values, 2239 # but we know of no workaround that is simple, portable, and efficient. 2240 # So, don't put newlines in cache variables' values. 2241 # Ultrix sh set writes to stderr and can't be redirected directly, 2242 # and sets the high bit in the cache file unless we assign to the vars. 2243 (set) 2>&1 | 2244 case `(ac_space=' '; set | grep ac_space) 2>&1` in 2245 *ac_space=\ *) 2246 # `set' does not quote correctly, so add quotes (double-quote substitution 2247 # turns \\\\ into \\, and sed turns \\ into \). 2248 sed -n \ 2249 -e "s/'/'\\\\''/g" \ 2250 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 2251 ;; 2252 *) 2253 # `set' quotes correctly as required by POSIX, so do not add quotes. 2254 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 2255 ;; 2256 esac >> confcache 2257 if cmp -s $cache_file confcache; then 2258 : 2259 else 2260 if test -w $cache_file; then 2261 echo "updating cache $cache_file" 2262 cat confcache > $cache_file 2263 else 2264 echo "not updating unwritable cache $cache_file" 2265 fi 2266 fi 2267 rm -f confcache 2268 2269 2270 # Actually configure libtool. ac_aux_dir is where install-sh is found. 2271 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 2272 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 2273 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ 2274 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ 2275 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ 2276 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ 2277 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ 2278 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ 2279 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } 2280 2281 # Reload cache, that may have been modified by ltconfig 2282 if test -r "$cache_file"; then 2283 echo "loading cache $cache_file" 2284 . $cache_file 2285 else 2286 echo "creating cache $cache_file" 2287 > $cache_file 2288 fi 2289 2290 2291 # This can be used to rebuild libtool when needed 2292 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" 2293 2294 # Always use our own libtool. 2295 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 2296 2297 # Redirect the config.log output again, so that the ltconfig log is not 2298 # clobbered by the next message. 2299 exec 5>>./config.log 2300 2301 2302 2303 2304 2305 2306 2307 # Check whether --enable-targets or --disable-targets was given. 2308 if test "${enable_targets+set}" = set; then 2309 enableval="$enable_targets" 2310 case "${enableval}" in 2311 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; } 2312 ;; 2313 no) enable_targets= ;; 2314 *) enable_targets=$enableval ;; 2315 esac 2316 fi 2317 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. 2318 if test "${enable_commonbfdlib+set}" = set; then 2319 enableval="$enable_commonbfdlib" 2320 case "${enableval}" in 2321 yes) commonbfdlib=true ;; 2322 no) commonbfdlib=false ;; 2323 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;; 2324 esac 2325 fi 2326 2327 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 2328 # Check whether --enable-build-warnings or --disable-build-warnings was given. 2329 if test "${enable_build_warnings+set}" = set; then 2330 enableval="$enable_build_warnings" 2331 case "${enableval}" in 2332 yes) ;; 2333 no) build_warnings="-w";; 2334 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 2335 build_warnings="${build_warnings} ${t}";; 2336 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 2337 build_warnings="${t} ${build_warnings}";; 2338 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; 2339 esac 2340 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then 2341 echo "Setting warning flags = $build_warnings" 6>&1 2342 fi 2343 fi 2344 WARN_CFLAGS="" 2345 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then 2346 WARN_CFLAGS="${build_warnings}" 2347 fi 2348 2349 2350 2351 2352 2353 2354 if test -z "$target" ; then 2355 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; } 2356 fi 2357 2358 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 2359 echo "configure:2360: checking whether to enable maintainer-specific portions of Makefiles" >&5 2360 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 2361 if test "${enable_maintainer_mode+set}" = set; then 2362 enableval="$enable_maintainer_mode" 2363 USE_MAINTAINER_MODE=$enableval 2364 else 2365 USE_MAINTAINER_MODE=no 2366 fi 2367 2368 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 2369 2370 2371 if test $USE_MAINTAINER_MODE = yes; then 2372 MAINTAINER_MODE_TRUE= 2373 MAINTAINER_MODE_FALSE='#' 2374 else 2375 MAINTAINER_MODE_TRUE='#' 2376 MAINTAINER_MODE_FALSE= 2377 fi 2378 MAINT=$MAINTAINER_MODE_TRUE 2379 2380 2381 echo $ac_n "checking whether to install libbfd""... $ac_c" 1>&6 2382 echo "configure:2383: checking whether to install libbfd" >&5 2383 # Check whether --enable-install-libbfd or --disable-install-libbfd was given. 2384 if test "${enable_install_libbfd+set}" = set; then 2385 enableval="$enable_install_libbfd" 2386 install_libbfd_p=$enableval 2387 else 2388 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then 2389 install_libbfd_p=yes 2390 else 2391 install_libbfd_p=no 2392 fi 2393 fi 2394 2395 echo "$ac_t""$install_libbfd_p" 1>&6 2396 2397 2398 if test $install_libbfd_p = yes; then 2399 INSTALL_LIBBFD_TRUE= 2400 INSTALL_LIBBFD_FALSE='#' 2401 else 2402 INSTALL_LIBBFD_TRUE='#' 2403 INSTALL_LIBBFD_FALSE= 2404 fi 2405 # libbfd.a is a host library containing target dependent code 2406 bfdlibdir='$(libdir)' 2407 bfdincludedir='$(includedir)' 2408 if test "${host}" != "${target}"; then 2409 bfdlibdir='$(exec_prefix)/$(host_alias)/$(target_alias)/lib' 2410 bfdincludedir='$(exec_prefix)/$(host_alias)/$(target_alias)/include' 2411 fi 2412 2413 2414 2415 2416 2417 2418 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 2419 echo "configure:2420: checking for executable suffix" >&5 2420 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 2421 echo $ac_n "(cached) $ac_c" 1>&6 2422 else 2423 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 2424 ac_cv_exeext=.exe 2425 else 2426 rm -f conftest* 2427 echo 'int main () { return 0; }' > conftest.$ac_ext 2428 ac_cv_exeext= 2429 if { (eval echo configure:2430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2430 for file in conftest.*; do 2431 case $file in 2432 *.c | *.o | *.obj | *.ilk | *.pdb) ;; 2433 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 2434 esac 2435 done 2436 else 2437 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } 2438 fi 2439 rm -f conftest* 2440 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no 2441 fi 2442 fi 2443 2444 EXEEXT="" 2445 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} 2446 echo "$ac_t""${ac_cv_exeext}" 1>&6 2447 ac_exeext=$EXEEXT 2448 2449 2450 # host-specific stuff: 2451 2452 # Extract the first word of "gcc", so it can be a program name with args. 2453 set dummy gcc; ac_word=$2 2454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2455 echo "configure:2456: checking for $ac_word" >&5 2456 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 2457 echo $ac_n "(cached) $ac_c" 1>&6 2458 else 2459 if test -n "$CC"; then 2460 ac_cv_prog_CC="$CC" # Let the user override the test. 2461 else 2462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2463 ac_dummy="$PATH" 2464 for ac_dir in $ac_dummy; do 2465 test -z "$ac_dir" && ac_dir=. 2466 if test -f $ac_dir/$ac_word; then 2467 ac_cv_prog_CC="gcc" 2468 break 2469 fi 2470 done 2471 IFS="$ac_save_ifs" 2472 fi 2473 fi 2474 CC="$ac_cv_prog_CC" 2475 if test -n "$CC"; then 2476 echo "$ac_t""$CC" 1>&6 2477 else 2478 echo "$ac_t""no" 1>&6 2479 fi 2480 2481 if test -z "$CC"; then 2482 # Extract the first word of "cc", so it can be a program name with args. 2483 set dummy cc; ac_word=$2 2484 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2485 echo "configure:2486: checking for $ac_word" >&5 2486 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 2487 echo $ac_n "(cached) $ac_c" 1>&6 2488 else 2489 if test -n "$CC"; then 2490 ac_cv_prog_CC="$CC" # Let the user override the test. 2491 else 2492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2493 ac_prog_rejected=no 2494 ac_dummy="$PATH" 2495 for ac_dir in $ac_dummy; do 2496 test -z "$ac_dir" && ac_dir=. 2497 if test -f $ac_dir/$ac_word; then 2498 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 2499 ac_prog_rejected=yes 2500 continue 2501 fi 2502 ac_cv_prog_CC="cc" 2503 break 2504 fi 2505 done 2506 IFS="$ac_save_ifs" 2507 if test $ac_prog_rejected = yes; then 2508 # We found a bogon in the path, so make sure we never use it. 2509 set dummy $ac_cv_prog_CC 2510 shift 2511 if test $# -gt 0; then 2512 # We chose a different compiler from the bogus one. 2513 # However, it has the same basename, so the bogon will be chosen 2514 # first if we set CC to just the basename; use the full file name. 2515 shift 2516 set dummy "$ac_dir/$ac_word" "$@" 2517 shift 2518 ac_cv_prog_CC="$@" 2519 fi 2520 fi 2521 fi 2522 fi 2523 CC="$ac_cv_prog_CC" 2524 if test -n "$CC"; then 2525 echo "$ac_t""$CC" 1>&6 2526 else 2527 echo "$ac_t""no" 1>&6 2528 fi 2529 2530 if test -z "$CC"; then 2531 case "`uname -s`" in 2532 *win32* | *WIN32*) 2533 # Extract the first word of "cl", so it can be a program name with args. 2534 set dummy cl; ac_word=$2 2535 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2536 echo "configure:2537: checking for $ac_word" >&5 2537 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 2538 echo $ac_n "(cached) $ac_c" 1>&6 2539 else 2540 if test -n "$CC"; then 2541 ac_cv_prog_CC="$CC" # Let the user override the test. 2542 else 2543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2544 ac_dummy="$PATH" 2545 for ac_dir in $ac_dummy; do 2546 test -z "$ac_dir" && ac_dir=. 2547 if test -f $ac_dir/$ac_word; then 2548 ac_cv_prog_CC="cl" 2549 break 2550 fi 2551 done 2552 IFS="$ac_save_ifs" 2553 fi 2554 fi 2555 CC="$ac_cv_prog_CC" 2556 if test -n "$CC"; then 2557 echo "$ac_t""$CC" 1>&6 2558 else 2559 echo "$ac_t""no" 1>&6 2560 fi 2561 ;; 2562 esac 2563 fi 2564 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 2565 fi 2566 2567 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2568 echo "configure:2569: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2569 2570 ac_ext=c 2571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2572 ac_cpp='$CPP $CPPFLAGS' 2573 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2574 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2575 cross_compiling=$ac_cv_prog_cc_cross 2576 2577 cat > conftest.$ac_ext << EOF 2578 2579 #line 2580 "configure" 2580 #include "confdefs.h" 2581 2582 main(){return(0);} 2583 EOF 2584 if { (eval echo configure:2585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2585 ac_cv_prog_cc_works=yes 2586 # If we can't run a trivial program, we are probably using a cross compiler. 2587 if (./conftest; exit) 2>/dev/null; then 2588 ac_cv_prog_cc_cross=no 2589 else 2590 ac_cv_prog_cc_cross=yes 2591 fi 2592 else 2593 echo "configure: failed program was:" >&5 2594 cat conftest.$ac_ext >&5 2595 ac_cv_prog_cc_works=no 2596 fi 2597 rm -fr conftest* 2598 ac_ext=c 2599 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2600 ac_cpp=