mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 3 | # Generated by GNU Autoconf 2.57. |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4 | # |
| 5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 6 | # Free Software Foundation, Inc. |
| 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
| 11 | ## --------------------- ## |
| 12 | |
| 13 | # Be Bourne compatible |
| 14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15 | emulate sh |
| 16 | NULLCMD=: |
| 17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 18 | # is contrary to our usage. Disable this feature. |
| 19 | alias -g '${1+"$@"}'='"$@"' |
| 20 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 21 | set -o posix |
| 22 | fi |
| 23 | |
| 24 | # Support unset when possible. |
| 25 | if (FOO=FOO; unset FOO) >/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. |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 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 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 43 | do |
| 44 | if (set +x; test -n "`(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 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 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 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 92 | PATH_SEPARATOR=';' |
| 93 | else |
| 94 | PATH_SEPARATOR=: |
| 95 | fi |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 96 | rm -f conf$$.sh |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 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 | as_mkdir_p=false |
| 222 | fi |
| 223 | |
| 224 | as_executable_p="test -f" |
| 225 | |
| 226 | # Sed expression to map a string onto a valid CPP name. |
| 227 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 228 | |
| 229 | # Sed expression to map a string onto a valid variable name. |
| 230 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 231 | |
| 232 | |
| 233 | # IFS |
| 234 | # We need space, tab and new line, in precisely that order. |
| 235 | as_nl=' |
| 236 | ' |
| 237 | IFS=" $as_nl" |
| 238 | |
| 239 | # CDPATH. |
| 240 | $as_unset CDPATH |
| 241 | |
| 242 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 243 | # Find the correct PATH separator. Usually this is `:', but |
| 244 | # DJGPP uses `;' like DOS. |
| 245 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
| 246 | UNAME=${UNAME-`uname 2>/dev/null`} |
| 247 | case X$UNAME in |
| 248 | *-DOS) lt_cv_sys_path_separator=';' ;; |
| 249 | *) lt_cv_sys_path_separator=':' ;; |
| 250 | esac |
| 251 | PATH_SEPARATOR=$lt_cv_sys_path_separator |
| 252 | fi |
| 253 | |
| 254 | |
| 255 | # Check that we are running under the correct shell. |
| 256 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 257 | |
| 258 | case X$ECHO in |
| 259 | X*--fallback-echo) |
| 260 | # Remove one level of quotation (which was required for Make). |
| 261 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 262 | ;; |
| 263 | esac |
| 264 | |
| 265 | echo=${ECHO-echo} |
| 266 | if test "X$1" = X--no-reexec; then |
| 267 | # Discard the --no-reexec flag, and continue. |
| 268 | shift |
| 269 | elif test "X$1" = X--fallback-echo; then |
| 270 | # Avoid inline document here, it may be left over |
| 271 | : |
| 272 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then |
| 273 | # Yippee, $echo works! |
| 274 | : |
| 275 | else |
| 276 | # Restart under the correct shell. |
| 277 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 278 | fi |
| 279 | |
| 280 | if test "X$1" = X--fallback-echo; then |
| 281 | # used as fallback echo |
| 282 | shift |
| 283 | cat <<EOF |
| 284 | |
| 285 | EOF |
| 286 | exit 0 |
| 287 | fi |
| 288 | |
| 289 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 290 | # if CDPATH is set. |
| 291 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 292 | |
| 293 | if test -z "$ECHO"; then |
| 294 | if test "X${echo_test_string+set}" != Xset; then |
| 295 | # find a string as large as possible, as long as the shell can cope with it |
| 296 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 297 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 298 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 299 | echo_test_string="`eval $cmd`" && |
| 300 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 301 | then |
| 302 | break |
| 303 | fi |
| 304 | done |
| 305 | fi |
| 306 | |
| 307 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 308 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 309 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 310 | : |
| 311 | else |
| 312 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 313 | # backslashes. This makes it impossible to quote backslashes using |
| 314 | # echo "$something" | sed 's/\\/\\\\/g' |
| 315 | # |
| 316 | # So, first we look for a working echo in the user's PATH. |
| 317 | |
| 318 | IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 319 | for dir in $PATH /usr/ucb; do |
| 320 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 321 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 322 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 323 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 324 | echo="$dir/echo" |
| 325 | break |
| 326 | fi |
| 327 | done |
| 328 | IFS="$save_ifs" |
| 329 | |
| 330 | if test "X$echo" = Xecho; then |
| 331 | # We didn't find a better echo, so look for alternatives. |
| 332 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 333 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 334 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 335 | # This shell has a builtin print -r that does the trick. |
| 336 | echo='print -r' |
| 337 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 338 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 339 | # If we have ksh, try running configure again with it. |
| 340 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 341 | export ORIGINAL_CONFIG_SHELL |
| 342 | CONFIG_SHELL=/bin/ksh |
| 343 | export CONFIG_SHELL |
| 344 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 345 | else |
| 346 | # Try using printf. |
| 347 | echo='printf %s\n' |
| 348 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 349 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 350 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 351 | # Cool, printf works |
| 352 | : |
| 353 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 354 | test "X$echo_testing_string" = 'X\t' && |
| 355 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 356 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 357 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 358 | export CONFIG_SHELL |
| 359 | SHELL="$CONFIG_SHELL" |
| 360 | export SHELL |
| 361 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 362 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 363 | test "X$echo_testing_string" = 'X\t' && |
| 364 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 365 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 366 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 367 | else |
| 368 | # maybe with a smaller string... |
| 369 | prev=: |
| 370 | |
| 371 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 372 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 373 | then |
| 374 | break |
| 375 | fi |
| 376 | prev="$cmd" |
| 377 | done |
| 378 | |
| 379 | if test "$prev" != 'sed 50q "$0"'; then |
| 380 | echo_test_string=`eval $prev` |
| 381 | export echo_test_string |
| 382 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 383 | else |
| 384 | # Oops. We lost completely, so just stick with echo. |
| 385 | echo=echo |
| 386 | fi |
| 387 | fi |
| 388 | fi |
| 389 | fi |
| 390 | fi |
| 391 | fi |
| 392 | |
| 393 | # Copy echo and quote the copy suitably for passing to libtool from |
| 394 | # the Makefile, instead of quoting the original, which is used later. |
| 395 | ECHO=$echo |
| 396 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 397 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 398 | fi |
| 399 | |
| 400 | |
| 401 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 402 | # Name of the host. |
| 403 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 404 | # so uname gets run too. |
| 405 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 406 | |
| 407 | exec 6>&1 |
| 408 | |
| 409 | # |
| 410 | # Initializations. |
| 411 | # |
| 412 | ac_default_prefix=/usr/local |
| 413 | ac_config_libobj_dir=. |
| 414 | cross_compiling=no |
| 415 | subdirs= |
| 416 | MFLAGS= |
| 417 | MAKEFLAGS= |
| 418 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 419 | |
| 420 | # Maximum number of lines to put in a shell here document. |
| 421 | # This variable seems obsolete. It should probably be removed, and |
| 422 | # only ac_max_sed_lines should be used. |
| 423 | : ${ac_max_here_lines=38} |
| 424 | |
| 425 | # Identity of this package. |
| 426 | PACKAGE_NAME= |
| 427 | PACKAGE_TARNAME= |
| 428 | PACKAGE_VERSION= |
| 429 | PACKAGE_STRING= |
| 430 | PACKAGE_BUGREPORT= |
| 431 | |
| 432 | ac_unique_file="src/backtrace.c" |
| 433 | # Factoring default headers for most tests. |
| 434 | ac_includes_default="\ |
| 435 | #include <stdio.h> |
| 436 | #if HAVE_SYS_TYPES_H |
| 437 | # include <sys/types.h> |
| 438 | #endif |
| 439 | #if HAVE_SYS_STAT_H |
| 440 | # include <sys/stat.h> |
| 441 | #endif |
| 442 | #if STDC_HEADERS |
| 443 | # include <stdlib.h> |
| 444 | # include <stddef.h> |
| 445 | #else |
| 446 | # if HAVE_STDLIB_H |
| 447 | # include <stdlib.h> |
| 448 | # endif |
| 449 | #endif |
| 450 | #if HAVE_STRING_H |
| 451 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 452 | # include <memory.h> |
| 453 | # endif |
| 454 | # include <string.h> |
| 455 | #endif |
| 456 | #if HAVE_STRINGS_H |
| 457 | # include <strings.h> |
| 458 | #endif |
| 459 | #if HAVE_INTTYPES_H |
| 460 | # include <inttypes.h> |
| 461 | #else |
| 462 | # if HAVE_STDINT_H |
| 463 | # include <stdint.h> |
| 464 | # endif |
| 465 | #endif |
| 466 | #if HAVE_UNISTD_H |
| 467 | # include <unistd.h> |
| 468 | #endif" |
| 469 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 470 | 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL LIBOBJS CCAS CCASFLAGS REMOTE_ONLY_TRUE REMOTE_ONLY_FALSE ARCH_IA64_TRUE ARCH_IA64_FALSE ARCH_HPPA_TRUE ARCH_HPPA_FALSE ARCH_X86_TRUE ARCH_X86_FALSE arch ARCH LTLIBOBJS' |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 471 | ac_subst_files='' |
| 472 | |
| 473 | # Initialize some variables set by options. |
| 474 | ac_init_help= |
| 475 | ac_init_version=false |
| 476 | # The variables have the same names as the options, with |
| 477 | # dashes changed to underlines. |
| 478 | cache_file=/dev/null |
| 479 | exec_prefix=NONE |
| 480 | no_create= |
| 481 | no_recursion= |
| 482 | prefix=NONE |
| 483 | program_prefix=NONE |
| 484 | program_suffix=NONE |
| 485 | program_transform_name=s,x,x, |
| 486 | silent= |
| 487 | site= |
| 488 | srcdir= |
| 489 | verbose= |
| 490 | x_includes=NONE |
| 491 | x_libraries=NONE |
| 492 | |
| 493 | # Installation directory options. |
| 494 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 495 | # and all the variables that are supposed to be based on exec_prefix |
| 496 | # by default will actually change. |
| 497 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 498 | bindir='${exec_prefix}/bin' |
| 499 | sbindir='${exec_prefix}/sbin' |
| 500 | libexecdir='${exec_prefix}/libexec' |
| 501 | datadir='${prefix}/share' |
| 502 | sysconfdir='${prefix}/etc' |
| 503 | sharedstatedir='${prefix}/com' |
| 504 | localstatedir='${prefix}/var' |
| 505 | libdir='${exec_prefix}/lib' |
| 506 | includedir='${prefix}/include' |
| 507 | oldincludedir='/usr/include' |
| 508 | infodir='${prefix}/info' |
| 509 | mandir='${prefix}/man' |
| 510 | |
| 511 | ac_prev= |
| 512 | for ac_option |
| 513 | do |
| 514 | # If the previous option needs an argument, assign it. |
| 515 | if test -n "$ac_prev"; then |
| 516 | eval "$ac_prev=\$ac_option" |
| 517 | ac_prev= |
| 518 | continue |
| 519 | fi |
| 520 | |
| 521 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 522 | |
| 523 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 524 | |
| 525 | case $ac_option in |
| 526 | |
| 527 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 528 | ac_prev=bindir ;; |
| 529 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 530 | bindir=$ac_optarg ;; |
| 531 | |
| 532 | -build | --build | --buil | --bui | --bu) |
| 533 | ac_prev=build_alias ;; |
| 534 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 535 | build_alias=$ac_optarg ;; |
| 536 | |
| 537 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 538 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 539 | ac_prev=cache_file ;; |
| 540 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 541 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 542 | cache_file=$ac_optarg ;; |
| 543 | |
| 544 | --config-cache | -C) |
| 545 | cache_file=config.cache ;; |
| 546 | |
| 547 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 548 | ac_prev=datadir ;; |
| 549 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 550 | | --da=*) |
| 551 | datadir=$ac_optarg ;; |
| 552 | |
| 553 | -disable-* | --disable-*) |
| 554 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 555 | # Reject names that are not valid shell variable names. |
| 556 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 557 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 558 | { (exit 1); exit 1; }; } |
| 559 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 560 | eval "enable_$ac_feature=no" ;; |
| 561 | |
| 562 | -enable-* | --enable-*) |
| 563 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 564 | # Reject names that are not valid shell variable names. |
| 565 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 566 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 567 | { (exit 1); exit 1; }; } |
| 568 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 569 | case $ac_option in |
| 570 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 571 | *) ac_optarg=yes ;; |
| 572 | esac |
| 573 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 574 | |
| 575 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 576 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 577 | | --exec | --exe | --ex) |
| 578 | ac_prev=exec_prefix ;; |
| 579 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 580 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 581 | | --exec=* | --exe=* | --ex=*) |
| 582 | exec_prefix=$ac_optarg ;; |
| 583 | |
| 584 | -gas | --gas | --ga | --g) |
| 585 | # Obsolete; use --with-gas. |
| 586 | with_gas=yes ;; |
| 587 | |
| 588 | -help | --help | --hel | --he | -h) |
| 589 | ac_init_help=long ;; |
| 590 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 591 | ac_init_help=recursive ;; |
| 592 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 593 | ac_init_help=short ;; |
| 594 | |
| 595 | -host | --host | --hos | --ho) |
| 596 | ac_prev=host_alias ;; |
| 597 | -host=* | --host=* | --hos=* | --ho=*) |
| 598 | host_alias=$ac_optarg ;; |
| 599 | |
| 600 | -includedir | --includedir | --includedi | --included | --include \ |
| 601 | | --includ | --inclu | --incl | --inc) |
| 602 | ac_prev=includedir ;; |
| 603 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 604 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 605 | includedir=$ac_optarg ;; |
| 606 | |
| 607 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 608 | ac_prev=infodir ;; |
| 609 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 610 | infodir=$ac_optarg ;; |
| 611 | |
| 612 | -libdir | --libdir | --libdi | --libd) |
| 613 | ac_prev=libdir ;; |
| 614 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 615 | libdir=$ac_optarg ;; |
| 616 | |
| 617 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 618 | | --libexe | --libex | --libe) |
| 619 | ac_prev=libexecdir ;; |
| 620 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 621 | | --libexe=* | --libex=* | --libe=*) |
| 622 | libexecdir=$ac_optarg ;; |
| 623 | |
| 624 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 625 | | --localstate | --localstat | --localsta | --localst \ |
| 626 | | --locals | --local | --loca | --loc | --lo) |
| 627 | ac_prev=localstatedir ;; |
| 628 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 629 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 630 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 631 | localstatedir=$ac_optarg ;; |
| 632 | |
| 633 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 634 | ac_prev=mandir ;; |
| 635 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 636 | mandir=$ac_optarg ;; |
| 637 | |
| 638 | -nfp | --nfp | --nf) |
| 639 | # Obsolete; use --without-fp. |
| 640 | with_fp=no ;; |
| 641 | |
| 642 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 643 | | --no-cr | --no-c | -n) |
| 644 | no_create=yes ;; |
| 645 | |
| 646 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 647 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 648 | no_recursion=yes ;; |
| 649 | |
| 650 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 651 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 652 | | --oldin | --oldi | --old | --ol | --o) |
| 653 | ac_prev=oldincludedir ;; |
| 654 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 655 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 656 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 657 | oldincludedir=$ac_optarg ;; |
| 658 | |
| 659 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 660 | ac_prev=prefix ;; |
| 661 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 662 | prefix=$ac_optarg ;; |
| 663 | |
| 664 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 665 | | --program-pre | --program-pr | --program-p) |
| 666 | ac_prev=program_prefix ;; |
| 667 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 668 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 669 | program_prefix=$ac_optarg ;; |
| 670 | |
| 671 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 672 | | --program-suf | --program-su | --program-s) |
| 673 | ac_prev=program_suffix ;; |
| 674 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 675 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 676 | program_suffix=$ac_optarg ;; |
| 677 | |
| 678 | -program-transform-name | --program-transform-name \ |
| 679 | | --program-transform-nam | --program-transform-na \ |
| 680 | | --program-transform-n | --program-transform- \ |
| 681 | | --program-transform | --program-transfor \ |
| 682 | | --program-transfo | --program-transf \ |
| 683 | | --program-trans | --program-tran \ |
| 684 | | --progr-tra | --program-tr | --program-t) |
| 685 | ac_prev=program_transform_name ;; |
| 686 | -program-transform-name=* | --program-transform-name=* \ |
| 687 | | --program-transform-nam=* | --program-transform-na=* \ |
| 688 | | --program-transform-n=* | --program-transform-=* \ |
| 689 | | --program-transform=* | --program-transfor=* \ |
| 690 | | --program-transfo=* | --program-transf=* \ |
| 691 | | --program-trans=* | --program-tran=* \ |
| 692 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 693 | program_transform_name=$ac_optarg ;; |
| 694 | |
| 695 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 696 | | -silent | --silent | --silen | --sile | --sil) |
| 697 | silent=yes ;; |
| 698 | |
| 699 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 700 | ac_prev=sbindir ;; |
| 701 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 702 | | --sbi=* | --sb=*) |
| 703 | sbindir=$ac_optarg ;; |
| 704 | |
| 705 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 706 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 707 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 708 | | --sha | --sh) |
| 709 | ac_prev=sharedstatedir ;; |
| 710 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 711 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 712 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 713 | | --sha=* | --sh=*) |
| 714 | sharedstatedir=$ac_optarg ;; |
| 715 | |
| 716 | -site | --site | --sit) |
| 717 | ac_prev=site ;; |
| 718 | -site=* | --site=* | --sit=*) |
| 719 | site=$ac_optarg ;; |
| 720 | |
| 721 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 722 | ac_prev=srcdir ;; |
| 723 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 724 | srcdir=$ac_optarg ;; |
| 725 | |
| 726 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 727 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 728 | ac_prev=sysconfdir ;; |
| 729 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 730 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 731 | sysconfdir=$ac_optarg ;; |
| 732 | |
| 733 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 734 | ac_prev=target_alias ;; |
| 735 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 736 | target_alias=$ac_optarg ;; |
| 737 | |
| 738 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 739 | verbose=yes ;; |
| 740 | |
| 741 | -version | --version | --versio | --versi | --vers | -V) |
| 742 | ac_init_version=: ;; |
| 743 | |
| 744 | -with-* | --with-*) |
| 745 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 746 | # Reject names that are not valid shell variable names. |
| 747 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 748 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 749 | { (exit 1); exit 1; }; } |
| 750 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 751 | case $ac_option in |
| 752 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 753 | *) ac_optarg=yes ;; |
| 754 | esac |
| 755 | eval "with_$ac_package='$ac_optarg'" ;; |
| 756 | |
| 757 | -without-* | --without-*) |
| 758 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 759 | # Reject names that are not valid shell variable names. |
| 760 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 761 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 762 | { (exit 1); exit 1; }; } |
| 763 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 764 | eval "with_$ac_package=no" ;; |
| 765 | |
| 766 | --x) |
| 767 | # Obsolete; use --with-x. |
| 768 | with_x=yes ;; |
| 769 | |
| 770 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 771 | | --x-incl | --x-inc | --x-in | --x-i) |
| 772 | ac_prev=x_includes ;; |
| 773 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 774 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 775 | x_includes=$ac_optarg ;; |
| 776 | |
| 777 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 778 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 779 | ac_prev=x_libraries ;; |
| 780 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 781 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 782 | x_libraries=$ac_optarg ;; |
| 783 | |
| 784 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 785 | Try \`$0 --help' for more information." >&2 |
| 786 | { (exit 1); exit 1; }; } |
| 787 | ;; |
| 788 | |
| 789 | *=*) |
| 790 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 791 | # Reject names that are not valid shell variable names. |
| 792 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 793 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 794 | { (exit 1); exit 1; }; } |
| 795 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 796 | eval "$ac_envvar='$ac_optarg'" |
| 797 | export $ac_envvar ;; |
| 798 | |
| 799 | *) |
| 800 | # FIXME: should be removed in autoconf 3.0. |
| 801 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 802 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 803 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 804 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 805 | ;; |
| 806 | |
| 807 | esac |
| 808 | done |
| 809 | |
| 810 | if test -n "$ac_prev"; then |
| 811 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 812 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 813 | { (exit 1); exit 1; }; } |
| 814 | fi |
| 815 | |
| 816 | # Be sure to have absolute paths. |
| 817 | for ac_var in exec_prefix prefix |
| 818 | do |
| 819 | eval ac_val=$`echo $ac_var` |
| 820 | case $ac_val in |
| 821 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 822 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 823 | { (exit 1); exit 1; }; };; |
| 824 | esac |
| 825 | done |
| 826 | |
| 827 | # Be sure to have absolute paths. |
| 828 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 829 | localstatedir libdir includedir oldincludedir infodir mandir |
| 830 | do |
| 831 | eval ac_val=$`echo $ac_var` |
| 832 | case $ac_val in |
| 833 | [\\/$]* | ?:[\\/]* ) ;; |
| 834 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 835 | { (exit 1); exit 1; }; };; |
| 836 | esac |
| 837 | done |
| 838 | |
| 839 | # There might be people who depend on the old broken behavior: `$host' |
| 840 | # used to hold the argument of --host etc. |
| 841 | # FIXME: To remove some day. |
| 842 | build=$build_alias |
| 843 | host=$host_alias |
| 844 | target=$target_alias |
| 845 | |
| 846 | # FIXME: To remove some day. |
| 847 | if test "x$host_alias" != x; then |
| 848 | if test "x$build_alias" = x; then |
| 849 | cross_compiling=maybe |
| 850 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 851 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 852 | elif test "x$build_alias" != "x$host_alias"; then |
| 853 | cross_compiling=yes |
| 854 | fi |
| 855 | fi |
| 856 | |
| 857 | ac_tool_prefix= |
| 858 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 859 | |
| 860 | test "$silent" = yes && exec 6>/dev/null |
| 861 | |
| 862 | |
| 863 | # Find the source files, if location was not specified. |
| 864 | if test -z "$srcdir"; then |
| 865 | ac_srcdir_defaulted=yes |
| 866 | # Try the directory containing this script, then its parent. |
| 867 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 868 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 869 | X"$0" : 'X\(//\)[^/]' \| \ |
| 870 | X"$0" : 'X\(//\)$' \| \ |
| 871 | X"$0" : 'X\(/\)' \| \ |
| 872 | . : '\(.\)' 2>/dev/null || |
| 873 | echo X"$0" | |
| 874 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 875 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 876 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 877 | /^X\(\/\).*/{ s//\1/; q; } |
| 878 | s/.*/./; q'` |
| 879 | srcdir=$ac_confdir |
| 880 | if test ! -r $srcdir/$ac_unique_file; then |
| 881 | srcdir=.. |
| 882 | fi |
| 883 | else |
| 884 | ac_srcdir_defaulted=no |
| 885 | fi |
| 886 | if test ! -r $srcdir/$ac_unique_file; then |
| 887 | if test "$ac_srcdir_defaulted" = yes; then |
| 888 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 889 | { (exit 1); exit 1; }; } |
| 890 | else |
| 891 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 892 | { (exit 1); exit 1; }; } |
| 893 | fi |
| 894 | fi |
| 895 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 896 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 897 | { (exit 1); exit 1; }; } |
| 898 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 899 | ac_env_build_alias_set=${build_alias+set} |
| 900 | ac_env_build_alias_value=$build_alias |
| 901 | ac_cv_env_build_alias_set=${build_alias+set} |
| 902 | ac_cv_env_build_alias_value=$build_alias |
| 903 | ac_env_host_alias_set=${host_alias+set} |
| 904 | ac_env_host_alias_value=$host_alias |
| 905 | ac_cv_env_host_alias_set=${host_alias+set} |
| 906 | ac_cv_env_host_alias_value=$host_alias |
| 907 | ac_env_target_alias_set=${target_alias+set} |
| 908 | ac_env_target_alias_value=$target_alias |
| 909 | ac_cv_env_target_alias_set=${target_alias+set} |
| 910 | ac_cv_env_target_alias_value=$target_alias |
| 911 | ac_env_CC_set=${CC+set} |
| 912 | ac_env_CC_value=$CC |
| 913 | ac_cv_env_CC_set=${CC+set} |
| 914 | ac_cv_env_CC_value=$CC |
| 915 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 916 | ac_env_CFLAGS_value=$CFLAGS |
| 917 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 918 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 919 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 920 | ac_env_LDFLAGS_value=$LDFLAGS |
| 921 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 922 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 923 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 924 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 925 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 926 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 927 | ac_env_CPP_set=${CPP+set} |
| 928 | ac_env_CPP_value=$CPP |
| 929 | ac_cv_env_CPP_set=${CPP+set} |
| 930 | ac_cv_env_CPP_value=$CPP |
| 931 | |
| 932 | # |
| 933 | # Report the --help message. |
| 934 | # |
| 935 | if test "$ac_init_help" = "long"; then |
| 936 | # Omit some internal or obsolete options to make the list less imposing. |
| 937 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 938 | cat <<_ACEOF |
| 939 | \`configure' configures this package to adapt to many kinds of systems. |
| 940 | |
| 941 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 942 | |
| 943 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 944 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 945 | |
| 946 | Defaults for the options are specified in brackets. |
| 947 | |
| 948 | Configuration: |
| 949 | -h, --help display this help and exit |
| 950 | --help=short display options specific to this package |
| 951 | --help=recursive display the short help of all the included packages |
| 952 | -V, --version display version information and exit |
| 953 | -q, --quiet, --silent do not print \`checking...' messages |
| 954 | --cache-file=FILE cache test results in FILE [disabled] |
| 955 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 956 | -n, --no-create do not create output files |
| 957 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 958 | |
| 959 | _ACEOF |
| 960 | |
| 961 | cat <<_ACEOF |
| 962 | Installation directories: |
| 963 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 964 | [$ac_default_prefix] |
| 965 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 966 | [PREFIX] |
| 967 | |
| 968 | By default, \`make install' will install all the files in |
| 969 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 970 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 971 | for instance \`--prefix=\$HOME'. |
| 972 | |
| 973 | For better control, use the options below. |
| 974 | |
| 975 | Fine tuning of the installation directories: |
| 976 | --bindir=DIR user executables [EPREFIX/bin] |
| 977 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 978 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 979 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 980 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 981 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 982 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 983 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 984 | --includedir=DIR C header files [PREFIX/include] |
| 985 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 986 | --infodir=DIR info documentation [PREFIX/info] |
| 987 | --mandir=DIR man documentation [PREFIX/man] |
| 988 | _ACEOF |
| 989 | |
| 990 | cat <<\_ACEOF |
| 991 | |
| 992 | Program names: |
| 993 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 994 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 995 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 996 | |
| 997 | System types: |
| 998 | --build=BUILD configure for building on BUILD [guessed] |
| 999 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1000 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1001 | _ACEOF |
| 1002 | fi |
| 1003 | |
| 1004 | if test -n "$ac_init_help"; then |
| 1005 | |
| 1006 | cat <<\_ACEOF |
| 1007 | |
| 1008 | Optional Features: |
| 1009 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1010 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1011 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 1012 | (and sometimes confusing) to the casual installer |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1013 | --disable-dependency-tracking Speeds up one-time builds |
| 1014 | --enable-dependency-tracking Do not reject slow dependency extractors |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1015 | --enable-shared=PKGS build shared libraries default=yes |
| 1016 | --enable-static=PKGS build static libraries default=yes |
| 1017 | --enable-fast-install=PKGS optimize for fast installation default=yes |
| 1018 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1019 | --enable-debug turn on debug support (slows down execution) |
| 1020 | |
| 1021 | Optional Packages: |
| 1022 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1023 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1024 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 1025 | --with-pic try to use only PIC/non-PIC objects default=use both |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1026 | |
| 1027 | Some influential environment variables: |
| 1028 | CC C compiler command |
| 1029 | CFLAGS C compiler flags |
| 1030 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1031 | nonstandard directory <lib dir> |
| 1032 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1033 | headers in a nonstandard directory <include dir> |
| 1034 | CPP C preprocessor |
| 1035 | |
| 1036 | Use these variables to override the choices made by `configure' or to help |
| 1037 | it to find libraries and programs with nonstandard names/locations. |
| 1038 | |
| 1039 | _ACEOF |
| 1040 | fi |
| 1041 | |
| 1042 | if test "$ac_init_help" = "recursive"; then |
| 1043 | # If there are subdirs, report their specific --help. |
| 1044 | ac_popdir=`pwd` |
| 1045 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1046 | test -d $ac_dir || continue |
| 1047 | ac_builddir=. |
| 1048 | |
| 1049 | if test "$ac_dir" != .; then |
| 1050 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1051 | # A "../" for each directory in $ac_dir_suffix. |
| 1052 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1053 | else |
| 1054 | ac_dir_suffix= ac_top_builddir= |
| 1055 | fi |
| 1056 | |
| 1057 | case $srcdir in |
| 1058 | .) # No --srcdir option. We are building in place. |
| 1059 | ac_srcdir=. |
| 1060 | if test -z "$ac_top_builddir"; then |
| 1061 | ac_top_srcdir=. |
| 1062 | else |
| 1063 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1064 | fi ;; |
| 1065 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1066 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1067 | ac_top_srcdir=$srcdir ;; |
| 1068 | *) # Relative path. |
| 1069 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1070 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1071 | esac |
| 1072 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 1073 | # absolute. |
| 1074 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 1075 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
| 1076 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 1077 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 1078 | |
| 1079 | cd $ac_dir |
| 1080 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1081 | if test -f $ac_srcdir/configure.gnu; then |
| 1082 | echo |
| 1083 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1084 | elif test -f $ac_srcdir/configure; then |
| 1085 | echo |
| 1086 | $SHELL $ac_srcdir/configure --help=recursive |
| 1087 | elif test -f $ac_srcdir/configure.ac || |
| 1088 | test -f $ac_srcdir/configure.in; then |
| 1089 | echo |
| 1090 | $ac_configure --help |
| 1091 | else |
| 1092 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1093 | fi |
| 1094 | cd $ac_popdir |
| 1095 | done |
| 1096 | fi |
| 1097 | |
| 1098 | test -n "$ac_init_help" && exit 0 |
| 1099 | if $ac_init_version; then |
| 1100 | cat <<\_ACEOF |
| 1101 | |
| 1102 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 1103 | Free Software Foundation, Inc. |
| 1104 | This configure script is free software; the Free Software Foundation |
| 1105 | gives unlimited permission to copy, distribute and modify it. |
| 1106 | _ACEOF |
| 1107 | exit 0 |
| 1108 | fi |
| 1109 | exec 5>config.log |
| 1110 | cat >&5 <<_ACEOF |
| 1111 | This file contains any messages produced by compilers while |
| 1112 | running configure, to aid debugging if configure makes a mistake. |
| 1113 | |
| 1114 | It was created by $as_me, which was |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 1115 | generated by GNU Autoconf 2.57. Invocation command line was |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1116 | |
| 1117 | $ $0 $@ |
| 1118 | |
| 1119 | _ACEOF |
| 1120 | { |
| 1121 | cat <<_ASUNAME |
| 1122 | ## --------- ## |
| 1123 | ## Platform. ## |
| 1124 | ## --------- ## |
| 1125 | |
| 1126 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1127 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1128 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1129 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1130 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1131 | |
| 1132 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1133 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1134 | |
| 1135 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1136 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1137 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1138 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1139 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1140 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1141 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1142 | |
| 1143 | _ASUNAME |
| 1144 | |
| 1145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1146 | for as_dir in $PATH |
| 1147 | do |
| 1148 | IFS=$as_save_IFS |
| 1149 | test -z "$as_dir" && as_dir=. |
| 1150 | echo "PATH: $as_dir" |
| 1151 | done |
| 1152 | |
| 1153 | } >&5 |
| 1154 | |
| 1155 | cat >&5 <<_ACEOF |
| 1156 | |
| 1157 | |
| 1158 | ## ----------- ## |
| 1159 | ## Core tests. ## |
| 1160 | ## ----------- ## |
| 1161 | |
| 1162 | _ACEOF |
| 1163 | |
| 1164 | |
| 1165 | # Keep a trace of the command line. |
| 1166 | # Strip out --no-create and --no-recursion so they do not pile up. |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 1167 | # Strip out --silent because we don't want to record it for future runs. |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1168 | # Also quote any args containing shell meta-characters. |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 1169 | # Make two passes to allow for proper duplicate-argument suppression. |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1170 | ac_configure_args= |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 1171 | ac_configure_args0= |
| 1172 | ac_configure_args1= |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1173 | ac_sep= |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 1174 | ac_must_keep_next=false |
| 1175 | for ac_pass in 1 2 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1176 | do |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 1177 | for ac_arg |
| 1178 | do |
| 1179 | case $ac_arg in |
| 1180 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1181 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1182 | | -silent | --silent | --silen | --sile | --sil) |
| 1183 | continue ;; |
| 1184 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1185 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1186 | esac |
| 1187 | case $ac_pass in |
| 1188 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1189 | 2) |
| 1190 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1191 | if test $ac_must_keep_next = true; then |
| 1192 | ac_must_keep_next=false # Got value, back to normal. |
| 1193 | else |
| 1194 | case $ac_arg in |
| 1195 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1196 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1197 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1198 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1199 | case "$ac_configure_args0 " in |
| 1200 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1201 | esac |
| 1202 | ;; |
| 1203 | -* ) ac_must_keep_next=true ;; |
| 1204 | esac |
| 1205 | fi |
| 1206 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1207 | # Get rid of the leading space. |
| 1208 | ac_sep=" " |
| 1209 | ;; |
| 1210 | esac |
| 1211 | done |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1212 | done |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 1213 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1214 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1215 | |
| 1216 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1217 | # config.log. We remove comments because anyway the quotes in there |
| 1218 | # would cause problems or look ugly. |
| 1219 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1220 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1221 | trap 'exit_status=$? |
| 1222 | # Save into config.log some information that might help in debugging. |
| 1223 | { |
| 1224 | echo |
| 1225 | |
| 1226 | cat <<\_ASBOX |
| 1227 | ## ---------------- ## |
| 1228 | ## Cache variables. ## |
| 1229 | ## ---------------- ## |
| 1230 | _ASBOX |
| 1231 | echo |
| 1232 | # The following way of writing the cache mishandles newlines in values, |
| 1233 | { |
| 1234 | (set) 2>&1 | |
| 1235 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1236 | *ac_space=\ *) |
| 1237 | sed -n \ |
| 1238 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1239 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1240 | ;; |
| 1241 | *) |
| 1242 | sed -n \ |
| 1243 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1244 | ;; |
| 1245 | esac; |
| 1246 | } |
| 1247 | echo |
| 1248 | |
| 1249 | cat <<\_ASBOX |
| 1250 | ## ----------------- ## |
| 1251 | ## Output variables. ## |
| 1252 | ## ----------------- ## |
| 1253 | _ASBOX |
| 1254 | echo |
| 1255 | for ac_var in $ac_subst_vars |
| 1256 | do |
| 1257 | eval ac_val=$`echo $ac_var` |
| 1258 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1259 | done | sort |
| 1260 | echo |
| 1261 | |
| 1262 | if test -n "$ac_subst_files"; then |
| 1263 | cat <<\_ASBOX |
| 1264 | ## ------------- ## |
| 1265 | ## Output files. ## |
| 1266 | ## ------------- ## |
| 1267 | _ASBOX |
| 1268 | echo |
| 1269 | for ac_var in $ac_subst_files |
| 1270 | do |
| 1271 | eval ac_val=$`echo $ac_var` |
| 1272 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1273 | done | sort |
| 1274 | echo |
| 1275 | fi |
| 1276 | |
| 1277 | if test -s confdefs.h; then |
| 1278 | cat <<\_ASBOX |
| 1279 | ## ----------- ## |
| 1280 | ## confdefs.h. ## |
| 1281 | ## ----------- ## |
| 1282 | _ASBOX |
| 1283 | echo |
| 1284 | sed "/^$/d" confdefs.h | sort |
| 1285 | echo |
| 1286 | fi |
| 1287 | test "$ac_signal" != 0 && |
| 1288 | echo "$as_me: caught signal $ac_signal" |
| 1289 | echo "$as_me: exit $exit_status" |
| 1290 | } >&5 |
| 1291 | rm -f core core.* *.core && |
| 1292 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1293 | exit $exit_status |
| 1294 | ' 0 |
| 1295 | for ac_signal in 1 2 13 15; do |
| 1296 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1297 | done |
| 1298 | ac_signal=0 |
| 1299 | |
| 1300 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1301 | rm -rf conftest* confdefs.h |
| 1302 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1303 | echo >confdefs.h |
| 1304 | |
| 1305 | # Predefined preprocessor variables. |
| 1306 | |
| 1307 | cat >>confdefs.h <<_ACEOF |
| 1308 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1309 | _ACEOF |
| 1310 | |
| 1311 | |
| 1312 | cat >>confdefs.h <<_ACEOF |
| 1313 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1314 | _ACEOF |
| 1315 | |
| 1316 | |
| 1317 | cat >>confdefs.h <<_ACEOF |
| 1318 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1319 | _ACEOF |
| 1320 | |
| 1321 | |
| 1322 | cat >>confdefs.h <<_ACEOF |
| 1323 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1324 | _ACEOF |
| 1325 | |
| 1326 | |
| 1327 | cat >>confdefs.h <<_ACEOF |
| 1328 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1329 | _ACEOF |
| 1330 | |
| 1331 | |
| 1332 | # Let the site file select an alternate cache file if it wants to. |
| 1333 | # Prefer explicitly selected file to automatically selected ones. |
| 1334 | if test -z "$CONFIG_SITE"; then |
| 1335 | if test "x$prefix" != xNONE; then |
| 1336 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1337 | else |
| 1338 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1339 | fi |
| 1340 | fi |
| 1341 | for ac_site_file in $CONFIG_SITE; do |
| 1342 | if test -r "$ac_site_file"; then |
| 1343 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1344 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1345 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1346 | . "$ac_site_file" |
| 1347 | fi |
| 1348 | done |
| 1349 | |
| 1350 | if test -r "$cache_file"; then |
| 1351 | # Some versions of bash will fail to source /dev/null (special |
| 1352 | # files actually), so we avoid doing that. |
| 1353 | if test -f "$cache_file"; then |
| 1354 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1355 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1356 | case $cache_file in |
| 1357 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1358 | *) . ./$cache_file;; |
| 1359 | esac |
| 1360 | fi |
| 1361 | else |
| 1362 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1363 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1364 | >$cache_file |
| 1365 | fi |
| 1366 | |
| 1367 | # Check that the precious variables saved in the cache have kept the same |
| 1368 | # value. |
| 1369 | ac_cache_corrupted=false |
| 1370 | for ac_var in `(set) 2>&1 | |
| 1371 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1372 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1373 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1374 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1375 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1376 | case $ac_old_set,$ac_new_set in |
| 1377 | set,) |
| 1378 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1379 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1380 | ac_cache_corrupted=: ;; |
| 1381 | ,set) |
| 1382 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1383 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1384 | ac_cache_corrupted=: ;; |
| 1385 | ,);; |
| 1386 | *) |
| 1387 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1388 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1389 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1390 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1391 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1392 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1393 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1394 | ac_cache_corrupted=: |
| 1395 | fi;; |
| 1396 | esac |
| 1397 | # Pass precious variables to config.status. |
| 1398 | if test "$ac_new_set" = set; then |
| 1399 | case $ac_new_val in |
| 1400 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1401 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1402 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1403 | esac |
| 1404 | case " $ac_configure_args " in |
| 1405 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1406 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1407 | esac |
| 1408 | fi |
| 1409 | done |
| 1410 | if $ac_cache_corrupted; then |
| 1411 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1412 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1413 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1414 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1415 | { (exit 1); exit 1; }; } |
| 1416 | fi |
| 1417 | |
| 1418 | ac_ext=c |
| 1419 | ac_cpp='$CPP $CPPFLAGS' |
| 1420 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1421 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1422 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1423 | |
| 1424 | |
| 1425 | |
| 1426 | |
| 1427 | |
| 1428 | |
| 1429 | |
| 1430 | |
| 1431 | |
| 1432 | |
| 1433 | |
| 1434 | |
| 1435 | |
| 1436 | |
| 1437 | |
| 1438 | |
| 1439 | |
| 1440 | |
| 1441 | |
| 1442 | ac_aux_dir= |
| 1443 | for ac_dir in aux $srcdir/aux; do |
| 1444 | if test -f $ac_dir/install-sh; then |
| 1445 | ac_aux_dir=$ac_dir |
| 1446 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1447 | break |
| 1448 | elif test -f $ac_dir/install.sh; then |
| 1449 | ac_aux_dir=$ac_dir |
| 1450 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1451 | break |
| 1452 | elif test -f $ac_dir/shtool; then |
| 1453 | ac_aux_dir=$ac_dir |
| 1454 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1455 | break |
| 1456 | fi |
| 1457 | done |
| 1458 | if test -z "$ac_aux_dir"; then |
| 1459 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&5 |
| 1460 | echo "$as_me: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&2;} |
| 1461 | { (exit 1); exit 1; }; } |
| 1462 | fi |
| 1463 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1464 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1465 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1466 | |
| 1467 | # Make sure we can run config.sub. |
| 1468 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1469 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1470 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1471 | { (exit 1); exit 1; }; } |
| 1472 | |
| 1473 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1474 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1475 | if test "${ac_cv_build+set}" = set; then |
| 1476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1477 | else |
| 1478 | ac_cv_build_alias=$build_alias |
| 1479 | test -z "$ac_cv_build_alias" && |
| 1480 | ac_cv_build_alias=`$ac_config_guess` |
| 1481 | test -z "$ac_cv_build_alias" && |
| 1482 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1483 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1484 | { (exit 1); exit 1; }; } |
| 1485 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1486 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1487 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1488 | { (exit 1); exit 1; }; } |
| 1489 | |
| 1490 | fi |
| 1491 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1492 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1493 | build=$ac_cv_build |
| 1494 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1495 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1496 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1497 | |
| 1498 | |
| 1499 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1500 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1501 | if test "${ac_cv_host+set}" = set; then |
| 1502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1503 | else |
| 1504 | ac_cv_host_alias=$host_alias |
| 1505 | test -z "$ac_cv_host_alias" && |
| 1506 | ac_cv_host_alias=$ac_cv_build_alias |
| 1507 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1508 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1509 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1510 | { (exit 1); exit 1; }; } |
| 1511 | |
| 1512 | fi |
| 1513 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1514 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1515 | host=$ac_cv_host |
| 1516 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1517 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1518 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1519 | |
| 1520 | |
| 1521 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 1522 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 1523 | if test "${ac_cv_target+set}" = set; then |
| 1524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1525 | else |
| 1526 | ac_cv_target_alias=$target_alias |
| 1527 | test "x$ac_cv_target_alias" = "x" && |
| 1528 | ac_cv_target_alias=$ac_cv_host_alias |
| 1529 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 1530 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 1531 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 1532 | { (exit 1); exit 1; }; } |
| 1533 | |
| 1534 | fi |
| 1535 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1536 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 1537 | target=$ac_cv_target |
| 1538 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1539 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1540 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1541 | |
| 1542 | |
| 1543 | # The aliases save the names the user supplied, while $host etc. |
| 1544 | # will get canonicalized. |
| 1545 | test -n "$target_alias" && |
| 1546 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1547 | NONENONEs,x,x, && |
| 1548 | program_prefix=${target_alias}- |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1549 | am__api_version="1.6" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1550 | # Find a good install program. We prefer a C program (faster), |
| 1551 | # so one script is as good as another. But avoid the broken or |
| 1552 | # incompatible versions: |
| 1553 | # SysV /etc/install, /usr/sbin/install |
| 1554 | # SunOS /usr/etc/install |
| 1555 | # IRIX /sbin/install |
| 1556 | # AIX /bin/install |
| 1557 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1558 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1559 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1560 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1561 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1562 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 1563 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 1564 | if test -z "$INSTALL"; then |
| 1565 | if test "${ac_cv_path_install+set}" = set; then |
| 1566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1567 | else |
| 1568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1569 | for as_dir in $PATH |
| 1570 | do |
| 1571 | IFS=$as_save_IFS |
| 1572 | test -z "$as_dir" && as_dir=. |
| 1573 | # Account for people who put trailing slashes in PATH elements. |
| 1574 | case $as_dir/ in |
| 1575 | ./ | .// | /cC/* | \ |
| 1576 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 1577 | /usr/ucb/* ) ;; |
| 1578 | *) |
| 1579 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1580 | # Don't use installbsd from OSF since it installs stuff as root |
| 1581 | # by default. |
| 1582 | for ac_prog in ginstall scoinst install; do |
| 1583 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1584 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 1585 | if test $ac_prog = install && |
| 1586 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1587 | # AIX install. It has an incompatible calling convention. |
| 1588 | : |
| 1589 | elif test $ac_prog = install && |
| 1590 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1591 | # program-specific install script used by HP pwplus--don't use. |
| 1592 | : |
| 1593 | else |
| 1594 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 1595 | break 3 |
| 1596 | fi |
| 1597 | fi |
| 1598 | done |
| 1599 | done |
| 1600 | ;; |
| 1601 | esac |
| 1602 | done |
| 1603 | |
| 1604 | |
| 1605 | fi |
| 1606 | if test "${ac_cv_path_install+set}" = set; then |
| 1607 | INSTALL=$ac_cv_path_install |
| 1608 | else |
| 1609 | # As a last resort, use the slow shell script. We don't cache a |
| 1610 | # path for INSTALL within a source directory, because that will |
| 1611 | # break other packages using the cache if that directory is |
| 1612 | # removed, or if the path is relative. |
| 1613 | INSTALL=$ac_install_sh |
| 1614 | fi |
| 1615 | fi |
| 1616 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 1617 | echo "${ECHO_T}$INSTALL" >&6 |
| 1618 | |
| 1619 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1620 | # It thinks the first close brace ends the variable substitution. |
| 1621 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1622 | |
| 1623 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 1624 | |
| 1625 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1626 | |
| 1627 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 1628 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
| 1629 | # Just in case |
| 1630 | sleep 1 |
| 1631 | echo timestamp > conftest.file |
| 1632 | # Do `set' in a subshell so we don't clobber the current shell's |
| 1633 | # arguments. Must try -L first in case configure is actually a |
| 1634 | # symlink; some systems play weird games with the mod time of symlinks |
| 1635 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 1636 | # directory). |
| 1637 | if ( |
| 1638 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 1639 | if test "$*" = "X"; then |
| 1640 | # -L didn't work. |
| 1641 | set X `ls -t $srcdir/configure conftest.file` |
| 1642 | fi |
| 1643 | rm -f conftest.file |
| 1644 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 1645 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 1646 | |
| 1647 | # If neither matched, then we have a broken ls. This can happen |
| 1648 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 1649 | # broken ls alias from the environment. This has actually |
| 1650 | # happened. Such a system could not be considered "sane". |
| 1651 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 1652 | alias in your environment" >&5 |
| 1653 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 1654 | alias in your environment" >&2;} |
| 1655 | { (exit 1); exit 1; }; } |
| 1656 | fi |
| 1657 | |
| 1658 | test "$2" = conftest.file |
| 1659 | ) |
| 1660 | then |
| 1661 | # Ok. |
| 1662 | : |
| 1663 | else |
| 1664 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 1665 | Check your system clock" >&5 |
| 1666 | echo "$as_me: error: newly created file is older than distributed files! |
| 1667 | Check your system clock" >&2;} |
| 1668 | { (exit 1); exit 1; }; } |
| 1669 | fi |
| 1670 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1671 | echo "${ECHO_T}yes" >&6 |
| 1672 | test "$program_prefix" != NONE && |
| 1673 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
| 1674 | # Use a double $ so make ignores it. |
| 1675 | test "$program_suffix" != NONE && |
| 1676 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 1677 | # Double any \ or $. echo might interpret backslashes. |
| 1678 | # By default was `s,x,x', remove it if useless. |
| 1679 | cat <<\_ACEOF >conftest.sed |
| 1680 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 1681 | _ACEOF |
| 1682 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 1683 | rm conftest.sed |
| 1684 | |
| 1685 | |
| 1686 | # expand $ac_aux_dir to an absolute path |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1687 | am_aux_dir=`cd $ac_aux_dir && pwd` |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1688 | |
| 1689 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 1690 | # Use eval to expand $SHELL |
| 1691 | if eval "$MISSING --run true"; then |
| 1692 | am_missing_run="$MISSING --run " |
| 1693 | else |
| 1694 | am_missing_run= |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1695 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 1696 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1697 | fi |
| 1698 | |
| 1699 | for ac_prog in gawk mawk nawk awk |
| 1700 | do |
| 1701 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1702 | set dummy $ac_prog; ac_word=$2 |
| 1703 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1704 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1705 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 1706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1707 | else |
| 1708 | if test -n "$AWK"; then |
| 1709 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 1710 | else |
| 1711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1712 | for as_dir in $PATH |
| 1713 | do |
| 1714 | IFS=$as_save_IFS |
| 1715 | test -z "$as_dir" && as_dir=. |
| 1716 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1717 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1718 | ac_cv_prog_AWK="$ac_prog" |
| 1719 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1720 | break 2 |
| 1721 | fi |
| 1722 | done |
| 1723 | done |
| 1724 | |
| 1725 | fi |
| 1726 | fi |
| 1727 | AWK=$ac_cv_prog_AWK |
| 1728 | if test -n "$AWK"; then |
| 1729 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 1730 | echo "${ECHO_T}$AWK" >&6 |
| 1731 | else |
| 1732 | echo "$as_me:$LINENO: result: no" >&5 |
| 1733 | echo "${ECHO_T}no" >&6 |
| 1734 | fi |
| 1735 | |
| 1736 | test -n "$AWK" && break |
| 1737 | done |
| 1738 | |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 1739 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1740 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1741 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 1742 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1744 | else |
| 1745 | cat >conftest.make <<\_ACEOF |
| 1746 | all: |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 1747 | @echo 'ac_maketemp="$(MAKE)"' |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1748 | _ACEOF |
| 1749 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 1750 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 1751 | if test -n "$ac_maketemp"; then |
| 1752 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1753 | else |
| 1754 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1755 | fi |
| 1756 | rm -f conftest.make |
| 1757 | fi |
| 1758 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 1759 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1760 | echo "${ECHO_T}yes" >&6 |
| 1761 | SET_MAKE= |
| 1762 | else |
| 1763 | echo "$as_me:$LINENO: result: no" >&5 |
| 1764 | echo "${ECHO_T}no" >&6 |
| 1765 | SET_MAKE="MAKE=${MAKE-make}" |
| 1766 | fi |
| 1767 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1768 | # test to see if srcdir already configured |
| 1769 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1770 | test -f $srcdir/config.status; then |
| 1771 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 1772 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 1773 | { (exit 1); exit 1; }; } |
| 1774 | fi |
| 1775 | |
| 1776 | # Define the identity of the package. |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1777 | PACKAGE=libunwind |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 1778 | VERSION=0.2-pre4 |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1779 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1780 | |
| 1781 | cat >>confdefs.h <<_ACEOF |
| 1782 | #define PACKAGE "$PACKAGE" |
| 1783 | _ACEOF |
| 1784 | |
| 1785 | |
| 1786 | cat >>confdefs.h <<_ACEOF |
| 1787 | #define VERSION "$VERSION" |
| 1788 | _ACEOF |
| 1789 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1790 | # Some tools Automake needs. |
| 1791 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1792 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1793 | |
| 1794 | |
| 1795 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 1796 | |
| 1797 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1798 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1799 | |
| 1800 | |
| 1801 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 1802 | |
| 1803 | |
| 1804 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 1805 | |
| 1806 | |
| 1807 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 1808 | |
| 1809 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 1810 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1811 | # Installed binaries are usually stripped using `strip' when the user |
| 1812 | # run `make install-strip'. However `strip' might not be the right |
| 1813 | # tool to use in cross-compilation environments, therefore Automake |
| 1814 | # will honor the `STRIP' environment variable to overrule this program. |
| 1815 | if test "$cross_compiling" != no; then |
| 1816 | if test -n "$ac_tool_prefix"; then |
| 1817 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 1818 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 1819 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1820 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1821 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 1822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1823 | else |
| 1824 | if test -n "$STRIP"; then |
| 1825 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 1826 | else |
| 1827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1828 | for as_dir in $PATH |
| 1829 | do |
| 1830 | IFS=$as_save_IFS |
| 1831 | test -z "$as_dir" && as_dir=. |
| 1832 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1833 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1834 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 1835 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1836 | break 2 |
| 1837 | fi |
| 1838 | done |
| 1839 | done |
| 1840 | |
| 1841 | fi |
| 1842 | fi |
| 1843 | STRIP=$ac_cv_prog_STRIP |
| 1844 | if test -n "$STRIP"; then |
| 1845 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 1846 | echo "${ECHO_T}$STRIP" >&6 |
| 1847 | else |
| 1848 | echo "$as_me:$LINENO: result: no" >&5 |
| 1849 | echo "${ECHO_T}no" >&6 |
| 1850 | fi |
| 1851 | |
| 1852 | fi |
| 1853 | if test -z "$ac_cv_prog_STRIP"; then |
| 1854 | ac_ct_STRIP=$STRIP |
| 1855 | # Extract the first word of "strip", so it can be a program name with args. |
| 1856 | set dummy strip; ac_word=$2 |
| 1857 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1858 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1859 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 1860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1861 | else |
| 1862 | if test -n "$ac_ct_STRIP"; then |
| 1863 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 1864 | else |
| 1865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1866 | for as_dir in $PATH |
| 1867 | do |
| 1868 | IFS=$as_save_IFS |
| 1869 | test -z "$as_dir" && as_dir=. |
| 1870 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1871 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1872 | ac_cv_prog_ac_ct_STRIP="strip" |
| 1873 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1874 | break 2 |
| 1875 | fi |
| 1876 | done |
| 1877 | done |
| 1878 | |
| 1879 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 1880 | fi |
| 1881 | fi |
| 1882 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 1883 | if test -n "$ac_ct_STRIP"; then |
| 1884 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 1885 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 1886 | else |
| 1887 | echo "$as_me:$LINENO: result: no" >&5 |
| 1888 | echo "${ECHO_T}no" >&6 |
| 1889 | fi |
| 1890 | |
| 1891 | STRIP=$ac_ct_STRIP |
| 1892 | else |
| 1893 | STRIP="$ac_cv_prog_STRIP" |
| 1894 | fi |
| 1895 | |
| 1896 | fi |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1897 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 1898 | |
| 1899 | # We need awk for the "check" target. The system "awk" is bad on |
| 1900 | # some platforms. |
| 1901 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1902 | |
| 1903 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1904 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 1905 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
| 1906 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
| 1907 | if test "${enable_maintainer_mode+set}" = set; then |
| 1908 | enableval="$enable_maintainer_mode" |
| 1909 | USE_MAINTAINER_MODE=$enableval |
| 1910 | else |
| 1911 | USE_MAINTAINER_MODE=no |
| 1912 | fi; |
| 1913 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
| 1914 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
| 1915 | |
| 1916 | |
| 1917 | if test $USE_MAINTAINER_MODE = yes; then |
| 1918 | MAINTAINER_MODE_TRUE= |
| 1919 | MAINTAINER_MODE_FALSE='#' |
| 1920 | else |
| 1921 | MAINTAINER_MODE_TRUE='#' |
| 1922 | MAINTAINER_MODE_FALSE= |
| 1923 | fi |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1924 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1925 | MAINT=$MAINTAINER_MODE_TRUE |
| 1926 | |
| 1927 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1928 | # Add the stamp file to the list of files AC keeps track of, |
| 1929 | # along with our hook. |
| 1930 | ac_config_headers="$ac_config_headers include/config.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1931 | |
| 1932 | |
| 1933 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1934 | |
| 1935 | ac_ext=c |
| 1936 | ac_cpp='$CPP $CPPFLAGS' |
| 1937 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1938 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1939 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1940 | if test -n "$ac_tool_prefix"; then |
| 1941 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1942 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1943 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1944 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1945 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1947 | else |
| 1948 | if test -n "$CC"; then |
| 1949 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1950 | else |
| 1951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1952 | for as_dir in $PATH |
| 1953 | do |
| 1954 | IFS=$as_save_IFS |
| 1955 | test -z "$as_dir" && as_dir=. |
| 1956 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1957 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1958 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1959 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1960 | break 2 |
| 1961 | fi |
| 1962 | done |
| 1963 | done |
| 1964 | |
| 1965 | fi |
| 1966 | fi |
| 1967 | CC=$ac_cv_prog_CC |
| 1968 | if test -n "$CC"; then |
| 1969 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1970 | echo "${ECHO_T}$CC" >&6 |
| 1971 | else |
| 1972 | echo "$as_me:$LINENO: result: no" >&5 |
| 1973 | echo "${ECHO_T}no" >&6 |
| 1974 | fi |
| 1975 | |
| 1976 | fi |
| 1977 | if test -z "$ac_cv_prog_CC"; then |
| 1978 | ac_ct_CC=$CC |
| 1979 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1980 | set dummy gcc; ac_word=$2 |
| 1981 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1982 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1983 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1985 | else |
| 1986 | if test -n "$ac_ct_CC"; then |
| 1987 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1988 | else |
| 1989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1990 | for as_dir in $PATH |
| 1991 | do |
| 1992 | IFS=$as_save_IFS |
| 1993 | test -z "$as_dir" && as_dir=. |
| 1994 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1995 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1996 | ac_cv_prog_ac_ct_CC="gcc" |
| 1997 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1998 | break 2 |
| 1999 | fi |
| 2000 | done |
| 2001 | done |
| 2002 | |
| 2003 | fi |
| 2004 | fi |
| 2005 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2006 | if test -n "$ac_ct_CC"; then |
| 2007 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2008 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2009 | else |
| 2010 | echo "$as_me:$LINENO: result: no" >&5 |
| 2011 | echo "${ECHO_T}no" >&6 |
| 2012 | fi |
| 2013 | |
| 2014 | CC=$ac_ct_CC |
| 2015 | else |
| 2016 | CC="$ac_cv_prog_CC" |
| 2017 | fi |
| 2018 | |
| 2019 | if test -z "$CC"; then |
| 2020 | if test -n "$ac_tool_prefix"; then |
| 2021 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2022 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2023 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2024 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2025 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2027 | else |
| 2028 | if test -n "$CC"; then |
| 2029 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2030 | else |
| 2031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2032 | for as_dir in $PATH |
| 2033 | do |
| 2034 | IFS=$as_save_IFS |
| 2035 | test -z "$as_dir" && as_dir=. |
| 2036 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2037 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2038 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2039 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2040 | break 2 |
| 2041 | fi |
| 2042 | done |
| 2043 | done |
| 2044 | |
| 2045 | fi |
| 2046 | fi |
| 2047 | CC=$ac_cv_prog_CC |
| 2048 | if test -n "$CC"; then |
| 2049 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2050 | echo "${ECHO_T}$CC" >&6 |
| 2051 | else |
| 2052 | echo "$as_me:$LINENO: result: no" >&5 |
| 2053 | echo "${ECHO_T}no" >&6 |
| 2054 | fi |
| 2055 | |
| 2056 | fi |
| 2057 | if test -z "$ac_cv_prog_CC"; then |
| 2058 | ac_ct_CC=$CC |
| 2059 | # Extract the first word of "cc", so it can be a program name with args. |
| 2060 | set dummy cc; ac_word=$2 |
| 2061 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2062 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2063 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2065 | else |
| 2066 | if test -n "$ac_ct_CC"; then |
| 2067 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2068 | else |
| 2069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2070 | for as_dir in $PATH |
| 2071 | do |
| 2072 | IFS=$as_save_IFS |
| 2073 | test -z "$as_dir" && as_dir=. |
| 2074 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2075 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2076 | ac_cv_prog_ac_ct_CC="cc" |
| 2077 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2078 | break 2 |
| 2079 | fi |
| 2080 | done |
| 2081 | done |
| 2082 | |
| 2083 | fi |
| 2084 | fi |
| 2085 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2086 | if test -n "$ac_ct_CC"; then |
| 2087 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2088 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2089 | else |
| 2090 | echo "$as_me:$LINENO: result: no" >&5 |
| 2091 | echo "${ECHO_T}no" >&6 |
| 2092 | fi |
| 2093 | |
| 2094 | CC=$ac_ct_CC |
| 2095 | else |
| 2096 | CC="$ac_cv_prog_CC" |
| 2097 | fi |
| 2098 | |
| 2099 | fi |
| 2100 | if test -z "$CC"; then |
| 2101 | # Extract the first word of "cc", so it can be a program name with args. |
| 2102 | set dummy cc; ac_word=$2 |
| 2103 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2104 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2105 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2107 | else |
| 2108 | if test -n "$CC"; then |
| 2109 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2110 | else |
| 2111 | ac_prog_rejected=no |
| 2112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2113 | for as_dir in $PATH |
| 2114 | do |
| 2115 | IFS=$as_save_IFS |
| 2116 | test -z "$as_dir" && as_dir=. |
| 2117 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2118 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2119 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2120 | ac_prog_rejected=yes |
| 2121 | continue |
| 2122 | fi |
| 2123 | ac_cv_prog_CC="cc" |
| 2124 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2125 | break 2 |
| 2126 | fi |
| 2127 | done |
| 2128 | done |
| 2129 | |
| 2130 | if test $ac_prog_rejected = yes; then |
| 2131 | # We found a bogon in the path, so make sure we never use it. |
| 2132 | set dummy $ac_cv_prog_CC |
| 2133 | shift |
| 2134 | if test $# != 0; then |
| 2135 | # We chose a different compiler from the bogus one. |
| 2136 | # However, it has the same basename, so the bogon will be chosen |
| 2137 | # first if we set CC to just the basename; use the full file name. |
| 2138 | shift |
| 2139 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2140 | fi |
| 2141 | fi |
| 2142 | fi |
| 2143 | fi |
| 2144 | CC=$ac_cv_prog_CC |
| 2145 | if test -n "$CC"; then |
| 2146 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2147 | echo "${ECHO_T}$CC" >&6 |
| 2148 | else |
| 2149 | echo "$as_me:$LINENO: result: no" >&5 |
| 2150 | echo "${ECHO_T}no" >&6 |
| 2151 | fi |
| 2152 | |
| 2153 | fi |
| 2154 | if test -z "$CC"; then |
| 2155 | if test -n "$ac_tool_prefix"; then |
| 2156 | for ac_prog in cl |
| 2157 | do |
| 2158 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2159 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2160 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2161 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2162 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2164 | else |
| 2165 | if test -n "$CC"; then |
| 2166 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2167 | else |
| 2168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2169 | for as_dir in $PATH |
| 2170 | do |
| 2171 | IFS=$as_save_IFS |
| 2172 | test -z "$as_dir" && as_dir=. |
| 2173 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2174 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2175 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2176 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2177 | break 2 |
| 2178 | fi |
| 2179 | done |
| 2180 | done |
| 2181 | |
| 2182 | fi |
| 2183 | fi |
| 2184 | CC=$ac_cv_prog_CC |
| 2185 | if test -n "$CC"; then |
| 2186 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2187 | echo "${ECHO_T}$CC" >&6 |
| 2188 | else |
| 2189 | echo "$as_me:$LINENO: result: no" >&5 |
| 2190 | echo "${ECHO_T}no" >&6 |
| 2191 | fi |
| 2192 | |
| 2193 | test -n "$CC" && break |
| 2194 | done |
| 2195 | fi |
| 2196 | if test -z "$CC"; then |
| 2197 | ac_ct_CC=$CC |
| 2198 | for ac_prog in cl |
| 2199 | do |
| 2200 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2201 | set dummy $ac_prog; ac_word=$2 |
| 2202 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2203 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2204 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2206 | else |
| 2207 | if test -n "$ac_ct_CC"; then |
| 2208 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2209 | else |
| 2210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2211 | for as_dir in $PATH |
| 2212 | do |
| 2213 | IFS=$as_save_IFS |
| 2214 | test -z "$as_dir" && as_dir=. |
| 2215 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2216 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2217 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2218 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2219 | break 2 |
| 2220 | fi |
| 2221 | done |
| 2222 | done |
| 2223 | |
| 2224 | fi |
| 2225 | fi |
| 2226 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2227 | if test -n "$ac_ct_CC"; then |
| 2228 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2229 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2230 | else |
| 2231 | echo "$as_me:$LINENO: result: no" >&5 |
| 2232 | echo "${ECHO_T}no" >&6 |
| 2233 | fi |
| 2234 | |
| 2235 | test -n "$ac_ct_CC" && break |
| 2236 | done |
| 2237 | |
| 2238 | CC=$ac_ct_CC |
| 2239 | fi |
| 2240 | |
| 2241 | fi |
| 2242 | |
| 2243 | |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2244 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2245 | See \`config.log' for more details." >&5 |
| 2246 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2247 | See \`config.log' for more details." >&2;} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2248 | { (exit 1); exit 1; }; } |
| 2249 | |
| 2250 | # Provide some information about the compiler. |
| 2251 | echo "$as_me:$LINENO:" \ |
| 2252 | "checking for C compiler version" >&5 |
| 2253 | ac_compiler=`set X $ac_compile; echo $2` |
| 2254 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2255 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2256 | ac_status=$? |
| 2257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2258 | (exit $ac_status); } |
| 2259 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2260 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2261 | ac_status=$? |
| 2262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2263 | (exit $ac_status); } |
| 2264 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2265 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2266 | ac_status=$? |
| 2267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2268 | (exit $ac_status); } |
| 2269 | |
| 2270 | cat >conftest.$ac_ext <<_ACEOF |
| 2271 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2272 | /* confdefs.h. */ |
| 2273 | _ACEOF |
| 2274 | cat confdefs.h >>conftest.$ac_ext |
| 2275 | cat >>conftest.$ac_ext <<_ACEOF |
| 2276 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2277 | |
| 2278 | int |
| 2279 | main () |
| 2280 | { |
| 2281 | |
| 2282 | ; |
| 2283 | return 0; |
| 2284 | } |
| 2285 | _ACEOF |
| 2286 | ac_clean_files_save=$ac_clean_files |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2287 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2288 | # Try to create an executable without -o first, disregard a.out. |
| 2289 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2290 | # of exeext. |
| 2291 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2292 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2293 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2294 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2295 | (eval $ac_link_default) 2>&5 |
| 2296 | ac_status=$? |
| 2297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2298 | (exit $ac_status); }; then |
| 2299 | # Find the output, starting from the most likely. This scheme is |
| 2300 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2301 | # resort. |
| 2302 | |
| 2303 | # Be careful to initialize this variable, since it used to be cached. |
| 2304 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2305 | ac_cv_exeext= |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2306 | # b.out is created by i960 compilers. |
| 2307 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2308 | do |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2309 | test -f "$ac_file" || continue |
| 2310 | case $ac_file in |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2311 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 2312 | ;; |
| 2313 | conftest.$ac_ext ) |
| 2314 | # This is the source file. |
| 2315 | ;; |
| 2316 | [ab].out ) |
| 2317 | # We found the default executable, but exeext='' is most |
| 2318 | # certainly right. |
| 2319 | break;; |
| 2320 | *.* ) |
| 2321 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2322 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2323 | # but it would be cool to find out if it's true. Does anybody |
| 2324 | # maintain Libtool? --akim. |
| 2325 | export ac_cv_exeext |
| 2326 | break;; |
| 2327 | * ) |
| 2328 | break;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2329 | esac |
| 2330 | done |
| 2331 | else |
| 2332 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2334 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2335 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2336 | See \`config.log' for more details." >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2337 | echo "$as_me: error: C compiler cannot create executables |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2338 | See \`config.log' for more details." >&2;} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2339 | { (exit 77); exit 77; }; } |
| 2340 | fi |
| 2341 | |
| 2342 | ac_exeext=$ac_cv_exeext |
| 2343 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2344 | echo "${ECHO_T}$ac_file" >&6 |
| 2345 | |
| 2346 | # Check the compiler produces executables we can run. If not, either |
| 2347 | # the compiler is broken, or we cross compile. |
| 2348 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2349 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2350 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2351 | # If not cross compiling, check that we can run a simple program. |
| 2352 | if test "$cross_compiling" != yes; then |
| 2353 | if { ac_try='./$ac_file' |
| 2354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2355 | (eval $ac_try) 2>&5 |
| 2356 | ac_status=$? |
| 2357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2358 | (exit $ac_status); }; }; then |
| 2359 | cross_compiling=no |
| 2360 | else |
| 2361 | if test "$cross_compiling" = maybe; then |
| 2362 | cross_compiling=yes |
| 2363 | else |
| 2364 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2365 | If you meant to cross compile, use \`--host'. |
| 2366 | See \`config.log' for more details." >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2367 | echo "$as_me: error: cannot run C compiled programs. |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2368 | If you meant to cross compile, use \`--host'. |
| 2369 | See \`config.log' for more details." >&2;} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2370 | { (exit 1); exit 1; }; } |
| 2371 | fi |
| 2372 | fi |
| 2373 | fi |
| 2374 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2375 | echo "${ECHO_T}yes" >&6 |
| 2376 | |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2377 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2378 | ac_clean_files=$ac_clean_files_save |
| 2379 | # Check the compiler produces executables we can run. If not, either |
| 2380 | # the compiler is broken, or we cross compile. |
| 2381 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2382 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2383 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2384 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2385 | |
| 2386 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2387 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2389 | (eval $ac_link) 2>&5 |
| 2390 | ac_status=$? |
| 2391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2392 | (exit $ac_status); }; then |
| 2393 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2394 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2395 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2396 | # `rm'. |
| 2397 | for ac_file in conftest.exe conftest conftest.*; do |
| 2398 | test -f "$ac_file" || continue |
| 2399 | case $ac_file in |
| 2400 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 2401 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2402 | export ac_cv_exeext |
| 2403 | break;; |
| 2404 | * ) break;; |
| 2405 | esac |
| 2406 | done |
| 2407 | else |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2408 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2409 | See \`config.log' for more details." >&5 |
| 2410 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2411 | See \`config.log' for more details." >&2;} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2412 | { (exit 1); exit 1; }; } |
| 2413 | fi |
| 2414 | |
| 2415 | rm -f conftest$ac_cv_exeext |
| 2416 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2417 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2418 | |
| 2419 | rm -f conftest.$ac_ext |
| 2420 | EXEEXT=$ac_cv_exeext |
| 2421 | ac_exeext=$EXEEXT |
| 2422 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2423 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2424 | if test "${ac_cv_objext+set}" = set; then |
| 2425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2426 | else |
| 2427 | cat >conftest.$ac_ext <<_ACEOF |
| 2428 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2429 | /* confdefs.h. */ |
| 2430 | _ACEOF |
| 2431 | cat confdefs.h >>conftest.$ac_ext |
| 2432 | cat >>conftest.$ac_ext <<_ACEOF |
| 2433 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2434 | |
| 2435 | int |
| 2436 | main () |
| 2437 | { |
| 2438 | |
| 2439 | ; |
| 2440 | return 0; |
| 2441 | } |
| 2442 | _ACEOF |
| 2443 | rm -f conftest.o conftest.obj |
| 2444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2445 | (eval $ac_compile) 2>&5 |
| 2446 | ac_status=$? |
| 2447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2448 | (exit $ac_status); }; then |
| 2449 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2450 | case $ac_file in |
| 2451 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 2452 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2453 | break;; |
| 2454 | esac |
| 2455 | done |
| 2456 | else |
| 2457 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2459 | |
| 2460 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2461 | See \`config.log' for more details." >&5 |
| 2462 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2463 | See \`config.log' for more details." >&2;} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2464 | { (exit 1); exit 1; }; } |
| 2465 | fi |
| 2466 | |
| 2467 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2468 | fi |
| 2469 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2470 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2471 | OBJEXT=$ac_cv_objext |
| 2472 | ac_objext=$OBJEXT |
| 2473 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2474 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2475 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2477 | else |
| 2478 | cat >conftest.$ac_ext <<_ACEOF |
| 2479 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2480 | /* confdefs.h. */ |
| 2481 | _ACEOF |
| 2482 | cat confdefs.h >>conftest.$ac_ext |
| 2483 | cat >>conftest.$ac_ext <<_ACEOF |
| 2484 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2485 | |
| 2486 | int |
| 2487 | main () |
| 2488 | { |
| 2489 | #ifndef __GNUC__ |
| 2490 | choke me |
| 2491 | #endif |
| 2492 | |
| 2493 | ; |
| 2494 | return 0; |
| 2495 | } |
| 2496 | _ACEOF |
| 2497 | rm -f conftest.$ac_objext |
| 2498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2499 | (eval $ac_compile) 2>&5 |
| 2500 | ac_status=$? |
| 2501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2502 | (exit $ac_status); } && |
| 2503 | { ac_try='test -s conftest.$ac_objext' |
| 2504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2505 | (eval $ac_try) 2>&5 |
| 2506 | ac_status=$? |
| 2507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2508 | (exit $ac_status); }; }; then |
| 2509 | ac_compiler_gnu=yes |
| 2510 | else |
| 2511 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2513 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2514 | ac_compiler_gnu=no |
| 2515 | fi |
| 2516 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2517 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2518 | |
| 2519 | fi |
| 2520 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2521 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2522 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2523 | ac_test_CFLAGS=${CFLAGS+set} |
| 2524 | ac_save_CFLAGS=$CFLAGS |
| 2525 | CFLAGS="-g" |
| 2526 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2527 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2528 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2530 | else |
| 2531 | cat >conftest.$ac_ext <<_ACEOF |
| 2532 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2533 | /* confdefs.h. */ |
| 2534 | _ACEOF |
| 2535 | cat confdefs.h >>conftest.$ac_ext |
| 2536 | cat >>conftest.$ac_ext <<_ACEOF |
| 2537 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2538 | |
| 2539 | int |
| 2540 | main () |
| 2541 | { |
| 2542 | |
| 2543 | ; |
| 2544 | return 0; |
| 2545 | } |
| 2546 | _ACEOF |
| 2547 | rm -f conftest.$ac_objext |
| 2548 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2549 | (eval $ac_compile) 2>&5 |
| 2550 | ac_status=$? |
| 2551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2552 | (exit $ac_status); } && |
| 2553 | { ac_try='test -s conftest.$ac_objext' |
| 2554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2555 | (eval $ac_try) 2>&5 |
| 2556 | ac_status=$? |
| 2557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2558 | (exit $ac_status); }; }; then |
| 2559 | ac_cv_prog_cc_g=yes |
| 2560 | else |
| 2561 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2562 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2563 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2564 | ac_cv_prog_cc_g=no |
| 2565 | fi |
| 2566 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2567 | fi |
| 2568 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2569 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2570 | if test "$ac_test_CFLAGS" = set; then |
| 2571 | CFLAGS=$ac_save_CFLAGS |
| 2572 | elif test $ac_cv_prog_cc_g = yes; then |
| 2573 | if test "$GCC" = yes; then |
| 2574 | CFLAGS="-g -O2" |
| 2575 | else |
| 2576 | CFLAGS="-g" |
| 2577 | fi |
| 2578 | else |
| 2579 | if test "$GCC" = yes; then |
| 2580 | CFLAGS="-O2" |
| 2581 | else |
| 2582 | CFLAGS= |
| 2583 | fi |
| 2584 | fi |
| 2585 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2586 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2587 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2589 | else |
| 2590 | ac_cv_prog_cc_stdc=no |
| 2591 | ac_save_CC=$CC |
| 2592 | cat >conftest.$ac_ext <<_ACEOF |
| 2593 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2594 | /* confdefs.h. */ |
| 2595 | _ACEOF |
| 2596 | cat confdefs.h >>conftest.$ac_ext |
| 2597 | cat >>conftest.$ac_ext <<_ACEOF |
| 2598 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2599 | #include <stdarg.h> |
| 2600 | #include <stdio.h> |
| 2601 | #include <sys/types.h> |
| 2602 | #include <sys/stat.h> |
| 2603 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2604 | struct buf { int x; }; |
| 2605 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2606 | static char *e (p, i) |
| 2607 | char **p; |
| 2608 | int i; |
| 2609 | { |
| 2610 | return p[i]; |
| 2611 | } |
| 2612 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2613 | { |
| 2614 | char *s; |
| 2615 | va_list v; |
| 2616 | va_start (v,p); |
| 2617 | s = g (p, va_arg (v,int)); |
| 2618 | va_end (v); |
| 2619 | return s; |
| 2620 | } |
| 2621 | int test (int i, double x); |
| 2622 | struct s1 {int (*f) (int a);}; |
| 2623 | struct s2 {int (*f) (double a);}; |
| 2624 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2625 | int argc; |
| 2626 | char **argv; |
| 2627 | int |
| 2628 | main () |
| 2629 | { |
| 2630 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2631 | ; |
| 2632 | return 0; |
| 2633 | } |
| 2634 | _ACEOF |
| 2635 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2636 | # breaks some systems' header files. |
| 2637 | # AIX -qlanglvl=ansi |
| 2638 | # Ultrix and OSF/1 -std1 |
| 2639 | # HP-UX 10.20 and later -Ae |
| 2640 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2641 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2642 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2643 | do |
| 2644 | CC="$ac_save_CC $ac_arg" |
| 2645 | rm -f conftest.$ac_objext |
| 2646 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2647 | (eval $ac_compile) 2>&5 |
| 2648 | ac_status=$? |
| 2649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2650 | (exit $ac_status); } && |
| 2651 | { ac_try='test -s conftest.$ac_objext' |
| 2652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2653 | (eval $ac_try) 2>&5 |
| 2654 | ac_status=$? |
| 2655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2656 | (exit $ac_status); }; }; then |
| 2657 | ac_cv_prog_cc_stdc=$ac_arg |
| 2658 | break |
| 2659 | else |
| 2660 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2662 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2663 | fi |
| 2664 | rm -f conftest.$ac_objext |
| 2665 | done |
| 2666 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2667 | CC=$ac_save_CC |
| 2668 | |
| 2669 | fi |
| 2670 | |
| 2671 | case "x$ac_cv_prog_cc_stdc" in |
| 2672 | x|xno) |
| 2673 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2674 | echo "${ECHO_T}none needed" >&6 ;; |
| 2675 | *) |
| 2676 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2677 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2678 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2679 | esac |
| 2680 | |
| 2681 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2682 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2683 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2684 | # the declaration of exit, since it's the most demanding environment. |
| 2685 | cat >conftest.$ac_ext <<_ACEOF |
| 2686 | #ifndef __cplusplus |
| 2687 | choke me |
| 2688 | #endif |
| 2689 | _ACEOF |
| 2690 | rm -f conftest.$ac_objext |
| 2691 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2692 | (eval $ac_compile) 2>&5 |
| 2693 | ac_status=$? |
| 2694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2695 | (exit $ac_status); } && |
| 2696 | { ac_try='test -s conftest.$ac_objext' |
| 2697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2698 | (eval $ac_try) 2>&5 |
| 2699 | ac_status=$? |
| 2700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2701 | (exit $ac_status); }; }; then |
| 2702 | for ac_declaration in \ |
| 2703 | ''\ |
| 2704 | '#include <stdlib.h>' \ |
| 2705 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2706 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2707 | 'extern "C" void exit (int) throw ();' \ |
| 2708 | 'extern "C" void exit (int);' \ |
| 2709 | 'void exit (int);' |
| 2710 | do |
| 2711 | cat >conftest.$ac_ext <<_ACEOF |
| 2712 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2713 | /* confdefs.h. */ |
| 2714 | _ACEOF |
| 2715 | cat confdefs.h >>conftest.$ac_ext |
| 2716 | cat >>conftest.$ac_ext <<_ACEOF |
| 2717 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2718 | #include <stdlib.h> |
| 2719 | $ac_declaration |
| 2720 | int |
| 2721 | main () |
| 2722 | { |
| 2723 | exit (42); |
| 2724 | ; |
| 2725 | return 0; |
| 2726 | } |
| 2727 | _ACEOF |
| 2728 | rm -f conftest.$ac_objext |
| 2729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2730 | (eval $ac_compile) 2>&5 |
| 2731 | ac_status=$? |
| 2732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2733 | (exit $ac_status); } && |
| 2734 | { ac_try='test -s conftest.$ac_objext' |
| 2735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2736 | (eval $ac_try) 2>&5 |
| 2737 | ac_status=$? |
| 2738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2739 | (exit $ac_status); }; }; then |
| 2740 | : |
| 2741 | else |
| 2742 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2744 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2745 | continue |
| 2746 | fi |
| 2747 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2748 | cat >conftest.$ac_ext <<_ACEOF |
| 2749 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2750 | /* confdefs.h. */ |
| 2751 | _ACEOF |
| 2752 | cat confdefs.h >>conftest.$ac_ext |
| 2753 | cat >>conftest.$ac_ext <<_ACEOF |
| 2754 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2755 | $ac_declaration |
| 2756 | int |
| 2757 | main () |
| 2758 | { |
| 2759 | exit (42); |
| 2760 | ; |
| 2761 | return 0; |
| 2762 | } |
| 2763 | _ACEOF |
| 2764 | rm -f conftest.$ac_objext |
| 2765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2766 | (eval $ac_compile) 2>&5 |
| 2767 | ac_status=$? |
| 2768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2769 | (exit $ac_status); } && |
| 2770 | { ac_try='test -s conftest.$ac_objext' |
| 2771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2772 | (eval $ac_try) 2>&5 |
| 2773 | ac_status=$? |
| 2774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2775 | (exit $ac_status); }; }; then |
| 2776 | break |
| 2777 | else |
| 2778 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2780 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2781 | fi |
| 2782 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2783 | done |
| 2784 | rm -f conftest* |
| 2785 | if test -n "$ac_declaration"; then |
| 2786 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2787 | echo $ac_declaration >>confdefs.h |
| 2788 | echo '#endif' >>confdefs.h |
| 2789 | fi |
| 2790 | |
| 2791 | else |
| 2792 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 2793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2794 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2795 | fi |
| 2796 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2797 | ac_ext=c |
| 2798 | ac_cpp='$CPP $CPPFLAGS' |
| 2799 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2800 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2801 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 2802 | rm -f .deps 2>/dev/null |
| 2803 | mkdir .deps 2>/dev/null |
| 2804 | if test -d .deps; then |
| 2805 | DEPDIR=.deps |
| 2806 | else |
| 2807 | # MS-DOS does not allow filenames that begin with a dot. |
| 2808 | DEPDIR=_deps |
| 2809 | fi |
| 2810 | rmdir .deps 2>/dev/null |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2811 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 2812 | |
| 2813 | ac_config_commands="$ac_config_commands depfiles" |
| 2814 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2815 | |
| 2816 | am_make=${MAKE-make} |
| 2817 | cat > confinc << 'END' |
| 2818 | doit: |
| 2819 | @echo done |
| 2820 | END |
| 2821 | # If we don't find an include directive, just comment out the code. |
| 2822 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 2823 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 2824 | am__include="#" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2825 | am__quote= |
| 2826 | _am_result=none |
| 2827 | # First try GNU make style include. |
| 2828 | echo "include confinc" > confmf |
| 2829 | # We grep out `Entering directory' and `Leaving directory' |
| 2830 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 2831 | # In particular we don't look at `^make:' because GNU make might |
| 2832 | # be invoked under some other name (usually "gmake"), in which |
| 2833 | # case it prints its new name instead of `make'. |
| 2834 | if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then |
| 2835 | am__include=include |
| 2836 | am__quote= |
| 2837 | _am_result=GNU |
| 2838 | fi |
| 2839 | # Now try BSD make style include. |
| 2840 | if test "$am__include" = "#"; then |
| 2841 | echo '.include "confinc"' > confmf |
| 2842 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 2843 | am__include=.include |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 2844 | am__quote="\"" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2845 | _am_result=BSD |
| 2846 | fi |
| 2847 | fi |
| 2848 | |
| 2849 | |
| 2850 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 2851 | echo "${ECHO_T}$_am_result" >&6 |
| 2852 | rm -f confinc confmf |
| 2853 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 2854 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| 2855 | if test "${enable_dependency_tracking+set}" = set; then |
| 2856 | enableval="$enable_dependency_tracking" |
| 2857 | |
| 2858 | fi; |
| 2859 | if test "x$enable_dependency_tracking" != xno; then |
| 2860 | am_depcomp="$ac_aux_dir/depcomp" |
| 2861 | AMDEPBACKSLASH='\' |
| 2862 | fi |
| 2863 | |
| 2864 | |
| 2865 | if test "x$enable_dependency_tracking" != xno; then |
| 2866 | AMDEP_TRUE= |
| 2867 | AMDEP_FALSE='#' |
| 2868 | else |
| 2869 | AMDEP_TRUE='#' |
| 2870 | AMDEP_FALSE= |
| 2871 | fi |
| 2872 | |
| 2873 | |
| 2874 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2875 | |
| 2876 | depcc="$CC" am_compiler_list= |
| 2877 | |
| 2878 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 2879 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 2880 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 2881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2882 | else |
| 2883 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 2884 | # We make a subdir and do the tests there. Otherwise we can end up |
| 2885 | # making bogus files that we don't know about and never remove. For |
| 2886 | # instance it was reported that on HP-UX the gcc test will end up |
| 2887 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 2888 | # in D'. |
| 2889 | mkdir conftest.dir |
| 2890 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 2891 | # using a relative directory. |
| 2892 | cp "$am_depcomp" conftest.dir |
| 2893 | cd conftest.dir |
| 2894 | |
| 2895 | am_cv_CC_dependencies_compiler_type=none |
| 2896 | if test "$am_compiler_list" = ""; then |
| 2897 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 2898 | fi |
| 2899 | for depmode in $am_compiler_list; do |
| 2900 | # We need to recreate these files for each test, as the compiler may |
| 2901 | # overwrite some of them when testing with obscure command lines. |
| 2902 | # This happens at least with the AIX C compiler. |
| 2903 | echo '#include "conftest.h"' > conftest.c |
| 2904 | echo 'int i;' > conftest.h |
| 2905 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
| 2906 | |
| 2907 | case $depmode in |
| 2908 | nosideeffect) |
| 2909 | # after this tag, mechanisms are not by side-effect, so they'll |
| 2910 | # only be used when explicitly requested |
| 2911 | if test "x$enable_dependency_tracking" = xyes; then |
| 2912 | continue |
| 2913 | else |
| 2914 | break |
| 2915 | fi |
| 2916 | ;; |
| 2917 | none) break ;; |
| 2918 | esac |
| 2919 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 2920 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 2921 | # handle `-M -o', and we need to detect this. |
| 2922 | if depmode=$depmode \ |
| 2923 | source=conftest.c object=conftest.o \ |
| 2924 | depfile=conftest.Po tmpdepfile=conftest.TPo \ |
| 2925 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && |
| 2926 | grep conftest.h conftest.Po > /dev/null 2>&1 && |
| 2927 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 2928 | am_cv_CC_dependencies_compiler_type=$depmode |
| 2929 | break |
| 2930 | fi |
| 2931 | done |
| 2932 | |
| 2933 | cd .. |
| 2934 | rm -rf conftest.dir |
| 2935 | else |
| 2936 | am_cv_CC_dependencies_compiler_type=none |
| 2937 | fi |
| 2938 | |
| 2939 | fi |
| 2940 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 2941 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 2942 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2943 | |
| 2944 | |
| 2945 | # Find a good install program. We prefer a C program (faster), |
| 2946 | # so one script is as good as another. But avoid the broken or |
| 2947 | # incompatible versions: |
| 2948 | # SysV /etc/install, /usr/sbin/install |
| 2949 | # SunOS /usr/etc/install |
| 2950 | # IRIX /sbin/install |
| 2951 | # AIX /bin/install |
| 2952 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2953 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2954 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2955 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2956 | # ./install, which can be erroneously created by make from ./install.sh. |
| 2957 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 2958 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 2959 | if test -z "$INSTALL"; then |
| 2960 | if test "${ac_cv_path_install+set}" = set; then |
| 2961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2962 | else |
| 2963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2964 | for as_dir in $PATH |
| 2965 | do |
| 2966 | IFS=$as_save_IFS |
| 2967 | test -z "$as_dir" && as_dir=. |
| 2968 | # Account for people who put trailing slashes in PATH elements. |
| 2969 | case $as_dir/ in |
| 2970 | ./ | .// | /cC/* | \ |
| 2971 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2972 | /usr/ucb/* ) ;; |
| 2973 | *) |
| 2974 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2975 | # Don't use installbsd from OSF since it installs stuff as root |
| 2976 | # by default. |
| 2977 | for ac_prog in ginstall scoinst install; do |
| 2978 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2979 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 2980 | if test $ac_prog = install && |
| 2981 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2982 | # AIX install. It has an incompatible calling convention. |
| 2983 | : |
| 2984 | elif test $ac_prog = install && |
| 2985 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2986 | # program-specific install script used by HP pwplus--don't use. |
| 2987 | : |
| 2988 | else |
| 2989 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2990 | break 3 |
| 2991 | fi |
| 2992 | fi |
| 2993 | done |
| 2994 | done |
| 2995 | ;; |
| 2996 | esac |
| 2997 | done |
| 2998 | |
| 2999 | |
| 3000 | fi |
| 3001 | if test "${ac_cv_path_install+set}" = set; then |
| 3002 | INSTALL=$ac_cv_path_install |
| 3003 | else |
| 3004 | # As a last resort, use the slow shell script. We don't cache a |
| 3005 | # path for INSTALL within a source directory, because that will |
| 3006 | # break other packages using the cache if that directory is |
| 3007 | # removed, or if the path is relative. |
| 3008 | INSTALL=$ac_install_sh |
| 3009 | fi |
| 3010 | fi |
| 3011 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3012 | echo "${ECHO_T}$INSTALL" >&6 |
| 3013 | |
| 3014 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3015 | # It thinks the first close brace ends the variable substitution. |
| 3016 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3017 | |
| 3018 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3019 | |
| 3020 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3021 | |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 3022 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 3023 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3024 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 3025 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 3026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3027 | else |
| 3028 | cat >conftest.make <<\_ACEOF |
| 3029 | all: |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 3030 | @echo 'ac_maketemp="$(MAKE)"' |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3031 | _ACEOF |
| 3032 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 3033 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 3034 | if test -n "$ac_maketemp"; then |
| 3035 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 3036 | else |
| 3037 | eval ac_cv_prog_make_${ac_make}_set=no |
| 3038 | fi |
| 3039 | rm -f conftest.make |
| 3040 | fi |
| 3041 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 3042 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3043 | echo "${ECHO_T}yes" >&6 |
| 3044 | SET_MAKE= |
| 3045 | else |
| 3046 | echo "$as_me:$LINENO: result: no" >&5 |
| 3047 | echo "${ECHO_T}no" >&6 |
| 3048 | SET_MAKE="MAKE=${MAKE-make}" |
| 3049 | fi |
| 3050 | |
| 3051 | # Check whether --enable-shared or --disable-shared was given. |
| 3052 | if test "${enable_shared+set}" = set; then |
| 3053 | enableval="$enable_shared" |
| 3054 | p=${PACKAGE-default} |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3055 | case $enableval in |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3056 | yes) enable_shared=yes ;; |
| 3057 | no) enable_shared=no ;; |
| 3058 | *) |
| 3059 | enable_shared=no |
| 3060 | # Look at the argument we got. We use all the common list separators. |
| 3061 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 3062 | for pkg in $enableval; do |
| 3063 | if test "X$pkg" = "X$p"; then |
| 3064 | enable_shared=yes |
| 3065 | fi |
| 3066 | done |
| 3067 | IFS="$ac_save_ifs" |
| 3068 | ;; |
| 3069 | esac |
| 3070 | else |
| 3071 | enable_shared=yes |
| 3072 | fi; |
| 3073 | # Check whether --enable-static or --disable-static was given. |
| 3074 | if test "${enable_static+set}" = set; then |
| 3075 | enableval="$enable_static" |
| 3076 | p=${PACKAGE-default} |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3077 | case $enableval in |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3078 | yes) enable_static=yes ;; |
| 3079 | no) enable_static=no ;; |
| 3080 | *) |
| 3081 | enable_static=no |
| 3082 | # Look at the argument we got. We use all the common list separators. |
| 3083 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 3084 | for pkg in $enableval; do |
| 3085 | if test "X$pkg" = "X$p"; then |
| 3086 | enable_static=yes |
| 3087 | fi |
| 3088 | done |
| 3089 | IFS="$ac_save_ifs" |
| 3090 | ;; |
| 3091 | esac |
| 3092 | else |
| 3093 | enable_static=yes |
| 3094 | fi; |
| 3095 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 3096 | if test "${enable_fast_install+set}" = set; then |
| 3097 | enableval="$enable_fast_install" |
| 3098 | p=${PACKAGE-default} |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3099 | case $enableval in |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3100 | yes) enable_fast_install=yes ;; |
| 3101 | no) enable_fast_install=no ;; |
| 3102 | *) |
| 3103 | enable_fast_install=no |
| 3104 | # Look at the argument we got. We use all the common list separators. |
| 3105 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 3106 | for pkg in $enableval; do |
| 3107 | if test "X$pkg" = "X$p"; then |
| 3108 | enable_fast_install=yes |
| 3109 | fi |
| 3110 | done |
| 3111 | IFS="$ac_save_ifs" |
| 3112 | ;; |
| 3113 | esac |
| 3114 | else |
| 3115 | enable_fast_install=yes |
| 3116 | fi; |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3117 | # Find the correct PATH separator. Usually this is `:', but |
| 3118 | # DJGPP uses `;' like DOS. |
| 3119 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
| 3120 | UNAME=${UNAME-`uname 2>/dev/null`} |
| 3121 | case X$UNAME in |
| 3122 | *-DOS) lt_cv_sys_path_separator=';' ;; |
| 3123 | *) lt_cv_sys_path_separator=':' ;; |
| 3124 | esac |
| 3125 | PATH_SEPARATOR=$lt_cv_sys_path_separator |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3126 | fi |
| 3127 | |
| 3128 | |
| 3129 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 3130 | if test "${with_gnu_ld+set}" = set; then |
| 3131 | withval="$with_gnu_ld" |
| 3132 | test "$withval" = no || with_gnu_ld=yes |
| 3133 | else |
| 3134 | with_gnu_ld=no |
| 3135 | fi; |
| 3136 | ac_prog=ld |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3137 | if test "$GCC" = yes; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3138 | # Check if gcc -print-prog-name=ld gives a path. |
| 3139 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 3140 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3141 | case $host in |
| 3142 | *-*-mingw*) |
| 3143 | # gcc leaves a trailing carriage return which upsets mingw |
| 3144 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 3145 | *) |
| 3146 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 3147 | esac |
| 3148 | case $ac_prog in |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3149 | # Accept absolute paths. |
| 3150 | [\\/]* | [A-Za-z]:[\\/]*) |
| 3151 | re_direlt='/[^/][^/]*/\.\./' |
| 3152 | # Canonicalize the path of ld |
| 3153 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 3154 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 3155 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 3156 | done |
| 3157 | test -z "$LD" && LD="$ac_prog" |
| 3158 | ;; |
| 3159 | "") |
| 3160 | # If it fails, then pretend we aren't using GCC. |
| 3161 | ac_prog=ld |
| 3162 | ;; |
| 3163 | *) |
| 3164 | # If it is relative, then search for the first ld in PATH. |
| 3165 | with_gnu_ld=unknown |
| 3166 | ;; |
| 3167 | esac |
| 3168 | elif test "$with_gnu_ld" = yes; then |
| 3169 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 3170 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 3171 | else |
| 3172 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 3173 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 3174 | fi |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3175 | if test "${lt_cv_path_LD+set}" = set; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3177 | else |
| 3178 | if test -z "$LD"; then |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3179 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3180 | for ac_dir in $PATH; do |
| 3181 | test -z "$ac_dir" && ac_dir=. |
| 3182 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3183 | lt_cv_path_LD="$ac_dir/$ac_prog" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3184 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 3185 | # but apparently some GNU ld's only accept -v. |
| 3186 | # Break only if it was the GNU/non-GNU ld that we prefer. |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3187 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3188 | test "$with_gnu_ld" != no && break |
| 3189 | else |
| 3190 | test "$with_gnu_ld" != yes && break |
| 3191 | fi |
| 3192 | fi |
| 3193 | done |
| 3194 | IFS="$ac_save_ifs" |
| 3195 | else |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3196 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3197 | fi |
| 3198 | fi |
| 3199 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3200 | LD="$lt_cv_path_LD" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3201 | if test -n "$LD"; then |
| 3202 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 3203 | echo "${ECHO_T}$LD" >&6 |
| 3204 | else |
| 3205 | echo "$as_me:$LINENO: result: no" >&5 |
| 3206 | echo "${ECHO_T}no" >&6 |
| 3207 | fi |
| 3208 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 3209 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 3210 | { (exit 1); exit 1; }; } |
| 3211 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 3212 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3213 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3215 | else |
| 3216 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 3217 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3218 | lt_cv_prog_gnu_ld=yes |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3219 | else |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3220 | lt_cv_prog_gnu_ld=no |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3221 | fi |
| 3222 | fi |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3223 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 3224 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 3225 | with_gnu_ld=$lt_cv_prog_gnu_ld |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3226 | |
| 3227 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3228 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 3229 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 3230 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 3231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3232 | else |
| 3233 | lt_cv_ld_reload_flag='-r' |
| 3234 | fi |
| 3235 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 3236 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 3237 | reload_flag=$lt_cv_ld_reload_flag |
| 3238 | test -n "$reload_flag" && reload_flag=" $reload_flag" |
| 3239 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3240 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 3241 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3242 | if test "${lt_cv_path_NM+set}" = set; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3244 | else |
| 3245 | if test -n "$NM"; then |
| 3246 | # Let the user override the test. |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3247 | lt_cv_path_NM="$NM" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3248 | else |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3249 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3250 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 3251 | test -z "$ac_dir" && ac_dir=. |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3252 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
| 3253 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3254 | # Check to see if the nm accepts a BSD-compat flag. |
| 3255 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 3256 | # nm: unknown option "B" ignored |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3257 | # Tru64's nm complains that /dev/null is an invalid object file |
| 3258 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
| 3259 | lt_cv_path_NM="$tmp_nm -B" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3260 | break |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3261 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
| 3262 | lt_cv_path_NM="$tmp_nm -p" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3263 | break |
| 3264 | else |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3265 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3266 | continue # so that we can try to find one that supports BSD flags |
| 3267 | fi |
| 3268 | fi |
| 3269 | done |
| 3270 | IFS="$ac_save_ifs" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3271 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3272 | fi |
| 3273 | fi |
| 3274 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3275 | NM="$lt_cv_path_NM" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3276 | echo "$as_me:$LINENO: result: $NM" >&5 |
| 3277 | echo "${ECHO_T}$NM" >&6 |
| 3278 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3279 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 3280 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 3281 | if test "${lt_cv_path_SED+set}" = set; then |
| 3282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3283 | else |
| 3284 | # Loop through the user's path and test for sed and gsed. |
| 3285 | # Then use that list of sed's as ones to test for truncation. |
| 3286 | as_executable_p="test -f" |
| 3287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3288 | for as_dir in $PATH |
| 3289 | do |
| 3290 | IFS=$as_save_IFS |
| 3291 | test -z "$as_dir" && as_dir=. |
| 3292 | for ac_prog in sed gsed; do |
| 3293 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3294 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3295 | _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" |
| 3296 | fi |
| 3297 | done |
| 3298 | done |
| 3299 | done |
| 3300 | |
| 3301 | # Create a temporary directory, and hook for its removal unless debugging. |
| 3302 | $debug || |
| 3303 | { |
| 3304 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 3305 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 3306 | } |
| 3307 | |
| 3308 | # Create a (secure) tmp directory for tmp files. |
| 3309 | : ${TMPDIR=/tmp} |
| 3310 | { |
| 3311 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && |
| 3312 | test -n "$tmp" && test -d "$tmp" |
| 3313 | } || |
| 3314 | { |
| 3315 | tmp=$TMPDIR/sed$$-$RANDOM |
| 3316 | (umask 077 && mkdir $tmp) |
| 3317 | } || |
| 3318 | { |
| 3319 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 3320 | { (exit 1); exit 1; } |
| 3321 | } |
| 3322 | _max=0 |
| 3323 | _count=0 |
| 3324 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 3325 | # along with /bin/sed that truncates output. |
| 3326 | for _sed in $_sed_list /usr/xpg4/bin/sed; do |
| 3327 | test ! -f ${_sed} && break |
| 3328 | cat /dev/null > "$tmp/sed.in" |
| 3329 | _count=0 |
| 3330 | echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" |
| 3331 | # Check for GNU sed and select it if it is found. |
| 3332 | if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then |
| 3333 | lt_cv_path_SED=${_sed} |
| 3334 | break |
| 3335 | fi |
| 3336 | while true; do |
| 3337 | cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" |
| 3338 | mv "$tmp/sed.tmp" "$tmp/sed.in" |
| 3339 | cp "$tmp/sed.in" "$tmp/sed.nl" |
| 3340 | echo >>"$tmp/sed.nl" |
| 3341 | ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break |
| 3342 | cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break |
| 3343 | # 40000 chars as input seems more than enough |
| 3344 | test $_count -gt 10 && break |
| 3345 | _count=`expr $_count + 1` |
| 3346 | if test $_count -gt $_max; then |
| 3347 | _max=$_count |
| 3348 | lt_cv_path_SED=$_sed |
| 3349 | fi |
| 3350 | done |
| 3351 | done |
| 3352 | rm -rf "$tmp" |
| 3353 | |
| 3354 | fi |
| 3355 | |
| 3356 | if test "X$SED" != "X"; then |
| 3357 | lt_cv_path_SED=$SED |
| 3358 | else |
| 3359 | SED=$lt_cv_path_SED |
| 3360 | fi |
| 3361 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 3362 | echo "${ECHO_T}$SED" >&6 |
| 3363 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3364 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 3365 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 3366 | LN_S=$as_ln_s |
| 3367 | if test "$LN_S" = "ln -s"; then |
| 3368 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3369 | echo "${ECHO_T}yes" >&6 |
| 3370 | else |
| 3371 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 3372 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 3373 | fi |
| 3374 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3375 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 3376 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
| 3377 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 3378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3379 | else |
| 3380 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 3381 | lt_cv_file_magic_test_file= |
| 3382 | lt_cv_deplibs_check_method='unknown' |
| 3383 | # Need to set the preceding variable on all platforms that support |
| 3384 | # interlibrary dependencies. |
| 3385 | # 'none' -- dependencies not supported. |
| 3386 | # `unknown' -- same as none, but documents that we really don't know. |
| 3387 | # 'pass_all' -- all dependencies passed with no checks. |
| 3388 | # 'test_compile' -- check by making test program. |
| 3389 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 3390 | # which responds to the $file_magic_cmd with a given egrep regex. |
| 3391 | # If you have `file' or equivalent on your system and you're not sure |
| 3392 | # whether `pass_all' will *always* work, you probably want this one. |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3393 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3394 | case $host_os in |
| 3395 | aix4* | aix5*) |
| 3396 | lt_cv_deplibs_check_method=pass_all |
| 3397 | ;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3398 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3399 | beos*) |
| 3400 | lt_cv_deplibs_check_method=pass_all |
| 3401 | ;; |
| 3402 | |
| 3403 | bsdi4*) |
| 3404 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 3405 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3406 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3407 | ;; |
| 3408 | |
| 3409 | cygwin* | mingw* | pw32*) |
| 3410 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 3411 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 3412 | ;; |
| 3413 | |
| 3414 | darwin* | rhapsody*) |
| 3415 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| 3416 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3417 | case "$host_os" in |
| 3418 | rhapsody* | darwin1.[012]) |
| 3419 | lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
| 3420 | ;; |
| 3421 | *) # Darwin 1.3 on |
| 3422 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| 3423 | ;; |
| 3424 | esac |
| 3425 | ;; |
| 3426 | |
| 3427 | freebsd*) |
| 3428 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3429 | case $host_cpu in |
| 3430 | i*86 ) |
| 3431 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 3432 | # Let's accept both of them until this is cleared up. |
| 3433 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 3434 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3435 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3436 | ;; |
| 3437 | esac |
| 3438 | else |
| 3439 | lt_cv_deplibs_check_method=pass_all |
| 3440 | fi |
| 3441 | ;; |
| 3442 | |
| 3443 | gnu*) |
| 3444 | lt_cv_deplibs_check_method=pass_all |
| 3445 | ;; |
| 3446 | |
| 3447 | hpux10.20*|hpux11*) |
| 3448 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 3449 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3450 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 3451 | ;; |
| 3452 | |
| 3453 | irix5* | irix6* | nonstopux*) |
| 3454 | case $host_os in |
| 3455 | irix5* | nonstopux*) |
| 3456 | # this will be overridden with pass_all, but let us keep it just in case |
| 3457 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
| 3458 | ;; |
| 3459 | *) |
| 3460 | case $LD in |
| 3461 | *-32|*"-32 ") libmagic=32-bit;; |
| 3462 | *-n32|*"-n32 ") libmagic=N32;; |
| 3463 | *-64|*"-64 ") libmagic=64-bit;; |
| 3464 | *) libmagic=never-match;; |
| 3465 | esac |
| 3466 | # this will be overridden with pass_all, but let us keep it just in case |
| 3467 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
| 3468 | ;; |
| 3469 | esac |
| 3470 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
| 3471 | lt_cv_deplibs_check_method=pass_all |
| 3472 | ;; |
| 3473 | |
| 3474 | # This must be Linux ELF. |
| 3475 | linux-gnu*) |
| 3476 | case $host_cpu in |
| 3477 | alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*) |
| 3478 | lt_cv_deplibs_check_method=pass_all ;; |
| 3479 | *) |
| 3480 | # glibc up to 2.1.1 does not perform some relocations on ARM |
| 3481 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
| 3482 | esac |
| 3483 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 3484 | ;; |
| 3485 | |
| 3486 | netbsd*) |
| 3487 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3488 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
| 3489 | else |
| 3490 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
| 3491 | fi |
| 3492 | ;; |
| 3493 | |
| 3494 | newos6*) |
| 3495 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 3496 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3497 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 3498 | ;; |
| 3499 | |
| 3500 | openbsd*) |
| 3501 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3502 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3503 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 3504 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
| 3505 | else |
| 3506 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
| 3507 | fi |
| 3508 | ;; |
| 3509 | |
| 3510 | osf3* | osf4* | osf5*) |
| 3511 | # this will be overridden with pass_all, but let us keep it just in case |
| 3512 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| 3513 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3514 | lt_cv_deplibs_check_method=pass_all |
| 3515 | ;; |
| 3516 | |
| 3517 | sco3.2v5*) |
| 3518 | lt_cv_deplibs_check_method=pass_all |
| 3519 | ;; |
| 3520 | |
| 3521 | solaris*) |
| 3522 | lt_cv_deplibs_check_method=pass_all |
| 3523 | lt_cv_file_magic_test_file=/lib/libc.so |
| 3524 | ;; |
| 3525 | |
| 3526 | sysv5uw[78]* | sysv4*uw2*) |
| 3527 | lt_cv_deplibs_check_method=pass_all |
| 3528 | ;; |
| 3529 | |
| 3530 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 3531 | case $host_vendor in |
| 3532 | motorola) |
| 3533 | 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]' |
| 3534 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 3535 | ;; |
| 3536 | ncr) |
| 3537 | lt_cv_deplibs_check_method=pass_all |
| 3538 | ;; |
| 3539 | sequent) |
| 3540 | lt_cv_file_magic_cmd='/bin/file' |
| 3541 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 3542 | ;; |
| 3543 | sni) |
| 3544 | lt_cv_file_magic_cmd='/bin/file' |
| 3545 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 3546 | lt_cv_file_magic_test_file=/lib/libc.so |
| 3547 | ;; |
| 3548 | siemens) |
| 3549 | lt_cv_deplibs_check_method=pass_all |
| 3550 | ;; |
| 3551 | esac |
| 3552 | ;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3553 | esac |
| 3554 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3555 | fi |
| 3556 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 3557 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 3558 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 3559 | deplibs_check_method=$lt_cv_deplibs_check_method |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3560 | |
| 3561 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3562 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3563 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3564 | |
| 3565 | |
| 3566 | |
| 3567 | |
| 3568 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 3569 | echo "$as_me:$LINENO: checking command to parse $NM output" >&5 |
| 3570 | echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 |
| 3571 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 3572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3573 | else |
| 3574 | |
| 3575 | # These are sane defaults that work on at least a few old systems. |
| 3576 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 3577 | |
| 3578 | # Character class describing NM global symbol codes. |
| 3579 | symcode='[BCDEGRST]' |
| 3580 | |
| 3581 | # Regexp to match symbols that can be accessed directly from C. |
| 3582 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 3583 | |
| 3584 | # Transform the above into a raw symbol and a C symbol. |
| 3585 | symxfrm='\1 \2\3 \3' |
| 3586 | |
| 3587 | # Transform an extracted symbol line into a proper C declaration |
| 3588 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
| 3589 | |
| 3590 | # Transform an extracted symbol line into symbol name and symbol address |
| 3591 | lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 3592 | |
| 3593 | # Define system-specific variables. |
| 3594 | case $host_os in |
| 3595 | aix*) |
| 3596 | symcode='[BCDT]' |
| 3597 | ;; |
| 3598 | cygwin* | mingw* | pw32*) |
| 3599 | symcode='[ABCDGISTW]' |
| 3600 | ;; |
| 3601 | hpux*) # Its linker distinguishes data from code symbols |
| 3602 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 3603 | lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 3604 | ;; |
| 3605 | irix* | nonstopux*) |
| 3606 | symcode='[BCDEGRST]' |
| 3607 | ;; |
| 3608 | osf*) |
| 3609 | symcode='[BCDEGQRST]' |
| 3610 | ;; |
| 3611 | solaris* | sysv5*) |
| 3612 | symcode='[BDT]' |
| 3613 | ;; |
| 3614 | sysv4) |
| 3615 | symcode='[DFNSTU]' |
| 3616 | ;; |
| 3617 | esac |
| 3618 | |
| 3619 | # Handle CRLF in mingw tool chain |
| 3620 | opt_cr= |
| 3621 | case $host_os in |
| 3622 | mingw*) |
| 3623 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 3624 | ;; |
| 3625 | esac |
| 3626 | |
| 3627 | # If we're using GNU nm, then use its standard symbol codes. |
| 3628 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
| 3629 | symcode='[ABCDGISTW]' |
| 3630 | fi |
| 3631 | |
| 3632 | # Try without a prefix undercore, then with it. |
| 3633 | for ac_symprfx in "" "_"; do |
| 3634 | |
| 3635 | # Write the raw and C identifiers. |
| 3636 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 3637 | |
| 3638 | # Check to see that the pipe works correctly. |
| 3639 | pipe_works=no |
| 3640 | rm -f conftest* |
| 3641 | cat > conftest.$ac_ext <<EOF |
| 3642 | #ifdef __cplusplus |
| 3643 | extern "C" { |
| 3644 | #endif |
| 3645 | char nm_test_var; |
| 3646 | void nm_test_func(){} |
| 3647 | #ifdef __cplusplus |
| 3648 | } |
| 3649 | #endif |
| 3650 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 3651 | EOF |
| 3652 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3654 | (eval $ac_compile) 2>&5 |
| 3655 | ac_status=$? |
| 3656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3657 | (exit $ac_status); }; then |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3658 | # Now try to grab the symbols. |
| 3659 | nlist=conftest.nm |
| 3660 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 3661 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 3662 | ac_status=$? |
| 3663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3664 | (exit $ac_status); } && test -s "$nlist"; then |
| 3665 | # Try sorting and uniquifying the output. |
| 3666 | if sort "$nlist" | uniq > "$nlist"T; then |
| 3667 | mv -f "$nlist"T "$nlist" |
| 3668 | else |
| 3669 | rm -f "$nlist"T |
| 3670 | fi |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3671 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3672 | # Make sure that we snagged all the symbols we need. |
| 3673 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
| 3674 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
| 3675 | cat <<EOF > conftest.$ac_ext |
| 3676 | #ifdef __cplusplus |
| 3677 | extern "C" { |
| 3678 | #endif |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3679 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3680 | EOF |
| 3681 | # Now generate the symbol file. |
| 3682 | eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3683 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3684 | cat <<EOF >> conftest.$ac_ext |
| 3685 | #if defined (__STDC__) && __STDC__ |
| 3686 | # define lt_ptr void * |
| 3687 | #else |
| 3688 | # define lt_ptr char * |
| 3689 | # define const |
| 3690 | #endif |
| 3691 | |
| 3692 | /* The mapping between symbol names and symbols. */ |
| 3693 | const struct { |
| 3694 | const char *name; |
| 3695 | lt_ptr address; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3696 | } |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3697 | lt_preloaded_symbols[] = |
| 3698 | { |
| 3699 | EOF |
| 3700 | sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext |
| 3701 | cat <<\EOF >> conftest.$ac_ext |
| 3702 | {0, (lt_ptr) 0} |
| 3703 | }; |
| 3704 | |
| 3705 | #ifdef __cplusplus |
| 3706 | } |
| 3707 | #endif |
| 3708 | EOF |
| 3709 | # Now try linking the two files. |
| 3710 | mv conftest.$ac_objext conftstm.$ac_objext |
| 3711 | save_LIBS="$LIBS" |
| 3712 | save_CFLAGS="$CFLAGS" |
| 3713 | LIBS="conftstm.$ac_objext" |
| 3714 | CFLAGS="$CFLAGS$no_builtin_flag" |
| 3715 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3716 | (eval $ac_link) 2>&5 |
| 3717 | ac_status=$? |
| 3718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3719 | (exit $ac_status); } && test -s conftest$ac_exeext; then |
| 3720 | pipe_works=yes |
| 3721 | fi |
| 3722 | LIBS="$save_LIBS" |
| 3723 | CFLAGS="$save_CFLAGS" |
| 3724 | else |
| 3725 | echo "cannot find nm_test_func in $nlist" >&5 |
| 3726 | fi |
| 3727 | else |
| 3728 | echo "cannot find nm_test_var in $nlist" >&5 |
| 3729 | fi |
| 3730 | else |
| 3731 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 3732 | fi |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3733 | else |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3734 | echo "$progname: failed program was:" >&5 |
| 3735 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3736 | fi |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3737 | rm -f conftest* conftst* |
| 3738 | |
| 3739 | # Do not use the global_symbol_pipe unless it works. |
| 3740 | if test "$pipe_works" = yes; then |
| 3741 | break |
| 3742 | else |
| 3743 | lt_cv_sys_global_symbol_pipe= |
| 3744 | fi |
| 3745 | done |
| 3746 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3747 | fi |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3748 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3749 | global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
| 3750 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 3751 | global_symbol_to_cdecl= |
| 3752 | global_symbol_to_c_name_address= |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3753 | else |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3754 | global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
| 3755 | global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3756 | fi |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3757 | if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; |
| 3758 | then |
| 3759 | echo "$as_me:$LINENO: result: failed" >&5 |
| 3760 | echo "${ECHO_T}failed" >&6 |
| 3761 | else |
| 3762 | echo "$as_me:$LINENO: result: ok" >&5 |
| 3763 | echo "${ECHO_T}ok" >&6 |
| 3764 | fi |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3765 | |
| 3766 | ac_ext=c |
| 3767 | ac_cpp='$CPP $CPPFLAGS' |
| 3768 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3769 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3770 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3771 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3772 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3773 | # On Suns, sometimes $CPP names a directory. |
| 3774 | if test -n "$CPP" && test -d "$CPP"; then |
| 3775 | CPP= |
| 3776 | fi |
| 3777 | if test -z "$CPP"; then |
| 3778 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3780 | else |
| 3781 | # Double quotes because CPP needs to be expanded |
| 3782 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3783 | do |
| 3784 | ac_preproc_ok=false |
| 3785 | for ac_c_preproc_warn_flag in '' yes |
| 3786 | do |
| 3787 | # Use a header file that comes with gcc, so configuring glibc |
| 3788 | # with a fresh cross-compiler works. |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 3789 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3790 | # <limits.h> exists even on freestanding compilers. |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3791 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3792 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3793 | cat >conftest.$ac_ext <<_ACEOF |
| 3794 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 3795 | /* confdefs.h. */ |
| 3796 | _ACEOF |
| 3797 | cat confdefs.h >>conftest.$ac_ext |
| 3798 | cat >>conftest.$ac_ext <<_ACEOF |
| 3799 | /* end confdefs.h. */ |
| 3800 | #ifdef __STDC__ |
| 3801 | # include <limits.h> |
| 3802 | #else |
| 3803 | # include <assert.h> |
| 3804 | #endif |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3805 | Syntax error |
| 3806 | _ACEOF |
| 3807 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3808 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3809 | ac_status=$? |
| 3810 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3811 | rm -f conftest.er1 |
| 3812 | cat conftest.err >&5 |
| 3813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3814 | (exit $ac_status); } >/dev/null; then |
| 3815 | if test -s conftest.err; then |
| 3816 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3817 | else |
| 3818 | ac_cpp_err= |
| 3819 | fi |
| 3820 | else |
| 3821 | ac_cpp_err=yes |
| 3822 | fi |
| 3823 | if test -z "$ac_cpp_err"; then |
| 3824 | : |
| 3825 | else |
| 3826 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 3827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3828 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3829 | # Broken: fails on valid input. |
| 3830 | continue |
| 3831 | fi |
| 3832 | rm -f conftest.err conftest.$ac_ext |
| 3833 | |
| 3834 | # OK, works on sane cases. Now check whether non-existent headers |
| 3835 | # can be detected and how. |
| 3836 | cat >conftest.$ac_ext <<_ACEOF |
| 3837 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 3838 | /* confdefs.h. */ |
| 3839 | _ACEOF |
| 3840 | cat confdefs.h >>conftest.$ac_ext |
| 3841 | cat >>conftest.$ac_ext <<_ACEOF |
| 3842 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3843 | #include <ac_nonexistent.h> |
| 3844 | _ACEOF |
| 3845 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3846 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3847 | ac_status=$? |
| 3848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3849 | rm -f conftest.er1 |
| 3850 | cat conftest.err >&5 |
| 3851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3852 | (exit $ac_status); } >/dev/null; then |
| 3853 | if test -s conftest.err; then |
| 3854 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3855 | else |
| 3856 | ac_cpp_err= |
| 3857 | fi |
| 3858 | else |
| 3859 | ac_cpp_err=yes |
| 3860 | fi |
| 3861 | if test -z "$ac_cpp_err"; then |
| 3862 | # Broken: success on invalid input. |
| 3863 | continue |
| 3864 | else |
| 3865 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 3866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3867 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3868 | # Passes both tests. |
| 3869 | ac_preproc_ok=: |
| 3870 | break |
| 3871 | fi |
| 3872 | rm -f conftest.err conftest.$ac_ext |
| 3873 | |
| 3874 | done |
| 3875 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3876 | rm -f conftest.err conftest.$ac_ext |
| 3877 | if $ac_preproc_ok; then |
| 3878 | break |
| 3879 | fi |
| 3880 | |
| 3881 | done |
| 3882 | ac_cv_prog_CPP=$CPP |
| 3883 | |
| 3884 | fi |
| 3885 | CPP=$ac_cv_prog_CPP |
| 3886 | else |
| 3887 | ac_cv_prog_CPP=$CPP |
| 3888 | fi |
| 3889 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3890 | echo "${ECHO_T}$CPP" >&6 |
| 3891 | ac_preproc_ok=false |
| 3892 | for ac_c_preproc_warn_flag in '' yes |
| 3893 | do |
| 3894 | # Use a header file that comes with gcc, so configuring glibc |
| 3895 | # with a fresh cross-compiler works. |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 3896 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3897 | # <limits.h> exists even on freestanding compilers. |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3898 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3899 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3900 | cat >conftest.$ac_ext <<_ACEOF |
| 3901 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 3902 | /* confdefs.h. */ |
| 3903 | _ACEOF |
| 3904 | cat confdefs.h >>conftest.$ac_ext |
| 3905 | cat >>conftest.$ac_ext <<_ACEOF |
| 3906 | /* end confdefs.h. */ |
| 3907 | #ifdef __STDC__ |
| 3908 | # include <limits.h> |
| 3909 | #else |
| 3910 | # include <assert.h> |
| 3911 | #endif |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3912 | Syntax error |
| 3913 | _ACEOF |
| 3914 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3915 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3916 | ac_status=$? |
| 3917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3918 | rm -f conftest.er1 |
| 3919 | cat conftest.err >&5 |
| 3920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3921 | (exit $ac_status); } >/dev/null; then |
| 3922 | if test -s conftest.err; then |
| 3923 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3924 | else |
| 3925 | ac_cpp_err= |
| 3926 | fi |
| 3927 | else |
| 3928 | ac_cpp_err=yes |
| 3929 | fi |
| 3930 | if test -z "$ac_cpp_err"; then |
| 3931 | : |
| 3932 | else |
| 3933 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 3934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3935 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3936 | # Broken: fails on valid input. |
| 3937 | continue |
| 3938 | fi |
| 3939 | rm -f conftest.err conftest.$ac_ext |
| 3940 | |
| 3941 | # OK, works on sane cases. Now check whether non-existent headers |
| 3942 | # can be detected and how. |
| 3943 | cat >conftest.$ac_ext <<_ACEOF |
| 3944 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 3945 | /* confdefs.h. */ |
| 3946 | _ACEOF |
| 3947 | cat confdefs.h >>conftest.$ac_ext |
| 3948 | cat >>conftest.$ac_ext <<_ACEOF |
| 3949 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3950 | #include <ac_nonexistent.h> |
| 3951 | _ACEOF |
| 3952 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3953 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3954 | ac_status=$? |
| 3955 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3956 | rm -f conftest.er1 |
| 3957 | cat conftest.err >&5 |
| 3958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3959 | (exit $ac_status); } >/dev/null; then |
| 3960 | if test -s conftest.err; then |
| 3961 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3962 | else |
| 3963 | ac_cpp_err= |
| 3964 | fi |
| 3965 | else |
| 3966 | ac_cpp_err=yes |
| 3967 | fi |
| 3968 | if test -z "$ac_cpp_err"; then |
| 3969 | # Broken: success on invalid input. |
| 3970 | continue |
| 3971 | else |
| 3972 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 3973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3974 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3975 | # Passes both tests. |
| 3976 | ac_preproc_ok=: |
| 3977 | break |
| 3978 | fi |
| 3979 | rm -f conftest.err conftest.$ac_ext |
| 3980 | |
| 3981 | done |
| 3982 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3983 | rm -f conftest.err conftest.$ac_ext |
| 3984 | if $ac_preproc_ok; then |
| 3985 | : |
| 3986 | else |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 3987 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3988 | See \`config.log' for more details." >&5 |
| 3989 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3990 | See \`config.log' for more details." >&2;} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3991 | { (exit 1); exit 1; }; } |
| 3992 | fi |
| 3993 | |
| 3994 | ac_ext=c |
| 3995 | ac_cpp='$CPP $CPPFLAGS' |
| 3996 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3997 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3998 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3999 | |
| 4000 | |
| 4001 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4002 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 4003 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 4004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4005 | else |
| 4006 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 4007 | then ac_cv_prog_egrep='grep -E' |
| 4008 | else ac_cv_prog_egrep='egrep' |
| 4009 | fi |
| 4010 | fi |
| 4011 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 4012 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 4013 | EGREP=$ac_cv_prog_egrep |
| 4014 | |
| 4015 | |
| 4016 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4017 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4018 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4020 | else |
| 4021 | cat >conftest.$ac_ext <<_ACEOF |
| 4022 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 4023 | /* confdefs.h. */ |
| 4024 | _ACEOF |
| 4025 | cat confdefs.h >>conftest.$ac_ext |
| 4026 | cat >>conftest.$ac_ext <<_ACEOF |
| 4027 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4028 | #include <stdlib.h> |
| 4029 | #include <stdarg.h> |
| 4030 | #include <string.h> |
| 4031 | #include <float.h> |
| 4032 | |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 4033 | int |
| 4034 | main () |
| 4035 | { |
| 4036 | |
| 4037 | ; |
| 4038 | return 0; |
| 4039 | } |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4040 | _ACEOF |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 4041 | rm -f conftest.$ac_objext |
| 4042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4043 | (eval $ac_compile) 2>&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4044 | ac_status=$? |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 4046 | (exit $ac_status); } && |
| 4047 | { ac_try='test -s conftest.$ac_objext' |
| 4048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4049 | (eval $ac_try) 2>&5 |
| 4050 | ac_status=$? |
| 4051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4052 | (exit $ac_status); }; }; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4053 | ac_cv_header_stdc=yes |
| 4054 | else |
| 4055 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 4056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4057 | |
| 4058 | ac_cv_header_stdc=no |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4059 | fi |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 4060 | rm -f conftest.$ac_objext conftest.$ac_ext |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4061 | |
| 4062 | if test $ac_cv_header_stdc = yes; then |
| 4063 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4064 | cat >conftest.$ac_ext <<_ACEOF |
| 4065 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 4066 | /* confdefs.h. */ |
| 4067 | _ACEOF |
| 4068 | cat confdefs.h >>conftest.$ac_ext |
| 4069 | cat >>conftest.$ac_ext <<_ACEOF |
| 4070 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4071 | #include <string.h> |
| 4072 | |
| 4073 | _ACEOF |
| 4074 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4075 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4076 | : |
| 4077 | else |
| 4078 | ac_cv_header_stdc=no |
| 4079 | fi |
| 4080 | rm -f conftest* |
| 4081 | |
| 4082 | fi |
| 4083 | |
| 4084 | if test $ac_cv_header_stdc = yes; then |
| 4085 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4086 | cat >conftest.$ac_ext <<_ACEOF |
| 4087 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 4088 | /* confdefs.h. */ |
| 4089 | _ACEOF |
| 4090 | cat confdefs.h >>conftest.$ac_ext |
| 4091 | cat >>conftest.$ac_ext <<_ACEOF |
| 4092 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4093 | #include <stdlib.h> |
| 4094 | |
| 4095 | _ACEOF |
| 4096 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4097 | $EGREP "free" >/dev/null 2>&1; then |
| 4098 | : |
| 4099 | else |
| 4100 | ac_cv_header_stdc=no |
| 4101 | fi |
| 4102 | rm -f conftest* |
| 4103 | |
| 4104 | fi |
| 4105 | |
| 4106 | if test $ac_cv_header_stdc = yes; then |
| 4107 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4108 | if test "$cross_compiling" = yes; then |
| 4109 | : |
| 4110 | else |
| 4111 | cat >conftest.$ac_ext <<_ACEOF |
| 4112 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 4113 | /* confdefs.h. */ |
| 4114 | _ACEOF |
| 4115 | cat confdefs.h >>conftest.$ac_ext |
| 4116 | cat >>conftest.$ac_ext <<_ACEOF |
| 4117 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4118 | #include <ctype.h> |
| 4119 | #if ((' ' & 0x0FF) == 0x020) |
| 4120 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4121 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4122 | #else |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 4123 | # define ISLOWER(c) \ |
| 4124 | (('a' <= (c) && (c) <= 'i') \ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4125 | || ('j' <= (c) && (c) <= 'r') \ |
| 4126 | || ('s' <= (c) && (c) <= 'z')) |
| 4127 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4128 | #endif |
| 4129 | |
| 4130 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4131 | int |
| 4132 | main () |
| 4133 | { |
| 4134 | int i; |
| 4135 | for (i = 0; i < 256; i++) |
| 4136 | if (XOR (islower (i), ISLOWER (i)) |
| 4137 | || toupper (i) != TOUPPER (i)) |
| 4138 | exit(2); |
| 4139 | exit (0); |
| 4140 | } |
| 4141 | _ACEOF |
| 4142 | rm -f conftest$ac_exeext |
| 4143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4144 | (eval $ac_link) 2>&5 |
| 4145 | ac_status=$? |
| 4146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4147 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4149 | (eval $ac_try) 2>&5 |
| 4150 | ac_status=$? |
| 4151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4152 | (exit $ac_status); }; }; then |
| 4153 | : |
| 4154 | else |
| 4155 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4156 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 4157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4158 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4159 | ( exit $ac_status ) |
| 4160 | ac_cv_header_stdc=no |
| 4161 | fi |
| 4162 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4163 | fi |
| 4164 | fi |
| 4165 | fi |
| 4166 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4167 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 4168 | if test $ac_cv_header_stdc = yes; then |
| 4169 | |
| 4170 | cat >>confdefs.h <<\_ACEOF |
| 4171 | #define STDC_HEADERS 1 |
| 4172 | _ACEOF |
| 4173 | |
| 4174 | fi |
| 4175 | |
| 4176 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4177 | |
| 4178 | |
| 4179 | |
| 4180 | |
| 4181 | |
| 4182 | |
| 4183 | |
| 4184 | |
| 4185 | |
| 4186 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4187 | inttypes.h stdint.h unistd.h |
| 4188 | do |
| 4189 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4190 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4191 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4192 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4194 | else |
| 4195 | cat >conftest.$ac_ext <<_ACEOF |
| 4196 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 4197 | /* confdefs.h. */ |
| 4198 | _ACEOF |
| 4199 | cat confdefs.h >>conftest.$ac_ext |
| 4200 | cat >>conftest.$ac_ext <<_ACEOF |
| 4201 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4202 | $ac_includes_default |
| 4203 | |
| 4204 | #include <$ac_header> |
| 4205 | _ACEOF |
| 4206 | rm -f conftest.$ac_objext |
| 4207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4208 | (eval $ac_compile) 2>&5 |
| 4209 | ac_status=$? |
| 4210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4211 | (exit $ac_status); } && |
| 4212 | { ac_try='test -s conftest.$ac_objext' |
| 4213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4214 | (eval $ac_try) 2>&5 |
| 4215 | ac_status=$? |
| 4216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4217 | (exit $ac_status); }; }; then |
| 4218 | eval "$as_ac_Header=yes" |
| 4219 | else |
| 4220 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 4221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4222 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4223 | eval "$as_ac_Header=no" |
| 4224 | fi |
| 4225 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4226 | fi |
| 4227 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4228 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4229 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4230 | cat >>confdefs.h <<_ACEOF |
| 4231 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4232 | _ACEOF |
| 4233 | |
| 4234 | fi |
| 4235 | |
| 4236 | done |
| 4237 | |
| 4238 | |
| 4239 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4240 | for ac_header in dlfcn.h |
| 4241 | do |
| 4242 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4243 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4244 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4245 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4246 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4248 | fi |
| 4249 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4250 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4251 | else |
| 4252 | # Is the header compilable? |
| 4253 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4254 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4255 | cat >conftest.$ac_ext <<_ACEOF |
| 4256 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 4257 | /* confdefs.h. */ |
| 4258 | _ACEOF |
| 4259 | cat confdefs.h >>conftest.$ac_ext |
| 4260 | cat >>conftest.$ac_ext <<_ACEOF |
| 4261 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4262 | $ac_includes_default |
| 4263 | #include <$ac_header> |
| 4264 | _ACEOF |
| 4265 | rm -f conftest.$ac_objext |
| 4266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4267 | (eval $ac_compile) 2>&5 |
| 4268 | ac_status=$? |
| 4269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4270 | (exit $ac_status); } && |
| 4271 | { ac_try='test -s conftest.$ac_objext' |
| 4272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4273 | (eval $ac_try) 2>&5 |
| 4274 | ac_status=$? |
| 4275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4276 | (exit $ac_status); }; }; then |
| 4277 | ac_header_compiler=yes |
| 4278 | else |
| 4279 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 4280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4281 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4282 | ac_header_compiler=no |
| 4283 | fi |
| 4284 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4285 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4286 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4287 | |
| 4288 | # Is the header present? |
| 4289 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4290 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4291 | cat >conftest.$ac_ext <<_ACEOF |
| 4292 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 4293 | /* confdefs.h. */ |
| 4294 | _ACEOF |
| 4295 | cat confdefs.h >>conftest.$ac_ext |
| 4296 | cat >>conftest.$ac_ext <<_ACEOF |
| 4297 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4298 | #include <$ac_header> |
| 4299 | _ACEOF |
| 4300 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4301 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4302 | ac_status=$? |
| 4303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4304 | rm -f conftest.er1 |
| 4305 | cat conftest.err >&5 |
| 4306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4307 | (exit $ac_status); } >/dev/null; then |
| 4308 | if test -s conftest.err; then |
| 4309 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4310 | else |
| 4311 | ac_cpp_err= |
| 4312 | fi |
| 4313 | else |
| 4314 | ac_cpp_err=yes |
| 4315 | fi |
| 4316 | if test -z "$ac_cpp_err"; then |
| 4317 | ac_header_preproc=yes |
| 4318 | else |
| 4319 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 4320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4321 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4322 | ac_header_preproc=no |
| 4323 | fi |
| 4324 | rm -f conftest.err conftest.$ac_ext |
| 4325 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4326 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4327 | |
| 4328 | # So? What about this header? |
| 4329 | case $ac_header_compiler:$ac_header_preproc in |
| 4330 | yes:no ) |
| 4331 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4332 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4333 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 4334 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4335 | ( |
| 4336 | cat <<\_ASBOX |
| 4337 | ## ------------------------------------ ## |
| 4338 | ## Report this to bug-autoconf@gnu.org. ## |
| 4339 | ## ------------------------------------ ## |
| 4340 | _ASBOX |
| 4341 | ) | |
| 4342 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4343 | ;; |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4344 | no:yes ) |
| 4345 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4346 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4347 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4348 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4349 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 4350 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4351 | ( |
| 4352 | cat <<\_ASBOX |
| 4353 | ## ------------------------------------ ## |
| 4354 | ## Report this to bug-autoconf@gnu.org. ## |
| 4355 | ## ------------------------------------ ## |
| 4356 | _ASBOX |
| 4357 | ) | |
| 4358 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4359 | ;; |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4360 | esac |
| 4361 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4362 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4363 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4365 | else |
| 4366 | eval "$as_ac_Header=$ac_header_preproc" |
| 4367 | fi |
| 4368 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4369 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4370 | |
| 4371 | fi |
| 4372 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4373 | cat >>confdefs.h <<_ACEOF |
| 4374 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4375 | _ACEOF |
| 4376 | |
| 4377 | fi |
| 4378 | |
| 4379 | done |
| 4380 | |
| 4381 | |
| 4382 | |
| 4383 | |
| 4384 | |
| 4385 | |
| 4386 | # Only perform the check for file, if the check method requires it |
| 4387 | case $deplibs_check_method in |
| 4388 | file_magic*) |
| 4389 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 4390 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 4391 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 4392 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 4393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4394 | else |
| 4395 | case $MAGIC_CMD in |
| 4396 | /*) |
| 4397 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 4398 | ;; |
| 4399 | ?:/*) |
| 4400 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 4401 | ;; |
| 4402 | *) |
| 4403 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 4404 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4405 | ac_dummy="/usr/bin:$PATH" |
| 4406 | for ac_dir in $ac_dummy; do |
| 4407 | test -z "$ac_dir" && ac_dir=. |
| 4408 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 4409 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 4410 | if test -n "$file_magic_test_file"; then |
| 4411 | case $deplibs_check_method in |
| 4412 | "file_magic "*) |
| 4413 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 4414 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4415 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 4416 | egrep "$file_magic_regex" > /dev/null; then |
| 4417 | : |
| 4418 | else |
| 4419 | cat <<EOF 1>&2 |
| 4420 | |
| 4421 | *** Warning: the command libtool uses to detect shared libraries, |
| 4422 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 4423 | *** The result is that libtool may fail to recognize shared libraries |
| 4424 | *** as such. This will affect the creation of libtool libraries that |
| 4425 | *** depend on shared libraries, but programs linked with such libtool |
| 4426 | *** libraries will work regardless of this problem. Nevertheless, you |
| 4427 | *** may want to report the problem to your system manager and/or to |
| 4428 | *** bug-libtool@gnu.org |
| 4429 | |
| 4430 | EOF |
| 4431 | fi ;; |
| 4432 | esac |
| 4433 | fi |
| 4434 | break |
| 4435 | fi |
| 4436 | done |
| 4437 | IFS="$ac_save_ifs" |
| 4438 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
| 4439 | ;; |
| 4440 | esac |
| 4441 | fi |
| 4442 | |
| 4443 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4444 | if test -n "$MAGIC_CMD"; then |
| 4445 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 4446 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 4447 | else |
| 4448 | echo "$as_me:$LINENO: result: no" >&5 |
| 4449 | echo "${ECHO_T}no" >&6 |
| 4450 | fi |
| 4451 | |
| 4452 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 4453 | if test -n "$ac_tool_prefix"; then |
| 4454 | echo "$as_me:$LINENO: checking for file" >&5 |
| 4455 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 4456 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 4457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4458 | else |
| 4459 | case $MAGIC_CMD in |
| 4460 | /*) |
| 4461 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 4462 | ;; |
| 4463 | ?:/*) |
| 4464 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 4465 | ;; |
| 4466 | *) |
| 4467 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 4468 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4469 | ac_dummy="/usr/bin:$PATH" |
| 4470 | for ac_dir in $ac_dummy; do |
| 4471 | test -z "$ac_dir" && ac_dir=. |
| 4472 | if test -f $ac_dir/file; then |
| 4473 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 4474 | if test -n "$file_magic_test_file"; then |
| 4475 | case $deplibs_check_method in |
| 4476 | "file_magic "*) |
| 4477 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 4478 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4479 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 4480 | egrep "$file_magic_regex" > /dev/null; then |
| 4481 | : |
| 4482 | else |
| 4483 | cat <<EOF 1>&2 |
| 4484 | |
| 4485 | *** Warning: the command libtool uses to detect shared libraries, |
| 4486 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 4487 | *** The result is that libtool may fail to recognize shared libraries |
| 4488 | *** as such. This will affect the creation of libtool libraries that |
| 4489 | *** depend on shared libraries, but programs linked with such libtool |
| 4490 | *** libraries will work regardless of this problem. Nevertheless, you |
| 4491 | *** may want to report the problem to your system manager and/or to |
| 4492 | *** bug-libtool@gnu.org |
| 4493 | |
| 4494 | EOF |
| 4495 | fi ;; |
| 4496 | esac |
| 4497 | fi |
| 4498 | break |
| 4499 | fi |
| 4500 | done |
| 4501 | IFS="$ac_save_ifs" |
| 4502 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
| 4503 | ;; |
| 4504 | esac |
| 4505 | fi |
| 4506 | |
| 4507 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4508 | if test -n "$MAGIC_CMD"; then |
| 4509 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 4510 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 4511 | else |
| 4512 | echo "$as_me:$LINENO: result: no" >&5 |
| 4513 | echo "${ECHO_T}no" >&6 |
| 4514 | fi |
| 4515 | |
| 4516 | else |
| 4517 | MAGIC_CMD=: |
| 4518 | fi |
| 4519 | fi |
| 4520 | |
| 4521 | fi |
| 4522 | ;; |
| 4523 | esac |
| 4524 | |
| 4525 | if test -n "$ac_tool_prefix"; then |
| 4526 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4527 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 4528 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4530 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4532 | else |
| 4533 | if test -n "$RANLIB"; then |
| 4534 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4535 | else |
| 4536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4537 | for as_dir in $PATH |
| 4538 | do |
| 4539 | IFS=$as_save_IFS |
| 4540 | test -z "$as_dir" && as_dir=. |
| 4541 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4542 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4543 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4544 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4545 | break 2 |
| 4546 | fi |
| 4547 | done |
| 4548 | done |
| 4549 | |
| 4550 | fi |
| 4551 | fi |
| 4552 | RANLIB=$ac_cv_prog_RANLIB |
| 4553 | if test -n "$RANLIB"; then |
| 4554 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4555 | echo "${ECHO_T}$RANLIB" >&6 |
| 4556 | else |
| 4557 | echo "$as_me:$LINENO: result: no" >&5 |
| 4558 | echo "${ECHO_T}no" >&6 |
| 4559 | fi |
| 4560 | |
| 4561 | fi |
| 4562 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4563 | ac_ct_RANLIB=$RANLIB |
| 4564 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4565 | set dummy ranlib; ac_word=$2 |
| 4566 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4567 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4568 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4570 | else |
| 4571 | if test -n "$ac_ct_RANLIB"; then |
| 4572 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4573 | else |
| 4574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4575 | for as_dir in $PATH |
| 4576 | do |
| 4577 | IFS=$as_save_IFS |
| 4578 | test -z "$as_dir" && as_dir=. |
| 4579 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4580 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4581 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4582 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4583 | break 2 |
| 4584 | fi |
| 4585 | done |
| 4586 | done |
| 4587 | |
| 4588 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 4589 | fi |
| 4590 | fi |
| 4591 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4592 | if test -n "$ac_ct_RANLIB"; then |
| 4593 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4594 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 4595 | else |
| 4596 | echo "$as_me:$LINENO: result: no" >&5 |
| 4597 | echo "${ECHO_T}no" >&6 |
| 4598 | fi |
| 4599 | |
| 4600 | RANLIB=$ac_ct_RANLIB |
| 4601 | else |
| 4602 | RANLIB="$ac_cv_prog_RANLIB" |
| 4603 | fi |
| 4604 | |
| 4605 | if test -n "$ac_tool_prefix"; then |
| 4606 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 4607 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 4608 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4609 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4610 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 4611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4612 | else |
| 4613 | if test -n "$STRIP"; then |
| 4614 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 4615 | else |
| 4616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4617 | for as_dir in $PATH |
| 4618 | do |
| 4619 | IFS=$as_save_IFS |
| 4620 | test -z "$as_dir" && as_dir=. |
| 4621 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4622 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4623 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 4624 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4625 | break 2 |
| 4626 | fi |
| 4627 | done |
| 4628 | done |
| 4629 | |
| 4630 | fi |
| 4631 | fi |
| 4632 | STRIP=$ac_cv_prog_STRIP |
| 4633 | if test -n "$STRIP"; then |
| 4634 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 4635 | echo "${ECHO_T}$STRIP" >&6 |
| 4636 | else |
| 4637 | echo "$as_me:$LINENO: result: no" >&5 |
| 4638 | echo "${ECHO_T}no" >&6 |
| 4639 | fi |
| 4640 | |
| 4641 | fi |
| 4642 | if test -z "$ac_cv_prog_STRIP"; then |
| 4643 | ac_ct_STRIP=$STRIP |
| 4644 | # Extract the first word of "strip", so it can be a program name with args. |
| 4645 | set dummy strip; ac_word=$2 |
| 4646 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4647 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4648 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 4649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4650 | else |
| 4651 | if test -n "$ac_ct_STRIP"; then |
| 4652 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 4653 | else |
| 4654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4655 | for as_dir in $PATH |
| 4656 | do |
| 4657 | IFS=$as_save_IFS |
| 4658 | test -z "$as_dir" && as_dir=. |
| 4659 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4660 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4661 | ac_cv_prog_ac_ct_STRIP="strip" |
| 4662 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4663 | break 2 |
| 4664 | fi |
| 4665 | done |
| 4666 | done |
| 4667 | |
| 4668 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 4669 | fi |
| 4670 | fi |
| 4671 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 4672 | if test -n "$ac_ct_STRIP"; then |
| 4673 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 4674 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 4675 | else |
| 4676 | echo "$as_me:$LINENO: result: no" >&5 |
| 4677 | echo "${ECHO_T}no" >&6 |
| 4678 | fi |
| 4679 | |
| 4680 | STRIP=$ac_ct_STRIP |
| 4681 | else |
| 4682 | STRIP="$ac_cv_prog_STRIP" |
| 4683 | fi |
| 4684 | |
| 4685 | |
| 4686 | enable_dlopen=no |
| 4687 | enable_win32_dll=no |
| 4688 | |
| 4689 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 4690 | if test "${enable_libtool_lock+set}" = set; then |
| 4691 | enableval="$enable_libtool_lock" |
| 4692 | |
| 4693 | fi; |
| 4694 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 4695 | |
| 4696 | # Some flags need to be propagated to the compiler or linker for good |
| 4697 | # libtool support. |
| 4698 | case $host in |
| 4699 | *-*-irix6*) |
| 4700 | # Find out which ABI we are using. |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 4701 | echo '#line 4701 "configure"' > conftest.$ac_ext |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4703 | (eval $ac_compile) 2>&5 |
| 4704 | ac_status=$? |
| 4705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4706 | (exit $ac_status); }; then |
| 4707 | case `/usr/bin/file conftest.$ac_objext` in |
| 4708 | *32-bit*) |
| 4709 | LD="${LD-ld} -32" |
| 4710 | ;; |
| 4711 | *N32*) |
| 4712 | LD="${LD-ld} -n32" |
| 4713 | ;; |
| 4714 | *64-bit*) |
| 4715 | LD="${LD-ld} -64" |
| 4716 | ;; |
| 4717 | esac |
| 4718 | fi |
| 4719 | rm -rf conftest* |
| 4720 | ;; |
| 4721 | |
| 4722 | *-*-sco3.2v5*) |
| 4723 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 4724 | SAVE_CFLAGS="$CFLAGS" |
| 4725 | CFLAGS="$CFLAGS -belf" |
| 4726 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 4727 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 4728 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 4729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4730 | else |
| 4731 | |
| 4732 | |
| 4733 | ac_ext=c |
| 4734 | ac_cpp='$CPP $CPPFLAGS' |
| 4735 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4736 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4737 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4738 | |
| 4739 | cat >conftest.$ac_ext <<_ACEOF |
| 4740 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 4741 | /* confdefs.h. */ |
| 4742 | _ACEOF |
| 4743 | cat confdefs.h >>conftest.$ac_ext |
| 4744 | cat >>conftest.$ac_ext <<_ACEOF |
| 4745 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4746 | |
| 4747 | int |
| 4748 | main () |
| 4749 | { |
| 4750 | |
| 4751 | ; |
| 4752 | return 0; |
| 4753 | } |
| 4754 | _ACEOF |
| 4755 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4756 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4757 | (eval $ac_link) 2>&5 |
| 4758 | ac_status=$? |
| 4759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4760 | (exit $ac_status); } && |
| 4761 | { ac_try='test -s conftest$ac_exeext' |
| 4762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4763 | (eval $ac_try) 2>&5 |
| 4764 | ac_status=$? |
| 4765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4766 | (exit $ac_status); }; }; then |
| 4767 | lt_cv_cc_needs_belf=yes |
| 4768 | else |
| 4769 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 4770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4771 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4772 | lt_cv_cc_needs_belf=no |
| 4773 | fi |
| 4774 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4775 | ac_ext=c |
| 4776 | ac_cpp='$CPP $CPPFLAGS' |
| 4777 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4778 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4779 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4780 | |
| 4781 | fi |
| 4782 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 4783 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 4784 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 4785 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 4786 | CFLAGS="$SAVE_CFLAGS" |
| 4787 | fi |
| 4788 | ;; |
| 4789 | |
| 4790 | |
| 4791 | esac |
| 4792 | |
| 4793 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 4794 | # metacharacters that are still active within double-quoted strings. |
| 4795 | Xsed='sed -e s/^X//' |
| 4796 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 4797 | |
| 4798 | # Same as above, but do not quote variable references. |
| 4799 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 4800 | |
| 4801 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 4802 | # double_quote_subst'ed string. |
| 4803 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 4804 | |
| 4805 | # Constants: |
| 4806 | rm="rm -f" |
| 4807 | |
| 4808 | # Global variables: |
| 4809 | default_ofile=libtool |
| 4810 | can_build_shared=yes |
| 4811 | |
| 4812 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 4813 | # which needs '.lib'). |
| 4814 | libext=a |
| 4815 | ltmain="$ac_aux_dir/ltmain.sh" |
| 4816 | ofile="$default_ofile" |
| 4817 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 4818 | need_locks="$enable_libtool_lock" |
| 4819 | |
| 4820 | old_CC="$CC" |
| 4821 | old_CFLAGS="$CFLAGS" |
| 4822 | |
| 4823 | # Set sane defaults for various variables |
| 4824 | test -z "$AR" && AR=ar |
| 4825 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 4826 | test -z "$AS" && AS=as |
| 4827 | test -z "$CC" && CC=cc |
| 4828 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 4829 | test -z "$LD" && LD=ld |
| 4830 | test -z "$LN_S" && LN_S="ln -s" |
| 4831 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 4832 | test -z "$NM" && NM=nm |
| 4833 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 4834 | test -z "$RANLIB" && RANLIB=: |
| 4835 | test -z "$STRIP" && STRIP=: |
| 4836 | test -z "$ac_objext" && ac_objext=o |
| 4837 | |
| 4838 | if test x"$host" != x"$build"; then |
| 4839 | ac_tool_prefix=${host_alias}- |
| 4840 | else |
| 4841 | ac_tool_prefix= |
| 4842 | fi |
| 4843 | |
| 4844 | # Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
| 4845 | case $host_os in |
| 4846 | linux-gnu*) ;; |
| 4847 | linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
| 4848 | esac |
| 4849 | |
| 4850 | case $host_os in |
| 4851 | aix3*) |
| 4852 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 4853 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 4854 | # vanish in a puff of smoke. |
| 4855 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 4856 | COLLECT_NAMES= |
| 4857 | export COLLECT_NAMES |
| 4858 | fi |
| 4859 | ;; |
| 4860 | esac |
| 4861 | |
| 4862 | # Determine commands to create old-style static archives. |
| 4863 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 4864 | old_postinstall_cmds='chmod 644 $oldlib' |
| 4865 | old_postuninstall_cmds= |
| 4866 | |
| 4867 | if test -n "$RANLIB"; then |
| 4868 | case $host_os in |
| 4869 | openbsd*) |
| 4870 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
| 4871 | ;; |
| 4872 | *) |
| 4873 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
| 4874 | ;; |
| 4875 | esac |
| 4876 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 4877 | fi |
| 4878 | |
| 4879 | # Allow CC to be a program name with arguments. |
| 4880 | set dummy $CC |
| 4881 | compiler="$2" |
| 4882 | |
| 4883 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 4884 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 4885 | rm -f .libs 2>/dev/null |
| 4886 | mkdir .libs 2>/dev/null |
| 4887 | if test -d .libs; then |
| 4888 | objdir=.libs |
| 4889 | else |
| 4890 | # MS-DOS does not allow filenames that begin with a dot. |
| 4891 | objdir=_libs |
| 4892 | fi |
| 4893 | rmdir .libs 2>/dev/null |
| 4894 | echo "$as_me:$LINENO: result: $objdir" >&5 |
| 4895 | echo "${ECHO_T}$objdir" >&6 |
| 4896 | |
| 4897 | |
| 4898 | |
| 4899 | # Check whether --with-pic or --without-pic was given. |
| 4900 | if test "${with_pic+set}" = set; then |
| 4901 | withval="$with_pic" |
| 4902 | pic_mode="$withval" |
| 4903 | else |
| 4904 | pic_mode=default |
| 4905 | fi; |
| 4906 | test -z "$pic_mode" && pic_mode=default |
| 4907 | |
| 4908 | # We assume here that the value for lt_cv_prog_cc_pic will not be cached |
| 4909 | # in isolation, and that seeing it set (from the cache) indicates that |
| 4910 | # the associated values are set (in the cache) correctly too. |
| 4911 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 4912 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 4913 | if test "${lt_cv_prog_cc_pic+set}" = set; then |
| 4914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4915 | else |
| 4916 | lt_cv_prog_cc_pic= |
| 4917 | lt_cv_prog_cc_shlib= |
| 4918 | lt_cv_prog_cc_wl= |
| 4919 | lt_cv_prog_cc_static= |
| 4920 | lt_cv_prog_cc_no_builtin= |
| 4921 | lt_cv_prog_cc_can_build_shared=$can_build_shared |
| 4922 | |
| 4923 | if test "$GCC" = yes; then |
| 4924 | lt_cv_prog_cc_wl='-Wl,' |
| 4925 | lt_cv_prog_cc_static='-static' |
| 4926 | |
| 4927 | case $host_os in |
| 4928 | aix*) |
| 4929 | # Below there is a dirty hack to force normal static linking with -ldl |
| 4930 | # The problem is because libdl dynamically linked with both libc and |
| 4931 | # libC (AIX C++ library), which obviously doesn't included in libraries |
| 4932 | # list by gcc. This cause undefined symbols with -static flags. |
| 4933 | # This hack allows C programs to be linked with "-static -ldl", but |
| 4934 | # not sure about C++ programs. |
| 4935 | lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
| 4936 | ;; |
| 4937 | amigaos*) |
| 4938 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 4939 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 4940 | # like `-m68040'. |
| 4941 | lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
| 4942 | ;; |
| 4943 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 4944 | # PIC is the default for these OSes. |
| 4945 | ;; |
| 4946 | darwin* | rhapsody*) |
| 4947 | # PIC is the default on this platform |
| 4948 | # Common symbols not allowed in MH_DYLIB files |
| 4949 | lt_cv_prog_cc_pic='-fno-common' |
| 4950 | ;; |
| 4951 | cygwin* | mingw* | pw32* | os2*) |
| 4952 | # This hack is so that the source file can tell whether it is being |
| 4953 | # built for inclusion in a dll (and should export symbols for example). |
| 4954 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
| 4955 | ;; |
| 4956 | sysv4*MP*) |
| 4957 | if test -d /usr/nec; then |
| 4958 | lt_cv_prog_cc_pic=-Kconform_pic |
| 4959 | fi |
| 4960 | ;; |
| 4961 | *) |
| 4962 | lt_cv_prog_cc_pic='-fPIC' |
| 4963 | ;; |
| 4964 | esac |
| 4965 | else |
| 4966 | # PORTME Check for PIC flags for the system compiler. |
| 4967 | case $host_os in |
| 4968 | aix3* | aix4* | aix5*) |
| 4969 | lt_cv_prog_cc_wl='-Wl,' |
| 4970 | # All AIX code is PIC. |
| 4971 | if test "$host_cpu" = ia64; then |
| 4972 | # AIX 5 now supports IA64 processor |
| 4973 | lt_cv_prog_cc_static='-Bstatic' |
| 4974 | else |
| 4975 | lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
| 4976 | fi |
| 4977 | ;; |
| 4978 | |
| 4979 | hpux9* | hpux10* | hpux11*) |
| 4980 | # Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
| 4981 | lt_cv_prog_cc_wl='-Wl,' |
| 4982 | lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
| 4983 | lt_cv_prog_cc_pic='+Z' |
| 4984 | ;; |
| 4985 | |
| 4986 | irix5* | irix6* | nonstopux*) |
| 4987 | lt_cv_prog_cc_wl='-Wl,' |
| 4988 | lt_cv_prog_cc_static='-non_shared' |
| 4989 | # PIC (with -KPIC) is the default. |
| 4990 | ;; |
| 4991 | |
| 4992 | cygwin* | mingw* | pw32* | os2*) |
| 4993 | # This hack is so that the source file can tell whether it is being |
| 4994 | # built for inclusion in a dll (and should export symbols for example). |
| 4995 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
| 4996 | ;; |
| 4997 | |
| 4998 | newsos6) |
| 4999 | lt_cv_prog_cc_pic='-KPIC' |
| 5000 | lt_cv_prog_cc_static='-Bstatic' |
| 5001 | ;; |
| 5002 | |
| 5003 | osf3* | osf4* | osf5*) |
| 5004 | # All OSF/1 code is PIC. |
| 5005 | lt_cv_prog_cc_wl='-Wl,' |
| 5006 | lt_cv_prog_cc_static='-non_shared' |
| 5007 | ;; |
| 5008 | |
| 5009 | sco3.2v5*) |
| 5010 | lt_cv_prog_cc_pic='-Kpic' |
| 5011 | lt_cv_prog_cc_static='-dn' |
| 5012 | lt_cv_prog_cc_shlib='-belf' |
| 5013 | ;; |
| 5014 | |
| 5015 | solaris*) |
| 5016 | lt_cv_prog_cc_pic='-KPIC' |
| 5017 | lt_cv_prog_cc_static='-Bstatic' |
| 5018 | lt_cv_prog_cc_wl='-Wl,' |
| 5019 | ;; |
| 5020 | |
| 5021 | sunos4*) |
| 5022 | lt_cv_prog_cc_pic='-PIC' |
| 5023 | lt_cv_prog_cc_static='-Bstatic' |
| 5024 | lt_cv_prog_cc_wl='-Qoption ld ' |
| 5025 | ;; |
| 5026 | |
| 5027 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 5028 | lt_cv_prog_cc_pic='-KPIC' |
| 5029 | lt_cv_prog_cc_static='-Bstatic' |
| 5030 | lt_cv_prog_cc_wl='-Wl,' |
| 5031 | ;; |
| 5032 | |
| 5033 | uts4*) |
| 5034 | lt_cv_prog_cc_pic='-pic' |
| 5035 | lt_cv_prog_cc_static='-Bstatic' |
| 5036 | ;; |
| 5037 | |
| 5038 | sysv4*MP*) |
| 5039 | if test -d /usr/nec ;then |
| 5040 | lt_cv_prog_cc_pic='-Kconform_pic' |
| 5041 | lt_cv_prog_cc_static='-Bstatic' |
| 5042 | fi |
| 5043 | ;; |
| 5044 | |
| 5045 | *) |
| 5046 | lt_cv_prog_cc_can_build_shared=no |
| 5047 | ;; |
| 5048 | esac |
| 5049 | fi |
| 5050 | |
| 5051 | fi |
| 5052 | |
| 5053 | if test -z "$lt_cv_prog_cc_pic"; then |
| 5054 | echo "$as_me:$LINENO: result: none" >&5 |
| 5055 | echo "${ECHO_T}none" >&6 |
| 5056 | else |
| 5057 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 |
| 5058 | echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 |
| 5059 | |
| 5060 | # Check to make sure the pic_flag actually works. |
| 5061 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
| 5062 | echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 |
| 5063 | if test "${lt_cv_prog_cc_pic_works+set}" = set; then |
| 5064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5065 | else |
| 5066 | save_CFLAGS="$CFLAGS" |
| 5067 | CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
| 5068 | cat >conftest.$ac_ext <<_ACEOF |
| 5069 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 5070 | /* confdefs.h. */ |
| 5071 | _ACEOF |
| 5072 | cat confdefs.h >>conftest.$ac_ext |
| 5073 | cat >>conftest.$ac_ext <<_ACEOF |
| 5074 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5075 | |
| 5076 | int |
| 5077 | main () |
| 5078 | { |
| 5079 | |
| 5080 | ; |
| 5081 | return 0; |
| 5082 | } |
| 5083 | _ACEOF |
| 5084 | rm -f conftest.$ac_objext |
| 5085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5086 | (eval $ac_compile) 2>&5 |
| 5087 | ac_status=$? |
| 5088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5089 | (exit $ac_status); } && |
| 5090 | { ac_try='test -s conftest.$ac_objext' |
| 5091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5092 | (eval $ac_try) 2>&5 |
| 5093 | ac_status=$? |
| 5094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5095 | (exit $ac_status); }; }; then |
| 5096 | case $host_os in |
| 5097 | hpux9* | hpux10* | hpux11*) |
| 5098 | # On HP-UX, both CC and GCC only warn that PIC is supported... then |
| 5099 | # they create non-PIC objects. So, if there were any warnings, we |
| 5100 | # assume that PIC is not supported. |
| 5101 | if test -s conftest.err; then |
| 5102 | lt_cv_prog_cc_pic_works=no |
| 5103 | else |
| 5104 | lt_cv_prog_cc_pic_works=yes |
| 5105 | fi |
| 5106 | ;; |
| 5107 | *) |
| 5108 | lt_cv_prog_cc_pic_works=yes |
| 5109 | ;; |
| 5110 | esac |
| 5111 | |
| 5112 | else |
| 5113 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 5114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5115 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5116 | lt_cv_prog_cc_pic_works=no |
| 5117 | |
| 5118 | fi |
| 5119 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5120 | CFLAGS="$save_CFLAGS" |
| 5121 | |
| 5122 | fi |
| 5123 | |
| 5124 | |
| 5125 | if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
| 5126 | lt_cv_prog_cc_pic= |
| 5127 | lt_cv_prog_cc_can_build_shared=no |
| 5128 | else |
| 5129 | lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
| 5130 | fi |
| 5131 | |
| 5132 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 |
| 5133 | echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 |
| 5134 | fi |
| 5135 | |
| 5136 | # Check for any special shared library compilation flags. |
| 5137 | if test -n "$lt_cv_prog_cc_shlib"; then |
| 5138 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 |
| 5139 | echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} |
| 5140 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : |
| 5141 | else |
| 5142 | { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 5143 | echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 5144 | lt_cv_prog_cc_can_build_shared=no |
| 5145 | fi |
| 5146 | fi |
| 5147 | |
| 5148 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 |
| 5149 | echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 |
| 5150 | if test "${lt_cv_prog_cc_static_works+set}" = set; then |
| 5151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5152 | else |
| 5153 | lt_cv_prog_cc_static_works=no |
| 5154 | save_LDFLAGS="$LDFLAGS" |
| 5155 | LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" |
| 5156 | cat >conftest.$ac_ext <<_ACEOF |
| 5157 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 5158 | /* confdefs.h. */ |
| 5159 | _ACEOF |
| 5160 | cat confdefs.h >>conftest.$ac_ext |
| 5161 | cat >>conftest.$ac_ext <<_ACEOF |
| 5162 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5163 | |
| 5164 | int |
| 5165 | main () |
| 5166 | { |
| 5167 | |
| 5168 | ; |
| 5169 | return 0; |
| 5170 | } |
| 5171 | _ACEOF |
| 5172 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5174 | (eval $ac_link) 2>&5 |
| 5175 | ac_status=$? |
| 5176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5177 | (exit $ac_status); } && |
| 5178 | { ac_try='test -s conftest$ac_exeext' |
| 5179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5180 | (eval $ac_try) 2>&5 |
| 5181 | ac_status=$? |
| 5182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5183 | (exit $ac_status); }; }; then |
| 5184 | lt_cv_prog_cc_static_works=yes |
| 5185 | else |
| 5186 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 5187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5188 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5189 | fi |
| 5190 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5191 | LDFLAGS="$save_LDFLAGS" |
| 5192 | |
| 5193 | fi |
| 5194 | |
| 5195 | |
| 5196 | # Belt *and* braces to stop my trousers falling down: |
| 5197 | test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
| 5198 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 |
| 5199 | echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 |
| 5200 | |
| 5201 | pic_flag="$lt_cv_prog_cc_pic" |
| 5202 | special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
| 5203 | wl="$lt_cv_prog_cc_wl" |
| 5204 | link_static_flag="$lt_cv_prog_cc_static" |
| 5205 | no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
| 5206 | can_build_shared="$lt_cv_prog_cc_can_build_shared" |
| 5207 | |
| 5208 | |
| 5209 | # Check to see if options -o and -c are simultaneously supported by compiler |
| 5210 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 5211 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 5212 | if test "${lt_cv_compiler_c_o+set}" = set; then |
| 5213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5214 | else |
| 5215 | |
| 5216 | $rm -r conftest 2>/dev/null |
| 5217 | mkdir conftest |
| 5218 | cd conftest |
| 5219 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 5220 | mkdir out |
| 5221 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 5222 | # that will create temporary files in the current directory regardless of |
| 5223 | # the output directory. Thus, making CWD read-only will cause this test |
| 5224 | # to fail, enabling locking or at least warning the user not to do parallel |
| 5225 | # builds. |
| 5226 | chmod -w . |
| 5227 | save_CFLAGS="$CFLAGS" |
| 5228 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
| 5229 | compiler_c_o=no |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 5230 | if { (eval echo configure:5230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5231 | # The compiler can only warn and ignore the option if not recognized |
| 5232 | # So say no if there are warnings |
| 5233 | if test -s out/conftest.err; then |
| 5234 | lt_cv_compiler_c_o=no |
| 5235 | else |
| 5236 | lt_cv_compiler_c_o=yes |
| 5237 | fi |
| 5238 | else |
| 5239 | # Append any errors to the config.log. |
| 5240 | cat out/conftest.err 1>&5 |
| 5241 | lt_cv_compiler_c_o=no |
| 5242 | fi |
| 5243 | CFLAGS="$save_CFLAGS" |
| 5244 | chmod u+w . |
| 5245 | $rm conftest* out/* |
| 5246 | rmdir out |
| 5247 | cd .. |
| 5248 | rmdir conftest |
| 5249 | $rm -r conftest 2>/dev/null |
| 5250 | |
| 5251 | fi |
| 5252 | |
| 5253 | compiler_c_o=$lt_cv_compiler_c_o |
| 5254 | echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
| 5255 | echo "${ECHO_T}$compiler_c_o" >&6 |
| 5256 | |
| 5257 | if test x"$compiler_c_o" = x"yes"; then |
| 5258 | # Check to see if we can write to a .lo |
| 5259 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 |
| 5260 | echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 |
| 5261 | if test "${lt_cv_compiler_o_lo+set}" = set; then |
| 5262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5263 | else |
| 5264 | |
| 5265 | lt_cv_compiler_o_lo=no |
| 5266 | save_CFLAGS="$CFLAGS" |
| 5267 | CFLAGS="$CFLAGS -c -o conftest.lo" |
| 5268 | save_objext="$ac_objext" |
| 5269 | ac_objext=lo |
| 5270 | cat >conftest.$ac_ext <<_ACEOF |
| 5271 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 5272 | /* confdefs.h. */ |
| 5273 | _ACEOF |
| 5274 | cat confdefs.h >>conftest.$ac_ext |
| 5275 | cat >>conftest.$ac_ext <<_ACEOF |
| 5276 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5277 | |
| 5278 | int |
| 5279 | main () |
| 5280 | { |
| 5281 | int some_variable = 0; |
| 5282 | ; |
| 5283 | return 0; |
| 5284 | } |
| 5285 | _ACEOF |
| 5286 | rm -f conftest.$ac_objext |
| 5287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5288 | (eval $ac_compile) 2>&5 |
| 5289 | ac_status=$? |
| 5290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5291 | (exit $ac_status); } && |
| 5292 | { ac_try='test -s conftest.$ac_objext' |
| 5293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5294 | (eval $ac_try) 2>&5 |
| 5295 | ac_status=$? |
| 5296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5297 | (exit $ac_status); }; }; then |
| 5298 | # The compiler can only warn and ignore the option if not recognized |
| 5299 | # So say no if there are warnings |
| 5300 | if test -s conftest.err; then |
| 5301 | lt_cv_compiler_o_lo=no |
| 5302 | else |
| 5303 | lt_cv_compiler_o_lo=yes |
| 5304 | fi |
| 5305 | |
| 5306 | else |
| 5307 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 5308 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5309 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5310 | fi |
| 5311 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5312 | ac_objext="$save_objext" |
| 5313 | CFLAGS="$save_CFLAGS" |
| 5314 | |
| 5315 | fi |
| 5316 | |
| 5317 | compiler_o_lo=$lt_cv_compiler_o_lo |
| 5318 | echo "$as_me:$LINENO: result: $compiler_o_lo" >&5 |
| 5319 | echo "${ECHO_T}$compiler_o_lo" >&6 |
| 5320 | else |
| 5321 | compiler_o_lo=no |
| 5322 | fi |
| 5323 | |
| 5324 | # Check to see if we can do hard links to lock some files if needed |
| 5325 | hard_links="nottested" |
| 5326 | if test "$compiler_c_o" = no && test "$need_locks" != no; then |
| 5327 | # do not overwrite the value of need_locks provided by the user |
| 5328 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 5329 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 5330 | hard_links=yes |
| 5331 | $rm conftest* |
| 5332 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 5333 | touch conftest.a |
| 5334 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 5335 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 5336 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 5337 | echo "${ECHO_T}$hard_links" >&6 |
| 5338 | if test "$hard_links" = no; then |
| 5339 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 5340 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 5341 | need_locks=warn |
| 5342 | fi |
| 5343 | else |
| 5344 | need_locks=no |
| 5345 | fi |
| 5346 | |
| 5347 | if test "$GCC" = yes; then |
| 5348 | # Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
| 5349 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 5350 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 5351 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 5352 | save_CFLAGS="$CFLAGS" |
| 5353 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
| 5354 | compiler_rtti_exceptions=no |
| 5355 | cat >conftest.$ac_ext <<_ACEOF |
| 5356 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 5357 | /* confdefs.h. */ |
| 5358 | _ACEOF |
| 5359 | cat confdefs.h >>conftest.$ac_ext |
| 5360 | cat >>conftest.$ac_ext <<_ACEOF |
| 5361 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5362 | |
| 5363 | int |
| 5364 | main () |
| 5365 | { |
| 5366 | int some_variable = 0; |
| 5367 | ; |
| 5368 | return 0; |
| 5369 | } |
| 5370 | _ACEOF |
| 5371 | rm -f conftest.$ac_objext |
| 5372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5373 | (eval $ac_compile) 2>&5 |
| 5374 | ac_status=$? |
| 5375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5376 | (exit $ac_status); } && |
| 5377 | { ac_try='test -s conftest.$ac_objext' |
| 5378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5379 | (eval $ac_try) 2>&5 |
| 5380 | ac_status=$? |
| 5381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5382 | (exit $ac_status); }; }; then |
| 5383 | # The compiler can only warn and ignore the option if not recognized |
| 5384 | # So say no if there are warnings |
| 5385 | if test -s conftest.err; then |
| 5386 | compiler_rtti_exceptions=no |
| 5387 | else |
| 5388 | compiler_rtti_exceptions=yes |
| 5389 | fi |
| 5390 | |
| 5391 | else |
| 5392 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 5393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5394 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5395 | fi |
| 5396 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5397 | CFLAGS="$save_CFLAGS" |
| 5398 | echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 |
| 5399 | echo "${ECHO_T}$compiler_rtti_exceptions" >&6 |
| 5400 | |
| 5401 | if test "$compiler_rtti_exceptions" = "yes"; then |
| 5402 | no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
| 5403 | else |
| 5404 | no_builtin_flag=' -fno-builtin' |
| 5405 | fi |
| 5406 | fi |
| 5407 | |
| 5408 | # See if the linker supports building shared libraries. |
| 5409 | echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 |
| 5410 | echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 5411 | |
| 5412 | allow_undefined_flag= |
| 5413 | no_undefined_flag= |
| 5414 | need_lib_prefix=unknown |
| 5415 | need_version=unknown |
| 5416 | # when you set need_version to no, make sure it does not cause -set_version |
| 5417 | # flags to be left without arguments |
| 5418 | archive_cmds= |
| 5419 | archive_expsym_cmds= |
| 5420 | old_archive_from_new_cmds= |
| 5421 | old_archive_from_expsyms_cmds= |
| 5422 | export_dynamic_flag_spec= |
| 5423 | whole_archive_flag_spec= |
| 5424 | thread_safe_flag_spec= |
| 5425 | hardcode_into_libs=no |
| 5426 | hardcode_libdir_flag_spec= |
| 5427 | hardcode_libdir_separator= |
| 5428 | hardcode_direct=no |
| 5429 | hardcode_minus_L=no |
| 5430 | hardcode_shlibpath_var=unsupported |
| 5431 | runpath_var= |
| 5432 | link_all_deplibs=unknown |
| 5433 | always_export_symbols=no |
| 5434 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 5435 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 5436 | # included in the symbol list |
| 5437 | include_expsyms= |
| 5438 | # exclude_expsyms can be an egrep regular expression of symbols to exclude |
| 5439 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 5440 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 5441 | # as well as any symbol that contains `d'. |
| 5442 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 5443 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 5444 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 5445 | # the symbol is explicitly referenced. Since portable code cannot |
| 5446 | # rely on this symbol name, it's probably fine to never include it in |
| 5447 | # preloaded symbol tables. |
| 5448 | extract_expsyms_cmds= |
| 5449 | |
| 5450 | case $host_os in |
| 5451 | cygwin* | mingw* | pw32*) |
| 5452 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 5453 | # When not using gcc, we currently assume that we are using |
| 5454 | # Microsoft Visual C++. |
| 5455 | if test "$GCC" != yes; then |
| 5456 | with_gnu_ld=no |
| 5457 | fi |
| 5458 | ;; |
| 5459 | openbsd*) |
| 5460 | with_gnu_ld=no |
| 5461 | ;; |
| 5462 | esac |
| 5463 | |
| 5464 | ld_shlibs=yes |
| 5465 | if test "$with_gnu_ld" = yes; then |
| 5466 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 5467 | wlarc='${wl}' |
| 5468 | |
| 5469 | # See if GNU ld supports shared libraries. |
| 5470 | case $host_os in |
| 5471 | aix3* | aix4* | aix5*) |
| 5472 | # On AIX, the GNU linker is very broken |
| 5473 | # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. |
| 5474 | ld_shlibs=no |
| 5475 | cat <<EOF 1>&2 |
| 5476 | |
| 5477 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 5478 | *** to be unable to reliably create shared libraries on AIX. |
| 5479 | *** Therefore, libtool is disabling shared libraries support. If you |
| 5480 | *** really care for shared libraries, you may want to modify your PATH |
| 5481 | *** so that a non-GNU linker is found, and then restart. |
| 5482 | |
| 5483 | EOF |
| 5484 | ;; |
| 5485 | |
| 5486 | amigaos*) |
| 5487 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 5488 | hardcode_libdir_flag_spec='-L$libdir' |
| 5489 | hardcode_minus_L=yes |
| 5490 | |
| 5491 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 5492 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 5493 | # to version 4, is to share data among multiple programs linked |
| 5494 | # with the same dynamic library. Since this doesn't match the |
| 5495 | # behavior of shared libraries on other platforms, we can use |
| 5496 | # them. |
| 5497 | ld_shlibs=no |
| 5498 | ;; |
| 5499 | |
| 5500 | beos*) |
| 5501 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 5502 | allow_undefined_flag=unsupported |
| 5503 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 5504 | # support --undefined. This deserves some investigation. FIXME |
| 5505 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5506 | else |
| 5507 | ld_shlibs=no |
| 5508 | fi |
| 5509 | ;; |
| 5510 | |
| 5511 | cygwin* | mingw* | pw32*) |
| 5512 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 5513 | # no search path for DLLs. |
| 5514 | hardcode_libdir_flag_spec='-L$libdir' |
| 5515 | allow_undefined_flag=unsupported |
| 5516 | always_export_symbols=yes |
| 5517 | |
| 5518 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
| 5519 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
| 5520 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
| 5521 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
| 5522 | else $CC -o impgen impgen.c ; fi)~ |
| 5523 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
| 5524 | |
| 5525 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
| 5526 | |
| 5527 | # cygwin and mingw dlls have different entry points and sets of symbols |
| 5528 | # to exclude. |
| 5529 | # FIXME: what about values for MSVC? |
| 5530 | dll_entry=__cygwin_dll_entry@12 |
| 5531 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
| 5532 | case $host_os in |
| 5533 | mingw*) |
| 5534 | # mingw values |
| 5535 | dll_entry=_DllMainCRTStartup@12 |
| 5536 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
| 5537 | ;; |
| 5538 | esac |
| 5539 | |
| 5540 | # mingw and cygwin differ, and it's simplest to just exclude the union |
| 5541 | # of the two symbol sets. |
| 5542 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
| 5543 | |
| 5544 | # recent cygwin and mingw systems supply a stub DllMain which the user |
| 5545 | # can override, but on older systems we have to supply one (in ltdll.c) |
| 5546 | if test "x$lt_cv_need_dllmain" = "xyes"; then |
| 5547 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
| 5548 | ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ |
| 5549 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
| 5550 | else |
| 5551 | ltdll_obj= |
| 5552 | ltdll_cmds= |
| 5553 | fi |
| 5554 | |
| 5555 | # Extract the symbol export list from an `--export-all' def file, |
| 5556 | # then regenerate the def file from the symbol export list, so that |
| 5557 | # the compiled dll only exports the symbol export list. |
| 5558 | # Be careful not to strip the DATA tag left be newer dlltools. |
| 5559 | export_symbols_cmds="$ltdll_cmds"' |
| 5560 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
| 5561 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
| 5562 | |
| 5563 | # If the export-symbols file already is a .def file (1st line |
| 5564 | # is EXPORTS), use it as is. |
| 5565 | # If DATA tags from a recent dlltool are present, honour them! |
| 5566 | archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then |
| 5567 | cp $export_symbols $output_objdir/$soname-def; |
| 5568 | else |
| 5569 | echo EXPORTS > $output_objdir/$soname-def; |
| 5570 | _lt_hint=1; |
| 5571 | cat $export_symbols | while read symbol; do |
| 5572 | set dummy \$symbol; |
| 5573 | case \$# in |
| 5574 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
| 5575 | 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; |
| 5576 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
| 5577 | esac; |
| 5578 | _lt_hint=`expr 1 + \$_lt_hint`; |
| 5579 | done; |
| 5580 | fi~ |
| 5581 | '"$ltdll_cmds"' |
| 5582 | $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
| 5583 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ |
| 5584 | $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
| 5585 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ |
| 5586 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
| 5587 | ;; |
| 5588 | |
| 5589 | netbsd*) |
| 5590 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 5591 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 5592 | wlarc= |
| 5593 | else |
| 5594 | archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5595 | archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 5596 | fi |
| 5597 | ;; |
| 5598 | |
| 5599 | solaris* | sysv5*) |
| 5600 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
| 5601 | ld_shlibs=no |
| 5602 | cat <<EOF 1>&2 |
| 5603 | |
| 5604 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 5605 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 5606 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 5607 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 5608 | *** your PATH or compiler configuration so that the native linker is |
| 5609 | *** used, and then restart. |
| 5610 | |
| 5611 | EOF |
| 5612 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 5613 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5614 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 5615 | else |
| 5616 | ld_shlibs=no |
| 5617 | fi |
| 5618 | ;; |
| 5619 | |
| 5620 | sunos4*) |
| 5621 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5622 | wlarc= |
| 5623 | hardcode_direct=yes |
| 5624 | hardcode_shlibpath_var=no |
| 5625 | ;; |
| 5626 | |
| 5627 | *) |
| 5628 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 5629 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5630 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 5631 | else |
| 5632 | ld_shlibs=no |
| 5633 | fi |
| 5634 | ;; |
| 5635 | esac |
| 5636 | |
| 5637 | if test "$ld_shlibs" = yes; then |
| 5638 | runpath_var=LD_RUN_PATH |
| 5639 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 5640 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 5641 | case $host_os in |
| 5642 | cygwin* | mingw* | pw32*) |
| 5643 | # dlltool doesn't understand --whole-archive et. al. |
| 5644 | whole_archive_flag_spec= |
| 5645 | ;; |
| 5646 | *) |
| 5647 | # ancient GNU ld didn't support --whole-archive et. al. |
| 5648 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
| 5649 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 5650 | else |
| 5651 | whole_archive_flag_spec= |
| 5652 | fi |
| 5653 | ;; |
| 5654 | esac |
| 5655 | fi |
| 5656 | else |
| 5657 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 5658 | case $host_os in |
| 5659 | aix3*) |
| 5660 | allow_undefined_flag=unsupported |
| 5661 | always_export_symbols=yes |
| 5662 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
| 5663 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 5664 | # are no directories specified by -L. |
| 5665 | hardcode_minus_L=yes |
| 5666 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 5667 | # Neither direct hardcoding nor static linking is supported with a |
| 5668 | # broken collect2. |
| 5669 | hardcode_direct=unsupported |
| 5670 | fi |
| 5671 | ;; |
| 5672 | |
| 5673 | aix4* | aix5*) |
| 5674 | if test "$host_cpu" = ia64; then |
| 5675 | # On IA64, the linker does run time linking by default, so we don't |
| 5676 | # have to do anything special. |
| 5677 | aix_use_runtimelinking=no |
| 5678 | exp_sym_flag='-Bexport' |
| 5679 | no_entry_flag="" |
| 5680 | else |
| 5681 | aix_use_runtimelinking=no |
| 5682 | |
| 5683 | # Test if we are trying to use run time linking or normal |
| 5684 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 5685 | # need to do runtime linking. |
| 5686 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 5687 | for ld_flag in $LDFLAGS; do |
| 5688 | case $ld_flag in |
| 5689 | *-brtl*) |
| 5690 | aix_use_runtimelinking=yes |
| 5691 | break |
| 5692 | ;; |
| 5693 | esac |
| 5694 | done |
| 5695 | esac |
| 5696 | |
| 5697 | exp_sym_flag='-bexport' |
| 5698 | no_entry_flag='-bnoentry' |
| 5699 | fi |
| 5700 | |
| 5701 | # When large executables or shared objects are built, AIX ld can |
| 5702 | # have problems creating the table of contents. If linking a library |
| 5703 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 5704 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 5705 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 5706 | |
| 5707 | hardcode_direct=yes |
| 5708 | archive_cmds='' |
| 5709 | hardcode_libdir_separator=':' |
| 5710 | if test "$GCC" = yes; then |
| 5711 | case $host_os in aix4.[012]|aix4.[012].*) |
| 5712 | collect2name=`${CC} -print-prog-name=collect2` |
| 5713 | if test -f "$collect2name" && \ |
| 5714 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 5715 | then |
| 5716 | # We have reworked collect2 |
| 5717 | hardcode_direct=yes |
| 5718 | else |
| 5719 | # We have old collect2 |
| 5720 | hardcode_direct=unsupported |
| 5721 | # It fails to find uninstalled libraries when the uninstalled |
| 5722 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 5723 | # to unsupported forces relinking |
| 5724 | hardcode_minus_L=yes |
| 5725 | hardcode_libdir_flag_spec='-L$libdir' |
| 5726 | hardcode_libdir_separator= |
| 5727 | fi |
| 5728 | esac |
| 5729 | |
| 5730 | shared_flag='-shared' |
| 5731 | else |
| 5732 | # not using gcc |
| 5733 | if test "$host_cpu" = ia64; then |
| 5734 | shared_flag='${wl}-G' |
| 5735 | else |
| 5736 | if test "$aix_use_runtimelinking" = yes; then |
| 5737 | shared_flag='${wl}-G' |
| 5738 | else |
| 5739 | shared_flag='${wl}-bM:SRE' |
| 5740 | fi |
| 5741 | fi |
| 5742 | fi |
| 5743 | |
| 5744 | # It seems that -bexpall can do strange things, so it is better to |
| 5745 | # generate a list of symbols to export. |
| 5746 | always_export_symbols=yes |
| 5747 | if test "$aix_use_runtimelinking" = yes; then |
| 5748 | # Warning - without using the other runtime loading flags (-brtl), |
| 5749 | # -berok will link without error, but may produce a broken library. |
| 5750 | allow_undefined_flag='-berok' |
| 5751 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' |
| 5752 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 5753 | else |
| 5754 | if test "$host_cpu" = ia64; then |
| 5755 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 5756 | allow_undefined_flag="-z nodefs" |
| 5757 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 5758 | else |
| 5759 | hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' |
| 5760 | # Warning - without using the other run time loading flags, |
| 5761 | # -berok will link without error, but may produce a broken library. |
| 5762 | allow_undefined_flag='${wl}-berok' |
| 5763 | # This is a bit strange, but is similar to how AIX traditionally builds |
| 5764 | # it's shared libraries. |
| 5765 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' |
| 5766 | fi |
| 5767 | fi |
| 5768 | ;; |
| 5769 | |
| 5770 | amigaos*) |
| 5771 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 5772 | hardcode_libdir_flag_spec='-L$libdir' |
| 5773 | hardcode_minus_L=yes |
| 5774 | # see comment about different semantics on the GNU ld section |
| 5775 | ld_shlibs=no |
| 5776 | ;; |
| 5777 | |
| 5778 | cygwin* | mingw* | pw32*) |
| 5779 | # When not using gcc, we currently assume that we are using |
| 5780 | # Microsoft Visual C++. |
| 5781 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 5782 | # no search path for DLLs. |
| 5783 | hardcode_libdir_flag_spec=' ' |
| 5784 | allow_undefined_flag=unsupported |
| 5785 | # Tell ltmain to make .lib files, not .a files. |
| 5786 | libext=lib |
| 5787 | # FIXME: Setting linknames here is a bad hack. |
| 5788 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 5789 | # The linker will automatically build a .lib file if we build a DLL. |
| 5790 | old_archive_from_new_cmds='true' |
| 5791 | # FIXME: Should let the user specify the lib program. |
| 5792 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 5793 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 5794 | ;; |
| 5795 | |
| 5796 | darwin* | rhapsody*) |
| 5797 | case "$host_os" in |
| 5798 | rhapsody* | darwin1.[012]) |
| 5799 | allow_undefined_flag='-undefined suppress' |
| 5800 | ;; |
| 5801 | *) # Darwin 1.3 on |
| 5802 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 5803 | ;; |
| 5804 | esac |
| 5805 | # FIXME: Relying on posixy $() will cause problems for |
| 5806 | # cross-compilation, but unfortunately the echo tests do not |
| 5807 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles |
| 5808 | # `"' quotes if we put them in here... so don't! |
| 5809 | archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' |
| 5810 | # We need to add '_' to the symbols in $export_symbols first |
| 5811 | #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
| 5812 | hardcode_direct=yes |
| 5813 | hardcode_shlibpath_var=no |
| 5814 | whole_archive_flag_spec='-all_load $convenience' |
| 5815 | ;; |
| 5816 | |
| 5817 | freebsd1*) |
| 5818 | ld_shlibs=no |
| 5819 | ;; |
| 5820 | |
| 5821 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 5822 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 5823 | # does not break anything, and helps significantly (at the cost of a little |
| 5824 | # extra space). |
| 5825 | freebsd2.2*) |
| 5826 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 5827 | hardcode_libdir_flag_spec='-R$libdir' |
| 5828 | hardcode_direct=yes |
| 5829 | hardcode_shlibpath_var=no |
| 5830 | ;; |
| 5831 | |
| 5832 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 5833 | freebsd2*) |
| 5834 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5835 | hardcode_direct=yes |
| 5836 | hardcode_minus_L=yes |
| 5837 | hardcode_shlibpath_var=no |
| 5838 | ;; |
| 5839 | |
| 5840 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 5841 | freebsd*) |
| 5842 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 5843 | hardcode_libdir_flag_spec='-R$libdir' |
| 5844 | hardcode_direct=yes |
| 5845 | hardcode_shlibpath_var=no |
| 5846 | ;; |
| 5847 | |
| 5848 | hpux9* | hpux10* | hpux11*) |
| 5849 | case $host_os in |
| 5850 | hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; |
| 5851 | *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
| 5852 | esac |
| 5853 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 5854 | hardcode_libdir_separator=: |
| 5855 | hardcode_direct=yes |
| 5856 | hardcode_minus_L=yes # Not in the search PATH, but as the default |
| 5857 | # location of the library. |
| 5858 | export_dynamic_flag_spec='${wl}-E' |
| 5859 | ;; |
| 5860 | |
| 5861 | irix5* | irix6* | nonstopux*) |
| 5862 | if test "$GCC" = yes; then |
| 5863 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 5864 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5865 | else |
| 5866 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 5867 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 5868 | fi |
| 5869 | hardcode_libdir_separator=: |
| 5870 | link_all_deplibs=yes |
| 5871 | ;; |
| 5872 | |
| 5873 | netbsd*) |
| 5874 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 5875 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 5876 | else |
| 5877 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 5878 | fi |
| 5879 | hardcode_libdir_flag_spec='-R$libdir' |
| 5880 | hardcode_direct=yes |
| 5881 | hardcode_shlibpath_var=no |
| 5882 | ;; |
| 5883 | |
| 5884 | newsos6) |
| 5885 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5886 | hardcode_direct=yes |
| 5887 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5888 | hardcode_libdir_separator=: |
| 5889 | hardcode_shlibpath_var=no |
| 5890 | ;; |
| 5891 | |
| 5892 | openbsd*) |
| 5893 | hardcode_direct=yes |
| 5894 | hardcode_shlibpath_var=no |
| 5895 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 5896 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 5897 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 5898 | export_dynamic_flag_spec='${wl}-E' |
| 5899 | else |
| 5900 | case "$host_os" in |
| 5901 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 5902 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5903 | hardcode_libdir_flag_spec='-R$libdir' |
| 5904 | ;; |
| 5905 | *) |
| 5906 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 5907 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 5908 | ;; |
| 5909 | esac |
| 5910 | fi |
| 5911 | ;; |
| 5912 | |
| 5913 | os2*) |
| 5914 | hardcode_libdir_flag_spec='-L$libdir' |
| 5915 | hardcode_minus_L=yes |
| 5916 | allow_undefined_flag=unsupported |
| 5917 | archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
| 5918 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 5919 | ;; |
| 5920 | |
| 5921 | osf3*) |
| 5922 | if test "$GCC" = yes; then |
| 5923 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 5924 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 5925 | else |
| 5926 | allow_undefined_flag=' -expect_unresolved \*' |
| 5927 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 5928 | fi |
| 5929 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5930 | hardcode_libdir_separator=: |
| 5931 | ;; |
| 5932 | |
| 5933 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 5934 | if test "$GCC" = yes; then |
| 5935 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 5936 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 5937 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5938 | else |
| 5939 | allow_undefined_flag=' -expect_unresolved \*' |
| 5940 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 5941 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 5942 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
| 5943 | |
| 5944 | #Both c and cxx compiler support -rpath directly |
| 5945 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 5946 | fi |
| 5947 | hardcode_libdir_separator=: |
| 5948 | ;; |
| 5949 | |
| 5950 | sco3.2v5*) |
| 5951 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5952 | hardcode_shlibpath_var=no |
| 5953 | runpath_var=LD_RUN_PATH |
| 5954 | hardcode_runpath_var=yes |
| 5955 | export_dynamic_flag_spec='${wl}-Bexport' |
| 5956 | ;; |
| 5957 | |
| 5958 | solaris*) |
| 5959 | # gcc --version < 3.0 without binutils cannot create self contained |
| 5960 | # shared libraries reliably, requiring libgcc.a to resolve some of |
| 5961 | # the object symbols generated in some cases. Libraries that use |
| 5962 | # assert need libgcc.a to resolve __eprintf, for example. Linking |
| 5963 | # a copy of libgcc.a into every shared library to guarantee resolving |
| 5964 | # such symbols causes other problems: According to Tim Van Holder |
| 5965 | # <tim.van.holder@pandora.be>, C++ libraries end up with a separate |
| 5966 | # (to the application) exception stack for one thing. |
| 5967 | no_undefined_flag=' -z defs' |
| 5968 | if test "$GCC" = yes; then |
| 5969 | case `$CC --version 2>/dev/null` in |
| 5970 | [12].*) |
| 5971 | cat <<EOF 1>&2 |
| 5972 | |
| 5973 | *** Warning: Releases of GCC earlier than version 3.0 cannot reliably |
| 5974 | *** create self contained shared libraries on Solaris systems, without |
| 5975 | *** introducing a dependency on libgcc.a. Therefore, libtool is disabling |
| 5976 | *** -no-undefined support, which will at least allow you to build shared |
| 5977 | *** libraries. However, you may find that when you link such libraries |
| 5978 | *** into an application without using GCC, you have to manually add |
| 5979 | *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to |
| 5980 | *** upgrade to a newer version of GCC. Another option is to rebuild your |
| 5981 | *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. |
| 5982 | |
| 5983 | EOF |
| 5984 | no_undefined_flag= |
| 5985 | ;; |
| 5986 | esac |
| 5987 | fi |
| 5988 | # $CC -shared without GNU ld will not create a library from C++ |
| 5989 | # object files and a static libstdc++, better avoid it by now |
| 5990 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5991 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 5992 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 5993 | hardcode_libdir_flag_spec='-R$libdir' |
| 5994 | hardcode_shlibpath_var=no |
| 5995 | case $host_os in |
| 5996 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 5997 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 5998 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 5999 | esac |
| 6000 | link_all_deplibs=yes |
| 6001 | ;; |
| 6002 | |
| 6003 | sunos4*) |
| 6004 | if test "x$host_vendor" = xsequent; then |
| 6005 | # Use $CC to link under sequent, because it throws in some extra .o |
| 6006 | # files that make .init and .fini sections work. |
| 6007 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6008 | else |
| 6009 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 6010 | fi |
| 6011 | hardcode_libdir_flag_spec='-L$libdir' |
| 6012 | hardcode_direct=yes |
| 6013 | hardcode_minus_L=yes |
| 6014 | hardcode_shlibpath_var=no |
| 6015 | ;; |
| 6016 | |
| 6017 | sysv4) |
| 6018 | case $host_vendor in |
| 6019 | sni) |
| 6020 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6021 | hardcode_direct=yes # is this really true??? |
| 6022 | ;; |
| 6023 | siemens) |
| 6024 | ## LD is ld it makes a PLAMLIB |
| 6025 | ## CC just makes a GrossModule. |
| 6026 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 6027 | reload_cmds='$CC -r -o $output$reload_objs' |
| 6028 | hardcode_direct=no |
| 6029 | ;; |
| 6030 | motorola) |
| 6031 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6032 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 6033 | ;; |
| 6034 | esac |
| 6035 | runpath_var='LD_RUN_PATH' |
| 6036 | hardcode_shlibpath_var=no |
| 6037 | ;; |
| 6038 | |
| 6039 | sysv4.3*) |
| 6040 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6041 | hardcode_shlibpath_var=no |
| 6042 | export_dynamic_flag_spec='-Bexport' |
| 6043 | ;; |
| 6044 | |
| 6045 | sysv5*) |
| 6046 | no_undefined_flag=' -z text' |
| 6047 | # $CC -shared without GNU ld will not create a library from C++ |
| 6048 | # object files and a static libstdc++, better avoid it by now |
| 6049 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6050 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 6051 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 6052 | hardcode_libdir_flag_spec= |
| 6053 | hardcode_shlibpath_var=no |
| 6054 | runpath_var='LD_RUN_PATH' |
| 6055 | ;; |
| 6056 | |
| 6057 | uts4*) |
| 6058 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6059 | hardcode_libdir_flag_spec='-L$libdir' |
| 6060 | hardcode_shlibpath_var=no |
| 6061 | ;; |
| 6062 | |
| 6063 | dgux*) |
| 6064 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6065 | hardcode_libdir_flag_spec='-L$libdir' |
| 6066 | hardcode_shlibpath_var=no |
| 6067 | ;; |
| 6068 | |
| 6069 | sysv4*MP*) |
| 6070 | if test -d /usr/nec; then |
| 6071 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6072 | hardcode_shlibpath_var=no |
| 6073 | runpath_var=LD_RUN_PATH |
| 6074 | hardcode_runpath_var=yes |
| 6075 | ld_shlibs=yes |
| 6076 | fi |
| 6077 | ;; |
| 6078 | |
| 6079 | sysv4.2uw2*) |
| 6080 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 6081 | hardcode_direct=yes |
| 6082 | hardcode_minus_L=no |
| 6083 | hardcode_shlibpath_var=no |
| 6084 | hardcode_runpath_var=yes |
| 6085 | runpath_var=LD_RUN_PATH |
| 6086 | ;; |
| 6087 | |
| 6088 | sysv5uw7* | unixware7*) |
| 6089 | no_undefined_flag='${wl}-z ${wl}text' |
| 6090 | if test "$GCC" = yes; then |
| 6091 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6092 | else |
| 6093 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6094 | fi |
| 6095 | runpath_var='LD_RUN_PATH' |
| 6096 | hardcode_shlibpath_var=no |
| 6097 | ;; |
| 6098 | |
| 6099 | *) |
| 6100 | ld_shlibs=no |
| 6101 | ;; |
| 6102 | esac |
| 6103 | fi |
| 6104 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 6105 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 6106 | test "$ld_shlibs" = no && can_build_shared=no |
| 6107 | |
| 6108 | # Check hardcoding attributes. |
| 6109 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 6110 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 6111 | hardcode_action= |
| 6112 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 6113 | test -n "$runpath_var"; then |
| 6114 | |
| 6115 | # We can hardcode non-existant directories. |
| 6116 | if test "$hardcode_direct" != no && |
| 6117 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 6118 | # have to relink, otherwise we might link with an installed library |
| 6119 | # when we should be linking with a yet-to-be-installed one |
| 6120 | ## test "$hardcode_shlibpath_var" != no && |
| 6121 | test "$hardcode_minus_L" != no; then |
| 6122 | # Linking always hardcodes the temporary library directory. |
| 6123 | hardcode_action=relink |
| 6124 | else |
| 6125 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 6126 | hardcode_action=immediate |
| 6127 | fi |
| 6128 | else |
| 6129 | # We cannot hardcode anything, or else we can only hardcode existing |
| 6130 | # directories. |
| 6131 | hardcode_action=unsupported |
| 6132 | fi |
| 6133 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 6134 | echo "${ECHO_T}$hardcode_action" >&6 |
| 6135 | |
| 6136 | striplib= |
| 6137 | old_striplib= |
| 6138 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 6139 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 6140 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 6141 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 6142 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 6143 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6144 | echo "${ECHO_T}yes" >&6 |
| 6145 | else |
| 6146 | echo "$as_me:$LINENO: result: no" >&5 |
| 6147 | echo "${ECHO_T}no" >&6 |
| 6148 | fi |
| 6149 | |
| 6150 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 6151 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 6152 | |
| 6153 | # PORTME Fill in your ld.so characteristics |
| 6154 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 6155 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 6156 | library_names_spec= |
| 6157 | libname_spec='lib$name' |
| 6158 | soname_spec= |
| 6159 | postinstall_cmds= |
| 6160 | postuninstall_cmds= |
| 6161 | finish_cmds= |
| 6162 | finish_eval= |
| 6163 | shlibpath_var= |
| 6164 | shlibpath_overrides_runpath=unknown |
| 6165 | version_type=none |
| 6166 | dynamic_linker="$host_os ld.so" |
| 6167 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 6168 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 6169 | |
| 6170 | case $host_os in |
| 6171 | aix3*) |
| 6172 | version_type=linux |
| 6173 | library_names_spec='${libname}${release}.so$versuffix $libname.a' |
| 6174 | shlibpath_var=LIBPATH |
| 6175 | |
| 6176 | # AIX has no versioning support, so we append a major version to the name. |
| 6177 | soname_spec='${libname}${release}.so$major' |
| 6178 | ;; |
| 6179 | |
| 6180 | aix4* | aix5*) |
| 6181 | version_type=linux |
| 6182 | need_lib_prefix=no |
| 6183 | need_version=no |
| 6184 | hardcode_into_libs=yes |
| 6185 | if test "$host_cpu" = ia64; then |
| 6186 | # AIX 5 supports IA64 |
| 6187 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
| 6188 | shlibpath_var=LD_LIBRARY_PATH |
| 6189 | else |
| 6190 | # With GCC up to 2.95.x, collect2 would create an import file |
| 6191 | # for dependence libraries. The import file would start with |
| 6192 | # the line `#! .'. This would cause the generated library to |
| 6193 | # depend on `.', always an invalid library. This was fixed in |
| 6194 | # development snapshots of GCC prior to 3.0. |
| 6195 | case $host_os in |
| 6196 | aix4 | aix4.[01] | aix4.[01].*) |
| 6197 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 6198 | echo ' yes ' |
| 6199 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 6200 | : |
| 6201 | else |
| 6202 | can_build_shared=no |
| 6203 | fi |
| 6204 | ;; |
| 6205 | esac |
| 6206 | # AIX (on Power*) has no versioning support, so currently we can |
| 6207 | # not hardcode correct soname into executable. Probably we can |
| 6208 | # add versioning support to collect2, so additional links can |
| 6209 | # be useful in future. |
| 6210 | if test "$aix_use_runtimelinking" = yes; then |
| 6211 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 6212 | # instead of lib<name>.a to let people know that these are not |
| 6213 | # typical AIX shared libraries. |
| 6214 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6215 | else |
| 6216 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 6217 | # and later when we are not doing run time linking. |
| 6218 | library_names_spec='${libname}${release}.a $libname.a' |
| 6219 | soname_spec='${libname}${release}.so$major' |
| 6220 | fi |
| 6221 | shlibpath_var=LIBPATH |
| 6222 | fi |
| 6223 | hardcode_into_libs=yes |
| 6224 | ;; |
| 6225 | |
| 6226 | amigaos*) |
| 6227 | library_names_spec='$libname.ixlibrary $libname.a' |
| 6228 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 6229 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' |
| 6230 | ;; |
| 6231 | |
| 6232 | beos*) |
| 6233 | library_names_spec='${libname}.so' |
| 6234 | dynamic_linker="$host_os ld.so" |
| 6235 | shlibpath_var=LIBRARY_PATH |
| 6236 | ;; |
| 6237 | |
| 6238 | bsdi4*) |
| 6239 | version_type=linux |
| 6240 | need_version=no |
| 6241 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6242 | soname_spec='${libname}${release}.so$major' |
| 6243 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 6244 | shlibpath_var=LD_LIBRARY_PATH |
| 6245 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 6246 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 6247 | export_dynamic_flag_spec=-rdynamic |
| 6248 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 6249 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 6250 | # libtool to hard-code these into programs |
| 6251 | ;; |
| 6252 | |
| 6253 | cygwin* | mingw* | pw32*) |
| 6254 | version_type=windows |
| 6255 | need_version=no |
| 6256 | need_lib_prefix=no |
| 6257 | case $GCC,$host_os in |
| 6258 | yes,cygwin*) |
| 6259 | library_names_spec='$libname.dll.a' |
| 6260 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| 6261 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
| 6262 | dldir=$destdir/`dirname \$dlpath`~ |
| 6263 | test -d \$dldir || mkdir -p \$dldir~ |
| 6264 | $install_prog .libs/$dlname \$dldir/$dlname' |
| 6265 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 6266 | dlpath=$dir/\$dldll~ |
| 6267 | $rm \$dlpath' |
| 6268 | ;; |
| 6269 | yes,mingw*) |
| 6270 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| 6271 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` |
| 6272 | ;; |
| 6273 | yes,pw32*) |
| 6274 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' |
| 6275 | ;; |
| 6276 | *) |
| 6277 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
| 6278 | ;; |
| 6279 | esac |
| 6280 | dynamic_linker='Win32 ld.exe' |
| 6281 | # FIXME: first we should search . and the directory the executable is in |
| 6282 | shlibpath_var=PATH |
| 6283 | ;; |
| 6284 | |
| 6285 | darwin* | rhapsody*) |
| 6286 | dynamic_linker="$host_os dyld" |
| 6287 | version_type=darwin |
| 6288 | need_lib_prefix=no |
| 6289 | need_version=no |
| 6290 | # FIXME: Relying on posixy $() will cause problems for |
| 6291 | # cross-compilation, but unfortunately the echo tests do not |
| 6292 | # yet detect zsh echo's removal of \ escapes. |
| 6293 | library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' |
| 6294 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' |
| 6295 | shlibpath_overrides_runpath=yes |
| 6296 | shlibpath_var=DYLD_LIBRARY_PATH |
| 6297 | ;; |
| 6298 | |
| 6299 | freebsd1*) |
| 6300 | dynamic_linker=no |
| 6301 | ;; |
| 6302 | |
| 6303 | freebsd*-gnu*) |
| 6304 | version_type=linux |
| 6305 | need_lib_prefix=no |
| 6306 | need_version=no |
| 6307 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6308 | soname_spec='${libname}${release}.so$major' |
| 6309 | shlibpath_var=LD_LIBRARY_PATH |
| 6310 | shlibpath_overrides_runpath=no |
| 6311 | hardcode_into_libs=yes |
| 6312 | dynamic_linker='GNU/FreeBSD ld.so' |
| 6313 | ;; |
| 6314 | |
| 6315 | freebsd*) |
| 6316 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 6317 | version_type=freebsd-$objformat |
| 6318 | case $version_type in |
| 6319 | freebsd-elf*) |
| 6320 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| 6321 | need_version=no |
| 6322 | need_lib_prefix=no |
| 6323 | ;; |
| 6324 | freebsd-*) |
| 6325 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
| 6326 | need_version=yes |
| 6327 | ;; |
| 6328 | esac |
| 6329 | shlibpath_var=LD_LIBRARY_PATH |
| 6330 | case $host_os in |
| 6331 | freebsd2*) |
| 6332 | shlibpath_overrides_runpath=yes |
| 6333 | ;; |
| 6334 | *) |
| 6335 | shlibpath_overrides_runpath=no |
| 6336 | hardcode_into_libs=yes |
| 6337 | ;; |
| 6338 | esac |
| 6339 | ;; |
| 6340 | |
| 6341 | gnu*) |
| 6342 | version_type=linux |
| 6343 | need_lib_prefix=no |
| 6344 | need_version=no |
| 6345 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
| 6346 | soname_spec='${libname}${release}.so$major' |
| 6347 | shlibpath_var=LD_LIBRARY_PATH |
| 6348 | hardcode_into_libs=yes |
| 6349 | ;; |
| 6350 | |
| 6351 | hpux9* | hpux10* | hpux11*) |
| 6352 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 6353 | # link against other versions. |
| 6354 | dynamic_linker="$host_os dld.sl" |
| 6355 | version_type=sunos |
| 6356 | need_lib_prefix=no |
| 6357 | need_version=no |
| 6358 | shlibpath_var=SHLIB_PATH |
| 6359 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 6360 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
| 6361 | soname_spec='${libname}${release}.sl$major' |
| 6362 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 6363 | postinstall_cmds='chmod 555 $lib' |
| 6364 | ;; |
| 6365 | |
| 6366 | irix5* | irix6* | nonstopux*) |
| 6367 | case $host_os in |
| 6368 | nonstopux*) version_type=nonstopux ;; |
| 6369 | *) version_type=irix ;; |
| 6370 | esac |
| 6371 | need_lib_prefix=no |
| 6372 | need_version=no |
| 6373 | soname_spec='${libname}${release}.so$major' |
| 6374 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
| 6375 | case $host_os in |
| 6376 | irix5* | nonstopux*) |
| 6377 | libsuff= shlibsuff= |
| 6378 | ;; |
| 6379 | *) |
| 6380 | case $LD in # libtool.m4 will add one of these switches to LD |
| 6381 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
| 6382 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 6383 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 6384 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 6385 | esac |
| 6386 | ;; |
| 6387 | esac |
| 6388 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 6389 | shlibpath_overrides_runpath=no |
| 6390 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 6391 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 6392 | ;; |
| 6393 | |
| 6394 | # No shared lib support for Linux oldld, aout, or coff. |
| 6395 | linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) |
| 6396 | dynamic_linker=no |
| 6397 | ;; |
| 6398 | |
| 6399 | # This must be Linux ELF. |
| 6400 | linux-gnu*) |
| 6401 | version_type=linux |
| 6402 | need_lib_prefix=no |
| 6403 | need_version=no |
| 6404 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6405 | soname_spec='${libname}${release}.so$major' |
| 6406 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 6407 | shlibpath_var=LD_LIBRARY_PATH |
| 6408 | shlibpath_overrides_runpath=no |
| 6409 | # This implies no fast_install, which is unacceptable. |
| 6410 | # Some rework will be needed to allow for fast_install |
| 6411 | # before this can be enabled. |
| 6412 | hardcode_into_libs=yes |
| 6413 | |
| 6414 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 6415 | # powerpc, because MkLinux only supported shared libraries with the |
| 6416 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 6417 | # most powerpc-linux boxes support dynamic linking these days and |
| 6418 | # people can always --disable-shared, the test was removed, and we |
| 6419 | # assume the GNU/Linux dynamic linker is in use. |
| 6420 | dynamic_linker='GNU/Linux ld.so' |
| 6421 | ;; |
| 6422 | |
| 6423 | netbsd*) |
| 6424 | version_type=sunos |
| 6425 | need_lib_prefix=no |
| 6426 | need_version=no |
| 6427 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 6428 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 6429 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 6430 | dynamic_linker='NetBSD (a.out) ld.so' |
| 6431 | else |
| 6432 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
| 6433 | soname_spec='${libname}${release}.so$major' |
| 6434 | dynamic_linker='NetBSD ld.elf_so' |
| 6435 | fi |
| 6436 | shlibpath_var=LD_LIBRARY_PATH |
| 6437 | shlibpath_overrides_runpath=yes |
| 6438 | hardcode_into_libs=yes |
| 6439 | ;; |
| 6440 | |
| 6441 | newsos6) |
| 6442 | version_type=linux |
| 6443 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6444 | shlibpath_var=LD_LIBRARY_PATH |
| 6445 | shlibpath_overrides_runpath=yes |
| 6446 | ;; |
| 6447 | |
| 6448 | openbsd*) |
| 6449 | version_type=sunos |
| 6450 | need_lib_prefix=no |
| 6451 | need_version=no |
| 6452 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 6453 | case "$host_os" in |
| 6454 | openbsd2.[89] | openbsd2.[89].*) |
| 6455 | shlibpath_overrides_runpath=no |
| 6456 | ;; |
| 6457 | *) |
| 6458 | shlibpath_overrides_runpath=yes |
| 6459 | ;; |
| 6460 | esac |
| 6461 | else |
| 6462 | shlibpath_overrides_runpath=yes |
| 6463 | fi |
| 6464 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 6465 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 6466 | shlibpath_var=LD_LIBRARY_PATH |
| 6467 | ;; |
| 6468 | |
| 6469 | os2*) |
| 6470 | libname_spec='$name' |
| 6471 | need_lib_prefix=no |
| 6472 | library_names_spec='$libname.dll $libname.a' |
| 6473 | dynamic_linker='OS/2 ld.exe' |
| 6474 | shlibpath_var=LIBPATH |
| 6475 | ;; |
| 6476 | |
| 6477 | osf3* | osf4* | osf5*) |
| 6478 | version_type=osf |
| 6479 | need_version=no |
| 6480 | need_lib_prefix=no |
| 6481 | soname_spec='${libname}${release}.so$major' |
| 6482 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6483 | shlibpath_var=LD_LIBRARY_PATH |
| 6484 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 6485 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 6486 | hardcode_into_libs=yes |
| 6487 | ;; |
| 6488 | |
| 6489 | sco3.2v5*) |
| 6490 | version_type=osf |
| 6491 | soname_spec='${libname}${release}.so$major' |
| 6492 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6493 | shlibpath_var=LD_LIBRARY_PATH |
| 6494 | ;; |
| 6495 | |
| 6496 | solaris*) |
| 6497 | version_type=linux |
| 6498 | need_lib_prefix=no |
| 6499 | need_version=no |
| 6500 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6501 | soname_spec='${libname}${release}.so$major' |
| 6502 | shlibpath_var=LD_LIBRARY_PATH |
| 6503 | shlibpath_overrides_runpath=yes |
| 6504 | hardcode_into_libs=yes |
| 6505 | # ldd complains unless libraries are executable |
| 6506 | postinstall_cmds='chmod +x $lib' |
| 6507 | ;; |
| 6508 | |
| 6509 | sunos4*) |
| 6510 | version_type=sunos |
| 6511 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 6512 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 6513 | shlibpath_var=LD_LIBRARY_PATH |
| 6514 | shlibpath_overrides_runpath=yes |
| 6515 | if test "$with_gnu_ld" = yes; then |
| 6516 | need_lib_prefix=no |
| 6517 | fi |
| 6518 | need_version=yes |
| 6519 | ;; |
| 6520 | |
| 6521 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 6522 | version_type=linux |
| 6523 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6524 | soname_spec='${libname}${release}.so$major' |
| 6525 | shlibpath_var=LD_LIBRARY_PATH |
| 6526 | case $host_vendor in |
| 6527 | sni) |
| 6528 | shlibpath_overrides_runpath=no |
| 6529 | need_lib_prefix=no |
| 6530 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 6531 | runpath_var=LD_RUN_PATH |
| 6532 | ;; |
| 6533 | siemens) |
| 6534 | need_lib_prefix=no |
| 6535 | ;; |
| 6536 | motorola) |
| 6537 | need_lib_prefix=no |
| 6538 | need_version=no |
| 6539 | shlibpath_overrides_runpath=no |
| 6540 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 6541 | ;; |
| 6542 | esac |
| 6543 | ;; |
| 6544 | |
| 6545 | uts4*) |
| 6546 | version_type=linux |
| 6547 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6548 | soname_spec='${libname}${release}.so$major' |
| 6549 | shlibpath_var=LD_LIBRARY_PATH |
| 6550 | ;; |
| 6551 | |
| 6552 | dgux*) |
| 6553 | version_type=linux |
| 6554 | need_lib_prefix=no |
| 6555 | need_version=no |
| 6556 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6557 | soname_spec='${libname}${release}.so$major' |
| 6558 | shlibpath_var=LD_LIBRARY_PATH |
| 6559 | ;; |
| 6560 | |
| 6561 | sysv4*MP*) |
| 6562 | if test -d /usr/nec ;then |
| 6563 | version_type=linux |
| 6564 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
| 6565 | soname_spec='$libname.so.$major' |
| 6566 | shlibpath_var=LD_LIBRARY_PATH |
| 6567 | fi |
| 6568 | ;; |
| 6569 | |
| 6570 | *) |
| 6571 | dynamic_linker=no |
| 6572 | ;; |
| 6573 | esac |
| 6574 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 6575 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 6576 | test "$dynamic_linker" = no && can_build_shared=no |
| 6577 | |
| 6578 | # Report the final consequences. |
| 6579 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 6580 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 6581 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 6582 | echo "${ECHO_T}$can_build_shared" >&6 |
| 6583 | |
| 6584 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 6585 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 6586 | test "$can_build_shared" = "no" && enable_shared=no |
| 6587 | |
| 6588 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 6589 | # are all built from PIC. |
| 6590 | case "$host_os" in |
| 6591 | aix3*) |
| 6592 | test "$enable_shared" = yes && enable_static=no |
| 6593 | if test -n "$RANLIB"; then |
| 6594 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 6595 | postinstall_cmds='$RANLIB $lib' |
| 6596 | fi |
| 6597 | ;; |
| 6598 | |
| 6599 | aix4*) |
| 6600 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 6601 | test "$enable_shared" = yes && enable_static=no |
| 6602 | fi |
| 6603 | ;; |
| 6604 | esac |
| 6605 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 6606 | echo "${ECHO_T}$enable_shared" >&6 |
| 6607 | |
| 6608 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 6609 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 6610 | # Make sure either enable_shared or enable_static is yes. |
| 6611 | test "$enable_shared" = yes || enable_static=yes |
| 6612 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 6613 | echo "${ECHO_T}$enable_static" >&6 |
| 6614 | |
| 6615 | if test "$hardcode_action" = relink; then |
| 6616 | # Fast installation is not supported |
| 6617 | enable_fast_install=no |
| 6618 | elif test "$shlibpath_overrides_runpath" = yes || |
| 6619 | test "$enable_shared" = no; then |
| 6620 | # Fast installation is not necessary |
| 6621 | enable_fast_install=needless |
| 6622 | fi |
| 6623 | |
| 6624 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 6625 | if test "$GCC" = yes; then |
| 6626 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 6627 | fi |
| 6628 | |
| 6629 | if test "x$enable_dlopen" != xyes; then |
| 6630 | enable_dlopen=unknown |
| 6631 | enable_dlopen_self=unknown |
| 6632 | enable_dlopen_self_static=unknown |
| 6633 | else |
| 6634 | lt_cv_dlopen=no |
| 6635 | lt_cv_dlopen_libs= |
| 6636 | |
| 6637 | case $host_os in |
| 6638 | beos*) |
| 6639 | lt_cv_dlopen="load_add_on" |
| 6640 | lt_cv_dlopen_libs= |
| 6641 | lt_cv_dlopen_self=yes |
| 6642 | ;; |
| 6643 | |
| 6644 | cygwin* | mingw* | pw32*) |
| 6645 | lt_cv_dlopen="LoadLibrary" |
| 6646 | lt_cv_dlopen_libs= |
| 6647 | ;; |
| 6648 | |
| 6649 | *) |
| 6650 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 6651 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 6652 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 6653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6654 | else |
| 6655 | cat >conftest.$ac_ext <<_ACEOF |
| 6656 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 6657 | /* confdefs.h. */ |
| 6658 | _ACEOF |
| 6659 | cat confdefs.h >>conftest.$ac_ext |
| 6660 | cat >>conftest.$ac_ext <<_ACEOF |
| 6661 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6662 | /* System header to define __stub macros and hopefully few prototypes, |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 6663 | which can conflict with char shl_load (); below. |
| 6664 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6665 | <limits.h> exists even on freestanding compilers. */ |
| 6666 | #ifdef __STDC__ |
| 6667 | # include <limits.h> |
| 6668 | #else |
| 6669 | # include <assert.h> |
| 6670 | #endif |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6671 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6672 | #ifdef __cplusplus |
| 6673 | extern "C" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 6674 | { |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6675 | #endif |
| 6676 | /* We use char because int might match the return type of a gcc2 |
| 6677 | builtin and then its argument prototype would still apply. */ |
| 6678 | char shl_load (); |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6679 | /* The GNU C library defines this for functions which it implements |
| 6680 | to always fail with ENOSYS. Some functions are actually named |
| 6681 | something starting with __ and the normal name is an alias. */ |
| 6682 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 6683 | choke me |
| 6684 | #else |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 6685 | char (*f) () = shl_load; |
| 6686 | #endif |
| 6687 | #ifdef __cplusplus |
| 6688 | } |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6689 | #endif |
| 6690 | |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 6691 | int |
| 6692 | main () |
| 6693 | { |
| 6694 | return f != shl_load; |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6695 | ; |
| 6696 | return 0; |
| 6697 | } |
| 6698 | _ACEOF |
| 6699 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6700 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6701 | (eval $ac_link) 2>&5 |
| 6702 | ac_status=$? |
| 6703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6704 | (exit $ac_status); } && |
| 6705 | { ac_try='test -s conftest$ac_exeext' |
| 6706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6707 | (eval $ac_try) 2>&5 |
| 6708 | ac_status=$? |
| 6709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6710 | (exit $ac_status); }; }; then |
| 6711 | ac_cv_func_shl_load=yes |
| 6712 | else |
| 6713 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 6714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6715 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6716 | ac_cv_func_shl_load=no |
| 6717 | fi |
| 6718 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6719 | fi |
| 6720 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 6721 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 6722 | if test $ac_cv_func_shl_load = yes; then |
| 6723 | lt_cv_dlopen="shl_load" |
| 6724 | else |
| 6725 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 6726 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 6727 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 6728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6729 | else |
| 6730 | ac_check_lib_save_LIBS=$LIBS |
| 6731 | LIBS="-ldld $LIBS" |
| 6732 | cat >conftest.$ac_ext <<_ACEOF |
| 6733 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 6734 | /* confdefs.h. */ |
| 6735 | _ACEOF |
| 6736 | cat confdefs.h >>conftest.$ac_ext |
| 6737 | cat >>conftest.$ac_ext <<_ACEOF |
| 6738 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6739 | |
| 6740 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6741 | #ifdef __cplusplus |
| 6742 | extern "C" |
| 6743 | #endif |
| 6744 | /* We use char because int might match the return type of a gcc2 |
| 6745 | builtin and then its argument prototype would still apply. */ |
| 6746 | char shl_load (); |
| 6747 | int |
| 6748 | main () |
| 6749 | { |
| 6750 | shl_load (); |
| 6751 | ; |
| 6752 | return 0; |
| 6753 | } |
| 6754 | _ACEOF |
| 6755 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6756 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6757 | (eval $ac_link) 2>&5 |
| 6758 | ac_status=$? |
| 6759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6760 | (exit $ac_status); } && |
| 6761 | { ac_try='test -s conftest$ac_exeext' |
| 6762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6763 | (eval $ac_try) 2>&5 |
| 6764 | ac_status=$? |
| 6765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6766 | (exit $ac_status); }; }; then |
| 6767 | ac_cv_lib_dld_shl_load=yes |
| 6768 | else |
| 6769 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 6770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6771 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6772 | ac_cv_lib_dld_shl_load=no |
| 6773 | fi |
| 6774 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6775 | LIBS=$ac_check_lib_save_LIBS |
| 6776 | fi |
| 6777 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 6778 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 6779 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 6780 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 6781 | else |
| 6782 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 6783 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 6784 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 6785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6786 | else |
| 6787 | cat >conftest.$ac_ext <<_ACEOF |
| 6788 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 6789 | /* confdefs.h. */ |
| 6790 | _ACEOF |
| 6791 | cat confdefs.h >>conftest.$ac_ext |
| 6792 | cat >>conftest.$ac_ext <<_ACEOF |
| 6793 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6794 | /* System header to define __stub macros and hopefully few prototypes, |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 6795 | which can conflict with char dlopen (); below. |
| 6796 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6797 | <limits.h> exists even on freestanding compilers. */ |
| 6798 | #ifdef __STDC__ |
| 6799 | # include <limits.h> |
| 6800 | #else |
| 6801 | # include <assert.h> |
| 6802 | #endif |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6803 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6804 | #ifdef __cplusplus |
| 6805 | extern "C" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 6806 | { |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6807 | #endif |
| 6808 | /* We use char because int might match the return type of a gcc2 |
| 6809 | builtin and then its argument prototype would still apply. */ |
| 6810 | char dlopen (); |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6811 | /* The GNU C library defines this for functions which it implements |
| 6812 | to always fail with ENOSYS. Some functions are actually named |
| 6813 | something starting with __ and the normal name is an alias. */ |
| 6814 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 6815 | choke me |
| 6816 | #else |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 6817 | char (*f) () = dlopen; |
| 6818 | #endif |
| 6819 | #ifdef __cplusplus |
| 6820 | } |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6821 | #endif |
| 6822 | |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 6823 | int |
| 6824 | main () |
| 6825 | { |
| 6826 | return f != dlopen; |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6827 | ; |
| 6828 | return 0; |
| 6829 | } |
| 6830 | _ACEOF |
| 6831 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6833 | (eval $ac_link) 2>&5 |
| 6834 | ac_status=$? |
| 6835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6836 | (exit $ac_status); } && |
| 6837 | { ac_try='test -s conftest$ac_exeext' |
| 6838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6839 | (eval $ac_try) 2>&5 |
| 6840 | ac_status=$? |
| 6841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6842 | (exit $ac_status); }; }; then |
| 6843 | ac_cv_func_dlopen=yes |
| 6844 | else |
| 6845 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 6846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6847 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6848 | ac_cv_func_dlopen=no |
| 6849 | fi |
| 6850 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6851 | fi |
| 6852 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 6853 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 6854 | if test $ac_cv_func_dlopen = yes; then |
| 6855 | lt_cv_dlopen="dlopen" |
| 6856 | else |
| 6857 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 6858 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 6859 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 6860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6861 | else |
| 6862 | ac_check_lib_save_LIBS=$LIBS |
| 6863 | LIBS="-ldl $LIBS" |
| 6864 | cat >conftest.$ac_ext <<_ACEOF |
| 6865 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 6866 | /* confdefs.h. */ |
| 6867 | _ACEOF |
| 6868 | cat confdefs.h >>conftest.$ac_ext |
| 6869 | cat >>conftest.$ac_ext <<_ACEOF |
| 6870 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6871 | |
| 6872 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6873 | #ifdef __cplusplus |
| 6874 | extern "C" |
| 6875 | #endif |
| 6876 | /* We use char because int might match the return type of a gcc2 |
| 6877 | builtin and then its argument prototype would still apply. */ |
| 6878 | char dlopen (); |
| 6879 | int |
| 6880 | main () |
| 6881 | { |
| 6882 | dlopen (); |
| 6883 | ; |
| 6884 | return 0; |
| 6885 | } |
| 6886 | _ACEOF |
| 6887 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6888 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6889 | (eval $ac_link) 2>&5 |
| 6890 | ac_status=$? |
| 6891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6892 | (exit $ac_status); } && |
| 6893 | { ac_try='test -s conftest$ac_exeext' |
| 6894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6895 | (eval $ac_try) 2>&5 |
| 6896 | ac_status=$? |
| 6897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6898 | (exit $ac_status); }; }; then |
| 6899 | ac_cv_lib_dl_dlopen=yes |
| 6900 | else |
| 6901 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 6902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6903 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6904 | ac_cv_lib_dl_dlopen=no |
| 6905 | fi |
| 6906 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6907 | LIBS=$ac_check_lib_save_LIBS |
| 6908 | fi |
| 6909 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 6910 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 6911 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 6912 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 6913 | else |
| 6914 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 6915 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 6916 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 6917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6918 | else |
| 6919 | ac_check_lib_save_LIBS=$LIBS |
| 6920 | LIBS="-lsvld $LIBS" |
| 6921 | cat >conftest.$ac_ext <<_ACEOF |
| 6922 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 6923 | /* confdefs.h. */ |
| 6924 | _ACEOF |
| 6925 | cat confdefs.h >>conftest.$ac_ext |
| 6926 | cat >>conftest.$ac_ext <<_ACEOF |
| 6927 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6928 | |
| 6929 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6930 | #ifdef __cplusplus |
| 6931 | extern "C" |
| 6932 | #endif |
| 6933 | /* We use char because int might match the return type of a gcc2 |
| 6934 | builtin and then its argument prototype would still apply. */ |
| 6935 | char dlopen (); |
| 6936 | int |
| 6937 | main () |
| 6938 | { |
| 6939 | dlopen (); |
| 6940 | ; |
| 6941 | return 0; |
| 6942 | } |
| 6943 | _ACEOF |
| 6944 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6946 | (eval $ac_link) 2>&5 |
| 6947 | ac_status=$? |
| 6948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6949 | (exit $ac_status); } && |
| 6950 | { ac_try='test -s conftest$ac_exeext' |
| 6951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6952 | (eval $ac_try) 2>&5 |
| 6953 | ac_status=$? |
| 6954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6955 | (exit $ac_status); }; }; then |
| 6956 | ac_cv_lib_svld_dlopen=yes |
| 6957 | else |
| 6958 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 6959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6960 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6961 | ac_cv_lib_svld_dlopen=no |
| 6962 | fi |
| 6963 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6964 | LIBS=$ac_check_lib_save_LIBS |
| 6965 | fi |
| 6966 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 6967 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 6968 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 6969 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 6970 | else |
| 6971 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 6972 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 6973 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 6974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6975 | else |
| 6976 | ac_check_lib_save_LIBS=$LIBS |
| 6977 | LIBS="-ldld $LIBS" |
| 6978 | cat >conftest.$ac_ext <<_ACEOF |
| 6979 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 6980 | /* confdefs.h. */ |
| 6981 | _ACEOF |
| 6982 | cat confdefs.h >>conftest.$ac_ext |
| 6983 | cat >>conftest.$ac_ext <<_ACEOF |
| 6984 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6985 | |
| 6986 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6987 | #ifdef __cplusplus |
| 6988 | extern "C" |
| 6989 | #endif |
| 6990 | /* We use char because int might match the return type of a gcc2 |
| 6991 | builtin and then its argument prototype would still apply. */ |
| 6992 | char dld_link (); |
| 6993 | int |
| 6994 | main () |
| 6995 | { |
| 6996 | dld_link (); |
| 6997 | ; |
| 6998 | return 0; |
| 6999 | } |
| 7000 | _ACEOF |
| 7001 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7003 | (eval $ac_link) 2>&5 |
| 7004 | ac_status=$? |
| 7005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7006 | (exit $ac_status); } && |
| 7007 | { ac_try='test -s conftest$ac_exeext' |
| 7008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7009 | (eval $ac_try) 2>&5 |
| 7010 | ac_status=$? |
| 7011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7012 | (exit $ac_status); }; }; then |
| 7013 | ac_cv_lib_dld_dld_link=yes |
| 7014 | else |
| 7015 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 7016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7017 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7018 | ac_cv_lib_dld_dld_link=no |
| 7019 | fi |
| 7020 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7021 | LIBS=$ac_check_lib_save_LIBS |
| 7022 | fi |
| 7023 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 7024 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 7025 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 7026 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 7027 | fi |
| 7028 | |
| 7029 | |
| 7030 | fi |
| 7031 | |
| 7032 | |
| 7033 | fi |
| 7034 | |
| 7035 | |
| 7036 | fi |
| 7037 | |
| 7038 | |
| 7039 | fi |
| 7040 | |
| 7041 | |
| 7042 | fi |
| 7043 | |
| 7044 | ;; |
| 7045 | esac |
| 7046 | |
| 7047 | if test "x$lt_cv_dlopen" != xno; then |
| 7048 | enable_dlopen=yes |
| 7049 | else |
| 7050 | enable_dlopen=no |
| 7051 | fi |
| 7052 | |
| 7053 | case $lt_cv_dlopen in |
| 7054 | dlopen) |
| 7055 | save_CPPFLAGS="$CPPFLAGS" |
| 7056 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 7057 | |
| 7058 | save_LDFLAGS="$LDFLAGS" |
| 7059 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 7060 | |
| 7061 | save_LIBS="$LIBS" |
| 7062 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 7063 | |
| 7064 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 7065 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 7066 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 7067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7068 | else |
| 7069 | if test "$cross_compiling" = yes; then : |
| 7070 | lt_cv_dlopen_self=cross |
| 7071 | else |
| 7072 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 7073 | lt_status=$lt_dlunknown |
| 7074 | cat > conftest.$ac_ext <<EOF |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 7075 | #line 7075 "configure" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7076 | #include "confdefs.h" |
| 7077 | |
| 7078 | #if HAVE_DLFCN_H |
| 7079 | #include <dlfcn.h> |
| 7080 | #endif |
| 7081 | |
| 7082 | #include <stdio.h> |
| 7083 | |
| 7084 | #ifdef RTLD_GLOBAL |
| 7085 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 7086 | #else |
| 7087 | # ifdef DL_GLOBAL |
| 7088 | # define LT_DLGLOBAL DL_GLOBAL |
| 7089 | # else |
| 7090 | # define LT_DLGLOBAL 0 |
| 7091 | # endif |
| 7092 | #endif |
| 7093 | |
| 7094 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 7095 | find out it does not work in some platform. */ |
| 7096 | #ifndef LT_DLLAZY_OR_NOW |
| 7097 | # ifdef RTLD_LAZY |
| 7098 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 7099 | # else |
| 7100 | # ifdef DL_LAZY |
| 7101 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 7102 | # else |
| 7103 | # ifdef RTLD_NOW |
| 7104 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 7105 | # else |
| 7106 | # ifdef DL_NOW |
| 7107 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 7108 | # else |
| 7109 | # define LT_DLLAZY_OR_NOW 0 |
| 7110 | # endif |
| 7111 | # endif |
| 7112 | # endif |
| 7113 | # endif |
| 7114 | #endif |
| 7115 | |
| 7116 | #ifdef __cplusplus |
| 7117 | extern "C" void exit (int); |
| 7118 | #endif |
| 7119 | |
| 7120 | void fnord() { int i=42;} |
| 7121 | int main () |
| 7122 | { |
| 7123 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 7124 | int status = $lt_dlunknown; |
| 7125 | |
| 7126 | if (self) |
| 7127 | { |
| 7128 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 7129 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 7130 | /* dlclose (self); */ |
| 7131 | } |
| 7132 | |
| 7133 | exit (status); |
| 7134 | } |
| 7135 | EOF |
| 7136 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7137 | (eval $ac_link) 2>&5 |
| 7138 | ac_status=$? |
| 7139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7140 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 7141 | (./conftest; exit; ) 2>/dev/null |
| 7142 | lt_status=$? |
| 7143 | case x$lt_status in |
| 7144 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 7145 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 7146 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 7147 | esac |
| 7148 | else : |
| 7149 | # compilation failed |
| 7150 | lt_cv_dlopen_self=no |
| 7151 | fi |
| 7152 | fi |
| 7153 | rm -fr conftest* |
| 7154 | |
| 7155 | |
| 7156 | fi |
| 7157 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 7158 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 7159 | |
| 7160 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 7161 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 7162 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 7163 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 7164 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 7165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7166 | else |
| 7167 | if test "$cross_compiling" = yes; then : |
| 7168 | lt_cv_dlopen_self_static=cross |
| 7169 | else |
| 7170 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 7171 | lt_status=$lt_dlunknown |
| 7172 | cat > conftest.$ac_ext <<EOF |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 7173 | #line 7173 "configure" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7174 | #include "confdefs.h" |
| 7175 | |
| 7176 | #if HAVE_DLFCN_H |
| 7177 | #include <dlfcn.h> |
| 7178 | #endif |
| 7179 | |
| 7180 | #include <stdio.h> |
| 7181 | |
| 7182 | #ifdef RTLD_GLOBAL |
| 7183 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 7184 | #else |
| 7185 | # ifdef DL_GLOBAL |
| 7186 | # define LT_DLGLOBAL DL_GLOBAL |
| 7187 | # else |
| 7188 | # define LT_DLGLOBAL 0 |
| 7189 | # endif |
| 7190 | #endif |
| 7191 | |
| 7192 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 7193 | find out it does not work in some platform. */ |
| 7194 | #ifndef LT_DLLAZY_OR_NOW |
| 7195 | # ifdef RTLD_LAZY |
| 7196 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 7197 | # else |
| 7198 | # ifdef DL_LAZY |
| 7199 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 7200 | # else |
| 7201 | # ifdef RTLD_NOW |
| 7202 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 7203 | # else |
| 7204 | # ifdef DL_NOW |
| 7205 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 7206 | # else |
| 7207 | # define LT_DLLAZY_OR_NOW 0 |
| 7208 | # endif |
| 7209 | # endif |
| 7210 | # endif |
| 7211 | # endif |
| 7212 | #endif |
| 7213 | |
| 7214 | #ifdef __cplusplus |
| 7215 | extern "C" void exit (int); |
| 7216 | #endif |
| 7217 | |
| 7218 | void fnord() { int i=42;} |
| 7219 | int main () |
| 7220 | { |
| 7221 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 7222 | int status = $lt_dlunknown; |
| 7223 | |
| 7224 | if (self) |
| 7225 | { |
| 7226 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 7227 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 7228 | /* dlclose (self); */ |
| 7229 | } |
| 7230 | |
| 7231 | exit (status); |
| 7232 | } |
| 7233 | EOF |
| 7234 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7235 | (eval $ac_link) 2>&5 |
| 7236 | ac_status=$? |
| 7237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7238 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 7239 | (./conftest; exit; ) 2>/dev/null |
| 7240 | lt_status=$? |
| 7241 | case x$lt_status in |
| 7242 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 7243 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 7244 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 7245 | esac |
| 7246 | else : |
| 7247 | # compilation failed |
| 7248 | lt_cv_dlopen_self_static=no |
| 7249 | fi |
| 7250 | fi |
| 7251 | rm -fr conftest* |
| 7252 | |
| 7253 | |
| 7254 | fi |
| 7255 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 7256 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 7257 | fi |
| 7258 | |
| 7259 | CPPFLAGS="$save_CPPFLAGS" |
| 7260 | LDFLAGS="$save_LDFLAGS" |
| 7261 | LIBS="$save_LIBS" |
| 7262 | ;; |
| 7263 | esac |
| 7264 | |
| 7265 | case $lt_cv_dlopen_self in |
| 7266 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 7267 | *) enable_dlopen_self=unknown ;; |
| 7268 | esac |
| 7269 | |
| 7270 | case $lt_cv_dlopen_self_static in |
| 7271 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 7272 | *) enable_dlopen_self_static=unknown ;; |
| 7273 | esac |
| 7274 | fi |
| 7275 | |
| 7276 | |
| 7277 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 7278 | case $archive_cmds in |
| 7279 | *'~'*) |
| 7280 | # FIXME: we may have to deal with multi-command sequences. |
| 7281 | ;; |
| 7282 | '$CC '*) |
| 7283 | # Test whether the compiler implicitly links with -lc since on some |
| 7284 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 7285 | # to ld, don't add -lc before -lgcc. |
| 7286 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 7287 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 7288 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
| 7289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7290 | else |
| 7291 | $rm conftest* |
| 7292 | echo 'static int dummy;' > conftest.$ac_ext |
| 7293 | |
| 7294 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7295 | (eval $ac_compile) 2>&5 |
| 7296 | ac_status=$? |
| 7297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7298 | (exit $ac_status); }; then |
| 7299 | soname=conftest |
| 7300 | lib=conftest |
| 7301 | libobjs=conftest.$ac_objext |
| 7302 | deplibs= |
| 7303 | wl=$lt_cv_prog_cc_wl |
| 7304 | compiler_flags=-v |
| 7305 | linker_flags=-v |
| 7306 | verstring= |
| 7307 | output_objdir=. |
| 7308 | libname=conftest |
| 7309 | save_allow_undefined_flag=$allow_undefined_flag |
| 7310 | allow_undefined_flag= |
| 7311 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 7312 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 7313 | ac_status=$? |
| 7314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7315 | (exit $ac_status); } |
| 7316 | then |
| 7317 | lt_cv_archive_cmds_need_lc=no |
| 7318 | else |
| 7319 | lt_cv_archive_cmds_need_lc=yes |
| 7320 | fi |
| 7321 | allow_undefined_flag=$save_allow_undefined_flag |
| 7322 | else |
| 7323 | cat conftest.err 1>&5 |
| 7324 | fi |
| 7325 | fi |
| 7326 | |
| 7327 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 7328 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 |
| 7329 | ;; |
| 7330 | esac |
| 7331 | fi |
| 7332 | need_lc=${lt_cv_archive_cmds_need_lc-yes} |
| 7333 | |
| 7334 | # The second clause should only fire when bootstrapping the |
| 7335 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 7336 | # with your package, and you will get complaints that there are |
| 7337 | # no rules to generate ltmain.sh. |
| 7338 | if test -f "$ltmain"; then |
| 7339 | : |
| 7340 | else |
| 7341 | # If there is no Makefile yet, we rely on a make rule to execute |
| 7342 | # `config.status --recheck' to rerun these tests and create the |
| 7343 | # libtool script then. |
| 7344 | test -f Makefile && make "$ltmain" |
| 7345 | fi |
| 7346 | |
| 7347 | if test -f "$ltmain"; then |
| 7348 | trap "$rm \"${ofile}T\"; exit 1" 1 2 15 |
| 7349 | $rm -f "${ofile}T" |
| 7350 | |
| 7351 | echo creating $ofile |
| 7352 | |
| 7353 | # Now quote all the things that may contain metacharacters while being |
| 7354 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 7355 | # variables and quote the copies for generation of the libtool script. |
| 7356 | for var in echo old_CC old_CFLAGS SED \ |
| 7357 | AR AR_FLAGS CC LD LN_S NM SHELL \ |
| 7358 | reload_flag reload_cmds wl \ |
| 7359 | pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
| 7360 | thread_safe_flag_spec whole_archive_flag_spec libname_spec \ |
| 7361 | library_names_spec soname_spec \ |
| 7362 | RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ |
| 7363 | old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ |
| 7364 | postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ |
| 7365 | old_striplib striplib file_magic_cmd export_symbols_cmds \ |
| 7366 | deplibs_check_method allow_undefined_flag no_undefined_flag \ |
| 7367 | finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
| 7368 | global_symbol_to_c_name_address \ |
| 7369 | hardcode_libdir_flag_spec hardcode_libdir_separator \ |
| 7370 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 7371 | compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
| 7372 | |
| 7373 | case $var in |
| 7374 | reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
| 7375 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 7376 | export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ |
| 7377 | extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ |
| 7378 | postinstall_cmds | postuninstall_cmds | \ |
| 7379 | finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 7380 | # Double-quote double-evaled strings. |
| 7381 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 7382 | ;; |
| 7383 | *) |
| 7384 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 7385 | ;; |
| 7386 | esac |
| 7387 | done |
| 7388 | |
| 7389 | cat <<__EOF__ > "${ofile}T" |
| 7390 | #! $SHELL |
| 7391 | |
| 7392 | # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 7393 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 7394 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 7395 | # |
| 7396 | # Copyright (C) 1996-2000 Free Software Foundation, Inc. |
| 7397 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 7398 | # |
| 7399 | # This program is free software; you can redistribute it and/or modify |
| 7400 | # it under the terms of the GNU General Public License as published by |
| 7401 | # the Free Software Foundation; either version 2 of the License, or |
| 7402 | # (at your option) any later version. |
| 7403 | # |
| 7404 | # This program is distributed in the hope that it will be useful, but |
| 7405 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 7406 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 7407 | # General Public License for more details. |
| 7408 | # |
| 7409 | # You should have received a copy of the GNU General Public License |
| 7410 | # along with this program; if not, write to the Free Software |
| 7411 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 7412 | # |
| 7413 | # As a special exception to the GNU General Public License, if you |
| 7414 | # distribute this file as part of a program that contains a |
| 7415 | # configuration script generated by Autoconf, you may include it under |
| 7416 | # the same distribution terms that you use for the rest of that program. |
| 7417 | |
| 7418 | # A sed that does not truncate output. |
| 7419 | SED=$lt_SED |
| 7420 | |
| 7421 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 7422 | Xsed="${SED} -e s/^X//" |
| 7423 | |
| 7424 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 7425 | # if CDPATH is set. |
| 7426 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 7427 | |
| 7428 | # ### BEGIN LIBTOOL CONFIG |
| 7429 | |
| 7430 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 7431 | |
| 7432 | # Shell to use when invoking shell scripts. |
| 7433 | SHELL=$lt_SHELL |
| 7434 | |
| 7435 | # Whether or not to build shared libraries. |
| 7436 | build_libtool_libs=$enable_shared |
| 7437 | |
| 7438 | # Whether or not to build static libraries. |
| 7439 | build_old_libs=$enable_static |
| 7440 | |
| 7441 | # Whether or not to add -lc for building shared libraries. |
| 7442 | build_libtool_need_lc=$need_lc |
| 7443 | |
| 7444 | # Whether or not to optimize for fast installation. |
| 7445 | fast_install=$enable_fast_install |
| 7446 | |
| 7447 | # The host system. |
| 7448 | host_alias=$host_alias |
| 7449 | host=$host |
| 7450 | |
| 7451 | # An echo program that does not interpret backslashes. |
| 7452 | echo=$lt_echo |
| 7453 | |
| 7454 | # The archiver. |
| 7455 | AR=$lt_AR |
| 7456 | AR_FLAGS=$lt_AR_FLAGS |
| 7457 | |
| 7458 | # The default C compiler. |
| 7459 | CC=$lt_CC |
| 7460 | |
| 7461 | # Is the compiler the GNU C compiler? |
| 7462 | with_gcc=$GCC |
| 7463 | |
| 7464 | # The linker used to build libraries. |
| 7465 | LD=$lt_LD |
| 7466 | |
| 7467 | # Whether we need hard or soft links. |
| 7468 | LN_S=$lt_LN_S |
| 7469 | |
| 7470 | # A BSD-compatible nm program. |
| 7471 | NM=$lt_NM |
| 7472 | |
| 7473 | # A symbol stripping program |
| 7474 | STRIP=$STRIP |
| 7475 | |
| 7476 | # Used to examine libraries when file_magic_cmd begins "file" |
| 7477 | MAGIC_CMD=$MAGIC_CMD |
| 7478 | |
| 7479 | # Used on cygwin: DLL creation program. |
| 7480 | DLLTOOL="$DLLTOOL" |
| 7481 | |
| 7482 | # Used on cygwin: object dumper. |
| 7483 | OBJDUMP="$OBJDUMP" |
| 7484 | |
| 7485 | # Used on cygwin: assembler. |
| 7486 | AS="$AS" |
| 7487 | |
| 7488 | # The name of the directory that contains temporary libtool files. |
| 7489 | objdir=$objdir |
| 7490 | |
| 7491 | # How to create reloadable object files. |
| 7492 | reload_flag=$lt_reload_flag |
| 7493 | reload_cmds=$lt_reload_cmds |
| 7494 | |
| 7495 | # How to pass a linker flag through the compiler. |
| 7496 | wl=$lt_wl |
| 7497 | |
| 7498 | # Object file suffix (normally "o"). |
| 7499 | objext="$ac_objext" |
| 7500 | |
| 7501 | # Old archive suffix (normally "a"). |
| 7502 | libext="$libext" |
| 7503 | |
| 7504 | # Executable file suffix (normally ""). |
| 7505 | exeext="$exeext" |
| 7506 | |
| 7507 | # Additional compiler flags for building library objects. |
| 7508 | pic_flag=$lt_pic_flag |
| 7509 | pic_mode=$pic_mode |
| 7510 | |
| 7511 | # Does compiler simultaneously support -c and -o options? |
| 7512 | compiler_c_o=$lt_compiler_c_o |
| 7513 | |
| 7514 | # Can we write directly to a .lo ? |
| 7515 | compiler_o_lo=$lt_compiler_o_lo |
| 7516 | |
| 7517 | # Must we lock files when doing compilation ? |
| 7518 | need_locks=$lt_need_locks |
| 7519 | |
| 7520 | # Do we need the lib prefix for modules? |
| 7521 | need_lib_prefix=$need_lib_prefix |
| 7522 | |
| 7523 | # Do we need a version for libraries? |
| 7524 | need_version=$need_version |
| 7525 | |
| 7526 | # Whether dlopen is supported. |
| 7527 | dlopen_support=$enable_dlopen |
| 7528 | |
| 7529 | # Whether dlopen of programs is supported. |
| 7530 | dlopen_self=$enable_dlopen_self |
| 7531 | |
| 7532 | # Whether dlopen of statically linked programs is supported. |
| 7533 | dlopen_self_static=$enable_dlopen_self_static |
| 7534 | |
| 7535 | # Compiler flag to prevent dynamic linking. |
| 7536 | link_static_flag=$lt_link_static_flag |
| 7537 | |
| 7538 | # Compiler flag to turn off builtin functions. |
| 7539 | no_builtin_flag=$lt_no_builtin_flag |
| 7540 | |
| 7541 | # Compiler flag to allow reflexive dlopens. |
| 7542 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 7543 | |
| 7544 | # Compiler flag to generate shared objects directly from archives. |
| 7545 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 7546 | |
| 7547 | # Compiler flag to generate thread-safe objects. |
| 7548 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 7549 | |
| 7550 | # Library versioning type. |
| 7551 | version_type=$version_type |
| 7552 | |
| 7553 | # Format of library name prefix. |
| 7554 | libname_spec=$lt_libname_spec |
| 7555 | |
| 7556 | # List of archive names. First name is the real one, the rest are links. |
| 7557 | # The last name is the one that the linker finds with -lNAME. |
| 7558 | library_names_spec=$lt_library_names_spec |
| 7559 | |
| 7560 | # The coded name of the library, if different from the real name. |
| 7561 | soname_spec=$lt_soname_spec |
| 7562 | |
| 7563 | # Commands used to build and install an old-style archive. |
| 7564 | RANLIB=$lt_RANLIB |
| 7565 | old_archive_cmds=$lt_old_archive_cmds |
| 7566 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 7567 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 7568 | |
| 7569 | # Create an old-style archive from a shared archive. |
| 7570 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 7571 | |
| 7572 | # Create a temporary old-style archive to link instead of a shared archive. |
| 7573 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 7574 | |
| 7575 | # Commands used to build and install a shared archive. |
| 7576 | archive_cmds=$lt_archive_cmds |
| 7577 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 7578 | postinstall_cmds=$lt_postinstall_cmds |
| 7579 | postuninstall_cmds=$lt_postuninstall_cmds |
| 7580 | |
| 7581 | # Commands to strip libraries. |
| 7582 | old_striplib=$lt_old_striplib |
| 7583 | striplib=$lt_striplib |
| 7584 | |
| 7585 | # Method to check whether dependent libraries are shared objects. |
| 7586 | deplibs_check_method=$lt_deplibs_check_method |
| 7587 | |
| 7588 | # Command to use when deplibs_check_method == file_magic. |
| 7589 | file_magic_cmd=$lt_file_magic_cmd |
| 7590 | |
| 7591 | # Flag that allows shared libraries with undefined symbols to be built. |
| 7592 | allow_undefined_flag=$lt_allow_undefined_flag |
| 7593 | |
| 7594 | # Flag that forces no undefined symbols. |
| 7595 | no_undefined_flag=$lt_no_undefined_flag |
| 7596 | |
| 7597 | # Commands used to finish a libtool library installation in a directory. |
| 7598 | finish_cmds=$lt_finish_cmds |
| 7599 | |
| 7600 | # Same as above, but a single script fragment to be evaled but not shown. |
| 7601 | finish_eval=$lt_finish_eval |
| 7602 | |
| 7603 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 7604 | global_symbol_pipe=$lt_global_symbol_pipe |
| 7605 | |
| 7606 | # Transform the output of nm in a proper C declaration |
| 7607 | global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
| 7608 | |
| 7609 | # Transform the output of nm in a C name address pair |
| 7610 | global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address |
| 7611 | |
| 7612 | # This is the shared library runtime path variable. |
| 7613 | runpath_var=$runpath_var |
| 7614 | |
| 7615 | # This is the shared library path variable. |
| 7616 | shlibpath_var=$shlibpath_var |
| 7617 | |
| 7618 | # Is shlibpath searched before the hard-coded library search path? |
| 7619 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 7620 | |
| 7621 | # How to hardcode a shared library path into an executable. |
| 7622 | hardcode_action=$hardcode_action |
| 7623 | |
| 7624 | # Whether we should hardcode library paths into libraries. |
| 7625 | hardcode_into_libs=$hardcode_into_libs |
| 7626 | |
| 7627 | # Flag to hardcode \$libdir into a binary during linking. |
| 7628 | # This must work even if \$libdir does not exist. |
| 7629 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 7630 | |
| 7631 | # Whether we need a single -rpath flag with a separated argument. |
| 7632 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 7633 | |
| 7634 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
| 7635 | # resulting binary. |
| 7636 | hardcode_direct=$hardcode_direct |
| 7637 | |
| 7638 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 7639 | # resulting binary. |
| 7640 | hardcode_minus_L=$hardcode_minus_L |
| 7641 | |
| 7642 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 7643 | # the resulting binary. |
| 7644 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 7645 | |
| 7646 | # Variables whose values should be saved in libtool wrapper scripts and |
| 7647 | # restored at relink time. |
| 7648 | variables_saved_for_relink="$variables_saved_for_relink" |
| 7649 | |
| 7650 | # Whether libtool must link a program against all its dependency libraries. |
| 7651 | link_all_deplibs=$link_all_deplibs |
| 7652 | |
| 7653 | # Compile-time system search path for libraries |
| 7654 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 7655 | |
| 7656 | # Run-time system search path for libraries |
| 7657 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 7658 | |
| 7659 | # Fix the shell variable \$srcfile for the compiler. |
| 7660 | fix_srcfile_path="$fix_srcfile_path" |
| 7661 | |
| 7662 | # Set to yes if exported symbols are required. |
| 7663 | always_export_symbols=$always_export_symbols |
| 7664 | |
| 7665 | # The commands to list exported symbols. |
| 7666 | export_symbols_cmds=$lt_export_symbols_cmds |
| 7667 | |
| 7668 | # The commands to extract the exported symbol list from a shared archive. |
| 7669 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 7670 | |
| 7671 | # Symbols that should not be listed in the preloaded symbols. |
| 7672 | exclude_expsyms=$lt_exclude_expsyms |
| 7673 | |
| 7674 | # Symbols that must always be exported. |
| 7675 | include_expsyms=$lt_include_expsyms |
| 7676 | |
| 7677 | # ### END LIBTOOL CONFIG |
| 7678 | |
| 7679 | __EOF__ |
| 7680 | |
| 7681 | case $host_os in |
| 7682 | aix3*) |
| 7683 | cat <<\EOF >> "${ofile}T" |
| 7684 | |
| 7685 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 7686 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 7687 | # vanish in a puff of smoke. |
| 7688 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 7689 | COLLECT_NAMES= |
| 7690 | export COLLECT_NAMES |
| 7691 | fi |
| 7692 | EOF |
| 7693 | ;; |
| 7694 | esac |
| 7695 | |
| 7696 | case $host_os in |
| 7697 | cygwin* | mingw* | pw32* | os2*) |
| 7698 | cat <<'EOF' >> "${ofile}T" |
| 7699 | # This is a source program that is used to create dlls on Windows |
| 7700 | # Don't remove nor modify the starting and closing comments |
| 7701 | # /* ltdll.c starts here */ |
| 7702 | # #define WIN32_LEAN_AND_MEAN |
| 7703 | # #include <windows.h> |
| 7704 | # #undef WIN32_LEAN_AND_MEAN |
| 7705 | # #include <stdio.h> |
| 7706 | # |
| 7707 | # #ifndef __CYGWIN__ |
| 7708 | # # ifdef __CYGWIN32__ |
| 7709 | # # define __CYGWIN__ __CYGWIN32__ |
| 7710 | # # endif |
| 7711 | # #endif |
| 7712 | # |
| 7713 | # #ifdef __cplusplus |
| 7714 | # extern "C" { |
| 7715 | # #endif |
| 7716 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
| 7717 | # #ifdef __cplusplus |
| 7718 | # } |
| 7719 | # #endif |
| 7720 | # |
| 7721 | # #ifdef __CYGWIN__ |
| 7722 | # #include <cygwin/cygwin_dll.h> |
| 7723 | # DECLARE_CYGWIN_DLL( DllMain ); |
| 7724 | # #endif |
| 7725 | # HINSTANCE __hDllInstance_base; |
| 7726 | # |
| 7727 | # BOOL APIENTRY |
| 7728 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
| 7729 | # { |
| 7730 | # __hDllInstance_base = hInst; |
| 7731 | # return TRUE; |
| 7732 | # } |
| 7733 | # /* ltdll.c ends here */ |
| 7734 | # This is a source program that is used to create import libraries |
| 7735 | # on Windows for dlls which lack them. Don't remove nor modify the |
| 7736 | # starting and closing comments |
| 7737 | # /* impgen.c starts here */ |
| 7738 | # /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
| 7739 | # |
| 7740 | # This file is part of GNU libtool. |
| 7741 | # |
| 7742 | # This program is free software; you can redistribute it and/or modify |
| 7743 | # it under the terms of the GNU General Public License as published by |
| 7744 | # the Free Software Foundation; either version 2 of the License, or |
| 7745 | # (at your option) any later version. |
| 7746 | # |
| 7747 | # This program is distributed in the hope that it will be useful, |
| 7748 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 7749 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 7750 | # GNU General Public License for more details. |
| 7751 | # |
| 7752 | # You should have received a copy of the GNU General Public License |
| 7753 | # along with this program; if not, write to the Free Software |
| 7754 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 7755 | # */ |
| 7756 | # |
| 7757 | # #include <stdio.h> /* for printf() */ |
| 7758 | # #include <unistd.h> /* for open(), lseek(), read() */ |
| 7759 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ |
| 7760 | # #include <string.h> /* for strdup() */ |
| 7761 | # |
| 7762 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ |
| 7763 | # #ifndef O_BINARY |
| 7764 | # #define O_BINARY 0 |
| 7765 | # #endif |
| 7766 | # |
| 7767 | # static unsigned int |
| 7768 | # pe_get16 (fd, offset) |
| 7769 | # int fd; |
| 7770 | # int offset; |
| 7771 | # { |
| 7772 | # unsigned char b[2]; |
| 7773 | # lseek (fd, offset, SEEK_SET); |
| 7774 | # read (fd, b, 2); |
| 7775 | # return b[0] + (b[1]<<8); |
| 7776 | # } |
| 7777 | # |
| 7778 | # static unsigned int |
| 7779 | # pe_get32 (fd, offset) |
| 7780 | # int fd; |
| 7781 | # int offset; |
| 7782 | # { |
| 7783 | # unsigned char b[4]; |
| 7784 | # lseek (fd, offset, SEEK_SET); |
| 7785 | # read (fd, b, 4); |
| 7786 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
| 7787 | # } |
| 7788 | # |
| 7789 | # static unsigned int |
| 7790 | # pe_as32 (ptr) |
| 7791 | # void *ptr; |
| 7792 | # { |
| 7793 | # unsigned char *b = ptr; |
| 7794 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
| 7795 | # } |
| 7796 | # |
| 7797 | # int |
| 7798 | # main (argc, argv) |
| 7799 | # int argc; |
| 7800 | # char *argv[]; |
| 7801 | # { |
| 7802 | # int dll; |
| 7803 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; |
| 7804 | # unsigned long export_rva, export_size, nsections, secptr, expptr; |
| 7805 | # unsigned long name_rvas, nexp; |
| 7806 | # unsigned char *expdata, *erva; |
| 7807 | # char *filename, *dll_name; |
| 7808 | # |
| 7809 | # filename = argv[1]; |
| 7810 | # |
| 7811 | # dll = open(filename, O_RDONLY|O_BINARY); |
| 7812 | # if (dll < 1) |
| 7813 | # return 1; |
| 7814 | # |
| 7815 | # dll_name = filename; |
| 7816 | # |
| 7817 | # for (i=0; filename[i]; i++) |
| 7818 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
| 7819 | # dll_name = filename + i +1; |
| 7820 | # |
| 7821 | # pe_header_offset = pe_get32 (dll, 0x3c); |
| 7822 | # opthdr_ofs = pe_header_offset + 4 + 20; |
| 7823 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); |
| 7824 | # |
| 7825 | # if (num_entries < 1) /* no exports */ |
| 7826 | # return 1; |
| 7827 | # |
| 7828 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); |
| 7829 | # export_size = pe_get32 (dll, opthdr_ofs + 100); |
| 7830 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
| 7831 | # secptr = (pe_header_offset + 4 + 20 + |
| 7832 | # pe_get16 (dll, pe_header_offset + 4 + 16)); |
| 7833 | # |
| 7834 | # expptr = 0; |
| 7835 | # for (i = 0; i < nsections; i++) |
| 7836 | # { |
| 7837 | # char sname[8]; |
| 7838 | # unsigned long secptr1 = secptr + 40 * i; |
| 7839 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
| 7840 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
| 7841 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
| 7842 | # lseek(dll, secptr1, SEEK_SET); |
| 7843 | # read(dll, sname, 8); |
| 7844 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) |
| 7845 | # { |
| 7846 | # expptr = fptr + (export_rva - vaddr); |
| 7847 | # if (export_rva + export_size > vaddr + vsize) |
| 7848 | # export_size = vsize - (export_rva - vaddr); |
| 7849 | # break; |
| 7850 | # } |
| 7851 | # } |
| 7852 | # |
| 7853 | # expdata = (unsigned char*)malloc(export_size); |
| 7854 | # lseek (dll, expptr, SEEK_SET); |
| 7855 | # read (dll, expdata, export_size); |
| 7856 | # erva = expdata - export_rva; |
| 7857 | # |
| 7858 | # nexp = pe_as32 (expdata+24); |
| 7859 | # name_rvas = pe_as32 (expdata+32); |
| 7860 | # |
| 7861 | # printf ("EXPORTS\n"); |
| 7862 | # for (i = 0; i<nexp; i++) |
| 7863 | # { |
| 7864 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
| 7865 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
| 7866 | # } |
| 7867 | # |
| 7868 | # return 0; |
| 7869 | # } |
| 7870 | # /* impgen.c ends here */ |
| 7871 | |
| 7872 | EOF |
| 7873 | ;; |
| 7874 | esac |
| 7875 | |
| 7876 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 7877 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 7878 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 7879 | # is reportedly fixed, but why not run on old versions too? |
| 7880 | sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) |
| 7881 | |
| 7882 | mv -f "${ofile}T" "$ofile" || \ |
| 7883 | (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
| 7884 | chmod +x "$ofile" |
| 7885 | fi |
| 7886 | |
| 7887 | |
| 7888 | |
| 7889 | |
| 7890 | |
| 7891 | # This can be used to rebuild libtool when needed |
| 7892 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 7893 | |
| 7894 | # Always use our own libtool. |
| 7895 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 7896 | |
| 7897 | # Prevent multiple expansion |
| 7898 | |
| 7899 | |
| 7900 | |
| 7901 | |
| 7902 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 7903 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 7904 | if test "${ac_cv_header_stdc+set}" = set; then |
| 7905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7906 | else |
| 7907 | cat >conftest.$ac_ext <<_ACEOF |
| 7908 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 7909 | /* confdefs.h. */ |
| 7910 | _ACEOF |
| 7911 | cat confdefs.h >>conftest.$ac_ext |
| 7912 | cat >>conftest.$ac_ext <<_ACEOF |
| 7913 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7914 | #include <stdlib.h> |
| 7915 | #include <stdarg.h> |
| 7916 | #include <string.h> |
| 7917 | #include <float.h> |
| 7918 | |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 7919 | int |
| 7920 | main () |
| 7921 | { |
| 7922 | |
| 7923 | ; |
| 7924 | return 0; |
| 7925 | } |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7926 | _ACEOF |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 7927 | rm -f conftest.$ac_objext |
| 7928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7929 | (eval $ac_compile) 2>&5 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7930 | ac_status=$? |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 7932 | (exit $ac_status); } && |
| 7933 | { ac_try='test -s conftest.$ac_objext' |
| 7934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7935 | (eval $ac_try) 2>&5 |
| 7936 | ac_status=$? |
| 7937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7938 | (exit $ac_status); }; }; then |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7939 | ac_cv_header_stdc=yes |
| 7940 | else |
| 7941 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 7942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7943 | |
| 7944 | ac_cv_header_stdc=no |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7945 | fi |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 7946 | rm -f conftest.$ac_objext conftest.$ac_ext |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7947 | |
| 7948 | if test $ac_cv_header_stdc = yes; then |
| 7949 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 7950 | cat >conftest.$ac_ext <<_ACEOF |
| 7951 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 7952 | /* confdefs.h. */ |
| 7953 | _ACEOF |
| 7954 | cat confdefs.h >>conftest.$ac_ext |
| 7955 | cat >>conftest.$ac_ext <<_ACEOF |
| 7956 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7957 | #include <string.h> |
| 7958 | |
| 7959 | _ACEOF |
| 7960 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7961 | $EGREP "memchr" >/dev/null 2>&1; then |
| 7962 | : |
| 7963 | else |
| 7964 | ac_cv_header_stdc=no |
| 7965 | fi |
| 7966 | rm -f conftest* |
| 7967 | |
| 7968 | fi |
| 7969 | |
| 7970 | if test $ac_cv_header_stdc = yes; then |
| 7971 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 7972 | cat >conftest.$ac_ext <<_ACEOF |
| 7973 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 7974 | /* confdefs.h. */ |
| 7975 | _ACEOF |
| 7976 | cat confdefs.h >>conftest.$ac_ext |
| 7977 | cat >>conftest.$ac_ext <<_ACEOF |
| 7978 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7979 | #include <stdlib.h> |
| 7980 | |
| 7981 | _ACEOF |
| 7982 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7983 | $EGREP "free" >/dev/null 2>&1; then |
| 7984 | : |
| 7985 | else |
| 7986 | ac_cv_header_stdc=no |
| 7987 | fi |
| 7988 | rm -f conftest* |
| 7989 | |
| 7990 | fi |
| 7991 | |
| 7992 | if test $ac_cv_header_stdc = yes; then |
| 7993 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 7994 | if test "$cross_compiling" = yes; then |
| 7995 | : |
| 7996 | else |
| 7997 | cat >conftest.$ac_ext <<_ACEOF |
| 7998 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 7999 | /* confdefs.h. */ |
| 8000 | _ACEOF |
| 8001 | cat confdefs.h >>conftest.$ac_ext |
| 8002 | cat >>conftest.$ac_ext <<_ACEOF |
| 8003 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8004 | #include <ctype.h> |
| 8005 | #if ((' ' & 0x0FF) == 0x020) |
| 8006 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 8007 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 8008 | #else |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8009 | # define ISLOWER(c) \ |
| 8010 | (('a' <= (c) && (c) <= 'i') \ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8011 | || ('j' <= (c) && (c) <= 'r') \ |
| 8012 | || ('s' <= (c) && (c) <= 'z')) |
| 8013 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 8014 | #endif |
| 8015 | |
| 8016 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 8017 | int |
| 8018 | main () |
| 8019 | { |
| 8020 | int i; |
| 8021 | for (i = 0; i < 256; i++) |
| 8022 | if (XOR (islower (i), ISLOWER (i)) |
| 8023 | || toupper (i) != TOUPPER (i)) |
| 8024 | exit(2); |
| 8025 | exit (0); |
| 8026 | } |
| 8027 | _ACEOF |
| 8028 | rm -f conftest$ac_exeext |
| 8029 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8030 | (eval $ac_link) 2>&5 |
| 8031 | ac_status=$? |
| 8032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8033 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8035 | (eval $ac_try) 2>&5 |
| 8036 | ac_status=$? |
| 8037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8038 | (exit $ac_status); }; }; then |
| 8039 | : |
| 8040 | else |
| 8041 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8042 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8044 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8045 | ( exit $ac_status ) |
| 8046 | ac_cv_header_stdc=no |
| 8047 | fi |
| 8048 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8049 | fi |
| 8050 | fi |
| 8051 | fi |
| 8052 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 8053 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 8054 | if test $ac_cv_header_stdc = yes; then |
| 8055 | |
| 8056 | cat >>confdefs.h <<\_ACEOF |
| 8057 | #define STDC_HEADERS 1 |
| 8058 | _ACEOF |
| 8059 | |
| 8060 | fi |
| 8061 | |
| 8062 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8063 | for ac_header in unistd.h |
| 8064 | do |
| 8065 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8066 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8067 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8068 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8069 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8071 | fi |
| 8072 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8073 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8074 | else |
| 8075 | # Is the header compilable? |
| 8076 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8077 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8078 | cat >conftest.$ac_ext <<_ACEOF |
| 8079 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8080 | /* confdefs.h. */ |
| 8081 | _ACEOF |
| 8082 | cat confdefs.h >>conftest.$ac_ext |
| 8083 | cat >>conftest.$ac_ext <<_ACEOF |
| 8084 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8085 | $ac_includes_default |
| 8086 | #include <$ac_header> |
| 8087 | _ACEOF |
| 8088 | rm -f conftest.$ac_objext |
| 8089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8090 | (eval $ac_compile) 2>&5 |
| 8091 | ac_status=$? |
| 8092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8093 | (exit $ac_status); } && |
| 8094 | { ac_try='test -s conftest.$ac_objext' |
| 8095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8096 | (eval $ac_try) 2>&5 |
| 8097 | ac_status=$? |
| 8098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8099 | (exit $ac_status); }; }; then |
| 8100 | ac_header_compiler=yes |
| 8101 | else |
| 8102 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8104 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8105 | ac_header_compiler=no |
| 8106 | fi |
| 8107 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8108 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8109 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8110 | |
| 8111 | # Is the header present? |
| 8112 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8113 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8114 | cat >conftest.$ac_ext <<_ACEOF |
| 8115 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8116 | /* confdefs.h. */ |
| 8117 | _ACEOF |
| 8118 | cat confdefs.h >>conftest.$ac_ext |
| 8119 | cat >>conftest.$ac_ext <<_ACEOF |
| 8120 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8121 | #include <$ac_header> |
| 8122 | _ACEOF |
| 8123 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8124 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8125 | ac_status=$? |
| 8126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8127 | rm -f conftest.er1 |
| 8128 | cat conftest.err >&5 |
| 8129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8130 | (exit $ac_status); } >/dev/null; then |
| 8131 | if test -s conftest.err; then |
| 8132 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8133 | else |
| 8134 | ac_cpp_err= |
| 8135 | fi |
| 8136 | else |
| 8137 | ac_cpp_err=yes |
| 8138 | fi |
| 8139 | if test -z "$ac_cpp_err"; then |
| 8140 | ac_header_preproc=yes |
| 8141 | else |
| 8142 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8144 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8145 | ac_header_preproc=no |
| 8146 | fi |
| 8147 | rm -f conftest.err conftest.$ac_ext |
| 8148 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8149 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8150 | |
| 8151 | # So? What about this header? |
| 8152 | case $ac_header_compiler:$ac_header_preproc in |
| 8153 | yes:no ) |
| 8154 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8155 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8156 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8157 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8158 | ( |
| 8159 | cat <<\_ASBOX |
| 8160 | ## ------------------------------------ ## |
| 8161 | ## Report this to bug-autoconf@gnu.org. ## |
| 8162 | ## ------------------------------------ ## |
| 8163 | _ASBOX |
| 8164 | ) | |
| 8165 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8166 | ;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8167 | no:yes ) |
| 8168 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8169 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8170 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8171 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8172 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8173 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8174 | ( |
| 8175 | cat <<\_ASBOX |
| 8176 | ## ------------------------------------ ## |
| 8177 | ## Report this to bug-autoconf@gnu.org. ## |
| 8178 | ## ------------------------------------ ## |
| 8179 | _ASBOX |
| 8180 | ) | |
| 8181 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8182 | ;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8183 | esac |
| 8184 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8185 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8186 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8188 | else |
| 8189 | eval "$as_ac_Header=$ac_header_preproc" |
| 8190 | fi |
| 8191 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8192 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8193 | |
| 8194 | fi |
| 8195 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8196 | cat >>confdefs.h <<_ACEOF |
| 8197 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8198 | _ACEOF |
| 8199 | |
| 8200 | fi |
| 8201 | |
| 8202 | done |
| 8203 | |
| 8204 | |
| 8205 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8206 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 8207 | if test "${ac_cv_c_const+set}" = set; then |
| 8208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8209 | else |
| 8210 | cat >conftest.$ac_ext <<_ACEOF |
| 8211 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8212 | /* confdefs.h. */ |
| 8213 | _ACEOF |
| 8214 | cat confdefs.h >>conftest.$ac_ext |
| 8215 | cat >>conftest.$ac_ext <<_ACEOF |
| 8216 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8217 | |
| 8218 | int |
| 8219 | main () |
| 8220 | { |
| 8221 | /* FIXME: Include the comments suggested by Paul. */ |
| 8222 | #ifndef __cplusplus |
| 8223 | /* Ultrix mips cc rejects this. */ |
| 8224 | typedef int charset[2]; |
| 8225 | const charset x; |
| 8226 | /* SunOS 4.1.1 cc rejects this. */ |
| 8227 | char const *const *ccp; |
| 8228 | char **p; |
| 8229 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8230 | struct point {int x, y;}; |
| 8231 | static struct point const zero = {0,0}; |
| 8232 | /* AIX XL C 1.02.0.0 rejects this. |
| 8233 | It does not let you subtract one const X* pointer from another in |
| 8234 | an arm of an if-expression whose if-part is not a constant |
| 8235 | expression */ |
| 8236 | const char *g = "string"; |
| 8237 | ccp = &g + (g ? g-g : 0); |
| 8238 | /* HPUX 7.0 cc rejects these. */ |
| 8239 | ++ccp; |
| 8240 | p = (char**) ccp; |
| 8241 | ccp = (char const *const *) p; |
| 8242 | { /* SCO 3.2v4 cc rejects this. */ |
| 8243 | char *t; |
| 8244 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8245 | |
| 8246 | *t++ = 0; |
| 8247 | } |
| 8248 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8249 | int x[] = {25, 17}; |
| 8250 | const int *foo = &x[0]; |
| 8251 | ++foo; |
| 8252 | } |
| 8253 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8254 | typedef const int *iptr; |
| 8255 | iptr p = 0; |
| 8256 | ++p; |
| 8257 | } |
| 8258 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8259 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8260 | struct s { int j; const int *ap[3]; }; |
| 8261 | struct s *b; b->j = 5; |
| 8262 | } |
| 8263 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8264 | const int foo = 10; |
| 8265 | } |
| 8266 | #endif |
| 8267 | |
| 8268 | ; |
| 8269 | return 0; |
| 8270 | } |
| 8271 | _ACEOF |
| 8272 | rm -f conftest.$ac_objext |
| 8273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8274 | (eval $ac_compile) 2>&5 |
| 8275 | ac_status=$? |
| 8276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8277 | (exit $ac_status); } && |
| 8278 | { ac_try='test -s conftest.$ac_objext' |
| 8279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8280 | (eval $ac_try) 2>&5 |
| 8281 | ac_status=$? |
| 8282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8283 | (exit $ac_status); }; }; then |
| 8284 | ac_cv_c_const=yes |
| 8285 | else |
| 8286 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8288 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8289 | ac_cv_c_const=no |
| 8290 | fi |
| 8291 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8292 | fi |
| 8293 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8294 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 8295 | if test $ac_cv_c_const = no; then |
| 8296 | |
| 8297 | cat >>confdefs.h <<\_ACEOF |
| 8298 | #define const |
| 8299 | _ACEOF |
| 8300 | |
| 8301 | fi |
| 8302 | |
| 8303 | echo "$as_me:$LINENO: checking for inline" >&5 |
| 8304 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 8305 | if test "${ac_cv_c_inline+set}" = set; then |
| 8306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8307 | else |
| 8308 | ac_cv_c_inline=no |
| 8309 | for ac_kw in inline __inline__ __inline; do |
| 8310 | cat >conftest.$ac_ext <<_ACEOF |
| 8311 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8312 | /* confdefs.h. */ |
| 8313 | _ACEOF |
| 8314 | cat confdefs.h >>conftest.$ac_ext |
| 8315 | cat >>conftest.$ac_ext <<_ACEOF |
| 8316 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8317 | #ifndef __cplusplus |
| 8318 | typedef int foo_t; |
| 8319 | static $ac_kw foo_t static_foo () {return 0; } |
| 8320 | $ac_kw foo_t foo () {return 0; } |
| 8321 | #endif |
| 8322 | |
| 8323 | _ACEOF |
| 8324 | rm -f conftest.$ac_objext |
| 8325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8326 | (eval $ac_compile) 2>&5 |
| 8327 | ac_status=$? |
| 8328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8329 | (exit $ac_status); } && |
| 8330 | { ac_try='test -s conftest.$ac_objext' |
| 8331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8332 | (eval $ac_try) 2>&5 |
| 8333 | ac_status=$? |
| 8334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8335 | (exit $ac_status); }; }; then |
| 8336 | ac_cv_c_inline=$ac_kw; break |
| 8337 | else |
| 8338 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8340 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8341 | fi |
| 8342 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8343 | done |
| 8344 | |
| 8345 | fi |
| 8346 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 8347 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
| 8348 | case $ac_cv_c_inline in |
| 8349 | inline | yes) ;; |
| 8350 | no) |
| 8351 | cat >>confdefs.h <<\_ACEOF |
| 8352 | #define inline |
| 8353 | _ACEOF |
| 8354 | ;; |
| 8355 | *) cat >>confdefs.h <<_ACEOF |
| 8356 | #define inline $ac_cv_c_inline |
| 8357 | _ACEOF |
| 8358 | ;; |
| 8359 | esac |
| 8360 | |
| 8361 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 8362 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 8363 | if test "${ac_cv_type_size_t+set}" = set; then |
| 8364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8365 | else |
| 8366 | cat >conftest.$ac_ext <<_ACEOF |
| 8367 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8368 | /* confdefs.h. */ |
| 8369 | _ACEOF |
| 8370 | cat confdefs.h >>conftest.$ac_ext |
| 8371 | cat >>conftest.$ac_ext <<_ACEOF |
| 8372 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8373 | $ac_includes_default |
| 8374 | int |
| 8375 | main () |
| 8376 | { |
| 8377 | if ((size_t *) 0) |
| 8378 | return 0; |
| 8379 | if (sizeof (size_t)) |
| 8380 | return 0; |
| 8381 | ; |
| 8382 | return 0; |
| 8383 | } |
| 8384 | _ACEOF |
| 8385 | rm -f conftest.$ac_objext |
| 8386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8387 | (eval $ac_compile) 2>&5 |
| 8388 | ac_status=$? |
| 8389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8390 | (exit $ac_status); } && |
| 8391 | { ac_try='test -s conftest.$ac_objext' |
| 8392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8393 | (eval $ac_try) 2>&5 |
| 8394 | ac_status=$? |
| 8395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8396 | (exit $ac_status); }; }; then |
| 8397 | ac_cv_type_size_t=yes |
| 8398 | else |
| 8399 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8401 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8402 | ac_cv_type_size_t=no |
| 8403 | fi |
| 8404 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8405 | fi |
| 8406 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 8407 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 8408 | if test $ac_cv_type_size_t = yes; then |
| 8409 | : |
| 8410 | else |
| 8411 | |
| 8412 | cat >>confdefs.h <<_ACEOF |
| 8413 | #define size_t unsigned |
| 8414 | _ACEOF |
| 8415 | |
| 8416 | fi |
| 8417 | |
| 8418 | |
| 8419 | echo "$as_me:$LINENO: checking for working memcmp" >&5 |
| 8420 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 |
| 8421 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
| 8422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8423 | else |
| 8424 | if test "$cross_compiling" = yes; then |
| 8425 | ac_cv_func_memcmp_working=no |
| 8426 | else |
| 8427 | cat >conftest.$ac_ext <<_ACEOF |
| 8428 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8429 | /* confdefs.h. */ |
| 8430 | _ACEOF |
| 8431 | cat confdefs.h >>conftest.$ac_ext |
| 8432 | cat >>conftest.$ac_ext <<_ACEOF |
| 8433 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8434 | |
| 8435 | int |
| 8436 | main () |
| 8437 | { |
| 8438 | |
| 8439 | /* Some versions of memcmp are not 8-bit clean. */ |
| 8440 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; |
| 8441 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
| 8442 | exit (1); |
| 8443 | |
| 8444 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
| 8445 | or more and with at least one buffer not starting on a 4-byte boundary. |
| 8446 | William Lewis provided this test program. */ |
| 8447 | { |
| 8448 | char foo[21]; |
| 8449 | char bar[21]; |
| 8450 | int i; |
| 8451 | for (i = 0; i < 4; i++) |
| 8452 | { |
| 8453 | char *a = foo + i; |
| 8454 | char *b = bar + i; |
| 8455 | strcpy (a, "--------01111111"); |
| 8456 | strcpy (b, "--------10000000"); |
| 8457 | if (memcmp (a, b, 16) >= 0) |
| 8458 | exit (1); |
| 8459 | } |
| 8460 | exit (0); |
| 8461 | } |
| 8462 | |
| 8463 | ; |
| 8464 | return 0; |
| 8465 | } |
| 8466 | _ACEOF |
| 8467 | rm -f conftest$ac_exeext |
| 8468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8469 | (eval $ac_link) 2>&5 |
| 8470 | ac_status=$? |
| 8471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8472 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8474 | (eval $ac_try) 2>&5 |
| 8475 | ac_status=$? |
| 8476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8477 | (exit $ac_status); }; }; then |
| 8478 | ac_cv_func_memcmp_working=yes |
| 8479 | else |
| 8480 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8481 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8483 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8484 | ( exit $ac_status ) |
| 8485 | ac_cv_func_memcmp_working=no |
| 8486 | fi |
| 8487 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8488 | fi |
| 8489 | fi |
| 8490 | echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
| 8491 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 |
| 8492 | test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
| 8493 | |
| 8494 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 8495 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 8496 | if test "${ac_cv_type_signal+set}" = set; then |
| 8497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8498 | else |
| 8499 | cat >conftest.$ac_ext <<_ACEOF |
| 8500 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8501 | /* confdefs.h. */ |
| 8502 | _ACEOF |
| 8503 | cat confdefs.h >>conftest.$ac_ext |
| 8504 | cat >>conftest.$ac_ext <<_ACEOF |
| 8505 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8506 | #include <sys/types.h> |
| 8507 | #include <signal.h> |
| 8508 | #ifdef signal |
| 8509 | # undef signal |
| 8510 | #endif |
| 8511 | #ifdef __cplusplus |
| 8512 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 8513 | #else |
| 8514 | void (*signal ()) (); |
| 8515 | #endif |
| 8516 | |
| 8517 | int |
| 8518 | main () |
| 8519 | { |
| 8520 | int i; |
| 8521 | ; |
| 8522 | return 0; |
| 8523 | } |
| 8524 | _ACEOF |
| 8525 | rm -f conftest.$ac_objext |
| 8526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8527 | (eval $ac_compile) 2>&5 |
| 8528 | ac_status=$? |
| 8529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8530 | (exit $ac_status); } && |
| 8531 | { ac_try='test -s conftest.$ac_objext' |
| 8532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8533 | (eval $ac_try) 2>&5 |
| 8534 | ac_status=$? |
| 8535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8536 | (exit $ac_status); }; }; then |
| 8537 | ac_cv_type_signal=void |
| 8538 | else |
| 8539 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8541 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8542 | ac_cv_type_signal=int |
| 8543 | fi |
| 8544 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8545 | fi |
| 8546 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 8547 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 8548 | |
| 8549 | cat >>confdefs.h <<_ACEOF |
| 8550 | #define RETSIGTYPE $ac_cv_type_signal |
| 8551 | _ACEOF |
| 8552 | |
| 8553 | |
| 8554 | |
| 8555 | for ac_func in getunwind |
| 8556 | do |
| 8557 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8558 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 8559 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8560 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8562 | else |
| 8563 | cat >conftest.$ac_ext <<_ACEOF |
| 8564 | #line $LINENO "configure" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8565 | /* confdefs.h. */ |
| 8566 | _ACEOF |
| 8567 | cat confdefs.h >>conftest.$ac_ext |
| 8568 | cat >>conftest.$ac_ext <<_ACEOF |
| 8569 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8570 | /* System header to define __stub macros and hopefully few prototypes, |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8571 | which can conflict with char $ac_func (); below. |
| 8572 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8573 | <limits.h> exists even on freestanding compilers. */ |
| 8574 | #ifdef __STDC__ |
| 8575 | # include <limits.h> |
| 8576 | #else |
| 8577 | # include <assert.h> |
| 8578 | #endif |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8579 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8580 | #ifdef __cplusplus |
| 8581 | extern "C" |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8582 | { |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8583 | #endif |
| 8584 | /* We use char because int might match the return type of a gcc2 |
| 8585 | builtin and then its argument prototype would still apply. */ |
| 8586 | char $ac_func (); |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8587 | /* The GNU C library defines this for functions which it implements |
| 8588 | to always fail with ENOSYS. Some functions are actually named |
| 8589 | something starting with __ and the normal name is an alias. */ |
| 8590 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 8591 | choke me |
| 8592 | #else |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8593 | char (*f) () = $ac_func; |
| 8594 | #endif |
| 8595 | #ifdef __cplusplus |
| 8596 | } |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8597 | #endif |
| 8598 | |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8599 | int |
| 8600 | main () |
| 8601 | { |
| 8602 | return f != $ac_func; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8603 | ; |
| 8604 | return 0; |
| 8605 | } |
| 8606 | _ACEOF |
| 8607 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8608 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8609 | (eval $ac_link) 2>&5 |
| 8610 | ac_status=$? |
| 8611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8612 | (exit $ac_status); } && |
| 8613 | { ac_try='test -s conftest$ac_exeext' |
| 8614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8615 | (eval $ac_try) 2>&5 |
| 8616 | ac_status=$? |
| 8617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8618 | (exit $ac_status); }; }; then |
| 8619 | eval "$as_ac_var=yes" |
| 8620 | else |
| 8621 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8623 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8624 | eval "$as_ac_var=no" |
| 8625 | fi |
| 8626 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8627 | fi |
| 8628 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 8629 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 8630 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 8631 | cat >>confdefs.h <<_ACEOF |
| 8632 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 8633 | _ACEOF |
| 8634 | |
| 8635 | fi |
| 8636 | done |
| 8637 | |
| 8638 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 8639 | # By default we simply use the C compiler to build assembly code. |
| 8640 | |
| 8641 | : ${CCAS='$(CC)'} |
| 8642 | # Set ASFLAGS if not already set. |
| 8643 | : ${CCASFLAGS='$(CFLAGS)'} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8644 | |
| 8645 | |
| 8646 | |
| 8647 | get_arch() { |
| 8648 | case "$1" in |
| 8649 | i?86) echo x86;; |
mostang.com!davidm | 8d5c44b | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 8650 | hppa*) echo hppa;; |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 8651 | *) echo $1;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8652 | esac |
| 8653 | } |
| 8654 | |
| 8655 | build_arch=`get_arch $build_cpu` |
| 8656 | target_arch=`get_arch $target_cpu` |
| 8657 | |
| 8658 | |
| 8659 | |
| 8660 | if test x$target_arch != x$build_arch; then |
| 8661 | REMOTE_ONLY_TRUE= |
| 8662 | REMOTE_ONLY_FALSE='#' |
| 8663 | else |
| 8664 | REMOTE_ONLY_TRUE='#' |
| 8665 | REMOTE_ONLY_FALSE= |
| 8666 | fi |
| 8667 | |
| 8668 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 8669 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8670 | if test x$target_arch = xia64; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8671 | ARCH_IA64_TRUE= |
| 8672 | ARCH_IA64_FALSE='#' |
| 8673 | else |
| 8674 | ARCH_IA64_TRUE='#' |
| 8675 | ARCH_IA64_FALSE= |
| 8676 | fi |
| 8677 | |
| 8678 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 8679 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8680 | if test x$target_arch = xhppa; then |
mostang.com!davidm | 8d5c44b | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 8681 | ARCH_HPPA_TRUE= |
| 8682 | ARCH_HPPA_FALSE='#' |
| 8683 | else |
| 8684 | ARCH_HPPA_TRUE='#' |
| 8685 | ARCH_HPPA_FALSE= |
| 8686 | fi |
| 8687 | |
| 8688 | |
| 8689 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8690 | if test x$target_arch = xx86; then |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 8691 | ARCH_X86_TRUE= |
| 8692 | ARCH_X86_FALSE='#' |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8693 | else |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 8694 | ARCH_X86_TRUE='#' |
| 8695 | ARCH_X86_FALSE= |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8696 | fi |
| 8697 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 8698 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8699 | if test x$target_arch != x$build_arch; then |
| 8700 | CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8701 | fi |
mostang.com!davidm | 51e4d34 | 2002-12-12 09:17:41 +0000 | [diff] [blame] | 8702 | ac_config_links="$ac_config_links include/libunwind.h:include/libunwind-$target_arch.h include/tdep.h:include/tdep-$target_arch.h" |
| 8703 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8704 | |
| 8705 | # Check whether --enable-debug or --disable-debug was given. |
| 8706 | if test "${enable_debug+set}" = set; then |
| 8707 | enableval="$enable_debug" |
| 8708 | enable_debug=yes |
| 8709 | fi; |
| 8710 | |
mostang.com!davidm | fb2c7eb | 2002-11-09 07:59:02 +0000 | [diff] [blame] | 8711 | if test "x$use__thread" != xno; then |
| 8712 | echo "$as_me:$LINENO: checking for __thread" >&5 |
| 8713 | echo $ECHO_N "checking for __thread... $ECHO_C" >&6 |
| 8714 | if test "${libc_cv_gcc___thread+set}" = set; then |
| 8715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8716 | else |
| 8717 | cat > conftest.c <<\EOF |
| 8718 | __thread int a = 42; |
| 8719 | EOF |
| 8720 | if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5' |
| 8721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8722 | (eval $ac_try) 2>&5 |
| 8723 | ac_status=$? |
| 8724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8725 | (exit $ac_status); }; }; then |
| 8726 | libc_cv_gcc___thread=yes |
| 8727 | else |
| 8728 | libc_cv_gcc___thread=no |
| 8729 | fi |
| 8730 | rm -f conftest* |
| 8731 | fi |
| 8732 | echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5 |
| 8733 | echo "${ECHO_T}$libc_cv_gcc___thread" >&6 |
| 8734 | if test "$libc_cv_gcc___thread" = yes; then |
mostang.com!davidm | 57f5fae | 2002-12-03 08:19:58 +0000 | [diff] [blame] | 8735 | |
| 8736 | cat >>confdefs.h <<\_ACEOF |
mostang.com!davidm | fb2c7eb | 2002-11-09 07:59:02 +0000 | [diff] [blame] | 8737 | #define HAVE___THREAD 1 |
| 8738 | _ACEOF |
| 8739 | |
| 8740 | fi |
| 8741 | else |
| 8742 | libc_cv_gcc___thread=no |
| 8743 | fi |
| 8744 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8745 | CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8746 | if test x$enable_debug = xyes; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8747 | CPPFLAGS="${CPPFLAGS} -DDEBUG" |
| 8748 | else |
| 8749 | CPPFLAGS="${CPPFLAGS} -DNDEBUG" |
| 8750 | fi |
| 8751 | ASFLAGS="${ASFLAGS} ${CPPFLAGS}" |
| 8752 | |
| 8753 | if test x$GCC = xyes; then |
| 8754 | CFLAGS="${CFLAGS} -Wall" |
| 8755 | fi |
| 8756 | |
| 8757 | arch="$target_arch" |
| 8758 | ARCH=`echo $target_arch | tr a-z A-Z` |
| 8759 | |
| 8760 | |
| 8761 | |
mostang.com!davidm | f648f6f | 2003-01-17 07:48:52 +0000 | [diff] [blame] | 8762 | |
| 8763 | ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile doc/Makefile doc/common.tex" |
| 8764 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8765 | cat >confcache <<\_ACEOF |
| 8766 | # This file is a shell script that caches the results of configure |
| 8767 | # tests run on this system so they can be shared between configure |
| 8768 | # scripts and configure runs, see configure's option --config-cache. |
| 8769 | # It is not useful on other systems. If it contains results you don't |
| 8770 | # want to keep, you may remove or edit it. |
| 8771 | # |
| 8772 | # config.status only pays attention to the cache file if you give it |
| 8773 | # the --recheck option to rerun configure. |
| 8774 | # |
| 8775 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 8776 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 8777 | # following values. |
| 8778 | |
| 8779 | _ACEOF |
| 8780 | |
| 8781 | # The following way of writing the cache mishandles newlines in values, |
| 8782 | # but we know of no workaround that is simple, portable, and efficient. |
| 8783 | # So, don't put newlines in cache variables' values. |
| 8784 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 8785 | # and sets the high bit in the cache file unless we assign to the vars. |
| 8786 | { |
| 8787 | (set) 2>&1 | |
| 8788 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 8789 | *ac_space=\ *) |
| 8790 | # `set' does not quote correctly, so add quotes (double-quote |
| 8791 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 8792 | sed -n \ |
| 8793 | "s/'/'\\\\''/g; |
| 8794 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 8795 | ;; |
| 8796 | *) |
| 8797 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 8798 | sed -n \ |
| 8799 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 8800 | ;; |
| 8801 | esac; |
| 8802 | } | |
| 8803 | sed ' |
| 8804 | t clear |
| 8805 | : clear |
| 8806 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 8807 | t end |
| 8808 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 8809 | : end' >>confcache |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8810 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8811 | if test -w $cache_file; then |
| 8812 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 8813 | cat confcache >$cache_file |
| 8814 | else |
| 8815 | echo "not updating unwritable cache $cache_file" |
| 8816 | fi |
| 8817 | fi |
| 8818 | rm -f confcache |
| 8819 | |
| 8820 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 8821 | # Let make expand exec_prefix. |
| 8822 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 8823 | |
| 8824 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 8825 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 8826 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 8827 | # (actually we leave an empty line to preserve line numbers). |
| 8828 | if test "x$srcdir" = x.; then |
| 8829 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 8830 | s/:*\$(srcdir):*/:/; |
| 8831 | s/:*\${srcdir}:*/:/; |
| 8832 | s/:*@srcdir@:*/:/; |
| 8833 | s/^\([^=]*=[ ]*\):*/\1/; |
| 8834 | s/:*$//; |
| 8835 | s/^[^=]*=[ ]*$//; |
| 8836 | }' |
| 8837 | fi |
| 8838 | |
| 8839 | DEFS=-DHAVE_CONFIG_H |
| 8840 | |
| 8841 | ac_libobjs= |
| 8842 | ac_ltlibobjs= |
| 8843 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 8844 | # 1. Remove the extension, and $U if already installed. |
| 8845 | ac_i=`echo "$ac_i" | |
| 8846 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 8847 | # 2. Add them. |
| 8848 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 8849 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 8850 | done |
| 8851 | LIBOBJS=$ac_libobjs |
| 8852 | |
| 8853 | LTLIBOBJS=$ac_ltlibobjs |
| 8854 | |
| 8855 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 8856 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 8857 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 8858 | Usually this means the macro was only invoked conditionally." >&5 |
| 8859 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 8860 | Usually this means the macro was only invoked conditionally." >&2;} |
| 8861 | { (exit 1); exit 1; }; } |
| 8862 | fi |
| 8863 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 8864 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 8865 | Usually this means the macro was only invoked conditionally." >&5 |
| 8866 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 8867 | Usually this means the macro was only invoked conditionally." >&2;} |
| 8868 | { (exit 1); exit 1; }; } |
| 8869 | fi |
| 8870 | if test -z "${REMOTE_ONLY_TRUE}" && test -z "${REMOTE_ONLY_FALSE}"; then |
| 8871 | { { echo "$as_me:$LINENO: error: conditional \"REMOTE_ONLY\" was never defined. |
| 8872 | Usually this means the macro was only invoked conditionally." >&5 |
| 8873 | echo "$as_me: error: conditional \"REMOTE_ONLY\" was never defined. |
| 8874 | Usually this means the macro was only invoked conditionally." >&2;} |
| 8875 | { (exit 1); exit 1; }; } |
| 8876 | fi |
| 8877 | if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then |
| 8878 | { { echo "$as_me:$LINENO: error: conditional \"ARCH_IA64\" was never defined. |
| 8879 | Usually this means the macro was only invoked conditionally." >&5 |
| 8880 | echo "$as_me: error: conditional \"ARCH_IA64\" was never defined. |
| 8881 | Usually this means the macro was only invoked conditionally." >&2;} |
| 8882 | { (exit 1); exit 1; }; } |
| 8883 | fi |
mostang.com!davidm | 8d5c44b | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 8884 | if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then |
| 8885 | { { echo "$as_me:$LINENO: error: conditional \"ARCH_HPPA\" was never defined. |
| 8886 | Usually this means the macro was only invoked conditionally." >&5 |
| 8887 | echo "$as_me: error: conditional \"ARCH_HPPA\" was never defined. |
| 8888 | Usually this means the macro was only invoked conditionally." >&2;} |
| 8889 | { (exit 1); exit 1; }; } |
| 8890 | fi |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 8891 | if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then |
| 8892 | { { echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined. |
| 8893 | Usually this means the macro was only invoked conditionally." >&5 |
| 8894 | echo "$as_me: error: conditional \"ARCH_X86\" was never defined. |
| 8895 | Usually this means the macro was only invoked conditionally." >&2;} |
| 8896 | { (exit 1); exit 1; }; } |
| 8897 | fi |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8898 | |
| 8899 | : ${CONFIG_STATUS=./config.status} |
| 8900 | ac_clean_files_save=$ac_clean_files |
| 8901 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 8902 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 8903 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 8904 | cat >$CONFIG_STATUS <<_ACEOF |
| 8905 | #! $SHELL |
| 8906 | # Generated by $as_me. |
| 8907 | # Run this file to recreate the current configuration. |
| 8908 | # Compiler output produced by configure, useful for debugging |
| 8909 | # configure, is in config.log if it exists. |
| 8910 | |
| 8911 | debug=false |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8912 | ac_cs_recheck=false |
| 8913 | ac_cs_silent=false |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8914 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 8915 | _ACEOF |
| 8916 | |
| 8917 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 8918 | ## --------------------- ## |
| 8919 | ## M4sh Initialization. ## |
| 8920 | ## --------------------- ## |
| 8921 | |
| 8922 | # Be Bourne compatible |
| 8923 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 8924 | emulate sh |
| 8925 | NULLCMD=: |
| 8926 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 8927 | # is contrary to our usage. Disable this feature. |
| 8928 | alias -g '${1+"$@"}'='"$@"' |
| 8929 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 8930 | set -o posix |
| 8931 | fi |
| 8932 | |
| 8933 | # Support unset when possible. |
| 8934 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 8935 | as_unset=unset |
| 8936 | else |
| 8937 | as_unset=false |
| 8938 | fi |
| 8939 | |
| 8940 | |
| 8941 | # Work around bugs in pre-3.0 UWIN ksh. |
| 8942 | $as_unset ENV MAIL MAILPATH |
| 8943 | PS1='$ ' |
| 8944 | PS2='> ' |
| 8945 | PS4='+ ' |
| 8946 | |
| 8947 | # NLS nuisances. |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8948 | for as_var in \ |
| 8949 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 8950 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 8951 | LC_TELEPHONE LC_TIME |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8952 | do |
| 8953 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 8954 | eval $as_var=C; export $as_var |
| 8955 | else |
| 8956 | $as_unset $as_var |
| 8957 | fi |
| 8958 | done |
| 8959 | |
| 8960 | # Required to use basename. |
| 8961 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 8962 | as_expr=expr |
| 8963 | else |
| 8964 | as_expr=false |
| 8965 | fi |
| 8966 | |
| 8967 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 8968 | as_basename=basename |
| 8969 | else |
| 8970 | as_basename=false |
| 8971 | fi |
| 8972 | |
| 8973 | |
| 8974 | # Name of the executable. |
| 8975 | as_me=`$as_basename "$0" || |
| 8976 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 8977 | X"$0" : 'X\(//\)$' \| \ |
| 8978 | X"$0" : 'X\(/\)$' \| \ |
| 8979 | . : '\(.\)' 2>/dev/null || |
| 8980 | echo X/"$0" | |
| 8981 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 8982 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 8983 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 8984 | s/.*/./; q'` |
| 8985 | |
| 8986 | |
| 8987 | # PATH needs CR, and LINENO needs CR and PATH. |
| 8988 | # Avoid depending upon Character Ranges. |
| 8989 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 8990 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 8991 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 8992 | as_cr_digits='0123456789' |
| 8993 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 8994 | |
| 8995 | # The user is always right. |
| 8996 | if test "${PATH_SEPARATOR+set}" != set; then |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 8997 | echo "#! /bin/sh" >conf$$.sh |
| 8998 | echo "exit 0" >>conf$$.sh |
| 8999 | chmod +x conf$$.sh |
| 9000 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9001 | PATH_SEPARATOR=';' |
| 9002 | else |
| 9003 | PATH_SEPARATOR=: |
| 9004 | fi |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 9005 | rm -f conf$$.sh |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9006 | fi |
| 9007 | |
| 9008 | |
| 9009 | as_lineno_1=$LINENO |
| 9010 | as_lineno_2=$LINENO |
| 9011 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 9012 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 9013 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 9014 | # Find who we are. Look in the path if we contain no path at all |
| 9015 | # relative or not. |
| 9016 | case $0 in |
| 9017 | *[\\/]* ) as_myself=$0 ;; |
| 9018 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9019 | for as_dir in $PATH |
| 9020 | do |
| 9021 | IFS=$as_save_IFS |
| 9022 | test -z "$as_dir" && as_dir=. |
| 9023 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 9024 | done |
| 9025 | |
| 9026 | ;; |
| 9027 | esac |
| 9028 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 9029 | # in which case we are not to be found in the path. |
| 9030 | if test "x$as_myself" = x; then |
| 9031 | as_myself=$0 |
| 9032 | fi |
| 9033 | if test ! -f "$as_myself"; then |
| 9034 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 9035 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 9036 | { (exit 1); exit 1; }; } |
| 9037 | fi |
| 9038 | case $CONFIG_SHELL in |
| 9039 | '') |
| 9040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9041 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 9042 | do |
| 9043 | IFS=$as_save_IFS |
| 9044 | test -z "$as_dir" && as_dir=. |
| 9045 | for as_base in sh bash ksh sh5; do |
| 9046 | case $as_dir in |
| 9047 | /*) |
| 9048 | if ("$as_dir/$as_base" -c ' |
| 9049 | as_lineno_1=$LINENO |
| 9050 | as_lineno_2=$LINENO |
| 9051 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 9052 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 9053 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 9054 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 9055 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 9056 | CONFIG_SHELL=$as_dir/$as_base |
| 9057 | export CONFIG_SHELL |
| 9058 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 9059 | fi;; |
| 9060 | esac |
| 9061 | done |
| 9062 | done |
| 9063 | ;; |
| 9064 | esac |
| 9065 | |
| 9066 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 9067 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 9068 | # line-number line before each line; the second 'sed' does the real |
| 9069 | # work. The second script uses 'N' to pair each line-number line |
| 9070 | # with the numbered line, and appends trailing '-' during |
| 9071 | # substitution so that $LINENO is not a special case at line end. |
| 9072 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 9073 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 9074 | sed '=' <$as_myself | |
| 9075 | sed ' |
| 9076 | N |
| 9077 | s,$,-, |
| 9078 | : loop |
| 9079 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 9080 | t loop |
| 9081 | s,-$,, |
| 9082 | s,^['$as_cr_digits']*\n,, |
| 9083 | ' >$as_me.lineno && |
| 9084 | chmod +x $as_me.lineno || |
| 9085 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 9086 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 9087 | { (exit 1); exit 1; }; } |
| 9088 | |
| 9089 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 9090 | # (the dirname of $[0] is not the place where we might find the |
| 9091 | # original and so on. Autoconf is especially sensible to this). |
| 9092 | . ./$as_me.lineno |
| 9093 | # Exit status is that of the last command. |
| 9094 | exit |
| 9095 | } |
| 9096 | |
| 9097 | |
| 9098 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 9099 | *c*,-n*) ECHO_N= ECHO_C=' |
| 9100 | ' ECHO_T=' ' ;; |
| 9101 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 9102 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 9103 | esac |
| 9104 | |
| 9105 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 9106 | as_expr=expr |
| 9107 | else |
| 9108 | as_expr=false |
| 9109 | fi |
| 9110 | |
| 9111 | rm -f conf$$ conf$$.exe conf$$.file |
| 9112 | echo >conf$$.file |
| 9113 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 9114 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 9115 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 9116 | if test -f conf$$.exe; then |
| 9117 | # Don't use ln at all; we don't have any links |
| 9118 | as_ln_s='cp -p' |
| 9119 | else |
| 9120 | as_ln_s='ln -s' |
| 9121 | fi |
| 9122 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 9123 | as_ln_s=ln |
| 9124 | else |
| 9125 | as_ln_s='cp -p' |
| 9126 | fi |
| 9127 | rm -f conf$$ conf$$.exe conf$$.file |
| 9128 | |
| 9129 | if mkdir -p . 2>/dev/null; then |
| 9130 | as_mkdir_p=: |
| 9131 | else |
| 9132 | as_mkdir_p=false |
| 9133 | fi |
| 9134 | |
| 9135 | as_executable_p="test -f" |
| 9136 | |
| 9137 | # Sed expression to map a string onto a valid CPP name. |
| 9138 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 9139 | |
| 9140 | # Sed expression to map a string onto a valid variable name. |
| 9141 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 9142 | |
| 9143 | |
| 9144 | # IFS |
| 9145 | # We need space, tab and new line, in precisely that order. |
| 9146 | as_nl=' |
| 9147 | ' |
| 9148 | IFS=" $as_nl" |
| 9149 | |
| 9150 | # CDPATH. |
| 9151 | $as_unset CDPATH |
| 9152 | |
| 9153 | exec 6>&1 |
| 9154 | |
| 9155 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 9156 | # report actual input values of CONFIG_FILES etc. instead of their |
| 9157 | # values after options handling. Logging --version etc. is OK. |
| 9158 | exec 5>>config.log |
| 9159 | { |
| 9160 | echo |
| 9161 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 9162 | ## Running $as_me. ## |
| 9163 | _ASBOX |
| 9164 | } >&5 |
| 9165 | cat >&5 <<_CSEOF |
| 9166 | |
| 9167 | This file was extended by $as_me, which was |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 9168 | generated by GNU Autoconf 2.57. Invocation command line was |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9169 | |
| 9170 | CONFIG_FILES = $CONFIG_FILES |
| 9171 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 9172 | CONFIG_LINKS = $CONFIG_LINKS |
| 9173 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 9174 | $ $0 $@ |
| 9175 | |
| 9176 | _CSEOF |
| 9177 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 9178 | echo >&5 |
| 9179 | _ACEOF |
| 9180 | |
| 9181 | # Files that config.status was made for. |
| 9182 | if test -n "$ac_config_files"; then |
| 9183 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 9184 | fi |
| 9185 | |
| 9186 | if test -n "$ac_config_headers"; then |
| 9187 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 9188 | fi |
| 9189 | |
| 9190 | if test -n "$ac_config_links"; then |
| 9191 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 9192 | fi |
| 9193 | |
| 9194 | if test -n "$ac_config_commands"; then |
| 9195 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 9196 | fi |
| 9197 | |
| 9198 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9199 | |
| 9200 | ac_cs_usage="\ |
| 9201 | \`$as_me' instantiates files from templates according to the |
| 9202 | current configuration. |
| 9203 | |
| 9204 | Usage: $0 [OPTIONS] [FILE]... |
| 9205 | |
| 9206 | -h, --help print this help, then exit |
| 9207 | -V, --version print version number, then exit |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 9208 | -q, --quiet do not print progress messages |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9209 | -d, --debug don't remove temporary files |
| 9210 | --recheck update $as_me by reconfiguring in the same conditions |
| 9211 | --file=FILE[:TEMPLATE] |
| 9212 | instantiate the configuration file FILE |
| 9213 | --header=FILE[:TEMPLATE] |
| 9214 | instantiate the configuration header FILE |
| 9215 | |
| 9216 | Configuration files: |
| 9217 | $config_files |
| 9218 | |
| 9219 | Configuration headers: |
| 9220 | $config_headers |
| 9221 | |
| 9222 | Configuration links: |
| 9223 | $config_links |
| 9224 | |
| 9225 | Configuration commands: |
| 9226 | $config_commands |
| 9227 | |
| 9228 | Report bugs to <bug-autoconf@gnu.org>." |
| 9229 | _ACEOF |
| 9230 | |
| 9231 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9232 | ac_cs_version="\\ |
| 9233 | config.status |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 9234 | configured by $0, generated by GNU Autoconf 2.57, |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9235 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 9236 | |
| 9237 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 9238 | Free Software Foundation, Inc. |
| 9239 | This config.status script is free software; the Free Software Foundation |
| 9240 | gives unlimited permission to copy, distribute and modify it." |
| 9241 | srcdir=$srcdir |
| 9242 | INSTALL="$INSTALL" |
| 9243 | _ACEOF |
| 9244 | |
| 9245 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9246 | # If no file are specified by the user, then we need to provide default |
| 9247 | # value. By we need to know if files were specified by the user. |
| 9248 | ac_need_defaults=: |
| 9249 | while test $# != 0 |
| 9250 | do |
| 9251 | case $1 in |
| 9252 | --*=*) |
| 9253 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 9254 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 9255 | ac_shift=: |
| 9256 | ;; |
| 9257 | -*) |
| 9258 | ac_option=$1 |
| 9259 | ac_optarg=$2 |
| 9260 | ac_shift=shift |
| 9261 | ;; |
| 9262 | *) # This is not an option, so the user has probably given explicit |
| 9263 | # arguments. |
| 9264 | ac_option=$1 |
| 9265 | ac_need_defaults=false;; |
| 9266 | esac |
| 9267 | |
| 9268 | case $ac_option in |
| 9269 | # Handling of the options. |
| 9270 | _ACEOF |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9271 | cat >>$CONFIG_STATUS <<\_ACEOF |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 9272 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 9273 | ac_cs_recheck=: ;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9274 | --version | --vers* | -V ) |
| 9275 | echo "$ac_cs_version"; exit 0 ;; |
| 9276 | --he | --h) |
| 9277 | # Conflict between --help and --header |
| 9278 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 9279 | Try \`$0 --help' for more information." >&5 |
| 9280 | echo "$as_me: error: ambiguous option: $1 |
| 9281 | Try \`$0 --help' for more information." >&2;} |
| 9282 | { (exit 1); exit 1; }; };; |
| 9283 | --help | --hel | -h ) |
| 9284 | echo "$ac_cs_usage"; exit 0 ;; |
| 9285 | --debug | --d* | -d ) |
| 9286 | debug=: ;; |
| 9287 | --file | --fil | --fi | --f ) |
| 9288 | $ac_shift |
| 9289 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 9290 | ac_need_defaults=false;; |
| 9291 | --header | --heade | --head | --hea ) |
| 9292 | $ac_shift |
| 9293 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 9294 | ac_need_defaults=false;; |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 9295 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 9296 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 9297 | ac_cs_silent=: ;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9298 | |
| 9299 | # This is an error. |
| 9300 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 9301 | Try \`$0 --help' for more information." >&5 |
| 9302 | echo "$as_me: error: unrecognized option: $1 |
| 9303 | Try \`$0 --help' for more information." >&2;} |
| 9304 | { (exit 1); exit 1; }; } ;; |
| 9305 | |
| 9306 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 9307 | |
| 9308 | esac |
| 9309 | shift |
| 9310 | done |
| 9311 | |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 9312 | ac_configure_extra_args= |
| 9313 | |
| 9314 | if $ac_cs_silent; then |
| 9315 | exec 6>/dev/null |
| 9316 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 9317 | fi |
| 9318 | |
| 9319 | _ACEOF |
| 9320 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9321 | if \$ac_cs_recheck; then |
| 9322 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 9323 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 9324 | fi |
| 9325 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9326 | _ACEOF |
| 9327 | |
| 9328 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9329 | # |
| 9330 | # INIT-COMMANDS section. |
| 9331 | # |
| 9332 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9333 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9334 | |
| 9335 | _ACEOF |
| 9336 | |
| 9337 | |
| 9338 | |
| 9339 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9340 | for ac_config_target in $ac_config_targets |
| 9341 | do |
| 9342 | case "$ac_config_target" in |
| 9343 | # Handling of arguments. |
| 9344 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 9345 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 9346 | "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
| 9347 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
mostang.com!davidm | f648f6f | 2003-01-17 07:48:52 +0000 | [diff] [blame] | 9348 | "doc/common.tex" ) CONFIG_FILES="$CONFIG_FILES doc/common.tex" ;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9349 | "include/libunwind.h" ) CONFIG_LINKS="$CONFIG_LINKS include/libunwind.h:include/libunwind-$target_arch.h" ;; |
mostang.com!davidm | 51e4d34 | 2002-12-12 09:17:41 +0000 | [diff] [blame] | 9350 | "include/tdep.h" ) CONFIG_LINKS="$CONFIG_LINKS include/tdep.h:include/tdep-$target_arch.h" ;; |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9351 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9352 | "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
| 9353 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 9354 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 9355 | { (exit 1); exit 1; }; };; |
| 9356 | esac |
| 9357 | done |
| 9358 | |
| 9359 | # If the user did not use the arguments to specify the items to instantiate, |
| 9360 | # then the envvar interface is used. Set only those that are not. |
| 9361 | # We use the long form for the default assignment because of an extremely |
| 9362 | # bizarre bug on SunOS 4.1.3. |
| 9363 | if $ac_need_defaults; then |
| 9364 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 9365 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 9366 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
| 9367 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 9368 | fi |
| 9369 | |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 9370 | # Have a temporary directory for convenience. Make it in the build tree |
| 9371 | # simply because there is no reason to put it here, and in addition, |
| 9372 | # creating and moving files from /tmp can sometimes cause problems. |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9373 | # Create a temporary directory, and hook for its removal unless debugging. |
| 9374 | $debug || |
| 9375 | { |
| 9376 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 9377 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 9378 | } |
| 9379 | |
| 9380 | # Create a (secure) tmp directory for tmp files. |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 9381 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9382 | { |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 9383 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9384 | test -n "$tmp" && test -d "$tmp" |
| 9385 | } || |
| 9386 | { |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 9387 | tmp=./confstat$$-$RANDOM |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9388 | (umask 077 && mkdir $tmp) |
| 9389 | } || |
| 9390 | { |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 9391 | echo "$me: cannot create a temporary directory in ." >&2 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9392 | { (exit 1); exit 1; } |
| 9393 | } |
| 9394 | |
| 9395 | _ACEOF |
| 9396 | |
| 9397 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9398 | |
| 9399 | # |
| 9400 | # CONFIG_FILES section. |
| 9401 | # |
| 9402 | |
| 9403 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 9404 | # This happens for instance when ./config.status config.h |
| 9405 | if test -n "\$CONFIG_FILES"; then |
| 9406 | # Protect against being on the right side of a sed subst in config.status. |
| 9407 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 9408 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 9409 | s,@SHELL@,$SHELL,;t t |
| 9410 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 9411 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 9412 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 9413 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 9414 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 9415 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 9416 | s,@exec_prefix@,$exec_prefix,;t t |
| 9417 | s,@prefix@,$prefix,;t t |
| 9418 | s,@program_transform_name@,$program_transform_name,;t t |
| 9419 | s,@bindir@,$bindir,;t t |
| 9420 | s,@sbindir@,$sbindir,;t t |
| 9421 | s,@libexecdir@,$libexecdir,;t t |
| 9422 | s,@datadir@,$datadir,;t t |
| 9423 | s,@sysconfdir@,$sysconfdir,;t t |
| 9424 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 9425 | s,@localstatedir@,$localstatedir,;t t |
| 9426 | s,@libdir@,$libdir,;t t |
| 9427 | s,@includedir@,$includedir,;t t |
| 9428 | s,@oldincludedir@,$oldincludedir,;t t |
| 9429 | s,@infodir@,$infodir,;t t |
| 9430 | s,@mandir@,$mandir,;t t |
| 9431 | s,@build_alias@,$build_alias,;t t |
| 9432 | s,@host_alias@,$host_alias,;t t |
| 9433 | s,@target_alias@,$target_alias,;t t |
| 9434 | s,@DEFS@,$DEFS,;t t |
| 9435 | s,@ECHO_C@,$ECHO_C,;t t |
| 9436 | s,@ECHO_N@,$ECHO_N,;t t |
| 9437 | s,@ECHO_T@,$ECHO_T,;t t |
| 9438 | s,@LIBS@,$LIBS,;t t |
| 9439 | s,@build@,$build,;t t |
| 9440 | s,@build_cpu@,$build_cpu,;t t |
| 9441 | s,@build_vendor@,$build_vendor,;t t |
| 9442 | s,@build_os@,$build_os,;t t |
| 9443 | s,@host@,$host,;t t |
| 9444 | s,@host_cpu@,$host_cpu,;t t |
| 9445 | s,@host_vendor@,$host_vendor,;t t |
| 9446 | s,@host_os@,$host_os,;t t |
| 9447 | s,@target@,$target,;t t |
| 9448 | s,@target_cpu@,$target_cpu,;t t |
| 9449 | s,@target_vendor@,$target_vendor,;t t |
| 9450 | s,@target_os@,$target_os,;t t |
| 9451 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 9452 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 9453 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 9454 | s,@PACKAGE@,$PACKAGE,;t t |
| 9455 | s,@VERSION@,$VERSION,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9456 | s,@ACLOCAL@,$ACLOCAL,;t t |
| 9457 | s,@AUTOCONF@,$AUTOCONF,;t t |
| 9458 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
| 9459 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
| 9460 | s,@MAKEINFO@,$MAKEINFO,;t t |
| 9461 | s,@AMTAR@,$AMTAR,;t t |
| 9462 | s,@install_sh@,$install_sh,;t t |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9463 | s,@STRIP@,$STRIP,;t t |
| 9464 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9465 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
| 9466 | s,@AWK@,$AWK,;t t |
| 9467 | s,@SET_MAKE@,$SET_MAKE,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9468 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
| 9469 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t |
| 9470 | s,@MAINT@,$MAINT,;t t |
| 9471 | s,@CC@,$CC,;t t |
| 9472 | s,@CFLAGS@,$CFLAGS,;t t |
| 9473 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 9474 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 9475 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9476 | s,@EXEEXT@,$EXEEXT,;t t |
| 9477 | s,@OBJEXT@,$OBJEXT,;t t |
| 9478 | s,@DEPDIR@,$DEPDIR,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9479 | s,@am__include@,$am__include,;t t |
| 9480 | s,@am__quote@,$am__quote,;t t |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9481 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
| 9482 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
| 9483 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9484 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 9485 | s,@LN_S@,$LN_S,;t t |
| 9486 | s,@ECHO@,$ECHO,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9487 | s,@RANLIB@,$RANLIB,;t t |
| 9488 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9489 | s,@CPP@,$CPP,;t t |
| 9490 | s,@EGREP@,$EGREP,;t t |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 9491 | s,@LIBTOOL@,$LIBTOOL,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9492 | s,@LIBOBJS@,$LIBOBJS,;t t |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9493 | s,@CCAS@,$CCAS,;t t |
| 9494 | s,@CCASFLAGS@,$CCASFLAGS,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9495 | s,@REMOTE_ONLY_TRUE@,$REMOTE_ONLY_TRUE,;t t |
| 9496 | s,@REMOTE_ONLY_FALSE@,$REMOTE_ONLY_FALSE,;t t |
| 9497 | s,@ARCH_IA64_TRUE@,$ARCH_IA64_TRUE,;t t |
| 9498 | s,@ARCH_IA64_FALSE@,$ARCH_IA64_FALSE,;t t |
mostang.com!davidm | 8d5c44b | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 9499 | s,@ARCH_HPPA_TRUE@,$ARCH_HPPA_TRUE,;t t |
| 9500 | s,@ARCH_HPPA_FALSE@,$ARCH_HPPA_FALSE,;t t |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9501 | s,@ARCH_X86_TRUE@,$ARCH_X86_TRUE,;t t |
| 9502 | s,@ARCH_X86_FALSE@,$ARCH_X86_FALSE,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9503 | s,@arch@,$arch,;t t |
| 9504 | s,@ARCH@,$ARCH,;t t |
| 9505 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 9506 | CEOF |
| 9507 | |
| 9508 | _ACEOF |
| 9509 | |
| 9510 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9511 | # Split the substitutions into bite-sized pieces for seds with |
| 9512 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 9513 | ac_max_sed_lines=48 |
| 9514 | ac_sed_frag=1 # Number of current file. |
| 9515 | ac_beg=1 # First line for current file. |
| 9516 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 9517 | ac_more_lines=: |
| 9518 | ac_sed_cmds= |
| 9519 | while $ac_more_lines; do |
| 9520 | if test $ac_beg -gt 1; then |
| 9521 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 9522 | else |
| 9523 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 9524 | fi |
| 9525 | if test ! -s $tmp/subs.frag; then |
| 9526 | ac_more_lines=false |
| 9527 | else |
| 9528 | # The purpose of the label and of the branching condition is to |
| 9529 | # speed up the sed processing (if there are no `@' at all, there |
| 9530 | # is no need to browse any of the substitutions). |
| 9531 | # These are the two extra sed commands mentioned above. |
| 9532 | (echo ':t |
| 9533 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 9534 | if test -z "$ac_sed_cmds"; then |
| 9535 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 9536 | else |
| 9537 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 9538 | fi |
| 9539 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 9540 | ac_beg=$ac_end |
| 9541 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 9542 | fi |
| 9543 | done |
| 9544 | if test -z "$ac_sed_cmds"; then |
| 9545 | ac_sed_cmds=cat |
| 9546 | fi |
| 9547 | fi # test -n "$CONFIG_FILES" |
| 9548 | |
| 9549 | _ACEOF |
| 9550 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9551 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 9552 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 9553 | case $ac_file in |
| 9554 | - | *:- | *:-:* ) # input from stdin |
| 9555 | cat >$tmp/stdin |
| 9556 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 9557 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 9558 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 9559 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 9560 | * ) ac_file_in=$ac_file.in ;; |
| 9561 | esac |
| 9562 | |
| 9563 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 9564 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 9565 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9566 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 9567 | X"$ac_file" : 'X\(//\)$' \| \ |
| 9568 | X"$ac_file" : 'X\(/\)' \| \ |
| 9569 | . : '\(.\)' 2>/dev/null || |
| 9570 | echo X"$ac_file" | |
| 9571 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9572 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9573 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 9574 | /^X\(\/\).*/{ s//\1/; q; } |
| 9575 | s/.*/./; q'` |
| 9576 | { if $as_mkdir_p; then |
| 9577 | mkdir -p "$ac_dir" |
| 9578 | else |
| 9579 | as_dir="$ac_dir" |
| 9580 | as_dirs= |
| 9581 | while test ! -d "$as_dir"; do |
| 9582 | as_dirs="$as_dir $as_dirs" |
| 9583 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 9584 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9585 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 9586 | X"$as_dir" : 'X\(//\)$' \| \ |
| 9587 | X"$as_dir" : 'X\(/\)' \| \ |
| 9588 | . : '\(.\)' 2>/dev/null || |
| 9589 | echo X"$as_dir" | |
| 9590 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9591 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9592 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 9593 | /^X\(\/\).*/{ s//\1/; q; } |
| 9594 | s/.*/./; q'` |
| 9595 | done |
| 9596 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 9597 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 9598 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 9599 | { (exit 1); exit 1; }; }; } |
| 9600 | |
| 9601 | ac_builddir=. |
| 9602 | |
| 9603 | if test "$ac_dir" != .; then |
| 9604 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 9605 | # A "../" for each directory in $ac_dir_suffix. |
| 9606 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 9607 | else |
| 9608 | ac_dir_suffix= ac_top_builddir= |
| 9609 | fi |
| 9610 | |
| 9611 | case $srcdir in |
| 9612 | .) # No --srcdir option. We are building in place. |
| 9613 | ac_srcdir=. |
| 9614 | if test -z "$ac_top_builddir"; then |
| 9615 | ac_top_srcdir=. |
| 9616 | else |
| 9617 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 9618 | fi ;; |
| 9619 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 9620 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 9621 | ac_top_srcdir=$srcdir ;; |
| 9622 | *) # Relative path. |
| 9623 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 9624 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 9625 | esac |
| 9626 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 9627 | # absolute. |
| 9628 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 9629 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
| 9630 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 9631 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 9632 | |
| 9633 | |
| 9634 | case $INSTALL in |
| 9635 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 9636 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 9637 | esac |
| 9638 | |
| 9639 | if test x"$ac_file" != x-; then |
| 9640 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 9641 | echo "$as_me: creating $ac_file" >&6;} |
| 9642 | rm -f "$ac_file" |
| 9643 | fi |
| 9644 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 9645 | # use $as_me), people would be surprised to read: |
| 9646 | # /* config.h. Generated by config.status. */ |
| 9647 | if test x"$ac_file" = x-; then |
| 9648 | configure_input= |
| 9649 | else |
| 9650 | configure_input="$ac_file. " |
| 9651 | fi |
| 9652 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 9653 | sed 's,.*/,,'` by configure." |
| 9654 | |
| 9655 | # First look for the input files in the build tree, otherwise in the |
| 9656 | # src tree. |
| 9657 | ac_file_inputs=`IFS=: |
| 9658 | for f in $ac_file_in; do |
| 9659 | case $f in |
| 9660 | -) echo $tmp/stdin ;; |
| 9661 | [\\/$]*) |
| 9662 | # Absolute (can't be DOS-style, as IFS=:) |
| 9663 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 9664 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 9665 | { (exit 1); exit 1; }; } |
| 9666 | echo $f;; |
| 9667 | *) # Relative |
| 9668 | if test -f "$f"; then |
| 9669 | # Build tree |
| 9670 | echo $f |
| 9671 | elif test -f "$srcdir/$f"; then |
| 9672 | # Source tree |
| 9673 | echo $srcdir/$f |
| 9674 | else |
| 9675 | # /dev/null tree |
| 9676 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 9677 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 9678 | { (exit 1); exit 1; }; } |
| 9679 | fi;; |
| 9680 | esac |
| 9681 | done` || { (exit 1); exit 1; } |
| 9682 | _ACEOF |
| 9683 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9684 | sed "$ac_vpsub |
| 9685 | $extrasub |
| 9686 | _ACEOF |
| 9687 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9688 | :t |
| 9689 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 9690 | s,@configure_input@,$configure_input,;t t |
| 9691 | s,@srcdir@,$ac_srcdir,;t t |
| 9692 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 9693 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 9694 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 9695 | s,@builddir@,$ac_builddir,;t t |
| 9696 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 9697 | s,@top_builddir@,$ac_top_builddir,;t t |
| 9698 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 9699 | s,@INSTALL@,$ac_INSTALL,;t t |
| 9700 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 9701 | rm -f $tmp/stdin |
| 9702 | if test x"$ac_file" != x-; then |
| 9703 | mv $tmp/out $ac_file |
| 9704 | else |
| 9705 | cat $tmp/out |
| 9706 | rm -f $tmp/out |
| 9707 | fi |
| 9708 | |
| 9709 | done |
| 9710 | _ACEOF |
| 9711 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9712 | |
| 9713 | # |
| 9714 | # CONFIG_HEADER section. |
| 9715 | # |
| 9716 | |
| 9717 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 9718 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 9719 | # |
| 9720 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 9721 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 9722 | ac_dB='[ ].*$,\1#\2' |
| 9723 | ac_dC=' ' |
| 9724 | ac_dD=',;t' |
| 9725 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 9726 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 9727 | ac_uB='$,\1#\2define\3' |
| 9728 | ac_uC=' ' |
| 9729 | ac_uD=',;t' |
| 9730 | |
| 9731 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 9732 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 9733 | case $ac_file in |
| 9734 | - | *:- | *:-:* ) # input from stdin |
| 9735 | cat >$tmp/stdin |
| 9736 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 9737 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 9738 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 9739 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 9740 | * ) ac_file_in=$ac_file.in ;; |
| 9741 | esac |
| 9742 | |
| 9743 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 9744 | echo "$as_me: creating $ac_file" >&6;} |
| 9745 | |
| 9746 | # First look for the input files in the build tree, otherwise in the |
| 9747 | # src tree. |
| 9748 | ac_file_inputs=`IFS=: |
| 9749 | for f in $ac_file_in; do |
| 9750 | case $f in |
| 9751 | -) echo $tmp/stdin ;; |
| 9752 | [\\/$]*) |
| 9753 | # Absolute (can't be DOS-style, as IFS=:) |
| 9754 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 9755 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 9756 | { (exit 1); exit 1; }; } |
| 9757 | echo $f;; |
| 9758 | *) # Relative |
| 9759 | if test -f "$f"; then |
| 9760 | # Build tree |
| 9761 | echo $f |
| 9762 | elif test -f "$srcdir/$f"; then |
| 9763 | # Source tree |
| 9764 | echo $srcdir/$f |
| 9765 | else |
| 9766 | # /dev/null tree |
| 9767 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 9768 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 9769 | { (exit 1); exit 1; }; } |
| 9770 | fi;; |
| 9771 | esac |
| 9772 | done` || { (exit 1); exit 1; } |
| 9773 | # Remove the trailing spaces. |
| 9774 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 9775 | |
| 9776 | _ACEOF |
| 9777 | |
| 9778 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 9779 | # `conftest.undefs', that substitutes the proper values into |
| 9780 | # config.h.in to produce config.h. The first handles `#define' |
| 9781 | # templates, and the second `#undef' templates. |
| 9782 | # And first: Protect against being on the right side of a sed subst in |
| 9783 | # config.status. Protect against being in an unquoted here document |
| 9784 | # in config.status. |
| 9785 | rm -f conftest.defines conftest.undefs |
| 9786 | # Using a here document instead of a string reduces the quoting nightmare. |
| 9787 | # Putting comments in sed scripts is not portable. |
| 9788 | # |
| 9789 | # `end' is used to avoid that the second main sed command (meant for |
| 9790 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 9791 | # See the Autoconf documentation for `clear'. |
| 9792 | cat >confdef2sed.sed <<\_ACEOF |
| 9793 | s/[\\&,]/\\&/g |
| 9794 | s,[\\$`],\\&,g |
| 9795 | t clear |
| 9796 | : clear |
| 9797 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 9798 | t end |
| 9799 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 9800 | : end |
| 9801 | _ACEOF |
| 9802 | # If some macros were called several times there might be several times |
| 9803 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 9804 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 9805 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 9806 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 9807 | rm -f confdef2sed.sed |
| 9808 | |
| 9809 | # This sed command replaces #undef with comments. This is necessary, for |
| 9810 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 9811 | # on some systems where configure will not decide to define it. |
| 9812 | cat >>conftest.undefs <<\_ACEOF |
| 9813 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 9814 | _ACEOF |
| 9815 | |
| 9816 | # Break up conftest.defines because some shells have a limit on the size |
| 9817 | # of here documents, and old seds have small limits too (100 cmds). |
| 9818 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 9819 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 9820 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 9821 | echo ' :' >>$CONFIG_STATUS |
| 9822 | rm -f conftest.tail |
| 9823 | while grep . conftest.defines >/dev/null |
| 9824 | do |
| 9825 | # Write a limited-size here document to $tmp/defines.sed. |
| 9826 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 9827 | # Speed up: don't consider the non `#define' lines. |
| 9828 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 9829 | # Work around the forget-to-reset-the-flag bug. |
| 9830 | echo 't clr' >>$CONFIG_STATUS |
| 9831 | echo ': clr' >>$CONFIG_STATUS |
| 9832 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 9833 | echo 'CEOF |
| 9834 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 9835 | rm -f $tmp/in |
| 9836 | mv $tmp/out $tmp/in |
| 9837 | ' >>$CONFIG_STATUS |
| 9838 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 9839 | rm -f conftest.defines |
| 9840 | mv conftest.tail conftest.defines |
| 9841 | done |
| 9842 | rm -f conftest.defines |
| 9843 | echo ' fi # grep' >>$CONFIG_STATUS |
| 9844 | echo >>$CONFIG_STATUS |
| 9845 | |
| 9846 | # Break up conftest.undefs because some shells have a limit on the size |
| 9847 | # of here documents, and old seds have small limits too (100 cmds). |
| 9848 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 9849 | rm -f conftest.tail |
| 9850 | while grep . conftest.undefs >/dev/null |
| 9851 | do |
| 9852 | # Write a limited-size here document to $tmp/undefs.sed. |
| 9853 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 9854 | # Speed up: don't consider the non `#undef' |
| 9855 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 9856 | # Work around the forget-to-reset-the-flag bug. |
| 9857 | echo 't clr' >>$CONFIG_STATUS |
| 9858 | echo ': clr' >>$CONFIG_STATUS |
| 9859 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 9860 | echo 'CEOF |
| 9861 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 9862 | rm -f $tmp/in |
| 9863 | mv $tmp/out $tmp/in |
| 9864 | ' >>$CONFIG_STATUS |
| 9865 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 9866 | rm -f conftest.undefs |
| 9867 | mv conftest.tail conftest.undefs |
| 9868 | done |
| 9869 | rm -f conftest.undefs |
| 9870 | |
| 9871 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9872 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 9873 | # use $as_me), people would be surprised to read: |
| 9874 | # /* config.h. Generated by config.status. */ |
| 9875 | if test x"$ac_file" = x-; then |
| 9876 | echo "/* Generated by configure. */" >$tmp/config.h |
| 9877 | else |
| 9878 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 9879 | fi |
| 9880 | cat $tmp/in >>$tmp/config.h |
| 9881 | rm -f $tmp/in |
| 9882 | if test x"$ac_file" != x-; then |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 9883 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9884 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 9885 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 9886 | else |
| 9887 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 9888 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9889 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 9890 | X"$ac_file" : 'X\(//\)$' \| \ |
| 9891 | X"$ac_file" : 'X\(/\)' \| \ |
| 9892 | . : '\(.\)' 2>/dev/null || |
| 9893 | echo X"$ac_file" | |
| 9894 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9895 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9896 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 9897 | /^X\(\/\).*/{ s//\1/; q; } |
| 9898 | s/.*/./; q'` |
| 9899 | { if $as_mkdir_p; then |
| 9900 | mkdir -p "$ac_dir" |
| 9901 | else |
| 9902 | as_dir="$ac_dir" |
| 9903 | as_dirs= |
| 9904 | while test ! -d "$as_dir"; do |
| 9905 | as_dirs="$as_dir $as_dirs" |
| 9906 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 9907 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9908 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 9909 | X"$as_dir" : 'X\(//\)$' \| \ |
| 9910 | X"$as_dir" : 'X\(/\)' \| \ |
| 9911 | . : '\(.\)' 2>/dev/null || |
| 9912 | echo X"$as_dir" | |
| 9913 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9914 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9915 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 9916 | /^X\(\/\).*/{ s//\1/; q; } |
| 9917 | s/.*/./; q'` |
| 9918 | done |
| 9919 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 9920 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 9921 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 9922 | { (exit 1); exit 1; }; }; } |
| 9923 | |
| 9924 | rm -f $ac_file |
| 9925 | mv $tmp/config.h $ac_file |
| 9926 | fi |
| 9927 | else |
| 9928 | cat $tmp/config.h |
| 9929 | rm -f $tmp/config.h |
| 9930 | fi |
| 9931 | # Run the commands associated with the file. |
| 9932 | case $ac_file in |
| 9933 | include/config.h ) # update the timestamp |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9934 | echo 'timestamp for include/config.h' >"include/stamp-h1" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9935 | ;; |
| 9936 | esac |
| 9937 | done |
| 9938 | _ACEOF |
| 9939 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9940 | |
| 9941 | # |
| 9942 | # CONFIG_LINKS section. |
| 9943 | # |
| 9944 | |
| 9945 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
| 9946 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 9947 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 9948 | |
| 9949 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
| 9950 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} |
| 9951 | |
| 9952 | if test ! -r $srcdir/$ac_source; then |
| 9953 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
| 9954 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} |
| 9955 | { (exit 1); exit 1; }; } |
| 9956 | fi |
| 9957 | rm -f $ac_dest |
| 9958 | |
| 9959 | # Make relative symlinks. |
| 9960 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 9961 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9962 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 9963 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 9964 | X"$ac_dest" : 'X\(/\)' \| \ |
| 9965 | . : '\(.\)' 2>/dev/null || |
| 9966 | echo X"$ac_dest" | |
| 9967 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9968 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9969 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 9970 | /^X\(\/\).*/{ s//\1/; q; } |
| 9971 | s/.*/./; q'` |
| 9972 | { if $as_mkdir_p; then |
| 9973 | mkdir -p "$ac_dest_dir" |
| 9974 | else |
| 9975 | as_dir="$ac_dest_dir" |
| 9976 | as_dirs= |
| 9977 | while test ! -d "$as_dir"; do |
| 9978 | as_dirs="$as_dir $as_dirs" |
| 9979 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 9980 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9981 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 9982 | X"$as_dir" : 'X\(//\)$' \| \ |
| 9983 | X"$as_dir" : 'X\(/\)' \| \ |
| 9984 | . : '\(.\)' 2>/dev/null || |
| 9985 | echo X"$as_dir" | |
| 9986 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9987 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9988 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 9989 | /^X\(\/\).*/{ s//\1/; q; } |
| 9990 | s/.*/./; q'` |
| 9991 | done |
| 9992 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 9993 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 |
| 9994 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} |
| 9995 | { (exit 1); exit 1; }; }; } |
| 9996 | |
| 9997 | ac_builddir=. |
| 9998 | |
| 9999 | if test "$ac_dest_dir" != .; then |
| 10000 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` |
| 10001 | # A "../" for each directory in $ac_dir_suffix. |
| 10002 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 10003 | else |
| 10004 | ac_dir_suffix= ac_top_builddir= |
| 10005 | fi |
| 10006 | |
| 10007 | case $srcdir in |
| 10008 | .) # No --srcdir option. We are building in place. |
| 10009 | ac_srcdir=. |
| 10010 | if test -z "$ac_top_builddir"; then |
| 10011 | ac_top_srcdir=. |
| 10012 | else |
| 10013 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 10014 | fi ;; |
| 10015 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 10016 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 10017 | ac_top_srcdir=$srcdir ;; |
| 10018 | *) # Relative path. |
| 10019 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 10020 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 10021 | esac |
| 10022 | # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be |
| 10023 | # absolute. |
| 10024 | ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd` |
| 10025 | ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd` |
| 10026 | ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd` |
| 10027 | ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd` |
| 10028 | |
| 10029 | |
| 10030 | case $srcdir in |
| 10031 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; |
| 10032 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; |
| 10033 | esac |
| 10034 | |
| 10035 | # Try a symlink, then a hard link, then a copy. |
| 10036 | ln -s $ac_rel_source $ac_dest 2>/dev/null || |
| 10037 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || |
| 10038 | cp -p $srcdir/$ac_source $ac_dest || |
| 10039 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 |
| 10040 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} |
| 10041 | { (exit 1); exit 1; }; } |
| 10042 | done |
| 10043 | _ACEOF |
| 10044 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10045 | |
| 10046 | # |
| 10047 | # CONFIG_COMMANDS section. |
| 10048 | # |
| 10049 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 10050 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 10051 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10052 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 10053 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10054 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 10055 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 10056 | X"$ac_dest" : 'X\(/\)' \| \ |
| 10057 | . : '\(.\)' 2>/dev/null || |
| 10058 | echo X"$ac_dest" | |
| 10059 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10060 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10061 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10062 | /^X\(\/\).*/{ s//\1/; q; } |
| 10063 | s/.*/./; q'` |
| 10064 | ac_builddir=. |
| 10065 | |
| 10066 | if test "$ac_dir" != .; then |
| 10067 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 10068 | # A "../" for each directory in $ac_dir_suffix. |
| 10069 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 10070 | else |
| 10071 | ac_dir_suffix= ac_top_builddir= |
| 10072 | fi |
| 10073 | |
| 10074 | case $srcdir in |
| 10075 | .) # No --srcdir option. We are building in place. |
| 10076 | ac_srcdir=. |
| 10077 | if test -z "$ac_top_builddir"; then |
| 10078 | ac_top_srcdir=. |
| 10079 | else |
| 10080 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 10081 | fi ;; |
| 10082 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 10083 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 10084 | ac_top_srcdir=$srcdir ;; |
| 10085 | *) # Relative path. |
| 10086 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 10087 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 10088 | esac |
| 10089 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 10090 | # absolute. |
| 10091 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 10092 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
| 10093 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 10094 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 10095 | |
| 10096 | |
| 10097 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 10098 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 10099 | case $ac_dest in |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 10100 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
| 10101 | # Strip MF so we end up with the name of the file. |
| 10102 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 10103 | # Check whether this is an Automake generated Makefile or not. |
| 10104 | # We used to match only the files named `Makefile.in', but |
| 10105 | # some people rename them; so instead we look at the file content. |
| 10106 | # Grep'ing the first line is not enough: some people post-process |
| 10107 | # each Makefile.in and add a new line on top of each file to say so. |
| 10108 | # So let's grep whole file. |
| 10109 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
| 10110 | dirpart=`(dirname "$mf") 2>/dev/null || |
| 10111 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10112 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 10113 | X"$mf" : 'X\(//\)$' \| \ |
| 10114 | X"$mf" : 'X\(/\)' \| \ |
| 10115 | . : '\(.\)' 2>/dev/null || |
| 10116 | echo X"$mf" | |
| 10117 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10118 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10119 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10120 | /^X\(\/\).*/{ s//\1/; q; } |
| 10121 | s/.*/./; q'` |
| 10122 | else |
| 10123 | continue |
| 10124 | fi |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 10125 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
| 10126 | # Extract the definition of DEP_FILES from the Makefile without |
| 10127 | # running `make'. |
| 10128 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
| 10129 | test -z "$DEPDIR" && continue |
| 10130 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 10131 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
| 10132 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
| 10133 | # We invoke sed twice because it is the simplest approach to |
| 10134 | # changing $(DEPDIR) to its actual value in the expansion. |
| 10135 | for file in `sed -n -e ' |
| 10136 | /^DEP_FILES = .*\\\\$/ { |
| 10137 | s/^DEP_FILES = // |
| 10138 | :loop |
| 10139 | s/\\\\$// |
| 10140 | p |
| 10141 | n |
| 10142 | /\\\\$/ b loop |
| 10143 | p |
| 10144 | } |
| 10145 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
| 10146 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 10147 | # Make sure the directory exists. |
| 10148 | test -f "$dirpart/$file" && continue |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 10149 | fdir=`(dirname "$file") 2>/dev/null || |
| 10150 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10151 | X"$file" : 'X\(//\)[^/]' \| \ |
| 10152 | X"$file" : 'X\(//\)$' \| \ |
| 10153 | X"$file" : 'X\(/\)' \| \ |
| 10154 | . : '\(.\)' 2>/dev/null || |
| 10155 | echo X"$file" | |
| 10156 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10157 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10158 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10159 | /^X\(\/\).*/{ s//\1/; q; } |
| 10160 | s/.*/./; q'` |
| 10161 | { if $as_mkdir_p; then |
| 10162 | mkdir -p $dirpart/$fdir |
| 10163 | else |
| 10164 | as_dir=$dirpart/$fdir |
| 10165 | as_dirs= |
| 10166 | while test ! -d "$as_dir"; do |
| 10167 | as_dirs="$as_dir $as_dirs" |
| 10168 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 10169 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10170 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 10171 | X"$as_dir" : 'X\(//\)$' \| \ |
| 10172 | X"$as_dir" : 'X\(/\)' \| \ |
| 10173 | . : '\(.\)' 2>/dev/null || |
| 10174 | echo X"$as_dir" | |
| 10175 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10176 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10177 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10178 | /^X\(\/\).*/{ s//\1/; q; } |
| 10179 | s/.*/./; q'` |
| 10180 | done |
| 10181 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 10182 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
| 10183 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
| 10184 | { (exit 1); exit 1; }; }; } |
| 10185 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 10186 | # echo "creating $dirpart/$file" |
| 10187 | echo '# dummy' > "$dirpart/$file" |
| 10188 | done |
| 10189 | done |
| 10190 | ;; |
| 10191 | esac |
| 10192 | done |
| 10193 | _ACEOF |
| 10194 | |
| 10195 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10196 | |
| 10197 | { (exit 0); exit 0; } |
| 10198 | _ACEOF |
| 10199 | chmod +x $CONFIG_STATUS |
| 10200 | ac_clean_files=$ac_clean_files_save |
| 10201 | |
| 10202 | |
| 10203 | # configure is writing to config.log, and then calls config.status. |
| 10204 | # config.status does its own redirection, appending to config.log. |
| 10205 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 10206 | # by configure, so config.status won't be able to write to it; its |
| 10207 | # output is simply discarded. So we exec the FD to /dev/null, |
| 10208 | # effectively closing config.log, so it can be properly (re)opened and |
| 10209 | # appended to by config.status. When coming back to configure, we |
| 10210 | # need to make the FD available again. |
| 10211 | if test "$no_create" != yes; then |
| 10212 | ac_cs_success=: |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 10213 | ac_config_status_args= |
| 10214 | test "$silent" = yes && |
| 10215 | ac_config_status_args="$ac_config_status_args --quiet" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 10216 | exec 5>/dev/null |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame^] | 10217 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 10218 | exec 5>>config.log |
| 10219 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 10220 | # would make configure fail if this is the last instruction. |
| 10221 | $ac_cs_success || { (exit 1); exit 1; } |
| 10222 | fi |
| 10223 | |