| 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.59. |
| 4 | # |
| 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
| 6 | # This configure script is free software; the Free Software Foundation |
| 7 | # gives unlimited permission to copy, distribute and modify it. |
| 8 | ## --------------------- ## |
| 9 | ## M4sh Initialization. ## |
| 10 | ## --------------------- ## |
| 11 | |
| 12 | # Be Bourne compatible |
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 14 | emulate sh |
| 15 | NULLCMD=: |
| 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 17 | # is contrary to our usage. Disable this feature. |
| 18 | alias -g '${1+"$@"}'='"$@"' |
| 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20 | set -o posix |
| 21 | fi |
| 22 | DUALCASE=1; export DUALCASE # for MKS sh |
| 23 | |
| 24 | # Support unset when possible. |
| 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 26 | as_unset=unset |
| 27 | else |
| 28 | as_unset=false |
| 29 | fi |
| 30 | |
| 31 | |
| 32 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33 | $as_unset ENV MAIL MAILPATH |
| 34 | PS1='$ ' |
| 35 | PS2='> ' |
| 36 | PS4='+ ' |
| 37 | |
| 38 | # NLS nuisances. |
| 39 | for as_var in \ |
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 42 | LC_TELEPHONE LC_TIME |
| 43 | do |
| 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 45 | eval $as_var=C; export $as_var |
| 46 | else |
| 47 | $as_unset $as_var |
| 48 | fi |
| 49 | done |
| 50 | |
| 51 | # Required to use basename. |
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 53 | as_expr=expr |
| 54 | else |
| 55 | as_expr=false |
| 56 | fi |
| 57 | |
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 59 | as_basename=basename |
| 60 | else |
| 61 | as_basename=false |
| 62 | fi |
| 63 | |
| 64 | |
| 65 | # Name of the executable. |
| 66 | as_me=`$as_basename "$0" || |
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 68 | X"$0" : 'X\(//\)$' \| \ |
| 69 | X"$0" : 'X\(/\)$' \| \ |
| 70 | . : '\(.\)' 2>/dev/null || |
| 71 | echo X/"$0" | |
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 74 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 75 | s/.*/./; q'` |
| 76 | |
| 77 | |
| 78 | # PATH needs CR, and LINENO needs CR and PATH. |
| 79 | # Avoid depending upon Character Ranges. |
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 83 | as_cr_digits='0123456789' |
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 85 | |
| 86 | # The user is always right. |
| 87 | if test "${PATH_SEPARATOR+set}" != set; then |
| 88 | echo "#! /bin/sh" >conf$$.sh |
| 89 | echo "exit 0" >>conf$$.sh |
| 90 | chmod +x conf$$.sh |
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 92 | PATH_SEPARATOR=';' |
| 93 | else |
| 94 | PATH_SEPARATOR=: |
| 95 | fi |
| 96 | rm -f conf$$.sh |
| 97 | fi |
| 98 | |
| 99 | |
| 100 | as_lineno_1=$LINENO |
| 101 | as_lineno_2=$LINENO |
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 105 | # Find who we are. Look in the path if we contain no path at all |
| 106 | # relative or not. |
| 107 | case $0 in |
| 108 | *[\\/]* ) as_myself=$0 ;; |
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 110 | for as_dir in $PATH |
| 111 | do |
| 112 | IFS=$as_save_IFS |
| 113 | test -z "$as_dir" && as_dir=. |
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 115 | done |
| 116 | |
| 117 | ;; |
| 118 | esac |
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 120 | # in which case we are not to be found in the path. |
| 121 | if test "x$as_myself" = x; then |
| 122 | as_myself=$0 |
| 123 | fi |
| 124 | if test ! -f "$as_myself"; then |
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 126 | { (exit 1); exit 1; }; } |
| 127 | fi |
| 128 | case $CONFIG_SHELL in |
| 129 | '') |
| 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 132 | do |
| 133 | IFS=$as_save_IFS |
| 134 | test -z "$as_dir" && as_dir=. |
| 135 | for as_base in sh bash ksh sh5; do |
| 136 | case $as_dir in |
| 137 | /*) |
| 138 | if ("$as_dir/$as_base" -c ' |
| 139 | as_lineno_1=$LINENO |
| 140 | as_lineno_2=$LINENO |
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 146 | CONFIG_SHELL=$as_dir/$as_base |
| 147 | export CONFIG_SHELL |
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 149 | fi;; |
| 150 | esac |
| 151 | done |
| 152 | done |
| 153 | ;; |
| 154 | esac |
| 155 | |
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 158 | # line-number line before each line; the second 'sed' does the real |
| 159 | # work. The second script uses 'N' to pair each line-number line |
| 160 | # with the numbered line, and appends trailing '-' during |
| 161 | # substitution so that $LINENO is not a special case at line end. |
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 164 | sed '=' <$as_myself | |
| 165 | sed ' |
| 166 | N |
| 167 | s,$,-, |
| 168 | : loop |
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 170 | t loop |
| 171 | s,-$,, |
| 172 | s,^['$as_cr_digits']*\n,, |
| 173 | ' >$as_me.lineno && |
| 174 | chmod +x $as_me.lineno || |
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 176 | { (exit 1); exit 1; }; } |
| 177 | |
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 179 | # (the dirname of $[0] is not the place where we might find the |
| 180 | # original and so on. Autoconf is especially sensible to this). |
| 181 | . ./$as_me.lineno |
| 182 | # Exit status is that of the last command. |
| 183 | exit |
| 184 | } |
| 185 | |
| 186 | |
| 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 188 | *c*,-n*) ECHO_N= ECHO_C=' |
| 189 | ' ECHO_T=' ' ;; |
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 192 | esac |
| 193 | |
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 195 | as_expr=expr |
| 196 | else |
| 197 | as_expr=false |
| 198 | fi |
| 199 | |
| 200 | rm -f conf$$ conf$$.exe conf$$.file |
| 201 | echo >conf$$.file |
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 205 | if test -f conf$$.exe; then |
| 206 | # Don't use ln at all; we don't have any links |
| 207 | as_ln_s='cp -p' |
| 208 | else |
| 209 | as_ln_s='ln -s' |
| 210 | fi |
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 212 | as_ln_s=ln |
| 213 | else |
| 214 | as_ln_s='cp -p' |
| 215 | fi |
| 216 | rm -f conf$$ conf$$.exe conf$$.file |
| 217 | |
| 218 | if mkdir -p . 2>/dev/null; then |
| 219 | as_mkdir_p=: |
| 220 | else |
| 221 | test -d ./-p && rmdir ./-p |
| 222 | as_mkdir_p=false |
| 223 | fi |
| 224 | |
| 225 | as_executable_p="test -f" |
| 226 | |
| 227 | # Sed expression to map a string onto a valid CPP name. |
| 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 229 | |
| 230 | # Sed expression to map a string onto a valid variable name. |
| 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 232 | |
| 233 | |
| 234 | # IFS |
| 235 | # We need space, tab and new line, in precisely that order. |
| 236 | as_nl=' |
| 237 | ' |
| 238 | IFS=" $as_nl" |
| 239 | |
| 240 | # CDPATH. |
| 241 | $as_unset CDPATH |
| 242 | |
| 243 | |
| 244 | # Name of the host. |
| 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 246 | # so uname gets run too. |
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 248 | |
| 249 | exec 6>&1 |
| 250 | |
| 251 | # |
| 252 | # Initializations. |
| 253 | # |
| 254 | ac_default_prefix=/usr/local |
| 255 | ac_config_libobj_dir=. |
| 256 | cross_compiling=no |
| 257 | subdirs= |
| 258 | MFLAGS= |
| 259 | MAKEFLAGS= |
| 260 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 261 | |
| 262 | # Maximum number of lines to put in a shell here document. |
| 263 | # This variable seems obsolete. It should probably be removed, and |
| 264 | # only ac_max_sed_lines should be used. |
| 265 | : ${ac_max_here_lines=38} |
| 266 | |
| 267 | # Identity of this package. |
| 268 | PACKAGE_NAME= |
| 269 | PACKAGE_TARNAME= |
| 270 | PACKAGE_VERSION= |
| 271 | PACKAGE_STRING= |
| 272 | PACKAGE_BUGREPORT= |
| 273 | |
| 274 | ac_unique_file="z8k-dis.c" |
| 275 | # Factoring default headers for most tests. |
| 276 | ac_includes_default="\ |
| 277 | #include <stdio.h> |
| 278 | #if HAVE_SYS_TYPES_H |
| 279 | # include <sys/types.h> |
| 280 | #endif |
| 281 | #if HAVE_SYS_STAT_H |
| 282 | # include <sys/stat.h> |
| 283 | #endif |
| 284 | #if STDC_HEADERS |
| 285 | # include <stdlib.h> |
| 286 | # include <stddef.h> |
| 287 | #else |
| 288 | # if HAVE_STDLIB_H |
| 289 | # include <stdlib.h> |
| 290 | # endif |
| 291 | #endif |
| 292 | #if HAVE_STRING_H |
| 293 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 294 | # include <memory.h> |
| 295 | # endif |
| 296 | # include <string.h> |
| 297 | #endif |
| 298 | #if HAVE_STRINGS_H |
| 299 | # include <strings.h> |
| 300 | #endif |
| 301 | #if HAVE_INTTYPES_H |
| 302 | # include <inttypes.h> |
| 303 | #else |
| 304 | # if HAVE_STDINT_H |
| 305 | # include <stdint.h> |
| 306 | # endif |
| 307 | #endif |
| 308 | #if HAVE_UNISTD_H |
| 309 | # include <unistd.h> |
| 310 | #endif" |
| 311 | |
| 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE CC_FOR_BUILD EXEEXT_FOR_BUILD HDEFINES CPP EGREP CGEN_MAINT_TRUE CGEN_MAINT_FALSE cgendir WIN32LDFLAGS WIN32LIBADD archdefs BFD_MACHINES LIBOBJS LTLIBOBJS' |
| 313 | ac_subst_files='' |
| 314 | |
| 315 | # Initialize some variables set by options. |
| 316 | ac_init_help= |
| 317 | ac_init_version=false |
| 318 | # The variables have the same names as the options, with |
| 319 | # dashes changed to underlines. |
| 320 | cache_file=/dev/null |
| 321 | exec_prefix=NONE |
| 322 | no_create= |
| 323 | no_recursion= |
| 324 | prefix=NONE |
| 325 | program_prefix=NONE |
| 326 | program_suffix=NONE |
| 327 | program_transform_name=s,x,x, |
| 328 | silent= |
| 329 | site= |
| 330 | srcdir= |
| 331 | verbose= |
| 332 | x_includes=NONE |
| 333 | x_libraries=NONE |
| 334 | |
| 335 | # Installation directory options. |
| 336 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 337 | # and all the variables that are supposed to be based on exec_prefix |
| 338 | # by default will actually change. |
| 339 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 340 | bindir='${exec_prefix}/bin' |
| 341 | sbindir='${exec_prefix}/sbin' |
| 342 | libexecdir='${exec_prefix}/libexec' |
| 343 | datadir='${prefix}/share' |
| 344 | sysconfdir='${prefix}/etc' |
| 345 | sharedstatedir='${prefix}/com' |
| 346 | localstatedir='${prefix}/var' |
| 347 | libdir='${exec_prefix}/lib' |
| 348 | includedir='${prefix}/include' |
| 349 | oldincludedir='/usr/include' |
| 350 | infodir='${prefix}/info' |
| 351 | mandir='${prefix}/man' |
| 352 | |
| 353 | ac_prev= |
| 354 | for ac_option |
| 355 | do |
| 356 | # If the previous option needs an argument, assign it. |
| 357 | if test -n "$ac_prev"; then |
| 358 | eval "$ac_prev=\$ac_option" |
| 359 | ac_prev= |
| 360 | continue |
| 361 | fi |
| 362 | |
| 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 364 | |
| 365 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 366 | |
| 367 | case $ac_option in |
| 368 | |
| 369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 370 | ac_prev=bindir ;; |
| 371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 372 | bindir=$ac_optarg ;; |
| 373 | |
| 374 | -build | --build | --buil | --bui | --bu) |
| 375 | ac_prev=build_alias ;; |
| 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 377 | build_alias=$ac_optarg ;; |
| 378 | |
| 379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 381 | ac_prev=cache_file ;; |
| 382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 384 | cache_file=$ac_optarg ;; |
| 385 | |
| 386 | --config-cache | -C) |
| 387 | cache_file=config.cache ;; |
| 388 | |
| 389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 390 | ac_prev=datadir ;; |
| 391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 392 | | --da=*) |
| 393 | datadir=$ac_optarg ;; |
| 394 | |
| 395 | -disable-* | --disable-*) |
| 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 397 | # Reject names that are not valid shell variable names. |
| 398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 400 | { (exit 1); exit 1; }; } |
| 401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 402 | eval "enable_$ac_feature=no" ;; |
| 403 | |
| 404 | -enable-* | --enable-*) |
| 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 406 | # Reject names that are not valid shell variable names. |
| 407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 409 | { (exit 1); exit 1; }; } |
| 410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 411 | case $ac_option in |
| 412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 413 | *) ac_optarg=yes ;; |
| 414 | esac |
| 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 416 | |
| 417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 419 | | --exec | --exe | --ex) |
| 420 | ac_prev=exec_prefix ;; |
| 421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 423 | | --exec=* | --exe=* | --ex=*) |
| 424 | exec_prefix=$ac_optarg ;; |
| 425 | |
| 426 | -gas | --gas | --ga | --g) |
| 427 | # Obsolete; use --with-gas. |
| 428 | with_gas=yes ;; |
| 429 | |
| 430 | -help | --help | --hel | --he | -h) |
| 431 | ac_init_help=long ;; |
| 432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 433 | ac_init_help=recursive ;; |
| 434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 435 | ac_init_help=short ;; |
| 436 | |
| 437 | -host | --host | --hos | --ho) |
| 438 | ac_prev=host_alias ;; |
| 439 | -host=* | --host=* | --hos=* | --ho=*) |
| 440 | host_alias=$ac_optarg ;; |
| 441 | |
| 442 | -includedir | --includedir | --includedi | --included | --include \ |
| 443 | | --includ | --inclu | --incl | --inc) |
| 444 | ac_prev=includedir ;; |
| 445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 446 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 447 | includedir=$ac_optarg ;; |
| 448 | |
| 449 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 450 | ac_prev=infodir ;; |
| 451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 452 | infodir=$ac_optarg ;; |
| 453 | |
| 454 | -libdir | --libdir | --libdi | --libd) |
| 455 | ac_prev=libdir ;; |
| 456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 457 | libdir=$ac_optarg ;; |
| 458 | |
| 459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 460 | | --libexe | --libex | --libe) |
| 461 | ac_prev=libexecdir ;; |
| 462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 463 | | --libexe=* | --libex=* | --libe=*) |
| 464 | libexecdir=$ac_optarg ;; |
| 465 | |
| 466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 467 | | --localstate | --localstat | --localsta | --localst \ |
| 468 | | --locals | --local | --loca | --loc | --lo) |
| 469 | ac_prev=localstatedir ;; |
| 470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 473 | localstatedir=$ac_optarg ;; |
| 474 | |
| 475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 476 | ac_prev=mandir ;; |
| 477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 478 | mandir=$ac_optarg ;; |
| 479 | |
| 480 | -nfp | --nfp | --nf) |
| 481 | # Obsolete; use --without-fp. |
| 482 | with_fp=no ;; |
| 483 | |
| 484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 485 | | --no-cr | --no-c | -n) |
| 486 | no_create=yes ;; |
| 487 | |
| 488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 490 | no_recursion=yes ;; |
| 491 | |
| 492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 494 | | --oldin | --oldi | --old | --ol | --o) |
| 495 | ac_prev=oldincludedir ;; |
| 496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 499 | oldincludedir=$ac_optarg ;; |
| 500 | |
| 501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 502 | ac_prev=prefix ;; |
| 503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 504 | prefix=$ac_optarg ;; |
| 505 | |
| 506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 507 | | --program-pre | --program-pr | --program-p) |
| 508 | ac_prev=program_prefix ;; |
| 509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 511 | program_prefix=$ac_optarg ;; |
| 512 | |
| 513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 514 | | --program-suf | --program-su | --program-s) |
| 515 | ac_prev=program_suffix ;; |
| 516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 518 | program_suffix=$ac_optarg ;; |
| 519 | |
| 520 | -program-transform-name | --program-transform-name \ |
| 521 | | --program-transform-nam | --program-transform-na \ |
| 522 | | --program-transform-n | --program-transform- \ |
| 523 | | --program-transform | --program-transfor \ |
| 524 | | --program-transfo | --program-transf \ |
| 525 | | --program-trans | --program-tran \ |
| 526 | | --progr-tra | --program-tr | --program-t) |
| 527 | ac_prev=program_transform_name ;; |
| 528 | -program-transform-name=* | --program-transform-name=* \ |
| 529 | | --program-transform-nam=* | --program-transform-na=* \ |
| 530 | | --program-transform-n=* | --program-transform-=* \ |
| 531 | | --program-transform=* | --program-transfor=* \ |
| 532 | | --program-transfo=* | --program-transf=* \ |
| 533 | | --program-trans=* | --program-tran=* \ |
| 534 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 535 | program_transform_name=$ac_optarg ;; |
| 536 | |
| 537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 538 | | -silent | --silent | --silen | --sile | --sil) |
| 539 | silent=yes ;; |
| 540 | |
| 541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 542 | ac_prev=sbindir ;; |
| 543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 544 | | --sbi=* | --sb=*) |
| 545 | sbindir=$ac_optarg ;; |
| 546 | |
| 547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 549 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 550 | | --sha | --sh) |
| 551 | ac_prev=sharedstatedir ;; |
| 552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 555 | | --sha=* | --sh=*) |
| 556 | sharedstatedir=$ac_optarg ;; |
| 557 | |
| 558 | -site | --site | --sit) |
| 559 | ac_prev=site ;; |
| 560 | -site=* | --site=* | --sit=*) |
| 561 | site=$ac_optarg ;; |
| 562 | |
| 563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 564 | ac_prev=srcdir ;; |
| 565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 566 | srcdir=$ac_optarg ;; |
| 567 | |
| 568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 569 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 570 | ac_prev=sysconfdir ;; |
| 571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 573 | sysconfdir=$ac_optarg ;; |
| 574 | |
| 575 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 576 | ac_prev=target_alias ;; |
| 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 578 | target_alias=$ac_optarg ;; |
| 579 | |
| 580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 581 | verbose=yes ;; |
| 582 | |
| 583 | -version | --version | --versio | --versi | --vers | -V) |
| 584 | ac_init_version=: ;; |
| 585 | |
| 586 | -with-* | --with-*) |
| 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 588 | # Reject names that are not valid shell variable names. |
| 589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 591 | { (exit 1); exit 1; }; } |
| 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 593 | case $ac_option in |
| 594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 595 | *) ac_optarg=yes ;; |
| 596 | esac |
| 597 | eval "with_$ac_package='$ac_optarg'" ;; |
| 598 | |
| 599 | -without-* | --without-*) |
| 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 601 | # Reject names that are not valid shell variable names. |
| 602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 604 | { (exit 1); exit 1; }; } |
| 605 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 606 | eval "with_$ac_package=no" ;; |
| 607 | |
| 608 | --x) |
| 609 | # Obsolete; use --with-x. |
| 610 | with_x=yes ;; |
| 611 | |
| 612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 613 | | --x-incl | --x-inc | --x-in | --x-i) |
| 614 | ac_prev=x_includes ;; |
| 615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 617 | x_includes=$ac_optarg ;; |
| 618 | |
| 619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 621 | ac_prev=x_libraries ;; |
| 622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 624 | x_libraries=$ac_optarg ;; |
| 625 | |
| 626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 627 | Try \`$0 --help' for more information." >&2 |
| 628 | { (exit 1); exit 1; }; } |
| 629 | ;; |
| 630 | |
| 631 | *=*) |
| 632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 633 | # Reject names that are not valid shell variable names. |
| 634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 636 | { (exit 1); exit 1; }; } |
| 637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 638 | eval "$ac_envvar='$ac_optarg'" |
| 639 | export $ac_envvar ;; |
| 640 | |
| 641 | *) |
| 642 | # FIXME: should be removed in autoconf 3.0. |
| 643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 647 | ;; |
| 648 | |
| 649 | esac |
| 650 | done |
| 651 | |
| 652 | if test -n "$ac_prev"; then |
| 653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 654 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 655 | { (exit 1); exit 1; }; } |
| 656 | fi |
| 657 | |
| 658 | # Be sure to have absolute paths. |
| 659 | for ac_var in exec_prefix prefix |
| 660 | do |
| 661 | eval ac_val=$`echo $ac_var` |
| 662 | case $ac_val in |
| 663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 665 | { (exit 1); exit 1; }; };; |
| 666 | esac |
| 667 | done |
| 668 | |
| 669 | # Be sure to have absolute paths. |
| 670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 671 | localstatedir libdir includedir oldincludedir infodir mandir |
| 672 | do |
| 673 | eval ac_val=$`echo $ac_var` |
| 674 | case $ac_val in |
| 675 | [\\/$]* | ?:[\\/]* ) ;; |
| 676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 677 | { (exit 1); exit 1; }; };; |
| 678 | esac |
| 679 | done |
| 680 | |
| 681 | # There might be people who depend on the old broken behavior: `$host' |
| 682 | # used to hold the argument of --host etc. |
| 683 | # FIXME: To remove some day. |
| 684 | build=$build_alias |
| 685 | host=$host_alias |
| 686 | target=$target_alias |
| 687 | |
| 688 | # FIXME: To remove some day. |
| 689 | if test "x$host_alias" != x; then |
| 690 | if test "x$build_alias" = x; then |
| 691 | cross_compiling=maybe |
| 692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 693 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 694 | elif test "x$build_alias" != "x$host_alias"; then |
| 695 | cross_compiling=yes |
| 696 | fi |
| 697 | fi |
| 698 | |
| 699 | ac_tool_prefix= |
| 700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 701 | |
| 702 | test "$silent" = yes && exec 6>/dev/null |
| 703 | |
| 704 | |
| 705 | # Find the source files, if location was not specified. |
| 706 | if test -z "$srcdir"; then |
| 707 | ac_srcdir_defaulted=yes |
| 708 | # Try the directory containing this script, then its parent. |
| 709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 711 | X"$0" : 'X\(//\)[^/]' \| \ |
| 712 | X"$0" : 'X\(//\)$' \| \ |
| 713 | X"$0" : 'X\(/\)' \| \ |
| 714 | . : '\(.\)' 2>/dev/null || |
| 715 | echo X"$0" | |
| 716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 718 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 719 | /^X\(\/\).*/{ s//\1/; q; } |
| 720 | s/.*/./; q'` |
| 721 | srcdir=$ac_confdir |
| 722 | if test ! -r $srcdir/$ac_unique_file; then |
| 723 | srcdir=.. |
| 724 | fi |
| 725 | else |
| 726 | ac_srcdir_defaulted=no |
| 727 | fi |
| 728 | if test ! -r $srcdir/$ac_unique_file; then |
| 729 | if test "$ac_srcdir_defaulted" = yes; then |
| 730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 731 | { (exit 1); exit 1; }; } |
| 732 | else |
| 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 734 | { (exit 1); exit 1; }; } |
| 735 | fi |
| 736 | fi |
| 737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 739 | { (exit 1); exit 1; }; } |
| 740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 741 | ac_env_build_alias_set=${build_alias+set} |
| 742 | ac_env_build_alias_value=$build_alias |
| 743 | ac_cv_env_build_alias_set=${build_alias+set} |
| 744 | ac_cv_env_build_alias_value=$build_alias |
| 745 | ac_env_host_alias_set=${host_alias+set} |
| 746 | ac_env_host_alias_value=$host_alias |
| 747 | ac_cv_env_host_alias_set=${host_alias+set} |
| 748 | ac_cv_env_host_alias_value=$host_alias |
| 749 | ac_env_target_alias_set=${target_alias+set} |
| 750 | ac_env_target_alias_value=$target_alias |
| 751 | ac_cv_env_target_alias_set=${target_alias+set} |
| 752 | ac_cv_env_target_alias_value=$target_alias |
| 753 | ac_env_CC_set=${CC+set} |
| 754 | ac_env_CC_value=$CC |
| 755 | ac_cv_env_CC_set=${CC+set} |
| 756 | ac_cv_env_CC_value=$CC |
| 757 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 758 | ac_env_CFLAGS_value=$CFLAGS |
| 759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 760 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 761 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 762 | ac_env_LDFLAGS_value=$LDFLAGS |
| 763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 764 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 766 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 769 | ac_env_CPP_set=${CPP+set} |
| 770 | ac_env_CPP_value=$CPP |
| 771 | ac_cv_env_CPP_set=${CPP+set} |
| 772 | ac_cv_env_CPP_value=$CPP |
| 773 | |
| 774 | # |
| 775 | # Report the --help message. |
| 776 | # |
| 777 | if test "$ac_init_help" = "long"; then |
| 778 | # Omit some internal or obsolete options to make the list less imposing. |
| 779 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 780 | cat <<_ACEOF |
| 781 | \`configure' configures this package to adapt to many kinds of systems. |
| 782 | |
| 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 784 | |
| 785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 786 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 787 | |
| 788 | Defaults for the options are specified in brackets. |
| 789 | |
| 790 | Configuration: |
| 791 | -h, --help display this help and exit |
| 792 | --help=short display options specific to this package |
| 793 | --help=recursive display the short help of all the included packages |
| 794 | -V, --version display version information and exit |
| 795 | -q, --quiet, --silent do not print \`checking...' messages |
| 796 | --cache-file=FILE cache test results in FILE [disabled] |
| 797 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 798 | -n, --no-create do not create output files |
| 799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 800 | |
| 801 | _ACEOF |
| 802 | |
| 803 | cat <<_ACEOF |
| 804 | Installation directories: |
| 805 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 806 | [$ac_default_prefix] |
| 807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 808 | [PREFIX] |
| 809 | |
| 810 | By default, \`make install' will install all the files in |
| 811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 813 | for instance \`--prefix=\$HOME'. |
| 814 | |
| 815 | For better control, use the options below. |
| 816 | |
| 817 | Fine tuning of the installation directories: |
| 818 | --bindir=DIR user executables [EPREFIX/bin] |
| 819 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 820 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 825 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 826 | --includedir=DIR C header files [PREFIX/include] |
| 827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 828 | --infodir=DIR info documentation [PREFIX/info] |
| 829 | --mandir=DIR man documentation [PREFIX/man] |
| 830 | _ACEOF |
| 831 | |
| 832 | cat <<\_ACEOF |
| 833 | |
| 834 | Program names: |
| 835 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 836 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 837 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 838 | |
| 839 | System types: |
| 840 | --build=BUILD configure for building on BUILD [guessed] |
| 841 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 842 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 843 | _ACEOF |
| 844 | fi |
| 845 | |
| 846 | if test -n "$ac_init_help"; then |
| 847 | |
| 848 | cat <<\_ACEOF |
| 849 | |
| 850 | Optional Features: |
| 851 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 852 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 853 | --disable-dependency-tracking speeds up one-time build |
| 854 | --enable-dependency-tracking do not reject slow dependency extractors |
| 855 | --enable-shared=PKGS build shared libraries default=no |
| 856 | --enable-static=PKGS build static libraries default=yes |
| 857 | --enable-fast-install=PKGS optimize for fast installation default=yes |
| 858 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 859 | --enable-targets alternative target configurations |
| 860 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library |
| 861 | --enable-werror treat compile warnings as errors |
| 862 | --enable-build-warnings enable build-time compiler warnings |
| 863 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 864 | (and sometimes confusing) to the casual installer |
| 865 | --enable-install-libbfd controls installation of libbfd and related headers |
| 866 | --disable-nls do not use Native Language Support |
| 867 | --enable-cgen-maint=dir build cgen generated files |
| 868 | |
| 869 | Optional Packages: |
| 870 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 871 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 872 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 873 | --with-pic try to use only PIC/non-PIC objects default=use both |
| 874 | |
| 875 | Some influential environment variables: |
| 876 | CC C compiler command |
| 877 | CFLAGS C compiler flags |
| 878 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 879 | nonstandard directory <lib dir> |
| 880 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 881 | headers in a nonstandard directory <include dir> |
| 882 | CPP C preprocessor |
| 883 | |
| 884 | Use these variables to override the choices made by `configure' or to help |
| 885 | it to find libraries and programs with nonstandard names/locations. |
| 886 | |
| 887 | _ACEOF |
| 888 | fi |
| 889 | |
| 890 | if test "$ac_init_help" = "recursive"; then |
| 891 | # If there are subdirs, report their specific --help. |
| 892 | ac_popdir=`pwd` |
| 893 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 894 | test -d $ac_dir || continue |
| 895 | ac_builddir=. |
| 896 | |
| 897 | if test "$ac_dir" != .; then |
| 898 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 899 | # A "../" for each directory in $ac_dir_suffix. |
| 900 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 901 | else |
| 902 | ac_dir_suffix= ac_top_builddir= |
| 903 | fi |
| 904 | |
| 905 | case $srcdir in |
| 906 | .) # No --srcdir option. We are building in place. |
| 907 | ac_srcdir=. |
| 908 | if test -z "$ac_top_builddir"; then |
| 909 | ac_top_srcdir=. |
| 910 | else |
| 911 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 912 | fi ;; |
| 913 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 914 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 915 | ac_top_srcdir=$srcdir ;; |
| 916 | *) # Relative path. |
| 917 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 918 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 919 | esac |
| 920 | |
| 921 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 922 | # the directories may not exist. |
| 923 | case `pwd` in |
| 924 | .) ac_abs_builddir="$ac_dir";; |
| 925 | *) |
| 926 | case "$ac_dir" in |
| 927 | .) ac_abs_builddir=`pwd`;; |
| 928 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 929 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 930 | esac;; |
| 931 | esac |
| 932 | case $ac_abs_builddir in |
| 933 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 934 | *) |
| 935 | case ${ac_top_builddir}. in |
| 936 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 937 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 938 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 939 | esac;; |
| 940 | esac |
| 941 | case $ac_abs_builddir in |
| 942 | .) ac_abs_srcdir=$ac_srcdir;; |
| 943 | *) |
| 944 | case $ac_srcdir in |
| 945 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 946 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 947 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 948 | esac;; |
| 949 | esac |
| 950 | case $ac_abs_builddir in |
| 951 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 952 | *) |
| 953 | case $ac_top_srcdir in |
| 954 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 955 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 956 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 957 | esac;; |
| 958 | esac |
| 959 | |
| 960 | cd $ac_dir |
| 961 | # Check for guested configure; otherwise get Cygnus style configure. |
| 962 | if test -f $ac_srcdir/configure.gnu; then |
| 963 | echo |
| 964 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 965 | elif test -f $ac_srcdir/configure; then |
| 966 | echo |
| 967 | $SHELL $ac_srcdir/configure --help=recursive |
| 968 | elif test -f $ac_srcdir/configure.ac || |
| 969 | test -f $ac_srcdir/configure.in; then |
| 970 | echo |
| 971 | $ac_configure --help |
| 972 | else |
| 973 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 974 | fi |
| 975 | cd $ac_popdir |
| 976 | done |
| 977 | fi |
| 978 | |
| 979 | test -n "$ac_init_help" && exit 0 |
| 980 | if $ac_init_version; then |
| 981 | cat <<\_ACEOF |
| 982 | |
| 983 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 984 | This configure script is free software; the Free Software Foundation |
| 985 | gives unlimited permission to copy, distribute and modify it. |
| 986 | _ACEOF |
| 987 | exit 0 |
| 988 | fi |
| 989 | exec 5>config.log |
| 990 | cat >&5 <<_ACEOF |
| 991 | This file contains any messages produced by compilers while |
| 992 | running configure, to aid debugging if configure makes a mistake. |
| 993 | |
| 994 | It was created by $as_me, which was |
| 995 | generated by GNU Autoconf 2.59. Invocation command line was |
| 996 | |
| 997 | $ $0 $@ |
| 998 | |
| 999 | _ACEOF |
| 1000 | { |
| 1001 | cat <<_ASUNAME |
| 1002 | ## --------- ## |
| 1003 | ## Platform. ## |
| 1004 | ## --------- ## |
| 1005 | |
| 1006 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1007 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1008 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1009 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1010 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1011 | |
| 1012 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1013 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1014 | |
| 1015 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1016 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1017 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1018 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1019 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1020 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1021 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1022 | |
| 1023 | _ASUNAME |
| 1024 | |
| 1025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1026 | for as_dir in $PATH |
| 1027 | do |
| 1028 | IFS=$as_save_IFS |
| 1029 | test -z "$as_dir" && as_dir=. |
| 1030 | echo "PATH: $as_dir" |
| 1031 | done |
| 1032 | |
| 1033 | } >&5 |
| 1034 | |
| 1035 | cat >&5 <<_ACEOF |
| 1036 | |
| 1037 | |
| 1038 | ## ----------- ## |
| 1039 | ## Core tests. ## |
| 1040 | ## ----------- ## |
| 1041 | |
| 1042 | _ACEOF |
| 1043 | |
| 1044 | |
| 1045 | # Keep a trace of the command line. |
| 1046 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1047 | # Strip out --silent because we don't want to record it for future runs. |
| 1048 | # Also quote any args containing shell meta-characters. |
| 1049 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1050 | ac_configure_args= |
| 1051 | ac_configure_args0= |
| 1052 | ac_configure_args1= |
| 1053 | ac_sep= |
| 1054 | ac_must_keep_next=false |
| 1055 | for ac_pass in 1 2 |
| 1056 | do |
| 1057 | for ac_arg |
| 1058 | do |
| 1059 | case $ac_arg in |
| 1060 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1061 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1062 | | -silent | --silent | --silen | --sile | --sil) |
| 1063 | continue ;; |
| 1064 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1065 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1066 | esac |
| 1067 | case $ac_pass in |
| 1068 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1069 | 2) |
| 1070 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1071 | if test $ac_must_keep_next = true; then |
| 1072 | ac_must_keep_next=false # Got value, back to normal. |
| 1073 | else |
| 1074 | case $ac_arg in |
| 1075 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1076 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1077 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1078 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1079 | case "$ac_configure_args0 " in |
| 1080 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1081 | esac |
| 1082 | ;; |
| 1083 | -* ) ac_must_keep_next=true ;; |
| 1084 | esac |
| 1085 | fi |
| 1086 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1087 | # Get rid of the leading space. |
| 1088 | ac_sep=" " |
| 1089 | ;; |
| 1090 | esac |
| 1091 | done |
| 1092 | done |
| 1093 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1094 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1095 | |
| 1096 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1097 | # config.log. We remove comments because anyway the quotes in there |
| 1098 | # would cause problems or look ugly. |
| 1099 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1100 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1101 | trap 'exit_status=$? |
| 1102 | # Save into config.log some information that might help in debugging. |
| 1103 | { |
| 1104 | echo |
| 1105 | |
| 1106 | cat <<\_ASBOX |
| 1107 | ## ---------------- ## |
| 1108 | ## Cache variables. ## |
| 1109 | ## ---------------- ## |
| 1110 | _ASBOX |
| 1111 | echo |
| 1112 | # The following way of writing the cache mishandles newlines in values, |
| 1113 | { |
| 1114 | (set) 2>&1 | |
| 1115 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1116 | *ac_space=\ *) |
| 1117 | sed -n \ |
| 1118 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1119 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1120 | ;; |
| 1121 | *) |
| 1122 | sed -n \ |
| 1123 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1124 | ;; |
| 1125 | esac; |
| 1126 | } |
| 1127 | echo |
| 1128 | |
| 1129 | cat <<\_ASBOX |
| 1130 | ## ----------------- ## |
| 1131 | ## Output variables. ## |
| 1132 | ## ----------------- ## |
| 1133 | _ASBOX |
| 1134 | echo |
| 1135 | for ac_var in $ac_subst_vars |
| 1136 | do |
| 1137 | eval ac_val=$`echo $ac_var` |
| 1138 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1139 | done | sort |
| 1140 | echo |
| 1141 | |
| 1142 | if test -n "$ac_subst_files"; then |
| 1143 | cat <<\_ASBOX |
| 1144 | ## ------------- ## |
| 1145 | ## Output files. ## |
| 1146 | ## ------------- ## |
| 1147 | _ASBOX |
| 1148 | echo |
| 1149 | for ac_var in $ac_subst_files |
| 1150 | do |
| 1151 | eval ac_val=$`echo $ac_var` |
| 1152 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1153 | done | sort |
| 1154 | echo |
| 1155 | fi |
| 1156 | |
| 1157 | if test -s confdefs.h; then |
| 1158 | cat <<\_ASBOX |
| 1159 | ## ----------- ## |
| 1160 | ## confdefs.h. ## |
| 1161 | ## ----------- ## |
| 1162 | _ASBOX |
| 1163 | echo |
| 1164 | sed "/^$/d" confdefs.h | sort |
| 1165 | echo |
| 1166 | fi |
| 1167 | test "$ac_signal" != 0 && |
| 1168 | echo "$as_me: caught signal $ac_signal" |
| 1169 | echo "$as_me: exit $exit_status" |
| 1170 | } >&5 |
| 1171 | rm -f core *.core && |
| 1172 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1173 | exit $exit_status |
| 1174 | ' 0 |
| 1175 | for ac_signal in 1 2 13 15; do |
| 1176 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1177 | done |
| 1178 | ac_signal=0 |
| 1179 | |
| 1180 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1181 | rm -rf conftest* confdefs.h |
| 1182 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1183 | echo >confdefs.h |
| 1184 | |
| 1185 | # Predefined preprocessor variables. |
| 1186 | |
| 1187 | cat >>confdefs.h <<_ACEOF |
| 1188 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1189 | _ACEOF |
| 1190 | |
| 1191 | |
| 1192 | cat >>confdefs.h <<_ACEOF |
| 1193 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1194 | _ACEOF |
| 1195 | |
| 1196 | |
| 1197 | cat >>confdefs.h <<_ACEOF |
| 1198 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1199 | _ACEOF |
| 1200 | |
| 1201 | |
| 1202 | cat >>confdefs.h <<_ACEOF |
| 1203 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1204 | _ACEOF |
| 1205 | |
| 1206 | |
| 1207 | cat >>confdefs.h <<_ACEOF |
| 1208 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1209 | _ACEOF |
| 1210 | |
| 1211 | |
| 1212 | # Let the site file select an alternate cache file if it wants to. |
| 1213 | # Prefer explicitly selected file to automatically selected ones. |
| 1214 | if test -z "$CONFIG_SITE"; then |
| 1215 | if test "x$prefix" != xNONE; then |
| 1216 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1217 | else |
| 1218 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1219 | fi |
| 1220 | fi |
| 1221 | for ac_site_file in $CONFIG_SITE; do |
| 1222 | if test -r "$ac_site_file"; then |
| 1223 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1224 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1225 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1226 | . "$ac_site_file" |
| 1227 | fi |
| 1228 | done |
| 1229 | |
| 1230 | if test -r "$cache_file"; then |
| 1231 | # Some versions of bash will fail to source /dev/null (special |
| 1232 | # files actually), so we avoid doing that. |
| 1233 | if test -f "$cache_file"; then |
| 1234 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1235 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1236 | case $cache_file in |
| 1237 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1238 | *) . ./$cache_file;; |
| 1239 | esac |
| 1240 | fi |
| 1241 | else |
| 1242 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1243 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1244 | >$cache_file |
| 1245 | fi |
| 1246 | |
| 1247 | # Check that the precious variables saved in the cache have kept the same |
| 1248 | # value. |
| 1249 | ac_cache_corrupted=false |
| 1250 | for ac_var in `(set) 2>&1 | |
| 1251 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1252 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1253 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1254 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1255 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1256 | case $ac_old_set,$ac_new_set in |
| 1257 | set,) |
| 1258 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1259 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1260 | ac_cache_corrupted=: ;; |
| 1261 | ,set) |
| 1262 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1263 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1264 | ac_cache_corrupted=: ;; |
| 1265 | ,);; |
| 1266 | *) |
| 1267 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1268 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1269 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1270 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1271 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1272 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1273 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1274 | ac_cache_corrupted=: |
| 1275 | fi;; |
| 1276 | esac |
| 1277 | # Pass precious variables to config.status. |
| 1278 | if test "$ac_new_set" = set; then |
| 1279 | case $ac_new_val in |
| 1280 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1281 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1282 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1283 | esac |
| 1284 | case " $ac_configure_args " in |
| 1285 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1286 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1287 | esac |
| 1288 | fi |
| 1289 | done |
| 1290 | if $ac_cache_corrupted; then |
| 1291 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1292 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1293 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1294 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1295 | { (exit 1); exit 1; }; } |
| 1296 | fi |
| 1297 | |
| 1298 | ac_ext=c |
| 1299 | ac_cpp='$CPP $CPPFLAGS' |
| 1300 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1301 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1302 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1303 | |
| 1304 | |
| 1305 | |
| 1306 | |
| 1307 | |
| 1308 | |
| 1309 | |
| 1310 | |
| 1311 | |
| 1312 | |
| 1313 | |
| 1314 | |
| 1315 | |
| 1316 | |
| 1317 | |
| 1318 | |
| 1319 | |
| 1320 | |
| 1321 | |
| 1322 | |
| 1323 | |
| 1324 | ac_aux_dir= |
| 1325 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1326 | if test -f $ac_dir/install-sh; then |
| 1327 | ac_aux_dir=$ac_dir |
| 1328 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1329 | break |
| 1330 | elif test -f $ac_dir/install.sh; then |
| 1331 | ac_aux_dir=$ac_dir |
| 1332 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1333 | break |
| 1334 | elif test -f $ac_dir/shtool; then |
| 1335 | ac_aux_dir=$ac_dir |
| 1336 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1337 | break |
| 1338 | fi |
| 1339 | done |
| 1340 | if test -z "$ac_aux_dir"; then |
| 1341 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1342 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1343 | { (exit 1); exit 1; }; } |
| 1344 | fi |
| 1345 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1346 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1347 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1348 | |
| 1349 | # Make sure we can run config.sub. |
| 1350 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1351 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1352 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1353 | { (exit 1); exit 1; }; } |
| 1354 | |
| 1355 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1356 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1357 | if test "${ac_cv_build+set}" = set; then |
| 1358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1359 | else |
| 1360 | ac_cv_build_alias=$build_alias |
| 1361 | test -z "$ac_cv_build_alias" && |
| 1362 | ac_cv_build_alias=`$ac_config_guess` |
| 1363 | test -z "$ac_cv_build_alias" && |
| 1364 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1365 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1366 | { (exit 1); exit 1; }; } |
| 1367 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1368 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1369 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1370 | { (exit 1); exit 1; }; } |
| 1371 | |
| 1372 | fi |
| 1373 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1374 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1375 | build=$ac_cv_build |
| 1376 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1377 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1378 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1379 | |
| 1380 | |
| 1381 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1382 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1383 | if test "${ac_cv_host+set}" = set; then |
| 1384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1385 | else |
| 1386 | ac_cv_host_alias=$host_alias |
| 1387 | test -z "$ac_cv_host_alias" && |
| 1388 | ac_cv_host_alias=$ac_cv_build_alias |
| 1389 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1390 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1391 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1392 | { (exit 1); exit 1; }; } |
| 1393 | |
| 1394 | fi |
| 1395 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1396 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1397 | host=$ac_cv_host |
| 1398 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1399 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1400 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1401 | |
| 1402 | |
| 1403 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 1404 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 1405 | if test "${ac_cv_target+set}" = set; then |
| 1406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1407 | else |
| 1408 | ac_cv_target_alias=$target_alias |
| 1409 | test "x$ac_cv_target_alias" = "x" && |
| 1410 | ac_cv_target_alias=$ac_cv_host_alias |
| 1411 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 1412 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 1413 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 1414 | { (exit 1); exit 1; }; } |
| 1415 | |
| 1416 | fi |
| 1417 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1418 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 1419 | target=$ac_cv_target |
| 1420 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1421 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1422 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1423 | |
| 1424 | |
| 1425 | # The aliases save the names the user supplied, while $host etc. |
| 1426 | # will get canonicalized. |
| 1427 | test -n "$target_alias" && |
| 1428 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1429 | NONENONEs,x,x, && |
| 1430 | program_prefix=${target_alias}- |
| 1431 | ac_ext=c |
| 1432 | ac_cpp='$CPP $CPPFLAGS' |
| 1433 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1434 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1435 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1436 | if test -n "$ac_tool_prefix"; then |
| 1437 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1438 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1439 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1440 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1441 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1443 | else |
| 1444 | if test -n "$CC"; then |
| 1445 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1446 | else |
| 1447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1448 | for as_dir in $PATH |
| 1449 | do |
| 1450 | IFS=$as_save_IFS |
| 1451 | test -z "$as_dir" && as_dir=. |
| 1452 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1453 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1454 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1455 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1456 | break 2 |
| 1457 | fi |
| 1458 | done |
| 1459 | done |
| 1460 | |
| 1461 | fi |
| 1462 | fi |
| 1463 | CC=$ac_cv_prog_CC |
| 1464 | if test -n "$CC"; then |
| 1465 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1466 | echo "${ECHO_T}$CC" >&6 |
| 1467 | else |
| 1468 | echo "$as_me:$LINENO: result: no" >&5 |
| 1469 | echo "${ECHO_T}no" >&6 |
| 1470 | fi |
| 1471 | |
| 1472 | fi |
| 1473 | if test -z "$ac_cv_prog_CC"; then |
| 1474 | ac_ct_CC=$CC |
| 1475 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1476 | set dummy gcc; ac_word=$2 |
| 1477 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1478 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1479 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1481 | else |
| 1482 | if test -n "$ac_ct_CC"; then |
| 1483 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1484 | else |
| 1485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1486 | for as_dir in $PATH |
| 1487 | do |
| 1488 | IFS=$as_save_IFS |
| 1489 | test -z "$as_dir" && as_dir=. |
| 1490 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1491 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1492 | ac_cv_prog_ac_ct_CC="gcc" |
| 1493 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1494 | break 2 |
| 1495 | fi |
| 1496 | done |
| 1497 | done |
| 1498 | |
| 1499 | fi |
| 1500 | fi |
| 1501 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1502 | if test -n "$ac_ct_CC"; then |
| 1503 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1504 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1505 | else |
| 1506 | echo "$as_me:$LINENO: result: no" >&5 |
| 1507 | echo "${ECHO_T}no" >&6 |
| 1508 | fi |
| 1509 | |
| 1510 | CC=$ac_ct_CC |
| 1511 | else |
| 1512 | CC="$ac_cv_prog_CC" |
| 1513 | fi |
| 1514 | |
| 1515 | if test -z "$CC"; then |
| 1516 | if test -n "$ac_tool_prefix"; then |
| 1517 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1518 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1519 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1520 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1521 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1523 | else |
| 1524 | if test -n "$CC"; then |
| 1525 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1526 | else |
| 1527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1528 | for as_dir in $PATH |
| 1529 | do |
| 1530 | IFS=$as_save_IFS |
| 1531 | test -z "$as_dir" && as_dir=. |
| 1532 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1533 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1534 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1535 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1536 | break 2 |
| 1537 | fi |
| 1538 | done |
| 1539 | done |
| 1540 | |
| 1541 | fi |
| 1542 | fi |
| 1543 | CC=$ac_cv_prog_CC |
| 1544 | if test -n "$CC"; then |
| 1545 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1546 | echo "${ECHO_T}$CC" >&6 |
| 1547 | else |
| 1548 | echo "$as_me:$LINENO: result: no" >&5 |
| 1549 | echo "${ECHO_T}no" >&6 |
| 1550 | fi |
| 1551 | |
| 1552 | fi |
| 1553 | if test -z "$ac_cv_prog_CC"; then |
| 1554 | ac_ct_CC=$CC |
| 1555 | # Extract the first word of "cc", so it can be a program name with args. |
| 1556 | set dummy cc; ac_word=$2 |
| 1557 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1558 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1559 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1561 | else |
| 1562 | if test -n "$ac_ct_CC"; then |
| 1563 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1564 | else |
| 1565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1566 | for as_dir in $PATH |
| 1567 | do |
| 1568 | IFS=$as_save_IFS |
| 1569 | test -z "$as_dir" && as_dir=. |
| 1570 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1571 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1572 | ac_cv_prog_ac_ct_CC="cc" |
| 1573 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1574 | break 2 |
| 1575 | fi |
| 1576 | done |
| 1577 | done |
| 1578 | |
| 1579 | fi |
| 1580 | fi |
| 1581 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1582 | if test -n "$ac_ct_CC"; then |
| 1583 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1584 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1585 | else |
| 1586 | echo "$as_me:$LINENO: result: no" >&5 |
| 1587 | echo "${ECHO_T}no" >&6 |
| 1588 | fi |
| 1589 | |
| 1590 | CC=$ac_ct_CC |
| 1591 | else |
| 1592 | CC="$ac_cv_prog_CC" |
| 1593 | fi |
| 1594 | |
| 1595 | fi |
| 1596 | if test -z "$CC"; then |
| 1597 | # Extract the first word of "cc", so it can be a program name with args. |
| 1598 | set dummy cc; ac_word=$2 |
| 1599 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1601 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1603 | else |
| 1604 | if test -n "$CC"; then |
| 1605 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1606 | else |
| 1607 | ac_prog_rejected=no |
| 1608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1609 | for as_dir in $PATH |
| 1610 | do |
| 1611 | IFS=$as_save_IFS |
| 1612 | test -z "$as_dir" && as_dir=. |
| 1613 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1614 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1615 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1616 | ac_prog_rejected=yes |
| 1617 | continue |
| 1618 | fi |
| 1619 | ac_cv_prog_CC="cc" |
| 1620 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1621 | break 2 |
| 1622 | fi |
| 1623 | done |
| 1624 | done |
| 1625 | |
| 1626 | if test $ac_prog_rejected = yes; then |
| 1627 | # We found a bogon in the path, so make sure we never use it. |
| 1628 | set dummy $ac_cv_prog_CC |
| 1629 | shift |
| 1630 | if test $# != 0; then |
| 1631 | # We chose a different compiler from the bogus one. |
| 1632 | # However, it has the same basename, so the bogon will be chosen |
| 1633 | # first if we set CC to just the basename; use the full file name. |
| 1634 | shift |
| 1635 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 1636 | fi |
| 1637 | fi |
| 1638 | fi |
| 1639 | fi |
| 1640 | CC=$ac_cv_prog_CC |
| 1641 | if test -n "$CC"; then |
| 1642 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1643 | echo "${ECHO_T}$CC" >&6 |
| 1644 | else |
| 1645 | echo "$as_me:$LINENO: result: no" >&5 |
| 1646 | echo "${ECHO_T}no" >&6 |
| 1647 | fi |
| 1648 | |
| 1649 | fi |
| 1650 | if test -z "$CC"; then |
| 1651 | if test -n "$ac_tool_prefix"; then |
| 1652 | for ac_prog in cl |
| 1653 | do |
| 1654 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1655 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1656 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1657 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1658 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1660 | else |
| 1661 | if test -n "$CC"; then |
| 1662 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1663 | else |
| 1664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1665 | for as_dir in $PATH |
| 1666 | do |
| 1667 | IFS=$as_save_IFS |
| 1668 | test -z "$as_dir" && as_dir=. |
| 1669 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1670 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1671 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1672 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1673 | break 2 |
| 1674 | fi |
| 1675 | done |
| 1676 | done |
| 1677 | |
| 1678 | fi |
| 1679 | fi |
| 1680 | CC=$ac_cv_prog_CC |
| 1681 | if test -n "$CC"; then |
| 1682 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1683 | echo "${ECHO_T}$CC" >&6 |
| 1684 | else |
| 1685 | echo "$as_me:$LINENO: result: no" >&5 |
| 1686 | echo "${ECHO_T}no" >&6 |
| 1687 | fi |
| 1688 | |
| 1689 | test -n "$CC" && break |
| 1690 | done |
| 1691 | fi |
| 1692 | if test -z "$CC"; then |
| 1693 | ac_ct_CC=$CC |
| 1694 | for ac_prog in cl |
| 1695 | do |
| 1696 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1697 | set dummy $ac_prog; ac_word=$2 |
| 1698 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1699 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1700 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1702 | else |
| 1703 | if test -n "$ac_ct_CC"; then |
| 1704 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1705 | else |
| 1706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1707 | for as_dir in $PATH |
| 1708 | do |
| 1709 | IFS=$as_save_IFS |
| 1710 | test -z "$as_dir" && as_dir=. |
| 1711 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1712 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1713 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1714 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1715 | break 2 |
| 1716 | fi |
| 1717 | done |
| 1718 | done |
| 1719 | |
| 1720 | fi |
| 1721 | fi |
| 1722 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1723 | if test -n "$ac_ct_CC"; then |
| 1724 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1725 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1726 | else |
| 1727 | echo "$as_me:$LINENO: result: no" >&5 |
| 1728 | echo "${ECHO_T}no" >&6 |
| 1729 | fi |
| 1730 | |
| 1731 | test -n "$ac_ct_CC" && break |
| 1732 | done |
| 1733 | |
| 1734 | CC=$ac_ct_CC |
| 1735 | fi |
| 1736 | |
| 1737 | fi |
| 1738 | |
| 1739 | |
| 1740 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1741 | See \`config.log' for more details." >&5 |
| 1742 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1743 | See \`config.log' for more details." >&2;} |
| 1744 | { (exit 1); exit 1; }; } |
| 1745 | |
| 1746 | # Provide some information about the compiler. |
| 1747 | echo "$as_me:$LINENO:" \ |
| 1748 | "checking for C compiler version" >&5 |
| 1749 | ac_compiler=`set X $ac_compile; echo $2` |
| 1750 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1751 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1752 | ac_status=$? |
| 1753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1754 | (exit $ac_status); } |
| 1755 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1756 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1757 | ac_status=$? |
| 1758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1759 | (exit $ac_status); } |
| 1760 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1761 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1762 | ac_status=$? |
| 1763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1764 | (exit $ac_status); } |
| 1765 | |
| 1766 | cat >conftest.$ac_ext <<_ACEOF |
| 1767 | /* confdefs.h. */ |
| 1768 | _ACEOF |
| 1769 | cat confdefs.h >>conftest.$ac_ext |
| 1770 | cat >>conftest.$ac_ext <<_ACEOF |
| 1771 | /* end confdefs.h. */ |
| 1772 | |
| 1773 | int |
| 1774 | main () |
| 1775 | { |
| 1776 | |
| 1777 | ; |
| 1778 | return 0; |
| 1779 | } |
| 1780 | _ACEOF |
| 1781 | ac_clean_files_save=$ac_clean_files |
| 1782 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 1783 | # Try to create an executable without -o first, disregard a.out. |
| 1784 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1785 | # of exeext. |
| 1786 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1787 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 1788 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1789 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1790 | (eval $ac_link_default) 2>&5 |
| 1791 | ac_status=$? |
| 1792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1793 | (exit $ac_status); }; then |
| 1794 | # Find the output, starting from the most likely. This scheme is |
| 1795 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1796 | # resort. |
| 1797 | |
| 1798 | # Be careful to initialize this variable, since it used to be cached. |
| 1799 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1800 | ac_cv_exeext= |
| 1801 | # b.out is created by i960 compilers. |
| 1802 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1803 | do |
| 1804 | test -f "$ac_file" || continue |
| 1805 | case $ac_file in |
| 1806 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1807 | ;; |
| 1808 | conftest.$ac_ext ) |
| 1809 | # This is the source file. |
| 1810 | ;; |
| 1811 | [ab].out ) |
| 1812 | # We found the default executable, but exeext='' is most |
| 1813 | # certainly right. |
| 1814 | break;; |
| 1815 | *.* ) |
| 1816 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1817 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1818 | # but it would be cool to find out if it's true. Does anybody |
| 1819 | # maintain Libtool? --akim. |
| 1820 | export ac_cv_exeext |
| 1821 | break;; |
| 1822 | * ) |
| 1823 | break;; |
| 1824 | esac |
| 1825 | done |
| 1826 | else |
| 1827 | echo "$as_me: failed program was:" >&5 |
| 1828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1829 | |
| 1830 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1831 | See \`config.log' for more details." >&5 |
| 1832 | echo "$as_me: error: C compiler cannot create executables |
| 1833 | See \`config.log' for more details." >&2;} |
| 1834 | { (exit 77); exit 77; }; } |
| 1835 | fi |
| 1836 | |
| 1837 | ac_exeext=$ac_cv_exeext |
| 1838 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1839 | echo "${ECHO_T}$ac_file" >&6 |
| 1840 | |
| 1841 | # Check the compiler produces executables we can run. If not, either |
| 1842 | # the compiler is broken, or we cross compile. |
| 1843 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1844 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1845 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1846 | # If not cross compiling, check that we can run a simple program. |
| 1847 | if test "$cross_compiling" != yes; then |
| 1848 | if { ac_try='./$ac_file' |
| 1849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1850 | (eval $ac_try) 2>&5 |
| 1851 | ac_status=$? |
| 1852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1853 | (exit $ac_status); }; }; then |
| 1854 | cross_compiling=no |
| 1855 | else |
| 1856 | if test "$cross_compiling" = maybe; then |
| 1857 | cross_compiling=yes |
| 1858 | else |
| 1859 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1860 | If you meant to cross compile, use \`--host'. |
| 1861 | See \`config.log' for more details." >&5 |
| 1862 | echo "$as_me: error: cannot run C compiled programs. |
| 1863 | If you meant to cross compile, use \`--host'. |
| 1864 | See \`config.log' for more details." >&2;} |
| 1865 | { (exit 1); exit 1; }; } |
| 1866 | fi |
| 1867 | fi |
| 1868 | fi |
| 1869 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1870 | echo "${ECHO_T}yes" >&6 |
| 1871 | |
| 1872 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 1873 | ac_clean_files=$ac_clean_files_save |
| 1874 | # Check the compiler produces executables we can run. If not, either |
| 1875 | # the compiler is broken, or we cross compile. |
| 1876 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1877 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1878 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1879 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1880 | |
| 1881 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1882 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1883 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1884 | (eval $ac_link) 2>&5 |
| 1885 | ac_status=$? |
| 1886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1887 | (exit $ac_status); }; then |
| 1888 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1889 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1890 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1891 | # `rm'. |
| 1892 | for ac_file in conftest.exe conftest conftest.*; do |
| 1893 | test -f "$ac_file" || continue |
| 1894 | case $ac_file in |
| 1895 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 1896 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1897 | export ac_cv_exeext |
| 1898 | break;; |
| 1899 | * ) break;; |
| 1900 | esac |
| 1901 | done |
| 1902 | else |
| 1903 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1904 | See \`config.log' for more details." >&5 |
| 1905 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1906 | See \`config.log' for more details." >&2;} |
| 1907 | { (exit 1); exit 1; }; } |
| 1908 | fi |
| 1909 | |
| 1910 | rm -f conftest$ac_cv_exeext |
| 1911 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1912 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1913 | |
| 1914 | rm -f conftest.$ac_ext |
| 1915 | EXEEXT=$ac_cv_exeext |
| 1916 | ac_exeext=$EXEEXT |
| 1917 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1918 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 1919 | if test "${ac_cv_objext+set}" = set; then |
| 1920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1921 | else |
| 1922 | cat >conftest.$ac_ext <<_ACEOF |
| 1923 | /* confdefs.h. */ |
| 1924 | _ACEOF |
| 1925 | cat confdefs.h >>conftest.$ac_ext |
| 1926 | cat >>conftest.$ac_ext <<_ACEOF |
| 1927 | /* end confdefs.h. */ |
| 1928 | |
| 1929 | int |
| 1930 | main () |
| 1931 | { |
| 1932 | |
| 1933 | ; |
| 1934 | return 0; |
| 1935 | } |
| 1936 | _ACEOF |
| 1937 | rm -f conftest.o conftest.obj |
| 1938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1939 | (eval $ac_compile) 2>&5 |
| 1940 | ac_status=$? |
| 1941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1942 | (exit $ac_status); }; then |
| 1943 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1944 | case $ac_file in |
| 1945 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 1946 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1947 | break;; |
| 1948 | esac |
| 1949 | done |
| 1950 | else |
| 1951 | echo "$as_me: failed program was:" >&5 |
| 1952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1953 | |
| 1954 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1955 | See \`config.log' for more details." >&5 |
| 1956 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1957 | See \`config.log' for more details." >&2;} |
| 1958 | { (exit 1); exit 1; }; } |
| 1959 | fi |
| 1960 | |
| 1961 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1962 | fi |
| 1963 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 1964 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1965 | OBJEXT=$ac_cv_objext |
| 1966 | ac_objext=$OBJEXT |
| 1967 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 1968 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1969 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1971 | else |
| 1972 | cat >conftest.$ac_ext <<_ACEOF |
| 1973 | /* confdefs.h. */ |
| 1974 | _ACEOF |
| 1975 | cat confdefs.h >>conftest.$ac_ext |
| 1976 | cat >>conftest.$ac_ext <<_ACEOF |
| 1977 | /* end confdefs.h. */ |
| 1978 | |
| 1979 | int |
| 1980 | main () |
| 1981 | { |
| 1982 | #ifndef __GNUC__ |
| 1983 | choke me |
| 1984 | #endif |
| 1985 | |
| 1986 | ; |
| 1987 | return 0; |
| 1988 | } |
| 1989 | _ACEOF |
| 1990 | rm -f conftest.$ac_objext |
| 1991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1992 | (eval $ac_compile) 2>conftest.er1 |
| 1993 | ac_status=$? |
| 1994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 1995 | rm -f conftest.er1 |
| 1996 | cat conftest.err >&5 |
| 1997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1998 | (exit $ac_status); } && |
| 1999 | { ac_try='test -z "$ac_c_werror_flag" |
| 2000 | || test ! -s conftest.err' |
| 2001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2002 | (eval $ac_try) 2>&5 |
| 2003 | ac_status=$? |
| 2004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2005 | (exit $ac_status); }; } && |
| 2006 | { ac_try='test -s conftest.$ac_objext' |
| 2007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2008 | (eval $ac_try) 2>&5 |
| 2009 | ac_status=$? |
| 2010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2011 | (exit $ac_status); }; }; then |
| 2012 | ac_compiler_gnu=yes |
| 2013 | else |
| 2014 | echo "$as_me: failed program was:" >&5 |
| 2015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2016 | |
| 2017 | ac_compiler_gnu=no |
| 2018 | fi |
| 2019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2020 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2021 | |
| 2022 | fi |
| 2023 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2024 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2025 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2026 | ac_test_CFLAGS=${CFLAGS+set} |
| 2027 | ac_save_CFLAGS=$CFLAGS |
| 2028 | CFLAGS="-g" |
| 2029 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2030 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2031 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2033 | else |
| 2034 | cat >conftest.$ac_ext <<_ACEOF |
| 2035 | /* confdefs.h. */ |
| 2036 | _ACEOF |
| 2037 | cat confdefs.h >>conftest.$ac_ext |
| 2038 | cat >>conftest.$ac_ext <<_ACEOF |
| 2039 | /* end confdefs.h. */ |
| 2040 | |
| 2041 | int |
| 2042 | main () |
| 2043 | { |
| 2044 | |
| 2045 | ; |
| 2046 | return 0; |
| 2047 | } |
| 2048 | _ACEOF |
| 2049 | rm -f conftest.$ac_objext |
| 2050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2051 | (eval $ac_compile) 2>conftest.er1 |
| 2052 | ac_status=$? |
| 2053 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2054 | rm -f conftest.er1 |
| 2055 | cat conftest.err >&5 |
| 2056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2057 | (exit $ac_status); } && |
| 2058 | { ac_try='test -z "$ac_c_werror_flag" |
| 2059 | || test ! -s conftest.err' |
| 2060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2061 | (eval $ac_try) 2>&5 |
| 2062 | ac_status=$? |
| 2063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2064 | (exit $ac_status); }; } && |
| 2065 | { ac_try='test -s conftest.$ac_objext' |
| 2066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2067 | (eval $ac_try) 2>&5 |
| 2068 | ac_status=$? |
| 2069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2070 | (exit $ac_status); }; }; then |
| 2071 | ac_cv_prog_cc_g=yes |
| 2072 | else |
| 2073 | echo "$as_me: failed program was:" >&5 |
| 2074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2075 | |
| 2076 | ac_cv_prog_cc_g=no |
| 2077 | fi |
| 2078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2079 | fi |
| 2080 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2081 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2082 | if test "$ac_test_CFLAGS" = set; then |
| 2083 | CFLAGS=$ac_save_CFLAGS |
| 2084 | elif test $ac_cv_prog_cc_g = yes; then |
| 2085 | if test "$GCC" = yes; then |
| 2086 | CFLAGS="-g -O2" |
| 2087 | else |
| 2088 | CFLAGS="-g" |
| 2089 | fi |
| 2090 | else |
| 2091 | if test "$GCC" = yes; then |
| 2092 | CFLAGS="-O2" |
| 2093 | else |
| 2094 | CFLAGS= |
| 2095 | fi |
| 2096 | fi |
| 2097 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2098 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2099 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2101 | else |
| 2102 | ac_cv_prog_cc_stdc=no |
| 2103 | ac_save_CC=$CC |
| 2104 | cat >conftest.$ac_ext <<_ACEOF |
| 2105 | /* confdefs.h. */ |
| 2106 | _ACEOF |
| 2107 | cat confdefs.h >>conftest.$ac_ext |
| 2108 | cat >>conftest.$ac_ext <<_ACEOF |
| 2109 | /* end confdefs.h. */ |
| 2110 | #include <stdarg.h> |
| 2111 | #include <stdio.h> |
| 2112 | #include <sys/types.h> |
| 2113 | #include <sys/stat.h> |
| 2114 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2115 | struct buf { int x; }; |
| 2116 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2117 | static char *e (p, i) |
| 2118 | char **p; |
| 2119 | int i; |
| 2120 | { |
| 2121 | return p[i]; |
| 2122 | } |
| 2123 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2124 | { |
| 2125 | char *s; |
| 2126 | va_list v; |
| 2127 | va_start (v,p); |
| 2128 | s = g (p, va_arg (v,int)); |
| 2129 | va_end (v); |
| 2130 | return s; |
| 2131 | } |
| 2132 | |
| 2133 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2134 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2135 | These don't provoke an error unfortunately, instead are silently treated |
| 2136 | as 'x'. The following induces an error, until -std1 is added to get |
| 2137 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2138 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2139 | that's true only with -std1. */ |
| 2140 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2141 | |
| 2142 | int test (int i, double x); |
| 2143 | struct s1 {int (*f) (int a);}; |
| 2144 | struct s2 {int (*f) (double a);}; |
| 2145 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2146 | int argc; |
| 2147 | char **argv; |
| 2148 | int |
| 2149 | main () |
| 2150 | { |
| 2151 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2152 | ; |
| 2153 | return 0; |
| 2154 | } |
| 2155 | _ACEOF |
| 2156 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2157 | # breaks some systems' header files. |
| 2158 | # AIX -qlanglvl=ansi |
| 2159 | # Ultrix and OSF/1 -std1 |
| 2160 | # HP-UX 10.20 and later -Ae |
| 2161 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2162 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2163 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2164 | do |
| 2165 | CC="$ac_save_CC $ac_arg" |
| 2166 | rm -f conftest.$ac_objext |
| 2167 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2168 | (eval $ac_compile) 2>conftest.er1 |
| 2169 | ac_status=$? |
| 2170 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2171 | rm -f conftest.er1 |
| 2172 | cat conftest.err >&5 |
| 2173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2174 | (exit $ac_status); } && |
| 2175 | { ac_try='test -z "$ac_c_werror_flag" |
| 2176 | || test ! -s conftest.err' |
| 2177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2178 | (eval $ac_try) 2>&5 |
| 2179 | ac_status=$? |
| 2180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2181 | (exit $ac_status); }; } && |
| 2182 | { ac_try='test -s conftest.$ac_objext' |
| 2183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2184 | (eval $ac_try) 2>&5 |
| 2185 | ac_status=$? |
| 2186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2187 | (exit $ac_status); }; }; then |
| 2188 | ac_cv_prog_cc_stdc=$ac_arg |
| 2189 | break |
| 2190 | else |
| 2191 | echo "$as_me: failed program was:" >&5 |
| 2192 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2193 | |
| 2194 | fi |
| 2195 | rm -f conftest.err conftest.$ac_objext |
| 2196 | done |
| 2197 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2198 | CC=$ac_save_CC |
| 2199 | |
| 2200 | fi |
| 2201 | |
| 2202 | case "x$ac_cv_prog_cc_stdc" in |
| 2203 | x|xno) |
| 2204 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2205 | echo "${ECHO_T}none needed" >&6 ;; |
| 2206 | *) |
| 2207 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2208 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2209 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2210 | esac |
| 2211 | |
| 2212 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2213 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2214 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2215 | # the declaration of exit, since it's the most demanding environment. |
| 2216 | cat >conftest.$ac_ext <<_ACEOF |
| 2217 | #ifndef __cplusplus |
| 2218 | choke me |
| 2219 | #endif |
| 2220 | _ACEOF |
| 2221 | rm -f conftest.$ac_objext |
| 2222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2223 | (eval $ac_compile) 2>conftest.er1 |
| 2224 | ac_status=$? |
| 2225 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2226 | rm -f conftest.er1 |
| 2227 | cat conftest.err >&5 |
| 2228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2229 | (exit $ac_status); } && |
| 2230 | { ac_try='test -z "$ac_c_werror_flag" |
| 2231 | || test ! -s conftest.err' |
| 2232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2233 | (eval $ac_try) 2>&5 |
| 2234 | ac_status=$? |
| 2235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2236 | (exit $ac_status); }; } && |
| 2237 | { ac_try='test -s conftest.$ac_objext' |
| 2238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2239 | (eval $ac_try) 2>&5 |
| 2240 | ac_status=$? |
| 2241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2242 | (exit $ac_status); }; }; then |
| 2243 | for ac_declaration in \ |
| 2244 | '' \ |
| 2245 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2246 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2247 | 'extern "C" void exit (int) throw ();' \ |
| 2248 | 'extern "C" void exit (int);' \ |
| 2249 | 'void exit (int);' |
| 2250 | do |
| 2251 | cat >conftest.$ac_ext <<_ACEOF |
| 2252 | /* confdefs.h. */ |
| 2253 | _ACEOF |
| 2254 | cat confdefs.h >>conftest.$ac_ext |
| 2255 | cat >>conftest.$ac_ext <<_ACEOF |
| 2256 | /* end confdefs.h. */ |
| 2257 | $ac_declaration |
| 2258 | #include <stdlib.h> |
| 2259 | int |
| 2260 | main () |
| 2261 | { |
| 2262 | exit (42); |
| 2263 | ; |
| 2264 | return 0; |
| 2265 | } |
| 2266 | _ACEOF |
| 2267 | rm -f conftest.$ac_objext |
| 2268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2269 | (eval $ac_compile) 2>conftest.er1 |
| 2270 | ac_status=$? |
| 2271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2272 | rm -f conftest.er1 |
| 2273 | cat conftest.err >&5 |
| 2274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2275 | (exit $ac_status); } && |
| 2276 | { ac_try='test -z "$ac_c_werror_flag" |
| 2277 | || test ! -s conftest.err' |
| 2278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2279 | (eval $ac_try) 2>&5 |
| 2280 | ac_status=$? |
| 2281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2282 | (exit $ac_status); }; } && |
| 2283 | { ac_try='test -s conftest.$ac_objext' |
| 2284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2285 | (eval $ac_try) 2>&5 |
| 2286 | ac_status=$? |
| 2287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2288 | (exit $ac_status); }; }; then |
| 2289 | : |
| 2290 | else |
| 2291 | echo "$as_me: failed program was:" >&5 |
| 2292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2293 | |
| 2294 | continue |
| 2295 | fi |
| 2296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2297 | cat >conftest.$ac_ext <<_ACEOF |
| 2298 | /* confdefs.h. */ |
| 2299 | _ACEOF |
| 2300 | cat confdefs.h >>conftest.$ac_ext |
| 2301 | cat >>conftest.$ac_ext <<_ACEOF |
| 2302 | /* end confdefs.h. */ |
| 2303 | $ac_declaration |
| 2304 | int |
| 2305 | main () |
| 2306 | { |
| 2307 | exit (42); |
| 2308 | ; |
| 2309 | return 0; |
| 2310 | } |
| 2311 | _ACEOF |
| 2312 | rm -f conftest.$ac_objext |
| 2313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2314 | (eval $ac_compile) 2>conftest.er1 |
| 2315 | ac_status=$? |
| 2316 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2317 | rm -f conftest.er1 |
| 2318 | cat conftest.err >&5 |
| 2319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2320 | (exit $ac_status); } && |
| 2321 | { ac_try='test -z "$ac_c_werror_flag" |
| 2322 | || test ! -s conftest.err' |
| 2323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2324 | (eval $ac_try) 2>&5 |
| 2325 | ac_status=$? |
| 2326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2327 | (exit $ac_status); }; } && |
| 2328 | { ac_try='test -s conftest.$ac_objext' |
| 2329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2330 | (eval $ac_try) 2>&5 |
| 2331 | ac_status=$? |
| 2332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2333 | (exit $ac_status); }; }; then |
| 2334 | break |
| 2335 | else |
| 2336 | echo "$as_me: failed program was:" >&5 |
| 2337 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2338 | |
| 2339 | fi |
| 2340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2341 | done |
| 2342 | rm -f conftest* |
| 2343 | if test -n "$ac_declaration"; then |
| 2344 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2345 | echo $ac_declaration >>confdefs.h |
| 2346 | echo '#endif' >>confdefs.h |
| 2347 | fi |
| 2348 | |
| 2349 | else |
| 2350 | echo "$as_me: failed program was:" >&5 |
| 2351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2352 | |
| 2353 | fi |
| 2354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2355 | ac_ext=c |
| 2356 | ac_cpp='$CPP $CPPFLAGS' |
| 2357 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2358 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2359 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2360 | |
| 2361 | |
| 2362 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
| 2363 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 |
| 2364 | if test "${ac_cv_search_strerror+set}" = set; then |
| 2365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2366 | else |
| 2367 | ac_func_search_save_LIBS=$LIBS |
| 2368 | ac_cv_search_strerror=no |
| 2369 | cat >conftest.$ac_ext <<_ACEOF |
| 2370 | /* confdefs.h. */ |
| 2371 | _ACEOF |
| 2372 | cat confdefs.h >>conftest.$ac_ext |
| 2373 | cat >>conftest.$ac_ext <<_ACEOF |
| 2374 | /* end confdefs.h. */ |
| 2375 | |
| 2376 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2377 | #ifdef __cplusplus |
| 2378 | extern "C" |
| 2379 | #endif |
| 2380 | /* We use char because int might match the return type of a gcc2 |
| 2381 | builtin and then its argument prototype would still apply. */ |
| 2382 | char strerror (); |
| 2383 | int |
| 2384 | main () |
| 2385 | { |
| 2386 | strerror (); |
| 2387 | ; |
| 2388 | return 0; |
| 2389 | } |
| 2390 | _ACEOF |
| 2391 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2392 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2393 | (eval $ac_link) 2>conftest.er1 |
| 2394 | ac_status=$? |
| 2395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2396 | rm -f conftest.er1 |
| 2397 | cat conftest.err >&5 |
| 2398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2399 | (exit $ac_status); } && |
| 2400 | { ac_try='test -z "$ac_c_werror_flag" |
| 2401 | || test ! -s conftest.err' |
| 2402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2403 | (eval $ac_try) 2>&5 |
| 2404 | ac_status=$? |
| 2405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2406 | (exit $ac_status); }; } && |
| 2407 | { ac_try='test -s conftest$ac_exeext' |
| 2408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2409 | (eval $ac_try) 2>&5 |
| 2410 | ac_status=$? |
| 2411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2412 | (exit $ac_status); }; }; then |
| 2413 | ac_cv_search_strerror="none required" |
| 2414 | else |
| 2415 | echo "$as_me: failed program was:" >&5 |
| 2416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2417 | |
| 2418 | fi |
| 2419 | rm -f conftest.err conftest.$ac_objext \ |
| 2420 | conftest$ac_exeext conftest.$ac_ext |
| 2421 | if test "$ac_cv_search_strerror" = no; then |
| 2422 | for ac_lib in cposix; do |
| 2423 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 2424 | cat >conftest.$ac_ext <<_ACEOF |
| 2425 | /* confdefs.h. */ |
| 2426 | _ACEOF |
| 2427 | cat confdefs.h >>conftest.$ac_ext |
| 2428 | cat >>conftest.$ac_ext <<_ACEOF |
| 2429 | /* end confdefs.h. */ |
| 2430 | |
| 2431 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2432 | #ifdef __cplusplus |
| 2433 | extern "C" |
| 2434 | #endif |
| 2435 | /* We use char because int might match the return type of a gcc2 |
| 2436 | builtin and then its argument prototype would still apply. */ |
| 2437 | char strerror (); |
| 2438 | int |
| 2439 | main () |
| 2440 | { |
| 2441 | strerror (); |
| 2442 | ; |
| 2443 | return 0; |
| 2444 | } |
| 2445 | _ACEOF |
| 2446 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2447 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2448 | (eval $ac_link) 2>conftest.er1 |
| 2449 | ac_status=$? |
| 2450 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2451 | rm -f conftest.er1 |
| 2452 | cat conftest.err >&5 |
| 2453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2454 | (exit $ac_status); } && |
| 2455 | { ac_try='test -z "$ac_c_werror_flag" |
| 2456 | || test ! -s conftest.err' |
| 2457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2458 | (eval $ac_try) 2>&5 |
| 2459 | ac_status=$? |
| 2460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2461 | (exit $ac_status); }; } && |
| 2462 | { ac_try='test -s conftest$ac_exeext' |
| 2463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2464 | (eval $ac_try) 2>&5 |
| 2465 | ac_status=$? |
| 2466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2467 | (exit $ac_status); }; }; then |
| 2468 | ac_cv_search_strerror="-l$ac_lib" |
| 2469 | break |
| 2470 | else |
| 2471 | echo "$as_me: failed program was:" >&5 |
| 2472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2473 | |
| 2474 | fi |
| 2475 | rm -f conftest.err conftest.$ac_objext \ |
| 2476 | conftest$ac_exeext conftest.$ac_ext |
| 2477 | done |
| 2478 | fi |
| 2479 | LIBS=$ac_func_search_save_LIBS |
| 2480 | fi |
| 2481 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
| 2482 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 |
| 2483 | if test "$ac_cv_search_strerror" != no; then |
| 2484 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
| 2485 | |
| 2486 | fi |
| 2487 | |
| 2488 | |
| 2489 | # We currently only use the version number for the name of any shared |
| 2490 | # library. For user convenience, we always use the same version |
| 2491 | # number that BFD is using. |
| 2492 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` |
| 2493 | |
| 2494 | am__api_version="1.9" |
| 2495 | # Find a good install program. We prefer a C program (faster), |
| 2496 | # so one script is as good as another. But avoid the broken or |
| 2497 | # incompatible versions: |
| 2498 | # SysV /etc/install, /usr/sbin/install |
| 2499 | # SunOS /usr/etc/install |
| 2500 | # IRIX /sbin/install |
| 2501 | # AIX /bin/install |
| 2502 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2503 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2504 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2505 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2506 | # OS/2's system install, which has a completely different semantic |
| 2507 | # ./install, which can be erroneously created by make from ./install.sh. |
| 2508 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 2509 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 2510 | if test -z "$INSTALL"; then |
| 2511 | if test "${ac_cv_path_install+set}" = set; then |
| 2512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2513 | else |
| 2514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2515 | for as_dir in $PATH |
| 2516 | do |
| 2517 | IFS=$as_save_IFS |
| 2518 | test -z "$as_dir" && as_dir=. |
| 2519 | # Account for people who put trailing slashes in PATH elements. |
| 2520 | case $as_dir/ in |
| 2521 | ./ | .// | /cC/* | \ |
| 2522 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2523 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 2524 | /usr/ucb/* ) ;; |
| 2525 | *) |
| 2526 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2527 | # Don't use installbsd from OSF since it installs stuff as root |
| 2528 | # by default. |
| 2529 | for ac_prog in ginstall scoinst install; do |
| 2530 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2531 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 2532 | if test $ac_prog = install && |
| 2533 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2534 | # AIX install. It has an incompatible calling convention. |
| 2535 | : |
| 2536 | elif test $ac_prog = install && |
| 2537 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2538 | # program-specific install script used by HP pwplus--don't use. |
| 2539 | : |
| 2540 | else |
| 2541 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2542 | break 3 |
| 2543 | fi |
| 2544 | fi |
| 2545 | done |
| 2546 | done |
| 2547 | ;; |
| 2548 | esac |
| 2549 | done |
| 2550 | |
| 2551 | |
| 2552 | fi |
| 2553 | if test "${ac_cv_path_install+set}" = set; then |
| 2554 | INSTALL=$ac_cv_path_install |
| 2555 | else |
| 2556 | # As a last resort, use the slow shell script. We don't cache a |
| 2557 | # path for INSTALL within a source directory, because that will |
| 2558 | # break other packages using the cache if that directory is |
| 2559 | # removed, or if the path is relative. |
| 2560 | INSTALL=$ac_install_sh |
| 2561 | fi |
| 2562 | fi |
| 2563 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 2564 | echo "${ECHO_T}$INSTALL" >&6 |
| 2565 | |
| 2566 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2567 | # It thinks the first close brace ends the variable substitution. |
| 2568 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2569 | |
| 2570 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2571 | |
| 2572 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2573 | |
| 2574 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 2575 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
| 2576 | # Just in case |
| 2577 | sleep 1 |
| 2578 | echo timestamp > conftest.file |
| 2579 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2580 | # arguments. Must try -L first in case configure is actually a |
| 2581 | # symlink; some systems play weird games with the mod time of symlinks |
| 2582 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2583 | # directory). |
| 2584 | if ( |
| 2585 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 2586 | if test "$*" = "X"; then |
| 2587 | # -L didn't work. |
| 2588 | set X `ls -t $srcdir/configure conftest.file` |
| 2589 | fi |
| 2590 | rm -f conftest.file |
| 2591 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2592 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2593 | |
| 2594 | # If neither matched, then we have a broken ls. This can happen |
| 2595 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2596 | # broken ls alias from the environment. This has actually |
| 2597 | # happened. Such a system could not be considered "sane". |
| 2598 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 2599 | alias in your environment" >&5 |
| 2600 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 2601 | alias in your environment" >&2;} |
| 2602 | { (exit 1); exit 1; }; } |
| 2603 | fi |
| 2604 | |
| 2605 | test "$2" = conftest.file |
| 2606 | ) |
| 2607 | then |
| 2608 | # Ok. |
| 2609 | : |
| 2610 | else |
| 2611 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 2612 | Check your system clock" >&5 |
| 2613 | echo "$as_me: error: newly created file is older than distributed files! |
| 2614 | Check your system clock" >&2;} |
| 2615 | { (exit 1); exit 1; }; } |
| 2616 | fi |
| 2617 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2618 | echo "${ECHO_T}yes" >&6 |
| 2619 | test "$program_prefix" != NONE && |
| 2620 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
| 2621 | # Use a double $ so make ignores it. |
| 2622 | test "$program_suffix" != NONE && |
| 2623 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 2624 | # Double any \ or $. echo might interpret backslashes. |
| 2625 | # By default was `s,x,x', remove it if useless. |
| 2626 | cat <<\_ACEOF >conftest.sed |
| 2627 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 2628 | _ACEOF |
| 2629 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 2630 | rm conftest.sed |
| 2631 | |
| 2632 | # expand $ac_aux_dir to an absolute path |
| 2633 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2634 | |
| 2635 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 2636 | # Use eval to expand $SHELL |
| 2637 | if eval "$MISSING --run true"; then |
| 2638 | am_missing_run="$MISSING --run " |
| 2639 | else |
| 2640 | am_missing_run= |
| 2641 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 2642 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 2643 | fi |
| 2644 | |
| 2645 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
| 2646 | # We used to keeping the `.' as first argument, in order to |
| 2647 | # allow $(mkdir_p) to be used without argument. As in |
| 2648 | # $(mkdir_p) $(somedir) |
| 2649 | # where $(somedir) is conditionally defined. However this is wrong |
| 2650 | # for two reasons: |
| 2651 | # 1. if the package is installed by a user who cannot write `.' |
| 2652 | # make install will fail, |
| 2653 | # 2. the above comment should most certainly read |
| 2654 | # $(mkdir_p) $(DESTDIR)$(somedir) |
| 2655 | # so it does not work when $(somedir) is undefined and |
| 2656 | # $(DESTDIR) is not. |
| 2657 | # To support the latter case, we have to write |
| 2658 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
| 2659 | # so the `.' trick is pointless. |
| 2660 | mkdir_p='mkdir -p --' |
| 2661 | else |
| 2662 | # On NextStep and OpenStep, the `mkdir' command does not |
| 2663 | # recognize any option. It will interpret all options as |
| 2664 | # directories to create, and then abort because `.' already |
| 2665 | # exists. |
| 2666 | for d in ./-p ./--version; |
| 2667 | do |
| 2668 | test -d $d && rmdir $d |
| 2669 | done |
| 2670 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
| 2671 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
| 2672 | mkdir_p='$(mkinstalldirs)' |
| 2673 | else |
| 2674 | mkdir_p='$(install_sh) -d' |
| 2675 | fi |
| 2676 | fi |
| 2677 | |
| 2678 | for ac_prog in gawk mawk nawk awk |
| 2679 | do |
| 2680 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2681 | set dummy $ac_prog; ac_word=$2 |
| 2682 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2683 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2684 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 2685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2686 | else |
| 2687 | if test -n "$AWK"; then |
| 2688 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2689 | else |
| 2690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2691 | for as_dir in $PATH |
| 2692 | do |
| 2693 | IFS=$as_save_IFS |
| 2694 | test -z "$as_dir" && as_dir=. |
| 2695 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2696 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2697 | ac_cv_prog_AWK="$ac_prog" |
| 2698 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2699 | break 2 |
| 2700 | fi |
| 2701 | done |
| 2702 | done |
| 2703 | |
| 2704 | fi |
| 2705 | fi |
| 2706 | AWK=$ac_cv_prog_AWK |
| 2707 | if test -n "$AWK"; then |
| 2708 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 2709 | echo "${ECHO_T}$AWK" >&6 |
| 2710 | else |
| 2711 | echo "$as_me:$LINENO: result: no" >&5 |
| 2712 | echo "${ECHO_T}no" >&6 |
| 2713 | fi |
| 2714 | |
| 2715 | test -n "$AWK" && break |
| 2716 | done |
| 2717 | |
| 2718 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2719 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 2720 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
| 2721 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 2722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2723 | else |
| 2724 | cat >conftest.make <<\_ACEOF |
| 2725 | all: |
| 2726 | @echo 'ac_maketemp="$(MAKE)"' |
| 2727 | _ACEOF |
| 2728 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 2729 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 2730 | if test -n "$ac_maketemp"; then |
| 2731 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 2732 | else |
| 2733 | eval ac_cv_prog_make_${ac_make}_set=no |
| 2734 | fi |
| 2735 | rm -f conftest.make |
| 2736 | fi |
| 2737 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 2738 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2739 | echo "${ECHO_T}yes" >&6 |
| 2740 | SET_MAKE= |
| 2741 | else |
| 2742 | echo "$as_me:$LINENO: result: no" >&5 |
| 2743 | echo "${ECHO_T}no" >&6 |
| 2744 | SET_MAKE="MAKE=${MAKE-make}" |
| 2745 | fi |
| 2746 | |
| 2747 | rm -rf .tst 2>/dev/null |
| 2748 | mkdir .tst 2>/dev/null |
| 2749 | if test -d .tst; then |
| 2750 | am__leading_dot=. |
| 2751 | else |
| 2752 | am__leading_dot=_ |
| 2753 | fi |
| 2754 | rmdir .tst 2>/dev/null |
| 2755 | |
| 2756 | DEPDIR="${am__leading_dot}deps" |
| 2757 | |
| 2758 | ac_config_commands="$ac_config_commands depfiles" |
| 2759 | |
| 2760 | |
| 2761 | am_make=${MAKE-make} |
| 2762 | cat > confinc << 'END' |
| 2763 | am__doit: |
| 2764 | @echo done |
| 2765 | .PHONY: am__doit |
| 2766 | END |
| 2767 | # If we don't find an include directive, just comment out the code. |
| 2768 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 2769 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
| 2770 | am__include="#" |
| 2771 | am__quote= |
| 2772 | _am_result=none |
| 2773 | # First try GNU make style include. |
| 2774 | echo "include confinc" > confmf |
| 2775 | # We grep out `Entering directory' and `Leaving directory' |
| 2776 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 2777 | # In particular we don't look at `^make:' because GNU make might |
| 2778 | # be invoked under some other name (usually "gmake"), in which |
| 2779 | # case it prints its new name instead of `make'. |
| 2780 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
| 2781 | am__include=include |
| 2782 | am__quote= |
| 2783 | _am_result=GNU |
| 2784 | fi |
| 2785 | # Now try BSD make style include. |
| 2786 | if test "$am__include" = "#"; then |
| 2787 | echo '.include "confinc"' > confmf |
| 2788 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 2789 | am__include=.include |
| 2790 | am__quote="\"" |
| 2791 | _am_result=BSD |
| 2792 | fi |
| 2793 | fi |
| 2794 | |
| 2795 | |
| 2796 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 2797 | echo "${ECHO_T}$_am_result" >&6 |
| 2798 | rm -f confinc confmf |
| 2799 | |
| 2800 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| 2801 | if test "${enable_dependency_tracking+set}" = set; then |
| 2802 | enableval="$enable_dependency_tracking" |
| 2803 | |
| 2804 | fi; |
| 2805 | if test "x$enable_dependency_tracking" != xno; then |
| 2806 | am_depcomp="$ac_aux_dir/depcomp" |
| 2807 | AMDEPBACKSLASH='\' |
| 2808 | fi |
| 2809 | |
| 2810 | |
| 2811 | if test "x$enable_dependency_tracking" != xno; then |
| 2812 | AMDEP_TRUE= |
| 2813 | AMDEP_FALSE='#' |
| 2814 | else |
| 2815 | AMDEP_TRUE='#' |
| 2816 | AMDEP_FALSE= |
| 2817 | fi |
| 2818 | |
| 2819 | |
| 2820 | |
| 2821 | # test to see if srcdir already configured |
| 2822 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
| 2823 | test -f $srcdir/config.status; then |
| 2824 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 2825 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 2826 | { (exit 1); exit 1; }; } |
| 2827 | fi |
| 2828 | |
| 2829 | # test whether we have cygpath |
| 2830 | if test -z "$CYGPATH_W"; then |
| 2831 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2832 | CYGPATH_W='cygpath -w' |
| 2833 | else |
| 2834 | CYGPATH_W=echo |
| 2835 | fi |
| 2836 | fi |
| 2837 | |
| 2838 | |
| 2839 | # Define the identity of the package. |
| 2840 | PACKAGE=opcodes |
| 2841 | VERSION=${BFD_VERSION} |
| 2842 | |
| 2843 | |
| 2844 | cat >>confdefs.h <<_ACEOF |
| 2845 | #define PACKAGE "$PACKAGE" |
| 2846 | _ACEOF |
| 2847 | |
| 2848 | |
| 2849 | cat >>confdefs.h <<_ACEOF |
| 2850 | #define VERSION "$VERSION" |
| 2851 | _ACEOF |
| 2852 | |
| 2853 | # Some tools Automake needs. |
| 2854 | |
| 2855 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2856 | |
| 2857 | |
| 2858 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2859 | |
| 2860 | |
| 2861 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2862 | |
| 2863 | |
| 2864 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2865 | |
| 2866 | |
| 2867 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2868 | |
| 2869 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 2870 | |
| 2871 | # Installed binaries are usually stripped using `strip' when the user |
| 2872 | # run `make install-strip'. However `strip' might not be the right |
| 2873 | # tool to use in cross-compilation environments, therefore Automake |
| 2874 | # will honor the `STRIP' environment variable to overrule this program. |
| 2875 | if test "$cross_compiling" != no; then |
| 2876 | if test -n "$ac_tool_prefix"; then |
| 2877 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2878 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2879 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2880 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2881 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 2882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2883 | else |
| 2884 | if test -n "$STRIP"; then |
| 2885 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2886 | else |
| 2887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2888 | for as_dir in $PATH |
| 2889 | do |
| 2890 | IFS=$as_save_IFS |
| 2891 | test -z "$as_dir" && as_dir=. |
| 2892 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2893 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2894 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2895 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2896 | break 2 |
| 2897 | fi |
| 2898 | done |
| 2899 | done |
| 2900 | |
| 2901 | fi |
| 2902 | fi |
| 2903 | STRIP=$ac_cv_prog_STRIP |
| 2904 | if test -n "$STRIP"; then |
| 2905 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 2906 | echo "${ECHO_T}$STRIP" >&6 |
| 2907 | else |
| 2908 | echo "$as_me:$LINENO: result: no" >&5 |
| 2909 | echo "${ECHO_T}no" >&6 |
| 2910 | fi |
| 2911 | |
| 2912 | fi |
| 2913 | if test -z "$ac_cv_prog_STRIP"; then |
| 2914 | ac_ct_STRIP=$STRIP |
| 2915 | # Extract the first word of "strip", so it can be a program name with args. |
| 2916 | set dummy strip; ac_word=$2 |
| 2917 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2918 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2919 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 2920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2921 | else |
| 2922 | if test -n "$ac_ct_STRIP"; then |
| 2923 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2924 | else |
| 2925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2926 | for as_dir in $PATH |
| 2927 | do |
| 2928 | IFS=$as_save_IFS |
| 2929 | test -z "$as_dir" && as_dir=. |
| 2930 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2931 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2932 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2933 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2934 | break 2 |
| 2935 | fi |
| 2936 | done |
| 2937 | done |
| 2938 | |
| 2939 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 2940 | fi |
| 2941 | fi |
| 2942 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2943 | if test -n "$ac_ct_STRIP"; then |
| 2944 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 2945 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 2946 | else |
| 2947 | echo "$as_me:$LINENO: result: no" >&5 |
| 2948 | echo "${ECHO_T}no" >&6 |
| 2949 | fi |
| 2950 | |
| 2951 | STRIP=$ac_ct_STRIP |
| 2952 | else |
| 2953 | STRIP="$ac_cv_prog_STRIP" |
| 2954 | fi |
| 2955 | |
| 2956 | fi |
| 2957 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 2958 | |
| 2959 | # We need awk for the "check" target. The system "awk" is bad on |
| 2960 | # some platforms. |
| 2961 | # Always define AMTAR for backward compatibility. |
| 2962 | |
| 2963 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 2964 | |
| 2965 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 2966 | |
| 2967 | |
| 2968 | |
| 2969 | |
| 2970 | depcc="$CC" am_compiler_list= |
| 2971 | |
| 2972 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 2973 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 2974 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 2975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2976 | else |
| 2977 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 2978 | # We make a subdir and do the tests there. Otherwise we can end up |
| 2979 | # making bogus files that we don't know about and never remove. For |
| 2980 | # instance it was reported that on HP-UX the gcc test will end up |
| 2981 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 2982 | # in D'. |
| 2983 | mkdir conftest.dir |
| 2984 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 2985 | # using a relative directory. |
| 2986 | cp "$am_depcomp" conftest.dir |
| 2987 | cd conftest.dir |
| 2988 | # We will build objects and dependencies in a subdirectory because |
| 2989 | # it helps to detect inapplicable dependency modes. For instance |
| 2990 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 2991 | # side effect of compilation, but ICC will put the dependencies in |
| 2992 | # the current directory while Tru64 will put them in the object |
| 2993 | # directory. |
| 2994 | mkdir sub |
| 2995 | |
| 2996 | am_cv_CC_dependencies_compiler_type=none |
| 2997 | if test "$am_compiler_list" = ""; then |
| 2998 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 2999 | fi |
| 3000 | for depmode in $am_compiler_list; do |
| 3001 | # Setup a source with many dependencies, because some compilers |
| 3002 | # like to wrap large dependency lists on column 80 (with \), and |
| 3003 | # we should not choose a depcomp mode which is confused by this. |
| 3004 | # |
| 3005 | # We need to recreate these files for each test, as the compiler may |
| 3006 | # overwrite some of them when testing with obscure command lines. |
| 3007 | # This happens at least with the AIX C compiler. |
| 3008 | : > sub/conftest.c |
| 3009 | for i in 1 2 3 4 5 6; do |
| 3010 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3011 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3012 | # Solaris 8's {/usr,}/bin/sh. |
| 3013 | touch sub/conftst$i.h |
| 3014 | done |
| 3015 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3016 | |
| 3017 | case $depmode in |
| 3018 | nosideeffect) |
| 3019 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3020 | # only be used when explicitly requested |
| 3021 | if test "x$enable_dependency_tracking" = xyes; then |
| 3022 | continue |
| 3023 | else |
| 3024 | break |
| 3025 | fi |
| 3026 | ;; |
| 3027 | none) break ;; |
| 3028 | esac |
| 3029 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3030 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3031 | # handle `-M -o', and we need to detect this. |
| 3032 | if depmode=$depmode \ |
| 3033 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 3034 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3035 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 3036 | >/dev/null 2>conftest.err && |
| 3037 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3038 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 3039 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3040 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3041 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3042 | # that says an option was ignored or not supported. |
| 3043 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3044 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3045 | # The diagnosis changed in icc 8.0: |
| 3046 | # icc: Command line remark: option '-MP' not supported |
| 3047 | if (grep 'ignoring option' conftest.err || |
| 3048 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3049 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3050 | break |
| 3051 | fi |
| 3052 | fi |
| 3053 | done |
| 3054 | |
| 3055 | cd .. |
| 3056 | rm -rf conftest.dir |
| 3057 | else |
| 3058 | am_cv_CC_dependencies_compiler_type=none |
| 3059 | fi |
| 3060 | |
| 3061 | fi |
| 3062 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 3063 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
| 3064 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3065 | |
| 3066 | |
| 3067 | |
| 3068 | if |
| 3069 | test "x$enable_dependency_tracking" != xno \ |
| 3070 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3071 | am__fastdepCC_TRUE= |
| 3072 | am__fastdepCC_FALSE='#' |
| 3073 | else |
| 3074 | am__fastdepCC_TRUE='#' |
| 3075 | am__fastdepCC_FALSE= |
| 3076 | fi |
| 3077 | |
| 3078 | |
| 3079 | |
| 3080 | |
| 3081 | if test -n "$ac_tool_prefix"; then |
| 3082 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 3083 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 3084 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3085 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3086 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3088 | else |
| 3089 | if test -n "$AR"; then |
| 3090 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3091 | else |
| 3092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3093 | for as_dir in $PATH |
| 3094 | do |
| 3095 | IFS=$as_save_IFS |
| 3096 | test -z "$as_dir" && as_dir=. |
| 3097 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3098 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3099 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 3100 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3101 | break 2 |
| 3102 | fi |
| 3103 | done |
| 3104 | done |
| 3105 | |
| 3106 | fi |
| 3107 | fi |
| 3108 | AR=$ac_cv_prog_AR |
| 3109 | if test -n "$AR"; then |
| 3110 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3111 | echo "${ECHO_T}$AR" >&6 |
| 3112 | else |
| 3113 | echo "$as_me:$LINENO: result: no" >&5 |
| 3114 | echo "${ECHO_T}no" >&6 |
| 3115 | fi |
| 3116 | |
| 3117 | fi |
| 3118 | if test -z "$ac_cv_prog_AR"; then |
| 3119 | ac_ct_AR=$AR |
| 3120 | # Extract the first word of "ar", so it can be a program name with args. |
| 3121 | set dummy ar; ac_word=$2 |
| 3122 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3123 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3124 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 3125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3126 | else |
| 3127 | if test -n "$ac_ct_AR"; then |
| 3128 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 3129 | else |
| 3130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3131 | for as_dir in $PATH |
| 3132 | do |
| 3133 | IFS=$as_save_IFS |
| 3134 | test -z "$as_dir" && as_dir=. |
| 3135 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3136 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3137 | ac_cv_prog_ac_ct_AR="ar" |
| 3138 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3139 | break 2 |
| 3140 | fi |
| 3141 | done |
| 3142 | done |
| 3143 | |
| 3144 | fi |
| 3145 | fi |
| 3146 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 3147 | if test -n "$ac_ct_AR"; then |
| 3148 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 3149 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 3150 | else |
| 3151 | echo "$as_me:$LINENO: result: no" >&5 |
| 3152 | echo "${ECHO_T}no" >&6 |
| 3153 | fi |
| 3154 | |
| 3155 | AR=$ac_ct_AR |
| 3156 | else |
| 3157 | AR="$ac_cv_prog_AR" |
| 3158 | fi |
| 3159 | |
| 3160 | if test -n "$ac_tool_prefix"; then |
| 3161 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3162 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3163 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3164 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3165 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3167 | else |
| 3168 | if test -n "$RANLIB"; then |
| 3169 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3170 | else |
| 3171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3172 | for as_dir in $PATH |
| 3173 | do |
| 3174 | IFS=$as_save_IFS |
| 3175 | test -z "$as_dir" && as_dir=. |
| 3176 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3177 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3178 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3179 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3180 | break 2 |
| 3181 | fi |
| 3182 | done |
| 3183 | done |
| 3184 | |
| 3185 | fi |
| 3186 | fi |
| 3187 | RANLIB=$ac_cv_prog_RANLIB |
| 3188 | if test -n "$RANLIB"; then |
| 3189 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3190 | echo "${ECHO_T}$RANLIB" >&6 |
| 3191 | else |
| 3192 | echo "$as_me:$LINENO: result: no" >&5 |
| 3193 | echo "${ECHO_T}no" >&6 |
| 3194 | fi |
| 3195 | |
| 3196 | fi |
| 3197 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3198 | ac_ct_RANLIB=$RANLIB |
| 3199 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3200 | set dummy ranlib; ac_word=$2 |
| 3201 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3202 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3203 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3205 | else |
| 3206 | if test -n "$ac_ct_RANLIB"; then |
| 3207 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3208 | else |
| 3209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3210 | for as_dir in $PATH |
| 3211 | do |
| 3212 | IFS=$as_save_IFS |
| 3213 | test -z "$as_dir" && as_dir=. |
| 3214 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3215 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3216 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3217 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3218 | break 2 |
| 3219 | fi |
| 3220 | done |
| 3221 | done |
| 3222 | |
| 3223 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3224 | fi |
| 3225 | fi |
| 3226 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3227 | if test -n "$ac_ct_RANLIB"; then |
| 3228 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3229 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3230 | else |
| 3231 | echo "$as_me:$LINENO: result: no" >&5 |
| 3232 | echo "${ECHO_T}no" >&6 |
| 3233 | fi |
| 3234 | |
| 3235 | RANLIB=$ac_ct_RANLIB |
| 3236 | else |
| 3237 | RANLIB="$ac_cv_prog_RANLIB" |
| 3238 | fi |
| 3239 | |
| 3240 | |
| 3241 | # Check whether --enable-shared or --disable-shared was given. |
| 3242 | if test "${enable_shared+set}" = set; then |
| 3243 | enableval="$enable_shared" |
| 3244 | p=${PACKAGE-default} |
| 3245 | case $enableval in |
| 3246 | yes) enable_shared=yes ;; |
| 3247 | no) enable_shared=no ;; |
| 3248 | *) |
| 3249 | enable_shared=no |
| 3250 | # Look at the argument we got. We use all the common list separators. |
| 3251 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 3252 | for pkg in $enableval; do |
| 3253 | if test "X$pkg" = "X$p"; then |
| 3254 | enable_shared=yes |
| 3255 | fi |
| 3256 | done |
| 3257 | IFS="$ac_save_ifs" |
| 3258 | ;; |
| 3259 | esac |
| 3260 | else |
| 3261 | enable_shared=no |
| 3262 | fi; |
| 3263 | |
| 3264 | # Check whether --enable-static or --disable-static was given. |
| 3265 | if test "${enable_static+set}" = set; then |
| 3266 | enableval="$enable_static" |
| 3267 | p=${PACKAGE-default} |
| 3268 | case $enableval in |
| 3269 | yes) enable_static=yes ;; |
| 3270 | no) enable_static=no ;; |
| 3271 | *) |
| 3272 | enable_static=no |
| 3273 | # Look at the argument we got. We use all the common list separators. |
| 3274 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 3275 | for pkg in $enableval; do |
| 3276 | if test "X$pkg" = "X$p"; then |
| 3277 | enable_static=yes |
| 3278 | fi |
| 3279 | done |
| 3280 | IFS="$ac_save_ifs" |
| 3281 | ;; |
| 3282 | esac |
| 3283 | else |
| 3284 | enable_static=yes |
| 3285 | fi; |
| 3286 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 3287 | if test "${enable_fast_install+set}" = set; then |
| 3288 | enableval="$enable_fast_install" |
| 3289 | p=${PACKAGE-default} |
| 3290 | case $enableval in |
| 3291 | yes) enable_fast_install=yes ;; |
| 3292 | no) enable_fast_install=no ;; |
| 3293 | *) |
| 3294 | enable_fast_install=no |
| 3295 | # Look at the argument we got. We use all the common list separators. |
| 3296 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 3297 | for pkg in $enableval; do |
| 3298 | if test "X$pkg" = "X$p"; then |
| 3299 | enable_fast_install=yes |
| 3300 | fi |
| 3301 | done |
| 3302 | IFS="$ac_save_ifs" |
| 3303 | ;; |
| 3304 | esac |
| 3305 | else |
| 3306 | enable_fast_install=yes |
| 3307 | fi; |
| 3308 | |
| 3309 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 3310 | if test "${with_gnu_ld+set}" = set; then |
| 3311 | withval="$with_gnu_ld" |
| 3312 | test "$withval" = no || with_gnu_ld=yes |
| 3313 | else |
| 3314 | with_gnu_ld=no |
| 3315 | fi; |
| 3316 | ac_prog=ld |
| 3317 | if test "$GCC" = yes; then |
| 3318 | # Check if gcc -print-prog-name=ld gives a path. |
| 3319 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 3320 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
| 3321 | case $host in |
| 3322 | *-*-mingw*) |
| 3323 | # gcc leaves a trailing carriage return which upsets mingw |
| 3324 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 3325 | *) |
| 3326 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 3327 | esac |
| 3328 | case $ac_prog in |
| 3329 | # Accept absolute paths. |
| 3330 | [\\/]* | [A-Za-z]:[\\/]*) |
| 3331 | re_direlt='/[^/][^/]*/\.\./' |
| 3332 | # Canonicalize the path of ld |
| 3333 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 3334 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 3335 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 3336 | done |
| 3337 | test -z "$LD" && LD="$ac_prog" |
| 3338 | ;; |
| 3339 | "") |
| 3340 | # If it fails, then pretend we aren't using GCC. |
| 3341 | ac_prog=ld |
| 3342 | ;; |
| 3343 | *) |
| 3344 | # If it is relative, then search for the first ld in PATH. |
| 3345 | with_gnu_ld=unknown |
| 3346 | ;; |
| 3347 | esac |
| 3348 | elif test "$with_gnu_ld" = yes; then |
| 3349 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 3350 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 3351 | else |
| 3352 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 3353 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 3354 | fi |
| 3355 | if test "${lt_cv_path_LD+set}" = set; then |
| 3356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3357 | else |
| 3358 | if test -z "$LD"; then |
| 3359 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 3360 | for ac_dir in $PATH; do |
| 3361 | test -z "$ac_dir" && ac_dir=. |
| 3362 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 3363 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 3364 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 3365 | # but apparently some GNU ld's only accept -v. |
| 3366 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 3367 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
| 3368 | test "$with_gnu_ld" != no && break |
| 3369 | else |
| 3370 | test "$with_gnu_ld" != yes && break |
| 3371 | fi |
| 3372 | fi |
| 3373 | done |
| 3374 | IFS="$ac_save_ifs" |
| 3375 | else |
| 3376 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 3377 | fi |
| 3378 | fi |
| 3379 | |
| 3380 | LD="$lt_cv_path_LD" |
| 3381 | if test -n "$LD"; then |
| 3382 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 3383 | echo "${ECHO_T}$LD" >&6 |
| 3384 | else |
| 3385 | echo "$as_me:$LINENO: result: no" >&5 |
| 3386 | echo "${ECHO_T}no" >&6 |
| 3387 | fi |
| 3388 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 3389 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 3390 | { (exit 1); exit 1; }; } |
| 3391 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 3392 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 3393 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 3394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3395 | else |
| 3396 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 3397 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| 3398 | lt_cv_prog_gnu_ld=yes |
| 3399 | else |
| 3400 | lt_cv_prog_gnu_ld=no |
| 3401 | fi |
| 3402 | fi |
| 3403 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 3404 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 3405 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 3406 | |
| 3407 | |
| 3408 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 3409 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 3410 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 3411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3412 | else |
| 3413 | lt_cv_ld_reload_flag='-r' |
| 3414 | fi |
| 3415 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 3416 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 3417 | reload_flag=$lt_cv_ld_reload_flag |
| 3418 | test -n "$reload_flag" && reload_flag=" $reload_flag" |
| 3419 | |
| 3420 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 3421 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 3422 | if test "${lt_cv_path_NM+set}" = set; then |
| 3423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3424 | else |
| 3425 | if test -n "$NM"; then |
| 3426 | # Let the user override the test. |
| 3427 | lt_cv_path_NM="$NM" |
| 3428 | else |
| 3429 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 3430 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 3431 | test -z "$ac_dir" && ac_dir=. |
| 3432 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
| 3433 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
| 3434 | # Check to see if the nm accepts a BSD-compat flag. |
| 3435 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 3436 | # nm: unknown option "B" ignored |
| 3437 | # Tru64's nm complains that /dev/null is an invalid object file |
| 3438 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
| 3439 | lt_cv_path_NM="$tmp_nm -B" |
| 3440 | break |
| 3441 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
| 3442 | lt_cv_path_NM="$tmp_nm -p" |
| 3443 | break |
| 3444 | else |
| 3445 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 3446 | continue # so that we can try to find one that supports BSD flags |
| 3447 | fi |
| 3448 | fi |
| 3449 | done |
| 3450 | IFS="$ac_save_ifs" |
| 3451 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 3452 | fi |
| 3453 | fi |
| 3454 | |
| 3455 | NM="$lt_cv_path_NM" |
| 3456 | echo "$as_me:$LINENO: result: $NM" >&5 |
| 3457 | echo "${ECHO_T}$NM" >&6 |
| 3458 | |
| 3459 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 3460 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 3461 | LN_S=$as_ln_s |
| 3462 | if test "$LN_S" = "ln -s"; then |
| 3463 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3464 | echo "${ECHO_T}yes" >&6 |
| 3465 | else |
| 3466 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 3467 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 3468 | fi |
| 3469 | |
| 3470 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
| 3471 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 |
| 3472 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 3473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3474 | else |
| 3475 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 3476 | lt_cv_file_magic_test_file= |
| 3477 | lt_cv_deplibs_check_method='unknown' |
| 3478 | # Need to set the preceding variable on all platforms that support |
| 3479 | # interlibrary dependencies. |
| 3480 | # 'none' -- dependencies not supported. |
| 3481 | # `unknown' -- same as none, but documents that we really don't know. |
| 3482 | # 'pass_all' -- all dependencies passed with no checks. |
| 3483 | # 'test_compile' -- check by making test program. |
| 3484 | # 'file_magic [regex]' -- check by looking for files in library path |
| 3485 | # which responds to the $file_magic_cmd with a given egrep regex. |
| 3486 | # If you have `file' or equivalent on your system and you're not sure |
| 3487 | # whether `pass_all' will *always* work, you probably want this one. |
| 3488 | |
| 3489 | case $host_os in |
| 3490 | aix*) |
| 3491 | lt_cv_deplibs_check_method=pass_all |
| 3492 | ;; |
| 3493 | |
| 3494 | beos*) |
| 3495 | lt_cv_deplibs_check_method=pass_all |
| 3496 | ;; |
| 3497 | |
| 3498 | bsdi4*) |
| 3499 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 3500 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3501 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3502 | ;; |
| 3503 | |
| 3504 | cygwin* | mingw* |pw32*) |
| 3505 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 3506 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 3507 | ;; |
| 3508 | |
| 3509 | darwin* | rhapsody*) |
| 3510 | # this will be overwritten by pass_all, but leave it in just in case |
| 3511 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| 3512 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3513 | case "$host_os" in |
| 3514 | rhapsody* | darwin1.012) |
| 3515 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' |
| 3516 | ;; |
| 3517 | *) # Darwin 1.3 on |
| 3518 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| 3519 | ;; |
| 3520 | esac |
| 3521 | lt_cv_deplibs_check_method=pass_all |
| 3522 | ;; |
| 3523 | |
| 3524 | freebsd* | kfreebsd*-gnu) |
| 3525 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3526 | case $host_cpu in |
| 3527 | i*86 ) |
| 3528 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 3529 | # Let's accept both of them until this is cleared up. |
| 3530 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 3531 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3532 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3533 | ;; |
| 3534 | esac |
| 3535 | else |
| 3536 | lt_cv_deplibs_check_method=pass_all |
| 3537 | fi |
| 3538 | ;; |
| 3539 | |
| 3540 | gnu*) |
| 3541 | lt_cv_deplibs_check_method=pass_all |
| 3542 | ;; |
| 3543 | |
| 3544 | hpux10.20*|hpux11*) |
| 3545 | case $host_cpu in |
| 3546 | hppa*) |
| 3547 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 3548 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3549 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 3550 | ;; |
| 3551 | ia64*) |
| 3552 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 3553 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3554 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 3555 | ;; |
| 3556 | esac |
| 3557 | ;; |
| 3558 | |
| 3559 | irix5* | irix6*) |
| 3560 | case $host_os in |
| 3561 | irix5*) |
| 3562 | # this will be overridden with pass_all, but let us keep it just in case |
| 3563 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
| 3564 | ;; |
| 3565 | *) |
| 3566 | case $LD in |
| 3567 | *-32|*"-32 ") libmagic=32-bit;; |
| 3568 | *-n32|*"-n32 ") libmagic=N32;; |
| 3569 | *-64|*"-64 ") libmagic=64-bit;; |
| 3570 | *) libmagic=never-match;; |
| 3571 | esac |
| 3572 | # this will be overridden with pass_all, but let us keep it just in case |
| 3573 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
| 3574 | ;; |
| 3575 | esac |
| 3576 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
| 3577 | lt_cv_deplibs_check_method=pass_all |
| 3578 | ;; |
| 3579 | |
| 3580 | # This must be Linux ELF. |
| 3581 | linux-gnu*) |
| 3582 | lt_cv_deplibs_check_method=pass_all |
| 3583 | ;; |
| 3584 | |
| 3585 | netbsd* | knetbsd*-gnu) |
| 3586 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3587 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
| 3588 | else |
| 3589 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
| 3590 | fi |
| 3591 | ;; |
| 3592 | |
| 3593 | newsos6) |
| 3594 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 3595 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3596 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 3597 | ;; |
| 3598 | |
| 3599 | osf3* | osf4* | osf5*) |
| 3600 | # this will be overridden with pass_all, but let us keep it just in case |
| 3601 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| 3602 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3603 | lt_cv_deplibs_check_method=pass_all |
| 3604 | ;; |
| 3605 | |
| 3606 | sco3.2v5*) |
| 3607 | lt_cv_deplibs_check_method=pass_all |
| 3608 | ;; |
| 3609 | |
| 3610 | solaris*) |
| 3611 | lt_cv_deplibs_check_method=pass_all |
| 3612 | lt_cv_file_magic_test_file=/lib/libc.so |
| 3613 | ;; |
| 3614 | |
| 3615 | sysv5uw[78]* | sysv4*uw2*) |
| 3616 | lt_cv_deplibs_check_method=pass_all |
| 3617 | ;; |
| 3618 | |
| 3619 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 3620 | case $host_vendor in |
| 3621 | ncr) |
| 3622 | lt_cv_deplibs_check_method=pass_all |
| 3623 | ;; |
| 3624 | motorola) |
| 3625 | 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]' |
| 3626 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 3627 | ;; |
| 3628 | esac |
| 3629 | ;; |
| 3630 | esac |
| 3631 | |
| 3632 | fi |
| 3633 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 3634 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 3635 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 3636 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 3637 | |
| 3638 | |
| 3639 | |
| 3640 | |
| 3641 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 3642 | |
| 3643 | # find the maximum length of command line arguments |
| 3644 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 3645 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| 3646 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 3647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3648 | else |
| 3649 | i=0 |
| 3650 | teststring="ABCD" |
| 3651 | |
| 3652 | case $build_os in |
| 3653 | msdosdjgpp*) |
| 3654 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 3655 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 3656 | # during glob expansion). Even if it were fixed, the result of this |
| 3657 | # check would be larger than it should be. |
| 3658 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 3659 | ;; |
| 3660 | |
| 3661 | cygwin* | mingw*) |
| 3662 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 3663 | # about 5 minutes as the teststring grows exponentially. |
| 3664 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 3665 | # you end up with a "frozen" computer, even though with patience |
| 3666 | # the test eventually succeeds (with a max line length of 256k). |
| 3667 | # Instead, let's just punt: use the minimum linelength reported by |
| 3668 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 3669 | lt_cv_sys_max_cmd_len=8192; |
| 3670 | ;; |
| 3671 | |
| 3672 | amigaos*) |
| 3673 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 3674 | # So we just punt and use a minimum line length of 8192. |
| 3675 | lt_cv_sys_max_cmd_len=8192; |
| 3676 | ;; |
| 3677 | |
| 3678 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 3679 | # This has been around since 386BSD, at least. Likely further. |
| 3680 | if test -x /sbin/sysctl; then |
| 3681 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 3682 | elif test -x /usr/sbin/sysctl; then |
| 3683 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 3684 | else |
| 3685 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD |
| 3686 | fi |
| 3687 | # And add a safety zone |
| 3688 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 3689 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 3690 | ;; |
| 3691 | esac |
| 3692 | |
| 3693 | fi |
| 3694 | |
| 3695 | if test -n "$lt_cv_sys_max_cmd_len" ; then |
| 3696 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 3697 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
| 3698 | else |
| 3699 | echo "$as_me:$LINENO: result: none" >&5 |
| 3700 | echo "${ECHO_T}none" >&6 |
| 3701 | fi |
| 3702 | |
| 3703 | |
| 3704 | # Only perform the check for file, if the check method requires it |
| 3705 | case $deplibs_check_method in |
| 3706 | file_magic*) |
| 3707 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 3708 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 3709 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 3710 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 3711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3712 | else |
| 3713 | case $MAGIC_CMD in |
| 3714 | /*) |
| 3715 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 3716 | ;; |
| 3717 | ?:/*) |
| 3718 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 3719 | ;; |
| 3720 | *) |
| 3721 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 3722 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3723 | ac_dummy="/usr/bin:$PATH" |
| 3724 | for ac_dir in $ac_dummy; do |
| 3725 | test -z "$ac_dir" && ac_dir=. |
| 3726 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 3727 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 3728 | if test -n "$file_magic_test_file"; then |
| 3729 | case $deplibs_check_method in |
| 3730 | "file_magic "*) |
| 3731 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 3732 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 3733 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 3734 | egrep "$file_magic_regex" > /dev/null; then |
| 3735 | : |
| 3736 | else |
| 3737 | cat <<EOF 1>&2 |
| 3738 | |
| 3739 | *** Warning: the command libtool uses to detect shared libraries, |
| 3740 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 3741 | *** The result is that libtool may fail to recognize shared libraries |
| 3742 | *** as such. This will affect the creation of libtool libraries that |
| 3743 | *** depend on shared libraries, but programs linked with such libtool |
| 3744 | *** libraries will work regardless of this problem. Nevertheless, you |
| 3745 | *** may want to report the problem to your system manager and/or to |
| 3746 | *** bug-libtool@gnu.org |
| 3747 | |
| 3748 | EOF |
| 3749 | fi ;; |
| 3750 | esac |
| 3751 | fi |
| 3752 | break |
| 3753 | fi |
| 3754 | done |
| 3755 | IFS="$ac_save_ifs" |
| 3756 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
| 3757 | ;; |
| 3758 | esac |
| 3759 | fi |
| 3760 | |
| 3761 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 3762 | if test -n "$MAGIC_CMD"; then |
| 3763 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 3764 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 3765 | else |
| 3766 | echo "$as_me:$LINENO: result: no" >&5 |
| 3767 | echo "${ECHO_T}no" >&6 |
| 3768 | fi |
| 3769 | |
| 3770 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 3771 | if test -n "$ac_tool_prefix"; then |
| 3772 | echo "$as_me:$LINENO: checking for file" >&5 |
| 3773 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 3774 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 3775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3776 | else |
| 3777 | case $MAGIC_CMD in |
| 3778 | /*) |
| 3779 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 3780 | ;; |
| 3781 | ?:/*) |
| 3782 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 3783 | ;; |
| 3784 | *) |
| 3785 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 3786 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3787 | ac_dummy="/usr/bin:$PATH" |
| 3788 | for ac_dir in $ac_dummy; do |
| 3789 | test -z "$ac_dir" && ac_dir=. |
| 3790 | if test -f $ac_dir/file; then |
| 3791 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 3792 | if test -n "$file_magic_test_file"; then |
| 3793 | case $deplibs_check_method in |
| 3794 | "file_magic "*) |
| 3795 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 3796 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 3797 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 3798 | egrep "$file_magic_regex" > /dev/null; then |
| 3799 | : |
| 3800 | else |
| 3801 | cat <<EOF 1>&2 |
| 3802 | |
| 3803 | *** Warning: the command libtool uses to detect shared libraries, |
| 3804 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 3805 | *** The result is that libtool may fail to recognize shared libraries |
| 3806 | *** as such. This will affect the creation of libtool libraries that |
| 3807 | *** depend on shared libraries, but programs linked with such libtool |
| 3808 | *** libraries will work regardless of this problem. Nevertheless, you |
| 3809 | *** may want to report the problem to your system manager and/or to |
| 3810 | *** bug-libtool@gnu.org |
| 3811 | |
| 3812 | EOF |
| 3813 | fi ;; |
| 3814 | esac |
| 3815 | fi |
| 3816 | break |
| 3817 | fi |
| 3818 | done |
| 3819 | IFS="$ac_save_ifs" |
| 3820 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
| 3821 | ;; |
| 3822 | esac |
| 3823 | fi |
| 3824 | |
| 3825 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 3826 | if test -n "$MAGIC_CMD"; then |
| 3827 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 3828 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 3829 | else |
| 3830 | echo "$as_me:$LINENO: result: no" >&5 |
| 3831 | echo "${ECHO_T}no" >&6 |
| 3832 | fi |
| 3833 | |
| 3834 | else |
| 3835 | MAGIC_CMD=: |
| 3836 | fi |
| 3837 | fi |
| 3838 | |
| 3839 | fi |
| 3840 | ;; |
| 3841 | esac |
| 3842 | |
| 3843 | if test -n "$ac_tool_prefix"; then |
| 3844 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3845 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3846 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3847 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3848 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3850 | else |
| 3851 | if test -n "$RANLIB"; then |
| 3852 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3853 | else |
| 3854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3855 | for as_dir in $PATH |
| 3856 | do |
| 3857 | IFS=$as_save_IFS |
| 3858 | test -z "$as_dir" && as_dir=. |
| 3859 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3860 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3861 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3862 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3863 | break 2 |
| 3864 | fi |
| 3865 | done |
| 3866 | done |
| 3867 | |
| 3868 | fi |
| 3869 | fi |
| 3870 | RANLIB=$ac_cv_prog_RANLIB |
| 3871 | if test -n "$RANLIB"; then |
| 3872 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3873 | echo "${ECHO_T}$RANLIB" >&6 |
| 3874 | else |
| 3875 | echo "$as_me:$LINENO: result: no" >&5 |
| 3876 | echo "${ECHO_T}no" >&6 |
| 3877 | fi |
| 3878 | |
| 3879 | fi |
| 3880 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3881 | ac_ct_RANLIB=$RANLIB |
| 3882 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3883 | set dummy ranlib; ac_word=$2 |
| 3884 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3885 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3886 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3888 | else |
| 3889 | if test -n "$ac_ct_RANLIB"; then |
| 3890 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3891 | else |
| 3892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3893 | for as_dir in $PATH |
| 3894 | do |
| 3895 | IFS=$as_save_IFS |
| 3896 | test -z "$as_dir" && as_dir=. |
| 3897 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3898 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3899 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3900 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3901 | break 2 |
| 3902 | fi |
| 3903 | done |
| 3904 | done |
| 3905 | |
| 3906 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3907 | fi |
| 3908 | fi |
| 3909 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3910 | if test -n "$ac_ct_RANLIB"; then |
| 3911 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3912 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3913 | else |
| 3914 | echo "$as_me:$LINENO: result: no" >&5 |
| 3915 | echo "${ECHO_T}no" >&6 |
| 3916 | fi |
| 3917 | |
| 3918 | RANLIB=$ac_ct_RANLIB |
| 3919 | else |
| 3920 | RANLIB="$ac_cv_prog_RANLIB" |
| 3921 | fi |
| 3922 | |
| 3923 | if test -n "$ac_tool_prefix"; then |
| 3924 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 3925 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 3926 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3927 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3928 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 3929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3930 | else |
| 3931 | if test -n "$STRIP"; then |
| 3932 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3933 | else |
| 3934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3935 | for as_dir in $PATH |
| 3936 | do |
| 3937 | IFS=$as_save_IFS |
| 3938 | test -z "$as_dir" && as_dir=. |
| 3939 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3940 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3941 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 3942 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3943 | break 2 |
| 3944 | fi |
| 3945 | done |
| 3946 | done |
| 3947 | |
| 3948 | fi |
| 3949 | fi |
| 3950 | STRIP=$ac_cv_prog_STRIP |
| 3951 | if test -n "$STRIP"; then |
| 3952 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 3953 | echo "${ECHO_T}$STRIP" >&6 |
| 3954 | else |
| 3955 | echo "$as_me:$LINENO: result: no" >&5 |
| 3956 | echo "${ECHO_T}no" >&6 |
| 3957 | fi |
| 3958 | |
| 3959 | fi |
| 3960 | if test -z "$ac_cv_prog_STRIP"; then |
| 3961 | ac_ct_STRIP=$STRIP |
| 3962 | # Extract the first word of "strip", so it can be a program name with args. |
| 3963 | set dummy strip; ac_word=$2 |
| 3964 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3965 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3966 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 3967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3968 | else |
| 3969 | if test -n "$ac_ct_STRIP"; then |
| 3970 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3971 | else |
| 3972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3973 | for as_dir in $PATH |
| 3974 | do |
| 3975 | IFS=$as_save_IFS |
| 3976 | test -z "$as_dir" && as_dir=. |
| 3977 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3978 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3979 | ac_cv_prog_ac_ct_STRIP="strip" |
| 3980 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3981 | break 2 |
| 3982 | fi |
| 3983 | done |
| 3984 | done |
| 3985 | |
| 3986 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 3987 | fi |
| 3988 | fi |
| 3989 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 3990 | if test -n "$ac_ct_STRIP"; then |
| 3991 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 3992 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 3993 | else |
| 3994 | echo "$as_me:$LINENO: result: no" >&5 |
| 3995 | echo "${ECHO_T}no" >&6 |
| 3996 | fi |
| 3997 | |
| 3998 | STRIP=$ac_ct_STRIP |
| 3999 | else |
| 4000 | STRIP="$ac_cv_prog_STRIP" |
| 4001 | fi |
| 4002 | |
| 4003 | |
| 4004 | # Check for any special flags to pass to ltconfig. |
| 4005 | libtool_flags="--cache-file=$cache_file" |
| 4006 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
| 4007 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" |
| 4008 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
| 4009 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
| 4010 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" |
| 4011 | |
| 4012 | |
| 4013 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 4014 | if test "${enable_libtool_lock+set}" = set; then |
| 4015 | enableval="$enable_libtool_lock" |
| 4016 | |
| 4017 | fi; |
| 4018 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
| 4019 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" |
| 4020 | |
| 4021 | |
| 4022 | # Check whether --with-pic or --without-pic was given. |
| 4023 | if test "${with_pic+set}" = set; then |
| 4024 | withval="$with_pic" |
| 4025 | pic_mode="$withval" |
| 4026 | else |
| 4027 | pic_mode=default |
| 4028 | fi; |
| 4029 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" |
| 4030 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" |
| 4031 | |
| 4032 | # Some flags need to be propagated to the compiler or linker for good |
| 4033 | # libtool support. |
| 4034 | case $host in |
| 4035 | *-*-irix6*) |
| 4036 | # Find out which ABI we are using. |
| 4037 | echo '#line 4037 "configure"' > conftest.$ac_ext |
| 4038 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4039 | (eval $ac_compile) 2>&5 |
| 4040 | ac_status=$? |
| 4041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4042 | (exit $ac_status); }; then |
| 4043 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 4044 | case `/usr/bin/file conftest.$ac_objext` in |
| 4045 | *32-bit*) |
| 4046 | LD="${LD-ld} -melf32bsmip" |
| 4047 | ;; |
| 4048 | *N32*) |
| 4049 | LD="${LD-ld} -melf32bmipn32" |
| 4050 | ;; |
| 4051 | *64-bit*) |
| 4052 | LD="${LD-ld} -melf64bmip" |
| 4053 | ;; |
| 4054 | esac |
| 4055 | else |
| 4056 | case `/usr/bin/file conftest.$ac_objext` in |
| 4057 | *32-bit*) |
| 4058 | LD="${LD-ld} -32" |
| 4059 | ;; |
| 4060 | *N32*) |
| 4061 | LD="${LD-ld} -n32" |
| 4062 | ;; |
| 4063 | *64-bit*) |
| 4064 | LD="${LD-ld} -64" |
| 4065 | ;; |
| 4066 | esac |
| 4067 | fi |
| 4068 | fi |
| 4069 | rm -rf conftest* |
| 4070 | ;; |
| 4071 | |
| 4072 | ia64-*-hpux*) |
| 4073 | # Find out which ABI we are using. |
| 4074 | echo 'int i;' > conftest.$ac_ext |
| 4075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4076 | (eval $ac_compile) 2>&5 |
| 4077 | ac_status=$? |
| 4078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4079 | (exit $ac_status); }; then |
| 4080 | case "`/usr/bin/file conftest.o`" in |
| 4081 | *ELF-32*) |
| 4082 | HPUX_IA64_MODE="32" |
| 4083 | ;; |
| 4084 | *ELF-64*) |
| 4085 | HPUX_IA64_MODE="64" |
| 4086 | ;; |
| 4087 | esac |
| 4088 | fi |
| 4089 | rm -rf conftest* |
| 4090 | ;; |
| 4091 | |
| 4092 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 4093 | # Find out which ABI we are using. |
| 4094 | echo 'int i;' > conftest.$ac_ext |
| 4095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4096 | (eval $ac_compile) 2>&5 |
| 4097 | ac_status=$? |
| 4098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4099 | (exit $ac_status); }; then |
| 4100 | case "`/usr/bin/file conftest.o`" in |
| 4101 | *32-bit*) |
| 4102 | case $host in |
| 4103 | x86_64-*linux*) |
| 4104 | LD="${LD-ld} -m elf_i386" |
| 4105 | ;; |
| 4106 | ppc64-*linux*|powerpc64-*linux*) |
| 4107 | LD="${LD-ld} -m elf32ppclinux" |
| 4108 | ;; |
| 4109 | s390x-*linux*) |
| 4110 | LD="${LD-ld} -m elf_s390" |
| 4111 | ;; |
| 4112 | sparc64-*linux*) |
| 4113 | LD="${LD-ld} -m elf32_sparc" |
| 4114 | ;; |
| 4115 | esac |
| 4116 | ;; |
| 4117 | *64-bit*) |
| 4118 | case $host in |
| 4119 | x86_64-*linux*) |
| 4120 | LD="${LD-ld} -m elf_x86_64" |
| 4121 | ;; |
| 4122 | ppc*-*linux*|powerpc*-*linux*) |
| 4123 | LD="${LD-ld} -m elf64ppc" |
| 4124 | ;; |
| 4125 | s390*-*linux*) |
| 4126 | LD="${LD-ld} -m elf64_s390" |
| 4127 | ;; |
| 4128 | sparc*-*linux*) |
| 4129 | LD="${LD-ld} -m elf64_sparc" |
| 4130 | ;; |
| 4131 | esac |
| 4132 | ;; |
| 4133 | esac |
| 4134 | fi |
| 4135 | rm -rf conftest* |
| 4136 | ;; |
| 4137 | |
| 4138 | *-*-sco3.2v5*) |
| 4139 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 4140 | SAVE_CFLAGS="$CFLAGS" |
| 4141 | CFLAGS="$CFLAGS -belf" |
| 4142 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 4143 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 4144 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 4145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4146 | else |
| 4147 | |
| 4148 | |
| 4149 | ac_ext=c |
| 4150 | ac_cpp='$CPP $CPPFLAGS' |
| 4151 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4152 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4153 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4154 | |
| 4155 | cat >conftest.$ac_ext <<_ACEOF |
| 4156 | /* confdefs.h. */ |
| 4157 | _ACEOF |
| 4158 | cat confdefs.h >>conftest.$ac_ext |
| 4159 | cat >>conftest.$ac_ext <<_ACEOF |
| 4160 | /* end confdefs.h. */ |
| 4161 | |
| 4162 | int |
| 4163 | main () |
| 4164 | { |
| 4165 | |
| 4166 | ; |
| 4167 | return 0; |
| 4168 | } |
| 4169 | _ACEOF |
| 4170 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4171 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4172 | (eval $ac_link) 2>conftest.er1 |
| 4173 | ac_status=$? |
| 4174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4175 | rm -f conftest.er1 |
| 4176 | cat conftest.err >&5 |
| 4177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4178 | (exit $ac_status); } && |
| 4179 | { ac_try='test -z "$ac_c_werror_flag" |
| 4180 | || test ! -s conftest.err' |
| 4181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4182 | (eval $ac_try) 2>&5 |
| 4183 | ac_status=$? |
| 4184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4185 | (exit $ac_status); }; } && |
| 4186 | { ac_try='test -s conftest$ac_exeext' |
| 4187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4188 | (eval $ac_try) 2>&5 |
| 4189 | ac_status=$? |
| 4190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4191 | (exit $ac_status); }; }; then |
| 4192 | lt_cv_cc_needs_belf=yes |
| 4193 | else |
| 4194 | echo "$as_me: failed program was:" >&5 |
| 4195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4196 | |
| 4197 | lt_cv_cc_needs_belf=no |
| 4198 | fi |
| 4199 | rm -f conftest.err conftest.$ac_objext \ |
| 4200 | conftest$ac_exeext conftest.$ac_ext |
| 4201 | ac_ext=c |
| 4202 | ac_cpp='$CPP $CPPFLAGS' |
| 4203 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4204 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4205 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4206 | |
| 4207 | fi |
| 4208 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 4209 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 4210 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 4211 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 4212 | CFLAGS="$SAVE_CFLAGS" |
| 4213 | fi |
| 4214 | ;; |
| 4215 | |
| 4216 | |
| 4217 | esac |
| 4218 | |
| 4219 | |
| 4220 | # Save cache, so that ltconfig can load it |
| 4221 | cat >confcache <<\_ACEOF |
| 4222 | # This file is a shell script that caches the results of configure |
| 4223 | # tests run on this system so they can be shared between configure |
| 4224 | # scripts and configure runs, see configure's option --config-cache. |
| 4225 | # It is not useful on other systems. If it contains results you don't |
| 4226 | # want to keep, you may remove or edit it. |
| 4227 | # |
| 4228 | # config.status only pays attention to the cache file if you give it |
| 4229 | # the --recheck option to rerun configure. |
| 4230 | # |
| 4231 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 4232 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 4233 | # following values. |
| 4234 | |
| 4235 | _ACEOF |
| 4236 | |
| 4237 | # The following way of writing the cache mishandles newlines in values, |
| 4238 | # but we know of no workaround that is simple, portable, and efficient. |
| 4239 | # So, don't put newlines in cache variables' values. |
| 4240 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 4241 | # and sets the high bit in the cache file unless we assign to the vars. |
| 4242 | { |
| 4243 | (set) 2>&1 | |
| 4244 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 4245 | *ac_space=\ *) |
| 4246 | # `set' does not quote correctly, so add quotes (double-quote |
| 4247 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 4248 | sed -n \ |
| 4249 | "s/'/'\\\\''/g; |
| 4250 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 4251 | ;; |
| 4252 | *) |
| 4253 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 4254 | sed -n \ |
| 4255 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 4256 | ;; |
| 4257 | esac; |
| 4258 | } | |
| 4259 | sed ' |
| 4260 | t clear |
| 4261 | : clear |
| 4262 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 4263 | t end |
| 4264 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 4265 | : end' >>confcache |
| 4266 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 4267 | if test -w $cache_file; then |
| 4268 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 4269 | cat confcache >$cache_file |
| 4270 | else |
| 4271 | echo "not updating unwritable cache $cache_file" |
| 4272 | fi |
| 4273 | fi |
| 4274 | rm -f confcache |
| 4275 | |
| 4276 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
| 4277 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
| 4278 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
| 4279 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
| 4280 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ |
| 4281 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ |
| 4282 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ |
| 4283 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
| 4284 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
| 4285 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 |
| 4286 | echo "$as_me: error: libtool configure failed" >&2;} |
| 4287 | { (exit 1); exit 1; }; } |
| 4288 | |
| 4289 | # Reload cache, that may have been modified by ltconfig |
| 4290 | if test -r "$cache_file"; then |
| 4291 | # Some versions of bash will fail to source /dev/null (special |
| 4292 | # files actually), so we avoid doing that. |
| 4293 | if test -f "$cache_file"; then |
| 4294 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 4295 | echo "$as_me: loading cache $cache_file" >&6;} |
| 4296 | case $cache_file in |
| 4297 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 4298 | *) . ./$cache_file;; |
| 4299 | esac |
| 4300 | fi |
| 4301 | else |
| 4302 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 4303 | echo "$as_me: creating cache $cache_file" >&6;} |
| 4304 | >$cache_file |
| 4305 | fi |
| 4306 | |
| 4307 | |
| 4308 | # This can be used to rebuild libtool when needed |
| 4309 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
| 4310 | |
| 4311 | # Always use our own libtool. |
| 4312 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 4313 | |
| 4314 | # Redirect the config.log output again, so that the ltconfig log is not |
| 4315 | # clobbered by the next message. |
| 4316 | exec 5>>./config.log |
| 4317 | |
| 4318 | |
| 4319 | |
| 4320 | |
| 4321 | |
| 4322 | |
| 4323 | |
| 4324 | # Check whether --enable-targets or --disable-targets was given. |
| 4325 | if test "${enable_targets+set}" = set; then |
| 4326 | enableval="$enable_targets" |
| 4327 | case "${enableval}" in |
| 4328 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 |
| 4329 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} |
| 4330 | { (exit 1); exit 1; }; } |
| 4331 | ;; |
| 4332 | no) enable_targets= ;; |
| 4333 | *) enable_targets=$enableval ;; |
| 4334 | esac |
| 4335 | fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. |
| 4336 | if test "${enable_commonbfdlib+set}" = set; then |
| 4337 | enableval="$enable_commonbfdlib" |
| 4338 | case "${enableval}" in |
| 4339 | yes) commonbfdlib=true ;; |
| 4340 | no) commonbfdlib=false ;; |
| 4341 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for opcodes commonbfdlib option" >&5 |
| 4342 | echo "$as_me: error: bad value ${enableval} for opcodes commonbfdlib option" >&2;} |
| 4343 | { (exit 1); exit 1; }; } ;; |
| 4344 | esac |
| 4345 | fi; |
| 4346 | |
| 4347 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
| 4348 | |
| 4349 | # Check whether --enable-werror or --disable-werror was given. |
| 4350 | if test "${enable_werror+set}" = set; then |
| 4351 | enableval="$enable_werror" |
| 4352 | case "${enableval}" in |
| 4353 | yes | y) ERROR_ON_WARNING="yes" ;; |
| 4354 | no | n) ERROR_ON_WARNING="no" ;; |
| 4355 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 |
| 4356 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} |
| 4357 | { (exit 1); exit 1; }; } ;; |
| 4358 | esac |
| 4359 | fi; |
| 4360 | |
| 4361 | # Enable -Werror by default when using gcc |
| 4362 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then |
| 4363 | ERROR_ON_WARNING=yes |
| 4364 | fi |
| 4365 | |
| 4366 | NO_WERROR= |
| 4367 | if test "${ERROR_ON_WARNING}" = yes ; then |
| 4368 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" |
| 4369 | NO_WERROR="-Wno-error" |
| 4370 | fi |
| 4371 | |
| 4372 | if test "${GCC}" = yes ; then |
| 4373 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" |
| 4374 | fi |
| 4375 | |
| 4376 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
| 4377 | if test "${enable_build_warnings+set}" = set; then |
| 4378 | enableval="$enable_build_warnings" |
| 4379 | case "${enableval}" in |
| 4380 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; |
| 4381 | no) if test "${GCC}" = yes ; then |
| 4382 | WARN_CFLAGS="-w" |
| 4383 | fi;; |
| 4384 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 4385 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; |
| 4386 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 4387 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; |
| 4388 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; |
| 4389 | esac |
| 4390 | fi; |
| 4391 | |
| 4392 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
| 4393 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 |
| 4394 | fi |
| 4395 | |
| 4396 | |
| 4397 | |
| 4398 | |
| 4399 | |
| 4400 | ac_config_headers="$ac_config_headers config.h:config.in" |
| 4401 | |
| 4402 | |
| 4403 | if test -z "$target" ; then |
| 4404 | { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5 |
| 4405 | echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;} |
| 4406 | { (exit 1); exit 1; }; } |
| 4407 | fi |
| 4408 | |
| 4409 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 4410 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
| 4411 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
| 4412 | if test "${enable_maintainer_mode+set}" = set; then |
| 4413 | enableval="$enable_maintainer_mode" |
| 4414 | USE_MAINTAINER_MODE=$enableval |
| 4415 | else |
| 4416 | USE_MAINTAINER_MODE=no |
| 4417 | fi; |
| 4418 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
| 4419 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
| 4420 | |
| 4421 | |
| 4422 | if test $USE_MAINTAINER_MODE = yes; then |
| 4423 | MAINTAINER_MODE_TRUE= |
| 4424 | MAINTAINER_MODE_FALSE='#' |
| 4425 | else |
| 4426 | MAINTAINER_MODE_TRUE='#' |
| 4427 | MAINTAINER_MODE_FALSE= |
| 4428 | fi |
| 4429 | |
| 4430 | MAINT=$MAINTAINER_MODE_TRUE |
| 4431 | |
| 4432 | |
| 4433 | case ${build_alias} in |
| 4434 | "") build_noncanonical=${build} ;; |
| 4435 | *) build_noncanonical=${build_alias} ;; |
| 4436 | esac |
| 4437 | |
| 4438 | case ${host_alias} in |
| 4439 | "") host_noncanonical=${build_noncanonical} ;; |
| 4440 | *) host_noncanonical=${host_alias} ;; |
| 4441 | esac |
| 4442 | |
| 4443 | case ${target_alias} in |
| 4444 | "") target_noncanonical=${host_noncanonical} ;; |
| 4445 | *) target_noncanonical=${target_alias} ;; |
| 4446 | esac |
| 4447 | |
| 4448 | echo "$as_me:$LINENO: checking whether to install libbfd" >&5 |
| 4449 | echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6 |
| 4450 | # Check whether --enable-install-libbfd or --disable-install-libbfd was given. |
| 4451 | if test "${enable_install_libbfd+set}" = set; then |
| 4452 | enableval="$enable_install_libbfd" |
| 4453 | install_libbfd_p=$enableval |
| 4454 | else |
| 4455 | if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then |
| 4456 | install_libbfd_p=yes |
| 4457 | else |
| 4458 | install_libbfd_p=no |
| 4459 | fi |
| 4460 | fi; |
| 4461 | echo "$as_me:$LINENO: result: $install_libbfd_p" >&5 |
| 4462 | echo "${ECHO_T}$install_libbfd_p" >&6 |
| 4463 | |
| 4464 | |
| 4465 | if test $install_libbfd_p = yes; then |
| 4466 | INSTALL_LIBBFD_TRUE= |
| 4467 | INSTALL_LIBBFD_FALSE='#' |
| 4468 | else |
| 4469 | INSTALL_LIBBFD_TRUE='#' |
| 4470 | INSTALL_LIBBFD_FALSE= |
| 4471 | fi |
| 4472 | |
| 4473 | # Need _noncanonical variables for this. |
| 4474 | |
| 4475 | |
| 4476 | |
| 4477 | |
| 4478 | # libbfd.a is a host library containing target dependent code |
| 4479 | bfdlibdir='$(libdir)' |
| 4480 | bfdincludedir='$(includedir)' |
| 4481 | if test "${host}" != "${target}"; then |
| 4482 | bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' |
| 4483 | bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' |
| 4484 | fi |
| 4485 | |
| 4486 | |
| 4487 | |
| 4488 | |
| 4489 | |
| 4490 | |
| 4491 | # host-specific stuff: |
| 4492 | |
| 4493 | ac_ext=c |
| 4494 | ac_cpp='$CPP $CPPFLAGS' |
| 4495 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4496 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4497 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4498 | if test -n "$ac_tool_prefix"; then |
| 4499 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 4500 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 4501 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4502 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4503 | if test "${ac_cv_prog_CC+set}" = set; then |
| 4504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4505 | else |
| 4506 | if test -n "$CC"; then |
| 4507 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4508 | else |
| 4509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4510 | for as_dir in $PATH |
| 4511 | do |
| 4512 | IFS=$as_save_IFS |
| 4513 | test -z "$as_dir" && as_dir=. |
| 4514 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4515 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4516 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 4517 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4518 | break 2 |
| 4519 | fi |
| 4520 | done |
| 4521 | done |
| 4522 | |
| 4523 | fi |
| 4524 | fi |
| 4525 | CC=$ac_cv_prog_CC |
| 4526 | if test -n "$CC"; then |
| 4527 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 4528 | echo "${ECHO_T}$CC" >&6 |
| 4529 | else |
| 4530 | echo "$as_me:$LINENO: result: no" >&5 |
| 4531 | echo "${ECHO_T}no" >&6 |
| 4532 | fi |
| 4533 | |
| 4534 | fi |
| 4535 | if test -z "$ac_cv_prog_CC"; then |
| 4536 | ac_ct_CC=$CC |
| 4537 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4538 | set dummy gcc; ac_word=$2 |
| 4539 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4540 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4541 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 4542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4543 | else |
| 4544 | if test -n "$ac_ct_CC"; then |
| 4545 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4546 | else |
| 4547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4548 | for as_dir in $PATH |
| 4549 | do |
| 4550 | IFS=$as_save_IFS |
| 4551 | test -z "$as_dir" && as_dir=. |
| 4552 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4553 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4554 | ac_cv_prog_ac_ct_CC="gcc" |
| 4555 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4556 | break 2 |
| 4557 | fi |
| 4558 | done |
| 4559 | done |
| 4560 | |
| 4561 | fi |
| 4562 | fi |
| 4563 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4564 | if test -n "$ac_ct_CC"; then |
| 4565 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 4566 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 4567 | else |
| 4568 | echo "$as_me:$LINENO: result: no" >&5 |
| 4569 | echo "${ECHO_T}no" >&6 |
| 4570 | fi |
| 4571 | |
| 4572 | CC=$ac_ct_CC |
| 4573 | else |
| 4574 | CC="$ac_cv_prog_CC" |
| 4575 | fi |
| 4576 | |
| 4577 | if test -z "$CC"; then |
| 4578 | if test -n "$ac_tool_prefix"; then |
| 4579 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 4580 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 4581 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4582 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4583 | if test "${ac_cv_prog_CC+set}" = set; then |
| 4584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4585 | else |
| 4586 | if test -n "$CC"; then |
| 4587 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4588 | else |
| 4589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4590 | for as_dir in $PATH |
| 4591 | do |
| 4592 | IFS=$as_save_IFS |
| 4593 | test -z "$as_dir" && as_dir=. |
| 4594 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4595 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4596 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 4597 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4598 | break 2 |
| 4599 | fi |
| 4600 | done |
| 4601 | done |
| 4602 | |
| 4603 | fi |
| 4604 | fi |
| 4605 | CC=$ac_cv_prog_CC |
| 4606 | if test -n "$CC"; then |
| 4607 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 4608 | echo "${ECHO_T}$CC" >&6 |
| 4609 | else |
| 4610 | echo "$as_me:$LINENO: result: no" >&5 |
| 4611 | echo "${ECHO_T}no" >&6 |
| 4612 | fi |
| 4613 | |
| 4614 | fi |
| 4615 | if test -z "$ac_cv_prog_CC"; then |
| 4616 | ac_ct_CC=$CC |
| 4617 | # Extract the first word of "cc", so it can be a program name with args. |
| 4618 | set dummy cc; ac_word=$2 |
| 4619 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4620 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4621 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 4622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4623 | else |
| 4624 | if test -n "$ac_ct_CC"; then |
| 4625 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4626 | else |
| 4627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4628 | for as_dir in $PATH |
| 4629 | do |
| 4630 | IFS=$as_save_IFS |
| 4631 | test -z "$as_dir" && as_dir=. |
| 4632 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4633 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4634 | ac_cv_prog_ac_ct_CC="cc" |
| 4635 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4636 | break 2 |
| 4637 | fi |
| 4638 | done |
| 4639 | done |
| 4640 | |
| 4641 | fi |
| 4642 | fi |
| 4643 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4644 | if test -n "$ac_ct_CC"; then |
| 4645 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 4646 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 4647 | else |
| 4648 | echo "$as_me:$LINENO: result: no" >&5 |
| 4649 | echo "${ECHO_T}no" >&6 |
| 4650 | fi |
| 4651 | |
| 4652 | CC=$ac_ct_CC |
| 4653 | else |
| 4654 | CC="$ac_cv_prog_CC" |
| 4655 | fi |
| 4656 | |
| 4657 | fi |
| 4658 | if test -z "$CC"; then |
| 4659 | # Extract the first word of "cc", so it can be a program name with args. |
| 4660 | set dummy cc; ac_word=$2 |
| 4661 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4662 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4663 | if test "${ac_cv_prog_CC+set}" = set; then |
| 4664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4665 | else |
| 4666 | if test -n "$CC"; then |
| 4667 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4668 | else |
| 4669 | ac_prog_rejected=no |
| 4670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4671 | for as_dir in $PATH |
| 4672 | do |
| 4673 | IFS=$as_save_IFS |
| 4674 | test -z "$as_dir" && as_dir=. |
| 4675 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4676 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4677 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4678 | ac_prog_rejected=yes |
| 4679 | continue |
| 4680 | fi |
| 4681 | ac_cv_prog_CC="cc" |
| 4682 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4683 | break 2 |
| 4684 | fi |
| 4685 | done |
| 4686 | done |
| 4687 | |
| 4688 | if test $ac_prog_rejected = yes; then |
| 4689 | # We found a bogon in the path, so make sure we never use it. |
| 4690 | set dummy $ac_cv_prog_CC |
| 4691 | shift |
| 4692 | if test $# != 0; then |
| 4693 | # We chose a different compiler from the bogus one. |
| 4694 | # However, it has the same basename, so the bogon will be chosen |
| 4695 | # first if we set CC to just the basename; use the full file name. |
| 4696 | shift |
| 4697 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 4698 | fi |
| 4699 | fi |
| 4700 | fi |
| 4701 | fi |
| 4702 | CC=$ac_cv_prog_CC |
| 4703 | if test -n "$CC"; then |
| 4704 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 4705 | echo "${ECHO_T}$CC" >&6 |
| 4706 | else |
| 4707 | echo "$as_me:$LINENO: result: no" >&5 |
| 4708 | echo "${ECHO_T}no" >&6 |
| 4709 | fi |
| 4710 | |
| 4711 | fi |
| 4712 | if test -z "$CC"; then |
| 4713 | if test -n "$ac_tool_prefix"; then |
| 4714 | for ac_prog in cl |
| 4715 | do |
| 4716 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4717 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4718 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4719 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4720 | if test "${ac_cv_prog_CC+set}" = set; then |
| 4721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4722 | else |
| 4723 | if test -n "$CC"; then |
| 4724 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4725 | else |
| 4726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4727 | for as_dir in $PATH |
| 4728 | do |
| 4729 | IFS=$as_save_IFS |
| 4730 | test -z "$as_dir" && as_dir=. |
| 4731 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4732 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4733 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4734 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4735 | break 2 |
| 4736 | fi |
| 4737 | done |
| 4738 | done |
| 4739 | |
| 4740 | fi |
| 4741 | fi |
| 4742 | CC=$ac_cv_prog_CC |
| 4743 | if test -n "$CC"; then |
| 4744 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 4745 | echo "${ECHO_T}$CC" >&6 |
| 4746 | else |
| 4747 | echo "$as_me:$LINENO: result: no" >&5 |
| 4748 | echo "${ECHO_T}no" >&6 |
| 4749 | fi |
| 4750 | |
| 4751 | test -n "$CC" && break |
| 4752 | done |
| 4753 | fi |
| 4754 | if test -z "$CC"; then |
| 4755 | ac_ct_CC=$CC |
| 4756 | for ac_prog in cl |
| 4757 | do |
| 4758 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4759 | set dummy $ac_prog; ac_word=$2 |
| 4760 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4761 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4762 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 4763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4764 | else |
| 4765 | if test -n "$ac_ct_CC"; then |
| 4766 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4767 | else |
| 4768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4769 | for as_dir in $PATH |
| 4770 | do |
| 4771 | IFS=$as_save_IFS |
| 4772 | test -z "$as_dir" && as_dir=. |
| 4773 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4774 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4775 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4776 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4777 | break 2 |
| 4778 | fi |
| 4779 | done |
| 4780 | done |
| 4781 | |
| 4782 | fi |
| 4783 | fi |
| 4784 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4785 | if test -n "$ac_ct_CC"; then |
| 4786 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 4787 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 4788 | else |
| 4789 | echo "$as_me:$LINENO: result: no" >&5 |
| 4790 | echo "${ECHO_T}no" >&6 |
| 4791 | fi |
| 4792 | |
| 4793 | test -n "$ac_ct_CC" && break |
| 4794 | done |
| 4795 | |
| 4796 | CC=$ac_ct_CC |
| 4797 | fi |
| 4798 | |
| 4799 | fi |
| 4800 | |
| 4801 | |
| 4802 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 4803 | See \`config.log' for more details." >&5 |
| 4804 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 4805 | See \`config.log' for more details." >&2;} |
| 4806 | { (exit 1); exit 1; }; } |
| 4807 | |
| 4808 | # Provide some information about the compiler. |
| 4809 | echo "$as_me:$LINENO:" \ |
| 4810 | "checking for C compiler version" >&5 |
| 4811 | ac_compiler=`set X $ac_compile; echo $2` |
| 4812 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 4813 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 4814 | ac_status=$? |
| 4815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4816 | (exit $ac_status); } |
| 4817 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 4818 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 4819 | ac_status=$? |
| 4820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4821 | (exit $ac_status); } |
| 4822 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 4823 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 4824 | ac_status=$? |
| 4825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4826 | (exit $ac_status); } |
| 4827 | |
| 4828 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 4829 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 4830 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 4831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4832 | else |
| 4833 | cat >conftest.$ac_ext <<_ACEOF |
| 4834 | /* confdefs.h. */ |
| 4835 | _ACEOF |
| 4836 | cat confdefs.h >>conftest.$ac_ext |
| 4837 | cat >>conftest.$ac_ext <<_ACEOF |
| 4838 | /* end confdefs.h. */ |
| 4839 | |
| 4840 | int |
| 4841 | main () |
| 4842 | { |
| 4843 | #ifndef __GNUC__ |
| 4844 | choke me |
| 4845 | #endif |
| 4846 | |
| 4847 | ; |
| 4848 | return 0; |
| 4849 | } |
| 4850 | _ACEOF |
| 4851 | rm -f conftest.$ac_objext |
| 4852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4853 | (eval $ac_compile) 2>conftest.er1 |
| 4854 | ac_status=$? |
| 4855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4856 | rm -f conftest.er1 |
| 4857 | cat conftest.err >&5 |
| 4858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4859 | (exit $ac_status); } && |
| 4860 | { ac_try='test -z "$ac_c_werror_flag" |
| 4861 | || test ! -s conftest.err' |
| 4862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4863 | (eval $ac_try) 2>&5 |
| 4864 | ac_status=$? |
| 4865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4866 | (exit $ac_status); }; } && |
| 4867 | { ac_try='test -s conftest.$ac_objext' |
| 4868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4869 | (eval $ac_try) 2>&5 |
| 4870 | ac_status=$? |
| 4871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4872 | (exit $ac_status); }; }; then |
| 4873 | ac_compiler_gnu=yes |
| 4874 | else |
| 4875 | echo "$as_me: failed program was:" >&5 |
| 4876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4877 | |
| 4878 | ac_compiler_gnu=no |
| 4879 | fi |
| 4880 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4881 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4882 | |
| 4883 | fi |
| 4884 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 4885 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 4886 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 4887 | ac_test_CFLAGS=${CFLAGS+set} |
| 4888 | ac_save_CFLAGS=$CFLAGS |
| 4889 | CFLAGS="-g" |
| 4890 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 4891 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 4892 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 4893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4894 | else |
| 4895 | cat >conftest.$ac_ext <<_ACEOF |
| 4896 | /* confdefs.h. */ |
| 4897 | _ACEOF |
| 4898 | cat confdefs.h >>conftest.$ac_ext |
| 4899 | cat >>conftest.$ac_ext <<_ACEOF |
| 4900 | /* end confdefs.h. */ |
| 4901 | |
| 4902 | int |
| 4903 | main () |
| 4904 | { |
| 4905 | |
| 4906 | ; |
| 4907 | return 0; |
| 4908 | } |
| 4909 | _ACEOF |
| 4910 | rm -f conftest.$ac_objext |
| 4911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4912 | (eval $ac_compile) 2>conftest.er1 |
| 4913 | ac_status=$? |
| 4914 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4915 | rm -f conftest.er1 |
| 4916 | cat conftest.err >&5 |
| 4917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4918 | (exit $ac_status); } && |
| 4919 | { ac_try='test -z "$ac_c_werror_flag" |
| 4920 | || test ! -s conftest.err' |
| 4921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4922 | (eval $ac_try) 2>&5 |
| 4923 | ac_status=$? |
| 4924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4925 | (exit $ac_status); }; } && |
| 4926 | { ac_try='test -s conftest.$ac_objext' |
| 4927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4928 | (eval $ac_try) 2>&5 |
| 4929 | ac_status=$? |
| 4930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4931 | (exit $ac_status); }; }; then |
| 4932 | ac_cv_prog_cc_g=yes |
| 4933 | else |
| 4934 | echo "$as_me: failed program was:" >&5 |
| 4935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4936 | |
| 4937 | ac_cv_prog_cc_g=no |
| 4938 | fi |
| 4939 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4940 | fi |
| 4941 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 4942 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 4943 | if test "$ac_test_CFLAGS" = set; then |
| 4944 | CFLAGS=$ac_save_CFLAGS |
| 4945 | elif test $ac_cv_prog_cc_g = yes; then |
| 4946 | if test "$GCC" = yes; then |
| 4947 | CFLAGS="-g -O2" |
| 4948 | else |
| 4949 | CFLAGS="-g" |
| 4950 | fi |
| 4951 | else |
| 4952 | if test "$GCC" = yes; then |
| 4953 | CFLAGS="-O2" |
| 4954 | else |
| 4955 | CFLAGS= |
| 4956 | fi |
| 4957 | fi |
| 4958 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 4959 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 4960 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 4961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4962 | else |
| 4963 | ac_cv_prog_cc_stdc=no |
| 4964 | ac_save_CC=$CC |
| 4965 | cat >conftest.$ac_ext <<_ACEOF |
| 4966 | /* confdefs.h. */ |
| 4967 | _ACEOF |
| 4968 | cat confdefs.h >>conftest.$ac_ext |
| 4969 | cat >>conftest.$ac_ext <<_ACEOF |
| 4970 | /* end confdefs.h. */ |
| 4971 | #include <stdarg.h> |
| 4972 | #include <stdio.h> |
| 4973 | #include <sys/types.h> |
| 4974 | #include <sys/stat.h> |
| 4975 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4976 | struct buf { int x; }; |
| 4977 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4978 | static char *e (p, i) |
| 4979 | char **p; |
| 4980 | int i; |
| 4981 | { |
| 4982 | return p[i]; |
| 4983 | } |
| 4984 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4985 | { |
| 4986 | char *s; |
| 4987 | va_list v; |
| 4988 | va_start (v,p); |
| 4989 | s = g (p, va_arg (v,int)); |
| 4990 | va_end (v); |
| 4991 | return s; |
| 4992 | } |
| 4993 | |
| 4994 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4995 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4996 | These don't provoke an error unfortunately, instead are silently treated |
| 4997 | as 'x'. The following induces an error, until -std1 is added to get |
| 4998 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4999 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5000 | that's true only with -std1. */ |
| 5001 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5002 | |
| 5003 | int test (int i, double x); |
| 5004 | struct s1 {int (*f) (int a);}; |
| 5005 | struct s2 {int (*f) (double a);}; |
| 5006 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5007 | int argc; |
| 5008 | char **argv; |
| 5009 | int |
| 5010 | main () |
| 5011 | { |
| 5012 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5013 | ; |
| 5014 | return 0; |
| 5015 | } |
| 5016 | _ACEOF |
| 5017 | # Don't try gcc -ansi; that turns off useful extensions and |
| 5018 | # breaks some systems' header files. |
| 5019 | # AIX -qlanglvl=ansi |
| 5020 | # Ultrix and OSF/1 -std1 |
| 5021 | # HP-UX 10.20 and later -Ae |
| 5022 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 5023 | # SVR4 -Xc -D__EXTENSIONS__ |
| 5024 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5025 | do |
| 5026 | CC="$ac_save_CC $ac_arg" |
| 5027 | rm -f conftest.$ac_objext |
| 5028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5029 | (eval $ac_compile) 2>conftest.er1 |
| 5030 | ac_status=$? |
| 5031 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5032 | rm -f conftest.er1 |
| 5033 | cat conftest.err >&5 |
| 5034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5035 | (exit $ac_status); } && |
| 5036 | { ac_try='test -z "$ac_c_werror_flag" |
| 5037 | || test ! -s conftest.err' |
| 5038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5039 | (eval $ac_try) 2>&5 |
| 5040 | ac_status=$? |
| 5041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5042 | (exit $ac_status); }; } && |
| 5043 | { ac_try='test -s conftest.$ac_objext' |
| 5044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5045 | (eval $ac_try) 2>&5 |
| 5046 | ac_status=$? |
| 5047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5048 | (exit $ac_status); }; }; then |
| 5049 | ac_cv_prog_cc_stdc=$ac_arg |
| 5050 | break |
| 5051 | else |
| 5052 | echo "$as_me: failed program was:" >&5 |
| 5053 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5054 | |
| 5055 | fi |
| 5056 | rm -f conftest.err conftest.$ac_objext |
| 5057 | done |
| 5058 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 5059 | CC=$ac_save_CC |
| 5060 | |
| 5061 | fi |
| 5062 | |
| 5063 | case "x$ac_cv_prog_cc_stdc" in |
| 5064 | x|xno) |
| 5065 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 5066 | echo "${ECHO_T}none needed" >&6 ;; |
| 5067 | *) |
| 5068 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 5069 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 5070 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 5071 | esac |
| 5072 | |
| 5073 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 5074 | # in C++ we need to declare it. In case someone uses the same compiler |
| 5075 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 5076 | # the declaration of exit, since it's the most demanding environment. |
| 5077 | cat >conftest.$ac_ext <<_ACEOF |
| 5078 | #ifndef __cplusplus |
| 5079 | choke me |
| 5080 | #endif |
| 5081 | _ACEOF |
| 5082 | rm -f conftest.$ac_objext |
| 5083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5084 | (eval $ac_compile) 2>conftest.er1 |
| 5085 | ac_status=$? |
| 5086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5087 | rm -f conftest.er1 |
| 5088 | cat conftest.err >&5 |
| 5089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5090 | (exit $ac_status); } && |
| 5091 | { ac_try='test -z "$ac_c_werror_flag" |
| 5092 | || test ! -s conftest.err' |
| 5093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5094 | (eval $ac_try) 2>&5 |
| 5095 | ac_status=$? |
| 5096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5097 | (exit $ac_status); }; } && |
| 5098 | { ac_try='test -s conftest.$ac_objext' |
| 5099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5100 | (eval $ac_try) 2>&5 |
| 5101 | ac_status=$? |
| 5102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5103 | (exit $ac_status); }; }; then |
| 5104 | for ac_declaration in \ |
| 5105 | '' \ |
| 5106 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 5107 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 5108 | 'extern "C" void exit (int) throw ();' \ |
| 5109 | 'extern "C" void exit (int);' \ |
| 5110 | 'void exit (int);' |
| 5111 | do |
| 5112 | cat >conftest.$ac_ext <<_ACEOF |
| 5113 | /* confdefs.h. */ |
| 5114 | _ACEOF |
| 5115 | cat confdefs.h >>conftest.$ac_ext |
| 5116 | cat >>conftest.$ac_ext <<_ACEOF |
| 5117 | /* end confdefs.h. */ |
| 5118 | $ac_declaration |
| 5119 | #include <stdlib.h> |
| 5120 | int |
| 5121 | main () |
| 5122 | { |
| 5123 | exit (42); |
| 5124 | ; |
| 5125 | return 0; |
| 5126 | } |
| 5127 | _ACEOF |
| 5128 | rm -f conftest.$ac_objext |
| 5129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5130 | (eval $ac_compile) 2>conftest.er1 |
| 5131 | ac_status=$? |
| 5132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5133 | rm -f conftest.er1 |
| 5134 | cat conftest.err >&5 |
| 5135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5136 | (exit $ac_status); } && |
| 5137 | { ac_try='test -z "$ac_c_werror_flag" |
| 5138 | || test ! -s conftest.err' |
| 5139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5140 | (eval $ac_try) 2>&5 |
| 5141 | ac_status=$? |
| 5142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5143 | (exit $ac_status); }; } && |
| 5144 | { ac_try='test -s conftest.$ac_objext' |
| 5145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5146 | (eval $ac_try) 2>&5 |
| 5147 | ac_status=$? |
| 5148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5149 | (exit $ac_status); }; }; then |
| 5150 | : |
| 5151 | else |
| 5152 | echo "$as_me: failed program was:" >&5 |
| 5153 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5154 | |
| 5155 | continue |
| 5156 | fi |
| 5157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5158 | cat >conftest.$ac_ext <<_ACEOF |
| 5159 | /* confdefs.h. */ |
| 5160 | _ACEOF |
| 5161 | cat confdefs.h >>conftest.$ac_ext |
| 5162 | cat >>conftest.$ac_ext <<_ACEOF |
| 5163 | /* end confdefs.h. */ |
| 5164 | $ac_declaration |
| 5165 | int |
| 5166 | main () |
| 5167 | { |
| 5168 | exit (42); |
| 5169 | ; |
| 5170 | return 0; |
| 5171 | } |
| 5172 | _ACEOF |
| 5173 | rm -f conftest.$ac_objext |
| 5174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5175 | (eval $ac_compile) 2>conftest.er1 |
| 5176 | ac_status=$? |
| 5177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5178 | rm -f conftest.er1 |
| 5179 | cat conftest.err >&5 |
| 5180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5181 | (exit $ac_status); } && |
| 5182 | { ac_try='test -z "$ac_c_werror_flag" |
| 5183 | || test ! -s conftest.err' |
| 5184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5185 | (eval $ac_try) 2>&5 |
| 5186 | ac_status=$? |
| 5187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5188 | (exit $ac_status); }; } && |
| 5189 | { ac_try='test -s conftest.$ac_objext' |
| 5190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5191 | (eval $ac_try) 2>&5 |
| 5192 | ac_status=$? |
| 5193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5194 | (exit $ac_status); }; }; then |
| 5195 | break |
| 5196 | else |
| 5197 | echo "$as_me: failed program was:" >&5 |
| 5198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5199 | |
| 5200 | fi |
| 5201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5202 | done |
| 5203 | rm -f conftest* |
| 5204 | if test -n "$ac_declaration"; then |
| 5205 | echo '#ifdef __cplusplus' >>confdefs.h |
| 5206 | echo $ac_declaration >>confdefs.h |
| 5207 | echo '#endif' >>confdefs.h |
| 5208 | fi |
| 5209 | |
| 5210 | else |
| 5211 | echo "$as_me: failed program was:" >&5 |
| 5212 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5213 | |
| 5214 | fi |
| 5215 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5216 | ac_ext=c |
| 5217 | ac_cpp='$CPP $CPPFLAGS' |
| 5218 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5219 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5220 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5221 | |
| 5222 | |
| 5223 | ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga zh_CN" |
| 5224 | # If we haven't got the data from the intl directory, |
| 5225 | # assume NLS is disabled. |
| 5226 | USE_NLS=no |
| 5227 | LIBINTL= |
| 5228 | LIBINTL_DEP= |
| 5229 | INCINTL= |
| 5230 | XGETTEXT= |
| 5231 | GMSGFMT= |
| 5232 | POSUB= |
| 5233 | |
| 5234 | if test -f ../intl/config.intl; then |
| 5235 | . ../intl/config.intl |
| 5236 | fi |
| 5237 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 5238 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 |
| 5239 | if test x"$USE_NLS" != xyes; then |
| 5240 | echo "$as_me:$LINENO: result: no" >&5 |
| 5241 | echo "${ECHO_T}no" >&6 |
| 5242 | else |
| 5243 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5244 | echo "${ECHO_T}yes" >&6 |
| 5245 | |
| 5246 | cat >>confdefs.h <<\_ACEOF |
| 5247 | #define ENABLE_NLS 1 |
| 5248 | _ACEOF |
| 5249 | |
| 5250 | |
| 5251 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
| 5252 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 |
| 5253 | # Look for .po and .gmo files in the source directory. |
| 5254 | CATALOGS= |
| 5255 | XLINGUAS= |
| 5256 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do |
| 5257 | # If there aren't any .gmo files the shell will give us the |
| 5258 | # literal string "../path/to/srcdir/po/*.gmo" which has to be |
| 5259 | # weeded out. |
| 5260 | case "$cat" in *\**) |
| 5261 | continue;; |
| 5262 | esac |
| 5263 | # The quadruple backslash is collapsed to a double backslash |
| 5264 | # by the backticks, then collapsed again by the double quotes, |
| 5265 | # leaving us with one backslash in the sed expression (right |
| 5266 | # before the dot that mustn't act as a wildcard). |
| 5267 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` |
| 5268 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` |
| 5269 | # The user is allowed to set LINGUAS to a list of languages to |
| 5270 | # install catalogs for. If it's empty that means "all of them." |
| 5271 | if test "x$LINGUAS" = x; then |
| 5272 | CATALOGS="$CATALOGS $cat" |
| 5273 | XLINGUAS="$XLINGUAS $lang" |
| 5274 | else |
| 5275 | case "$LINGUAS" in *$lang*) |
| 5276 | CATALOGS="$CATALOGS $cat" |
| 5277 | XLINGUAS="$XLINGUAS $lang" |
| 5278 | ;; |
| 5279 | esac |
| 5280 | fi |
| 5281 | done |
| 5282 | LINGUAS="$XLINGUAS" |
| 5283 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
| 5284 | echo "${ECHO_T}$LINGUAS" >&6 |
| 5285 | |
| 5286 | |
| 5287 | DATADIRNAME=share |
| 5288 | |
| 5289 | INSTOBJEXT=.mo |
| 5290 | |
| 5291 | GENCAT=gencat |
| 5292 | |
| 5293 | CATOBJEXT=.gmo |
| 5294 | |
| 5295 | fi |
| 5296 | |
| 5297 | MKINSTALLDIRS= |
| 5298 | if test -n "$ac_aux_dir"; then |
| 5299 | case "$ac_aux_dir" in |
| 5300 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 5301 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 5302 | esac |
| 5303 | fi |
| 5304 | if test -z "$MKINSTALLDIRS"; then |
| 5305 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 5306 | fi |
| 5307 | |
| 5308 | |
| 5309 | |
| 5310 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 5311 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 |
| 5312 | # Check whether --enable-nls or --disable-nls was given. |
| 5313 | if test "${enable_nls+set}" = set; then |
| 5314 | enableval="$enable_nls" |
| 5315 | USE_NLS=$enableval |
| 5316 | else |
| 5317 | USE_NLS=yes |
| 5318 | fi; |
| 5319 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 5320 | echo "${ECHO_T}$USE_NLS" >&6 |
| 5321 | |
| 5322 | |
| 5323 | |
| 5324 | |
| 5325 | |
| 5326 | |
| 5327 | # Prepare PATH_SEPARATOR. |
| 5328 | # The user is always right. |
| 5329 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5330 | echo "#! /bin/sh" >conf$$.sh |
| 5331 | echo "exit 0" >>conf$$.sh |
| 5332 | chmod +x conf$$.sh |
| 5333 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5334 | PATH_SEPARATOR=';' |
| 5335 | else |
| 5336 | PATH_SEPARATOR=: |
| 5337 | fi |
| 5338 | rm -f conf$$.sh |
| 5339 | fi |
| 5340 | |
| 5341 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5342 | # as systems may use methods other than mode bits to determine executability. |
| 5343 | cat >conf$$.file <<_ASEOF |
| 5344 | #! /bin/sh |
| 5345 | exit 0 |
| 5346 | _ASEOF |
| 5347 | chmod +x conf$$.file |
| 5348 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5349 | ac_executable_p="test -x" |
| 5350 | else |
| 5351 | ac_executable_p="test -f" |
| 5352 | fi |
| 5353 | rm -f conf$$.file |
| 5354 | |
| 5355 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 5356 | set dummy msgfmt; ac_word=$2 |
| 5357 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5358 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5359 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
| 5360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5361 | else |
| 5362 | case "$MSGFMT" in |
| 5363 | [\\/]* | ?:[\\/]*) |
| 5364 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 5365 | ;; |
| 5366 | *) |
| 5367 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5368 | for ac_dir in $PATH; do |
| 5369 | IFS="$ac_save_IFS" |
| 5370 | test -z "$ac_dir" && ac_dir=. |
| 5371 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5372 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5373 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 5374 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5375 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 5376 | break 2 |
| 5377 | fi |
| 5378 | fi |
| 5379 | done |
| 5380 | done |
| 5381 | IFS="$ac_save_IFS" |
| 5382 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 5383 | ;; |
| 5384 | esac |
| 5385 | fi |
| 5386 | MSGFMT="$ac_cv_path_MSGFMT" |
| 5387 | if test "$MSGFMT" != ":"; then |
| 5388 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 5389 | echo "${ECHO_T}$MSGFMT" >&6 |
| 5390 | else |
| 5391 | echo "$as_me:$LINENO: result: no" >&5 |
| 5392 | echo "${ECHO_T}no" >&6 |
| 5393 | fi |
| 5394 | |
| 5395 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 5396 | set dummy gmsgfmt; ac_word=$2 |
| 5397 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5398 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5399 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
| 5400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5401 | else |
| 5402 | case $GMSGFMT in |
| 5403 | [\\/]* | ?:[\\/]*) |
| 5404 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 5405 | ;; |
| 5406 | *) |
| 5407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5408 | for as_dir in $PATH |
| 5409 | do |
| 5410 | IFS=$as_save_IFS |
| 5411 | test -z "$as_dir" && as_dir=. |
| 5412 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5413 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5414 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
| 5415 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5416 | break 2 |
| 5417 | fi |
| 5418 | done |
| 5419 | done |
| 5420 | |
| 5421 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 5422 | ;; |
| 5423 | esac |
| 5424 | fi |
| 5425 | GMSGFMT=$ac_cv_path_GMSGFMT |
| 5426 | |
| 5427 | if test -n "$GMSGFMT"; then |
| 5428 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
| 5429 | echo "${ECHO_T}$GMSGFMT" >&6 |
| 5430 | else |
| 5431 | echo "$as_me:$LINENO: result: no" >&5 |
| 5432 | echo "${ECHO_T}no" >&6 |
| 5433 | fi |
| 5434 | |
| 5435 | |
| 5436 | |
| 5437 | # Prepare PATH_SEPARATOR. |
| 5438 | # The user is always right. |
| 5439 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5440 | echo "#! /bin/sh" >conf$$.sh |
| 5441 | echo "exit 0" >>conf$$.sh |
| 5442 | chmod +x conf$$.sh |
| 5443 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5444 | PATH_SEPARATOR=';' |
| 5445 | else |
| 5446 | PATH_SEPARATOR=: |
| 5447 | fi |
| 5448 | rm -f conf$$.sh |
| 5449 | fi |
| 5450 | |
| 5451 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5452 | # as systems may use methods other than mode bits to determine executability. |
| 5453 | cat >conf$$.file <<_ASEOF |
| 5454 | #! /bin/sh |
| 5455 | exit 0 |
| 5456 | _ASEOF |
| 5457 | chmod +x conf$$.file |
| 5458 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5459 | ac_executable_p="test -x" |
| 5460 | else |
| 5461 | ac_executable_p="test -f" |
| 5462 | fi |
| 5463 | rm -f conf$$.file |
| 5464 | |
| 5465 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 5466 | set dummy xgettext; ac_word=$2 |
| 5467 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5468 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5469 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
| 5470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5471 | else |
| 5472 | case "$XGETTEXT" in |
| 5473 | [\\/]* | ?:[\\/]*) |
| 5474 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 5475 | ;; |
| 5476 | *) |
| 5477 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5478 | for ac_dir in $PATH; do |
| 5479 | IFS="$ac_save_IFS" |
| 5480 | test -z "$ac_dir" && ac_dir=. |
| 5481 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5482 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5483 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 5484 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5485 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 5486 | break 2 |
| 5487 | fi |
| 5488 | fi |
| 5489 | done |
| 5490 | done |
| 5491 | IFS="$ac_save_IFS" |
| 5492 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 5493 | ;; |
| 5494 | esac |
| 5495 | fi |
| 5496 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 5497 | if test "$XGETTEXT" != ":"; then |
| 5498 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
| 5499 | echo "${ECHO_T}$XGETTEXT" >&6 |
| 5500 | else |
| 5501 | echo "$as_me:$LINENO: result: no" >&5 |
| 5502 | echo "${ECHO_T}no" >&6 |
| 5503 | fi |
| 5504 | |
| 5505 | rm -f messages.po |
| 5506 | |
| 5507 | |
| 5508 | # Prepare PATH_SEPARATOR. |
| 5509 | # The user is always right. |
| 5510 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5511 | echo "#! /bin/sh" >conf$$.sh |
| 5512 | echo "exit 0" >>conf$$.sh |
| 5513 | chmod +x conf$$.sh |
| 5514 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5515 | PATH_SEPARATOR=';' |
| 5516 | else |
| 5517 | PATH_SEPARATOR=: |
| 5518 | fi |
| 5519 | rm -f conf$$.sh |
| 5520 | fi |
| 5521 | |
| 5522 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5523 | # as systems may use methods other than mode bits to determine executability. |
| 5524 | cat >conf$$.file <<_ASEOF |
| 5525 | #! /bin/sh |
| 5526 | exit 0 |
| 5527 | _ASEOF |
| 5528 | chmod +x conf$$.file |
| 5529 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5530 | ac_executable_p="test -x" |
| 5531 | else |
| 5532 | ac_executable_p="test -f" |
| 5533 | fi |
| 5534 | rm -f conf$$.file |
| 5535 | |
| 5536 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 5537 | set dummy msgmerge; ac_word=$2 |
| 5538 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5539 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5540 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
| 5541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5542 | else |
| 5543 | case "$MSGMERGE" in |
| 5544 | [\\/]* | ?:[\\/]*) |
| 5545 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 5546 | ;; |
| 5547 | *) |
| 5548 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5549 | for ac_dir in $PATH; do |
| 5550 | IFS="$ac_save_IFS" |
| 5551 | test -z "$ac_dir" && ac_dir=. |
| 5552 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5553 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5554 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 5555 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 5556 | break 2 |
| 5557 | fi |
| 5558 | fi |
| 5559 | done |
| 5560 | done |
| 5561 | IFS="$ac_save_IFS" |
| 5562 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 5563 | ;; |
| 5564 | esac |
| 5565 | fi |
| 5566 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 5567 | if test "$MSGMERGE" != ":"; then |
| 5568 | echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
| 5569 | echo "${ECHO_T}$MSGMERGE" >&6 |
| 5570 | else |
| 5571 | echo "$as_me:$LINENO: result: no" >&5 |
| 5572 | echo "${ECHO_T}no" >&6 |
| 5573 | fi |
| 5574 | |
| 5575 | |
| 5576 | if test "$GMSGFMT" != ":"; then |
| 5577 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 5578 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5579 | : ; |
| 5580 | else |
| 5581 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
| 5582 | echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
| 5583 | echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 |
| 5584 | GMSGFMT=":" |
| 5585 | fi |
| 5586 | fi |
| 5587 | |
| 5588 | if test "$XGETTEXT" != ":"; then |
| 5589 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 5590 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5591 | : ; |
| 5592 | else |
| 5593 | echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
| 5594 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 |
| 5595 | XGETTEXT=":" |
| 5596 | fi |
| 5597 | rm -f messages.po |
| 5598 | fi |
| 5599 | |
| 5600 | ac_config_commands="$ac_config_commands default-1" |
| 5601 | |
| 5602 | |
| 5603 | |
| 5604 | . ${srcdir}/../bfd/configure.host |
| 5605 | |
| 5606 | # Put a plausible default for CC_FOR_BUILD in Makefile. |
| 5607 | if test -z "$CC_FOR_BUILD"; then |
| 5608 | if test "x$cross_compiling" = "xno"; then |
| 5609 | CC_FOR_BUILD='$(CC)' |
| 5610 | else |
| 5611 | CC_FOR_BUILD=gcc |
| 5612 | fi |
| 5613 | fi |
| 5614 | |
| 5615 | # Also set EXEEXT_FOR_BUILD. |
| 5616 | if test "x$cross_compiling" = "xno"; then |
| 5617 | EXEEXT_FOR_BUILD='$(EXEEXT)' |
| 5618 | else |
| 5619 | echo "$as_me:$LINENO: checking for build system executable suffix" >&5 |
| 5620 | echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6 |
| 5621 | if test "${bfd_cv_build_exeext+set}" = set; then |
| 5622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5623 | else |
| 5624 | rm -f conftest* |
| 5625 | echo 'int main () { return 0; }' > conftest.c |
| 5626 | bfd_cv_build_exeext= |
| 5627 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 |
| 5628 | for file in conftest.*; do |
| 5629 | case $file in |
| 5630 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; |
| 5631 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 5632 | esac |
| 5633 | done |
| 5634 | rm -f conftest* |
| 5635 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no |
| 5636 | fi |
| 5637 | echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5 |
| 5638 | echo "${ECHO_T}$bfd_cv_build_exeext" >&6 |
| 5639 | EXEEXT_FOR_BUILD="" |
| 5640 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} |
| 5641 | fi |
| 5642 | |
| 5643 | |
| 5644 | |
| 5645 | # Find a good install program. We prefer a C program (faster), |
| 5646 | # so one script is as good as another. But avoid the broken or |
| 5647 | # incompatible versions: |
| 5648 | # SysV /etc/install, /usr/sbin/install |
| 5649 | # SunOS /usr/etc/install |
| 5650 | # IRIX /sbin/install |
| 5651 | # AIX /bin/install |
| 5652 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 5653 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5654 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5655 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 5656 | # OS/2's system install, which has a completely different semantic |
| 5657 | # ./install, which can be erroneously created by make from ./install.sh. |
| 5658 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 5659 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 5660 | if test -z "$INSTALL"; then |
| 5661 | if test "${ac_cv_path_install+set}" = set; then |
| 5662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5663 | else |
| 5664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5665 | for as_dir in $PATH |
| 5666 | do |
| 5667 | IFS=$as_save_IFS |
| 5668 | test -z "$as_dir" && as_dir=. |
| 5669 | # Account for people who put trailing slashes in PATH elements. |
| 5670 | case $as_dir/ in |
| 5671 | ./ | .// | /cC/* | \ |
| 5672 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 5673 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 5674 | /usr/ucb/* ) ;; |
| 5675 | *) |
| 5676 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5677 | # Don't use installbsd from OSF since it installs stuff as root |
| 5678 | # by default. |
| 5679 | for ac_prog in ginstall scoinst install; do |
| 5680 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5681 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 5682 | if test $ac_prog = install && |
| 5683 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5684 | # AIX install. It has an incompatible calling convention. |
| 5685 | : |
| 5686 | elif test $ac_prog = install && |
| 5687 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5688 | # program-specific install script used by HP pwplus--don't use. |
| 5689 | : |
| 5690 | else |
| 5691 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5692 | break 3 |
| 5693 | fi |
| 5694 | fi |
| 5695 | done |
| 5696 | done |
| 5697 | ;; |
| 5698 | esac |
| 5699 | done |
| 5700 | |
| 5701 | |
| 5702 | fi |
| 5703 | if test "${ac_cv_path_install+set}" = set; then |
| 5704 | INSTALL=$ac_cv_path_install |
| 5705 | else |
| 5706 | # As a last resort, use the slow shell script. We don't cache a |
| 5707 | # path for INSTALL within a source directory, because that will |
| 5708 | # break other packages using the cache if that directory is |
| 5709 | # removed, or if the path is relative. |
| 5710 | INSTALL=$ac_install_sh |
| 5711 | fi |
| 5712 | fi |
| 5713 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 5714 | echo "${ECHO_T}$INSTALL" >&6 |
| 5715 | |
| 5716 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5717 | # It thinks the first close brace ends the variable substitution. |
| 5718 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5719 | |
| 5720 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 5721 | |
| 5722 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5723 | |
| 5724 | |
| 5725 | ac_ext=c |
| 5726 | ac_cpp='$CPP $CPPFLAGS' |
| 5727 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5728 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5729 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5730 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5731 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 5732 | # On Suns, sometimes $CPP names a directory. |
| 5733 | if test -n "$CPP" && test -d "$CPP"; then |
| 5734 | CPP= |
| 5735 | fi |
| 5736 | if test -z "$CPP"; then |
| 5737 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5739 | else |
| 5740 | # Double quotes because CPP needs to be expanded |
| 5741 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5742 | do |
| 5743 | ac_preproc_ok=false |
| 5744 | for ac_c_preproc_warn_flag in '' yes |
| 5745 | do |
| 5746 | # Use a header file that comes with gcc, so configuring glibc |
| 5747 | # with a fresh cross-compiler works. |
| 5748 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5749 | # <limits.h> exists even on freestanding compilers. |
| 5750 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5751 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5752 | cat >conftest.$ac_ext <<_ACEOF |
| 5753 | /* confdefs.h. */ |
| 5754 | _ACEOF |
| 5755 | cat confdefs.h >>conftest.$ac_ext |
| 5756 | cat >>conftest.$ac_ext <<_ACEOF |
| 5757 | /* end confdefs.h. */ |
| 5758 | #ifdef __STDC__ |
| 5759 | # include <limits.h> |
| 5760 | #else |
| 5761 | # include <assert.h> |
| 5762 | #endif |
| 5763 | Syntax error |
| 5764 | _ACEOF |
| 5765 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5766 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5767 | ac_status=$? |
| 5768 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5769 | rm -f conftest.er1 |
| 5770 | cat conftest.err >&5 |
| 5771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5772 | (exit $ac_status); } >/dev/null; then |
| 5773 | if test -s conftest.err; then |
| 5774 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5775 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5776 | else |
| 5777 | ac_cpp_err= |
| 5778 | fi |
| 5779 | else |
| 5780 | ac_cpp_err=yes |
| 5781 | fi |
| 5782 | if test -z "$ac_cpp_err"; then |
| 5783 | : |
| 5784 | else |
| 5785 | echo "$as_me: failed program was:" >&5 |
| 5786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5787 | |
| 5788 | # Broken: fails on valid input. |
| 5789 | continue |
| 5790 | fi |
| 5791 | rm -f conftest.err conftest.$ac_ext |
| 5792 | |
| 5793 | # OK, works on sane cases. Now check whether non-existent headers |
| 5794 | # can be detected and how. |
| 5795 | cat >conftest.$ac_ext <<_ACEOF |
| 5796 | /* confdefs.h. */ |
| 5797 | _ACEOF |
| 5798 | cat confdefs.h >>conftest.$ac_ext |
| 5799 | cat >>conftest.$ac_ext <<_ACEOF |
| 5800 | /* end confdefs.h. */ |
| 5801 | #include <ac_nonexistent.h> |
| 5802 | _ACEOF |
| 5803 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5804 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5805 | ac_status=$? |
| 5806 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5807 | rm -f conftest.er1 |
| 5808 | cat conftest.err >&5 |
| 5809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5810 | (exit $ac_status); } >/dev/null; then |
| 5811 | if test -s conftest.err; then |
| 5812 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5813 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5814 | else |
| 5815 | ac_cpp_err= |
| 5816 | fi |
| 5817 | else |
| 5818 | ac_cpp_err=yes |
| 5819 | fi |
| 5820 | if test -z "$ac_cpp_err"; then |
| 5821 | # Broken: success on invalid input. |
| 5822 | continue |
| 5823 | else |
| 5824 | echo "$as_me: failed program was:" >&5 |
| 5825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5826 | |
| 5827 | # Passes both tests. |
| 5828 | ac_preproc_ok=: |
| 5829 | break |
| 5830 | fi |
| 5831 | rm -f conftest.err conftest.$ac_ext |
| 5832 | |
| 5833 | done |
| 5834 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5835 | rm -f conftest.err conftest.$ac_ext |
| 5836 | if $ac_preproc_ok; then |
| 5837 | break |
| 5838 | fi |
| 5839 | |
| 5840 | done |
| 5841 | ac_cv_prog_CPP=$CPP |
| 5842 | |
| 5843 | fi |
| 5844 | CPP=$ac_cv_prog_CPP |
| 5845 | else |
| 5846 | ac_cv_prog_CPP=$CPP |
| 5847 | fi |
| 5848 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5849 | echo "${ECHO_T}$CPP" >&6 |
| 5850 | ac_preproc_ok=false |
| 5851 | for ac_c_preproc_warn_flag in '' yes |
| 5852 | do |
| 5853 | # Use a header file that comes with gcc, so configuring glibc |
| 5854 | # with a fresh cross-compiler works. |
| 5855 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5856 | # <limits.h> exists even on freestanding compilers. |
| 5857 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5858 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5859 | cat >conftest.$ac_ext <<_ACEOF |
| 5860 | /* confdefs.h. */ |
| 5861 | _ACEOF |
| 5862 | cat confdefs.h >>conftest.$ac_ext |
| 5863 | cat >>conftest.$ac_ext <<_ACEOF |
| 5864 | /* end confdefs.h. */ |
| 5865 | #ifdef __STDC__ |
| 5866 | # include <limits.h> |
| 5867 | #else |
| 5868 | # include <assert.h> |
| 5869 | #endif |
| 5870 | Syntax error |
| 5871 | _ACEOF |
| 5872 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5873 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5874 | ac_status=$? |
| 5875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5876 | rm -f conftest.er1 |
| 5877 | cat conftest.err >&5 |
| 5878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5879 | (exit $ac_status); } >/dev/null; then |
| 5880 | if test -s conftest.err; then |
| 5881 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5882 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5883 | else |
| 5884 | ac_cpp_err= |
| 5885 | fi |
| 5886 | else |
| 5887 | ac_cpp_err=yes |
| 5888 | fi |
| 5889 | if test -z "$ac_cpp_err"; then |
| 5890 | : |
| 5891 | else |
| 5892 | echo "$as_me: failed program was:" >&5 |
| 5893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5894 | |
| 5895 | # Broken: fails on valid input. |
| 5896 | continue |
| 5897 | fi |
| 5898 | rm -f conftest.err conftest.$ac_ext |
| 5899 | |
| 5900 | # OK, works on sane cases. Now check whether non-existent headers |
| 5901 | # can be detected and how. |
| 5902 | cat >conftest.$ac_ext <<_ACEOF |
| 5903 | /* confdefs.h. */ |
| 5904 | _ACEOF |
| 5905 | cat confdefs.h >>conftest.$ac_ext |
| 5906 | cat >>conftest.$ac_ext <<_ACEOF |
| 5907 | /* end confdefs.h. */ |
| 5908 | #include <ac_nonexistent.h> |
| 5909 | _ACEOF |
| 5910 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5911 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5912 | ac_status=$? |
| 5913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5914 | rm -f conftest.er1 |
| 5915 | cat conftest.err >&5 |
| 5916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5917 | (exit $ac_status); } >/dev/null; then |
| 5918 | if test -s conftest.err; then |
| 5919 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5920 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5921 | else |
| 5922 | ac_cpp_err= |
| 5923 | fi |
| 5924 | else |
| 5925 | ac_cpp_err=yes |
| 5926 | fi |
| 5927 | if test -z "$ac_cpp_err"; then |
| 5928 | # Broken: success on invalid input. |
| 5929 | continue |
| 5930 | else |
| 5931 | echo "$as_me: failed program was:" >&5 |
| 5932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5933 | |
| 5934 | # Passes both tests. |
| 5935 | ac_preproc_ok=: |
| 5936 | break |
| 5937 | fi |
| 5938 | rm -f conftest.err conftest.$ac_ext |
| 5939 | |
| 5940 | done |
| 5941 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5942 | rm -f conftest.err conftest.$ac_ext |
| 5943 | if $ac_preproc_ok; then |
| 5944 | : |
| 5945 | else |
| 5946 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5947 | See \`config.log' for more details." >&5 |
| 5948 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5949 | See \`config.log' for more details." >&2;} |
| 5950 | { (exit 1); exit 1; }; } |
| 5951 | fi |
| 5952 | |
| 5953 | ac_ext=c |
| 5954 | ac_cpp='$CPP $CPPFLAGS' |
| 5955 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5956 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5957 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5958 | |
| 5959 | |
| 5960 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 5961 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 5962 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 5963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5964 | else |
| 5965 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 5966 | then ac_cv_prog_egrep='grep -E' |
| 5967 | else ac_cv_prog_egrep='egrep' |
| 5968 | fi |
| 5969 | fi |
| 5970 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 5971 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 5972 | EGREP=$ac_cv_prog_egrep |
| 5973 | |
| 5974 | |
| 5975 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5976 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 5977 | if test "${ac_cv_header_stdc+set}" = set; then |
| 5978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5979 | else |
| 5980 | cat >conftest.$ac_ext <<_ACEOF |
| 5981 | /* confdefs.h. */ |
| 5982 | _ACEOF |
| 5983 | cat confdefs.h >>conftest.$ac_ext |
| 5984 | cat >>conftest.$ac_ext <<_ACEOF |
| 5985 | /* end confdefs.h. */ |
| 5986 | #include <stdlib.h> |
| 5987 | #include <stdarg.h> |
| 5988 | #include <string.h> |
| 5989 | #include <float.h> |
| 5990 | |
| 5991 | int |
| 5992 | main () |
| 5993 | { |
| 5994 | |
| 5995 | ; |
| 5996 | return 0; |
| 5997 | } |
| 5998 | _ACEOF |
| 5999 | rm -f conftest.$ac_objext |
| 6000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6001 | (eval $ac_compile) 2>conftest.er1 |
| 6002 | ac_status=$? |
| 6003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6004 | rm -f conftest.er1 |
| 6005 | cat conftest.err >&5 |
| 6006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6007 | (exit $ac_status); } && |
| 6008 | { ac_try='test -z "$ac_c_werror_flag" |
| 6009 | || test ! -s conftest.err' |
| 6010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6011 | (eval $ac_try) 2>&5 |
| 6012 | ac_status=$? |
| 6013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6014 | (exit $ac_status); }; } && |
| 6015 | { ac_try='test -s conftest.$ac_objext' |
| 6016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6017 | (eval $ac_try) 2>&5 |
| 6018 | ac_status=$? |
| 6019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6020 | (exit $ac_status); }; }; then |
| 6021 | ac_cv_header_stdc=yes |
| 6022 | else |
| 6023 | echo "$as_me: failed program was:" >&5 |
| 6024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6025 | |
| 6026 | ac_cv_header_stdc=no |
| 6027 | fi |
| 6028 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6029 | |
| 6030 | if test $ac_cv_header_stdc = yes; then |
| 6031 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 6032 | cat >conftest.$ac_ext <<_ACEOF |
| 6033 | /* confdefs.h. */ |
| 6034 | _ACEOF |
| 6035 | cat confdefs.h >>conftest.$ac_ext |
| 6036 | cat >>conftest.$ac_ext <<_ACEOF |
| 6037 | /* end confdefs.h. */ |
| 6038 | #include <string.h> |
| 6039 | |
| 6040 | _ACEOF |
| 6041 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6042 | $EGREP "memchr" >/dev/null 2>&1; then |
| 6043 | : |
| 6044 | else |
| 6045 | ac_cv_header_stdc=no |
| 6046 | fi |
| 6047 | rm -f conftest* |
| 6048 | |
| 6049 | fi |
| 6050 | |
| 6051 | if test $ac_cv_header_stdc = yes; then |
| 6052 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6053 | cat >conftest.$ac_ext <<_ACEOF |
| 6054 | /* confdefs.h. */ |
| 6055 | _ACEOF |
| 6056 | cat confdefs.h >>conftest.$ac_ext |
| 6057 | cat >>conftest.$ac_ext <<_ACEOF |
| 6058 | /* end confdefs.h. */ |
| 6059 | #include <stdlib.h> |
| 6060 | |
| 6061 | _ACEOF |
| 6062 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6063 | $EGREP "free" >/dev/null 2>&1; then |
| 6064 | : |
| 6065 | else |
| 6066 | ac_cv_header_stdc=no |
| 6067 | fi |
| 6068 | rm -f conftest* |
| 6069 | |
| 6070 | fi |
| 6071 | |
| 6072 | if test $ac_cv_header_stdc = yes; then |
| 6073 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6074 | if test "$cross_compiling" = yes; then |
| 6075 | : |
| 6076 | else |
| 6077 | cat >conftest.$ac_ext <<_ACEOF |
| 6078 | /* confdefs.h. */ |
| 6079 | _ACEOF |
| 6080 | cat confdefs.h >>conftest.$ac_ext |
| 6081 | cat >>conftest.$ac_ext <<_ACEOF |
| 6082 | /* end confdefs.h. */ |
| 6083 | #include <ctype.h> |
| 6084 | #if ((' ' & 0x0FF) == 0x020) |
| 6085 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6086 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6087 | #else |
| 6088 | # define ISLOWER(c) \ |
| 6089 | (('a' <= (c) && (c) <= 'i') \ |
| 6090 | || ('j' <= (c) && (c) <= 'r') \ |
| 6091 | || ('s' <= (c) && (c) <= 'z')) |
| 6092 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6093 | #endif |
| 6094 | |
| 6095 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6096 | int |
| 6097 | main () |
| 6098 | { |
| 6099 | int i; |
| 6100 | for (i = 0; i < 256; i++) |
| 6101 | if (XOR (islower (i), ISLOWER (i)) |
| 6102 | || toupper (i) != TOUPPER (i)) |
| 6103 | exit(2); |
| 6104 | exit (0); |
| 6105 | } |
| 6106 | _ACEOF |
| 6107 | rm -f conftest$ac_exeext |
| 6108 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6109 | (eval $ac_link) 2>&5 |
| 6110 | ac_status=$? |
| 6111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6112 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6114 | (eval $ac_try) 2>&5 |
| 6115 | ac_status=$? |
| 6116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6117 | (exit $ac_status); }; }; then |
| 6118 | : |
| 6119 | else |
| 6120 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6121 | echo "$as_me: failed program was:" >&5 |
| 6122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6123 | |
| 6124 | ( exit $ac_status ) |
| 6125 | ac_cv_header_stdc=no |
| 6126 | fi |
| 6127 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6128 | fi |
| 6129 | fi |
| 6130 | fi |
| 6131 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 6132 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 6133 | if test $ac_cv_header_stdc = yes; then |
| 6134 | |
| 6135 | cat >>confdefs.h <<\_ACEOF |
| 6136 | #define STDC_HEADERS 1 |
| 6137 | _ACEOF |
| 6138 | |
| 6139 | fi |
| 6140 | |
| 6141 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6142 | |
| 6143 | |
| 6144 | |
| 6145 | |
| 6146 | |
| 6147 | |
| 6148 | |
| 6149 | |
| 6150 | |
| 6151 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6152 | inttypes.h stdint.h unistd.h |
| 6153 | do |
| 6154 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6155 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6156 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6157 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6159 | else |
| 6160 | cat >conftest.$ac_ext <<_ACEOF |
| 6161 | /* confdefs.h. */ |
| 6162 | _ACEOF |
| 6163 | cat confdefs.h >>conftest.$ac_ext |
| 6164 | cat >>conftest.$ac_ext <<_ACEOF |
| 6165 | /* end confdefs.h. */ |
| 6166 | $ac_includes_default |
| 6167 | |
| 6168 | #include <$ac_header> |
| 6169 | _ACEOF |
| 6170 | rm -f conftest.$ac_objext |
| 6171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6172 | (eval $ac_compile) 2>conftest.er1 |
| 6173 | ac_status=$? |
| 6174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6175 | rm -f conftest.er1 |
| 6176 | cat conftest.err >&5 |
| 6177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6178 | (exit $ac_status); } && |
| 6179 | { ac_try='test -z "$ac_c_werror_flag" |
| 6180 | || test ! -s conftest.err' |
| 6181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6182 | (eval $ac_try) 2>&5 |
| 6183 | ac_status=$? |
| 6184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6185 | (exit $ac_status); }; } && |
| 6186 | { ac_try='test -s conftest.$ac_objext' |
| 6187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6188 | (eval $ac_try) 2>&5 |
| 6189 | ac_status=$? |
| 6190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6191 | (exit $ac_status); }; }; then |
| 6192 | eval "$as_ac_Header=yes" |
| 6193 | else |
| 6194 | echo "$as_me: failed program was:" >&5 |
| 6195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6196 | |
| 6197 | eval "$as_ac_Header=no" |
| 6198 | fi |
| 6199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6200 | fi |
| 6201 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6202 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6203 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6204 | cat >>confdefs.h <<_ACEOF |
| 6205 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6206 | _ACEOF |
| 6207 | |
| 6208 | fi |
| 6209 | |
| 6210 | done |
| 6211 | |
| 6212 | |
| 6213 | |
| 6214 | |
| 6215 | |
| 6216 | for ac_header in string.h strings.h stdlib.h |
| 6217 | do |
| 6218 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6219 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6220 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6221 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6222 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6224 | fi |
| 6225 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6226 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6227 | else |
| 6228 | # Is the header compilable? |
| 6229 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6230 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 6231 | cat >conftest.$ac_ext <<_ACEOF |
| 6232 | /* confdefs.h. */ |
| 6233 | _ACEOF |
| 6234 | cat confdefs.h >>conftest.$ac_ext |
| 6235 | cat >>conftest.$ac_ext <<_ACEOF |
| 6236 | /* end confdefs.h. */ |
| 6237 | $ac_includes_default |
| 6238 | #include <$ac_header> |
| 6239 | _ACEOF |
| 6240 | rm -f conftest.$ac_objext |
| 6241 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6242 | (eval $ac_compile) 2>conftest.er1 |
| 6243 | ac_status=$? |
| 6244 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6245 | rm -f conftest.er1 |
| 6246 | cat conftest.err >&5 |
| 6247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6248 | (exit $ac_status); } && |
| 6249 | { ac_try='test -z "$ac_c_werror_flag" |
| 6250 | || test ! -s conftest.err' |
| 6251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6252 | (eval $ac_try) 2>&5 |
| 6253 | ac_status=$? |
| 6254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6255 | (exit $ac_status); }; } && |
| 6256 | { ac_try='test -s conftest.$ac_objext' |
| 6257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6258 | (eval $ac_try) 2>&5 |
| 6259 | ac_status=$? |
| 6260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6261 | (exit $ac_status); }; }; then |
| 6262 | ac_header_compiler=yes |
| 6263 | else |
| 6264 | echo "$as_me: failed program was:" >&5 |
| 6265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6266 | |
| 6267 | ac_header_compiler=no |
| 6268 | fi |
| 6269 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6270 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6271 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6272 | |
| 6273 | # Is the header present? |
| 6274 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6275 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 6276 | cat >conftest.$ac_ext <<_ACEOF |
| 6277 | /* confdefs.h. */ |
| 6278 | _ACEOF |
| 6279 | cat confdefs.h >>conftest.$ac_ext |
| 6280 | cat >>conftest.$ac_ext <<_ACEOF |
| 6281 | /* end confdefs.h. */ |
| 6282 | #include <$ac_header> |
| 6283 | _ACEOF |
| 6284 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6285 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6286 | ac_status=$? |
| 6287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6288 | rm -f conftest.er1 |
| 6289 | cat conftest.err >&5 |
| 6290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6291 | (exit $ac_status); } >/dev/null; then |
| 6292 | if test -s conftest.err; then |
| 6293 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6294 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6295 | else |
| 6296 | ac_cpp_err= |
| 6297 | fi |
| 6298 | else |
| 6299 | ac_cpp_err=yes |
| 6300 | fi |
| 6301 | if test -z "$ac_cpp_err"; then |
| 6302 | ac_header_preproc=yes |
| 6303 | else |
| 6304 | echo "$as_me: failed program was:" >&5 |
| 6305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6306 | |
| 6307 | ac_header_preproc=no |
| 6308 | fi |
| 6309 | rm -f conftest.err conftest.$ac_ext |
| 6310 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6311 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6312 | |
| 6313 | # So? What about this header? |
| 6314 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6315 | yes:no: ) |
| 6316 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6317 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6318 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6319 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6320 | ac_header_preproc=yes |
| 6321 | ;; |
| 6322 | no:yes:* ) |
| 6323 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6324 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6325 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6326 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6327 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6328 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6329 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6330 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6331 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6332 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6333 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6334 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 6335 | ( |
| 6336 | cat <<\_ASBOX |
| 6337 | ## ------------------------------------------ ## |
| 6338 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 6339 | ## ------------------------------------------ ## |
| 6340 | _ASBOX |
| 6341 | ) | |
| 6342 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6343 | ;; |
| 6344 | esac |
| 6345 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6346 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6347 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6349 | else |
| 6350 | eval "$as_ac_Header=\$ac_header_preproc" |
| 6351 | fi |
| 6352 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6353 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6354 | |
| 6355 | fi |
| 6356 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6357 | cat >>confdefs.h <<_ACEOF |
| 6358 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6359 | _ACEOF |
| 6360 | |
| 6361 | fi |
| 6362 | |
| 6363 | done |
| 6364 | |
| 6365 | |
| 6366 | echo "$as_me:$LINENO: checking whether basename is declared" >&5 |
| 6367 | echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6 |
| 6368 | if test "${ac_cv_have_decl_basename+set}" = set; then |
| 6369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6370 | else |
| 6371 | cat >conftest.$ac_ext <<_ACEOF |
| 6372 | /* confdefs.h. */ |
| 6373 | _ACEOF |
| 6374 | cat confdefs.h >>conftest.$ac_ext |
| 6375 | cat >>conftest.$ac_ext <<_ACEOF |
| 6376 | /* end confdefs.h. */ |
| 6377 | $ac_includes_default |
| 6378 | int |
| 6379 | main () |
| 6380 | { |
| 6381 | #ifndef basename |
| 6382 | char *p = (char *) basename; |
| 6383 | #endif |
| 6384 | |
| 6385 | ; |
| 6386 | return 0; |
| 6387 | } |
| 6388 | _ACEOF |
| 6389 | rm -f conftest.$ac_objext |
| 6390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6391 | (eval $ac_compile) 2>conftest.er1 |
| 6392 | ac_status=$? |
| 6393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6394 | rm -f conftest.er1 |
| 6395 | cat conftest.err >&5 |
| 6396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6397 | (exit $ac_status); } && |
| 6398 | { ac_try='test -z "$ac_c_werror_flag" |
| 6399 | || test ! -s conftest.err' |
| 6400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6401 | (eval $ac_try) 2>&5 |
| 6402 | ac_status=$? |
| 6403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6404 | (exit $ac_status); }; } && |
| 6405 | { ac_try='test -s conftest.$ac_objext' |
| 6406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6407 | (eval $ac_try) 2>&5 |
| 6408 | ac_status=$? |
| 6409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6410 | (exit $ac_status); }; }; then |
| 6411 | ac_cv_have_decl_basename=yes |
| 6412 | else |
| 6413 | echo "$as_me: failed program was:" >&5 |
| 6414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6415 | |
| 6416 | ac_cv_have_decl_basename=no |
| 6417 | fi |
| 6418 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6419 | fi |
| 6420 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5 |
| 6421 | echo "${ECHO_T}$ac_cv_have_decl_basename" >&6 |
| 6422 | if test $ac_cv_have_decl_basename = yes; then |
| 6423 | |
| 6424 | cat >>confdefs.h <<_ACEOF |
| 6425 | #define HAVE_DECL_BASENAME 1 |
| 6426 | _ACEOF |
| 6427 | |
| 6428 | |
| 6429 | else |
| 6430 | cat >>confdefs.h <<_ACEOF |
| 6431 | #define HAVE_DECL_BASENAME 0 |
| 6432 | _ACEOF |
| 6433 | |
| 6434 | |
| 6435 | fi |
| 6436 | |
| 6437 | |
| 6438 | |
| 6439 | cgen_maint=no |
| 6440 | cgendir='$(srcdir)/../cgen' |
| 6441 | |
| 6442 | # Check whether --enable-cgen-maint or --disable-cgen-maint was given. |
| 6443 | if test "${enable_cgen_maint+set}" = set; then |
| 6444 | enableval="$enable_cgen_maint" |
| 6445 | case "${enableval}" in |
| 6446 | yes) cgen_maint=yes ;; |
| 6447 | no) cgen_maint=no ;; |
| 6448 | *) |
| 6449 | # argument is cgen install directory (not implemented yet). |
| 6450 | # Having a `share' directory might be more appropriate for the .scm, |
| 6451 | # .cpu, etc. files. |
| 6452 | cgen_maint=yes |
| 6453 | cgendir=${cgen_maint}/lib/cgen |
| 6454 | ;; |
| 6455 | esac |
| 6456 | fi; |
| 6457 | |
| 6458 | if test x${cgen_maint} = xyes; then |
| 6459 | CGEN_MAINT_TRUE= |
| 6460 | CGEN_MAINT_FALSE='#' |
| 6461 | else |
| 6462 | CGEN_MAINT_TRUE='#' |
| 6463 | CGEN_MAINT_FALSE= |
| 6464 | fi |
| 6465 | |
| 6466 | |
| 6467 | |
| 6468 | using_cgen=no |
| 6469 | |
| 6470 | # Horrible hacks to build DLLs on Windows. |
| 6471 | WIN32LDFLAGS= |
| 6472 | WIN32LIBADD= |
| 6473 | case "${host}" in |
| 6474 | *-*-cygwin*) |
| 6475 | if test "$enable_shared" = "yes"; then |
| 6476 | WIN32LDFLAGS="-no-undefined" |
| 6477 | WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin" |
| 6478 | fi |
| 6479 | ;; |
| 6480 | esac |
| 6481 | |
| 6482 | |
| 6483 | |
| 6484 | # target-specific stuff: |
| 6485 | |
| 6486 | # Canonicalize the secondary target names. |
| 6487 | if test -n "$enable_targets" ; then |
| 6488 | for targ in `echo $enable_targets | sed 's/,/ /g'` |
| 6489 | do |
| 6490 | result=`$ac_config_sub $targ 2>/dev/null` |
| 6491 | if test -n "$result" ; then |
| 6492 | canon_targets="$canon_targets $result" |
| 6493 | else |
| 6494 | # Allow targets that config.sub doesn't recognize, like "all". |
| 6495 | canon_targets="$canon_targets $targ" |
| 6496 | fi |
| 6497 | done |
| 6498 | fi |
| 6499 | |
| 6500 | all_targets=false |
| 6501 | selarchs= |
| 6502 | for targ in $target $canon_targets |
| 6503 | do |
| 6504 | if test "x$targ" = "xall" ; then |
| 6505 | all_targets=true |
| 6506 | else |
| 6507 | . $srcdir/../bfd/config.bfd |
| 6508 | selarchs="$selarchs $targ_archs" |
| 6509 | fi |
| 6510 | done |
| 6511 | |
| 6512 | # Utility var, documents generic cgen support files. |
| 6513 | |
| 6514 | cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo" |
| 6515 | |
| 6516 | # We don't do any links based on the target system, just makefile config. |
| 6517 | |
| 6518 | if test x${all_targets} = xfalse ; then |
| 6519 | |
| 6520 | # Target architecture .o files. |
| 6521 | ta= |
| 6522 | |
| 6523 | for arch in $selarchs |
| 6524 | do |
| 6525 | ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g` |
| 6526 | archdefs="$archdefs -DARCH_$ad" |
| 6527 | case "$arch" in |
| 6528 | bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;; |
| 6529 | bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;; |
| 6530 | bfd_arm_arch) ta="$ta arm-dis.lo" ;; |
| 6531 | bfd_avr_arch) ta="$ta avr-dis.lo" ;; |
| 6532 | bfd_bfin_arch) ta="$ta bfin-dis.lo" ;; |
| 6533 | bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;; |
| 6534 | bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;; |
| 6535 | bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;; |
| 6536 | bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;; |
| 6537 | bfd_dlx_arch) ta="$ta dlx-dis.lo" ;; |
| 6538 | bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;; |
| 6539 | bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;; |
| 6540 | bfd_h8300_arch) ta="$ta h8300-dis.lo" ;; |
| 6541 | bfd_h8500_arch) ta="$ta h8500-dis.lo" ;; |
| 6542 | bfd_hppa_arch) ta="$ta hppa-dis.lo" ;; |
| 6543 | bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;; |
| 6544 | bfd_i386_arch) ta="$ta i386-dis.lo" ;; |
| 6545 | bfd_i860_arch) ta="$ta i860-dis.lo" ;; |
| 6546 | bfd_i960_arch) ta="$ta i960-dis.lo" ;; |
| 6547 | bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;; |
| 6548 | bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;; |
| 6549 | bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;; |
| 6550 | bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;; |
| 6551 | bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;; |
| 6552 | bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; |
| 6553 | bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; |
| 6554 | bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;; |
| 6555 | bfd_m88k_arch) ta="$ta m88k-dis.lo" ;; |
| 6556 | bfd_maxq_arch) ta="$ta maxq-dis.lo" ;; |
| 6557 | bfd_mcore_arch) ta="$ta mcore-dis.lo" ;; |
| 6558 | bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;; |
| 6559 | bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;; |
| 6560 | bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;; |
| 6561 | bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;; |
| 6562 | bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;; |
| 6563 | bfd_msp430_arch) ta="$ta msp430-dis.lo" ;; |
| 6564 | bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;; |
| 6565 | bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;; |
| 6566 | bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;; |
| 6567 | bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;; |
| 6568 | bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;; |
| 6569 | bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; |
| 6570 | bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; |
| 6571 | bfd_pyramid_arch) ;; |
| 6572 | bfd_romp_arch) ;; |
| 6573 | bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; |
| 6574 | bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;; |
| 6575 | bfd_score_arch) ta="$ta score-dis.lo" ;; |
| 6576 | bfd_sh_arch) |
| 6577 | # We can't decide what we want just from the CPU family. |
| 6578 | # We want SH5 support unless a specific version of sh is |
| 6579 | # specified, as in sh3-elf, sh3b-linux-gnu, etc. |
| 6580 | # Include it just for ELF targets, since the SH5 bfd:s are ELF only. |
| 6581 | for t in $target $canon_targets; do |
| 6582 | case $t in |
| 6583 | all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \ |
| 6584 | sh-*-linux* | shl-*-linux*) |
| 6585 | ta="$ta sh64-dis.lo sh64-opc.lo" |
| 6586 | archdefs="$archdefs -DINCLUDE_SHMEDIA" |
| 6587 | break;; |
| 6588 | esac; |
| 6589 | done |
| 6590 | ta="$ta sh-dis.lo cgen-bitset.lo" ;; |
| 6591 | bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;; |
| 6592 | bfd_tahoe_arch) ;; |
| 6593 | bfd_tic30_arch) ta="$ta tic30-dis.lo" ;; |
| 6594 | bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;; |
| 6595 | bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;; |
| 6596 | bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;; |
| 6597 | bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; |
| 6598 | bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; |
| 6599 | bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; |
| 6600 | bfd_vax_arch) ta="$ta vax-dis.lo" ;; |
| 6601 | bfd_w65_arch) ta="$ta w65-dis.lo" ;; |
| 6602 | bfd_we32k_arch) ;; |
| 6603 | bfd_xc16x_arch) ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;; |
| 6604 | bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;; |
| 6605 | bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;; |
| 6606 | bfd_z80_arch) ta="$ta z80-dis.lo" ;; |
| 6607 | bfd_z8k_arch) ta="$ta z8k-dis.lo" ;; |
| 6608 | |
| 6609 | "") ;; |
| 6610 | *) { { echo "$as_me:$LINENO: error: *** unknown target architecture $arch" >&5 |
| 6611 | echo "$as_me: error: *** unknown target architecture $arch" >&2;} |
| 6612 | { (exit 1); exit 1; }; } ;; |
| 6613 | esac |
| 6614 | done |
| 6615 | |
| 6616 | if test $using_cgen = yes ; then |
| 6617 | ta="$ta $cgen_files" |
| 6618 | fi |
| 6619 | |
| 6620 | # Weed out duplicate .o files. |
| 6621 | f="" |
| 6622 | for i in $ta ; do |
| 6623 | case " $f " in |
| 6624 | *" $i "*) ;; |
| 6625 | *) f="$f $i" ;; |
| 6626 | esac |
| 6627 | done |
| 6628 | ta="$f" |
| 6629 | |
| 6630 | # And duplicate -D flags. |
| 6631 | f="" |
| 6632 | for i in $archdefs ; do |
| 6633 | case " $f " in |
| 6634 | *" $i "*) ;; |
| 6635 | *) f="$f $i" ;; |
| 6636 | esac |
| 6637 | done |
| 6638 | archdefs="$f" |
| 6639 | |
| 6640 | BFD_MACHINES="$ta" |
| 6641 | |
| 6642 | else # all_targets is true |
| 6643 | archdefs=-DARCH_all |
| 6644 | BFD_MACHINES='$(ALL_MACHINES)' |
| 6645 | fi |
| 6646 | |
| 6647 | |
| 6648 | |
| 6649 | |
| 6650 | ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" |
| 6651 | |
| 6652 | cat >confcache <<\_ACEOF |
| 6653 | # This file is a shell script that caches the results of configure |
| 6654 | # tests run on this system so they can be shared between configure |
| 6655 | # scripts and configure runs, see configure's option --config-cache. |
| 6656 | # It is not useful on other systems. If it contains results you don't |
| 6657 | # want to keep, you may remove or edit it. |
| 6658 | # |
| 6659 | # config.status only pays attention to the cache file if you give it |
| 6660 | # the --recheck option to rerun configure. |
| 6661 | # |
| 6662 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 6663 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 6664 | # following values. |
| 6665 | |
| 6666 | _ACEOF |
| 6667 | |
| 6668 | # The following way of writing the cache mishandles newlines in values, |
| 6669 | # but we know of no workaround that is simple, portable, and efficient. |
| 6670 | # So, don't put newlines in cache variables' values. |
| 6671 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 6672 | # and sets the high bit in the cache file unless we assign to the vars. |
| 6673 | { |
| 6674 | (set) 2>&1 | |
| 6675 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 6676 | *ac_space=\ *) |
| 6677 | # `set' does not quote correctly, so add quotes (double-quote |
| 6678 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 6679 | sed -n \ |
| 6680 | "s/'/'\\\\''/g; |
| 6681 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 6682 | ;; |
| 6683 | *) |
| 6684 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 6685 | sed -n \ |
| 6686 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 6687 | ;; |
| 6688 | esac; |
| 6689 | } | |
| 6690 | sed ' |
| 6691 | t clear |
| 6692 | : clear |
| 6693 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 6694 | t end |
| 6695 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 6696 | : end' >>confcache |
| 6697 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 6698 | if test -w $cache_file; then |
| 6699 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 6700 | cat confcache >$cache_file |
| 6701 | else |
| 6702 | echo "not updating unwritable cache $cache_file" |
| 6703 | fi |
| 6704 | fi |
| 6705 | rm -f confcache |
| 6706 | |
| 6707 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 6708 | # Let make expand exec_prefix. |
| 6709 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 6710 | |
| 6711 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 6712 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 6713 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 6714 | # (actually we leave an empty line to preserve line numbers). |
| 6715 | if test "x$srcdir" = x.; then |
| 6716 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 6717 | s/:*\$(srcdir):*/:/; |
| 6718 | s/:*\${srcdir}:*/:/; |
| 6719 | s/:*@srcdir@:*/:/; |
| 6720 | s/^\([^=]*=[ ]*\):*/\1/; |
| 6721 | s/:*$//; |
| 6722 | s/^[^=]*=[ ]*$//; |
| 6723 | }' |
| 6724 | fi |
| 6725 | |
| 6726 | DEFS=-DHAVE_CONFIG_H |
| 6727 | |
| 6728 | ac_libobjs= |
| 6729 | ac_ltlibobjs= |
| 6730 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 6731 | # 1. Remove the extension, and $U if already installed. |
| 6732 | ac_i=`echo "$ac_i" | |
| 6733 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 6734 | # 2. Add them. |
| 6735 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 6736 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 6737 | done |
| 6738 | LIBOBJS=$ac_libobjs |
| 6739 | |
| 6740 | LTLIBOBJS=$ac_ltlibobjs |
| 6741 | |
| 6742 | |
| 6743 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 6744 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 6745 | Usually this means the macro was only invoked conditionally." >&5 |
| 6746 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 6747 | Usually this means the macro was only invoked conditionally." >&2;} |
| 6748 | { (exit 1); exit 1; }; } |
| 6749 | fi |
| 6750 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 6751 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 6752 | Usually this means the macro was only invoked conditionally." >&5 |
| 6753 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 6754 | Usually this means the macro was only invoked conditionally." >&2;} |
| 6755 | { (exit 1); exit 1; }; } |
| 6756 | fi |
| 6757 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 6758 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 6759 | Usually this means the macro was only invoked conditionally." >&5 |
| 6760 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 6761 | Usually this means the macro was only invoked conditionally." >&2;} |
| 6762 | { (exit 1); exit 1; }; } |
| 6763 | fi |
| 6764 | if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then |
| 6765 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined. |
| 6766 | Usually this means the macro was only invoked conditionally." >&5 |
| 6767 | echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined. |
| 6768 | Usually this means the macro was only invoked conditionally." >&2;} |
| 6769 | { (exit 1); exit 1; }; } |
| 6770 | fi |
| 6771 | if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then |
| 6772 | { { echo "$as_me:$LINENO: error: conditional \"CGEN_MAINT\" was never defined. |
| 6773 | Usually this means the macro was only invoked conditionally." >&5 |
| 6774 | echo "$as_me: error: conditional \"CGEN_MAINT\" was never defined. |
| 6775 | Usually this means the macro was only invoked conditionally." >&2;} |
| 6776 | { (exit 1); exit 1; }; } |
| 6777 | fi |
| 6778 | |
| 6779 | : ${CONFIG_STATUS=./config.status} |
| 6780 | ac_clean_files_save=$ac_clean_files |
| 6781 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 6782 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 6783 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 6784 | cat >$CONFIG_STATUS <<_ACEOF |
| 6785 | #! $SHELL |
| 6786 | # Generated by $as_me. |
| 6787 | # Run this file to recreate the current configuration. |
| 6788 | # Compiler output produced by configure, useful for debugging |
| 6789 | # configure, is in config.log if it exists. |
| 6790 | |
| 6791 | debug=false |
| 6792 | ac_cs_recheck=false |
| 6793 | ac_cs_silent=false |
| 6794 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 6795 | _ACEOF |
| 6796 | |
| 6797 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6798 | ## --------------------- ## |
| 6799 | ## M4sh Initialization. ## |
| 6800 | ## --------------------- ## |
| 6801 | |
| 6802 | # Be Bourne compatible |
| 6803 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 6804 | emulate sh |
| 6805 | NULLCMD=: |
| 6806 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 6807 | # is contrary to our usage. Disable this feature. |
| 6808 | alias -g '${1+"$@"}'='"$@"' |
| 6809 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 6810 | set -o posix |
| 6811 | fi |
| 6812 | DUALCASE=1; export DUALCASE # for MKS sh |
| 6813 | |
| 6814 | # Support unset when possible. |
| 6815 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 6816 | as_unset=unset |
| 6817 | else |
| 6818 | as_unset=false |
| 6819 | fi |
| 6820 | |
| 6821 | |
| 6822 | # Work around bugs in pre-3.0 UWIN ksh. |
| 6823 | $as_unset ENV MAIL MAILPATH |
| 6824 | PS1='$ ' |
| 6825 | PS2='> ' |
| 6826 | PS4='+ ' |
| 6827 | |
| 6828 | # NLS nuisances. |
| 6829 | for as_var in \ |
| 6830 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 6831 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 6832 | LC_TELEPHONE LC_TIME |
| 6833 | do |
| 6834 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 6835 | eval $as_var=C; export $as_var |
| 6836 | else |
| 6837 | $as_unset $as_var |
| 6838 | fi |
| 6839 | done |
| 6840 | |
| 6841 | # Required to use basename. |
| 6842 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 6843 | as_expr=expr |
| 6844 | else |
| 6845 | as_expr=false |
| 6846 | fi |
| 6847 | |
| 6848 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 6849 | as_basename=basename |
| 6850 | else |
| 6851 | as_basename=false |
| 6852 | fi |
| 6853 | |
| 6854 | |
| 6855 | # Name of the executable. |
| 6856 | as_me=`$as_basename "$0" || |
| 6857 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 6858 | X"$0" : 'X\(//\)$' \| \ |
| 6859 | X"$0" : 'X\(/\)$' \| \ |
| 6860 | . : '\(.\)' 2>/dev/null || |
| 6861 | echo X/"$0" | |
| 6862 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 6863 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 6864 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 6865 | s/.*/./; q'` |
| 6866 | |
| 6867 | |
| 6868 | # PATH needs CR, and LINENO needs CR and PATH. |
| 6869 | # Avoid depending upon Character Ranges. |
| 6870 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 6871 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 6872 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 6873 | as_cr_digits='0123456789' |
| 6874 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 6875 | |
| 6876 | # The user is always right. |
| 6877 | if test "${PATH_SEPARATOR+set}" != set; then |
| 6878 | echo "#! /bin/sh" >conf$$.sh |
| 6879 | echo "exit 0" >>conf$$.sh |
| 6880 | chmod +x conf$$.sh |
| 6881 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 6882 | PATH_SEPARATOR=';' |
| 6883 | else |
| 6884 | PATH_SEPARATOR=: |
| 6885 | fi |
| 6886 | rm -f conf$$.sh |
| 6887 | fi |
| 6888 | |
| 6889 | |
| 6890 | as_lineno_1=$LINENO |
| 6891 | as_lineno_2=$LINENO |
| 6892 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 6893 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 6894 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 6895 | # Find who we are. Look in the path if we contain no path at all |
| 6896 | # relative or not. |
| 6897 | case $0 in |
| 6898 | *[\\/]* ) as_myself=$0 ;; |
| 6899 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6900 | for as_dir in $PATH |
| 6901 | do |
| 6902 | IFS=$as_save_IFS |
| 6903 | test -z "$as_dir" && as_dir=. |
| 6904 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 6905 | done |
| 6906 | |
| 6907 | ;; |
| 6908 | esac |
| 6909 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 6910 | # in which case we are not to be found in the path. |
| 6911 | if test "x$as_myself" = x; then |
| 6912 | as_myself=$0 |
| 6913 | fi |
| 6914 | if test ! -f "$as_myself"; then |
| 6915 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 6916 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 6917 | { (exit 1); exit 1; }; } |
| 6918 | fi |
| 6919 | case $CONFIG_SHELL in |
| 6920 | '') |
| 6921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6922 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 6923 | do |
| 6924 | IFS=$as_save_IFS |
| 6925 | test -z "$as_dir" && as_dir=. |
| 6926 | for as_base in sh bash ksh sh5; do |
| 6927 | case $as_dir in |
| 6928 | /*) |
| 6929 | if ("$as_dir/$as_base" -c ' |
| 6930 | as_lineno_1=$LINENO |
| 6931 | as_lineno_2=$LINENO |
| 6932 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 6933 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 6934 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 6935 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 6936 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 6937 | CONFIG_SHELL=$as_dir/$as_base |
| 6938 | export CONFIG_SHELL |
| 6939 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 6940 | fi;; |
| 6941 | esac |
| 6942 | done |
| 6943 | done |
| 6944 | ;; |
| 6945 | esac |
| 6946 | |
| 6947 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 6948 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 6949 | # line-number line before each line; the second 'sed' does the real |
| 6950 | # work. The second script uses 'N' to pair each line-number line |
| 6951 | # with the numbered line, and appends trailing '-' during |
| 6952 | # substitution so that $LINENO is not a special case at line end. |
| 6953 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 6954 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 6955 | sed '=' <$as_myself | |
| 6956 | sed ' |
| 6957 | N |
| 6958 | s,$,-, |
| 6959 | : loop |
| 6960 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 6961 | t loop |
| 6962 | s,-$,, |
| 6963 | s,^['$as_cr_digits']*\n,, |
| 6964 | ' >$as_me.lineno && |
| 6965 | chmod +x $as_me.lineno || |
| 6966 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 6967 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 6968 | { (exit 1); exit 1; }; } |
| 6969 | |
| 6970 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 6971 | # (the dirname of $[0] is not the place where we might find the |
| 6972 | # original and so on. Autoconf is especially sensible to this). |
| 6973 | . ./$as_me.lineno |
| 6974 | # Exit status is that of the last command. |
| 6975 | exit |
| 6976 | } |
| 6977 | |
| 6978 | |
| 6979 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 6980 | *c*,-n*) ECHO_N= ECHO_C=' |
| 6981 | ' ECHO_T=' ' ;; |
| 6982 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 6983 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 6984 | esac |
| 6985 | |
| 6986 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 6987 | as_expr=expr |
| 6988 | else |
| 6989 | as_expr=false |
| 6990 | fi |
| 6991 | |
| 6992 | rm -f conf$$ conf$$.exe conf$$.file |
| 6993 | echo >conf$$.file |
| 6994 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 6995 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 6996 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 6997 | if test -f conf$$.exe; then |
| 6998 | # Don't use ln at all; we don't have any links |
| 6999 | as_ln_s='cp -p' |
| 7000 | else |
| 7001 | as_ln_s='ln -s' |
| 7002 | fi |
| 7003 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 7004 | as_ln_s=ln |
| 7005 | else |
| 7006 | as_ln_s='cp -p' |
| 7007 | fi |
| 7008 | rm -f conf$$ conf$$.exe conf$$.file |
| 7009 | |
| 7010 | if mkdir -p . 2>/dev/null; then |
| 7011 | as_mkdir_p=: |
| 7012 | else |
| 7013 | test -d ./-p && rmdir ./-p |
| 7014 | as_mkdir_p=false |
| 7015 | fi |
| 7016 | |
| 7017 | as_executable_p="test -f" |
| 7018 | |
| 7019 | # Sed expression to map a string onto a valid CPP name. |
| 7020 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 7021 | |
| 7022 | # Sed expression to map a string onto a valid variable name. |
| 7023 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 7024 | |
| 7025 | |
| 7026 | # IFS |
| 7027 | # We need space, tab and new line, in precisely that order. |
| 7028 | as_nl=' |
| 7029 | ' |
| 7030 | IFS=" $as_nl" |
| 7031 | |
| 7032 | # CDPATH. |
| 7033 | $as_unset CDPATH |
| 7034 | |
| 7035 | exec 6>&1 |
| 7036 | |
| 7037 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 7038 | # report actual input values of CONFIG_FILES etc. instead of their |
| 7039 | # values after options handling. Logging --version etc. is OK. |
| 7040 | exec 5>>config.log |
| 7041 | { |
| 7042 | echo |
| 7043 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 7044 | ## Running $as_me. ## |
| 7045 | _ASBOX |
| 7046 | } >&5 |
| 7047 | cat >&5 <<_CSEOF |
| 7048 | |
| 7049 | This file was extended by $as_me, which was |
| 7050 | generated by GNU Autoconf 2.59. Invocation command line was |
| 7051 | |
| 7052 | CONFIG_FILES = $CONFIG_FILES |
| 7053 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 7054 | CONFIG_LINKS = $CONFIG_LINKS |
| 7055 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 7056 | $ $0 $@ |
| 7057 | |
| 7058 | _CSEOF |
| 7059 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 7060 | echo >&5 |
| 7061 | _ACEOF |
| 7062 | |
| 7063 | # Files that config.status was made for. |
| 7064 | if test -n "$ac_config_files"; then |
| 7065 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 7066 | fi |
| 7067 | |
| 7068 | if test -n "$ac_config_headers"; then |
| 7069 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 7070 | fi |
| 7071 | |
| 7072 | if test -n "$ac_config_links"; then |
| 7073 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 7074 | fi |
| 7075 | |
| 7076 | if test -n "$ac_config_commands"; then |
| 7077 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 7078 | fi |
| 7079 | |
| 7080 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7081 | |
| 7082 | ac_cs_usage="\ |
| 7083 | \`$as_me' instantiates files from templates according to the |
| 7084 | current configuration. |
| 7085 | |
| 7086 | Usage: $0 [OPTIONS] [FILE]... |
| 7087 | |
| 7088 | -h, --help print this help, then exit |
| 7089 | -V, --version print version number, then exit |
| 7090 | -q, --quiet do not print progress messages |
| 7091 | -d, --debug don't remove temporary files |
| 7092 | --recheck update $as_me by reconfiguring in the same conditions |
| 7093 | --file=FILE[:TEMPLATE] |
| 7094 | instantiate the configuration file FILE |
| 7095 | --header=FILE[:TEMPLATE] |
| 7096 | instantiate the configuration header FILE |
| 7097 | |
| 7098 | Configuration files: |
| 7099 | $config_files |
| 7100 | |
| 7101 | Configuration headers: |
| 7102 | $config_headers |
| 7103 | |
| 7104 | Configuration commands: |
| 7105 | $config_commands |
| 7106 | |
| 7107 | Report bugs to <bug-autoconf@gnu.org>." |
| 7108 | _ACEOF |
| 7109 | |
| 7110 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7111 | ac_cs_version="\\ |
| 7112 | config.status |
| 7113 | configured by $0, generated by GNU Autoconf 2.59, |
| 7114 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 7115 | |
| 7116 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 7117 | This config.status script is free software; the Free Software Foundation |
| 7118 | gives unlimited permission to copy, distribute and modify it." |
| 7119 | srcdir=$srcdir |
| 7120 | INSTALL="$INSTALL" |
| 7121 | _ACEOF |
| 7122 | |
| 7123 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7124 | # If no file are specified by the user, then we need to provide default |
| 7125 | # value. By we need to know if files were specified by the user. |
| 7126 | ac_need_defaults=: |
| 7127 | while test $# != 0 |
| 7128 | do |
| 7129 | case $1 in |
| 7130 | --*=*) |
| 7131 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 7132 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 7133 | ac_shift=: |
| 7134 | ;; |
| 7135 | -*) |
| 7136 | ac_option=$1 |
| 7137 | ac_optarg=$2 |
| 7138 | ac_shift=shift |
| 7139 | ;; |
| 7140 | *) # This is not an option, so the user has probably given explicit |
| 7141 | # arguments. |
| 7142 | ac_option=$1 |
| 7143 | ac_need_defaults=false;; |
| 7144 | esac |
| 7145 | |
| 7146 | case $ac_option in |
| 7147 | # Handling of the options. |
| 7148 | _ACEOF |
| 7149 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7150 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 7151 | ac_cs_recheck=: ;; |
| 7152 | --version | --vers* | -V ) |
| 7153 | echo "$ac_cs_version"; exit 0 ;; |
| 7154 | --he | --h) |
| 7155 | # Conflict between --help and --header |
| 7156 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 7157 | Try \`$0 --help' for more information." >&5 |
| 7158 | echo "$as_me: error: ambiguous option: $1 |
| 7159 | Try \`$0 --help' for more information." >&2;} |
| 7160 | { (exit 1); exit 1; }; };; |
| 7161 | --help | --hel | -h ) |
| 7162 | echo "$ac_cs_usage"; exit 0 ;; |
| 7163 | --debug | --d* | -d ) |
| 7164 | debug=: ;; |
| 7165 | --file | --fil | --fi | --f ) |
| 7166 | $ac_shift |
| 7167 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 7168 | ac_need_defaults=false;; |
| 7169 | --header | --heade | --head | --hea ) |
| 7170 | $ac_shift |
| 7171 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 7172 | ac_need_defaults=false;; |
| 7173 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 7174 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 7175 | ac_cs_silent=: ;; |
| 7176 | |
| 7177 | # This is an error. |
| 7178 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 7179 | Try \`$0 --help' for more information." >&5 |
| 7180 | echo "$as_me: error: unrecognized option: $1 |
| 7181 | Try \`$0 --help' for more information." >&2;} |
| 7182 | { (exit 1); exit 1; }; } ;; |
| 7183 | |
| 7184 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 7185 | |
| 7186 | esac |
| 7187 | shift |
| 7188 | done |
| 7189 | |
| 7190 | ac_configure_extra_args= |
| 7191 | |
| 7192 | if $ac_cs_silent; then |
| 7193 | exec 6>/dev/null |
| 7194 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 7195 | fi |
| 7196 | |
| 7197 | _ACEOF |
| 7198 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7199 | if \$ac_cs_recheck; then |
| 7200 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 7201 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 7202 | fi |
| 7203 | |
| 7204 | _ACEOF |
| 7205 | |
| 7206 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7207 | # |
| 7208 | # INIT-COMMANDS section. |
| 7209 | # |
| 7210 | |
| 7211 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 7212 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
| 7213 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it |
| 7214 | # from automake. |
| 7215 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
| 7216 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 7217 | LINGUAS="${LINGUAS-%UNSET%}" |
| 7218 | |
| 7219 | |
| 7220 | _ACEOF |
| 7221 | |
| 7222 | |
| 7223 | |
| 7224 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7225 | for ac_config_target in $ac_config_targets |
| 7226 | do |
| 7227 | case "$ac_config_target" in |
| 7228 | # Handling of arguments. |
| 7229 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 7230 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; |
| 7231 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 7232 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 7233 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
| 7234 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 7235 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 7236 | { (exit 1); exit 1; }; };; |
| 7237 | esac |
| 7238 | done |
| 7239 | |
| 7240 | # If the user did not use the arguments to specify the items to instantiate, |
| 7241 | # then the envvar interface is used. Set only those that are not. |
| 7242 | # We use the long form for the default assignment because of an extremely |
| 7243 | # bizarre bug on SunOS 4.1.3. |
| 7244 | if $ac_need_defaults; then |
| 7245 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 7246 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 7247 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 7248 | fi |
| 7249 | |
| 7250 | # Have a temporary directory for convenience. Make it in the build tree |
| 7251 | # simply because there is no reason to put it here, and in addition, |
| 7252 | # creating and moving files from /tmp can sometimes cause problems. |
| 7253 | # Create a temporary directory, and hook for its removal unless debugging. |
| 7254 | $debug || |
| 7255 | { |
| 7256 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 7257 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 7258 | } |
| 7259 | |
| 7260 | # Create a (secure) tmp directory for tmp files. |
| 7261 | |
| 7262 | { |
| 7263 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 7264 | test -n "$tmp" && test -d "$tmp" |
| 7265 | } || |
| 7266 | { |
| 7267 | tmp=./confstat$$-$RANDOM |
| 7268 | (umask 077 && mkdir $tmp) |
| 7269 | } || |
| 7270 | { |
| 7271 | echo "$me: cannot create a temporary directory in ." >&2 |
| 7272 | { (exit 1); exit 1; } |
| 7273 | } |
| 7274 | |
| 7275 | _ACEOF |
| 7276 | |
| 7277 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7278 | |
| 7279 | # |
| 7280 | # CONFIG_FILES section. |
| 7281 | # |
| 7282 | |
| 7283 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 7284 | # This happens for instance when ./config.status config.h |
| 7285 | if test -n "\$CONFIG_FILES"; then |
| 7286 | # Protect against being on the right side of a sed subst in config.status. |
| 7287 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 7288 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 7289 | s,@SHELL@,$SHELL,;t t |
| 7290 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 7291 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 7292 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 7293 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 7294 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 7295 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 7296 | s,@exec_prefix@,$exec_prefix,;t t |
| 7297 | s,@prefix@,$prefix,;t t |
| 7298 | s,@program_transform_name@,$program_transform_name,;t t |
| 7299 | s,@bindir@,$bindir,;t t |
| 7300 | s,@sbindir@,$sbindir,;t t |
| 7301 | s,@libexecdir@,$libexecdir,;t t |
| 7302 | s,@datadir@,$datadir,;t t |
| 7303 | s,@sysconfdir@,$sysconfdir,;t t |
| 7304 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 7305 | s,@localstatedir@,$localstatedir,;t t |
| 7306 | s,@libdir@,$libdir,;t t |
| 7307 | s,@includedir@,$includedir,;t t |
| 7308 | s,@oldincludedir@,$oldincludedir,;t t |
| 7309 | s,@infodir@,$infodir,;t t |
| 7310 | s,@mandir@,$mandir,;t t |
| 7311 | s,@build_alias@,$build_alias,;t t |
| 7312 | s,@host_alias@,$host_alias,;t t |
| 7313 | s,@target_alias@,$target_alias,;t t |
| 7314 | s,@DEFS@,$DEFS,;t t |
| 7315 | s,@ECHO_C@,$ECHO_C,;t t |
| 7316 | s,@ECHO_N@,$ECHO_N,;t t |
| 7317 | s,@ECHO_T@,$ECHO_T,;t t |
| 7318 | s,@LIBS@,$LIBS,;t t |
| 7319 | s,@build@,$build,;t t |
| 7320 | s,@build_cpu@,$build_cpu,;t t |
| 7321 | s,@build_vendor@,$build_vendor,;t t |
| 7322 | s,@build_os@,$build_os,;t t |
| 7323 | s,@host@,$host,;t t |
| 7324 | s,@host_cpu@,$host_cpu,;t t |
| 7325 | s,@host_vendor@,$host_vendor,;t t |
| 7326 | s,@host_os@,$host_os,;t t |
| 7327 | s,@target@,$target,;t t |
| 7328 | s,@target_cpu@,$target_cpu,;t t |
| 7329 | s,@target_vendor@,$target_vendor,;t t |
| 7330 | s,@target_os@,$target_os,;t t |
| 7331 | s,@CC@,$CC,;t t |
| 7332 | s,@CFLAGS@,$CFLAGS,;t t |
| 7333 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 7334 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 7335 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 7336 | s,@EXEEXT@,$EXEEXT,;t t |
| 7337 | s,@OBJEXT@,$OBJEXT,;t t |
| 7338 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 7339 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 7340 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 7341 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
| 7342 | s,@PACKAGE@,$PACKAGE,;t t |
| 7343 | s,@VERSION@,$VERSION,;t t |
| 7344 | s,@ACLOCAL@,$ACLOCAL,;t t |
| 7345 | s,@AUTOCONF@,$AUTOCONF,;t t |
| 7346 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
| 7347 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
| 7348 | s,@MAKEINFO@,$MAKEINFO,;t t |
| 7349 | s,@install_sh@,$install_sh,;t t |
| 7350 | s,@STRIP@,$STRIP,;t t |
| 7351 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 7352 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
| 7353 | s,@mkdir_p@,$mkdir_p,;t t |
| 7354 | s,@AWK@,$AWK,;t t |
| 7355 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 7356 | s,@am__leading_dot@,$am__leading_dot,;t t |
| 7357 | s,@AMTAR@,$AMTAR,;t t |
| 7358 | s,@am__tar@,$am__tar,;t t |
| 7359 | s,@am__untar@,$am__untar,;t t |
| 7360 | s,@DEPDIR@,$DEPDIR,;t t |
| 7361 | s,@am__include@,$am__include,;t t |
| 7362 | s,@am__quote@,$am__quote,;t t |
| 7363 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
| 7364 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
| 7365 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
| 7366 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
| 7367 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
| 7368 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
| 7369 | s,@AR@,$AR,;t t |
| 7370 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
| 7371 | s,@RANLIB@,$RANLIB,;t t |
| 7372 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 7373 | s,@LN_S@,$LN_S,;t t |
| 7374 | s,@LIBTOOL@,$LIBTOOL,;t t |
| 7375 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t |
| 7376 | s,@NO_WERROR@,$NO_WERROR,;t t |
| 7377 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
| 7378 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t |
| 7379 | s,@MAINT@,$MAINT,;t t |
| 7380 | s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t |
| 7381 | s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t |
| 7382 | s,@host_noncanonical@,$host_noncanonical,;t t |
| 7383 | s,@target_noncanonical@,$target_noncanonical,;t t |
| 7384 | s,@bfdlibdir@,$bfdlibdir,;t t |
| 7385 | s,@bfdincludedir@,$bfdincludedir,;t t |
| 7386 | s,@USE_NLS@,$USE_NLS,;t t |
| 7387 | s,@LIBINTL@,$LIBINTL,;t t |
| 7388 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t |
| 7389 | s,@INCINTL@,$INCINTL,;t t |
| 7390 | s,@XGETTEXT@,$XGETTEXT,;t t |
| 7391 | s,@GMSGFMT@,$GMSGFMT,;t t |
| 7392 | s,@POSUB@,$POSUB,;t t |
| 7393 | s,@CATALOGS@,$CATALOGS,;t t |
| 7394 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
| 7395 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
| 7396 | s,@GENCAT@,$GENCAT,;t t |
| 7397 | s,@CATOBJEXT@,$CATOBJEXT,;t t |
| 7398 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
| 7399 | s,@MSGFMT@,$MSGFMT,;t t |
| 7400 | s,@MSGMERGE@,$MSGMERGE,;t t |
| 7401 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t |
| 7402 | s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t |
| 7403 | s,@HDEFINES@,$HDEFINES,;t t |
| 7404 | s,@CPP@,$CPP,;t t |
| 7405 | s,@EGREP@,$EGREP,;t t |
| 7406 | s,@CGEN_MAINT_TRUE@,$CGEN_MAINT_TRUE,;t t |
| 7407 | s,@CGEN_MAINT_FALSE@,$CGEN_MAINT_FALSE,;t t |
| 7408 | s,@cgendir@,$cgendir,;t t |
| 7409 | s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t |
| 7410 | s,@WIN32LIBADD@,$WIN32LIBADD,;t t |
| 7411 | s,@archdefs@,$archdefs,;t t |
| 7412 | s,@BFD_MACHINES@,$BFD_MACHINES,;t t |
| 7413 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 7414 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 7415 | CEOF |
| 7416 | |
| 7417 | _ACEOF |
| 7418 | |
| 7419 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7420 | # Split the substitutions into bite-sized pieces for seds with |
| 7421 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 7422 | ac_max_sed_lines=48 |
| 7423 | ac_sed_frag=1 # Number of current file. |
| 7424 | ac_beg=1 # First line for current file. |
| 7425 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 7426 | ac_more_lines=: |
| 7427 | ac_sed_cmds= |
| 7428 | while $ac_more_lines; do |
| 7429 | if test $ac_beg -gt 1; then |
| 7430 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 7431 | else |
| 7432 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 7433 | fi |
| 7434 | if test ! -s $tmp/subs.frag; then |
| 7435 | ac_more_lines=false |
| 7436 | else |
| 7437 | # The purpose of the label and of the branching condition is to |
| 7438 | # speed up the sed processing (if there are no `@' at all, there |
| 7439 | # is no need to browse any of the substitutions). |
| 7440 | # These are the two extra sed commands mentioned above. |
| 7441 | (echo ':t |
| 7442 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 7443 | if test -z "$ac_sed_cmds"; then |
| 7444 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 7445 | else |
| 7446 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 7447 | fi |
| 7448 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 7449 | ac_beg=$ac_end |
| 7450 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 7451 | fi |
| 7452 | done |
| 7453 | if test -z "$ac_sed_cmds"; then |
| 7454 | ac_sed_cmds=cat |
| 7455 | fi |
| 7456 | fi # test -n "$CONFIG_FILES" |
| 7457 | |
| 7458 | _ACEOF |
| 7459 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7460 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 7461 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 7462 | case $ac_file in |
| 7463 | - | *:- | *:-:* ) # input from stdin |
| 7464 | cat >$tmp/stdin |
| 7465 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7466 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7467 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7468 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7469 | * ) ac_file_in=$ac_file.in ;; |
| 7470 | esac |
| 7471 | |
| 7472 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 7473 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 7474 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7475 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 7476 | X"$ac_file" : 'X\(//\)$' \| \ |
| 7477 | X"$ac_file" : 'X\(/\)' \| \ |
| 7478 | . : '\(.\)' 2>/dev/null || |
| 7479 | echo X"$ac_file" | |
| 7480 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 7481 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 7482 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 7483 | /^X\(\/\).*/{ s//\1/; q; } |
| 7484 | s/.*/./; q'` |
| 7485 | { if $as_mkdir_p; then |
| 7486 | mkdir -p "$ac_dir" |
| 7487 | else |
| 7488 | as_dir="$ac_dir" |
| 7489 | as_dirs= |
| 7490 | while test ! -d "$as_dir"; do |
| 7491 | as_dirs="$as_dir $as_dirs" |
| 7492 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 7493 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7494 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 7495 | X"$as_dir" : 'X\(//\)$' \| \ |
| 7496 | X"$as_dir" : 'X\(/\)' \| \ |
| 7497 | . : '\(.\)' 2>/dev/null || |
| 7498 | echo X"$as_dir" | |
| 7499 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 7500 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 7501 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 7502 | /^X\(\/\).*/{ s//\1/; q; } |
| 7503 | s/.*/./; q'` |
| 7504 | done |
| 7505 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 7506 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 7507 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 7508 | { (exit 1); exit 1; }; }; } |
| 7509 | |
| 7510 | ac_builddir=. |
| 7511 | |
| 7512 | if test "$ac_dir" != .; then |
| 7513 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 7514 | # A "../" for each directory in $ac_dir_suffix. |
| 7515 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 7516 | else |
| 7517 | ac_dir_suffix= ac_top_builddir= |
| 7518 | fi |
| 7519 | |
| 7520 | case $srcdir in |
| 7521 | .) # No --srcdir option. We are building in place. |
| 7522 | ac_srcdir=. |
| 7523 | if test -z "$ac_top_builddir"; then |
| 7524 | ac_top_srcdir=. |
| 7525 | else |
| 7526 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 7527 | fi ;; |
| 7528 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 7529 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 7530 | ac_top_srcdir=$srcdir ;; |
| 7531 | *) # Relative path. |
| 7532 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 7533 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 7534 | esac |
| 7535 | |
| 7536 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 7537 | # the directories may not exist. |
| 7538 | case `pwd` in |
| 7539 | .) ac_abs_builddir="$ac_dir";; |
| 7540 | *) |
| 7541 | case "$ac_dir" in |
| 7542 | .) ac_abs_builddir=`pwd`;; |
| 7543 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 7544 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 7545 | esac;; |
| 7546 | esac |
| 7547 | case $ac_abs_builddir in |
| 7548 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 7549 | *) |
| 7550 | case ${ac_top_builddir}. in |
| 7551 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 7552 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 7553 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 7554 | esac;; |
| 7555 | esac |
| 7556 | case $ac_abs_builddir in |
| 7557 | .) ac_abs_srcdir=$ac_srcdir;; |
| 7558 | *) |
| 7559 | case $ac_srcdir in |
| 7560 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 7561 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 7562 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 7563 | esac;; |
| 7564 | esac |
| 7565 | case $ac_abs_builddir in |
| 7566 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 7567 | *) |
| 7568 | case $ac_top_srcdir in |
| 7569 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 7570 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 7571 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 7572 | esac;; |
| 7573 | esac |
| 7574 | |
| 7575 | |
| 7576 | case $INSTALL in |
| 7577 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 7578 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 7579 | esac |
| 7580 | |
| 7581 | if test x"$ac_file" != x-; then |
| 7582 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 7583 | echo "$as_me: creating $ac_file" >&6;} |
| 7584 | rm -f "$ac_file" |
| 7585 | fi |
| 7586 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 7587 | # use $as_me), people would be surprised to read: |
| 7588 | # /* config.h. Generated by config.status. */ |
| 7589 | if test x"$ac_file" = x-; then |
| 7590 | configure_input= |
| 7591 | else |
| 7592 | configure_input="$ac_file. " |
| 7593 | fi |
| 7594 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 7595 | sed 's,.*/,,'` by configure." |
| 7596 | |
| 7597 | # First look for the input files in the build tree, otherwise in the |
| 7598 | # src tree. |
| 7599 | ac_file_inputs=`IFS=: |
| 7600 | for f in $ac_file_in; do |
| 7601 | case $f in |
| 7602 | -) echo $tmp/stdin ;; |
| 7603 | [\\/$]*) |
| 7604 | # Absolute (can't be DOS-style, as IFS=:) |
| 7605 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 7606 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 7607 | { (exit 1); exit 1; }; } |
| 7608 | echo "$f";; |
| 7609 | *) # Relative |
| 7610 | if test -f "$f"; then |
| 7611 | # Build tree |
| 7612 | echo "$f" |
| 7613 | elif test -f "$srcdir/$f"; then |
| 7614 | # Source tree |
| 7615 | echo "$srcdir/$f" |
| 7616 | else |
| 7617 | # /dev/null tree |
| 7618 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 7619 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 7620 | { (exit 1); exit 1; }; } |
| 7621 | fi;; |
| 7622 | esac |
| 7623 | done` || { (exit 1); exit 1; } |
| 7624 | _ACEOF |
| 7625 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7626 | sed "$ac_vpsub |
| 7627 | $extrasub |
| 7628 | _ACEOF |
| 7629 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7630 | :t |
| 7631 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 7632 | s,@configure_input@,$configure_input,;t t |
| 7633 | s,@srcdir@,$ac_srcdir,;t t |
| 7634 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 7635 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 7636 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 7637 | s,@builddir@,$ac_builddir,;t t |
| 7638 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 7639 | s,@top_builddir@,$ac_top_builddir,;t t |
| 7640 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 7641 | s,@INSTALL@,$ac_INSTALL,;t t |
| 7642 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 7643 | rm -f $tmp/stdin |
| 7644 | if test x"$ac_file" != x-; then |
| 7645 | mv $tmp/out $ac_file |
| 7646 | else |
| 7647 | cat $tmp/out |
| 7648 | rm -f $tmp/out |
| 7649 | fi |
| 7650 | |
| 7651 | done |
| 7652 | _ACEOF |
| 7653 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7654 | |
| 7655 | # |
| 7656 | # CONFIG_HEADER section. |
| 7657 | # |
| 7658 | |
| 7659 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 7660 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 7661 | # |
| 7662 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 7663 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 7664 | ac_dB='[ ].*$,\1#\2' |
| 7665 | ac_dC=' ' |
| 7666 | ac_dD=',;t' |
| 7667 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 7668 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 7669 | ac_uB='$,\1#\2define\3' |
| 7670 | ac_uC=' ' |
| 7671 | ac_uD=',;t' |
| 7672 | |
| 7673 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 7674 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 7675 | case $ac_file in |
| 7676 | - | *:- | *:-:* ) # input from stdin |
| 7677 | cat >$tmp/stdin |
| 7678 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7679 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7680 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7681 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7682 | * ) ac_file_in=$ac_file.in ;; |
| 7683 | esac |
| 7684 | |
| 7685 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 7686 | echo "$as_me: creating $ac_file" >&6;} |
| 7687 | |
| 7688 | # First look for the input files in the build tree, otherwise in the |
| 7689 | # src tree. |
| 7690 | ac_file_inputs=`IFS=: |
| 7691 | for f in $ac_file_in; do |
| 7692 | case $f in |
| 7693 | -) echo $tmp/stdin ;; |
| 7694 | [\\/$]*) |
| 7695 | # Absolute (can't be DOS-style, as IFS=:) |
| 7696 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 7697 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 7698 | { (exit 1); exit 1; }; } |
| 7699 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 7700 | echo "$f";; |
| 7701 | *) # Relative |
| 7702 | if test -f "$f"; then |
| 7703 | # Build tree |
| 7704 | echo "$f" |
| 7705 | elif test -f "$srcdir/$f"; then |
| 7706 | # Source tree |
| 7707 | echo "$srcdir/$f" |
| 7708 | else |
| 7709 | # /dev/null tree |
| 7710 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 7711 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 7712 | { (exit 1); exit 1; }; } |
| 7713 | fi;; |
| 7714 | esac |
| 7715 | done` || { (exit 1); exit 1; } |
| 7716 | # Remove the trailing spaces. |
| 7717 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 7718 | |
| 7719 | _ACEOF |
| 7720 | |
| 7721 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 7722 | # `conftest.undefs', that substitutes the proper values into |
| 7723 | # config.h.in to produce config.h. The first handles `#define' |
| 7724 | # templates, and the second `#undef' templates. |
| 7725 | # And first: Protect against being on the right side of a sed subst in |
| 7726 | # config.status. Protect against being in an unquoted here document |
| 7727 | # in config.status. |
| 7728 | rm -f conftest.defines conftest.undefs |
| 7729 | # Using a here document instead of a string reduces the quoting nightmare. |
| 7730 | # Putting comments in sed scripts is not portable. |
| 7731 | # |
| 7732 | # `end' is used to avoid that the second main sed command (meant for |
| 7733 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 7734 | # See the Autoconf documentation for `clear'. |
| 7735 | cat >confdef2sed.sed <<\_ACEOF |
| 7736 | s/[\\&,]/\\&/g |
| 7737 | s,[\\$`],\\&,g |
| 7738 | t clear |
| 7739 | : clear |
| 7740 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 7741 | t end |
| 7742 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 7743 | : end |
| 7744 | _ACEOF |
| 7745 | # If some macros were called several times there might be several times |
| 7746 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 7747 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 7748 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 7749 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 7750 | rm -f confdef2sed.sed |
| 7751 | |
| 7752 | # This sed command replaces #undef with comments. This is necessary, for |
| 7753 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 7754 | # on some systems where configure will not decide to define it. |
| 7755 | cat >>conftest.undefs <<\_ACEOF |
| 7756 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 7757 | _ACEOF |
| 7758 | |
| 7759 | # Break up conftest.defines because some shells have a limit on the size |
| 7760 | # of here documents, and old seds have small limits too (100 cmds). |
| 7761 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 7762 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 7763 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 7764 | echo ' :' >>$CONFIG_STATUS |
| 7765 | rm -f conftest.tail |
| 7766 | while grep . conftest.defines >/dev/null |
| 7767 | do |
| 7768 | # Write a limited-size here document to $tmp/defines.sed. |
| 7769 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 7770 | # Speed up: don't consider the non `#define' lines. |
| 7771 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 7772 | # Work around the forget-to-reset-the-flag bug. |
| 7773 | echo 't clr' >>$CONFIG_STATUS |
| 7774 | echo ': clr' >>$CONFIG_STATUS |
| 7775 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 7776 | echo 'CEOF |
| 7777 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 7778 | rm -f $tmp/in |
| 7779 | mv $tmp/out $tmp/in |
| 7780 | ' >>$CONFIG_STATUS |
| 7781 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 7782 | rm -f conftest.defines |
| 7783 | mv conftest.tail conftest.defines |
| 7784 | done |
| 7785 | rm -f conftest.defines |
| 7786 | echo ' fi # grep' >>$CONFIG_STATUS |
| 7787 | echo >>$CONFIG_STATUS |
| 7788 | |
| 7789 | # Break up conftest.undefs because some shells have a limit on the size |
| 7790 | # of here documents, and old seds have small limits too (100 cmds). |
| 7791 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 7792 | rm -f conftest.tail |
| 7793 | while grep . conftest.undefs >/dev/null |
| 7794 | do |
| 7795 | # Write a limited-size here document to $tmp/undefs.sed. |
| 7796 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 7797 | # Speed up: don't consider the non `#undef' |
| 7798 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 7799 | # Work around the forget-to-reset-the-flag bug. |
| 7800 | echo 't clr' >>$CONFIG_STATUS |
| 7801 | echo ': clr' >>$CONFIG_STATUS |
| 7802 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 7803 | echo 'CEOF |
| 7804 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 7805 | rm -f $tmp/in |
| 7806 | mv $tmp/out $tmp/in |
| 7807 | ' >>$CONFIG_STATUS |
| 7808 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 7809 | rm -f conftest.undefs |
| 7810 | mv conftest.tail conftest.undefs |
| 7811 | done |
| 7812 | rm -f conftest.undefs |
| 7813 | |
| 7814 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7815 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 7816 | # use $as_me), people would be surprised to read: |
| 7817 | # /* config.h. Generated by config.status. */ |
| 7818 | if test x"$ac_file" = x-; then |
| 7819 | echo "/* Generated by configure. */" >$tmp/config.h |
| 7820 | else |
| 7821 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 7822 | fi |
| 7823 | cat $tmp/in >>$tmp/config.h |
| 7824 | rm -f $tmp/in |
| 7825 | if test x"$ac_file" != x-; then |
| 7826 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 7827 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 7828 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 7829 | else |
| 7830 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 7831 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7832 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 7833 | X"$ac_file" : 'X\(//\)$' \| \ |
| 7834 | X"$ac_file" : 'X\(/\)' \| \ |
| 7835 | . : '\(.\)' 2>/dev/null || |
| 7836 | echo X"$ac_file" | |
| 7837 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 7838 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 7839 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 7840 | /^X\(\/\).*/{ s//\1/; q; } |
| 7841 | s/.*/./; q'` |
| 7842 | { if $as_mkdir_p; then |
| 7843 | mkdir -p "$ac_dir" |
| 7844 | else |
| 7845 | as_dir="$ac_dir" |
| 7846 | as_dirs= |
| 7847 | while test ! -d "$as_dir"; do |
| 7848 | as_dirs="$as_dir $as_dirs" |
| 7849 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 7850 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7851 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 7852 | X"$as_dir" : 'X\(//\)$' \| \ |
| 7853 | X"$as_dir" : 'X\(/\)' \| \ |
| 7854 | . : '\(.\)' 2>/dev/null || |
| 7855 | echo X"$as_dir" | |
| 7856 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 7857 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 7858 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 7859 | /^X\(\/\).*/{ s//\1/; q; } |
| 7860 | s/.*/./; q'` |
| 7861 | done |
| 7862 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 7863 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 7864 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 7865 | { (exit 1); exit 1; }; }; } |
| 7866 | |
| 7867 | rm -f $ac_file |
| 7868 | mv $tmp/config.h $ac_file |
| 7869 | fi |
| 7870 | else |
| 7871 | cat $tmp/config.h |
| 7872 | rm -f $tmp/config.h |
| 7873 | fi |
| 7874 | # Compute $ac_file's index in $config_headers. |
| 7875 | _am_stamp_count=1 |
| 7876 | for _am_header in $config_headers :; do |
| 7877 | case $_am_header in |
| 7878 | $ac_file | $ac_file:* ) |
| 7879 | break ;; |
| 7880 | * ) |
| 7881 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 7882 | esac |
| 7883 | done |
| 7884 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
| 7885 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7886 | X$ac_file : 'X\(//\)[^/]' \| \ |
| 7887 | X$ac_file : 'X\(//\)$' \| \ |
| 7888 | X$ac_file : 'X\(/\)' \| \ |
| 7889 | . : '\(.\)' 2>/dev/null || |
| 7890 | echo X$ac_file | |
| 7891 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 7892 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 7893 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 7894 | /^X\(\/\).*/{ s//\1/; q; } |
| 7895 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 7896 | done |
| 7897 | _ACEOF |
| 7898 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7899 | |
| 7900 | # |
| 7901 | # CONFIG_COMMANDS section. |
| 7902 | # |
| 7903 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 7904 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 7905 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7906 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 7907 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7908 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 7909 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 7910 | X"$ac_dest" : 'X\(/\)' \| \ |
| 7911 | . : '\(.\)' 2>/dev/null || |
| 7912 | echo X"$ac_dest" | |
| 7913 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 7914 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 7915 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 7916 | /^X\(\/\).*/{ s//\1/; q; } |
| 7917 | s/.*/./; q'` |
| 7918 | { if $as_mkdir_p; then |
| 7919 | mkdir -p "$ac_dir" |
| 7920 | else |
| 7921 | as_dir="$ac_dir" |
| 7922 | as_dirs= |
| 7923 | while test ! -d "$as_dir"; do |
| 7924 | as_dirs="$as_dir $as_dirs" |
| 7925 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 7926 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7927 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 7928 | X"$as_dir" : 'X\(//\)$' \| \ |
| 7929 | X"$as_dir" : 'X\(/\)' \| \ |
| 7930 | . : '\(.\)' 2>/dev/null || |
| 7931 | echo X"$as_dir" | |
| 7932 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 7933 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 7934 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 7935 | /^X\(\/\).*/{ s//\1/; q; } |
| 7936 | s/.*/./; q'` |
| 7937 | done |
| 7938 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 7939 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 7940 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 7941 | { (exit 1); exit 1; }; }; } |
| 7942 | |
| 7943 | ac_builddir=. |
| 7944 | |
| 7945 | if test "$ac_dir" != .; then |
| 7946 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 7947 | # A "../" for each directory in $ac_dir_suffix. |
| 7948 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 7949 | else |
| 7950 | ac_dir_suffix= ac_top_builddir= |
| 7951 | fi |
| 7952 | |
| 7953 | case $srcdir in |
| 7954 | .) # No --srcdir option. We are building in place. |
| 7955 | ac_srcdir=. |
| 7956 | if test -z "$ac_top_builddir"; then |
| 7957 | ac_top_srcdir=. |
| 7958 | else |
| 7959 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 7960 | fi ;; |
| 7961 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 7962 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 7963 | ac_top_srcdir=$srcdir ;; |
| 7964 | *) # Relative path. |
| 7965 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 7966 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 7967 | esac |
| 7968 | |
| 7969 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 7970 | # the directories may not exist. |
| 7971 | case `pwd` in |
| 7972 | .) ac_abs_builddir="$ac_dir";; |
| 7973 | *) |
| 7974 | case "$ac_dir" in |
| 7975 | .) ac_abs_builddir=`pwd`;; |
| 7976 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 7977 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 7978 | esac;; |
| 7979 | esac |
| 7980 | case $ac_abs_builddir in |
| 7981 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 7982 | *) |
| 7983 | case ${ac_top_builddir}. in |
| 7984 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 7985 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 7986 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 7987 | esac;; |
| 7988 | esac |
| 7989 | case $ac_abs_builddir in |
| 7990 | .) ac_abs_srcdir=$ac_srcdir;; |
| 7991 | *) |
| 7992 | case $ac_srcdir in |
| 7993 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 7994 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 7995 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 7996 | esac;; |
| 7997 | esac |
| 7998 | case $ac_abs_builddir in |
| 7999 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 8000 | *) |
| 8001 | case $ac_top_srcdir in |
| 8002 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 8003 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 8004 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 8005 | esac;; |
| 8006 | esac |
| 8007 | |
| 8008 | |
| 8009 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 8010 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 8011 | case $ac_dest in |
| 8012 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
| 8013 | # Strip MF so we end up with the name of the file. |
| 8014 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 8015 | # Check whether this is an Automake generated Makefile or not. |
| 8016 | # We used to match only the files named `Makefile.in', but |
| 8017 | # some people rename them; so instead we look at the file content. |
| 8018 | # Grep'ing the first line is not enough: some people post-process |
| 8019 | # each Makefile.in and add a new line on top of each file to say so. |
| 8020 | # So let's grep whole file. |
| 8021 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
| 8022 | dirpart=`(dirname "$mf") 2>/dev/null || |
| 8023 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8024 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 8025 | X"$mf" : 'X\(//\)$' \| \ |
| 8026 | X"$mf" : 'X\(/\)' \| \ |
| 8027 | . : '\(.\)' 2>/dev/null || |
| 8028 | echo X"$mf" | |
| 8029 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 8030 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 8031 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 8032 | /^X\(\/\).*/{ s//\1/; q; } |
| 8033 | s/.*/./; q'` |
| 8034 | else |
| 8035 | continue |
| 8036 | fi |
| 8037 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 8038 | # from the Makefile without running `make'. |
| 8039 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 8040 | test -z "$DEPDIR" && continue |
| 8041 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 8042 | test -z "am__include" && continue |
| 8043 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 8044 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 8045 | U=`sed -n 's/^U = //p' < "$mf"` |
| 8046 | # Find all dependency output files, they are included files with |
| 8047 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 8048 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 8049 | # expansion. |
| 8050 | for file in `sed -n " |
| 8051 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 8052 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 8053 | # Make sure the directory exists. |
| 8054 | test -f "$dirpart/$file" && continue |
| 8055 | fdir=`(dirname "$file") 2>/dev/null || |
| 8056 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8057 | X"$file" : 'X\(//\)[^/]' \| \ |
| 8058 | X"$file" : 'X\(//\)$' \| \ |
| 8059 | X"$file" : 'X\(/\)' \| \ |
| 8060 | . : '\(.\)' 2>/dev/null || |
| 8061 | echo X"$file" | |
| 8062 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 8063 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 8064 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 8065 | /^X\(\/\).*/{ s//\1/; q; } |
| 8066 | s/.*/./; q'` |
| 8067 | { if $as_mkdir_p; then |
| 8068 | mkdir -p $dirpart/$fdir |
| 8069 | else |
| 8070 | as_dir=$dirpart/$fdir |
| 8071 | as_dirs= |
| 8072 | while test ! -d "$as_dir"; do |
| 8073 | as_dirs="$as_dir $as_dirs" |
| 8074 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 8075 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8076 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 8077 | X"$as_dir" : 'X\(//\)$' \| \ |
| 8078 | X"$as_dir" : 'X\(/\)' \| \ |
| 8079 | . : '\(.\)' 2>/dev/null || |
| 8080 | echo X"$as_dir" | |
| 8081 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 8082 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 8083 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 8084 | /^X\(\/\).*/{ s//\1/; q; } |
| 8085 | s/.*/./; q'` |
| 8086 | done |
| 8087 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 8088 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
| 8089 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
| 8090 | { (exit 1); exit 1; }; }; } |
| 8091 | |
| 8092 | # echo "creating $dirpart/$file" |
| 8093 | echo '# dummy' > "$dirpart/$file" |
| 8094 | done |
| 8095 | done |
| 8096 | ;; |
| 8097 | default-1 ) |
| 8098 | for ac_file in $CONFIG_FILES; do |
| 8099 | # Support "outfile[:infile[:infile...]]" |
| 8100 | case "$ac_file" in |
| 8101 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 8102 | esac |
| 8103 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 8104 | case "$ac_file" in */Makefile.in) |
| 8105 | # Adjust a relative srcdir. |
| 8106 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 8107 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 8108 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 8109 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 8110 | # In autoconf-2.50 it is called $srcdir. |
| 8111 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 8112 | case "$ac_given_srcdir" in |
| 8113 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 8114 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 8115 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 8116 | esac |
| 8117 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 8118 | rm -f "$ac_dir/POTFILES" |
| 8119 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 8120 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
| 8121 | POMAKEFILEDEPS="POTFILES.in" |
| 8122 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend |
| 8123 | # on $ac_dir but don't depend on user-specified configuration |
| 8124 | # parameters. |
| 8125 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 8126 | # The LINGUAS file contains the set of available languages. |
| 8127 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
| 8128 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 8129 | fi |
| 8130 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 8131 | # Hide the ALL_LINGUAS assigment from automake. |
| 8132 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
| 8133 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 8134 | else |
| 8135 | # The set of available languages was given in configure.in. |
| 8136 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
| 8137 | fi |
| 8138 | case "$ac_given_srcdir" in |
| 8139 | .) srcdirpre= ;; |
| 8140 | *) srcdirpre='$(srcdir)/' ;; |
| 8141 | esac |
| 8142 | POFILES= |
| 8143 | GMOFILES= |
| 8144 | UPDATEPOFILES= |
| 8145 | DUMMYPOFILES= |
| 8146 | for lang in $ALL_LINGUAS; do |
| 8147 | POFILES="$POFILES $srcdirpre$lang.po" |
| 8148 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
| 8149 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 8150 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
| 8151 | done |
| 8152 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 8153 | # environment variable. |
| 8154 | INST_LINGUAS= |
| 8155 | if test -n "$ALL_LINGUAS"; then |
| 8156 | for presentlang in $ALL_LINGUAS; do |
| 8157 | useit=no |
| 8158 | if test "%UNSET%" != "$LINGUAS"; then |
| 8159 | desiredlanguages="$LINGUAS" |
| 8160 | else |
| 8161 | desiredlanguages="$ALL_LINGUAS" |
| 8162 | fi |
| 8163 | for desiredlang in $desiredlanguages; do |
| 8164 | # Use the presentlang catalog if desiredlang is |
| 8165 | # a. equal to presentlang, or |
| 8166 | # b. a variant of presentlang (because in this case, |
| 8167 | # presentlang can be used as a fallback for messages |
| 8168 | # which are not translated in the desiredlang catalog). |
| 8169 | case "$desiredlang" in |
| 8170 | "$presentlang"*) useit=yes;; |
| 8171 | esac |
| 8172 | done |
| 8173 | if test $useit = yes; then |
| 8174 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 8175 | fi |
| 8176 | done |
| 8177 | fi |
| 8178 | CATALOGS= |
| 8179 | if test -n "$INST_LINGUAS"; then |
| 8180 | for lang in $INST_LINGUAS; do |
| 8181 | CATALOGS="$CATALOGS $lang.gmo" |
| 8182 | done |
| 8183 | fi |
| 8184 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
| 8185 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
| 8186 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 8187 | if test -f "$f"; then |
| 8188 | case "$f" in |
| 8189 | *.orig | *.bak | *~) ;; |
| 8190 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 8191 | esac |
| 8192 | fi |
| 8193 | done |
| 8194 | fi |
| 8195 | ;; |
| 8196 | esac |
| 8197 | done ;; |
| 8198 | esac |
| 8199 | done |
| 8200 | _ACEOF |
| 8201 | |
| 8202 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 8203 | |
| 8204 | { (exit 0); exit 0; } |
| 8205 | _ACEOF |
| 8206 | chmod +x $CONFIG_STATUS |
| 8207 | ac_clean_files=$ac_clean_files_save |
| 8208 | |
| 8209 | |
| 8210 | # configure is writing to config.log, and then calls config.status. |
| 8211 | # config.status does its own redirection, appending to config.log. |
| 8212 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 8213 | # by configure, so config.status won't be able to write to it; its |
| 8214 | # output is simply discarded. So we exec the FD to /dev/null, |
| 8215 | # effectively closing config.log, so it can be properly (re)opened and |
| 8216 | # appended to by config.status. When coming back to configure, we |
| 8217 | # need to make the FD available again. |
| 8218 | if test "$no_create" != yes; then |
| 8219 | ac_cs_success=: |
| 8220 | ac_config_status_args= |
| 8221 | test "$silent" = yes && |
| 8222 | ac_config_status_args="$ac_config_status_args --quiet" |
| 8223 | exec 5>/dev/null |
| 8224 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 8225 | exec 5>>config.log |
| 8226 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 8227 | # would make configure fail if this is the last instruction. |
| 8228 | $ac_cs_success || { (exit 1); exit 1; } |
| 8229 | fi |
| 8230 | |