John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.57 for [LLVM] [1.0]. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 6 | # |
| 7 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 8 | # Free Software Foundation, Inc. |
| 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11 | ## --------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## --------------------- ## |
| 14 | |
| 15 | # Be Bourne compatible |
| 16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 17 | emulate sh |
| 18 | NULLCMD=: |
| 19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20 | # is contrary to our usage. Disable this feature. |
| 21 | alias -g '${1+"$@"}'='"$@"' |
| 22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 23 | set -o posix |
| 24 | fi |
| 25 | |
| 26 | # Support unset when possible. |
| 27 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 28 | as_unset=unset |
| 29 | else |
| 30 | as_unset=false |
| 31 | fi |
| 32 | |
| 33 | |
| 34 | # Work around bugs in pre-3.0 UWIN ksh. |
| 35 | $as_unset ENV MAIL MAILPATH |
| 36 | PS1='$ ' |
| 37 | PS2='> ' |
| 38 | PS4='+ ' |
| 39 | |
| 40 | # NLS nuisances. |
| 41 | for as_var in \ |
| 42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 44 | LC_TELEPHONE LC_TIME |
| 45 | do |
| 46 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 47 | eval $as_var=C; export $as_var |
| 48 | else |
| 49 | $as_unset $as_var |
| 50 | fi |
| 51 | done |
| 52 | |
| 53 | # Required to use basename. |
| 54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 55 | as_expr=expr |
| 56 | else |
| 57 | as_expr=false |
| 58 | fi |
| 59 | |
| 60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 61 | as_basename=basename |
| 62 | else |
| 63 | as_basename=false |
| 64 | fi |
| 65 | |
| 66 | |
| 67 | # Name of the executable. |
| 68 | as_me=`$as_basename "$0" || |
| 69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 70 | X"$0" : 'X\(//\)$' \| \ |
| 71 | X"$0" : 'X\(/\)$' \| \ |
| 72 | . : '\(.\)' 2>/dev/null || |
| 73 | echo X/"$0" | |
| 74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 76 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 77 | s/.*/./; q'` |
| 78 | |
| 79 | |
| 80 | # PATH needs CR, and LINENO needs CR and PATH. |
| 81 | # Avoid depending upon Character Ranges. |
| 82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 85 | as_cr_digits='0123456789' |
| 86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 87 | |
| 88 | # The user is always right. |
| 89 | if test "${PATH_SEPARATOR+set}" != set; then |
| 90 | echo "#! /bin/sh" >conf$$.sh |
| 91 | echo "exit 0" >>conf$$.sh |
| 92 | chmod +x conf$$.sh |
| 93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 94 | PATH_SEPARATOR=';' |
| 95 | else |
| 96 | PATH_SEPARATOR=: |
| 97 | fi |
| 98 | rm -f conf$$.sh |
| 99 | fi |
| 100 | |
| 101 | |
| 102 | as_lineno_1=$LINENO |
| 103 | as_lineno_2=$LINENO |
| 104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 107 | # Find who we are. Look in the path if we contain no path at all |
| 108 | # relative or not. |
| 109 | case $0 in |
| 110 | *[\\/]* ) as_myself=$0 ;; |
| 111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 112 | for as_dir in $PATH |
| 113 | do |
| 114 | IFS=$as_save_IFS |
| 115 | test -z "$as_dir" && as_dir=. |
| 116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 117 | done |
| 118 | |
| 119 | ;; |
| 120 | esac |
| 121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 122 | # in which case we are not to be found in the path. |
| 123 | if test "x$as_myself" = x; then |
| 124 | as_myself=$0 |
| 125 | fi |
| 126 | if test ! -f "$as_myself"; then |
| 127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 128 | { (exit 1); exit 1; }; } |
| 129 | fi |
| 130 | case $CONFIG_SHELL in |
| 131 | '') |
| 132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 134 | do |
| 135 | IFS=$as_save_IFS |
| 136 | test -z "$as_dir" && as_dir=. |
| 137 | for as_base in sh bash ksh sh5; do |
| 138 | case $as_dir in |
| 139 | /*) |
| 140 | if ("$as_dir/$as_base" -c ' |
| 141 | as_lineno_1=$LINENO |
| 142 | as_lineno_2=$LINENO |
| 143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 148 | CONFIG_SHELL=$as_dir/$as_base |
| 149 | export CONFIG_SHELL |
| 150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 151 | fi;; |
| 152 | esac |
| 153 | done |
| 154 | done |
| 155 | ;; |
| 156 | esac |
| 157 | |
| 158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 159 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 160 | # line-number line before each line; the second 'sed' does the real |
| 161 | # work. The second script uses 'N' to pair each line-number line |
| 162 | # with the numbered line, and appends trailing '-' during |
| 163 | # substitution so that $LINENO is not a special case at line end. |
| 164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 166 | sed '=' <$as_myself | |
| 167 | sed ' |
| 168 | N |
| 169 | s,$,-, |
| 170 | : loop |
| 171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 172 | t loop |
| 173 | s,-$,, |
| 174 | s,^['$as_cr_digits']*\n,, |
| 175 | ' >$as_me.lineno && |
| 176 | chmod +x $as_me.lineno || |
| 177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 178 | { (exit 1); exit 1; }; } |
| 179 | |
| 180 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 181 | # (the dirname of $[0] is not the place where we might find the |
| 182 | # original and so on. Autoconf is especially sensible to this). |
| 183 | . ./$as_me.lineno |
| 184 | # Exit status is that of the last command. |
| 185 | exit |
| 186 | } |
| 187 | |
| 188 | |
| 189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 190 | *c*,-n*) ECHO_N= ECHO_C=' |
| 191 | ' ECHO_T=' ' ;; |
| 192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 194 | esac |
| 195 | |
| 196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 197 | as_expr=expr |
| 198 | else |
| 199 | as_expr=false |
| 200 | fi |
| 201 | |
| 202 | rm -f conf$$ conf$$.exe conf$$.file |
| 203 | echo >conf$$.file |
| 204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 205 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 207 | if test -f conf$$.exe; then |
| 208 | # Don't use ln at all; we don't have any links |
| 209 | as_ln_s='cp -p' |
| 210 | else |
| 211 | as_ln_s='ln -s' |
| 212 | fi |
| 213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 214 | as_ln_s=ln |
| 215 | else |
| 216 | as_ln_s='cp -p' |
| 217 | fi |
| 218 | rm -f conf$$ conf$$.exe conf$$.file |
| 219 | |
| 220 | if mkdir -p . 2>/dev/null; then |
| 221 | as_mkdir_p=: |
| 222 | else |
| 223 | as_mkdir_p=false |
| 224 | fi |
| 225 | |
| 226 | as_executable_p="test -f" |
| 227 | |
| 228 | # Sed expression to map a string onto a valid CPP name. |
| 229 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 230 | |
| 231 | # Sed expression to map a string onto a valid variable name. |
| 232 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 233 | |
| 234 | |
| 235 | # IFS |
| 236 | # We need space, tab and new line, in precisely that order. |
| 237 | as_nl=' |
| 238 | ' |
| 239 | IFS=" $as_nl" |
| 240 | |
| 241 | # CDPATH. |
| 242 | $as_unset CDPATH |
| 243 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 244 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 245 | |
| 246 | # Check that we are running under the correct shell. |
| 247 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 248 | |
| 249 | case X$ECHO in |
| 250 | X*--fallback-echo) |
| 251 | # Remove one level of quotation (which was required for Make). |
| 252 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 253 | ;; |
| 254 | esac |
| 255 | |
| 256 | echo=${ECHO-echo} |
| 257 | if test "X$1" = X--no-reexec; then |
| 258 | # Discard the --no-reexec flag, and continue. |
| 259 | shift |
| 260 | elif test "X$1" = X--fallback-echo; then |
| 261 | # Avoid inline document here, it may be left over |
| 262 | : |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 263 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 264 | # Yippee, $echo works! |
| 265 | : |
| 266 | else |
| 267 | # Restart under the correct shell. |
| 268 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 269 | fi |
| 270 | |
| 271 | if test "X$1" = X--fallback-echo; then |
| 272 | # used as fallback echo |
| 273 | shift |
| 274 | cat <<EOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 275 | $* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 276 | EOF |
| 277 | exit 0 |
| 278 | fi |
| 279 | |
| 280 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 281 | # if CDPATH is set. |
| 282 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 283 | |
| 284 | if test -z "$ECHO"; then |
| 285 | if test "X${echo_test_string+set}" != Xset; then |
| 286 | # find a string as large as possible, as long as the shell can cope with it |
| 287 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 288 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 289 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 290 | echo_test_string="`eval $cmd`" && |
| 291 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 292 | then |
| 293 | break |
| 294 | fi |
| 295 | done |
| 296 | fi |
| 297 | |
| 298 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 299 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 300 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 301 | : |
| 302 | else |
| 303 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 304 | # backslashes. This makes it impossible to quote backslashes using |
| 305 | # echo "$something" | sed 's/\\/\\\\/g' |
| 306 | # |
| 307 | # So, first we look for a working echo in the user's PATH. |
| 308 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 309 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 310 | for dir in $PATH /usr/ucb; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 311 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 312 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 313 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 314 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 315 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 316 | echo="$dir/echo" |
| 317 | break |
| 318 | fi |
| 319 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 320 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 321 | |
| 322 | if test "X$echo" = Xecho; then |
| 323 | # We didn't find a better echo, so look for alternatives. |
| 324 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 325 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 326 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 327 | # This shell has a builtin print -r that does the trick. |
| 328 | echo='print -r' |
| 329 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 330 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 331 | # If we have ksh, try running configure again with it. |
| 332 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 333 | export ORIGINAL_CONFIG_SHELL |
| 334 | CONFIG_SHELL=/bin/ksh |
| 335 | export CONFIG_SHELL |
| 336 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 337 | else |
| 338 | # Try using printf. |
| 339 | echo='printf %s\n' |
| 340 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 341 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 342 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 343 | # Cool, printf works |
| 344 | : |
| 345 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 346 | test "X$echo_testing_string" = 'X\t' && |
| 347 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 348 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 349 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 350 | export CONFIG_SHELL |
| 351 | SHELL="$CONFIG_SHELL" |
| 352 | export SHELL |
| 353 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 354 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 355 | test "X$echo_testing_string" = 'X\t' && |
| 356 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 357 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 358 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 359 | else |
| 360 | # maybe with a smaller string... |
| 361 | prev=: |
| 362 | |
| 363 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 364 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 365 | then |
| 366 | break |
| 367 | fi |
| 368 | prev="$cmd" |
| 369 | done |
| 370 | |
| 371 | if test "$prev" != 'sed 50q "$0"'; then |
| 372 | echo_test_string=`eval $prev` |
| 373 | export echo_test_string |
| 374 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 375 | else |
| 376 | # Oops. We lost completely, so just stick with echo. |
| 377 | echo=echo |
| 378 | fi |
| 379 | fi |
| 380 | fi |
| 381 | fi |
| 382 | fi |
| 383 | fi |
| 384 | |
| 385 | # Copy echo and quote the copy suitably for passing to libtool from |
| 386 | # the Makefile, instead of quoting the original, which is used later. |
| 387 | ECHO=$echo |
| 388 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 389 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 390 | fi |
| 391 | |
| 392 | |
| 393 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 394 | |
| 395 | tagnames=`echo "$tagnames,CXX" | sed 's/^,//'` |
| 396 | |
| 397 | tagnames=`echo "$tagnames,F77" | sed 's/^,//'` |
| 398 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 399 | # Name of the host. |
| 400 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 401 | # so uname gets run too. |
| 402 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 403 | |
| 404 | exec 6>&1 |
| 405 | |
| 406 | # |
| 407 | # Initializations. |
| 408 | # |
| 409 | ac_default_prefix=/usr/local |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 410 | ac_config_libobj_dir=. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 411 | cross_compiling=no |
| 412 | subdirs= |
| 413 | MFLAGS= |
| 414 | MAKEFLAGS= |
| 415 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 416 | |
| 417 | # Maximum number of lines to put in a shell here document. |
| 418 | # This variable seems obsolete. It should probably be removed, and |
| 419 | # only ac_max_sed_lines should be used. |
| 420 | : ${ac_max_here_lines=38} |
| 421 | |
| 422 | # Identity of this package. |
| 423 | PACKAGE_NAME='[LLVM]' |
| 424 | PACKAGE_TARNAME='--llvm--' |
| 425 | PACKAGE_VERSION='[1.0]' |
| 426 | PACKAGE_STRING='[LLVM] [1.0]' |
| 427 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' |
| 428 | |
| 429 | # Factoring default headers for most tests. |
| 430 | ac_includes_default="\ |
| 431 | #include <stdio.h> |
| 432 | #if HAVE_SYS_TYPES_H |
| 433 | # include <sys/types.h> |
| 434 | #endif |
| 435 | #if HAVE_SYS_STAT_H |
| 436 | # include <sys/stat.h> |
| 437 | #endif |
| 438 | #if STDC_HEADERS |
| 439 | # include <stdlib.h> |
| 440 | # include <stddef.h> |
| 441 | #else |
| 442 | # if HAVE_STDLIB_H |
| 443 | # include <stdlib.h> |
| 444 | # endif |
| 445 | #endif |
| 446 | #if HAVE_STRING_H |
| 447 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 448 | # include <memory.h> |
| 449 | # endif |
| 450 | # include <string.h> |
| 451 | #endif |
| 452 | #if HAVE_STRINGS_H |
| 453 | # include <strings.h> |
| 454 | #endif |
| 455 | #if HAVE_INTTYPES_H |
| 456 | # include <inttypes.h> |
| 457 | #else |
| 458 | # if HAVE_STDINT_H |
| 459 | # include <stdint.h> |
| 460 | # endif |
| 461 | #endif |
| 462 | #if HAVE_UNISTD_H |
| 463 | # include <unistd.h> |
| 464 | #endif" |
| 465 | |
| 466 | ac_unique_file=""Makefile.config.in"" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 467 | 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PURIFY PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR LTLIBOBJS' |
| 468 | ac_subst_files='' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 469 | |
| 470 | # Initialize some variables set by options. |
| 471 | ac_init_help= |
| 472 | ac_init_version=false |
| 473 | # The variables have the same names as the options, with |
| 474 | # dashes changed to underlines. |
| 475 | cache_file=/dev/null |
| 476 | exec_prefix=NONE |
| 477 | no_create= |
| 478 | no_recursion= |
| 479 | prefix=NONE |
| 480 | program_prefix=NONE |
| 481 | program_suffix=NONE |
| 482 | program_transform_name=s,x,x, |
| 483 | silent= |
| 484 | site= |
| 485 | srcdir= |
| 486 | verbose= |
| 487 | x_includes=NONE |
| 488 | x_libraries=NONE |
| 489 | |
| 490 | # Installation directory options. |
| 491 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 492 | # and all the variables that are supposed to be based on exec_prefix |
| 493 | # by default will actually change. |
| 494 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 495 | bindir='${exec_prefix}/bin' |
| 496 | sbindir='${exec_prefix}/sbin' |
| 497 | libexecdir='${exec_prefix}/libexec' |
| 498 | datadir='${prefix}/share' |
| 499 | sysconfdir='${prefix}/etc' |
| 500 | sharedstatedir='${prefix}/com' |
| 501 | localstatedir='${prefix}/var' |
| 502 | libdir='${exec_prefix}/lib' |
| 503 | includedir='${prefix}/include' |
| 504 | oldincludedir='/usr/include' |
| 505 | infodir='${prefix}/info' |
| 506 | mandir='${prefix}/man' |
| 507 | |
| 508 | ac_prev= |
| 509 | for ac_option |
| 510 | do |
| 511 | # If the previous option needs an argument, assign it. |
| 512 | if test -n "$ac_prev"; then |
| 513 | eval "$ac_prev=\$ac_option" |
| 514 | ac_prev= |
| 515 | continue |
| 516 | fi |
| 517 | |
| 518 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 519 | |
| 520 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 521 | |
| 522 | case $ac_option in |
| 523 | |
| 524 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 525 | ac_prev=bindir ;; |
| 526 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 527 | bindir=$ac_optarg ;; |
| 528 | |
| 529 | -build | --build | --buil | --bui | --bu) |
| 530 | ac_prev=build_alias ;; |
| 531 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 532 | build_alias=$ac_optarg ;; |
| 533 | |
| 534 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 535 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 536 | ac_prev=cache_file ;; |
| 537 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 538 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 539 | cache_file=$ac_optarg ;; |
| 540 | |
| 541 | --config-cache | -C) |
| 542 | cache_file=config.cache ;; |
| 543 | |
| 544 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 545 | ac_prev=datadir ;; |
| 546 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 547 | | --da=*) |
| 548 | datadir=$ac_optarg ;; |
| 549 | |
| 550 | -disable-* | --disable-*) |
| 551 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 552 | # Reject names that are not valid shell variable names. |
| 553 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 554 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 555 | { (exit 1); exit 1; }; } |
| 556 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 557 | eval "enable_$ac_feature=no" ;; |
| 558 | |
| 559 | -enable-* | --enable-*) |
| 560 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 561 | # Reject names that are not valid shell variable names. |
| 562 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 563 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 564 | { (exit 1); exit 1; }; } |
| 565 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 566 | case $ac_option in |
| 567 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 568 | *) ac_optarg=yes ;; |
| 569 | esac |
| 570 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 571 | |
| 572 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 573 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 574 | | --exec | --exe | --ex) |
| 575 | ac_prev=exec_prefix ;; |
| 576 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 577 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 578 | | --exec=* | --exe=* | --ex=*) |
| 579 | exec_prefix=$ac_optarg ;; |
| 580 | |
| 581 | -gas | --gas | --ga | --g) |
| 582 | # Obsolete; use --with-gas. |
| 583 | with_gas=yes ;; |
| 584 | |
| 585 | -help | --help | --hel | --he | -h) |
| 586 | ac_init_help=long ;; |
| 587 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 588 | ac_init_help=recursive ;; |
| 589 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 590 | ac_init_help=short ;; |
| 591 | |
| 592 | -host | --host | --hos | --ho) |
| 593 | ac_prev=host_alias ;; |
| 594 | -host=* | --host=* | --hos=* | --ho=*) |
| 595 | host_alias=$ac_optarg ;; |
| 596 | |
| 597 | -includedir | --includedir | --includedi | --included | --include \ |
| 598 | | --includ | --inclu | --incl | --inc) |
| 599 | ac_prev=includedir ;; |
| 600 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 601 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 602 | includedir=$ac_optarg ;; |
| 603 | |
| 604 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 605 | ac_prev=infodir ;; |
| 606 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 607 | infodir=$ac_optarg ;; |
| 608 | |
| 609 | -libdir | --libdir | --libdi | --libd) |
| 610 | ac_prev=libdir ;; |
| 611 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 612 | libdir=$ac_optarg ;; |
| 613 | |
| 614 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 615 | | --libexe | --libex | --libe) |
| 616 | ac_prev=libexecdir ;; |
| 617 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 618 | | --libexe=* | --libex=* | --libe=*) |
| 619 | libexecdir=$ac_optarg ;; |
| 620 | |
| 621 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 622 | | --localstate | --localstat | --localsta | --localst \ |
| 623 | | --locals | --local | --loca | --loc | --lo) |
| 624 | ac_prev=localstatedir ;; |
| 625 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 626 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 627 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 628 | localstatedir=$ac_optarg ;; |
| 629 | |
| 630 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 631 | ac_prev=mandir ;; |
| 632 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 633 | mandir=$ac_optarg ;; |
| 634 | |
| 635 | -nfp | --nfp | --nf) |
| 636 | # Obsolete; use --without-fp. |
| 637 | with_fp=no ;; |
| 638 | |
| 639 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 640 | | --no-cr | --no-c | -n) |
| 641 | no_create=yes ;; |
| 642 | |
| 643 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 644 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 645 | no_recursion=yes ;; |
| 646 | |
| 647 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 648 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 649 | | --oldin | --oldi | --old | --ol | --o) |
| 650 | ac_prev=oldincludedir ;; |
| 651 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 652 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 653 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 654 | oldincludedir=$ac_optarg ;; |
| 655 | |
| 656 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 657 | ac_prev=prefix ;; |
| 658 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 659 | prefix=$ac_optarg ;; |
| 660 | |
| 661 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 662 | | --program-pre | --program-pr | --program-p) |
| 663 | ac_prev=program_prefix ;; |
| 664 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 665 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 666 | program_prefix=$ac_optarg ;; |
| 667 | |
| 668 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 669 | | --program-suf | --program-su | --program-s) |
| 670 | ac_prev=program_suffix ;; |
| 671 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 672 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 673 | program_suffix=$ac_optarg ;; |
| 674 | |
| 675 | -program-transform-name | --program-transform-name \ |
| 676 | | --program-transform-nam | --program-transform-na \ |
| 677 | | --program-transform-n | --program-transform- \ |
| 678 | | --program-transform | --program-transfor \ |
| 679 | | --program-transfo | --program-transf \ |
| 680 | | --program-trans | --program-tran \ |
| 681 | | --progr-tra | --program-tr | --program-t) |
| 682 | ac_prev=program_transform_name ;; |
| 683 | -program-transform-name=* | --program-transform-name=* \ |
| 684 | | --program-transform-nam=* | --program-transform-na=* \ |
| 685 | | --program-transform-n=* | --program-transform-=* \ |
| 686 | | --program-transform=* | --program-transfor=* \ |
| 687 | | --program-transfo=* | --program-transf=* \ |
| 688 | | --program-trans=* | --program-tran=* \ |
| 689 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 690 | program_transform_name=$ac_optarg ;; |
| 691 | |
| 692 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 693 | | -silent | --silent | --silen | --sile | --sil) |
| 694 | silent=yes ;; |
| 695 | |
| 696 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 697 | ac_prev=sbindir ;; |
| 698 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 699 | | --sbi=* | --sb=*) |
| 700 | sbindir=$ac_optarg ;; |
| 701 | |
| 702 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 703 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 704 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 705 | | --sha | --sh) |
| 706 | ac_prev=sharedstatedir ;; |
| 707 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 708 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 709 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 710 | | --sha=* | --sh=*) |
| 711 | sharedstatedir=$ac_optarg ;; |
| 712 | |
| 713 | -site | --site | --sit) |
| 714 | ac_prev=site ;; |
| 715 | -site=* | --site=* | --sit=*) |
| 716 | site=$ac_optarg ;; |
| 717 | |
| 718 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 719 | ac_prev=srcdir ;; |
| 720 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 721 | srcdir=$ac_optarg ;; |
| 722 | |
| 723 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 724 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 725 | ac_prev=sysconfdir ;; |
| 726 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 727 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 728 | sysconfdir=$ac_optarg ;; |
| 729 | |
| 730 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 731 | ac_prev=target_alias ;; |
| 732 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 733 | target_alias=$ac_optarg ;; |
| 734 | |
| 735 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 736 | verbose=yes ;; |
| 737 | |
| 738 | -version | --version | --versio | --versi | --vers | -V) |
| 739 | ac_init_version=: ;; |
| 740 | |
| 741 | -with-* | --with-*) |
| 742 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 743 | # Reject names that are not valid shell variable names. |
| 744 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 745 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 746 | { (exit 1); exit 1; }; } |
| 747 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 748 | case $ac_option in |
| 749 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 750 | *) ac_optarg=yes ;; |
| 751 | esac |
| 752 | eval "with_$ac_package='$ac_optarg'" ;; |
| 753 | |
| 754 | -without-* | --without-*) |
| 755 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 756 | # Reject names that are not valid shell variable names. |
| 757 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 758 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 759 | { (exit 1); exit 1; }; } |
| 760 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 761 | eval "with_$ac_package=no" ;; |
| 762 | |
| 763 | --x) |
| 764 | # Obsolete; use --with-x. |
| 765 | with_x=yes ;; |
| 766 | |
| 767 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 768 | | --x-incl | --x-inc | --x-in | --x-i) |
| 769 | ac_prev=x_includes ;; |
| 770 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 771 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 772 | x_includes=$ac_optarg ;; |
| 773 | |
| 774 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 775 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 776 | ac_prev=x_libraries ;; |
| 777 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 778 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 779 | x_libraries=$ac_optarg ;; |
| 780 | |
| 781 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 782 | Try \`$0 --help' for more information." >&2 |
| 783 | { (exit 1); exit 1; }; } |
| 784 | ;; |
| 785 | |
| 786 | *=*) |
| 787 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 788 | # Reject names that are not valid shell variable names. |
| 789 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 790 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 791 | { (exit 1); exit 1; }; } |
| 792 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 793 | eval "$ac_envvar='$ac_optarg'" |
| 794 | export $ac_envvar ;; |
| 795 | |
| 796 | *) |
| 797 | # FIXME: should be removed in autoconf 3.0. |
| 798 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 799 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 800 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 801 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 802 | ;; |
| 803 | |
| 804 | esac |
| 805 | done |
| 806 | |
| 807 | if test -n "$ac_prev"; then |
| 808 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 809 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 810 | { (exit 1); exit 1; }; } |
| 811 | fi |
| 812 | |
| 813 | # Be sure to have absolute paths. |
| 814 | for ac_var in exec_prefix prefix |
| 815 | do |
| 816 | eval ac_val=$`echo $ac_var` |
| 817 | case $ac_val in |
| 818 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 819 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 820 | { (exit 1); exit 1; }; };; |
| 821 | esac |
| 822 | done |
| 823 | |
| 824 | # Be sure to have absolute paths. |
| 825 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 826 | localstatedir libdir includedir oldincludedir infodir mandir |
| 827 | do |
| 828 | eval ac_val=$`echo $ac_var` |
| 829 | case $ac_val in |
| 830 | [\\/$]* | ?:[\\/]* ) ;; |
| 831 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 832 | { (exit 1); exit 1; }; };; |
| 833 | esac |
| 834 | done |
| 835 | |
| 836 | # There might be people who depend on the old broken behavior: `$host' |
| 837 | # used to hold the argument of --host etc. |
| 838 | # FIXME: To remove some day. |
| 839 | build=$build_alias |
| 840 | host=$host_alias |
| 841 | target=$target_alias |
| 842 | |
| 843 | # FIXME: To remove some day. |
| 844 | if test "x$host_alias" != x; then |
| 845 | if test "x$build_alias" = x; then |
| 846 | cross_compiling=maybe |
| 847 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 848 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 849 | elif test "x$build_alias" != "x$host_alias"; then |
| 850 | cross_compiling=yes |
| 851 | fi |
| 852 | fi |
| 853 | |
| 854 | ac_tool_prefix= |
| 855 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 856 | |
| 857 | test "$silent" = yes && exec 6>/dev/null |
| 858 | |
| 859 | |
| 860 | # Find the source files, if location was not specified. |
| 861 | if test -z "$srcdir"; then |
| 862 | ac_srcdir_defaulted=yes |
| 863 | # Try the directory containing this script, then its parent. |
| 864 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 865 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 866 | X"$0" : 'X\(//\)[^/]' \| \ |
| 867 | X"$0" : 'X\(//\)$' \| \ |
| 868 | X"$0" : 'X\(/\)' \| \ |
| 869 | . : '\(.\)' 2>/dev/null || |
| 870 | echo X"$0" | |
| 871 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 872 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 873 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 874 | /^X\(\/\).*/{ s//\1/; q; } |
| 875 | s/.*/./; q'` |
| 876 | srcdir=$ac_confdir |
| 877 | if test ! -r $srcdir/$ac_unique_file; then |
| 878 | srcdir=.. |
| 879 | fi |
| 880 | else |
| 881 | ac_srcdir_defaulted=no |
| 882 | fi |
| 883 | if test ! -r $srcdir/$ac_unique_file; then |
| 884 | if test "$ac_srcdir_defaulted" = yes; then |
| 885 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 886 | { (exit 1); exit 1; }; } |
| 887 | else |
| 888 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 889 | { (exit 1); exit 1; }; } |
| 890 | fi |
| 891 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 892 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 893 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 894 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 895 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 896 | ac_env_build_alias_set=${build_alias+set} |
| 897 | ac_env_build_alias_value=$build_alias |
| 898 | ac_cv_env_build_alias_set=${build_alias+set} |
| 899 | ac_cv_env_build_alias_value=$build_alias |
| 900 | ac_env_host_alias_set=${host_alias+set} |
| 901 | ac_env_host_alias_value=$host_alias |
| 902 | ac_cv_env_host_alias_set=${host_alias+set} |
| 903 | ac_cv_env_host_alias_value=$host_alias |
| 904 | ac_env_target_alias_set=${target_alias+set} |
| 905 | ac_env_target_alias_value=$target_alias |
| 906 | ac_cv_env_target_alias_set=${target_alias+set} |
| 907 | ac_cv_env_target_alias_value=$target_alias |
| 908 | ac_env_CXX_set=${CXX+set} |
| 909 | ac_env_CXX_value=$CXX |
| 910 | ac_cv_env_CXX_set=${CXX+set} |
| 911 | ac_cv_env_CXX_value=$CXX |
| 912 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 913 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 914 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 915 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
| 916 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 917 | ac_env_LDFLAGS_value=$LDFLAGS |
| 918 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 919 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 920 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 921 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 922 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 923 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 924 | ac_env_CC_set=${CC+set} |
| 925 | ac_env_CC_value=$CC |
| 926 | ac_cv_env_CC_set=${CC+set} |
| 927 | ac_cv_env_CC_value=$CC |
| 928 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 929 | ac_env_CFLAGS_value=$CFLAGS |
| 930 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 931 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 932 | ac_env_CPP_set=${CPP+set} |
| 933 | ac_env_CPP_value=$CPP |
| 934 | ac_cv_env_CPP_set=${CPP+set} |
| 935 | ac_cv_env_CPP_value=$CPP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 936 | ac_env_CXXCPP_set=${CXXCPP+set} |
| 937 | ac_env_CXXCPP_value=$CXXCPP |
| 938 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
| 939 | ac_cv_env_CXXCPP_value=$CXXCPP |
| 940 | ac_env_F77_set=${F77+set} |
| 941 | ac_env_F77_value=$F77 |
| 942 | ac_cv_env_F77_set=${F77+set} |
| 943 | ac_cv_env_F77_value=$F77 |
| 944 | ac_env_FFLAGS_set=${FFLAGS+set} |
| 945 | ac_env_FFLAGS_value=$FFLAGS |
| 946 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
| 947 | ac_cv_env_FFLAGS_value=$FFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 948 | |
| 949 | # |
| 950 | # Report the --help message. |
| 951 | # |
| 952 | if test "$ac_init_help" = "long"; then |
| 953 | # Omit some internal or obsolete options to make the list less imposing. |
| 954 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 955 | cat <<_ACEOF |
| 956 | \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems. |
| 957 | |
| 958 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 959 | |
| 960 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 961 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 962 | |
| 963 | Defaults for the options are specified in brackets. |
| 964 | |
| 965 | Configuration: |
| 966 | -h, --help display this help and exit |
| 967 | --help=short display options specific to this package |
| 968 | --help=recursive display the short help of all the included packages |
| 969 | -V, --version display version information and exit |
| 970 | -q, --quiet, --silent do not print \`checking...' messages |
| 971 | --cache-file=FILE cache test results in FILE [disabled] |
| 972 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 973 | -n, --no-create do not create output files |
| 974 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 975 | |
| 976 | _ACEOF |
| 977 | |
| 978 | cat <<_ACEOF |
| 979 | Installation directories: |
| 980 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 981 | [$ac_default_prefix] |
| 982 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 983 | [PREFIX] |
| 984 | |
| 985 | By default, \`make install' will install all the files in |
| 986 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 987 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 988 | for instance \`--prefix=\$HOME'. |
| 989 | |
| 990 | For better control, use the options below. |
| 991 | |
| 992 | Fine tuning of the installation directories: |
| 993 | --bindir=DIR user executables [EPREFIX/bin] |
| 994 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 995 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 996 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 997 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 998 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 999 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1000 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1001 | --includedir=DIR C header files [PREFIX/include] |
| 1002 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1003 | --infodir=DIR info documentation [PREFIX/info] |
| 1004 | --mandir=DIR man documentation [PREFIX/man] |
| 1005 | _ACEOF |
| 1006 | |
| 1007 | cat <<\_ACEOF |
| 1008 | |
| 1009 | System types: |
| 1010 | --build=BUILD configure for building on BUILD [guessed] |
| 1011 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1012 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1013 | _ACEOF |
| 1014 | fi |
| 1015 | |
| 1016 | if test -n "$ac_init_help"; then |
| 1017 | case $ac_init_help in |
| 1018 | short | recursive ) echo "Configuration of [LLVM] [1.0]:";; |
| 1019 | esac |
| 1020 | cat <<\_ACEOF |
| 1021 | |
| 1022 | Optional Features: |
| 1023 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1024 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1025 | --enable-shared[=PKGS] |
| 1026 | build shared libraries [default=yes] |
| 1027 | --enable-static[=PKGS] |
| 1028 | build static libraries [default=yes] |
| 1029 | --enable-fast-install[=PKGS] |
| 1030 | optimize for fast installation [default=yes] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1031 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1032 | --enable-purify Compile with purify (default is NO) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1033 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1034 | --enable-spec Compile SPEC benchmarks (default is NO) |
| 1035 | --enable-precompiled_bytecode |
| 1036 | Use pre-compiled bytecode (default is NO) |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 1037 | --enable-llc_diffs Enable LLC Diffs when testing (default is YES) |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 1038 | --enable-jit Enable Just In Time Compiling (default is YES) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1039 | |
| 1040 | Optional Packages: |
| 1041 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1042 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1043 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1044 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1045 | both] |
| 1046 | --with-tags[=TAGS] |
| 1047 | include additional configurations [automatic] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1048 | --with-spec Location of SPEC benchmarks |
| 1049 | --with-llvmgccdir Location of LLVM GCC front-end |
| 1050 | --with-bcrepos Location of Bytecode Repository |
| 1051 | --with-papi Location of PAPI |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 1052 | --with-purify Location of purify program |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1053 | |
| 1054 | Some influential environment variables: |
| 1055 | CXX C++ compiler command |
| 1056 | CXXFLAGS C++ compiler flags |
| 1057 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1058 | nonstandard directory <lib dir> |
| 1059 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1060 | headers in a nonstandard directory <include dir> |
| 1061 | CC C compiler command |
| 1062 | CFLAGS C compiler flags |
| 1063 | CPP C preprocessor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1064 | CXXCPP C++ preprocessor |
| 1065 | F77 Fortran 77 compiler command |
| 1066 | FFLAGS Fortran 77 compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1067 | |
| 1068 | Use these variables to override the choices made by `configure' or to help |
| 1069 | it to find libraries and programs with nonstandard names/locations. |
| 1070 | |
| 1071 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1072 | _ACEOF |
| 1073 | fi |
| 1074 | |
| 1075 | if test "$ac_init_help" = "recursive"; then |
| 1076 | # If there are subdirs, report their specific --help. |
| 1077 | ac_popdir=`pwd` |
| 1078 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1079 | test -d $ac_dir || continue |
| 1080 | ac_builddir=. |
| 1081 | |
| 1082 | if test "$ac_dir" != .; then |
| 1083 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1084 | # A "../" for each directory in $ac_dir_suffix. |
| 1085 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1086 | else |
| 1087 | ac_dir_suffix= ac_top_builddir= |
| 1088 | fi |
| 1089 | |
| 1090 | case $srcdir in |
| 1091 | .) # No --srcdir option. We are building in place. |
| 1092 | ac_srcdir=. |
| 1093 | if test -z "$ac_top_builddir"; then |
| 1094 | ac_top_srcdir=. |
| 1095 | else |
| 1096 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1097 | fi ;; |
| 1098 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1099 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1100 | ac_top_srcdir=$srcdir ;; |
| 1101 | *) # Relative path. |
| 1102 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1103 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1104 | esac |
| 1105 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 1106 | # absolute. |
| 1107 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1108 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1109 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 1110 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 1111 | |
| 1112 | cd $ac_dir |
| 1113 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1114 | if test -f $ac_srcdir/configure.gnu; then |
| 1115 | echo |
| 1116 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1117 | elif test -f $ac_srcdir/configure; then |
| 1118 | echo |
| 1119 | $SHELL $ac_srcdir/configure --help=recursive |
| 1120 | elif test -f $ac_srcdir/configure.ac || |
| 1121 | test -f $ac_srcdir/configure.in; then |
| 1122 | echo |
| 1123 | $ac_configure --help |
| 1124 | else |
| 1125 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1126 | fi |
| 1127 | cd $ac_popdir |
| 1128 | done |
| 1129 | fi |
| 1130 | |
| 1131 | test -n "$ac_init_help" && exit 0 |
| 1132 | if $ac_init_version; then |
| 1133 | cat <<\_ACEOF |
| 1134 | [LLVM] configure [1.0] |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1135 | generated by GNU Autoconf 2.57 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1136 | |
| 1137 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 1138 | Free Software Foundation, Inc. |
| 1139 | This configure script is free software; the Free Software Foundation |
| 1140 | gives unlimited permission to copy, distribute and modify it. |
| 1141 | _ACEOF |
| 1142 | exit 0 |
| 1143 | fi |
| 1144 | exec 5>config.log |
| 1145 | cat >&5 <<_ACEOF |
| 1146 | This file contains any messages produced by compilers while |
| 1147 | running configure, to aid debugging if configure makes a mistake. |
| 1148 | |
| 1149 | It was created by [LLVM] $as_me [1.0], which was |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1150 | generated by GNU Autoconf 2.57. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1151 | |
| 1152 | $ $0 $@ |
| 1153 | |
| 1154 | _ACEOF |
| 1155 | { |
| 1156 | cat <<_ASUNAME |
| 1157 | ## --------- ## |
| 1158 | ## Platform. ## |
| 1159 | ## --------- ## |
| 1160 | |
| 1161 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1162 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1163 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1164 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1165 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1166 | |
| 1167 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1168 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1169 | |
| 1170 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1171 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1172 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1173 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1174 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1175 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1176 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1177 | |
| 1178 | _ASUNAME |
| 1179 | |
| 1180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1181 | for as_dir in $PATH |
| 1182 | do |
| 1183 | IFS=$as_save_IFS |
| 1184 | test -z "$as_dir" && as_dir=. |
| 1185 | echo "PATH: $as_dir" |
| 1186 | done |
| 1187 | |
| 1188 | } >&5 |
| 1189 | |
| 1190 | cat >&5 <<_ACEOF |
| 1191 | |
| 1192 | |
| 1193 | ## ----------- ## |
| 1194 | ## Core tests. ## |
| 1195 | ## ----------- ## |
| 1196 | |
| 1197 | _ACEOF |
| 1198 | |
| 1199 | |
| 1200 | # Keep a trace of the command line. |
| 1201 | # Strip out --no-create and --no-recursion so they do not pile up. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1202 | # Strip out --silent because we don't want to record it for future runs. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1203 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1204 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1205 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1206 | ac_configure_args0= |
| 1207 | ac_configure_args1= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1208 | ac_sep= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1209 | ac_must_keep_next=false |
| 1210 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1211 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1212 | for ac_arg |
| 1213 | do |
| 1214 | case $ac_arg in |
| 1215 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1216 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1217 | | -silent | --silent | --silen | --sile | --sil) |
| 1218 | continue ;; |
| 1219 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1220 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1221 | esac |
| 1222 | case $ac_pass in |
| 1223 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1224 | 2) |
| 1225 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1226 | if test $ac_must_keep_next = true; then |
| 1227 | ac_must_keep_next=false # Got value, back to normal. |
| 1228 | else |
| 1229 | case $ac_arg in |
| 1230 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1231 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1232 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1233 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1234 | case "$ac_configure_args0 " in |
| 1235 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1236 | esac |
| 1237 | ;; |
| 1238 | -* ) ac_must_keep_next=true ;; |
| 1239 | esac |
| 1240 | fi |
| 1241 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1242 | # Get rid of the leading space. |
| 1243 | ac_sep=" " |
| 1244 | ;; |
| 1245 | esac |
| 1246 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1247 | done |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1248 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1249 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1250 | |
| 1251 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1252 | # config.log. We remove comments because anyway the quotes in there |
| 1253 | # would cause problems or look ugly. |
| 1254 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1255 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1256 | trap 'exit_status=$? |
| 1257 | # Save into config.log some information that might help in debugging. |
| 1258 | { |
| 1259 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1260 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1261 | cat <<\_ASBOX |
| 1262 | ## ---------------- ## |
| 1263 | ## Cache variables. ## |
| 1264 | ## ---------------- ## |
| 1265 | _ASBOX |
| 1266 | echo |
| 1267 | # The following way of writing the cache mishandles newlines in values, |
| 1268 | { |
| 1269 | (set) 2>&1 | |
| 1270 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1271 | *ac_space=\ *) |
| 1272 | sed -n \ |
| 1273 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1274 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1275 | ;; |
| 1276 | *) |
| 1277 | sed -n \ |
| 1278 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1279 | ;; |
| 1280 | esac; |
| 1281 | } |
| 1282 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1283 | |
| 1284 | cat <<\_ASBOX |
| 1285 | ## ----------------- ## |
| 1286 | ## Output variables. ## |
| 1287 | ## ----------------- ## |
| 1288 | _ASBOX |
| 1289 | echo |
| 1290 | for ac_var in $ac_subst_vars |
| 1291 | do |
| 1292 | eval ac_val=$`echo $ac_var` |
| 1293 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1294 | done | sort |
| 1295 | echo |
| 1296 | |
| 1297 | if test -n "$ac_subst_files"; then |
| 1298 | cat <<\_ASBOX |
| 1299 | ## ------------- ## |
| 1300 | ## Output files. ## |
| 1301 | ## ------------- ## |
| 1302 | _ASBOX |
| 1303 | echo |
| 1304 | for ac_var in $ac_subst_files |
| 1305 | do |
| 1306 | eval ac_val=$`echo $ac_var` |
| 1307 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1308 | done | sort |
| 1309 | echo |
| 1310 | fi |
| 1311 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1312 | if test -s confdefs.h; then |
| 1313 | cat <<\_ASBOX |
| 1314 | ## ----------- ## |
| 1315 | ## confdefs.h. ## |
| 1316 | ## ----------- ## |
| 1317 | _ASBOX |
| 1318 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1319 | sed "/^$/d" confdefs.h | sort |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1320 | echo |
| 1321 | fi |
| 1322 | test "$ac_signal" != 0 && |
| 1323 | echo "$as_me: caught signal $ac_signal" |
| 1324 | echo "$as_me: exit $exit_status" |
| 1325 | } >&5 |
| 1326 | rm -f core core.* *.core && |
| 1327 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1328 | exit $exit_status |
| 1329 | ' 0 |
| 1330 | for ac_signal in 1 2 13 15; do |
| 1331 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1332 | done |
| 1333 | ac_signal=0 |
| 1334 | |
| 1335 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1336 | rm -rf conftest* confdefs.h |
| 1337 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1338 | echo >confdefs.h |
| 1339 | |
| 1340 | # Predefined preprocessor variables. |
| 1341 | |
| 1342 | cat >>confdefs.h <<_ACEOF |
| 1343 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1344 | _ACEOF |
| 1345 | |
| 1346 | |
| 1347 | cat >>confdefs.h <<_ACEOF |
| 1348 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1349 | _ACEOF |
| 1350 | |
| 1351 | |
| 1352 | cat >>confdefs.h <<_ACEOF |
| 1353 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1354 | _ACEOF |
| 1355 | |
| 1356 | |
| 1357 | cat >>confdefs.h <<_ACEOF |
| 1358 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1359 | _ACEOF |
| 1360 | |
| 1361 | |
| 1362 | cat >>confdefs.h <<_ACEOF |
| 1363 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1364 | _ACEOF |
| 1365 | |
| 1366 | |
| 1367 | # Let the site file select an alternate cache file if it wants to. |
| 1368 | # Prefer explicitly selected file to automatically selected ones. |
| 1369 | if test -z "$CONFIG_SITE"; then |
| 1370 | if test "x$prefix" != xNONE; then |
| 1371 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1372 | else |
| 1373 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1374 | fi |
| 1375 | fi |
| 1376 | for ac_site_file in $CONFIG_SITE; do |
| 1377 | if test -r "$ac_site_file"; then |
| 1378 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1379 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1380 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1381 | . "$ac_site_file" |
| 1382 | fi |
| 1383 | done |
| 1384 | |
| 1385 | if test -r "$cache_file"; then |
| 1386 | # Some versions of bash will fail to source /dev/null (special |
| 1387 | # files actually), so we avoid doing that. |
| 1388 | if test -f "$cache_file"; then |
| 1389 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1390 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1391 | case $cache_file in |
| 1392 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1393 | *) . ./$cache_file;; |
| 1394 | esac |
| 1395 | fi |
| 1396 | else |
| 1397 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1398 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1399 | >$cache_file |
| 1400 | fi |
| 1401 | |
| 1402 | # Check that the precious variables saved in the cache have kept the same |
| 1403 | # value. |
| 1404 | ac_cache_corrupted=false |
| 1405 | for ac_var in `(set) 2>&1 | |
| 1406 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1407 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1408 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1409 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1410 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1411 | case $ac_old_set,$ac_new_set in |
| 1412 | set,) |
| 1413 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1414 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1415 | ac_cache_corrupted=: ;; |
| 1416 | ,set) |
| 1417 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1418 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1419 | ac_cache_corrupted=: ;; |
| 1420 | ,);; |
| 1421 | *) |
| 1422 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1423 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1424 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1425 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1426 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1427 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1428 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1429 | ac_cache_corrupted=: |
| 1430 | fi;; |
| 1431 | esac |
| 1432 | # Pass precious variables to config.status. |
| 1433 | if test "$ac_new_set" = set; then |
| 1434 | case $ac_new_val in |
| 1435 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1436 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1437 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1438 | esac |
| 1439 | case " $ac_configure_args " in |
| 1440 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1441 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1442 | esac |
| 1443 | fi |
| 1444 | done |
| 1445 | if $ac_cache_corrupted; then |
| 1446 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1447 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1448 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1449 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1450 | { (exit 1); exit 1; }; } |
| 1451 | fi |
| 1452 | |
| 1453 | ac_ext=c |
| 1454 | ac_cpp='$CPP $CPPFLAGS' |
| 1455 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1456 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1457 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1458 | |
| 1459 | |
| 1460 | |
| 1461 | |
| 1462 | |
| 1463 | |
| 1464 | |
| 1465 | |
| 1466 | |
| 1467 | |
| 1468 | |
| 1469 | |
| 1470 | |
| 1471 | |
| 1472 | |
| 1473 | |
| 1474 | |
| 1475 | |
| 1476 | |
| 1477 | |
| 1478 | |
| 1479 | |
| 1480 | |
| 1481 | |
| 1482 | |
| 1483 | |
| 1484 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1485 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1486 | ac_aux_dir= |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1487 | for ac_dir in autoconf $srcdir/autoconf; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1488 | if test -f $ac_dir/install-sh; then |
| 1489 | ac_aux_dir=$ac_dir |
| 1490 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1491 | break |
| 1492 | elif test -f $ac_dir/install.sh; then |
| 1493 | ac_aux_dir=$ac_dir |
| 1494 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1495 | break |
| 1496 | elif test -f $ac_dir/shtool; then |
| 1497 | ac_aux_dir=$ac_dir |
| 1498 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1499 | break |
| 1500 | fi |
| 1501 | done |
| 1502 | if test -z "$ac_aux_dir"; then |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1503 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
| 1504 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1505 | { (exit 1); exit 1; }; } |
| 1506 | fi |
| 1507 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1508 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1509 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1510 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1511 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1512 | ac_config_headers="$ac_config_headers include/Config/config.h" |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1513 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1514 | ac_config_commands="$ac_config_commands Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1515 | |
| 1516 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1517 | ac_config_commands="$ac_config_commands Makefile.common" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1518 | |
| 1519 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1520 | ac_config_commands="$ac_config_commands Makefile.rules" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1521 | |
| 1522 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1523 | ac_config_commands="$ac_config_commands lib/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1524 | |
| 1525 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1526 | ac_config_commands="$ac_config_commands lib/Analysis/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1527 | |
| 1528 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1529 | ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1530 | |
| 1531 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1532 | ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1533 | |
| 1534 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1535 | ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1536 | |
| 1537 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1538 | ac_config_commands="$ac_config_commands lib/AsmParser/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1539 | |
| 1540 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1541 | ac_config_commands="$ac_config_commands lib/Bytecode/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1542 | |
| 1543 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1544 | ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1545 | |
| 1546 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1547 | ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1548 | |
| 1549 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1550 | ac_config_commands="$ac_config_commands lib/CWriter/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1551 | |
| 1552 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1553 | ac_config_commands="$ac_config_commands lib/CodeGen/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1554 | |
| 1555 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1556 | ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1557 | |
| 1558 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1559 | ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1560 | |
| 1561 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1562 | ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1563 | |
| 1564 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1565 | ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1566 | |
| 1567 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1568 | ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1569 | |
| 1570 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1571 | ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1572 | |
| 1573 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1574 | ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1575 | |
| 1576 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1577 | ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1578 | |
| 1579 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1580 | ac_config_commands="$ac_config_commands lib/Support/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1581 | |
| 1582 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1583 | ac_config_commands="$ac_config_commands lib/Target/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1584 | |
| 1585 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1586 | ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1587 | |
| 1588 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1589 | ac_config_commands="$ac_config_commands lib/Target/X86/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1590 | |
| 1591 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1592 | ac_config_commands="$ac_config_commands lib/Transforms/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1593 | |
| 1594 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1595 | ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1596 | |
| 1597 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1598 | ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1599 | |
| 1600 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1601 | ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1602 | |
| 1603 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1604 | ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1605 | |
| 1606 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1607 | ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1608 | |
| 1609 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1610 | ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1611 | |
| 1612 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1613 | ac_config_commands="$ac_config_commands lib/VMCore/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1614 | |
| 1615 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1616 | ac_config_commands="$ac_config_commands runtime/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1617 | |
| 1618 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1619 | ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1620 | |
| 1621 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1622 | ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1623 | |
| 1624 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1625 | ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1626 | |
| 1627 | |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 1628 | ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile" |
| 1629 | |
| 1630 | |
| 1631 | ac_config_commands="$ac_config_commands runtime/GCCLibraries/libexception/Makefile" |
| 1632 | |
| 1633 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1634 | ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1635 | |
| 1636 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1637 | ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1638 | |
| 1639 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1640 | ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1641 | |
| 1642 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1643 | ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1644 | |
| 1645 | |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 1646 | ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile" |
| 1647 | |
| 1648 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1649 | ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1650 | |
| 1651 | |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 1652 | ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile" |
| 1653 | |
| 1654 | |
| 1655 | ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile" |
| 1656 | |
| 1657 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1658 | ac_config_commands="$ac_config_commands runtime/libdummy/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1659 | |
| 1660 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1661 | ac_config_commands="$ac_config_commands runtime/libtrace/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1662 | |
| 1663 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1664 | ac_config_commands="$ac_config_commands test/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1665 | |
| 1666 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1667 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1668 | |
| 1669 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1670 | ac_config_commands="$ac_config_commands test/Programs/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1671 | |
| 1672 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1673 | ac_config_commands="$ac_config_commands test/Programs/Makefile.programs" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1674 | |
| 1675 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1676 | ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1677 | |
| 1678 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1679 | ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1680 | |
| 1681 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1682 | ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1683 | |
| 1684 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1685 | ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1686 | |
| 1687 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1688 | ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1689 | |
| 1690 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1691 | ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1692 | |
| 1693 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1694 | ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1695 | |
| 1696 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1697 | ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1698 | |
| 1699 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1700 | ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1701 | |
| 1702 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1703 | ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1704 | |
| 1705 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1706 | ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1707 | |
| 1708 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1709 | ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1710 | |
| 1711 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1712 | ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1713 | |
| 1714 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1715 | ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1716 | |
| 1717 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1718 | ac_config_commands="$ac_config_commands test/Programs/External/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1719 | |
| 1720 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1721 | ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1722 | |
| 1723 | |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 1724 | ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec" |
| 1725 | |
| 1726 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1727 | ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1728 | |
| 1729 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1730 | ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1731 | |
| 1732 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1733 | ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1734 | |
| 1735 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1736 | ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1737 | |
| 1738 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1739 | ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1740 | |
| 1741 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1742 | ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1743 | |
| 1744 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1745 | ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1746 | |
| 1747 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1748 | ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1749 | |
| 1750 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1751 | ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1752 | |
| 1753 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1754 | ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1755 | |
| 1756 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1757 | ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1758 | |
| 1759 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1760 | ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1761 | |
| 1762 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1763 | ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1764 | |
| 1765 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1766 | ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1767 | |
| 1768 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1769 | ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1770 | |
| 1771 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1772 | ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1773 | |
| 1774 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1775 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1776 | |
| 1777 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1778 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1779 | |
| 1780 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1781 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Burg/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1782 | |
| 1783 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1784 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Fhourstones/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1785 | |
| 1786 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1787 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1788 | |
| 1789 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1790 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/01-qbsort/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1791 | |
| 1792 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1793 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/03-testtrie/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1794 | |
| 1795 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1796 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/04-bisect/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1797 | |
| 1798 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1799 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/05-eks/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1800 | |
| 1801 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1802 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/08-main/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1803 | |
| 1804 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1805 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/09-vor/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1806 | |
| 1807 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1808 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/12-IOtest/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1809 | |
| 1810 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1811 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/15-trie/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1812 | |
| 1813 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1814 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/17-bintr/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1815 | |
| 1816 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1817 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/18-imp/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1818 | |
| 1819 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1820 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1821 | |
| 1822 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1823 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/bh/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1824 | |
| 1825 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1826 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/bisort/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1827 | |
| 1828 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1829 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/em3d/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1830 | |
| 1831 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1832 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/health/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1833 | |
| 1834 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1835 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/mst/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1836 | |
| 1837 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1838 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/perimeter/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1839 | |
| 1840 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1841 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/power/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1842 | |
| 1843 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1844 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/treeadd/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1845 | |
| 1846 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1847 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/tsp/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1848 | |
| 1849 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1850 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/voronoi/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1851 | |
| 1852 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1853 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/OptimizerEval/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1854 | |
| 1855 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1856 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1857 | |
| 1858 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1859 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/anagram/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1860 | |
| 1861 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1862 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/bc/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1863 | |
| 1864 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1865 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/ft/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1866 | |
| 1867 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1868 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/ks/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1869 | |
| 1870 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1871 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/yacr2/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1872 | |
| 1873 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1874 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/aha/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1875 | |
| 1876 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1877 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/llubenchmark/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1878 | |
| 1879 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1880 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/sgefa/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1881 | |
| 1882 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1883 | ac_config_commands="$ac_config_commands test/Programs/MultiSource/sim/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1884 | |
| 1885 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1886 | ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1887 | |
| 1888 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1889 | ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1890 | |
| 1891 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1892 | ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1893 | |
| 1894 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1895 | ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1896 | |
| 1897 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1898 | ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1899 | |
| 1900 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1901 | ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1902 | |
| 1903 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1904 | ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1905 | |
| 1906 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1907 | ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1908 | |
| 1909 | |
John Criswell | ffaaf3b | 2003-09-10 18:38:44 +0000 | [diff] [blame] | 1910 | ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile" |
| 1911 | |
| 1912 | |
| 1913 | ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile" |
| 1914 | |
| 1915 | |
| 1916 | ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" |
| 1917 | |
| 1918 | |
| 1919 | ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile" |
| 1920 | |
| 1921 | |
| 1922 | ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile" |
| 1923 | |
| 1924 | |
| 1925 | ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile" |
| 1926 | |
| 1927 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1928 | ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1929 | |
| 1930 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1931 | ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1932 | |
| 1933 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1934 | ac_config_commands="$ac_config_commands tools/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1935 | |
| 1936 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1937 | ac_config_commands="$ac_config_commands tools/analyze/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1938 | |
| 1939 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1940 | ac_config_commands="$ac_config_commands tools/as/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1941 | |
| 1942 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1943 | ac_config_commands="$ac_config_commands tools/bugpoint/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1944 | |
| 1945 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1946 | ac_config_commands="$ac_config_commands tools/dis/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1947 | |
| 1948 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1949 | ac_config_commands="$ac_config_commands tools/extract/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1950 | |
| 1951 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1952 | ac_config_commands="$ac_config_commands tools/gccas/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1953 | |
| 1954 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1955 | ac_config_commands="$ac_config_commands tools/gccld/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1956 | |
| 1957 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1958 | ac_config_commands="$ac_config_commands tools/link/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1959 | |
| 1960 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1961 | ac_config_commands="$ac_config_commands tools/llc/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1962 | |
| 1963 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1964 | ac_config_commands="$ac_config_commands tools/lli/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1965 | |
| 1966 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1967 | ac_config_commands="$ac_config_commands tools/opt/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1968 | |
| 1969 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1970 | ac_config_commands="$ac_config_commands tools/llee/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1971 | |
| 1972 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1973 | ac_config_commands="$ac_config_commands tools/llvm-as/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1974 | |
| 1975 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1976 | ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1977 | |
| 1978 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1979 | ac_config_commands="$ac_config_commands utils/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1980 | |
| 1981 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1982 | ac_config_commands="$ac_config_commands utils/Burg/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1983 | |
| 1984 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1985 | ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1986 | |
| 1987 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1988 | ac_config_commands="$ac_config_commands utils/TableGen/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1989 | |
| 1990 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1991 | ac_config_commands="$ac_config_commands www/docs/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1992 | |
| 1993 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1994 | ac_config_commands="$ac_config_commands projects/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1995 | |
| 1996 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1997 | ac_config_commands="$ac_config_commands projects/sample/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1998 | |
| 1999 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2000 | ac_config_commands="$ac_config_commands projects/sample/Makefile.common" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 2001 | |
| 2002 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2003 | ac_config_commands="$ac_config_commands projects/sample/Makefile.config" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 2004 | |
| 2005 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2006 | ac_config_commands="$ac_config_commands projects/sample/lib/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 2007 | |
| 2008 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2009 | ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 2010 | |
| 2011 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2012 | ac_config_commands="$ac_config_commands projects/sample/tools/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 2013 | |
| 2014 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2015 | ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 2016 | |
| 2017 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2018 | ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 2019 | |
| 2020 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2021 | ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 2022 | |
| 2023 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2024 | ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 2025 | |
| 2026 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2027 | ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 2028 | |
| 2029 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2030 | |
| 2031 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2032 | # Find a good install program. We prefer a C program (faster), |
| 2033 | # so one script is as good as another. But avoid the broken or |
| 2034 | # incompatible versions: |
| 2035 | # SysV /etc/install, /usr/sbin/install |
| 2036 | # SunOS /usr/etc/install |
| 2037 | # IRIX /sbin/install |
| 2038 | # AIX /bin/install |
| 2039 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2040 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2041 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2042 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2043 | # ./install, which can be erroneously created by make from ./install.sh. |
| 2044 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 2045 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 2046 | if test -z "$INSTALL"; then |
| 2047 | if test "${ac_cv_path_install+set}" = set; then |
| 2048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2049 | else |
| 2050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2051 | for as_dir in $PATH |
| 2052 | do |
| 2053 | IFS=$as_save_IFS |
| 2054 | test -z "$as_dir" && as_dir=. |
| 2055 | # Account for people who put trailing slashes in PATH elements. |
| 2056 | case $as_dir/ in |
| 2057 | ./ | .// | /cC/* | \ |
| 2058 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2059 | /usr/ucb/* ) ;; |
| 2060 | *) |
| 2061 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2062 | # Don't use installbsd from OSF since it installs stuff as root |
| 2063 | # by default. |
| 2064 | for ac_prog in ginstall scoinst install; do |
| 2065 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2066 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 2067 | if test $ac_prog = install && |
| 2068 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2069 | # AIX install. It has an incompatible calling convention. |
| 2070 | : |
| 2071 | elif test $ac_prog = install && |
| 2072 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2073 | # program-specific install script used by HP pwplus--don't use. |
| 2074 | : |
| 2075 | else |
| 2076 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2077 | break 3 |
| 2078 | fi |
| 2079 | fi |
| 2080 | done |
| 2081 | done |
| 2082 | ;; |
| 2083 | esac |
| 2084 | done |
| 2085 | |
| 2086 | |
| 2087 | fi |
| 2088 | if test "${ac_cv_path_install+set}" = set; then |
| 2089 | INSTALL=$ac_cv_path_install |
| 2090 | else |
| 2091 | # As a last resort, use the slow shell script. We don't cache a |
| 2092 | # path for INSTALL within a source directory, because that will |
| 2093 | # break other packages using the cache if that directory is |
| 2094 | # removed, or if the path is relative. |
| 2095 | INSTALL=$ac_install_sh |
| 2096 | fi |
| 2097 | fi |
| 2098 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 2099 | echo "${ECHO_T}$INSTALL" >&6 |
| 2100 | |
| 2101 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2102 | # It thinks the first close brace ends the variable substitution. |
| 2103 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2104 | |
| 2105 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2106 | |
| 2107 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2108 | |
| 2109 | |
| 2110 | # Make sure we can run config.sub. |
| 2111 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 2112 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 2113 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 2114 | { (exit 1); exit 1; }; } |
| 2115 | |
| 2116 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 2117 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 2118 | if test "${ac_cv_build+set}" = set; then |
| 2119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2120 | else |
| 2121 | ac_cv_build_alias=$build_alias |
| 2122 | test -z "$ac_cv_build_alias" && |
| 2123 | ac_cv_build_alias=`$ac_config_guess` |
| 2124 | test -z "$ac_cv_build_alias" && |
| 2125 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2126 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2127 | { (exit 1); exit 1; }; } |
| 2128 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 2129 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 2130 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 2131 | { (exit 1); exit 1; }; } |
| 2132 | |
| 2133 | fi |
| 2134 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2135 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 2136 | build=$ac_cv_build |
| 2137 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 2138 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 2139 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 2140 | |
| 2141 | |
| 2142 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 2143 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 2144 | if test "${ac_cv_host+set}" = set; then |
| 2145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2146 | else |
| 2147 | ac_cv_host_alias=$host_alias |
| 2148 | test -z "$ac_cv_host_alias" && |
| 2149 | ac_cv_host_alias=$ac_cv_build_alias |
| 2150 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 2151 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 2152 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 2153 | { (exit 1); exit 1; }; } |
| 2154 | |
| 2155 | fi |
| 2156 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2157 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 2158 | host=$ac_cv_host |
| 2159 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 2160 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 2161 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 2162 | |
| 2163 | |
| 2164 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 2165 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 2166 | if test "${ac_cv_target+set}" = set; then |
| 2167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2168 | else |
| 2169 | ac_cv_target_alias=$target_alias |
| 2170 | test "x$ac_cv_target_alias" = "x" && |
| 2171 | ac_cv_target_alias=$ac_cv_host_alias |
| 2172 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 2173 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 2174 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 2175 | { (exit 1); exit 1; }; } |
| 2176 | |
| 2177 | fi |
| 2178 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2179 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 2180 | target=$ac_cv_target |
| 2181 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 2182 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 2183 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 2184 | |
| 2185 | |
| 2186 | # The aliases save the names the user supplied, while $host etc. |
| 2187 | # will get canonicalized. |
| 2188 | test -n "$target_alias" && |
| 2189 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2190 | NONENONEs,x,x, && |
| 2191 | program_prefix=${target_alias}- |
| 2192 | |
| 2193 | case $build in |
| 2194 | *i*86*) OS=Linux |
| 2195 | |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 2196 | LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2197 | |
| 2198 | ;; |
| 2199 | |
| 2200 | *sparc*) OS=SunOS |
| 2201 | |
| 2202 | LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/ |
| 2203 | |
| 2204 | ;; |
| 2205 | |
| 2206 | *) OS=Unknown |
| 2207 | |
| 2208 | ;; |
| 2209 | esac |
| 2210 | |
| 2211 | case $target in |
| 2212 | *sparc*solaris*) target=sparcv9-sun-solaris2.8 |
| 2213 | |
| 2214 | ;; |
| 2215 | esac |
| 2216 | |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2217 | case $target in |
| 2218 | *i*86*) ARCH=x86 |
| 2219 | |
| 2220 | ;; |
| 2221 | *sparc*solaris*) ARCH=Sparc |
| 2222 | |
| 2223 | ;; |
| 2224 | esac |
| 2225 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2226 | |
| 2227 | ac_ext=cc |
| 2228 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2229 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2230 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2231 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2232 | if test -n "$ac_tool_prefix"; then |
| 2233 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2234 | do |
| 2235 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2236 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2237 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2238 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2239 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2241 | else |
| 2242 | if test -n "$CXX"; then |
| 2243 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2244 | else |
| 2245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2246 | for as_dir in $PATH |
| 2247 | do |
| 2248 | IFS=$as_save_IFS |
| 2249 | test -z "$as_dir" && as_dir=. |
| 2250 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2251 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2252 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2253 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2254 | break 2 |
| 2255 | fi |
| 2256 | done |
| 2257 | done |
| 2258 | |
| 2259 | fi |
| 2260 | fi |
| 2261 | CXX=$ac_cv_prog_CXX |
| 2262 | if test -n "$CXX"; then |
| 2263 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2264 | echo "${ECHO_T}$CXX" >&6 |
| 2265 | else |
| 2266 | echo "$as_me:$LINENO: result: no" >&5 |
| 2267 | echo "${ECHO_T}no" >&6 |
| 2268 | fi |
| 2269 | |
| 2270 | test -n "$CXX" && break |
| 2271 | done |
| 2272 | fi |
| 2273 | if test -z "$CXX"; then |
| 2274 | ac_ct_CXX=$CXX |
| 2275 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2276 | do |
| 2277 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2278 | set dummy $ac_prog; ac_word=$2 |
| 2279 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2280 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2281 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2283 | else |
| 2284 | if test -n "$ac_ct_CXX"; then |
| 2285 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2286 | else |
| 2287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2288 | for as_dir in $PATH |
| 2289 | do |
| 2290 | IFS=$as_save_IFS |
| 2291 | test -z "$as_dir" && as_dir=. |
| 2292 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2293 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2294 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2295 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2296 | break 2 |
| 2297 | fi |
| 2298 | done |
| 2299 | done |
| 2300 | |
| 2301 | fi |
| 2302 | fi |
| 2303 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2304 | if test -n "$ac_ct_CXX"; then |
| 2305 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2306 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 2307 | else |
| 2308 | echo "$as_me:$LINENO: result: no" >&5 |
| 2309 | echo "${ECHO_T}no" >&6 |
| 2310 | fi |
| 2311 | |
| 2312 | test -n "$ac_ct_CXX" && break |
| 2313 | done |
| 2314 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 2315 | |
| 2316 | CXX=$ac_ct_CXX |
| 2317 | fi |
| 2318 | |
| 2319 | |
| 2320 | # Provide some information about the compiler. |
| 2321 | echo "$as_me:$LINENO:" \ |
| 2322 | "checking for C++ compiler version" >&5 |
| 2323 | ac_compiler=`set X $ac_compile; echo $2` |
| 2324 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2325 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2326 | ac_status=$? |
| 2327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2328 | (exit $ac_status); } |
| 2329 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2330 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2331 | ac_status=$? |
| 2332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2333 | (exit $ac_status); } |
| 2334 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2335 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2336 | ac_status=$? |
| 2337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2338 | (exit $ac_status); } |
| 2339 | |
| 2340 | cat >conftest.$ac_ext <<_ACEOF |
| 2341 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2342 | /* confdefs.h. */ |
| 2343 | _ACEOF |
| 2344 | cat confdefs.h >>conftest.$ac_ext |
| 2345 | cat >>conftest.$ac_ext <<_ACEOF |
| 2346 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2347 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2348 | int |
| 2349 | main () |
| 2350 | { |
| 2351 | |
| 2352 | ; |
| 2353 | return 0; |
| 2354 | } |
| 2355 | _ACEOF |
| 2356 | ac_clean_files_save=$ac_clean_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2357 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2358 | # Try to create an executable without -o first, disregard a.out. |
| 2359 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2360 | # of exeext. |
| 2361 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 2362 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 2363 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2364 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2365 | (eval $ac_link_default) 2>&5 |
| 2366 | ac_status=$? |
| 2367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2368 | (exit $ac_status); }; then |
| 2369 | # Find the output, starting from the most likely. This scheme is |
| 2370 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2371 | # resort. |
| 2372 | |
| 2373 | # Be careful to initialize this variable, since it used to be cached. |
| 2374 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2375 | ac_cv_exeext= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2376 | # b.out is created by i960 compilers. |
| 2377 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2378 | do |
| 2379 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2380 | case $ac_file in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2381 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 2382 | ;; |
| 2383 | conftest.$ac_ext ) |
| 2384 | # This is the source file. |
| 2385 | ;; |
| 2386 | [ab].out ) |
| 2387 | # We found the default executable, but exeext='' is most |
| 2388 | # certainly right. |
| 2389 | break;; |
| 2390 | *.* ) |
| 2391 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2392 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2393 | # but it would be cool to find out if it's true. Does anybody |
| 2394 | # maintain Libtool? --akim. |
| 2395 | export ac_cv_exeext |
| 2396 | break;; |
| 2397 | * ) |
| 2398 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2399 | esac |
| 2400 | done |
| 2401 | else |
| 2402 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2404 | |
| 2405 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
| 2406 | See \`config.log' for more details." >&5 |
| 2407 | echo "$as_me: error: C++ compiler cannot create executables |
| 2408 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2409 | { (exit 77); exit 77; }; } |
| 2410 | fi |
| 2411 | |
| 2412 | ac_exeext=$ac_cv_exeext |
| 2413 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2414 | echo "${ECHO_T}$ac_file" >&6 |
| 2415 | |
| 2416 | # Check the compiler produces executables we can run. If not, either |
| 2417 | # the compiler is broken, or we cross compile. |
| 2418 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 2419 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 2420 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2421 | # If not cross compiling, check that we can run a simple program. |
| 2422 | if test "$cross_compiling" != yes; then |
| 2423 | if { ac_try='./$ac_file' |
| 2424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2425 | (eval $ac_try) 2>&5 |
| 2426 | ac_status=$? |
| 2427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2428 | (exit $ac_status); }; }; then |
| 2429 | cross_compiling=no |
| 2430 | else |
| 2431 | if test "$cross_compiling" = maybe; then |
| 2432 | cross_compiling=yes |
| 2433 | else |
| 2434 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2435 | If you meant to cross compile, use \`--host'. |
| 2436 | See \`config.log' for more details." >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2437 | echo "$as_me: error: cannot run C++ compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2438 | If you meant to cross compile, use \`--host'. |
| 2439 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2440 | { (exit 1); exit 1; }; } |
| 2441 | fi |
| 2442 | fi |
| 2443 | fi |
| 2444 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2445 | echo "${ECHO_T}yes" >&6 |
| 2446 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2447 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2448 | ac_clean_files=$ac_clean_files_save |
| 2449 | # Check the compiler produces executables we can run. If not, either |
| 2450 | # the compiler is broken, or we cross compile. |
| 2451 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2452 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2453 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2454 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2455 | |
| 2456 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2457 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2458 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2459 | (eval $ac_link) 2>&5 |
| 2460 | ac_status=$? |
| 2461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2462 | (exit $ac_status); }; then |
| 2463 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2464 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2465 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2466 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2467 | for ac_file in conftest.exe conftest conftest.*; do |
| 2468 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2469 | case $ac_file in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2470 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2471 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2472 | export ac_cv_exeext |
| 2473 | break;; |
| 2474 | * ) break;; |
| 2475 | esac |
| 2476 | done |
| 2477 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2478 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2479 | See \`config.log' for more details." >&5 |
| 2480 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2481 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2482 | { (exit 1); exit 1; }; } |
| 2483 | fi |
| 2484 | |
| 2485 | rm -f conftest$ac_cv_exeext |
| 2486 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2487 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2488 | |
| 2489 | rm -f conftest.$ac_ext |
| 2490 | EXEEXT=$ac_cv_exeext |
| 2491 | ac_exeext=$EXEEXT |
| 2492 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2493 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2494 | if test "${ac_cv_objext+set}" = set; then |
| 2495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2496 | else |
| 2497 | cat >conftest.$ac_ext <<_ACEOF |
| 2498 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2499 | /* confdefs.h. */ |
| 2500 | _ACEOF |
| 2501 | cat confdefs.h >>conftest.$ac_ext |
| 2502 | cat >>conftest.$ac_ext <<_ACEOF |
| 2503 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2504 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2505 | int |
| 2506 | main () |
| 2507 | { |
| 2508 | |
| 2509 | ; |
| 2510 | return 0; |
| 2511 | } |
| 2512 | _ACEOF |
| 2513 | rm -f conftest.o conftest.obj |
| 2514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2515 | (eval $ac_compile) 2>&5 |
| 2516 | ac_status=$? |
| 2517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2518 | (exit $ac_status); }; then |
| 2519 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2520 | case $ac_file in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2521 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2522 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2523 | break;; |
| 2524 | esac |
| 2525 | done |
| 2526 | else |
| 2527 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2528 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2529 | |
| 2530 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2531 | See \`config.log' for more details." >&5 |
| 2532 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2533 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2534 | { (exit 1); exit 1; }; } |
| 2535 | fi |
| 2536 | |
| 2537 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2538 | fi |
| 2539 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2540 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2541 | OBJEXT=$ac_cv_objext |
| 2542 | ac_objext=$OBJEXT |
| 2543 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2544 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 2545 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2547 | else |
| 2548 | cat >conftest.$ac_ext <<_ACEOF |
| 2549 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2550 | /* confdefs.h. */ |
| 2551 | _ACEOF |
| 2552 | cat confdefs.h >>conftest.$ac_ext |
| 2553 | cat >>conftest.$ac_ext <<_ACEOF |
| 2554 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2555 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2556 | int |
| 2557 | main () |
| 2558 | { |
| 2559 | #ifndef __GNUC__ |
| 2560 | choke me |
| 2561 | #endif |
| 2562 | |
| 2563 | ; |
| 2564 | return 0; |
| 2565 | } |
| 2566 | _ACEOF |
| 2567 | rm -f conftest.$ac_objext |
| 2568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2569 | (eval $ac_compile) 2>&5 |
| 2570 | ac_status=$? |
| 2571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2572 | (exit $ac_status); } && |
| 2573 | { ac_try='test -s conftest.$ac_objext' |
| 2574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2575 | (eval $ac_try) 2>&5 |
| 2576 | ac_status=$? |
| 2577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2578 | (exit $ac_status); }; }; then |
| 2579 | ac_compiler_gnu=yes |
| 2580 | else |
| 2581 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2583 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2584 | ac_compiler_gnu=no |
| 2585 | fi |
| 2586 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2587 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2588 | |
| 2589 | fi |
| 2590 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2591 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 2592 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2593 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2594 | ac_save_CXXFLAGS=$CXXFLAGS |
| 2595 | CXXFLAGS="-g" |
| 2596 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 2597 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 2598 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2600 | else |
| 2601 | cat >conftest.$ac_ext <<_ACEOF |
| 2602 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2603 | /* confdefs.h. */ |
| 2604 | _ACEOF |
| 2605 | cat confdefs.h >>conftest.$ac_ext |
| 2606 | cat >>conftest.$ac_ext <<_ACEOF |
| 2607 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2608 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2609 | int |
| 2610 | main () |
| 2611 | { |
| 2612 | |
| 2613 | ; |
| 2614 | return 0; |
| 2615 | } |
| 2616 | _ACEOF |
| 2617 | rm -f conftest.$ac_objext |
| 2618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2619 | (eval $ac_compile) 2>&5 |
| 2620 | ac_status=$? |
| 2621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2622 | (exit $ac_status); } && |
| 2623 | { ac_try='test -s conftest.$ac_objext' |
| 2624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2625 | (eval $ac_try) 2>&5 |
| 2626 | ac_status=$? |
| 2627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2628 | (exit $ac_status); }; }; then |
| 2629 | ac_cv_prog_cxx_g=yes |
| 2630 | else |
| 2631 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2633 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2634 | ac_cv_prog_cxx_g=no |
| 2635 | fi |
| 2636 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2637 | fi |
| 2638 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 2639 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 2640 | if test "$ac_test_CXXFLAGS" = set; then |
| 2641 | CXXFLAGS=$ac_save_CXXFLAGS |
| 2642 | elif test $ac_cv_prog_cxx_g = yes; then |
| 2643 | if test "$GXX" = yes; then |
| 2644 | CXXFLAGS="-g -O2" |
| 2645 | else |
| 2646 | CXXFLAGS="-g" |
| 2647 | fi |
| 2648 | else |
| 2649 | if test "$GXX" = yes; then |
| 2650 | CXXFLAGS="-O2" |
| 2651 | else |
| 2652 | CXXFLAGS= |
| 2653 | fi |
| 2654 | fi |
| 2655 | for ac_declaration in \ |
| 2656 | ''\ |
| 2657 | '#include <stdlib.h>' \ |
| 2658 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2659 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2660 | 'extern "C" void exit (int) throw ();' \ |
| 2661 | 'extern "C" void exit (int);' \ |
| 2662 | 'void exit (int);' |
| 2663 | do |
| 2664 | cat >conftest.$ac_ext <<_ACEOF |
| 2665 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2666 | /* confdefs.h. */ |
| 2667 | _ACEOF |
| 2668 | cat confdefs.h >>conftest.$ac_ext |
| 2669 | cat >>conftest.$ac_ext <<_ACEOF |
| 2670 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2671 | #include <stdlib.h> |
| 2672 | $ac_declaration |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2673 | int |
| 2674 | main () |
| 2675 | { |
| 2676 | exit (42); |
| 2677 | ; |
| 2678 | return 0; |
| 2679 | } |
| 2680 | _ACEOF |
| 2681 | rm -f conftest.$ac_objext |
| 2682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2683 | (eval $ac_compile) 2>&5 |
| 2684 | ac_status=$? |
| 2685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2686 | (exit $ac_status); } && |
| 2687 | { ac_try='test -s conftest.$ac_objext' |
| 2688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2689 | (eval $ac_try) 2>&5 |
| 2690 | ac_status=$? |
| 2691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2692 | (exit $ac_status); }; }; then |
| 2693 | : |
| 2694 | else |
| 2695 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2697 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2698 | continue |
| 2699 | fi |
| 2700 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2701 | cat >conftest.$ac_ext <<_ACEOF |
| 2702 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2703 | /* confdefs.h. */ |
| 2704 | _ACEOF |
| 2705 | cat confdefs.h >>conftest.$ac_ext |
| 2706 | cat >>conftest.$ac_ext <<_ACEOF |
| 2707 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2708 | $ac_declaration |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2709 | int |
| 2710 | main () |
| 2711 | { |
| 2712 | exit (42); |
| 2713 | ; |
| 2714 | return 0; |
| 2715 | } |
| 2716 | _ACEOF |
| 2717 | rm -f conftest.$ac_objext |
| 2718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2719 | (eval $ac_compile) 2>&5 |
| 2720 | ac_status=$? |
| 2721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2722 | (exit $ac_status); } && |
| 2723 | { ac_try='test -s conftest.$ac_objext' |
| 2724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2725 | (eval $ac_try) 2>&5 |
| 2726 | ac_status=$? |
| 2727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2728 | (exit $ac_status); }; }; then |
| 2729 | break |
| 2730 | else |
| 2731 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2733 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2734 | fi |
| 2735 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2736 | done |
| 2737 | rm -f conftest* |
| 2738 | if test -n "$ac_declaration"; then |
| 2739 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2740 | echo $ac_declaration >>confdefs.h |
| 2741 | echo '#endif' >>confdefs.h |
| 2742 | fi |
| 2743 | |
| 2744 | ac_ext=c |
| 2745 | ac_cpp='$CPP $CPPFLAGS' |
| 2746 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2747 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2748 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2749 | |
| 2750 | ac_ext=c |
| 2751 | ac_cpp='$CPP $CPPFLAGS' |
| 2752 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2753 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2754 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2755 | if test -n "$ac_tool_prefix"; then |
| 2756 | for ac_prog in gcc |
| 2757 | do |
| 2758 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2759 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2760 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2761 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2762 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2764 | else |
| 2765 | if test -n "$CC"; then |
| 2766 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2767 | else |
| 2768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2769 | for as_dir in $PATH |
| 2770 | do |
| 2771 | IFS=$as_save_IFS |
| 2772 | test -z "$as_dir" && as_dir=. |
| 2773 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2774 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2775 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2776 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2777 | break 2 |
| 2778 | fi |
| 2779 | done |
| 2780 | done |
| 2781 | |
| 2782 | fi |
| 2783 | fi |
| 2784 | CC=$ac_cv_prog_CC |
| 2785 | if test -n "$CC"; then |
| 2786 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2787 | echo "${ECHO_T}$CC" >&6 |
| 2788 | else |
| 2789 | echo "$as_me:$LINENO: result: no" >&5 |
| 2790 | echo "${ECHO_T}no" >&6 |
| 2791 | fi |
| 2792 | |
| 2793 | test -n "$CC" && break |
| 2794 | done |
| 2795 | fi |
| 2796 | if test -z "$CC"; then |
| 2797 | ac_ct_CC=$CC |
| 2798 | for ac_prog in gcc |
| 2799 | do |
| 2800 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2801 | set dummy $ac_prog; ac_word=$2 |
| 2802 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2803 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2804 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2806 | else |
| 2807 | if test -n "$ac_ct_CC"; then |
| 2808 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2809 | else |
| 2810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2811 | for as_dir in $PATH |
| 2812 | do |
| 2813 | IFS=$as_save_IFS |
| 2814 | test -z "$as_dir" && as_dir=. |
| 2815 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2816 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2817 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2818 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2819 | break 2 |
| 2820 | fi |
| 2821 | done |
| 2822 | done |
| 2823 | |
| 2824 | fi |
| 2825 | fi |
| 2826 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2827 | if test -n "$ac_ct_CC"; then |
| 2828 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2829 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2830 | else |
| 2831 | echo "$as_me:$LINENO: result: no" >&5 |
| 2832 | echo "${ECHO_T}no" >&6 |
| 2833 | fi |
| 2834 | |
| 2835 | test -n "$ac_ct_CC" && break |
| 2836 | done |
| 2837 | |
| 2838 | CC=$ac_ct_CC |
| 2839 | fi |
| 2840 | |
| 2841 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2842 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2843 | See \`config.log' for more details." >&5 |
| 2844 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2845 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2846 | { (exit 1); exit 1; }; } |
| 2847 | |
| 2848 | # Provide some information about the compiler. |
| 2849 | echo "$as_me:$LINENO:" \ |
| 2850 | "checking for C compiler version" >&5 |
| 2851 | ac_compiler=`set X $ac_compile; echo $2` |
| 2852 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2853 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2854 | ac_status=$? |
| 2855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2856 | (exit $ac_status); } |
| 2857 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2858 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2859 | ac_status=$? |
| 2860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2861 | (exit $ac_status); } |
| 2862 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2863 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2864 | ac_status=$? |
| 2865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2866 | (exit $ac_status); } |
| 2867 | |
| 2868 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2869 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2870 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2872 | else |
| 2873 | cat >conftest.$ac_ext <<_ACEOF |
| 2874 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2875 | /* confdefs.h. */ |
| 2876 | _ACEOF |
| 2877 | cat confdefs.h >>conftest.$ac_ext |
| 2878 | cat >>conftest.$ac_ext <<_ACEOF |
| 2879 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2880 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2881 | int |
| 2882 | main () |
| 2883 | { |
| 2884 | #ifndef __GNUC__ |
| 2885 | choke me |
| 2886 | #endif |
| 2887 | |
| 2888 | ; |
| 2889 | return 0; |
| 2890 | } |
| 2891 | _ACEOF |
| 2892 | rm -f conftest.$ac_objext |
| 2893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2894 | (eval $ac_compile) 2>&5 |
| 2895 | ac_status=$? |
| 2896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2897 | (exit $ac_status); } && |
| 2898 | { ac_try='test -s conftest.$ac_objext' |
| 2899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2900 | (eval $ac_try) 2>&5 |
| 2901 | ac_status=$? |
| 2902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2903 | (exit $ac_status); }; }; then |
| 2904 | ac_compiler_gnu=yes |
| 2905 | else |
| 2906 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2908 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2909 | ac_compiler_gnu=no |
| 2910 | fi |
| 2911 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2912 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2913 | |
| 2914 | fi |
| 2915 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2916 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2917 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2918 | ac_test_CFLAGS=${CFLAGS+set} |
| 2919 | ac_save_CFLAGS=$CFLAGS |
| 2920 | CFLAGS="-g" |
| 2921 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2922 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2923 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2925 | else |
| 2926 | cat >conftest.$ac_ext <<_ACEOF |
| 2927 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2928 | /* confdefs.h. */ |
| 2929 | _ACEOF |
| 2930 | cat confdefs.h >>conftest.$ac_ext |
| 2931 | cat >>conftest.$ac_ext <<_ACEOF |
| 2932 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2933 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2934 | int |
| 2935 | main () |
| 2936 | { |
| 2937 | |
| 2938 | ; |
| 2939 | return 0; |
| 2940 | } |
| 2941 | _ACEOF |
| 2942 | rm -f conftest.$ac_objext |
| 2943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2944 | (eval $ac_compile) 2>&5 |
| 2945 | ac_status=$? |
| 2946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2947 | (exit $ac_status); } && |
| 2948 | { ac_try='test -s conftest.$ac_objext' |
| 2949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2950 | (eval $ac_try) 2>&5 |
| 2951 | ac_status=$? |
| 2952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2953 | (exit $ac_status); }; }; then |
| 2954 | ac_cv_prog_cc_g=yes |
| 2955 | else |
| 2956 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2958 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2959 | ac_cv_prog_cc_g=no |
| 2960 | fi |
| 2961 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2962 | fi |
| 2963 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2964 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2965 | if test "$ac_test_CFLAGS" = set; then |
| 2966 | CFLAGS=$ac_save_CFLAGS |
| 2967 | elif test $ac_cv_prog_cc_g = yes; then |
| 2968 | if test "$GCC" = yes; then |
| 2969 | CFLAGS="-g -O2" |
| 2970 | else |
| 2971 | CFLAGS="-g" |
| 2972 | fi |
| 2973 | else |
| 2974 | if test "$GCC" = yes; then |
| 2975 | CFLAGS="-O2" |
| 2976 | else |
| 2977 | CFLAGS= |
| 2978 | fi |
| 2979 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2980 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2981 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2982 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2984 | else |
| 2985 | ac_cv_prog_cc_stdc=no |
| 2986 | ac_save_CC=$CC |
| 2987 | cat >conftest.$ac_ext <<_ACEOF |
| 2988 | #line $LINENO "configure" |
| 2989 | /* confdefs.h. */ |
| 2990 | _ACEOF |
| 2991 | cat confdefs.h >>conftest.$ac_ext |
| 2992 | cat >>conftest.$ac_ext <<_ACEOF |
| 2993 | /* end confdefs.h. */ |
| 2994 | #include <stdarg.h> |
| 2995 | #include <stdio.h> |
| 2996 | #include <sys/types.h> |
| 2997 | #include <sys/stat.h> |
| 2998 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2999 | struct buf { int x; }; |
| 3000 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3001 | static char *e (p, i) |
| 3002 | char **p; |
| 3003 | int i; |
| 3004 | { |
| 3005 | return p[i]; |
| 3006 | } |
| 3007 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3008 | { |
| 3009 | char *s; |
| 3010 | va_list v; |
| 3011 | va_start (v,p); |
| 3012 | s = g (p, va_arg (v,int)); |
| 3013 | va_end (v); |
| 3014 | return s; |
| 3015 | } |
| 3016 | int test (int i, double x); |
| 3017 | struct s1 {int (*f) (int a);}; |
| 3018 | struct s2 {int (*f) (double a);}; |
| 3019 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3020 | int argc; |
| 3021 | char **argv; |
| 3022 | int |
| 3023 | main () |
| 3024 | { |
| 3025 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3026 | ; |
| 3027 | return 0; |
| 3028 | } |
| 3029 | _ACEOF |
| 3030 | # Don't try gcc -ansi; that turns off useful extensions and |
| 3031 | # breaks some systems' header files. |
| 3032 | # AIX -qlanglvl=ansi |
| 3033 | # Ultrix and OSF/1 -std1 |
| 3034 | # HP-UX 10.20 and later -Ae |
| 3035 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 3036 | # SVR4 -Xc -D__EXTENSIONS__ |
| 3037 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3038 | do |
| 3039 | CC="$ac_save_CC $ac_arg" |
| 3040 | rm -f conftest.$ac_objext |
| 3041 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3042 | (eval $ac_compile) 2>&5 |
| 3043 | ac_status=$? |
| 3044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3045 | (exit $ac_status); } && |
| 3046 | { ac_try='test -s conftest.$ac_objext' |
| 3047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3048 | (eval $ac_try) 2>&5 |
| 3049 | ac_status=$? |
| 3050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3051 | (exit $ac_status); }; }; then |
| 3052 | ac_cv_prog_cc_stdc=$ac_arg |
| 3053 | break |
| 3054 | else |
| 3055 | echo "$as_me: failed program was:" >&5 |
| 3056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3057 | |
| 3058 | fi |
| 3059 | rm -f conftest.$ac_objext |
| 3060 | done |
| 3061 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 3062 | CC=$ac_save_CC |
| 3063 | |
| 3064 | fi |
| 3065 | |
| 3066 | case "x$ac_cv_prog_cc_stdc" in |
| 3067 | x|xno) |
| 3068 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 3069 | echo "${ECHO_T}none needed" >&6 ;; |
| 3070 | *) |
| 3071 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 3072 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 3073 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 3074 | esac |
| 3075 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3076 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 3077 | # in C++ we need to declare it. In case someone uses the same compiler |
| 3078 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 3079 | # the declaration of exit, since it's the most demanding environment. |
| 3080 | cat >conftest.$ac_ext <<_ACEOF |
| 3081 | #ifndef __cplusplus |
| 3082 | choke me |
| 3083 | #endif |
| 3084 | _ACEOF |
| 3085 | rm -f conftest.$ac_objext |
| 3086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3087 | (eval $ac_compile) 2>&5 |
| 3088 | ac_status=$? |
| 3089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3090 | (exit $ac_status); } && |
| 3091 | { ac_try='test -s conftest.$ac_objext' |
| 3092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3093 | (eval $ac_try) 2>&5 |
| 3094 | ac_status=$? |
| 3095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3096 | (exit $ac_status); }; }; then |
| 3097 | for ac_declaration in \ |
| 3098 | ''\ |
| 3099 | '#include <stdlib.h>' \ |
| 3100 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 3101 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 3102 | 'extern "C" void exit (int) throw ();' \ |
| 3103 | 'extern "C" void exit (int);' \ |
| 3104 | 'void exit (int);' |
| 3105 | do |
| 3106 | cat >conftest.$ac_ext <<_ACEOF |
| 3107 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3108 | /* confdefs.h. */ |
| 3109 | _ACEOF |
| 3110 | cat confdefs.h >>conftest.$ac_ext |
| 3111 | cat >>conftest.$ac_ext <<_ACEOF |
| 3112 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3113 | #include <stdlib.h> |
| 3114 | $ac_declaration |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3115 | int |
| 3116 | main () |
| 3117 | { |
| 3118 | exit (42); |
| 3119 | ; |
| 3120 | return 0; |
| 3121 | } |
| 3122 | _ACEOF |
| 3123 | rm -f conftest.$ac_objext |
| 3124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3125 | (eval $ac_compile) 2>&5 |
| 3126 | ac_status=$? |
| 3127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3128 | (exit $ac_status); } && |
| 3129 | { ac_try='test -s conftest.$ac_objext' |
| 3130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3131 | (eval $ac_try) 2>&5 |
| 3132 | ac_status=$? |
| 3133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3134 | (exit $ac_status); }; }; then |
| 3135 | : |
| 3136 | else |
| 3137 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3139 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3140 | continue |
| 3141 | fi |
| 3142 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3143 | cat >conftest.$ac_ext <<_ACEOF |
| 3144 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3145 | /* confdefs.h. */ |
| 3146 | _ACEOF |
| 3147 | cat confdefs.h >>conftest.$ac_ext |
| 3148 | cat >>conftest.$ac_ext <<_ACEOF |
| 3149 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3150 | $ac_declaration |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3151 | int |
| 3152 | main () |
| 3153 | { |
| 3154 | exit (42); |
| 3155 | ; |
| 3156 | return 0; |
| 3157 | } |
| 3158 | _ACEOF |
| 3159 | rm -f conftest.$ac_objext |
| 3160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3161 | (eval $ac_compile) 2>&5 |
| 3162 | ac_status=$? |
| 3163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3164 | (exit $ac_status); } && |
| 3165 | { ac_try='test -s conftest.$ac_objext' |
| 3166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3167 | (eval $ac_try) 2>&5 |
| 3168 | ac_status=$? |
| 3169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3170 | (exit $ac_status); }; }; then |
| 3171 | break |
| 3172 | else |
| 3173 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3175 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3176 | fi |
| 3177 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3178 | done |
| 3179 | rm -f conftest* |
| 3180 | if test -n "$ac_declaration"; then |
| 3181 | echo '#ifdef __cplusplus' >>confdefs.h |
| 3182 | echo $ac_declaration >>confdefs.h |
| 3183 | echo '#endif' >>confdefs.h |
| 3184 | fi |
| 3185 | |
| 3186 | else |
| 3187 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3189 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3190 | fi |
| 3191 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3192 | ac_ext=c |
| 3193 | ac_cpp='$CPP $CPPFLAGS' |
| 3194 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3195 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3196 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3197 | |
| 3198 | ac_ext=c |
| 3199 | ac_cpp='$CPP $CPPFLAGS' |
| 3200 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3201 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3202 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3203 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3204 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3205 | # On Suns, sometimes $CPP names a directory. |
| 3206 | if test -n "$CPP" && test -d "$CPP"; then |
| 3207 | CPP= |
| 3208 | fi |
| 3209 | if test -z "$CPP"; then |
| 3210 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3212 | else |
| 3213 | # Double quotes because CPP needs to be expanded |
| 3214 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3215 | do |
| 3216 | ac_preproc_ok=false |
| 3217 | for ac_c_preproc_warn_flag in '' yes |
| 3218 | do |
| 3219 | # Use a header file that comes with gcc, so configuring glibc |
| 3220 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3221 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3222 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3223 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3224 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3225 | cat >conftest.$ac_ext <<_ACEOF |
| 3226 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3227 | /* confdefs.h. */ |
| 3228 | _ACEOF |
| 3229 | cat confdefs.h >>conftest.$ac_ext |
| 3230 | cat >>conftest.$ac_ext <<_ACEOF |
| 3231 | /* end confdefs.h. */ |
| 3232 | #ifdef __STDC__ |
| 3233 | # include <limits.h> |
| 3234 | #else |
| 3235 | # include <assert.h> |
| 3236 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3237 | Syntax error |
| 3238 | _ACEOF |
| 3239 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3240 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3241 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3242 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3243 | rm -f conftest.er1 |
| 3244 | cat conftest.err >&5 |
| 3245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3246 | (exit $ac_status); } >/dev/null; then |
| 3247 | if test -s conftest.err; then |
| 3248 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3249 | else |
| 3250 | ac_cpp_err= |
| 3251 | fi |
| 3252 | else |
| 3253 | ac_cpp_err=yes |
| 3254 | fi |
| 3255 | if test -z "$ac_cpp_err"; then |
| 3256 | : |
| 3257 | else |
| 3258 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3260 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3261 | # Broken: fails on valid input. |
| 3262 | continue |
| 3263 | fi |
| 3264 | rm -f conftest.err conftest.$ac_ext |
| 3265 | |
| 3266 | # OK, works on sane cases. Now check whether non-existent headers |
| 3267 | # can be detected and how. |
| 3268 | cat >conftest.$ac_ext <<_ACEOF |
| 3269 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3270 | /* confdefs.h. */ |
| 3271 | _ACEOF |
| 3272 | cat confdefs.h >>conftest.$ac_ext |
| 3273 | cat >>conftest.$ac_ext <<_ACEOF |
| 3274 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3275 | #include <ac_nonexistent.h> |
| 3276 | _ACEOF |
| 3277 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3278 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3279 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3280 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3281 | rm -f conftest.er1 |
| 3282 | cat conftest.err >&5 |
| 3283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3284 | (exit $ac_status); } >/dev/null; then |
| 3285 | if test -s conftest.err; then |
| 3286 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3287 | else |
| 3288 | ac_cpp_err= |
| 3289 | fi |
| 3290 | else |
| 3291 | ac_cpp_err=yes |
| 3292 | fi |
| 3293 | if test -z "$ac_cpp_err"; then |
| 3294 | # Broken: success on invalid input. |
| 3295 | continue |
| 3296 | else |
| 3297 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3299 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3300 | # Passes both tests. |
| 3301 | ac_preproc_ok=: |
| 3302 | break |
| 3303 | fi |
| 3304 | rm -f conftest.err conftest.$ac_ext |
| 3305 | |
| 3306 | done |
| 3307 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3308 | rm -f conftest.err conftest.$ac_ext |
| 3309 | if $ac_preproc_ok; then |
| 3310 | break |
| 3311 | fi |
| 3312 | |
| 3313 | done |
| 3314 | ac_cv_prog_CPP=$CPP |
| 3315 | |
| 3316 | fi |
| 3317 | CPP=$ac_cv_prog_CPP |
| 3318 | else |
| 3319 | ac_cv_prog_CPP=$CPP |
| 3320 | fi |
| 3321 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3322 | echo "${ECHO_T}$CPP" >&6 |
| 3323 | ac_preproc_ok=false |
| 3324 | for ac_c_preproc_warn_flag in '' yes |
| 3325 | do |
| 3326 | # Use a header file that comes with gcc, so configuring glibc |
| 3327 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3328 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3329 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3330 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3331 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3332 | cat >conftest.$ac_ext <<_ACEOF |
| 3333 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3334 | /* confdefs.h. */ |
| 3335 | _ACEOF |
| 3336 | cat confdefs.h >>conftest.$ac_ext |
| 3337 | cat >>conftest.$ac_ext <<_ACEOF |
| 3338 | /* end confdefs.h. */ |
| 3339 | #ifdef __STDC__ |
| 3340 | # include <limits.h> |
| 3341 | #else |
| 3342 | # include <assert.h> |
| 3343 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3344 | Syntax error |
| 3345 | _ACEOF |
| 3346 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3347 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3348 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3349 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3350 | rm -f conftest.er1 |
| 3351 | cat conftest.err >&5 |
| 3352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3353 | (exit $ac_status); } >/dev/null; then |
| 3354 | if test -s conftest.err; then |
| 3355 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3356 | else |
| 3357 | ac_cpp_err= |
| 3358 | fi |
| 3359 | else |
| 3360 | ac_cpp_err=yes |
| 3361 | fi |
| 3362 | if test -z "$ac_cpp_err"; then |
| 3363 | : |
| 3364 | else |
| 3365 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3367 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3368 | # Broken: fails on valid input. |
| 3369 | continue |
| 3370 | fi |
| 3371 | rm -f conftest.err conftest.$ac_ext |
| 3372 | |
| 3373 | # OK, works on sane cases. Now check whether non-existent headers |
| 3374 | # can be detected and how. |
| 3375 | cat >conftest.$ac_ext <<_ACEOF |
| 3376 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3377 | /* confdefs.h. */ |
| 3378 | _ACEOF |
| 3379 | cat confdefs.h >>conftest.$ac_ext |
| 3380 | cat >>conftest.$ac_ext <<_ACEOF |
| 3381 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3382 | #include <ac_nonexistent.h> |
| 3383 | _ACEOF |
| 3384 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3385 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3386 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3387 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3388 | rm -f conftest.er1 |
| 3389 | cat conftest.err >&5 |
| 3390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3391 | (exit $ac_status); } >/dev/null; then |
| 3392 | if test -s conftest.err; then |
| 3393 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3394 | else |
| 3395 | ac_cpp_err= |
| 3396 | fi |
| 3397 | else |
| 3398 | ac_cpp_err=yes |
| 3399 | fi |
| 3400 | if test -z "$ac_cpp_err"; then |
| 3401 | # Broken: success on invalid input. |
| 3402 | continue |
| 3403 | else |
| 3404 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3406 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3407 | # Passes both tests. |
| 3408 | ac_preproc_ok=: |
| 3409 | break |
| 3410 | fi |
| 3411 | rm -f conftest.err conftest.$ac_ext |
| 3412 | |
| 3413 | done |
| 3414 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3415 | rm -f conftest.err conftest.$ac_ext |
| 3416 | if $ac_preproc_ok; then |
| 3417 | : |
| 3418 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3419 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3420 | See \`config.log' for more details." >&5 |
| 3421 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3422 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3423 | { (exit 1); exit 1; }; } |
| 3424 | fi |
| 3425 | |
| 3426 | ac_ext=c |
| 3427 | ac_cpp='$CPP $CPPFLAGS' |
| 3428 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3429 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3430 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3431 | |
| 3432 | |
| 3433 | if test "$GCC" != "yes" |
| 3434 | then |
| 3435 | { { echo "$as_me:$LINENO: error: gcc required but not found" >&5 |
| 3436 | echo "$as_me: error: gcc required but not found" >&2;} |
| 3437 | { (exit 1); exit 1; }; } |
| 3438 | fi |
| 3439 | |
| 3440 | if test "$GXX" != "yes" |
| 3441 | then |
| 3442 | { { echo "$as_me:$LINENO: error: g++ required but not found" >&5 |
| 3443 | echo "$as_me: error: g++ required but not found" >&2;} |
| 3444 | { (exit 1); exit 1; }; } |
| 3445 | fi |
| 3446 | |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 3447 | gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1` |
| 3448 | if test "$gccmajor" -lt "3" |
| 3449 | then |
| 3450 | { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5 |
| 3451 | echo "$as_me: error: gcc 3.x required" >&2;} |
| 3452 | { (exit 1); exit 1; }; } |
| 3453 | fi |
| 3454 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3455 | echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 3456 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6 |
| 3457 | if test "${_cv_gnu_make_command+set}" = set; then |
| 3458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3459 | else |
| 3460 | _cv_gnu_make_command='' ; |
| 3461 | for a in "$MAKE" make gmake gnumake ; do |
| 3462 | if test -z "$a" ; then continue ; fi ; |
| 3463 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then |
| 3464 | _cv_gnu_make_command=$a ; |
| 3465 | break; |
| 3466 | fi |
| 3467 | done ; |
| 3468 | |
| 3469 | fi |
| 3470 | echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5 |
| 3471 | echo "${ECHO_T}$_cv_gnu_make_command" >&6 ; |
| 3472 | if test "x$_cv_gnu_make_command" != "x" ; then |
| 3473 | ifGNUmake='' ; |
| 3474 | else |
| 3475 | ifGNUmake='#' ; |
| 3476 | echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 3477 | echo "${ECHO_T}\"Not found\"" >&6; |
| 3478 | fi |
| 3479 | |
| 3480 | |
| 3481 | if test -z "$_cv_gnu_make_command" |
| 3482 | then |
| 3483 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 3484 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 3485 | { (exit 1); exit 1; }; } |
| 3486 | fi |
| 3487 | |
| 3488 | |
| 3489 | echo "$as_me:$LINENO: checking " >&5 |
| 3490 | echo $ECHO_N "checking ... $ECHO_C" >&6 |
| 3491 | if test "${ac_cv_has_flex+set}" = set; then |
| 3492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3493 | else |
| 3494 | for ac_prog in flex lex |
| 3495 | do |
| 3496 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3497 | set dummy $ac_prog; ac_word=$2 |
| 3498 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3499 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3500 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 3501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3502 | else |
| 3503 | if test -n "$LEX"; then |
| 3504 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 3505 | else |
| 3506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3507 | for as_dir in $PATH |
| 3508 | do |
| 3509 | IFS=$as_save_IFS |
| 3510 | test -z "$as_dir" && as_dir=. |
| 3511 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3512 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3513 | ac_cv_prog_LEX="$ac_prog" |
| 3514 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3515 | break 2 |
| 3516 | fi |
| 3517 | done |
| 3518 | done |
| 3519 | |
| 3520 | fi |
| 3521 | fi |
| 3522 | LEX=$ac_cv_prog_LEX |
| 3523 | if test -n "$LEX"; then |
| 3524 | echo "$as_me:$LINENO: result: $LEX" >&5 |
| 3525 | echo "${ECHO_T}$LEX" >&6 |
| 3526 | else |
| 3527 | echo "$as_me:$LINENO: result: no" >&5 |
| 3528 | echo "${ECHO_T}no" >&6 |
| 3529 | fi |
| 3530 | |
| 3531 | test -n "$LEX" && break |
| 3532 | done |
| 3533 | test -n "$LEX" || LEX=":" |
| 3534 | |
| 3535 | if test -z "$LEXLIB" |
| 3536 | then |
| 3537 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 3538 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| 3539 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 3540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3541 | else |
| 3542 | ac_check_lib_save_LIBS=$LIBS |
| 3543 | LIBS="-lfl $LIBS" |
| 3544 | cat >conftest.$ac_ext <<_ACEOF |
| 3545 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3546 | /* confdefs.h. */ |
| 3547 | _ACEOF |
| 3548 | cat confdefs.h >>conftest.$ac_ext |
| 3549 | cat >>conftest.$ac_ext <<_ACEOF |
| 3550 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3551 | |
| 3552 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3553 | #ifdef __cplusplus |
| 3554 | extern "C" |
| 3555 | #endif |
| 3556 | /* We use char because int might match the return type of a gcc2 |
| 3557 | builtin and then its argument prototype would still apply. */ |
| 3558 | char yywrap (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3559 | int |
| 3560 | main () |
| 3561 | { |
| 3562 | yywrap (); |
| 3563 | ; |
| 3564 | return 0; |
| 3565 | } |
| 3566 | _ACEOF |
| 3567 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3568 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3569 | (eval $ac_link) 2>&5 |
| 3570 | ac_status=$? |
| 3571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3572 | (exit $ac_status); } && |
| 3573 | { ac_try='test -s conftest$ac_exeext' |
| 3574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3575 | (eval $ac_try) 2>&5 |
| 3576 | ac_status=$? |
| 3577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3578 | (exit $ac_status); }; }; then |
| 3579 | ac_cv_lib_fl_yywrap=yes |
| 3580 | else |
| 3581 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3583 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3584 | ac_cv_lib_fl_yywrap=no |
| 3585 | fi |
| 3586 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3587 | LIBS=$ac_check_lib_save_LIBS |
| 3588 | fi |
| 3589 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 3590 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| 3591 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 3592 | LEXLIB="-lfl" |
| 3593 | else |
| 3594 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 3595 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| 3596 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 3597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3598 | else |
| 3599 | ac_check_lib_save_LIBS=$LIBS |
| 3600 | LIBS="-ll $LIBS" |
| 3601 | cat >conftest.$ac_ext <<_ACEOF |
| 3602 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3603 | /* confdefs.h. */ |
| 3604 | _ACEOF |
| 3605 | cat confdefs.h >>conftest.$ac_ext |
| 3606 | cat >>conftest.$ac_ext <<_ACEOF |
| 3607 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3608 | |
| 3609 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3610 | #ifdef __cplusplus |
| 3611 | extern "C" |
| 3612 | #endif |
| 3613 | /* We use char because int might match the return type of a gcc2 |
| 3614 | builtin and then its argument prototype would still apply. */ |
| 3615 | char yywrap (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3616 | int |
| 3617 | main () |
| 3618 | { |
| 3619 | yywrap (); |
| 3620 | ; |
| 3621 | return 0; |
| 3622 | } |
| 3623 | _ACEOF |
| 3624 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3625 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3626 | (eval $ac_link) 2>&5 |
| 3627 | ac_status=$? |
| 3628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3629 | (exit $ac_status); } && |
| 3630 | { ac_try='test -s conftest$ac_exeext' |
| 3631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3632 | (eval $ac_try) 2>&5 |
| 3633 | ac_status=$? |
| 3634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3635 | (exit $ac_status); }; }; then |
| 3636 | ac_cv_lib_l_yywrap=yes |
| 3637 | else |
| 3638 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3639 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3640 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3641 | ac_cv_lib_l_yywrap=no |
| 3642 | fi |
| 3643 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3644 | LIBS=$ac_check_lib_save_LIBS |
| 3645 | fi |
| 3646 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 3647 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| 3648 | if test $ac_cv_lib_l_yywrap = yes; then |
| 3649 | LEXLIB="-ll" |
| 3650 | fi |
| 3651 | |
| 3652 | fi |
| 3653 | |
| 3654 | fi |
| 3655 | |
| 3656 | if test "x$LEX" != "x:"; then |
| 3657 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 3658 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| 3659 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 3660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3661 | else |
| 3662 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 3663 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 3664 | cat >conftest.l <<_ACEOF |
| 3665 | %% |
| 3666 | %% |
| 3667 | _ACEOF |
| 3668 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
| 3669 | (eval $LEX conftest.l) 2>&5 |
| 3670 | ac_status=$? |
| 3671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3672 | (exit $ac_status); } |
| 3673 | if test -f lex.yy.c; then |
| 3674 | ac_cv_prog_lex_root=lex.yy |
| 3675 | elif test -f lexyy.c; then |
| 3676 | ac_cv_prog_lex_root=lexyy |
| 3677 | else |
| 3678 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 3679 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 3680 | { (exit 1); exit 1; }; } |
| 3681 | fi |
| 3682 | fi |
| 3683 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 3684 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
| 3685 | rm -f conftest.l |
| 3686 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 3687 | |
| 3688 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 3689 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| 3690 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 3691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3692 | else |
| 3693 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 3694 | # default is implementation-dependent. Figure out which it is, since |
| 3695 | # not all implementations provide the %pointer and %array declarations. |
| 3696 | ac_cv_prog_lex_yytext_pointer=no |
| 3697 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 3698 | ac_save_LIBS=$LIBS |
| 3699 | LIBS="$LIBS $LEXLIB" |
| 3700 | cat >conftest.$ac_ext <<_ACEOF |
| 3701 | `cat $LEX_OUTPUT_ROOT.c` |
| 3702 | _ACEOF |
| 3703 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3704 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3705 | (eval $ac_link) 2>&5 |
| 3706 | ac_status=$? |
| 3707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3708 | (exit $ac_status); } && |
| 3709 | { ac_try='test -s conftest$ac_exeext' |
| 3710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3711 | (eval $ac_try) 2>&5 |
| 3712 | ac_status=$? |
| 3713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3714 | (exit $ac_status); }; }; then |
| 3715 | ac_cv_prog_lex_yytext_pointer=yes |
| 3716 | else |
| 3717 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3719 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3720 | fi |
| 3721 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3722 | LIBS=$ac_save_LIBS |
| 3723 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 3724 | |
| 3725 | fi |
| 3726 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 3727 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| 3728 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 3729 | |
| 3730 | cat >>confdefs.h <<\_ACEOF |
| 3731 | #define YYTEXT_POINTER 1 |
| 3732 | _ACEOF |
| 3733 | |
| 3734 | fi |
| 3735 | |
| 3736 | fi |
| 3737 | |
| 3738 | fi |
| 3739 | echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 |
| 3740 | echo "${ECHO_T}$ac_cv_has_flex" >&6 |
| 3741 | if test "$LEX" != "flex"; then |
| 3742 | { { echo "$as_me:$LINENO: error: flex not found but required" >&5 |
| 3743 | echo "$as_me: error: flex not found but required" >&2;} |
| 3744 | { (exit 1); exit 1; }; } |
| 3745 | fi |
| 3746 | |
| 3747 | echo "$as_me:$LINENO: checking " >&5 |
| 3748 | echo $ECHO_N "checking ... $ECHO_C" >&6 |
| 3749 | if test "${ac_cv_has_bison+set}" = set; then |
| 3750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3751 | else |
| 3752 | for ac_prog in 'bison -y' byacc |
| 3753 | do |
| 3754 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3755 | set dummy $ac_prog; ac_word=$2 |
| 3756 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3757 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3758 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 3759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3760 | else |
| 3761 | if test -n "$YACC"; then |
| 3762 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 3763 | else |
| 3764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3765 | for as_dir in $PATH |
| 3766 | do |
| 3767 | IFS=$as_save_IFS |
| 3768 | test -z "$as_dir" && as_dir=. |
| 3769 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3770 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3771 | ac_cv_prog_YACC="$ac_prog" |
| 3772 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3773 | break 2 |
| 3774 | fi |
| 3775 | done |
| 3776 | done |
| 3777 | |
| 3778 | fi |
| 3779 | fi |
| 3780 | YACC=$ac_cv_prog_YACC |
| 3781 | if test -n "$YACC"; then |
| 3782 | echo "$as_me:$LINENO: result: $YACC" >&5 |
| 3783 | echo "${ECHO_T}$YACC" >&6 |
| 3784 | else |
| 3785 | echo "$as_me:$LINENO: result: no" >&5 |
| 3786 | echo "${ECHO_T}no" >&6 |
| 3787 | fi |
| 3788 | |
| 3789 | test -n "$YACC" && break |
| 3790 | done |
| 3791 | test -n "$YACC" || YACC="yacc" |
| 3792 | |
| 3793 | |
| 3794 | fi |
| 3795 | echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5 |
| 3796 | echo "${ECHO_T}$ac_cv_has_bison" >&6 |
| 3797 | if test "$YACC" != "bison -y"; then |
| 3798 | { { echo "$as_me:$LINENO: error: bison not found but required" >&5 |
| 3799 | echo "$as_me: error: bison not found but required" >&2;} |
| 3800 | { (exit 1); exit 1; }; } |
| 3801 | else |
| 3802 | YACC=bison |
| 3803 | |
| 3804 | fi |
| 3805 | |
| 3806 | |
| 3807 | # Check whether --enable-shared or --disable-shared was given. |
| 3808 | if test "${enable_shared+set}" = set; then |
| 3809 | enableval="$enable_shared" |
| 3810 | p=${PACKAGE-default} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3811 | case $enableval in |
| 3812 | yes) enable_shared=yes ;; |
| 3813 | no) enable_shared=no ;; |
| 3814 | *) |
| 3815 | enable_shared=no |
| 3816 | # Look at the argument we got. We use all the common list separators. |
| 3817 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3818 | for pkg in $enableval; do |
| 3819 | IFS="$lt_save_ifs" |
| 3820 | if test "X$pkg" = "X$p"; then |
| 3821 | enable_shared=yes |
| 3822 | fi |
| 3823 | done |
| 3824 | IFS="$lt_save_ifs" |
| 3825 | ;; |
| 3826 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3827 | else |
| 3828 | enable_shared=yes |
| 3829 | fi; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3830 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3831 | # Check whether --enable-static or --disable-static was given. |
| 3832 | if test "${enable_static+set}" = set; then |
| 3833 | enableval="$enable_static" |
| 3834 | p=${PACKAGE-default} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3835 | case $enableval in |
| 3836 | yes) enable_static=yes ;; |
| 3837 | no) enable_static=no ;; |
| 3838 | *) |
| 3839 | enable_static=no |
| 3840 | # Look at the argument we got. We use all the common list separators. |
| 3841 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3842 | for pkg in $enableval; do |
| 3843 | IFS="$lt_save_ifs" |
| 3844 | if test "X$pkg" = "X$p"; then |
| 3845 | enable_static=yes |
| 3846 | fi |
| 3847 | done |
| 3848 | IFS="$lt_save_ifs" |
| 3849 | ;; |
| 3850 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3851 | else |
| 3852 | enable_static=yes |
| 3853 | fi; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3854 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3855 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 3856 | if test "${enable_fast_install+set}" = set; then |
| 3857 | enableval="$enable_fast_install" |
| 3858 | p=${PACKAGE-default} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3859 | case $enableval in |
| 3860 | yes) enable_fast_install=yes ;; |
| 3861 | no) enable_fast_install=no ;; |
| 3862 | *) |
| 3863 | enable_fast_install=no |
| 3864 | # Look at the argument we got. We use all the common list separators. |
| 3865 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3866 | for pkg in $enableval; do |
| 3867 | IFS="$lt_save_ifs" |
| 3868 | if test "X$pkg" = "X$p"; then |
| 3869 | enable_fast_install=yes |
| 3870 | fi |
| 3871 | done |
| 3872 | IFS="$lt_save_ifs" |
| 3873 | ;; |
| 3874 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3875 | else |
| 3876 | enable_fast_install=yes |
| 3877 | fi; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3878 | |
| 3879 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 3880 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 3881 | if test "${lt_cv_path_SED+set}" = set; then |
| 3882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3883 | else |
| 3884 | # Loop through the user's path and test for sed and gsed. |
| 3885 | # Then use that list of sed's as ones to test for truncation. |
| 3886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3887 | for as_dir in $PATH |
| 3888 | do |
| 3889 | IFS=$as_save_IFS |
| 3890 | test -z "$as_dir" && as_dir=. |
| 3891 | for lt_ac_prog in sed gsed; do |
| 3892 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3893 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 3894 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 3895 | fi |
| 3896 | done |
| 3897 | done |
| 3898 | done |
| 3899 | lt_ac_max=0 |
| 3900 | lt_ac_count=0 |
| 3901 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 3902 | # along with /bin/sed that truncates output. |
| 3903 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 3904 | test ! -f $lt_ac_sed && break |
| 3905 | cat /dev/null > conftest.in |
| 3906 | lt_ac_count=0 |
| 3907 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 3908 | # Check for GNU sed and select it if it is found. |
| 3909 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 3910 | lt_cv_path_SED=$lt_ac_sed |
| 3911 | break |
| 3912 | fi |
| 3913 | while true; do |
| 3914 | cat conftest.in conftest.in >conftest.tmp |
| 3915 | mv conftest.tmp conftest.in |
| 3916 | cp conftest.in conftest.nl |
| 3917 | echo >>conftest.nl |
| 3918 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 3919 | cmp -s conftest.out conftest.nl || break |
| 3920 | # 10000 chars as input seems more than enough |
| 3921 | test $lt_ac_count -gt 10 && break |
| 3922 | lt_ac_count=`expr $lt_ac_count + 1` |
| 3923 | if test $lt_ac_count -gt $lt_ac_max; then |
| 3924 | lt_ac_max=$lt_ac_count |
| 3925 | lt_cv_path_SED=$lt_ac_sed |
| 3926 | fi |
| 3927 | done |
| 3928 | done |
| 3929 | SED=$lt_cv_path_SED |
| 3930 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3931 | fi |
| 3932 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3933 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 3934 | echo "${ECHO_T}$SED" >&6 |
| 3935 | |
| 3936 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3937 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3938 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3940 | else |
| 3941 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3942 | then ac_cv_prog_egrep='grep -E' |
| 3943 | else ac_cv_prog_egrep='egrep' |
| 3944 | fi |
| 3945 | fi |
| 3946 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3947 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3948 | EGREP=$ac_cv_prog_egrep |
| 3949 | |
| 3950 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3951 | |
| 3952 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 3953 | if test "${with_gnu_ld+set}" = set; then |
| 3954 | withval="$with_gnu_ld" |
| 3955 | test "$withval" = no || with_gnu_ld=yes |
| 3956 | else |
| 3957 | with_gnu_ld=no |
| 3958 | fi; |
| 3959 | ac_prog=ld |
| 3960 | if test "$GCC" = yes; then |
| 3961 | # Check if gcc -print-prog-name=ld gives a path. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3962 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 3963 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3964 | case $host in |
| 3965 | *-*-mingw*) |
| 3966 | # gcc leaves a trailing carriage return which upsets mingw |
| 3967 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 3968 | *) |
| 3969 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 3970 | esac |
| 3971 | case $ac_prog in |
| 3972 | # Accept absolute paths. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3973 | [\\/]* | ?:[\\/]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3974 | re_direlt='/[^/][^/]*/\.\./' |
| 3975 | # Canonicalize the path of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3976 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3977 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3978 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3979 | done |
| 3980 | test -z "$LD" && LD="$ac_prog" |
| 3981 | ;; |
| 3982 | "") |
| 3983 | # If it fails, then pretend we aren't using GCC. |
| 3984 | ac_prog=ld |
| 3985 | ;; |
| 3986 | *) |
| 3987 | # If it is relative, then search for the first ld in PATH. |
| 3988 | with_gnu_ld=unknown |
| 3989 | ;; |
| 3990 | esac |
| 3991 | elif test "$with_gnu_ld" = yes; then |
| 3992 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 3993 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 3994 | else |
| 3995 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 3996 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 3997 | fi |
| 3998 | if test "${lt_cv_path_LD+set}" = set; then |
| 3999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4000 | else |
| 4001 | if test -z "$LD"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4002 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4003 | for ac_dir in $PATH; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4004 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4005 | test -z "$ac_dir" && ac_dir=. |
| 4006 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4007 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 4008 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 4009 | # but apparently some GNU ld's only accept -v. |
| 4010 | # Break only if it was the GNU/non-GNU ld that we prefer. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4011 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4012 | *GNU* | *'with BFD'*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4013 | test "$with_gnu_ld" != no && break |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4014 | ;; |
| 4015 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4016 | test "$with_gnu_ld" != yes && break |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4017 | ;; |
| 4018 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4019 | fi |
| 4020 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4021 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4022 | else |
| 4023 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 4024 | fi |
| 4025 | fi |
| 4026 | |
| 4027 | LD="$lt_cv_path_LD" |
| 4028 | if test -n "$LD"; then |
| 4029 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 4030 | echo "${ECHO_T}$LD" >&6 |
| 4031 | else |
| 4032 | echo "$as_me:$LINENO: result: no" >&5 |
| 4033 | echo "${ECHO_T}no" >&6 |
| 4034 | fi |
| 4035 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 4036 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 4037 | { (exit 1); exit 1; }; } |
| 4038 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 4039 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 4040 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 4041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4042 | else |
| 4043 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4044 | case `"$LD" -v 2>&1 </dev/null` in |
| 4045 | *GNU* | *'with BFD'*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4046 | lt_cv_prog_gnu_ld=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4047 | ;; |
| 4048 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4049 | lt_cv_prog_gnu_ld=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4050 | ;; |
| 4051 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4052 | fi |
| 4053 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 4054 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 4055 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 4056 | |
| 4057 | |
| 4058 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 4059 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 4060 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 4061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4062 | else |
| 4063 | lt_cv_ld_reload_flag='-r' |
| 4064 | fi |
| 4065 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 4066 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 4067 | reload_flag=$lt_cv_ld_reload_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4068 | case $reload_flag in |
| 4069 | "" | " "*) ;; |
| 4070 | *) reload_flag=" $reload_flag" ;; |
| 4071 | esac |
| 4072 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4073 | |
| 4074 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 4075 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 4076 | if test "${lt_cv_path_NM+set}" = set; then |
| 4077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4078 | else |
| 4079 | if test -n "$NM"; then |
| 4080 | # Let the user override the test. |
| 4081 | lt_cv_path_NM="$NM" |
| 4082 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4083 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4084 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4085 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4086 | test -z "$ac_dir" && ac_dir=. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4087 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
| 4088 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4089 | # Check to see if the nm accepts a BSD-compat flag. |
| 4090 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 4091 | # nm: unknown option "B" ignored |
| 4092 | # Tru64's nm complains that /dev/null is an invalid object file |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4093 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 4094 | */dev/null* | *'Invalid file or object type'*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4095 | lt_cv_path_NM="$tmp_nm -B" |
| 4096 | break |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4097 | ;; |
| 4098 | *) |
| 4099 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4100 | */dev/null*) |
| 4101 | lt_cv_path_NM="$tmp_nm -p" |
| 4102 | break |
| 4103 | ;; |
| 4104 | *) |
| 4105 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4106 | continue # so that we can try to find one that supports BSD flags |
| 4107 | ;; |
| 4108 | esac |
| 4109 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4110 | fi |
| 4111 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4112 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4113 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 4114 | fi |
| 4115 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4116 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 4117 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4118 | NM="$lt_cv_path_NM" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4119 | |
| 4120 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 4121 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 4122 | LN_S=$as_ln_s |
| 4123 | if test "$LN_S" = "ln -s"; then |
| 4124 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4125 | echo "${ECHO_T}yes" >&6 |
| 4126 | else |
| 4127 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 4128 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 4129 | fi |
| 4130 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4131 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 4132 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4133 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 4134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4135 | else |
| 4136 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 4137 | lt_cv_file_magic_test_file= |
| 4138 | lt_cv_deplibs_check_method='unknown' |
| 4139 | # Need to set the preceding variable on all platforms that support |
| 4140 | # interlibrary dependencies. |
| 4141 | # 'none' -- dependencies not supported. |
| 4142 | # `unknown' -- same as none, but documents that we really don't know. |
| 4143 | # 'pass_all' -- all dependencies passed with no checks. |
| 4144 | # 'test_compile' -- check by making test program. |
| 4145 | # 'file_magic [[regex]]' -- check by looking for files in library path |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4146 | # which responds to the $file_magic_cmd with a given extended regex. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4147 | # If you have `file' or equivalent on your system and you're not sure |
| 4148 | # whether `pass_all' will *always* work, you probably want this one. |
| 4149 | |
| 4150 | case $host_os in |
| 4151 | aix4* | aix5*) |
| 4152 | lt_cv_deplibs_check_method=pass_all |
| 4153 | ;; |
| 4154 | |
| 4155 | beos*) |
| 4156 | lt_cv_deplibs_check_method=pass_all |
| 4157 | ;; |
| 4158 | |
| 4159 | bsdi4*) |
| 4160 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 4161 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 4162 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 4163 | ;; |
| 4164 | |
| 4165 | cygwin* | mingw* | pw32*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4166 | # win32_libid is a shell function defined in ltmain.sh |
| 4167 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 4168 | lt_cv_file_magic_cmd='win32_libid' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4169 | ;; |
| 4170 | |
| 4171 | darwin* | rhapsody*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4172 | # this will be overwritten by pass_all, but leave it in just in case |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4173 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| 4174 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 4175 | case "$host_os" in |
| 4176 | rhapsody* | darwin1.[012]) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4177 | lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4178 | ;; |
| 4179 | *) # Darwin 1.3 on |
| 4180 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| 4181 | ;; |
| 4182 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4183 | lt_cv_deplibs_check_method=pass_all |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4184 | ;; |
| 4185 | |
| 4186 | freebsd*) |
| 4187 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 4188 | case $host_cpu in |
| 4189 | i*86 ) |
| 4190 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 4191 | # Let's accept both of them until this is cleared up. |
| 4192 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 4193 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4194 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 4195 | ;; |
| 4196 | esac |
| 4197 | else |
| 4198 | lt_cv_deplibs_check_method=pass_all |
| 4199 | fi |
| 4200 | ;; |
| 4201 | |
| 4202 | gnu*) |
| 4203 | lt_cv_deplibs_check_method=pass_all |
| 4204 | ;; |
| 4205 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4206 | hpux10.20* | hpux11*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4207 | lt_cv_file_magic_cmd=/usr/bin/file |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4208 | case "$host_cpu" in |
| 4209 | ia64*) |
| 4210 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 4211 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 4212 | ;; |
| 4213 | hppa*64*) |
| 4214 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
| 4215 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 4216 | ;; |
| 4217 | *) |
| 4218 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 4219 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 4220 | ;; |
| 4221 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4222 | ;; |
| 4223 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4224 | irix5* | irix6* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4225 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4226 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4227 | # this will be overridden with pass_all, but let us keep it just in case |
| 4228 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
| 4229 | ;; |
| 4230 | *) |
| 4231 | case $LD in |
| 4232 | *-32|*"-32 ") libmagic=32-bit;; |
| 4233 | *-n32|*"-n32 ") libmagic=N32;; |
| 4234 | *-64|*"-64 ") libmagic=64-bit;; |
| 4235 | *) libmagic=never-match;; |
| 4236 | esac |
| 4237 | # this will be overridden with pass_all, but let us keep it just in case |
| 4238 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
| 4239 | ;; |
| 4240 | esac |
| 4241 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
| 4242 | lt_cv_deplibs_check_method=pass_all |
| 4243 | ;; |
| 4244 | |
| 4245 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4246 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4247 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4248 | alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4249 | lt_cv_deplibs_check_method=pass_all ;; |
| 4250 | *) |
| 4251 | # glibc up to 2.1.1 does not perform some relocations on ARM |
| 4252 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
| 4253 | esac |
| 4254 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 4255 | ;; |
| 4256 | |
| 4257 | netbsd*) |
| 4258 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4259 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4260 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4261 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4262 | fi |
| 4263 | ;; |
| 4264 | |
| 4265 | newos6*) |
| 4266 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 4267 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4268 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 4269 | ;; |
| 4270 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4271 | nto-qnx) |
| 4272 | lt_cv_deplibs_check_method=unknown |
| 4273 | ;; |
| 4274 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4275 | openbsd*) |
| 4276 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4277 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 4278 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 4279 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
| 4280 | else |
| 4281 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
| 4282 | fi |
| 4283 | ;; |
| 4284 | |
| 4285 | osf3* | osf4* | osf5*) |
| 4286 | # this will be overridden with pass_all, but let us keep it just in case |
| 4287 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| 4288 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 4289 | lt_cv_deplibs_check_method=pass_all |
| 4290 | ;; |
| 4291 | |
| 4292 | sco3.2v5*) |
| 4293 | lt_cv_deplibs_check_method=pass_all |
| 4294 | ;; |
| 4295 | |
| 4296 | solaris*) |
| 4297 | lt_cv_deplibs_check_method=pass_all |
| 4298 | lt_cv_file_magic_test_file=/lib/libc.so |
| 4299 | ;; |
| 4300 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4301 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 4302 | case $host_vendor in |
| 4303 | motorola) |
| 4304 | 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]' |
| 4305 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 4306 | ;; |
| 4307 | ncr) |
| 4308 | lt_cv_deplibs_check_method=pass_all |
| 4309 | ;; |
| 4310 | sequent) |
| 4311 | lt_cv_file_magic_cmd='/bin/file' |
| 4312 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 4313 | ;; |
| 4314 | sni) |
| 4315 | lt_cv_file_magic_cmd='/bin/file' |
| 4316 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 4317 | lt_cv_file_magic_test_file=/lib/libc.so |
| 4318 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4319 | siemens) |
| 4320 | lt_cv_deplibs_check_method=pass_all |
| 4321 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4322 | esac |
| 4323 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4324 | |
| 4325 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
| 4326 | lt_cv_deplibs_check_method=pass_all |
| 4327 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4328 | esac |
| 4329 | |
| 4330 | fi |
| 4331 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 4332 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 4333 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 4334 | deplibs_check_method=$lt_cv_deplibs_check_method |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4335 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4336 | |
| 4337 | |
| 4338 | |
| 4339 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4340 | # If no C compiler was specified, use CC. |
| 4341 | LTCC=${LTCC-"$CC"} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4342 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4343 | # Allow CC to be a program name with arguments. |
| 4344 | compiler=$CC |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4345 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4346 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 4347 | if test "${enable_libtool_lock+set}" = set; then |
| 4348 | enableval="$enable_libtool_lock" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4349 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4350 | fi; |
| 4351 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4352 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4353 | # Some flags need to be propagated to the compiler or linker for good |
| 4354 | # libtool support. |
| 4355 | case $host in |
| 4356 | ia64-*-hpux*) |
| 4357 | # Find out which ABI we are using. |
| 4358 | echo 'int i;' > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4360 | (eval $ac_compile) 2>&5 |
| 4361 | ac_status=$? |
| 4362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4363 | (exit $ac_status); }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4364 | case `/usr/bin/file conftest.$ac_objext` in |
| 4365 | *ELF-32*) |
| 4366 | HPUX_IA64_MODE="32" |
| 4367 | ;; |
| 4368 | *ELF-64*) |
| 4369 | HPUX_IA64_MODE="64" |
| 4370 | ;; |
| 4371 | esac |
| 4372 | fi |
| 4373 | rm -rf conftest* |
| 4374 | ;; |
| 4375 | *-*-irix6*) |
| 4376 | # Find out which ABI we are using. |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 4377 | echo '#line 4377 "configure"' > conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4379 | (eval $ac_compile) 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4380 | ac_status=$? |
| 4381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4382 | (exit $ac_status); }; then |
| 4383 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 4384 | case `/usr/bin/file conftest.$ac_objext` in |
| 4385 | *32-bit*) |
| 4386 | LD="${LD-ld} -melf32bsmip" |
| 4387 | ;; |
| 4388 | *N32*) |
| 4389 | LD="${LD-ld} -melf32bmipn32" |
| 4390 | ;; |
| 4391 | *64-bit*) |
| 4392 | LD="${LD-ld} -melf64bmip" |
| 4393 | ;; |
| 4394 | esac |
| 4395 | else |
| 4396 | case `/usr/bin/file conftest.$ac_objext` in |
| 4397 | *32-bit*) |
| 4398 | LD="${LD-ld} -32" |
| 4399 | ;; |
| 4400 | *N32*) |
| 4401 | LD="${LD-ld} -n32" |
| 4402 | ;; |
| 4403 | *64-bit*) |
| 4404 | LD="${LD-ld} -64" |
| 4405 | ;; |
| 4406 | esac |
| 4407 | fi |
| 4408 | fi |
| 4409 | rm -rf conftest* |
| 4410 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4411 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4412 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 4413 | # Find out which ABI we are using. |
| 4414 | echo 'int i;' > conftest.$ac_ext |
| 4415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4416 | (eval $ac_compile) 2>&5 |
| 4417 | ac_status=$? |
| 4418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4419 | (exit $ac_status); }; then |
| 4420 | case "`/usr/bin/file conftest.o`" in |
| 4421 | *32-bit*) |
| 4422 | case $host in |
| 4423 | x86_64-*linux*) |
| 4424 | LD="${LD-ld} -m elf_i386" |
| 4425 | ;; |
| 4426 | ppc64-*linux*) |
| 4427 | LD="${LD-ld} -m elf32ppclinux" |
| 4428 | ;; |
| 4429 | s390x-*linux*) |
| 4430 | LD="${LD-ld} -m elf_s390" |
| 4431 | ;; |
| 4432 | sparc64-*linux*) |
| 4433 | LD="${LD-ld} -m elf32_sparc" |
| 4434 | ;; |
| 4435 | esac |
| 4436 | ;; |
| 4437 | *64-bit*) |
| 4438 | case $host in |
| 4439 | x86_64-*linux*) |
| 4440 | LD="${LD-ld} -m elf_x86_64" |
| 4441 | ;; |
| 4442 | ppc*-*linux*|powerpc*-*linux*) |
| 4443 | LD="${LD-ld} -m elf64ppc" |
| 4444 | ;; |
| 4445 | s390*-*linux*) |
| 4446 | LD="${LD-ld} -m elf64_s390" |
| 4447 | ;; |
| 4448 | sparc*-*linux*) |
| 4449 | LD="${LD-ld} -m elf64_sparc" |
| 4450 | ;; |
| 4451 | esac |
| 4452 | ;; |
| 4453 | esac |
| 4454 | fi |
| 4455 | rm -rf conftest* |
| 4456 | ;; |
| 4457 | |
| 4458 | *-*-sco3.2v5*) |
| 4459 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 4460 | SAVE_CFLAGS="$CFLAGS" |
| 4461 | CFLAGS="$CFLAGS -belf" |
| 4462 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 4463 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 4464 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 4465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4466 | else |
| 4467 | ac_ext=c |
| 4468 | ac_cpp='$CPP $CPPFLAGS' |
| 4469 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4470 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4471 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4472 | |
| 4473 | cat >conftest.$ac_ext <<_ACEOF |
| 4474 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4475 | /* confdefs.h. */ |
| 4476 | _ACEOF |
| 4477 | cat confdefs.h >>conftest.$ac_ext |
| 4478 | cat >>conftest.$ac_ext <<_ACEOF |
| 4479 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4480 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4481 | int |
| 4482 | main () |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4483 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4484 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4485 | ; |
| 4486 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4487 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4488 | _ACEOF |
| 4489 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4490 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4491 | (eval $ac_link) 2>&5 |
| 4492 | ac_status=$? |
| 4493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4494 | (exit $ac_status); } && |
| 4495 | { ac_try='test -s conftest$ac_exeext' |
| 4496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4497 | (eval $ac_try) 2>&5 |
| 4498 | ac_status=$? |
| 4499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4500 | (exit $ac_status); }; }; then |
| 4501 | lt_cv_cc_needs_belf=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4502 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4503 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4505 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4506 | lt_cv_cc_needs_belf=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4507 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4508 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4509 | ac_ext=c |
| 4510 | ac_cpp='$CPP $CPPFLAGS' |
| 4511 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4512 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4513 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4514 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4515 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4516 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 4517 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 4518 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 4519 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 4520 | CFLAGS="$SAVE_CFLAGS" |
| 4521 | fi |
| 4522 | ;; |
| 4523 | |
| 4524 | esac |
| 4525 | |
| 4526 | need_locks="$enable_libtool_lock" |
| 4527 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4528 | |
| 4529 | |
| 4530 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4531 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4532 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4534 | else |
| 4535 | cat >conftest.$ac_ext <<_ACEOF |
| 4536 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4537 | /* confdefs.h. */ |
| 4538 | _ACEOF |
| 4539 | cat confdefs.h >>conftest.$ac_ext |
| 4540 | cat >>conftest.$ac_ext <<_ACEOF |
| 4541 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4542 | #include <stdlib.h> |
| 4543 | #include <stdarg.h> |
| 4544 | #include <string.h> |
| 4545 | #include <float.h> |
| 4546 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4547 | int |
| 4548 | main () |
| 4549 | { |
| 4550 | |
| 4551 | ; |
| 4552 | return 0; |
| 4553 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4554 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4555 | rm -f conftest.$ac_objext |
| 4556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4557 | (eval $ac_compile) 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4558 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4560 | (exit $ac_status); } && |
| 4561 | { ac_try='test -s conftest.$ac_objext' |
| 4562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4563 | (eval $ac_try) 2>&5 |
| 4564 | ac_status=$? |
| 4565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4566 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4567 | ac_cv_header_stdc=yes |
| 4568 | else |
| 4569 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4571 | |
| 4572 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4573 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4574 | rm -f conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4575 | |
| 4576 | if test $ac_cv_header_stdc = yes; then |
| 4577 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4578 | cat >conftest.$ac_ext <<_ACEOF |
| 4579 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4580 | /* confdefs.h. */ |
| 4581 | _ACEOF |
| 4582 | cat confdefs.h >>conftest.$ac_ext |
| 4583 | cat >>conftest.$ac_ext <<_ACEOF |
| 4584 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4585 | #include <string.h> |
| 4586 | |
| 4587 | _ACEOF |
| 4588 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4589 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4590 | : |
| 4591 | else |
| 4592 | ac_cv_header_stdc=no |
| 4593 | fi |
| 4594 | rm -f conftest* |
| 4595 | |
| 4596 | fi |
| 4597 | |
| 4598 | if test $ac_cv_header_stdc = yes; then |
| 4599 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4600 | cat >conftest.$ac_ext <<_ACEOF |
| 4601 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4602 | /* confdefs.h. */ |
| 4603 | _ACEOF |
| 4604 | cat confdefs.h >>conftest.$ac_ext |
| 4605 | cat >>conftest.$ac_ext <<_ACEOF |
| 4606 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4607 | #include <stdlib.h> |
| 4608 | |
| 4609 | _ACEOF |
| 4610 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4611 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4612 | : |
| 4613 | else |
| 4614 | ac_cv_header_stdc=no |
| 4615 | fi |
| 4616 | rm -f conftest* |
| 4617 | |
| 4618 | fi |
| 4619 | |
| 4620 | if test $ac_cv_header_stdc = yes; then |
| 4621 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4622 | if test "$cross_compiling" = yes; then |
| 4623 | : |
| 4624 | else |
| 4625 | cat >conftest.$ac_ext <<_ACEOF |
| 4626 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4627 | /* confdefs.h. */ |
| 4628 | _ACEOF |
| 4629 | cat confdefs.h >>conftest.$ac_ext |
| 4630 | cat >>conftest.$ac_ext <<_ACEOF |
| 4631 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4632 | #include <ctype.h> |
| 4633 | #if ((' ' & 0x0FF) == 0x020) |
| 4634 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4635 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4636 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4637 | # define ISLOWER(c) \ |
| 4638 | (('a' <= (c) && (c) <= 'i') \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4639 | || ('j' <= (c) && (c) <= 'r') \ |
| 4640 | || ('s' <= (c) && (c) <= 'z')) |
| 4641 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4642 | #endif |
| 4643 | |
| 4644 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4645 | int |
| 4646 | main () |
| 4647 | { |
| 4648 | int i; |
| 4649 | for (i = 0; i < 256; i++) |
| 4650 | if (XOR (islower (i), ISLOWER (i)) |
| 4651 | || toupper (i) != TOUPPER (i)) |
| 4652 | exit(2); |
| 4653 | exit (0); |
| 4654 | } |
| 4655 | _ACEOF |
| 4656 | rm -f conftest$ac_exeext |
| 4657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4658 | (eval $ac_link) 2>&5 |
| 4659 | ac_status=$? |
| 4660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4661 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4663 | (eval $ac_try) 2>&5 |
| 4664 | ac_status=$? |
| 4665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4666 | (exit $ac_status); }; }; then |
| 4667 | : |
| 4668 | else |
| 4669 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4670 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4672 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4673 | ( exit $ac_status ) |
| 4674 | ac_cv_header_stdc=no |
| 4675 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4676 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4677 | fi |
| 4678 | fi |
| 4679 | fi |
| 4680 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4681 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 4682 | if test $ac_cv_header_stdc = yes; then |
| 4683 | |
| 4684 | cat >>confdefs.h <<\_ACEOF |
| 4685 | #define STDC_HEADERS 1 |
| 4686 | _ACEOF |
| 4687 | |
| 4688 | fi |
| 4689 | |
| 4690 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4691 | |
| 4692 | |
| 4693 | |
| 4694 | |
| 4695 | |
| 4696 | |
| 4697 | |
| 4698 | |
| 4699 | |
| 4700 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4701 | inttypes.h stdint.h unistd.h |
| 4702 | do |
| 4703 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4704 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4705 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4706 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4708 | else |
| 4709 | cat >conftest.$ac_ext <<_ACEOF |
| 4710 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4711 | /* confdefs.h. */ |
| 4712 | _ACEOF |
| 4713 | cat confdefs.h >>conftest.$ac_ext |
| 4714 | cat >>conftest.$ac_ext <<_ACEOF |
| 4715 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4716 | $ac_includes_default |
| 4717 | |
| 4718 | #include <$ac_header> |
| 4719 | _ACEOF |
| 4720 | rm -f conftest.$ac_objext |
| 4721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4722 | (eval $ac_compile) 2>&5 |
| 4723 | ac_status=$? |
| 4724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4725 | (exit $ac_status); } && |
| 4726 | { ac_try='test -s conftest.$ac_objext' |
| 4727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4728 | (eval $ac_try) 2>&5 |
| 4729 | ac_status=$? |
| 4730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4731 | (exit $ac_status); }; }; then |
| 4732 | eval "$as_ac_Header=yes" |
| 4733 | else |
| 4734 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4736 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4737 | eval "$as_ac_Header=no" |
| 4738 | fi |
| 4739 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4740 | fi |
| 4741 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4742 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4743 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4744 | cat >>confdefs.h <<_ACEOF |
| 4745 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4746 | _ACEOF |
| 4747 | |
| 4748 | fi |
| 4749 | |
| 4750 | done |
| 4751 | |
| 4752 | |
| 4753 | |
| 4754 | for ac_header in dlfcn.h |
| 4755 | do |
| 4756 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4757 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4758 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4759 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4760 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4762 | fi |
| 4763 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4764 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4765 | else |
| 4766 | # Is the header compilable? |
| 4767 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4768 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4769 | cat >conftest.$ac_ext <<_ACEOF |
| 4770 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4771 | /* confdefs.h. */ |
| 4772 | _ACEOF |
| 4773 | cat confdefs.h >>conftest.$ac_ext |
| 4774 | cat >>conftest.$ac_ext <<_ACEOF |
| 4775 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4776 | $ac_includes_default |
| 4777 | #include <$ac_header> |
| 4778 | _ACEOF |
| 4779 | rm -f conftest.$ac_objext |
| 4780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4781 | (eval $ac_compile) 2>&5 |
| 4782 | ac_status=$? |
| 4783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4784 | (exit $ac_status); } && |
| 4785 | { ac_try='test -s conftest.$ac_objext' |
| 4786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4787 | (eval $ac_try) 2>&5 |
| 4788 | ac_status=$? |
| 4789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4790 | (exit $ac_status); }; }; then |
| 4791 | ac_header_compiler=yes |
| 4792 | else |
| 4793 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4794 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4795 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4796 | ac_header_compiler=no |
| 4797 | fi |
| 4798 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4799 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4800 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4801 | |
| 4802 | # Is the header present? |
| 4803 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4804 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4805 | cat >conftest.$ac_ext <<_ACEOF |
| 4806 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4807 | /* confdefs.h. */ |
| 4808 | _ACEOF |
| 4809 | cat confdefs.h >>conftest.$ac_ext |
| 4810 | cat >>conftest.$ac_ext <<_ACEOF |
| 4811 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4812 | #include <$ac_header> |
| 4813 | _ACEOF |
| 4814 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4815 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4816 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4817 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4818 | rm -f conftest.er1 |
| 4819 | cat conftest.err >&5 |
| 4820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4821 | (exit $ac_status); } >/dev/null; then |
| 4822 | if test -s conftest.err; then |
| 4823 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4824 | else |
| 4825 | ac_cpp_err= |
| 4826 | fi |
| 4827 | else |
| 4828 | ac_cpp_err=yes |
| 4829 | fi |
| 4830 | if test -z "$ac_cpp_err"; then |
| 4831 | ac_header_preproc=yes |
| 4832 | else |
| 4833 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4835 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4836 | ac_header_preproc=no |
| 4837 | fi |
| 4838 | rm -f conftest.err conftest.$ac_ext |
| 4839 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4840 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4841 | |
| 4842 | # So? What about this header? |
| 4843 | case $ac_header_compiler:$ac_header_preproc in |
| 4844 | yes:no ) |
| 4845 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4846 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4847 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4848 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4849 | ( |
| 4850 | cat <<\_ASBOX |
| 4851 | ## ------------------------------------ ## |
| 4852 | ## Report this to bug-autoconf@gnu.org. ## |
| 4853 | ## ------------------------------------ ## |
| 4854 | _ASBOX |
| 4855 | ) | |
| 4856 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4857 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4858 | no:yes ) |
| 4859 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4860 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4861 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4862 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4863 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4864 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4865 | ( |
| 4866 | cat <<\_ASBOX |
| 4867 | ## ------------------------------------ ## |
| 4868 | ## Report this to bug-autoconf@gnu.org. ## |
| 4869 | ## ------------------------------------ ## |
| 4870 | _ASBOX |
| 4871 | ) | |
| 4872 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4873 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4874 | esac |
| 4875 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4876 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4877 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4879 | else |
| 4880 | eval "$as_ac_Header=$ac_header_preproc" |
| 4881 | fi |
| 4882 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4883 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4884 | |
| 4885 | fi |
| 4886 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4887 | cat >>confdefs.h <<_ACEOF |
| 4888 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4889 | _ACEOF |
| 4890 | |
| 4891 | fi |
| 4892 | |
| 4893 | done |
| 4894 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4895 | ac_ext=cc |
| 4896 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4897 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4898 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4899 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4900 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 4901 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 4902 | if test -z "$CXXCPP"; then |
| 4903 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4905 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4906 | # Double quotes because CXXCPP needs to be expanded |
| 4907 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 4908 | do |
| 4909 | ac_preproc_ok=false |
| 4910 | for ac_cxx_preproc_warn_flag in '' yes |
| 4911 | do |
| 4912 | # Use a header file that comes with gcc, so configuring glibc |
| 4913 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4914 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4915 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4916 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4917 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4918 | cat >conftest.$ac_ext <<_ACEOF |
| 4919 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4920 | /* confdefs.h. */ |
| 4921 | _ACEOF |
| 4922 | cat confdefs.h >>conftest.$ac_ext |
| 4923 | cat >>conftest.$ac_ext <<_ACEOF |
| 4924 | /* end confdefs.h. */ |
| 4925 | #ifdef __STDC__ |
| 4926 | # include <limits.h> |
| 4927 | #else |
| 4928 | # include <assert.h> |
| 4929 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4930 | Syntax error |
| 4931 | _ACEOF |
| 4932 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4933 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4934 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4935 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4936 | rm -f conftest.er1 |
| 4937 | cat conftest.err >&5 |
| 4938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4939 | (exit $ac_status); } >/dev/null; then |
| 4940 | if test -s conftest.err; then |
| 4941 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4942 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4943 | ac_cpp_err= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4944 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4945 | else |
| 4946 | ac_cpp_err=yes |
| 4947 | fi |
| 4948 | if test -z "$ac_cpp_err"; then |
| 4949 | : |
| 4950 | else |
| 4951 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4953 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4954 | # Broken: fails on valid input. |
| 4955 | continue |
| 4956 | fi |
| 4957 | rm -f conftest.err conftest.$ac_ext |
| 4958 | |
| 4959 | # OK, works on sane cases. Now check whether non-existent headers |
| 4960 | # can be detected and how. |
| 4961 | cat >conftest.$ac_ext <<_ACEOF |
| 4962 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4963 | /* confdefs.h. */ |
| 4964 | _ACEOF |
| 4965 | cat confdefs.h >>conftest.$ac_ext |
| 4966 | cat >>conftest.$ac_ext <<_ACEOF |
| 4967 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4968 | #include <ac_nonexistent.h> |
| 4969 | _ACEOF |
| 4970 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4971 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4972 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4973 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4974 | rm -f conftest.er1 |
| 4975 | cat conftest.err >&5 |
| 4976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4977 | (exit $ac_status); } >/dev/null; then |
| 4978 | if test -s conftest.err; then |
| 4979 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4980 | else |
| 4981 | ac_cpp_err= |
| 4982 | fi |
| 4983 | else |
| 4984 | ac_cpp_err=yes |
| 4985 | fi |
| 4986 | if test -z "$ac_cpp_err"; then |
| 4987 | # Broken: success on invalid input. |
| 4988 | continue |
| 4989 | else |
| 4990 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4992 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4993 | # Passes both tests. |
| 4994 | ac_preproc_ok=: |
| 4995 | break |
| 4996 | fi |
| 4997 | rm -f conftest.err conftest.$ac_ext |
| 4998 | |
| 4999 | done |
| 5000 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5001 | rm -f conftest.err conftest.$ac_ext |
| 5002 | if $ac_preproc_ok; then |
| 5003 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5004 | fi |
| 5005 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5006 | done |
| 5007 | ac_cv_prog_CXXCPP=$CXXCPP |
| 5008 | |
| 5009 | fi |
| 5010 | CXXCPP=$ac_cv_prog_CXXCPP |
| 5011 | else |
| 5012 | ac_cv_prog_CXXCPP=$CXXCPP |
| 5013 | fi |
| 5014 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 5015 | echo "${ECHO_T}$CXXCPP" >&6 |
| 5016 | ac_preproc_ok=false |
| 5017 | for ac_cxx_preproc_warn_flag in '' yes |
| 5018 | do |
| 5019 | # Use a header file that comes with gcc, so configuring glibc |
| 5020 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5021 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5022 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5023 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5024 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5025 | cat >conftest.$ac_ext <<_ACEOF |
| 5026 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5027 | /* confdefs.h. */ |
| 5028 | _ACEOF |
| 5029 | cat confdefs.h >>conftest.$ac_ext |
| 5030 | cat >>conftest.$ac_ext <<_ACEOF |
| 5031 | /* end confdefs.h. */ |
| 5032 | #ifdef __STDC__ |
| 5033 | # include <limits.h> |
| 5034 | #else |
| 5035 | # include <assert.h> |
| 5036 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5037 | Syntax error |
| 5038 | _ACEOF |
| 5039 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5040 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5041 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5042 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5043 | rm -f conftest.er1 |
| 5044 | cat conftest.err >&5 |
| 5045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5046 | (exit $ac_status); } >/dev/null; then |
| 5047 | if test -s conftest.err; then |
| 5048 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5049 | else |
| 5050 | ac_cpp_err= |
| 5051 | fi |
| 5052 | else |
| 5053 | ac_cpp_err=yes |
| 5054 | fi |
| 5055 | if test -z "$ac_cpp_err"; then |
| 5056 | : |
| 5057 | else |
| 5058 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5060 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5061 | # Broken: fails on valid input. |
| 5062 | continue |
| 5063 | fi |
| 5064 | rm -f conftest.err conftest.$ac_ext |
| 5065 | |
| 5066 | # OK, works on sane cases. Now check whether non-existent headers |
| 5067 | # can be detected and how. |
| 5068 | cat >conftest.$ac_ext <<_ACEOF |
| 5069 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +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. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5075 | #include <ac_nonexistent.h> |
| 5076 | _ACEOF |
| 5077 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5078 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5079 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5080 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5081 | rm -f conftest.er1 |
| 5082 | cat conftest.err >&5 |
| 5083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5084 | (exit $ac_status); } >/dev/null; then |
| 5085 | if test -s conftest.err; then |
| 5086 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5087 | else |
| 5088 | ac_cpp_err= |
| 5089 | fi |
| 5090 | else |
| 5091 | ac_cpp_err=yes |
| 5092 | fi |
| 5093 | if test -z "$ac_cpp_err"; then |
| 5094 | # Broken: success on invalid input. |
| 5095 | continue |
| 5096 | else |
| 5097 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5099 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5100 | # Passes both tests. |
| 5101 | ac_preproc_ok=: |
| 5102 | break |
| 5103 | fi |
| 5104 | rm -f conftest.err conftest.$ac_ext |
| 5105 | |
| 5106 | done |
| 5107 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5108 | rm -f conftest.err conftest.$ac_ext |
| 5109 | if $ac_preproc_ok; then |
| 5110 | : |
| 5111 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5112 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 5113 | See \`config.log' for more details." >&5 |
| 5114 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 5115 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5116 | { (exit 1); exit 1; }; } |
| 5117 | fi |
| 5118 | |
| 5119 | ac_ext=cc |
| 5120 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5121 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5122 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5123 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5124 | |
| 5125 | |
| 5126 | ac_ext=f |
| 5127 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 5128 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5129 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 5130 | if test -n "$ac_tool_prefix"; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5131 | for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5132 | do |
| 5133 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5134 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5135 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5136 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5137 | if test "${ac_cv_prog_F77+set}" = set; then |
| 5138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5139 | else |
| 5140 | if test -n "$F77"; then |
| 5141 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 5142 | else |
| 5143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5144 | for as_dir in $PATH |
| 5145 | do |
| 5146 | IFS=$as_save_IFS |
| 5147 | test -z "$as_dir" && as_dir=. |
| 5148 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5149 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5150 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 5151 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5152 | break 2 |
| 5153 | fi |
| 5154 | done |
| 5155 | done |
| 5156 | |
| 5157 | fi |
| 5158 | fi |
| 5159 | F77=$ac_cv_prog_F77 |
| 5160 | if test -n "$F77"; then |
| 5161 | echo "$as_me:$LINENO: result: $F77" >&5 |
| 5162 | echo "${ECHO_T}$F77" >&6 |
| 5163 | else |
| 5164 | echo "$as_me:$LINENO: result: no" >&5 |
| 5165 | echo "${ECHO_T}no" >&6 |
| 5166 | fi |
| 5167 | |
| 5168 | test -n "$F77" && break |
| 5169 | done |
| 5170 | fi |
| 5171 | if test -z "$F77"; then |
| 5172 | ac_ct_F77=$F77 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5173 | for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5174 | do |
| 5175 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5176 | set dummy $ac_prog; ac_word=$2 |
| 5177 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5178 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5179 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 5180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5181 | else |
| 5182 | if test -n "$ac_ct_F77"; then |
| 5183 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 5184 | else |
| 5185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5186 | for as_dir in $PATH |
| 5187 | do |
| 5188 | IFS=$as_save_IFS |
| 5189 | test -z "$as_dir" && as_dir=. |
| 5190 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5191 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5192 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 5193 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5194 | break 2 |
| 5195 | fi |
| 5196 | done |
| 5197 | done |
| 5198 | |
| 5199 | fi |
| 5200 | fi |
| 5201 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 5202 | if test -n "$ac_ct_F77"; then |
| 5203 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 5204 | echo "${ECHO_T}$ac_ct_F77" >&6 |
| 5205 | else |
| 5206 | echo "$as_me:$LINENO: result: no" >&5 |
| 5207 | echo "${ECHO_T}no" >&6 |
| 5208 | fi |
| 5209 | |
| 5210 | test -n "$ac_ct_F77" && break |
| 5211 | done |
| 5212 | |
| 5213 | F77=$ac_ct_F77 |
| 5214 | fi |
| 5215 | |
| 5216 | |
| 5217 | # Provide some information about the compiler. |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 5218 | echo "$as_me:5218:" \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5219 | "checking for Fortran 77 compiler version" >&5 |
| 5220 | ac_compiler=`set X $ac_compile; echo $2` |
| 5221 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 5222 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 5223 | ac_status=$? |
| 5224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5225 | (exit $ac_status); } |
| 5226 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 5227 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 5228 | ac_status=$? |
| 5229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5230 | (exit $ac_status); } |
| 5231 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 5232 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 5233 | ac_status=$? |
| 5234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5235 | (exit $ac_status); } |
| 5236 | |
| 5237 | # If we don't use `.F' as extension, the preprocessor is not run on the |
| 5238 | # input file. |
| 5239 | ac_save_ext=$ac_ext |
| 5240 | ac_ext=F |
| 5241 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 5242 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
| 5243 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 5244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5245 | else |
| 5246 | cat >conftest.$ac_ext <<_ACEOF |
| 5247 | program main |
| 5248 | #ifndef __GNUC__ |
| 5249 | choke me |
| 5250 | #endif |
| 5251 | |
| 5252 | end |
| 5253 | _ACEOF |
| 5254 | rm -f conftest.$ac_objext |
| 5255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5256 | (eval $ac_compile) 2>&5 |
| 5257 | ac_status=$? |
| 5258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5259 | (exit $ac_status); } && |
| 5260 | { ac_try='test -s conftest.$ac_objext' |
| 5261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5262 | (eval $ac_try) 2>&5 |
| 5263 | ac_status=$? |
| 5264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5265 | (exit $ac_status); }; }; then |
| 5266 | ac_compiler_gnu=yes |
| 5267 | else |
| 5268 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5269 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5270 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5271 | ac_compiler_gnu=no |
| 5272 | fi |
| 5273 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5274 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 5275 | |
| 5276 | fi |
| 5277 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 5278 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
| 5279 | ac_ext=$ac_save_ext |
| 5280 | G77=`test $ac_compiler_gnu = yes && echo yes` |
| 5281 | ac_test_FFLAGS=${FFLAGS+set} |
| 5282 | ac_save_FFLAGS=$FFLAGS |
| 5283 | FFLAGS= |
| 5284 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 5285 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
| 5286 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 5287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5288 | else |
| 5289 | FFLAGS=-g |
| 5290 | cat >conftest.$ac_ext <<_ACEOF |
| 5291 | program main |
| 5292 | |
| 5293 | end |
| 5294 | _ACEOF |
| 5295 | rm -f conftest.$ac_objext |
| 5296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5297 | (eval $ac_compile) 2>&5 |
| 5298 | ac_status=$? |
| 5299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5300 | (exit $ac_status); } && |
| 5301 | { ac_try='test -s conftest.$ac_objext' |
| 5302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5303 | (eval $ac_try) 2>&5 |
| 5304 | ac_status=$? |
| 5305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5306 | (exit $ac_status); }; }; then |
| 5307 | ac_cv_prog_f77_g=yes |
| 5308 | else |
| 5309 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5311 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5312 | ac_cv_prog_f77_g=no |
| 5313 | fi |
| 5314 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5315 | |
| 5316 | fi |
| 5317 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 5318 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
| 5319 | if test "$ac_test_FFLAGS" = set; then |
| 5320 | FFLAGS=$ac_save_FFLAGS |
| 5321 | elif test $ac_cv_prog_f77_g = yes; then |
| 5322 | if test "$G77" = yes; then |
| 5323 | FFLAGS="-g -O2" |
| 5324 | else |
| 5325 | FFLAGS="-g" |
| 5326 | fi |
| 5327 | else |
| 5328 | if test "$G77" = yes; then |
| 5329 | FFLAGS="-O2" |
| 5330 | else |
| 5331 | FFLAGS= |
| 5332 | fi |
| 5333 | fi |
| 5334 | ac_ext=c |
| 5335 | ac_cpp='$CPP $CPPFLAGS' |
| 5336 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5337 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5338 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5339 | |
| 5340 | |
| 5341 | |
| 5342 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 5343 | |
| 5344 | # find the maximum length of command line arguments |
| 5345 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 5346 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| 5347 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 5348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5349 | else |
| 5350 | i=0 |
| 5351 | testring="ABCD" |
| 5352 | |
| 5353 | case $build_os in |
| 5354 | msdosdjgpp*) |
| 5355 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 5356 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 5357 | # during glob expansion). Even if it were fixed, the result of this |
| 5358 | # check would be larger than it should be. |
| 5359 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 5360 | ;; |
| 5361 | |
| 5362 | gnu*) |
| 5363 | # Under GNU Hurd, this test is not required because there is |
| 5364 | # no limit to the length of command line arguments. |
| 5365 | # Libtool will interpret -1 as no limit whatsoever |
| 5366 | lt_cv_sys_max_cmd_len=-1; |
| 5367 | ;; |
| 5368 | |
| 5369 | cygwin* | mingw*) |
| 5370 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 5371 | # about 5 minutes as the teststring grows exponentially. |
| 5372 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 5373 | # you end up with a "frozen" computer, even though with patience |
| 5374 | # the test eventually succeeds (with a max line length of 256k). |
| 5375 | # Instead, let's just punt: use the minimum linelength reported by |
| 5376 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 5377 | lt_cv_sys_max_cmd_len=8192; |
| 5378 | ;; |
| 5379 | |
| 5380 | *) |
| 5381 | # If test is not a shell built-in, we'll probably end up computing a |
| 5382 | # maximum length that is only half of the actual maximum length, but |
| 5383 | # we can't tell. |
| 5384 | while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ |
| 5385 | = "XX$testring") >/dev/null 2>&1 && |
| 5386 | new_result=`expr "X$testring" : ".*" 2>&1` && |
| 5387 | lt_cv_sys_max_cmd_len=$new_result && |
| 5388 | test $i != 17 # 1/2 MB should be enough |
| 5389 | do |
| 5390 | i=`expr $i + 1` |
| 5391 | testring=$testring$testring |
| 5392 | done |
| 5393 | testring= |
| 5394 | # Add a significant safety factor because C++ compilers can tack on massive |
| 5395 | # amounts of additional arguments before passing them to the linker. |
| 5396 | # It appears as though 1/2 is a usable value. |
| 5397 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 5398 | ;; |
| 5399 | esac |
| 5400 | |
| 5401 | fi |
| 5402 | |
| 5403 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 5404 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 5405 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
| 5406 | else |
| 5407 | echo "$as_me:$LINENO: result: none" >&5 |
| 5408 | echo "${ECHO_T}none" >&6 |
| 5409 | fi |
| 5410 | |
| 5411 | |
| 5412 | |
| 5413 | |
| 5414 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 5415 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 5416 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 5417 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 5418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5419 | else |
| 5420 | |
| 5421 | # These are sane defaults that work on at least a few old systems. |
| 5422 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 5423 | |
| 5424 | # Character class describing NM global symbol codes. |
| 5425 | symcode='[BCDEGRST]' |
| 5426 | |
| 5427 | # Regexp to match symbols that can be accessed directly from C. |
| 5428 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 5429 | |
| 5430 | # Transform the above into a raw symbol and a C symbol. |
| 5431 | symxfrm='\1 \2\3 \3' |
| 5432 | |
| 5433 | # Transform an extracted symbol line into a proper C declaration |
| 5434 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 5435 | |
| 5436 | # Transform an extracted symbol line into symbol name and symbol address |
| 5437 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 5438 | |
| 5439 | # Define system-specific variables. |
| 5440 | case $host_os in |
| 5441 | aix*) |
| 5442 | symcode='[BCDT]' |
| 5443 | ;; |
| 5444 | cygwin* | mingw* | pw32*) |
| 5445 | symcode='[ABCDGISTW]' |
| 5446 | ;; |
| 5447 | hpux*) # Its linker distinguishes data from code symbols |
| 5448 | if test "$host_cpu" = ia64; then |
| 5449 | symcode='[ABCDEGRST]' |
| 5450 | fi |
| 5451 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 5452 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 5453 | ;; |
| 5454 | irix* | nonstopux*) |
| 5455 | symcode='[BCDEGRST]' |
| 5456 | ;; |
| 5457 | osf*) |
| 5458 | symcode='[BCDEGQRST]' |
| 5459 | ;; |
| 5460 | solaris* | sysv5*) |
| 5461 | symcode='[BDT]' |
| 5462 | ;; |
| 5463 | sysv4) |
| 5464 | symcode='[DFNSTU]' |
| 5465 | ;; |
| 5466 | esac |
| 5467 | |
| 5468 | # Handle CRLF in mingw tool chain |
| 5469 | opt_cr= |
| 5470 | case $build_os in |
| 5471 | mingw*) |
| 5472 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 5473 | ;; |
| 5474 | esac |
| 5475 | |
| 5476 | # If we're using GNU nm, then use its standard symbol codes. |
| 5477 | case `$NM -V 2>&1` in |
| 5478 | *GNU* | *'with BFD'*) |
| 5479 | symcode='[ABCDGISTW]' ;; |
| 5480 | esac |
| 5481 | |
| 5482 | # Try without a prefix undercore, then with it. |
| 5483 | for ac_symprfx in "" "_"; do |
| 5484 | |
| 5485 | # Write the raw and C identifiers. |
| 5486 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 5487 | |
| 5488 | # Check to see that the pipe works correctly. |
| 5489 | pipe_works=no |
| 5490 | |
| 5491 | rm -f conftest* |
| 5492 | cat > conftest.$ac_ext <<EOF |
| 5493 | #ifdef __cplusplus |
| 5494 | extern "C" { |
| 5495 | #endif |
| 5496 | char nm_test_var; |
| 5497 | void nm_test_func(){} |
| 5498 | #ifdef __cplusplus |
| 5499 | } |
| 5500 | #endif |
| 5501 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 5502 | EOF |
| 5503 | |
| 5504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5505 | (eval $ac_compile) 2>&5 |
| 5506 | ac_status=$? |
| 5507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5508 | (exit $ac_status); }; then |
| 5509 | # Now try to grab the symbols. |
| 5510 | nlist=conftest.nm |
| 5511 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 5512 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 5513 | ac_status=$? |
| 5514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5515 | (exit $ac_status); } && test -s "$nlist"; then |
| 5516 | # Try sorting and uniquifying the output. |
| 5517 | if sort "$nlist" | uniq > "$nlist"T; then |
| 5518 | mv -f "$nlist"T "$nlist" |
| 5519 | else |
| 5520 | rm -f "$nlist"T |
| 5521 | fi |
| 5522 | |
| 5523 | # Make sure that we snagged all the symbols we need. |
| 5524 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 5525 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 5526 | cat <<EOF > conftest.$ac_ext |
| 5527 | #ifdef __cplusplus |
| 5528 | extern "C" { |
| 5529 | #endif |
| 5530 | |
| 5531 | EOF |
| 5532 | # Now generate the symbol file. |
| 5533 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 5534 | |
| 5535 | cat <<EOF >> conftest.$ac_ext |
| 5536 | #if defined (__STDC__) && __STDC__ |
| 5537 | # define lt_ptr_t void * |
| 5538 | #else |
| 5539 | # define lt_ptr_t char * |
| 5540 | # define const |
| 5541 | #endif |
| 5542 | |
| 5543 | /* The mapping between symbol names and symbols. */ |
| 5544 | const struct { |
| 5545 | const char *name; |
| 5546 | lt_ptr_t address; |
| 5547 | } |
| 5548 | lt_preloaded_symbols[] = |
| 5549 | { |
| 5550 | EOF |
| 5551 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 5552 | cat <<\EOF >> conftest.$ac_ext |
| 5553 | {0, (lt_ptr_t) 0} |
| 5554 | }; |
| 5555 | |
| 5556 | #ifdef __cplusplus |
| 5557 | } |
| 5558 | #endif |
| 5559 | EOF |
| 5560 | # Now try linking the two files. |
| 5561 | mv conftest.$ac_objext conftstm.$ac_objext |
| 5562 | lt_save_LIBS="$LIBS" |
| 5563 | lt_save_CFLAGS="$CFLAGS" |
| 5564 | LIBS="conftstm.$ac_objext" |
| 5565 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 5566 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5567 | (eval $ac_link) 2>&5 |
| 5568 | ac_status=$? |
| 5569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5570 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 5571 | pipe_works=yes |
| 5572 | fi |
| 5573 | LIBS="$lt_save_LIBS" |
| 5574 | CFLAGS="$lt_save_CFLAGS" |
| 5575 | else |
| 5576 | echo "cannot find nm_test_func in $nlist" >&5 |
| 5577 | fi |
| 5578 | else |
| 5579 | echo "cannot find nm_test_var in $nlist" >&5 |
| 5580 | fi |
| 5581 | else |
| 5582 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 5583 | fi |
| 5584 | else |
| 5585 | echo "$progname: failed program was:" >&5 |
| 5586 | cat conftest.$ac_ext >&5 |
| 5587 | fi |
| 5588 | rm -f conftest* conftst* |
| 5589 | |
| 5590 | # Do not use the global_symbol_pipe unless it works. |
| 5591 | if test "$pipe_works" = yes; then |
| 5592 | break |
| 5593 | else |
| 5594 | lt_cv_sys_global_symbol_pipe= |
| 5595 | fi |
| 5596 | done |
| 5597 | |
| 5598 | fi |
| 5599 | |
| 5600 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 5601 | lt_cv_sys_global_symbol_to_cdecl= |
| 5602 | fi |
| 5603 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 5604 | echo "$as_me:$LINENO: result: failed" >&5 |
| 5605 | echo "${ECHO_T}failed" >&6 |
| 5606 | else |
| 5607 | echo "$as_me:$LINENO: result: ok" >&5 |
| 5608 | echo "${ECHO_T}ok" >&6 |
| 5609 | fi |
| 5610 | |
| 5611 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 5612 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 5613 | if test "${lt_cv_objdir+set}" = set; then |
| 5614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5615 | else |
| 5616 | rm -f .libs 2>/dev/null |
| 5617 | mkdir .libs 2>/dev/null |
| 5618 | if test -d .libs; then |
| 5619 | lt_cv_objdir=.libs |
| 5620 | else |
| 5621 | # MS-DOS does not allow filenames that begin with a dot. |
| 5622 | lt_cv_objdir=_libs |
| 5623 | fi |
| 5624 | rmdir .libs 2>/dev/null |
| 5625 | fi |
| 5626 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 5627 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
| 5628 | objdir=$lt_cv_objdir |
| 5629 | |
| 5630 | |
| 5631 | |
| 5632 | |
| 5633 | |
| 5634 | case $host_os in |
| 5635 | aix3*) |
| 5636 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 5637 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 5638 | # vanish in a puff of smoke. |
| 5639 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 5640 | COLLECT_NAMES= |
| 5641 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5642 | fi |
| 5643 | ;; |
| 5644 | esac |
| 5645 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5646 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 5647 | # metacharacters that are still active within double-quoted strings. |
| 5648 | Xsed='sed -e s/^X//' |
| 5649 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 5650 | |
| 5651 | # Same as above, but do not quote variable references. |
| 5652 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 5653 | |
| 5654 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 5655 | # double_quote_subst'ed string. |
| 5656 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 5657 | |
| 5658 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 5659 | no_glob_subst='s/\*/\\\*/g' |
| 5660 | |
| 5661 | # Constants: |
| 5662 | rm="rm -f" |
| 5663 | |
| 5664 | # Global variables: |
John Criswell | 8d4221e | 2003-07-23 16:52:50 +0000 | [diff] [blame] | 5665 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5666 | can_build_shared=yes |
| 5667 | |
| 5668 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 5669 | # which needs '.lib'). |
| 5670 | libext=a |
| 5671 | ltmain="$ac_aux_dir/ltmain.sh" |
| 5672 | ofile="$default_ofile" |
| 5673 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 5674 | |
| 5675 | if test -n "$ac_tool_prefix"; then |
| 5676 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5677 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5678 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5679 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5680 | if test "${ac_cv_prog_AR+set}" = set; then |
| 5681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5682 | else |
| 5683 | if test -n "$AR"; then |
| 5684 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5685 | else |
| 5686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5687 | for as_dir in $PATH |
| 5688 | do |
| 5689 | IFS=$as_save_IFS |
| 5690 | test -z "$as_dir" && as_dir=. |
| 5691 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5692 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5693 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5694 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5695 | break 2 |
| 5696 | fi |
| 5697 | done |
| 5698 | done |
| 5699 | |
| 5700 | fi |
| 5701 | fi |
| 5702 | AR=$ac_cv_prog_AR |
| 5703 | if test -n "$AR"; then |
| 5704 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 5705 | echo "${ECHO_T}$AR" >&6 |
| 5706 | else |
| 5707 | echo "$as_me:$LINENO: result: no" >&5 |
| 5708 | echo "${ECHO_T}no" >&6 |
| 5709 | fi |
| 5710 | |
| 5711 | fi |
| 5712 | if test -z "$ac_cv_prog_AR"; then |
| 5713 | ac_ct_AR=$AR |
| 5714 | # Extract the first word of "ar", so it can be a program name with args. |
| 5715 | set dummy ar; ac_word=$2 |
| 5716 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5717 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5718 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 5719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5720 | else |
| 5721 | if test -n "$ac_ct_AR"; then |
| 5722 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5723 | else |
| 5724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5725 | for as_dir in $PATH |
| 5726 | do |
| 5727 | IFS=$as_save_IFS |
| 5728 | test -z "$as_dir" && as_dir=. |
| 5729 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5730 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5731 | ac_cv_prog_ac_ct_AR="ar" |
| 5732 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5733 | break 2 |
| 5734 | fi |
| 5735 | done |
| 5736 | done |
| 5737 | |
| 5738 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
| 5739 | fi |
| 5740 | fi |
| 5741 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5742 | if test -n "$ac_ct_AR"; then |
| 5743 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 5744 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 5745 | else |
| 5746 | echo "$as_me:$LINENO: result: no" >&5 |
| 5747 | echo "${ECHO_T}no" >&6 |
| 5748 | fi |
| 5749 | |
| 5750 | AR=$ac_ct_AR |
| 5751 | else |
| 5752 | AR="$ac_cv_prog_AR" |
| 5753 | fi |
| 5754 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5755 | if test -n "$ac_tool_prefix"; then |
| 5756 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5757 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5758 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5759 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5760 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 5761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5762 | else |
| 5763 | if test -n "$RANLIB"; then |
| 5764 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5765 | else |
| 5766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5767 | for as_dir in $PATH |
| 5768 | do |
| 5769 | IFS=$as_save_IFS |
| 5770 | test -z "$as_dir" && as_dir=. |
| 5771 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5772 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5773 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5774 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5775 | break 2 |
| 5776 | fi |
| 5777 | done |
| 5778 | done |
| 5779 | |
| 5780 | fi |
| 5781 | fi |
| 5782 | RANLIB=$ac_cv_prog_RANLIB |
| 5783 | if test -n "$RANLIB"; then |
| 5784 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 5785 | echo "${ECHO_T}$RANLIB" >&6 |
| 5786 | else |
| 5787 | echo "$as_me:$LINENO: result: no" >&5 |
| 5788 | echo "${ECHO_T}no" >&6 |
| 5789 | fi |
| 5790 | |
| 5791 | fi |
| 5792 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5793 | ac_ct_RANLIB=$RANLIB |
| 5794 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5795 | set dummy ranlib; ac_word=$2 |
| 5796 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5797 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5798 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 5799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5800 | else |
| 5801 | if test -n "$ac_ct_RANLIB"; then |
| 5802 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5803 | else |
| 5804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5805 | for as_dir in $PATH |
| 5806 | do |
| 5807 | IFS=$as_save_IFS |
| 5808 | test -z "$as_dir" && as_dir=. |
| 5809 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5810 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5811 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5812 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5813 | break 2 |
| 5814 | fi |
| 5815 | done |
| 5816 | done |
| 5817 | |
| 5818 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 5819 | fi |
| 5820 | fi |
| 5821 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5822 | if test -n "$ac_ct_RANLIB"; then |
| 5823 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 5824 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 5825 | else |
| 5826 | echo "$as_me:$LINENO: result: no" >&5 |
| 5827 | echo "${ECHO_T}no" >&6 |
| 5828 | fi |
| 5829 | |
| 5830 | RANLIB=$ac_ct_RANLIB |
| 5831 | else |
| 5832 | RANLIB="$ac_cv_prog_RANLIB" |
| 5833 | fi |
| 5834 | |
| 5835 | if test -n "$ac_tool_prefix"; then |
| 5836 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5837 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5838 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5839 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5840 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 5841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5842 | else |
| 5843 | if test -n "$STRIP"; then |
| 5844 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5845 | else |
| 5846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5847 | for as_dir in $PATH |
| 5848 | do |
| 5849 | IFS=$as_save_IFS |
| 5850 | test -z "$as_dir" && as_dir=. |
| 5851 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5852 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5853 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5854 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5855 | break 2 |
| 5856 | fi |
| 5857 | done |
| 5858 | done |
| 5859 | |
| 5860 | fi |
| 5861 | fi |
| 5862 | STRIP=$ac_cv_prog_STRIP |
| 5863 | if test -n "$STRIP"; then |
| 5864 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 5865 | echo "${ECHO_T}$STRIP" >&6 |
| 5866 | else |
| 5867 | echo "$as_me:$LINENO: result: no" >&5 |
| 5868 | echo "${ECHO_T}no" >&6 |
| 5869 | fi |
| 5870 | |
| 5871 | fi |
| 5872 | if test -z "$ac_cv_prog_STRIP"; then |
| 5873 | ac_ct_STRIP=$STRIP |
| 5874 | # Extract the first word of "strip", so it can be a program name with args. |
| 5875 | set dummy strip; ac_word=$2 |
| 5876 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5877 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5878 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 5879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5880 | else |
| 5881 | if test -n "$ac_ct_STRIP"; then |
| 5882 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5883 | else |
| 5884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5885 | for as_dir in $PATH |
| 5886 | do |
| 5887 | IFS=$as_save_IFS |
| 5888 | test -z "$as_dir" && as_dir=. |
| 5889 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5890 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5891 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5892 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5893 | break 2 |
| 5894 | fi |
| 5895 | done |
| 5896 | done |
| 5897 | |
| 5898 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 5899 | fi |
| 5900 | fi |
| 5901 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5902 | if test -n "$ac_ct_STRIP"; then |
| 5903 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 5904 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 5905 | else |
| 5906 | echo "$as_me:$LINENO: result: no" >&5 |
| 5907 | echo "${ECHO_T}no" >&6 |
| 5908 | fi |
| 5909 | |
| 5910 | STRIP=$ac_ct_STRIP |
| 5911 | else |
| 5912 | STRIP="$ac_cv_prog_STRIP" |
| 5913 | fi |
| 5914 | |
| 5915 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5916 | old_CC="$CC" |
| 5917 | old_CFLAGS="$CFLAGS" |
| 5918 | |
| 5919 | # Set sane defaults for various variables |
| 5920 | test -z "$AR" && AR=ar |
| 5921 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 5922 | test -z "$AS" && AS=as |
| 5923 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5924 | test -z "$LTCC" && LTCC=$CC |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5925 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 5926 | test -z "$LD" && LD=ld |
| 5927 | test -z "$LN_S" && LN_S="ln -s" |
| 5928 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 5929 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5930 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5931 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5932 | test -z "$RANLIB" && RANLIB=: |
| 5933 | test -z "$STRIP" && STRIP=: |
| 5934 | test -z "$ac_objext" && ac_objext=o |
| 5935 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5936 | # Determine commands to create old-style static archives. |
| 5937 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 5938 | old_postinstall_cmds='chmod 644 $oldlib' |
| 5939 | old_postuninstall_cmds= |
| 5940 | |
| 5941 | if test -n "$RANLIB"; then |
| 5942 | case $host_os in |
| 5943 | openbsd*) |
| 5944 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
| 5945 | ;; |
| 5946 | *) |
| 5947 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
| 5948 | ;; |
| 5949 | esac |
| 5950 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 5951 | fi |
| 5952 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5953 | # Only perform the check for file, if the check method requires it |
| 5954 | case $deplibs_check_method in |
| 5955 | file_magic*) |
| 5956 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 5957 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 5958 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 5959 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 5960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5961 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5962 | case $MAGIC_CMD in |
| 5963 | [\\/*] | ?:[\\/]*) |
| 5964 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 5965 | ;; |
| 5966 | *) |
| 5967 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 5968 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5969 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 5970 | for ac_dir in $ac_dummy; do |
| 5971 | IFS="$lt_save_ifs" |
| 5972 | test -z "$ac_dir" && ac_dir=. |
| 5973 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 5974 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 5975 | if test -n "$file_magic_test_file"; then |
| 5976 | case $deplibs_check_method in |
| 5977 | "file_magic "*) |
| 5978 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 5979 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5980 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 5981 | $EGREP "$file_magic_regex" > /dev/null; then |
| 5982 | : |
| 5983 | else |
| 5984 | cat <<EOF 1>&2 |
| 5985 | |
| 5986 | *** Warning: the command libtool uses to detect shared libraries, |
| 5987 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 5988 | *** The result is that libtool may fail to recognize shared libraries |
| 5989 | *** as such. This will affect the creation of libtool libraries that |
| 5990 | *** depend on shared libraries, but programs linked with such libtool |
| 5991 | *** libraries will work regardless of this problem. Nevertheless, you |
| 5992 | *** may want to report the problem to your system manager and/or to |
| 5993 | *** bug-libtool@gnu.org |
| 5994 | |
| 5995 | EOF |
| 5996 | fi ;; |
| 5997 | esac |
| 5998 | fi |
| 5999 | break |
| 6000 | fi |
| 6001 | done |
| 6002 | IFS="$lt_save_ifs" |
| 6003 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 6004 | ;; |
| 6005 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6006 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6007 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6008 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6009 | if test -n "$MAGIC_CMD"; then |
| 6010 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 6011 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 6012 | else |
| 6013 | echo "$as_me:$LINENO: result: no" >&5 |
| 6014 | echo "${ECHO_T}no" >&6 |
| 6015 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6016 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6017 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 6018 | if test -n "$ac_tool_prefix"; then |
| 6019 | echo "$as_me:$LINENO: checking for file" >&5 |
| 6020 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 6021 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 6022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6023 | else |
| 6024 | case $MAGIC_CMD in |
| 6025 | [\\/*] | ?:[\\/]*) |
| 6026 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 6027 | ;; |
| 6028 | *) |
| 6029 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 6030 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6031 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 6032 | for ac_dir in $ac_dummy; do |
| 6033 | IFS="$lt_save_ifs" |
| 6034 | test -z "$ac_dir" && ac_dir=. |
| 6035 | if test -f $ac_dir/file; then |
| 6036 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 6037 | if test -n "$file_magic_test_file"; then |
| 6038 | case $deplibs_check_method in |
| 6039 | "file_magic "*) |
| 6040 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 6041 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6042 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 6043 | $EGREP "$file_magic_regex" > /dev/null; then |
| 6044 | : |
| 6045 | else |
| 6046 | cat <<EOF 1>&2 |
| 6047 | |
| 6048 | *** Warning: the command libtool uses to detect shared libraries, |
| 6049 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 6050 | *** The result is that libtool may fail to recognize shared libraries |
| 6051 | *** as such. This will affect the creation of libtool libraries that |
| 6052 | *** depend on shared libraries, but programs linked with such libtool |
| 6053 | *** libraries will work regardless of this problem. Nevertheless, you |
| 6054 | *** may want to report the problem to your system manager and/or to |
| 6055 | *** bug-libtool@gnu.org |
| 6056 | |
| 6057 | EOF |
| 6058 | fi ;; |
| 6059 | esac |
| 6060 | fi |
| 6061 | break |
| 6062 | fi |
| 6063 | done |
| 6064 | IFS="$lt_save_ifs" |
| 6065 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 6066 | ;; |
| 6067 | esac |
| 6068 | fi |
| 6069 | |
| 6070 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6071 | if test -n "$MAGIC_CMD"; then |
| 6072 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 6073 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 6074 | else |
| 6075 | echo "$as_me:$LINENO: result: no" >&5 |
| 6076 | echo "${ECHO_T}no" >&6 |
| 6077 | fi |
| 6078 | |
| 6079 | else |
| 6080 | MAGIC_CMD=: |
| 6081 | fi |
| 6082 | fi |
| 6083 | |
| 6084 | fi |
| 6085 | ;; |
| 6086 | esac |
| 6087 | |
| 6088 | enable_dlopen=no |
| 6089 | enable_win32_dll=no |
| 6090 | |
| 6091 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 6092 | if test "${enable_libtool_lock+set}" = set; then |
| 6093 | enableval="$enable_libtool_lock" |
| 6094 | |
| 6095 | fi; |
| 6096 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 6097 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6098 | |
| 6099 | # Check whether --with-pic or --without-pic was given. |
| 6100 | if test "${with_pic+set}" = set; then |
| 6101 | withval="$with_pic" |
| 6102 | pic_mode="$withval" |
| 6103 | else |
| 6104 | pic_mode=default |
| 6105 | fi; |
| 6106 | test -z "$pic_mode" && pic_mode=default |
| 6107 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6108 | # Use C for the default configuration in the libtool script |
| 6109 | tagname= |
| 6110 | lt_save_CC="$CC" |
| 6111 | ac_ext=c |
| 6112 | ac_cpp='$CPP $CPPFLAGS' |
| 6113 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6114 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6115 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6116 | |
| 6117 | |
| 6118 | # Source file extension for C test sources. |
| 6119 | ac_ext=c |
| 6120 | |
| 6121 | # Object file extension for compiled C test sources. |
| 6122 | objext=o |
| 6123 | objext=$objext |
| 6124 | |
| 6125 | # Code to be used in simple compile tests |
| 6126 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 6127 | |
| 6128 | # Code to be used in simple link tests |
| 6129 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 6130 | |
| 6131 | |
| 6132 | # If no C compiler was specified, use CC. |
| 6133 | LTCC=${LTCC-"$CC"} |
| 6134 | |
| 6135 | # Allow CC to be a program name with arguments. |
| 6136 | compiler=$CC |
| 6137 | |
| 6138 | |
| 6139 | # |
| 6140 | # Check for any special shared library compilation flags. |
| 6141 | # |
| 6142 | lt_prog_cc_shlib= |
| 6143 | if test "$GCC" = no; then |
| 6144 | case $host_os in |
| 6145 | sco3.2v5*) |
| 6146 | lt_prog_cc_shlib='-belf' |
| 6147 | ;; |
| 6148 | esac |
| 6149 | fi |
| 6150 | if test -n "$lt_prog_cc_shlib"; then |
| 6151 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
| 6152 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
| 6153 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
| 6154 | else |
| 6155 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 6156 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 6157 | lt_cv_prog_cc_can_build_shared=no |
| 6158 | fi |
| 6159 | fi |
| 6160 | |
| 6161 | |
| 6162 | # |
| 6163 | # Check to make sure the static flag actually works. |
| 6164 | # |
| 6165 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
| 6166 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
| 6167 | if test "${lt_prog_compiler_static_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6169 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6170 | lt_prog_compiler_static_works=no |
| 6171 | save_LDFLAGS="$LDFLAGS" |
| 6172 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
| 6173 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 6174 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 6175 | # The compiler can only warn and ignore the option if not recognized |
| 6176 | # So say no if there are warnings |
| 6177 | if test -s conftest.err; then |
| 6178 | # Append any errors to the config.log. |
| 6179 | cat conftest.err 1>&5 |
| 6180 | else |
| 6181 | lt_prog_compiler_static_works=yes |
| 6182 | fi |
| 6183 | fi |
| 6184 | $rm conftest* |
| 6185 | LDFLAGS="$save_LDFLAGS" |
| 6186 | |
| 6187 | fi |
| 6188 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 6189 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
| 6190 | |
| 6191 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 6192 | : |
| 6193 | else |
| 6194 | lt_prog_compiler_static= |
| 6195 | fi |
| 6196 | |
| 6197 | |
| 6198 | |
| 6199 | ## CAVEAT EMPTOR: |
| 6200 | ## There is no encapsulation within the following macros, do not change |
| 6201 | ## the running order or otherwise move them around unless you know exactly |
| 6202 | ## what you are doing... |
| 6203 | |
| 6204 | lt_prog_compiler_no_builtin_flag= |
| 6205 | |
| 6206 | if test "$GCC" = yes; then |
| 6207 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 6208 | |
| 6209 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 6210 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 6211 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 6212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6213 | else |
| 6214 | lt_cv_prog_compiler_rtti_exceptions=no |
| 6215 | ac_outfile=conftest.$ac_objext |
| 6216 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6217 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 6218 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6219 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6220 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6221 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6222 | # The option is referenced via a variable to avoid confusing sed. |
| 6223 | lt_compile=`echo "$ac_compile" | $SED \ |
| 6224 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 6225 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6226 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 6227 | (eval echo "\"\$as_me:6227: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6228 | (eval "$lt_compile" 2>conftest.err) |
| 6229 | ac_status=$? |
| 6230 | cat conftest.err >&5 |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 6231 | echo "$as_me:6231: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6232 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6233 | # The compiler can only warn and ignore the option if not recognized |
| 6234 | # So say no if there are warnings |
| 6235 | if test ! -s conftest.err; then |
| 6236 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 6237 | fi |
| 6238 | fi |
| 6239 | $rm conftest* |
| 6240 | |
| 6241 | fi |
| 6242 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 6243 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 6244 | |
| 6245 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 6246 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 6247 | else |
| 6248 | : |
| 6249 | fi |
| 6250 | |
| 6251 | fi |
| 6252 | |
| 6253 | lt_prog_compiler_wl= |
| 6254 | lt_prog_compiler_pic= |
| 6255 | lt_prog_compiler_static= |
| 6256 | |
| 6257 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 6258 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6259 | |
| 6260 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6261 | lt_prog_compiler_wl='-Wl,' |
| 6262 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6263 | |
| 6264 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6265 | aix*) |
| 6266 | # All AIX code is PIC. |
| 6267 | if test "$host_cpu" = ia64; then |
| 6268 | # AIX 5 now supports IA64 processor |
| 6269 | lt_prog_compiler_static='-Bstatic' |
| 6270 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6271 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6272 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6273 | amigaos*) |
| 6274 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 6275 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 6276 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6277 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6278 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6279 | |
| 6280 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6281 | # PIC is the default for these OSes. |
| 6282 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6283 | |
| 6284 | mingw* | pw32* | os2*) |
| 6285 | # This hack is so that the source file can tell whether it is being |
| 6286 | # built for inclusion in a dll (and should export symbols for example). |
| 6287 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 6288 | ;; |
| 6289 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6290 | darwin* | rhapsody*) |
| 6291 | # PIC is the default on this platform |
| 6292 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6293 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6294 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6295 | |
| 6296 | msdosdjgpp*) |
| 6297 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 6298 | # on systems that don't support them. |
| 6299 | lt_prog_compiler_can_build_shared=no |
| 6300 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6301 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6302 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6303 | sysv4*MP*) |
| 6304 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6305 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6306 | fi |
| 6307 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6308 | |
| 6309 | hpux*) |
| 6310 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 6311 | # not for PA HP-UX. |
| 6312 | case "$host_cpu" in |
| 6313 | hppa*64*|ia64*) |
| 6314 | # +Z the default |
| 6315 | ;; |
| 6316 | *) |
| 6317 | lt_prog_compiler_pic='-fPIC' |
| 6318 | ;; |
| 6319 | esac |
| 6320 | ;; |
| 6321 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6322 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6323 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6324 | ;; |
| 6325 | esac |
| 6326 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6327 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6328 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6329 | aix*) |
| 6330 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6331 | if test "$host_cpu" = ia64; then |
| 6332 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6333 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6334 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6335 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6336 | fi |
| 6337 | ;; |
| 6338 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6339 | mingw* | pw32* | os2*) |
| 6340 | # This hack is so that the source file can tell whether it is being |
| 6341 | # built for inclusion in a dll (and should export symbols for example). |
| 6342 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 6343 | ;; |
| 6344 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6345 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6346 | lt_prog_compiler_wl='-Wl,' |
| 6347 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 6348 | # not for PA HP-UX. |
| 6349 | case "$host_cpu" in |
| 6350 | hppa*64*|ia64*) |
| 6351 | # +Z the default |
| 6352 | ;; |
| 6353 | *) |
| 6354 | lt_prog_compiler_pic='+Z' |
| 6355 | ;; |
| 6356 | esac |
| 6357 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 6358 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6359 | ;; |
| 6360 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6361 | irix5* | irix6* | nonstopux*) |
| 6362 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6363 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6364 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6365 | ;; |
| 6366 | |
| 6367 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6368 | lt_prog_compiler_pic='-KPIC' |
| 6369 | lt_prog_compiler_static='-Bstatic' |
| 6370 | ;; |
| 6371 | |
| 6372 | linux*) |
| 6373 | case $CC in |
| 6374 | icc|ecc) |
| 6375 | lt_prog_compiler_wl='-Wl,' |
| 6376 | lt_prog_compiler_pic='-KPIC' |
| 6377 | lt_prog_compiler_static='-static' |
| 6378 | ;; |
| 6379 | ccc) |
| 6380 | lt_prog_compiler_wl='-Wl,' |
| 6381 | # All Alpha code is PIC. |
| 6382 | lt_prog_compiler_static='-non_shared' |
| 6383 | ;; |
| 6384 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6385 | ;; |
| 6386 | |
| 6387 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6388 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6389 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6390 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6391 | ;; |
| 6392 | |
| 6393 | sco3.2v5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6394 | lt_prog_compiler_pic='-Kpic' |
| 6395 | lt_prog_compiler_static='-dn' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6396 | ;; |
| 6397 | |
| 6398 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6399 | lt_prog_compiler_wl='-Wl,' |
| 6400 | lt_prog_compiler_pic='-KPIC' |
| 6401 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6402 | ;; |
| 6403 | |
| 6404 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6405 | lt_prog_compiler_wl='-Qoption ld ' |
| 6406 | lt_prog_compiler_pic='-PIC' |
| 6407 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6408 | ;; |
| 6409 | |
| 6410 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6411 | lt_prog_compiler_wl='-Wl,' |
| 6412 | lt_prog_compiler_pic='-KPIC' |
| 6413 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6414 | ;; |
| 6415 | |
| 6416 | sysv4*MP*) |
| 6417 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6418 | lt_prog_compiler_pic='-Kconform_pic' |
| 6419 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6420 | fi |
| 6421 | ;; |
| 6422 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6423 | uts4*) |
| 6424 | lt_prog_compiler_pic='-pic' |
| 6425 | lt_prog_compiler_static='-Bstatic' |
| 6426 | ;; |
| 6427 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6428 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6429 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6430 | ;; |
| 6431 | esac |
| 6432 | fi |
| 6433 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6434 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 6435 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6436 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6437 | # |
| 6438 | # Check to make sure the PIC flag actually works. |
| 6439 | # |
| 6440 | if test -n "$lt_prog_compiler_pic"; then |
| 6441 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 6442 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
| 6443 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6445 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6446 | lt_prog_compiler_pic_works=no |
| 6447 | ac_outfile=conftest.$ac_objext |
| 6448 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6449 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 6450 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6451 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6452 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6453 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6454 | # The option is referenced via a variable to avoid confusing sed. |
| 6455 | lt_compile=`echo "$ac_compile" | $SED \ |
| 6456 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 6457 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6458 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 6459 | (eval echo "\"\$as_me:6459: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6460 | (eval "$lt_compile" 2>conftest.err) |
| 6461 | ac_status=$? |
| 6462 | cat conftest.err >&5 |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 6463 | echo "$as_me:6463: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6464 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6465 | # The compiler can only warn and ignore the option if not recognized |
| 6466 | # So say no if there are warnings |
| 6467 | if test ! -s conftest.err; then |
| 6468 | lt_prog_compiler_pic_works=yes |
| 6469 | fi |
| 6470 | fi |
| 6471 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6472 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6473 | fi |
| 6474 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 6475 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6476 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6477 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 6478 | case $lt_prog_compiler_pic in |
| 6479 | "" | " "*) ;; |
| 6480 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 6481 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6482 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6483 | lt_prog_compiler_pic= |
| 6484 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6485 | fi |
| 6486 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6487 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6488 | case "$host_os" in |
| 6489 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 6490 | *djgpp*) |
| 6491 | lt_prog_compiler_pic= |
| 6492 | ;; |
| 6493 | *) |
| 6494 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 6495 | ;; |
| 6496 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6497 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6498 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 6499 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6500 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6502 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6503 | lt_cv_prog_compiler_c_o=no |
| 6504 | $rm -r conftest 2>/dev/null |
| 6505 | mkdir conftest |
| 6506 | cd conftest |
| 6507 | mkdir out |
| 6508 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6509 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6510 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 6511 | # that will create temporary files in the current directory regardless of |
| 6512 | # the output directory. Thus, making CWD read-only will cause this test |
| 6513 | # to fail, enabling locking or at least warning the user not to do parallel |
| 6514 | # builds. |
| 6515 | chmod -w . |
| 6516 | |
| 6517 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 6518 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6519 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6520 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6521 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6522 | lt_compile=`echo "$ac_compile" | $SED \ |
| 6523 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 6524 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6525 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 6526 | (eval echo "\"\$as_me:6526: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6527 | (eval "$lt_compile" 2>out/conftest.err) |
| 6528 | ac_status=$? |
| 6529 | cat out/conftest.err >&5 |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 6530 | echo "$as_me:6530: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6531 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 6532 | then |
| 6533 | # The compiler can only warn and ignore the option if not recognized |
| 6534 | # So say no if there are warnings |
| 6535 | if test ! -s out/conftest.err; then |
| 6536 | lt_cv_prog_compiler_c_o=yes |
| 6537 | fi |
| 6538 | fi |
| 6539 | chmod u+w . |
| 6540 | $rm conftest* out/* |
| 6541 | rmdir out |
| 6542 | cd .. |
| 6543 | rmdir conftest |
| 6544 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6545 | |
| 6546 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6547 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 6548 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6549 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6550 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6551 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6552 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6553 | # do not overwrite the value of need_locks provided by the user |
| 6554 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 6555 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 6556 | hard_links=yes |
| 6557 | $rm conftest* |
| 6558 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 6559 | touch conftest.a |
| 6560 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 6561 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 6562 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 6563 | echo "${ECHO_T}$hard_links" >&6 |
| 6564 | if test "$hard_links" = no; then |
| 6565 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 6566 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 6567 | need_locks=warn |
| 6568 | fi |
| 6569 | else |
| 6570 | need_locks=no |
| 6571 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6572 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6573 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 6574 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 6575 | |
| 6576 | runpath_var= |
| 6577 | allow_undefined_flag= |
| 6578 | enable_shared_with_static_runtimes=no |
| 6579 | archive_cmds= |
| 6580 | archive_expsym_cmds= |
| 6581 | old_archive_From_new_cmds= |
| 6582 | old_archive_from_expsyms_cmds= |
| 6583 | export_dynamic_flag_spec= |
| 6584 | whole_archive_flag_spec= |
| 6585 | thread_safe_flag_spec= |
| 6586 | hardcode_libdir_flag_spec= |
| 6587 | hardcode_libdir_flag_spec_ld= |
| 6588 | hardcode_libdir_separator= |
| 6589 | hardcode_direct=no |
| 6590 | hardcode_minus_L=no |
| 6591 | hardcode_shlibpath_var=unsupported |
| 6592 | link_all_deplibs=unknown |
| 6593 | hardcode_automatic=no |
| 6594 | module_cmds= |
| 6595 | module_expsym_cmds= |
| 6596 | always_export_symbols=no |
| 6597 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 6598 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 6599 | # included in the symbol list |
| 6600 | include_expsyms= |
| 6601 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 6602 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 6603 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 6604 | # as well as any symbol that contains `d'. |
| 6605 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 6606 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 6607 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 6608 | # the symbol is explicitly referenced. Since portable code cannot |
| 6609 | # rely on this symbol name, it's probably fine to never include it in |
| 6610 | # preloaded symbol tables. |
| 6611 | extract_expsyms_cmds= |
| 6612 | |
| 6613 | case $host_os in |
| 6614 | cygwin* | mingw* | pw32*) |
| 6615 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 6616 | # When not using gcc, we currently assume that we are using |
| 6617 | # Microsoft Visual C++. |
| 6618 | if test "$GCC" != yes; then |
| 6619 | with_gnu_ld=no |
| 6620 | fi |
| 6621 | ;; |
| 6622 | openbsd*) |
| 6623 | with_gnu_ld=no |
| 6624 | ;; |
| 6625 | esac |
| 6626 | |
| 6627 | ld_shlibs=yes |
| 6628 | if test "$with_gnu_ld" = yes; then |
| 6629 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 6630 | wlarc='${wl}' |
| 6631 | |
| 6632 | # See if GNU ld supports shared libraries. |
| 6633 | case $host_os in |
| 6634 | aix3* | aix4* | aix5*) |
| 6635 | # On AIX/PPC, the GNU linker is very broken |
| 6636 | if test "$host_cpu" != ia64; then |
| 6637 | ld_shlibs=no |
| 6638 | cat <<EOF 1>&2 |
| 6639 | |
| 6640 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 6641 | *** to be unable to reliably create shared libraries on AIX. |
| 6642 | *** Therefore, libtool is disabling shared libraries support. If you |
| 6643 | *** really care for shared libraries, you may want to modify your PATH |
| 6644 | *** so that a non-GNU linker is found, and then restart. |
| 6645 | |
| 6646 | EOF |
| 6647 | fi |
| 6648 | ;; |
| 6649 | |
| 6650 | amigaos*) |
| 6651 | 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)' |
| 6652 | hardcode_libdir_flag_spec='-L$libdir' |
| 6653 | hardcode_minus_L=yes |
| 6654 | |
| 6655 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 6656 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 6657 | # to version 4, is to share data among multiple programs linked |
| 6658 | # with the same dynamic library. Since this doesn't match the |
| 6659 | # behavior of shared libraries on other platforms, we can't use |
| 6660 | # them. |
| 6661 | ld_shlibs=no |
| 6662 | ;; |
| 6663 | |
| 6664 | beos*) |
| 6665 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6666 | allow_undefined_flag=unsupported |
| 6667 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 6668 | # support --undefined. This deserves some investigation. FIXME |
| 6669 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6670 | else |
| 6671 | ld_shlibs=no |
| 6672 | fi |
| 6673 | ;; |
| 6674 | |
| 6675 | cygwin* | mingw* | pw32*) |
| 6676 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 6677 | # as there is no search path for DLLs. |
| 6678 | hardcode_libdir_flag_spec='-L$libdir' |
| 6679 | allow_undefined_flag=unsupported |
| 6680 | always_export_symbols=no |
| 6681 | enable_shared_with_static_runtimes=yes |
| 6682 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 6683 | |
| 6684 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 6685 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 6686 | # If the export-symbols file already is a .def file (1st line |
| 6687 | # is EXPORTS), use it as is; otherwise, prepend... |
| 6688 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 6689 | cp $export_symbols $output_objdir/$soname.def; |
| 6690 | else |
| 6691 | echo EXPORTS > $output_objdir/$soname.def; |
| 6692 | cat $export_symbols >> $output_objdir/$soname.def; |
| 6693 | fi~ |
| 6694 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 6695 | else |
| 6696 | ld_shlibs=no |
| 6697 | fi |
| 6698 | ;; |
| 6699 | |
| 6700 | netbsd*) |
| 6701 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 6702 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 6703 | wlarc= |
| 6704 | else |
| 6705 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6706 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6707 | fi |
| 6708 | ;; |
| 6709 | |
| 6710 | solaris* | sysv5*) |
| 6711 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 6712 | ld_shlibs=no |
| 6713 | cat <<EOF 1>&2 |
| 6714 | |
| 6715 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 6716 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 6717 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 6718 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 6719 | *** your PATH or compiler configuration so that the native linker is |
| 6720 | *** used, and then restart. |
| 6721 | |
| 6722 | EOF |
| 6723 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6724 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6725 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6726 | else |
| 6727 | ld_shlibs=no |
| 6728 | fi |
| 6729 | ;; |
| 6730 | |
| 6731 | sunos4*) |
| 6732 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6733 | wlarc= |
| 6734 | hardcode_direct=yes |
| 6735 | hardcode_shlibpath_var=no |
| 6736 | ;; |
| 6737 | |
| 6738 | *) |
| 6739 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6740 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6741 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6742 | else |
| 6743 | ld_shlibs=no |
| 6744 | fi |
| 6745 | ;; |
| 6746 | esac |
| 6747 | |
| 6748 | if test "$ld_shlibs" = yes; then |
| 6749 | runpath_var=LD_RUN_PATH |
| 6750 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 6751 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 6752 | # ancient GNU ld didn't support --whole-archive et. al. |
| 6753 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 6754 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 6755 | else |
| 6756 | whole_archive_flag_spec= |
| 6757 | fi |
| 6758 | fi |
| 6759 | else |
| 6760 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 6761 | case $host_os in |
| 6762 | aix3*) |
| 6763 | allow_undefined_flag=unsupported |
| 6764 | always_export_symbols=yes |
| 6765 | 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' |
| 6766 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 6767 | # are no directories specified by -L. |
| 6768 | hardcode_minus_L=yes |
| 6769 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 6770 | # Neither direct hardcoding nor static linking is supported with a |
| 6771 | # broken collect2. |
| 6772 | hardcode_direct=unsupported |
| 6773 | fi |
| 6774 | ;; |
| 6775 | |
| 6776 | aix4* | aix5*) |
| 6777 | if test "$host_cpu" = ia64; then |
| 6778 | # On IA64, the linker does run time linking by default, so we don't |
| 6779 | # have to do anything special. |
| 6780 | aix_use_runtimelinking=no |
| 6781 | exp_sym_flag='-Bexport' |
| 6782 | no_entry_flag="" |
| 6783 | else |
| 6784 | # If we're using GNU nm, then we don't want the "-C" option. |
| 6785 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 6786 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 6787 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 6788 | else |
| 6789 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 6790 | fi |
| 6791 | aix_use_runtimelinking=no |
| 6792 | |
| 6793 | # Test if we are trying to use run time linking or normal |
| 6794 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 6795 | # need to do runtime linking. |
| 6796 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 6797 | for ld_flag in $LDFLAGS; do |
| 6798 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 6799 | aix_use_runtimelinking=yes |
| 6800 | break |
| 6801 | fi |
| 6802 | done |
| 6803 | esac |
| 6804 | |
| 6805 | exp_sym_flag='-bexport' |
| 6806 | no_entry_flag='-bnoentry' |
| 6807 | fi |
| 6808 | |
| 6809 | # When large executables or shared objects are built, AIX ld can |
| 6810 | # have problems creating the table of contents. If linking a library |
| 6811 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 6812 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 6813 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 6814 | |
| 6815 | archive_cmds='' |
| 6816 | hardcode_direct=yes |
| 6817 | hardcode_libdir_separator=':' |
| 6818 | link_all_deplibs=yes |
| 6819 | |
| 6820 | if test "$GCC" = yes; then |
| 6821 | case $host_os in aix4.012|aix4.012.*) |
| 6822 | # We only want to do this on AIX 4.2 and lower, the check |
| 6823 | # below for broken collect2 doesn't work under 4.3+ |
| 6824 | collect2name=`${CC} -print-prog-name=collect2` |
| 6825 | if test -f "$collect2name" && \ |
| 6826 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 6827 | then |
| 6828 | # We have reworked collect2 |
| 6829 | hardcode_direct=yes |
| 6830 | else |
| 6831 | # We have old collect2 |
| 6832 | hardcode_direct=unsupported |
| 6833 | # It fails to find uninstalled libraries when the uninstalled |
| 6834 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 6835 | # to unsupported forces relinking |
| 6836 | hardcode_minus_L=yes |
| 6837 | hardcode_libdir_flag_spec='-L$libdir' |
| 6838 | hardcode_libdir_separator= |
| 6839 | fi |
| 6840 | esac |
| 6841 | shared_flag='-shared' |
| 6842 | else |
| 6843 | # not using gcc |
| 6844 | if test "$host_cpu" = ia64; then |
| 6845 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 6846 | # chokes on -Wl,-G. The following line is correct: |
| 6847 | shared_flag='-G' |
| 6848 | else |
| 6849 | if test "$aix_use_runtimelinking" = yes; then |
| 6850 | shared_flag='${wl}-G' |
| 6851 | else |
| 6852 | shared_flag='${wl}-bM:SRE' |
| 6853 | fi |
| 6854 | fi |
| 6855 | fi |
| 6856 | |
| 6857 | # It seems that -bexpall does not export symbols beginning with |
| 6858 | # underscore (_), so it is better to generate a list of symbols to export. |
| 6859 | always_export_symbols=yes |
| 6860 | if test "$aix_use_runtimelinking" = yes; then |
| 6861 | # Warning - without using the other runtime loading flags (-brtl), |
| 6862 | # -berok will link without error, but may produce a broken library. |
| 6863 | allow_undefined_flag='-berok' |
| 6864 | # Determine the default libpath from the value encoded in an empty executable. |
| 6865 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6866 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6867 | /* confdefs.h. */ |
| 6868 | _ACEOF |
| 6869 | cat confdefs.h >>conftest.$ac_ext |
| 6870 | cat >>conftest.$ac_ext <<_ACEOF |
| 6871 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6872 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6873 | int |
| 6874 | main () |
| 6875 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6876 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6877 | ; |
| 6878 | return 0; |
| 6879 | } |
| 6880 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6881 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6882 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6883 | (eval $ac_link) 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6884 | ac_status=$? |
| 6885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6886 | (exit $ac_status); } && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6887 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6889 | (eval $ac_try) 2>&5 |
| 6890 | ac_status=$? |
| 6891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6892 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6893 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6894 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 6895 | }'` |
| 6896 | # Check for a 64-bit object if we didn't find anything. |
| 6897 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 6898 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6899 | else |
| 6900 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6902 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6903 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6904 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6905 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6906 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6907 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 6908 | 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" |
| 6909 | else |
| 6910 | if test "$host_cpu" = ia64; then |
| 6911 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 6912 | allow_undefined_flag="-z nodefs" |
| 6913 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 6914 | else |
| 6915 | # Determine the default libpath from the value encoded in an empty executable. |
| 6916 | cat >conftest.$ac_ext <<_ACEOF |
| 6917 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6918 | /* confdefs.h. */ |
| 6919 | _ACEOF |
| 6920 | cat confdefs.h >>conftest.$ac_ext |
| 6921 | cat >>conftest.$ac_ext <<_ACEOF |
| 6922 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6923 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6924 | int |
| 6925 | main () |
| 6926 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6927 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6928 | ; |
| 6929 | return 0; |
| 6930 | } |
| 6931 | _ACEOF |
| 6932 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6934 | (eval $ac_link) 2>&5 |
| 6935 | ac_status=$? |
| 6936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6937 | (exit $ac_status); } && |
| 6938 | { ac_try='test -s conftest$ac_exeext' |
| 6939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6940 | (eval $ac_try) 2>&5 |
| 6941 | ac_status=$? |
| 6942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6943 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6944 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6945 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 6946 | }'` |
| 6947 | # Check for a 64-bit object if we didn't find anything. |
| 6948 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 6949 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6950 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6951 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6953 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6954 | fi |
| 6955 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6956 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6957 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6958 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 6959 | # Warning - without using the other run time loading flags, |
| 6960 | # -berok will link without error, but may produce a broken library. |
| 6961 | no_undefined_flag=' ${wl}-bernotok' |
| 6962 | allow_undefined_flag=' ${wl}-berok' |
| 6963 | # -bexpall does not export symbols beginning with underscore (_) |
| 6964 | always_export_symbols=yes |
| 6965 | # Exported symbols can be pulled into shared objects from archives |
| 6966 | whole_archive_flag_spec=' ' |
| 6967 | archive_cmds_need_lc=yes |
| 6968 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 6969 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6970 | fi |
| 6971 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6972 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6973 | |
| 6974 | amigaos*) |
| 6975 | 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)' |
| 6976 | hardcode_libdir_flag_spec='-L$libdir' |
| 6977 | hardcode_minus_L=yes |
| 6978 | # see comment about different semantics on the GNU ld section |
| 6979 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6980 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6981 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6982 | bsdi4*) |
| 6983 | export_dynamic_flag_spec=-rdynamic |
| 6984 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6985 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6986 | cygwin* | mingw* | pw32*) |
| 6987 | # When not using gcc, we currently assume that we are using |
| 6988 | # Microsoft Visual C++. |
| 6989 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 6990 | # no search path for DLLs. |
| 6991 | hardcode_libdir_flag_spec=' ' |
| 6992 | allow_undefined_flag=unsupported |
| 6993 | # Tell ltmain to make .lib files, not .a files. |
| 6994 | libext=lib |
| 6995 | # Tell ltmain to make .dll files, not .so files. |
| 6996 | shrext=".dll" |
| 6997 | # FIXME: Setting linknames here is a bad hack. |
| 6998 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 6999 | # The linker will automatically build a .lib file if we build a DLL. |
| 7000 | old_archive_From_new_cmds='true' |
| 7001 | # FIXME: Should let the user specify the lib program. |
| 7002 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 7003 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 7004 | enable_shared_with_static_runtimes=yes |
| 7005 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7006 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7007 | darwin* | rhapsody*) |
| 7008 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 7009 | archive_cmds_need_lc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7010 | case "$host_os" in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7011 | rhapsody* | darwin1.[012]) |
| 7012 | allow_undefined_flag='-undefined suppress' |
| 7013 | ;; |
| 7014 | *) # Darwin 1.3 on |
| 7015 | test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7016 | ;; |
| 7017 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7018 | # FIXME: Relying on posixy $() will cause problems for |
| 7019 | # cross-compilation, but unfortunately the echo tests do not |
| 7020 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles |
| 7021 | # `"' quotes if we put them in here... so don't! |
| 7022 | lt_int_apple_cc_single_mod=no |
| 7023 | output_verbose_link_cmd='echo' |
| 7024 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 7025 | lt_int_apple_cc_single_mod=yes |
| 7026 | fi |
| 7027 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 7028 | archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 7029 | else |
| 7030 | archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 7031 | fi |
| 7032 | module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
| 7033 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 7034 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 7035 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7036 | else |
| 7037 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7038 | fi |
| 7039 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7040 | hardcode_direct=no |
| 7041 | hardcode_automatic=yes |
| 7042 | hardcode_shlibpath_var=unsupported |
| 7043 | whole_archive_flag_spec='-all_load $convenience' |
| 7044 | link_all_deplibs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7045 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7046 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7047 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7048 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7049 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7050 | hardcode_libdir_flag_spec='-L$libdir' |
| 7051 | hardcode_shlibpath_var=no |
| 7052 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7053 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7054 | freebsd1*) |
| 7055 | ld_shlibs=no |
| 7056 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7057 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7058 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 7059 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 7060 | # does not break anything, and helps significantly (at the cost of a little |
| 7061 | # extra space). |
| 7062 | freebsd2.2*) |
| 7063 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 7064 | hardcode_libdir_flag_spec='-R$libdir' |
| 7065 | hardcode_direct=yes |
| 7066 | hardcode_shlibpath_var=no |
| 7067 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7068 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7069 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 7070 | freebsd2*) |
| 7071 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7072 | hardcode_direct=yes |
| 7073 | hardcode_minus_L=yes |
| 7074 | hardcode_shlibpath_var=no |
| 7075 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7076 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7077 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 7078 | freebsd*) |
| 7079 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 7080 | hardcode_libdir_flag_spec='-R$libdir' |
| 7081 | hardcode_direct=yes |
| 7082 | hardcode_shlibpath_var=no |
| 7083 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7084 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7085 | hpux9*) |
| 7086 | if test "$GCC" = yes; then |
| 7087 | archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 7088 | else |
| 7089 | 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' |
| 7090 | fi |
| 7091 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7092 | hardcode_libdir_separator=: |
| 7093 | hardcode_direct=yes |
| 7094 | |
| 7095 | # hardcode_minus_L: Not really in the search PATH, |
| 7096 | # but as the default location of the library. |
| 7097 | hardcode_minus_L=yes |
| 7098 | export_dynamic_flag_spec='${wl}-E' |
| 7099 | ;; |
| 7100 | |
| 7101 | hpux10* | hpux11*) |
| 7102 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 7103 | case "$host_cpu" in |
| 7104 | hppa*64*|ia64*) |
| 7105 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7106 | ;; |
| 7107 | *) |
| 7108 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 7109 | ;; |
| 7110 | esac |
| 7111 | else |
| 7112 | case "$host_cpu" in |
| 7113 | hppa*64*|ia64*) |
| 7114 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7115 | ;; |
| 7116 | *) |
| 7117 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 7118 | ;; |
| 7119 | esac |
| 7120 | fi |
| 7121 | if test "$with_gnu_ld" = no; then |
| 7122 | case "$host_cpu" in |
| 7123 | hppa*64*) |
| 7124 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7125 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 7126 | hardcode_libdir_separator=: |
| 7127 | hardcode_direct=no |
| 7128 | hardcode_shlibpath_var=no |
| 7129 | ;; |
| 7130 | ia64*) |
| 7131 | hardcode_libdir_flag_spec='-L$libdir' |
| 7132 | hardcode_direct=no |
| 7133 | hardcode_shlibpath_var=no |
| 7134 | |
| 7135 | # hardcode_minus_L: Not really in the search PATH, |
| 7136 | # but as the default location of the library. |
| 7137 | hardcode_minus_L=yes |
| 7138 | ;; |
| 7139 | *) |
| 7140 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7141 | hardcode_libdir_separator=: |
| 7142 | hardcode_direct=yes |
| 7143 | export_dynamic_flag_spec='${wl}-E' |
| 7144 | |
| 7145 | # hardcode_minus_L: Not really in the search PATH, |
| 7146 | # but as the default location of the library. |
| 7147 | hardcode_minus_L=yes |
| 7148 | ;; |
| 7149 | esac |
| 7150 | fi |
| 7151 | ;; |
| 7152 | |
| 7153 | irix5* | irix6* | nonstopux*) |
| 7154 | if test "$GCC" = yes; then |
| 7155 | 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' |
| 7156 | else |
| 7157 | 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' |
| 7158 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 7159 | fi |
| 7160 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7161 | hardcode_libdir_separator=: |
| 7162 | link_all_deplibs=yes |
| 7163 | ;; |
| 7164 | |
| 7165 | netbsd*) |
| 7166 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 7167 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 7168 | else |
| 7169 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 7170 | fi |
| 7171 | hardcode_libdir_flag_spec='-R$libdir' |
| 7172 | hardcode_direct=yes |
| 7173 | hardcode_shlibpath_var=no |
| 7174 | ;; |
| 7175 | |
| 7176 | newsos6) |
| 7177 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7178 | hardcode_direct=yes |
| 7179 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7180 | hardcode_libdir_separator=: |
| 7181 | hardcode_shlibpath_var=no |
| 7182 | ;; |
| 7183 | |
| 7184 | openbsd*) |
| 7185 | hardcode_direct=yes |
| 7186 | hardcode_shlibpath_var=no |
| 7187 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 7188 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 7189 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7190 | export_dynamic_flag_spec='${wl}-E' |
| 7191 | else |
| 7192 | case $host_os in |
| 7193 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 7194 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7195 | hardcode_libdir_flag_spec='-R$libdir' |
| 7196 | ;; |
| 7197 | *) |
| 7198 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 7199 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7200 | ;; |
| 7201 | esac |
| 7202 | fi |
| 7203 | ;; |
| 7204 | |
| 7205 | os2*) |
| 7206 | hardcode_libdir_flag_spec='-L$libdir' |
| 7207 | hardcode_minus_L=yes |
| 7208 | allow_undefined_flag=unsupported |
| 7209 | 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' |
| 7210 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 7211 | ;; |
| 7212 | |
| 7213 | osf3*) |
| 7214 | if test "$GCC" = yes; then |
| 7215 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 7216 | 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' |
| 7217 | else |
| 7218 | allow_undefined_flag=' -expect_unresolved \*' |
| 7219 | 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' |
| 7220 | fi |
| 7221 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7222 | hardcode_libdir_separator=: |
| 7223 | ;; |
| 7224 | |
| 7225 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 7226 | if test "$GCC" = yes; then |
| 7227 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 7228 | 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' |
| 7229 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7230 | else |
| 7231 | allow_undefined_flag=' -expect_unresolved \*' |
| 7232 | 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' |
| 7233 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 7234 | $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' |
| 7235 | |
| 7236 | # Both c and cxx compiler support -rpath directly |
| 7237 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 7238 | fi |
| 7239 | hardcode_libdir_separator=: |
| 7240 | ;; |
| 7241 | |
| 7242 | sco3.2v5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7243 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7244 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7245 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7246 | runpath_var=LD_RUN_PATH |
| 7247 | hardcode_runpath_var=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7248 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7249 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7250 | solaris*) |
| 7251 | no_undefined_flag=' -z text' |
| 7252 | if test "$GCC" = yes; then |
| 7253 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7254 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 7255 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 7256 | else |
| 7257 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7258 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 7259 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 7260 | fi |
| 7261 | hardcode_libdir_flag_spec='-R$libdir' |
| 7262 | hardcode_shlibpath_var=no |
| 7263 | case $host_os in |
| 7264 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 7265 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 7266 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 7267 | esac |
| 7268 | link_all_deplibs=yes |
| 7269 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7270 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7271 | sunos4*) |
| 7272 | if test "x$host_vendor" = xsequent; then |
| 7273 | # Use $CC to link under sequent, because it throws in some extra .o |
| 7274 | # files that make .init and .fini sections work. |
| 7275 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7276 | else |
| 7277 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 7278 | fi |
| 7279 | hardcode_libdir_flag_spec='-L$libdir' |
| 7280 | hardcode_direct=yes |
| 7281 | hardcode_minus_L=yes |
| 7282 | hardcode_shlibpath_var=no |
| 7283 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7284 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7285 | sysv4) |
| 7286 | case $host_vendor in |
| 7287 | sni) |
| 7288 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7289 | hardcode_direct=yes # is this really true??? |
| 7290 | ;; |
| 7291 | siemens) |
| 7292 | ## LD is ld it makes a PLAMLIB |
| 7293 | ## CC just makes a GrossModule. |
| 7294 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 7295 | reload_cmds='$CC -r -o $output$reload_objs' |
| 7296 | hardcode_direct=no |
| 7297 | ;; |
| 7298 | motorola) |
| 7299 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7300 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 7301 | ;; |
| 7302 | esac |
| 7303 | runpath_var='LD_RUN_PATH' |
| 7304 | hardcode_shlibpath_var=no |
| 7305 | ;; |
| 7306 | |
| 7307 | sysv4.3*) |
| 7308 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7309 | hardcode_shlibpath_var=no |
| 7310 | export_dynamic_flag_spec='-Bexport' |
| 7311 | ;; |
| 7312 | |
| 7313 | sysv4*MP*) |
| 7314 | if test -d /usr/nec; then |
| 7315 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7316 | hardcode_shlibpath_var=no |
| 7317 | runpath_var=LD_RUN_PATH |
| 7318 | hardcode_runpath_var=yes |
| 7319 | ld_shlibs=yes |
| 7320 | fi |
| 7321 | ;; |
| 7322 | |
| 7323 | sysv4.2uw2*) |
| 7324 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 7325 | hardcode_direct=yes |
| 7326 | hardcode_minus_L=no |
| 7327 | hardcode_shlibpath_var=no |
| 7328 | hardcode_runpath_var=yes |
| 7329 | runpath_var=LD_RUN_PATH |
| 7330 | ;; |
| 7331 | |
| 7332 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 7333 | no_undefined_flag='${wl}-z ${wl}text' |
| 7334 | if test "$GCC" = yes; then |
| 7335 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7336 | else |
| 7337 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7338 | fi |
| 7339 | runpath_var='LD_RUN_PATH' |
| 7340 | hardcode_shlibpath_var=no |
| 7341 | ;; |
| 7342 | |
| 7343 | sysv5*) |
| 7344 | no_undefined_flag=' -z text' |
| 7345 | # $CC -shared without GNU ld will not create a library from C++ |
| 7346 | # object files and a static libstdc++, better avoid it by now |
| 7347 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7348 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 7349 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 7350 | hardcode_libdir_flag_spec= |
| 7351 | hardcode_shlibpath_var=no |
| 7352 | runpath_var='LD_RUN_PATH' |
| 7353 | ;; |
| 7354 | |
| 7355 | uts4*) |
| 7356 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7357 | hardcode_libdir_flag_spec='-L$libdir' |
| 7358 | hardcode_shlibpath_var=no |
| 7359 | ;; |
| 7360 | |
| 7361 | *) |
| 7362 | ld_shlibs=no |
| 7363 | ;; |
| 7364 | esac |
| 7365 | fi |
| 7366 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7367 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 7368 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 7369 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7370 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7371 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 7372 | if test "$GCC" = yes; then |
| 7373 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 7374 | fi |
| 7375 | |
| 7376 | # |
| 7377 | # Do we need to explicitly link libc? |
| 7378 | # |
| 7379 | case "x$archive_cmds_need_lc" in |
| 7380 | x|xyes) |
| 7381 | # Assume -lc should be added |
| 7382 | archive_cmds_need_lc=yes |
| 7383 | |
| 7384 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 7385 | case $archive_cmds in |
| 7386 | *'~'*) |
| 7387 | # FIXME: we may have to deal with multi-command sequences. |
| 7388 | ;; |
| 7389 | '$CC '*) |
| 7390 | # Test whether the compiler implicitly links with -lc since on some |
| 7391 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 7392 | # to ld, don't add -lc before -lgcc. |
| 7393 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 7394 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 7395 | $rm conftest* |
| 7396 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7397 | |
| 7398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7399 | (eval $ac_compile) 2>&5 |
| 7400 | ac_status=$? |
| 7401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7402 | (exit $ac_status); } 2>conftest.err; then |
| 7403 | soname=conftest |
| 7404 | lib=conftest |
| 7405 | libobjs=conftest.$ac_objext |
| 7406 | deplibs= |
| 7407 | wl=$lt_prog_compiler_wl |
| 7408 | compiler_flags=-v |
| 7409 | linker_flags=-v |
| 7410 | verstring= |
| 7411 | output_objdir=. |
| 7412 | libname=conftest |
| 7413 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 7414 | allow_undefined_flag= |
| 7415 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 7416 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 7417 | ac_status=$? |
| 7418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7419 | (exit $ac_status); } |
| 7420 | then |
| 7421 | archive_cmds_need_lc=no |
| 7422 | else |
| 7423 | archive_cmds_need_lc=yes |
| 7424 | fi |
| 7425 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 7426 | else |
| 7427 | cat conftest.err 1>&5 |
| 7428 | fi |
| 7429 | $rm conftest* |
| 7430 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 7431 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
| 7432 | ;; |
| 7433 | esac |
| 7434 | fi |
| 7435 | ;; |
| 7436 | esac |
| 7437 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7438 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 7439 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 7440 | hardcode_action= |
| 7441 | if test -n "$hardcode_libdir_flag_spec" || \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7442 | test -n "$runpath_var " || \ |
| 7443 | test "X$hardcode_automatic"="Xyes" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7444 | |
| 7445 | # We can hardcode non-existant directories. |
| 7446 | if test "$hardcode_direct" != no && |
| 7447 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 7448 | # have to relink, otherwise we might link with an installed library |
| 7449 | # when we should be linking with a yet-to-be-installed one |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7450 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7451 | test "$hardcode_minus_L" != no; then |
| 7452 | # Linking always hardcodes the temporary library directory. |
| 7453 | hardcode_action=relink |
| 7454 | else |
| 7455 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 7456 | hardcode_action=immediate |
| 7457 | fi |
| 7458 | else |
| 7459 | # We cannot hardcode anything, or else we can only hardcode existing |
| 7460 | # directories. |
| 7461 | hardcode_action=unsupported |
| 7462 | fi |
| 7463 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 7464 | echo "${ECHO_T}$hardcode_action" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7465 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7466 | if test "$hardcode_action" = relink; then |
| 7467 | # Fast installation is not supported |
| 7468 | enable_fast_install=no |
| 7469 | elif test "$shlibpath_overrides_runpath" = yes || |
| 7470 | test "$enable_shared" = no; then |
| 7471 | # Fast installation is not necessary |
| 7472 | enable_fast_install=needless |
| 7473 | fi |
| 7474 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7475 | striplib= |
| 7476 | old_striplib= |
| 7477 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 7478 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 7479 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 7480 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 7481 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 7482 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7483 | echo "${ECHO_T}yes" >&6 |
| 7484 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7485 | # FIXME - insert some real tests, host_os isn't really good enough |
| 7486 | case $host_os in |
| 7487 | darwin*) |
| 7488 | if test -n "$STRIP" ; then |
| 7489 | striplib="$STRIP -x" |
| 7490 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7491 | echo "${ECHO_T}yes" >&6 |
| 7492 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7493 | echo "$as_me:$LINENO: result: no" >&5 |
| 7494 | echo "${ECHO_T}no" >&6 |
| 7495 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7496 | ;; |
| 7497 | *) |
| 7498 | echo "$as_me:$LINENO: result: no" >&5 |
| 7499 | echo "${ECHO_T}no" >&6 |
| 7500 | ;; |
| 7501 | esac |
| 7502 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7503 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7504 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 7505 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 7506 | library_names_spec= |
| 7507 | libname_spec='lib$name' |
| 7508 | soname_spec= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7509 | shrext=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7510 | postinstall_cmds= |
| 7511 | postuninstall_cmds= |
| 7512 | finish_cmds= |
| 7513 | finish_eval= |
| 7514 | shlibpath_var= |
| 7515 | shlibpath_overrides_runpath=unknown |
| 7516 | version_type=none |
| 7517 | dynamic_linker="$host_os ld.so" |
| 7518 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7519 | if test "$GCC" = yes; then |
| 7520 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 7521 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 7522 | # if the path contains ";" then we assume it to be the separator |
| 7523 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 7524 | # assumed that no part of a normal pathname contains ";" but that should |
| 7525 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 7526 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 7527 | else |
| 7528 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 7529 | fi |
| 7530 | else |
| 7531 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 7532 | fi |
| 7533 | need_lib_prefix=unknown |
| 7534 | hardcode_into_libs=no |
| 7535 | |
| 7536 | # when you set need_version to no, make sure it does not cause -set_version |
| 7537 | # flags to be left without arguments |
| 7538 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7539 | |
| 7540 | case $host_os in |
| 7541 | aix3*) |
| 7542 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7543 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7544 | shlibpath_var=LIBPATH |
| 7545 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7546 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 7547 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7548 | ;; |
| 7549 | |
| 7550 | aix4* | aix5*) |
| 7551 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7552 | need_lib_prefix=no |
| 7553 | need_version=no |
| 7554 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7555 | if test "$host_cpu" = ia64; then |
| 7556 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7557 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7558 | shlibpath_var=LD_LIBRARY_PATH |
| 7559 | else |
| 7560 | # With GCC up to 2.95.x, collect2 would create an import file |
| 7561 | # for dependence libraries. The import file would start with |
| 7562 | # the line `#! .'. This would cause the generated library to |
| 7563 | # depend on `.', always an invalid library. This was fixed in |
| 7564 | # development snapshots of GCC prior to 3.0. |
| 7565 | case $host_os in |
| 7566 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7567 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 7568 | echo ' yes ' |
| 7569 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 7570 | : |
| 7571 | else |
| 7572 | can_build_shared=no |
| 7573 | fi |
| 7574 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7575 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7576 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 7577 | # soname into executable. Probably we can add versioning support to |
| 7578 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7579 | if test "$aix_use_runtimelinking" = yes; then |
| 7580 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 7581 | # instead of lib<name>.a to let people know that these are not |
| 7582 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7583 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7584 | else |
| 7585 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 7586 | # and later when we are not doing run time linking. |
| 7587 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7588 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7589 | fi |
| 7590 | shlibpath_var=LIBPATH |
| 7591 | fi |
| 7592 | ;; |
| 7593 | |
| 7594 | amigaos*) |
| 7595 | library_names_spec='$libname.ixlibrary $libname.a' |
| 7596 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 7597 | 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' |
| 7598 | ;; |
| 7599 | |
| 7600 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7601 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7602 | dynamic_linker="$host_os ld.so" |
| 7603 | shlibpath_var=LIBRARY_PATH |
| 7604 | ;; |
| 7605 | |
| 7606 | bsdi4*) |
| 7607 | version_type=linux |
| 7608 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7609 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7610 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7611 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 7612 | shlibpath_var=LD_LIBRARY_PATH |
| 7613 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 7614 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7615 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 7616 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 7617 | # libtool to hard-code these into programs |
| 7618 | ;; |
| 7619 | |
| 7620 | cygwin* | mingw* | pw32*) |
| 7621 | version_type=windows |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7622 | shrext=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7623 | need_version=no |
| 7624 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7625 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7626 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7627 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7628 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7629 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 7630 | postinstall_cmds='base_file=`basename \${file}`~ |
| 7631 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7632 | dldir=$destdir/`dirname \$dlpath`~ |
| 7633 | test -d \$dldir || mkdir -p \$dldir~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7634 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 7635 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7636 | dlpath=$dir/\$dldll~ |
| 7637 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7638 | shlibpath_overrides_runpath=yes |
| 7639 | |
| 7640 | case $host_os in |
| 7641 | cygwin*) |
| 7642 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 7643 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 7644 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" |
| 7645 | ;; |
| 7646 | mingw*) |
| 7647 | # MinGW DLLs use traditional 'lib' prefix |
| 7648 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 7649 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 7650 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 7651 | # It is most probably a Windows format PATH printed by |
| 7652 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 7653 | # path with ; separators, and with drive letters. We can handle the |
| 7654 | # drive letters (cygwin fileutils understands them), so leave them, |
| 7655 | # especially as we might pass files found there to a mingw objdump, |
| 7656 | # which wouldn't understand a cygwinified path. Ahh. |
| 7657 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 7658 | else |
| 7659 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 7660 | fi |
| 7661 | ;; |
| 7662 | pw32*) |
| 7663 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 7664 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 7665 | ;; |
| 7666 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7667 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7668 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7669 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7670 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7671 | ;; |
| 7672 | esac |
| 7673 | dynamic_linker='Win32 ld.exe' |
| 7674 | # FIXME: first we should search . and the directory the executable is in |
| 7675 | shlibpath_var=PATH |
| 7676 | ;; |
| 7677 | |
| 7678 | darwin* | rhapsody*) |
| 7679 | dynamic_linker="$host_os dyld" |
| 7680 | version_type=darwin |
| 7681 | need_lib_prefix=no |
| 7682 | need_version=no |
| 7683 | # FIXME: Relying on posixy $() will cause problems for |
| 7684 | # cross-compilation, but unfortunately the echo tests do not |
| 7685 | # yet detect zsh echo's removal of \ escapes. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7686 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 7687 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7688 | shlibpath_overrides_runpath=yes |
| 7689 | shlibpath_var=DYLD_LIBRARY_PATH |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7690 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 7691 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 7692 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 7693 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 7694 | fi |
| 7695 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 7696 | ;; |
| 7697 | |
| 7698 | dgux*) |
| 7699 | version_type=linux |
| 7700 | need_lib_prefix=no |
| 7701 | need_version=no |
| 7702 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 7703 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7704 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7705 | ;; |
| 7706 | |
| 7707 | freebsd1*) |
| 7708 | dynamic_linker=no |
| 7709 | ;; |
| 7710 | |
| 7711 | freebsd*) |
| 7712 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 7713 | version_type=freebsd-$objformat |
| 7714 | case $version_type in |
| 7715 | freebsd-elf*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7716 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7717 | need_version=no |
| 7718 | need_lib_prefix=no |
| 7719 | ;; |
| 7720 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7721 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7722 | need_version=yes |
| 7723 | ;; |
| 7724 | esac |
| 7725 | shlibpath_var=LD_LIBRARY_PATH |
| 7726 | case $host_os in |
| 7727 | freebsd2*) |
| 7728 | shlibpath_overrides_runpath=yes |
| 7729 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7730 | freebsd3.01* | freebsdelf3.01*) |
| 7731 | shlibpath_overrides_runpath=yes |
| 7732 | hardcode_into_libs=yes |
| 7733 | ;; |
| 7734 | *) # from 3.2 on |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7735 | shlibpath_overrides_runpath=no |
| 7736 | hardcode_into_libs=yes |
| 7737 | ;; |
| 7738 | esac |
| 7739 | ;; |
| 7740 | |
| 7741 | gnu*) |
| 7742 | version_type=linux |
| 7743 | need_lib_prefix=no |
| 7744 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7745 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 7746 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7747 | shlibpath_var=LD_LIBRARY_PATH |
| 7748 | hardcode_into_libs=yes |
| 7749 | ;; |
| 7750 | |
| 7751 | hpux9* | hpux10* | hpux11*) |
| 7752 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 7753 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7754 | version_type=sunos |
| 7755 | need_lib_prefix=no |
| 7756 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7757 | case "$host_cpu" in |
| 7758 | ia64*) |
| 7759 | shrext='.so' |
| 7760 | hardcode_into_libs=yes |
| 7761 | dynamic_linker="$host_os dld.so" |
| 7762 | shlibpath_var=LD_LIBRARY_PATH |
| 7763 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 7764 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7765 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7766 | if test "X$HPUX_IA64_MODE" = X32; then |
| 7767 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 7768 | else |
| 7769 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 7770 | fi |
| 7771 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7772 | ;; |
| 7773 | hppa*64*) |
| 7774 | shrext='.sl' |
| 7775 | hardcode_into_libs=yes |
| 7776 | dynamic_linker="$host_os dld.sl" |
| 7777 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 7778 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 7779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7780 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7781 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 7782 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7783 | ;; |
| 7784 | *) |
| 7785 | shrext='.sl' |
| 7786 | dynamic_linker="$host_os dld.sl" |
| 7787 | shlibpath_var=SHLIB_PATH |
| 7788 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 7789 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7790 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7791 | ;; |
| 7792 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7793 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 7794 | postinstall_cmds='chmod 555 $lib' |
| 7795 | ;; |
| 7796 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7797 | irix5* | irix6* | nonstopux*) |
| 7798 | case $host_os in |
| 7799 | nonstopux*) version_type=nonstopux ;; |
| 7800 | *) |
| 7801 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 7802 | version_type=linux |
| 7803 | else |
| 7804 | version_type=irix |
| 7805 | fi ;; |
| 7806 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7807 | need_lib_prefix=no |
| 7808 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7809 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7810 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7811 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7812 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7813 | libsuff= shlibsuff= |
| 7814 | ;; |
| 7815 | *) |
| 7816 | case $LD in # libtool.m4 will add one of these switches to LD |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7817 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 7818 | libsuff= shlibsuff= libmagic=32-bit;; |
| 7819 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 7820 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 7821 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 7822 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7823 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 7824 | esac |
| 7825 | ;; |
| 7826 | esac |
| 7827 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 7828 | shlibpath_overrides_runpath=no |
| 7829 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 7830 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7831 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7832 | ;; |
| 7833 | |
| 7834 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7835 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7836 | dynamic_linker=no |
| 7837 | ;; |
| 7838 | |
| 7839 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7840 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7841 | version_type=linux |
| 7842 | need_lib_prefix=no |
| 7843 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7844 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7845 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7846 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 7847 | shlibpath_var=LD_LIBRARY_PATH |
| 7848 | shlibpath_overrides_runpath=no |
| 7849 | # This implies no fast_install, which is unacceptable. |
| 7850 | # Some rework will be needed to allow for fast_install |
| 7851 | # before this can be enabled. |
| 7852 | hardcode_into_libs=yes |
| 7853 | |
| 7854 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 7855 | # powerpc, because MkLinux only supported shared libraries with the |
| 7856 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 7857 | # most powerpc-linux boxes support dynamic linking these days and |
| 7858 | # people can always --disable-shared, the test was removed, and we |
| 7859 | # assume the GNU/Linux dynamic linker is in use. |
| 7860 | dynamic_linker='GNU/Linux ld.so' |
| 7861 | ;; |
| 7862 | |
| 7863 | netbsd*) |
| 7864 | version_type=sunos |
| 7865 | need_lib_prefix=no |
| 7866 | need_version=no |
| 7867 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7868 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7869 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7870 | dynamic_linker='NetBSD (a.out) ld.so' |
| 7871 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7872 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
| 7873 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7874 | dynamic_linker='NetBSD ld.elf_so' |
| 7875 | fi |
| 7876 | shlibpath_var=LD_LIBRARY_PATH |
| 7877 | shlibpath_overrides_runpath=yes |
| 7878 | hardcode_into_libs=yes |
| 7879 | ;; |
| 7880 | |
| 7881 | newsos6) |
| 7882 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7883 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7884 | shlibpath_var=LD_LIBRARY_PATH |
| 7885 | shlibpath_overrides_runpath=yes |
| 7886 | ;; |
| 7887 | |
| 7888 | nto-qnx) |
| 7889 | version_type=linux |
| 7890 | need_lib_prefix=no |
| 7891 | need_version=no |
| 7892 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7893 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7894 | shlibpath_var=LD_LIBRARY_PATH |
| 7895 | shlibpath_overrides_runpath=yes |
| 7896 | ;; |
| 7897 | |
| 7898 | openbsd*) |
| 7899 | version_type=sunos |
| 7900 | need_lib_prefix=no |
| 7901 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7902 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 7903 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7904 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7905 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7906 | case $host_os in |
| 7907 | openbsd2.[89] | openbsd2.[89].*) |
| 7908 | shlibpath_overrides_runpath=no |
| 7909 | ;; |
| 7910 | *) |
| 7911 | shlibpath_overrides_runpath=yes |
| 7912 | ;; |
| 7913 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7914 | else |
| 7915 | shlibpath_overrides_runpath=yes |
| 7916 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7917 | ;; |
| 7918 | |
| 7919 | os2*) |
| 7920 | libname_spec='$name' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7921 | shrext=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7922 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7923 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7924 | dynamic_linker='OS/2 ld.exe' |
| 7925 | shlibpath_var=LIBPATH |
| 7926 | ;; |
| 7927 | |
| 7928 | osf3* | osf4* | osf5*) |
| 7929 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7930 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7931 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7932 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7933 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7934 | shlibpath_var=LD_LIBRARY_PATH |
| 7935 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 7936 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 7937 | ;; |
| 7938 | |
| 7939 | sco3.2v5*) |
| 7940 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7941 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7942 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7943 | shlibpath_var=LD_LIBRARY_PATH |
| 7944 | ;; |
| 7945 | |
| 7946 | solaris*) |
| 7947 | version_type=linux |
| 7948 | need_lib_prefix=no |
| 7949 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7950 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7951 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7952 | shlibpath_var=LD_LIBRARY_PATH |
| 7953 | shlibpath_overrides_runpath=yes |
| 7954 | hardcode_into_libs=yes |
| 7955 | # ldd complains unless libraries are executable |
| 7956 | postinstall_cmds='chmod +x $lib' |
| 7957 | ;; |
| 7958 | |
| 7959 | sunos4*) |
| 7960 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7961 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7962 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 7963 | shlibpath_var=LD_LIBRARY_PATH |
| 7964 | shlibpath_overrides_runpath=yes |
| 7965 | if test "$with_gnu_ld" = yes; then |
| 7966 | need_lib_prefix=no |
| 7967 | fi |
| 7968 | need_version=yes |
| 7969 | ;; |
| 7970 | |
| 7971 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 7972 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7973 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7974 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7975 | shlibpath_var=LD_LIBRARY_PATH |
| 7976 | case $host_vendor in |
| 7977 | sni) |
| 7978 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7979 | need_lib_prefix=no |
| 7980 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 7981 | runpath_var=LD_RUN_PATH |
| 7982 | ;; |
| 7983 | siemens) |
| 7984 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7985 | ;; |
| 7986 | motorola) |
| 7987 | need_lib_prefix=no |
| 7988 | need_version=no |
| 7989 | shlibpath_overrides_runpath=no |
| 7990 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 7991 | ;; |
| 7992 | esac |
| 7993 | ;; |
| 7994 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7995 | sysv4*MP*) |
| 7996 | if test -d /usr/nec ;then |
| 7997 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7998 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 7999 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8000 | shlibpath_var=LD_LIBRARY_PATH |
| 8001 | fi |
| 8002 | ;; |
| 8003 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8004 | uts4*) |
| 8005 | version_type=linux |
| 8006 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8007 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8008 | shlibpath_var=LD_LIBRARY_PATH |
| 8009 | ;; |
| 8010 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8011 | *) |
| 8012 | dynamic_linker=no |
| 8013 | ;; |
| 8014 | esac |
| 8015 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 8016 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 8017 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8018 | |
| 8019 | if test "x$enable_dlopen" != xyes; then |
| 8020 | enable_dlopen=unknown |
| 8021 | enable_dlopen_self=unknown |
| 8022 | enable_dlopen_self_static=unknown |
| 8023 | else |
| 8024 | lt_cv_dlopen=no |
| 8025 | lt_cv_dlopen_libs= |
| 8026 | |
| 8027 | case $host_os in |
| 8028 | beos*) |
| 8029 | lt_cv_dlopen="load_add_on" |
| 8030 | lt_cv_dlopen_libs= |
| 8031 | lt_cv_dlopen_self=yes |
| 8032 | ;; |
| 8033 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8034 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8035 | lt_cv_dlopen="LoadLibrary" |
| 8036 | lt_cv_dlopen_libs= |
| 8037 | ;; |
| 8038 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8039 | cygwin*) |
| 8040 | lt_cv_dlopen="dlopen" |
| 8041 | lt_cv_dlopen_libs= |
| 8042 | ;; |
| 8043 | |
| 8044 | darwin*) |
| 8045 | # if libdl is installed we need to link against it |
| 8046 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 8047 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 8048 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 8049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8050 | else |
| 8051 | ac_check_lib_save_LIBS=$LIBS |
| 8052 | LIBS="-ldl $LIBS" |
| 8053 | cat >conftest.$ac_ext <<_ACEOF |
| 8054 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8055 | /* confdefs.h. */ |
| 8056 | _ACEOF |
| 8057 | cat confdefs.h >>conftest.$ac_ext |
| 8058 | cat >>conftest.$ac_ext <<_ACEOF |
| 8059 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8060 | |
| 8061 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8062 | #ifdef __cplusplus |
| 8063 | extern "C" |
| 8064 | #endif |
| 8065 | /* We use char because int might match the return type of a gcc2 |
| 8066 | builtin and then its argument prototype would still apply. */ |
| 8067 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8068 | int |
| 8069 | main () |
| 8070 | { |
| 8071 | dlopen (); |
| 8072 | ; |
| 8073 | return 0; |
| 8074 | } |
| 8075 | _ACEOF |
| 8076 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8078 | (eval $ac_link) 2>&5 |
| 8079 | ac_status=$? |
| 8080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8081 | (exit $ac_status); } && |
| 8082 | { ac_try='test -s conftest$ac_exeext' |
| 8083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8084 | (eval $ac_try) 2>&5 |
| 8085 | ac_status=$? |
| 8086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8087 | (exit $ac_status); }; }; then |
| 8088 | ac_cv_lib_dl_dlopen=yes |
| 8089 | else |
| 8090 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8092 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8093 | ac_cv_lib_dl_dlopen=no |
| 8094 | fi |
| 8095 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8096 | LIBS=$ac_check_lib_save_LIBS |
| 8097 | fi |
| 8098 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8099 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 8100 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 8101 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 8102 | else |
| 8103 | |
| 8104 | lt_cv_dlopen="dyld" |
| 8105 | lt_cv_dlopen_libs= |
| 8106 | lt_cv_dlopen_self=yes |
| 8107 | |
| 8108 | fi |
| 8109 | |
| 8110 | ;; |
| 8111 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8112 | *) |
| 8113 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 8114 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 8115 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 8116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8117 | else |
| 8118 | cat >conftest.$ac_ext <<_ACEOF |
| 8119 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8120 | /* confdefs.h. */ |
| 8121 | _ACEOF |
| 8122 | cat confdefs.h >>conftest.$ac_ext |
| 8123 | cat >>conftest.$ac_ext <<_ACEOF |
| 8124 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8125 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8126 | which can conflict with char shl_load (); below. |
| 8127 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8128 | <limits.h> exists even on freestanding compilers. */ |
| 8129 | #ifdef __STDC__ |
| 8130 | # include <limits.h> |
| 8131 | #else |
| 8132 | # include <assert.h> |
| 8133 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8134 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8135 | #ifdef __cplusplus |
| 8136 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8137 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8138 | #endif |
| 8139 | /* We use char because int might match the return type of a gcc2 |
| 8140 | builtin and then its argument prototype would still apply. */ |
| 8141 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8142 | /* The GNU C library defines this for functions which it implements |
| 8143 | to always fail with ENOSYS. Some functions are actually named |
| 8144 | something starting with __ and the normal name is an alias. */ |
| 8145 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 8146 | choke me |
| 8147 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8148 | char (*f) () = shl_load; |
| 8149 | #endif |
| 8150 | #ifdef __cplusplus |
| 8151 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8152 | #endif |
| 8153 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8154 | int |
| 8155 | main () |
| 8156 | { |
| 8157 | return f != shl_load; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8158 | ; |
| 8159 | return 0; |
| 8160 | } |
| 8161 | _ACEOF |
| 8162 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8163 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8164 | (eval $ac_link) 2>&5 |
| 8165 | ac_status=$? |
| 8166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8167 | (exit $ac_status); } && |
| 8168 | { ac_try='test -s conftest$ac_exeext' |
| 8169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8170 | (eval $ac_try) 2>&5 |
| 8171 | ac_status=$? |
| 8172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8173 | (exit $ac_status); }; }; then |
| 8174 | ac_cv_func_shl_load=yes |
| 8175 | else |
| 8176 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8178 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8179 | ac_cv_func_shl_load=no |
| 8180 | fi |
| 8181 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8182 | fi |
| 8183 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 8184 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 8185 | if test $ac_cv_func_shl_load = yes; then |
| 8186 | lt_cv_dlopen="shl_load" |
| 8187 | else |
| 8188 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 8189 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 8190 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 8191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8192 | else |
| 8193 | ac_check_lib_save_LIBS=$LIBS |
| 8194 | LIBS="-ldld $LIBS" |
| 8195 | cat >conftest.$ac_ext <<_ACEOF |
| 8196 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8197 | /* confdefs.h. */ |
| 8198 | _ACEOF |
| 8199 | cat confdefs.h >>conftest.$ac_ext |
| 8200 | cat >>conftest.$ac_ext <<_ACEOF |
| 8201 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8202 | |
| 8203 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8204 | #ifdef __cplusplus |
| 8205 | extern "C" |
| 8206 | #endif |
| 8207 | /* We use char because int might match the return type of a gcc2 |
| 8208 | builtin and then its argument prototype would still apply. */ |
| 8209 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8210 | int |
| 8211 | main () |
| 8212 | { |
| 8213 | shl_load (); |
| 8214 | ; |
| 8215 | return 0; |
| 8216 | } |
| 8217 | _ACEOF |
| 8218 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8219 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8220 | (eval $ac_link) 2>&5 |
| 8221 | ac_status=$? |
| 8222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8223 | (exit $ac_status); } && |
| 8224 | { ac_try='test -s conftest$ac_exeext' |
| 8225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8226 | (eval $ac_try) 2>&5 |
| 8227 | ac_status=$? |
| 8228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8229 | (exit $ac_status); }; }; then |
| 8230 | ac_cv_lib_dld_shl_load=yes |
| 8231 | else |
| 8232 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8234 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8235 | ac_cv_lib_dld_shl_load=no |
| 8236 | fi |
| 8237 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8238 | LIBS=$ac_check_lib_save_LIBS |
| 8239 | fi |
| 8240 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 8241 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 8242 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 8243 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 8244 | else |
| 8245 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 8246 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 8247 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 8248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8249 | else |
| 8250 | cat >conftest.$ac_ext <<_ACEOF |
| 8251 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8252 | /* confdefs.h. */ |
| 8253 | _ACEOF |
| 8254 | cat confdefs.h >>conftest.$ac_ext |
| 8255 | cat >>conftest.$ac_ext <<_ACEOF |
| 8256 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8257 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8258 | which can conflict with char dlopen (); below. |
| 8259 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8260 | <limits.h> exists even on freestanding compilers. */ |
| 8261 | #ifdef __STDC__ |
| 8262 | # include <limits.h> |
| 8263 | #else |
| 8264 | # include <assert.h> |
| 8265 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8266 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8267 | #ifdef __cplusplus |
| 8268 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8269 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8270 | #endif |
| 8271 | /* We use char because int might match the return type of a gcc2 |
| 8272 | builtin and then its argument prototype would still apply. */ |
| 8273 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8274 | /* The GNU C library defines this for functions which it implements |
| 8275 | to always fail with ENOSYS. Some functions are actually named |
| 8276 | something starting with __ and the normal name is an alias. */ |
| 8277 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 8278 | choke me |
| 8279 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8280 | char (*f) () = dlopen; |
| 8281 | #endif |
| 8282 | #ifdef __cplusplus |
| 8283 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8284 | #endif |
| 8285 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8286 | int |
| 8287 | main () |
| 8288 | { |
| 8289 | return f != dlopen; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8290 | ; |
| 8291 | return 0; |
| 8292 | } |
| 8293 | _ACEOF |
| 8294 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8296 | (eval $ac_link) 2>&5 |
| 8297 | ac_status=$? |
| 8298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8299 | (exit $ac_status); } && |
| 8300 | { ac_try='test -s conftest$ac_exeext' |
| 8301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8302 | (eval $ac_try) 2>&5 |
| 8303 | ac_status=$? |
| 8304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8305 | (exit $ac_status); }; }; then |
| 8306 | ac_cv_func_dlopen=yes |
| 8307 | else |
| 8308 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8310 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8311 | ac_cv_func_dlopen=no |
| 8312 | fi |
| 8313 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8314 | fi |
| 8315 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 8316 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 8317 | if test $ac_cv_func_dlopen = yes; then |
| 8318 | lt_cv_dlopen="dlopen" |
| 8319 | else |
| 8320 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 8321 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 8322 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 8323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8324 | else |
| 8325 | ac_check_lib_save_LIBS=$LIBS |
| 8326 | LIBS="-ldl $LIBS" |
| 8327 | cat >conftest.$ac_ext <<_ACEOF |
| 8328 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8329 | /* confdefs.h. */ |
| 8330 | _ACEOF |
| 8331 | cat confdefs.h >>conftest.$ac_ext |
| 8332 | cat >>conftest.$ac_ext <<_ACEOF |
| 8333 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8334 | |
| 8335 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8336 | #ifdef __cplusplus |
| 8337 | extern "C" |
| 8338 | #endif |
| 8339 | /* We use char because int might match the return type of a gcc2 |
| 8340 | builtin and then its argument prototype would still apply. */ |
| 8341 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8342 | int |
| 8343 | main () |
| 8344 | { |
| 8345 | dlopen (); |
| 8346 | ; |
| 8347 | return 0; |
| 8348 | } |
| 8349 | _ACEOF |
| 8350 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8351 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8352 | (eval $ac_link) 2>&5 |
| 8353 | ac_status=$? |
| 8354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8355 | (exit $ac_status); } && |
| 8356 | { ac_try='test -s conftest$ac_exeext' |
| 8357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8358 | (eval $ac_try) 2>&5 |
| 8359 | ac_status=$? |
| 8360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8361 | (exit $ac_status); }; }; then |
| 8362 | ac_cv_lib_dl_dlopen=yes |
| 8363 | else |
| 8364 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8366 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8367 | ac_cv_lib_dl_dlopen=no |
| 8368 | fi |
| 8369 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8370 | LIBS=$ac_check_lib_save_LIBS |
| 8371 | fi |
| 8372 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8373 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 8374 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 8375 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 8376 | else |
| 8377 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 8378 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 8379 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 8380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8381 | else |
| 8382 | ac_check_lib_save_LIBS=$LIBS |
| 8383 | LIBS="-lsvld $LIBS" |
| 8384 | cat >conftest.$ac_ext <<_ACEOF |
| 8385 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8386 | /* confdefs.h. */ |
| 8387 | _ACEOF |
| 8388 | cat confdefs.h >>conftest.$ac_ext |
| 8389 | cat >>conftest.$ac_ext <<_ACEOF |
| 8390 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8391 | |
| 8392 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8393 | #ifdef __cplusplus |
| 8394 | extern "C" |
| 8395 | #endif |
| 8396 | /* We use char because int might match the return type of a gcc2 |
| 8397 | builtin and then its argument prototype would still apply. */ |
| 8398 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8399 | int |
| 8400 | main () |
| 8401 | { |
| 8402 | dlopen (); |
| 8403 | ; |
| 8404 | return 0; |
| 8405 | } |
| 8406 | _ACEOF |
| 8407 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8408 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8409 | (eval $ac_link) 2>&5 |
| 8410 | ac_status=$? |
| 8411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8412 | (exit $ac_status); } && |
| 8413 | { ac_try='test -s conftest$ac_exeext' |
| 8414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8415 | (eval $ac_try) 2>&5 |
| 8416 | ac_status=$? |
| 8417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8418 | (exit $ac_status); }; }; then |
| 8419 | ac_cv_lib_svld_dlopen=yes |
| 8420 | else |
| 8421 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8423 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8424 | ac_cv_lib_svld_dlopen=no |
| 8425 | fi |
| 8426 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8427 | LIBS=$ac_check_lib_save_LIBS |
| 8428 | fi |
| 8429 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 8430 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 8431 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 8432 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 8433 | else |
| 8434 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 8435 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 8436 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 8437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8438 | else |
| 8439 | ac_check_lib_save_LIBS=$LIBS |
| 8440 | LIBS="-ldld $LIBS" |
| 8441 | cat >conftest.$ac_ext <<_ACEOF |
| 8442 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8443 | /* confdefs.h. */ |
| 8444 | _ACEOF |
| 8445 | cat confdefs.h >>conftest.$ac_ext |
| 8446 | cat >>conftest.$ac_ext <<_ACEOF |
| 8447 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8448 | |
| 8449 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8450 | #ifdef __cplusplus |
| 8451 | extern "C" |
| 8452 | #endif |
| 8453 | /* We use char because int might match the return type of a gcc2 |
| 8454 | builtin and then its argument prototype would still apply. */ |
| 8455 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8456 | int |
| 8457 | main () |
| 8458 | { |
| 8459 | dld_link (); |
| 8460 | ; |
| 8461 | return 0; |
| 8462 | } |
| 8463 | _ACEOF |
| 8464 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8465 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8466 | (eval $ac_link) 2>&5 |
| 8467 | ac_status=$? |
| 8468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8469 | (exit $ac_status); } && |
| 8470 | { ac_try='test -s conftest$ac_exeext' |
| 8471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8472 | (eval $ac_try) 2>&5 |
| 8473 | ac_status=$? |
| 8474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8475 | (exit $ac_status); }; }; then |
| 8476 | ac_cv_lib_dld_dld_link=yes |
| 8477 | else |
| 8478 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8480 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8481 | ac_cv_lib_dld_dld_link=no |
| 8482 | fi |
| 8483 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8484 | LIBS=$ac_check_lib_save_LIBS |
| 8485 | fi |
| 8486 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 8487 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 8488 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 8489 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 8490 | fi |
| 8491 | |
| 8492 | |
| 8493 | fi |
| 8494 | |
| 8495 | |
| 8496 | fi |
| 8497 | |
| 8498 | |
| 8499 | fi |
| 8500 | |
| 8501 | |
| 8502 | fi |
| 8503 | |
| 8504 | |
| 8505 | fi |
| 8506 | |
| 8507 | ;; |
| 8508 | esac |
| 8509 | |
| 8510 | if test "x$lt_cv_dlopen" != xno; then |
| 8511 | enable_dlopen=yes |
| 8512 | else |
| 8513 | enable_dlopen=no |
| 8514 | fi |
| 8515 | |
| 8516 | case $lt_cv_dlopen in |
| 8517 | dlopen) |
| 8518 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8519 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8520 | |
| 8521 | save_LDFLAGS="$LDFLAGS" |
| 8522 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 8523 | |
| 8524 | save_LIBS="$LIBS" |
| 8525 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 8526 | |
| 8527 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 8528 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 8529 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 8530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8531 | else |
| 8532 | if test "$cross_compiling" = yes; then : |
| 8533 | lt_cv_dlopen_self=cross |
| 8534 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8535 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8536 | lt_status=$lt_dlunknown |
| 8537 | cat > conftest.$ac_ext <<EOF |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 8538 | #line 8538 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8539 | #include "confdefs.h" |
| 8540 | |
| 8541 | #if HAVE_DLFCN_H |
| 8542 | #include <dlfcn.h> |
| 8543 | #endif |
| 8544 | |
| 8545 | #include <stdio.h> |
| 8546 | |
| 8547 | #ifdef RTLD_GLOBAL |
| 8548 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 8549 | #else |
| 8550 | # ifdef DL_GLOBAL |
| 8551 | # define LT_DLGLOBAL DL_GLOBAL |
| 8552 | # else |
| 8553 | # define LT_DLGLOBAL 0 |
| 8554 | # endif |
| 8555 | #endif |
| 8556 | |
| 8557 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 8558 | find out it does not work in some platform. */ |
| 8559 | #ifndef LT_DLLAZY_OR_NOW |
| 8560 | # ifdef RTLD_LAZY |
| 8561 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 8562 | # else |
| 8563 | # ifdef DL_LAZY |
| 8564 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 8565 | # else |
| 8566 | # ifdef RTLD_NOW |
| 8567 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 8568 | # else |
| 8569 | # ifdef DL_NOW |
| 8570 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 8571 | # else |
| 8572 | # define LT_DLLAZY_OR_NOW 0 |
| 8573 | # endif |
| 8574 | # endif |
| 8575 | # endif |
| 8576 | # endif |
| 8577 | #endif |
| 8578 | |
| 8579 | #ifdef __cplusplus |
| 8580 | extern "C" void exit (int); |
| 8581 | #endif |
| 8582 | |
| 8583 | void fnord() { int i=42;} |
| 8584 | int main () |
| 8585 | { |
| 8586 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 8587 | int status = $lt_dlunknown; |
| 8588 | |
| 8589 | if (self) |
| 8590 | { |
| 8591 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 8592 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8593 | /* dlclose (self); */ |
| 8594 | } |
| 8595 | |
| 8596 | exit (status); |
| 8597 | } |
| 8598 | EOF |
| 8599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8600 | (eval $ac_link) 2>&5 |
| 8601 | ac_status=$? |
| 8602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8603 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8604 | (./conftest; exit; ) 2>/dev/null |
| 8605 | lt_status=$? |
| 8606 | case x$lt_status in |
| 8607 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 8608 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 8609 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 8610 | esac |
| 8611 | else : |
| 8612 | # compilation failed |
| 8613 | lt_cv_dlopen_self=no |
| 8614 | fi |
| 8615 | fi |
| 8616 | rm -fr conftest* |
| 8617 | |
| 8618 | |
| 8619 | fi |
| 8620 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 8621 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 8622 | |
| 8623 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 8624 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 8625 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 8626 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 8627 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 8628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8629 | else |
| 8630 | if test "$cross_compiling" = yes; then : |
| 8631 | lt_cv_dlopen_self_static=cross |
| 8632 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8633 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8634 | lt_status=$lt_dlunknown |
| 8635 | cat > conftest.$ac_ext <<EOF |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 8636 | #line 8636 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8637 | #include "confdefs.h" |
| 8638 | |
| 8639 | #if HAVE_DLFCN_H |
| 8640 | #include <dlfcn.h> |
| 8641 | #endif |
| 8642 | |
| 8643 | #include <stdio.h> |
| 8644 | |
| 8645 | #ifdef RTLD_GLOBAL |
| 8646 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 8647 | #else |
| 8648 | # ifdef DL_GLOBAL |
| 8649 | # define LT_DLGLOBAL DL_GLOBAL |
| 8650 | # else |
| 8651 | # define LT_DLGLOBAL 0 |
| 8652 | # endif |
| 8653 | #endif |
| 8654 | |
| 8655 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 8656 | find out it does not work in some platform. */ |
| 8657 | #ifndef LT_DLLAZY_OR_NOW |
| 8658 | # ifdef RTLD_LAZY |
| 8659 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 8660 | # else |
| 8661 | # ifdef DL_LAZY |
| 8662 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 8663 | # else |
| 8664 | # ifdef RTLD_NOW |
| 8665 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 8666 | # else |
| 8667 | # ifdef DL_NOW |
| 8668 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 8669 | # else |
| 8670 | # define LT_DLLAZY_OR_NOW 0 |
| 8671 | # endif |
| 8672 | # endif |
| 8673 | # endif |
| 8674 | # endif |
| 8675 | #endif |
| 8676 | |
| 8677 | #ifdef __cplusplus |
| 8678 | extern "C" void exit (int); |
| 8679 | #endif |
| 8680 | |
| 8681 | void fnord() { int i=42;} |
| 8682 | int main () |
| 8683 | { |
| 8684 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 8685 | int status = $lt_dlunknown; |
| 8686 | |
| 8687 | if (self) |
| 8688 | { |
| 8689 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 8690 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8691 | /* dlclose (self); */ |
| 8692 | } |
| 8693 | |
| 8694 | exit (status); |
| 8695 | } |
| 8696 | EOF |
| 8697 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8698 | (eval $ac_link) 2>&5 |
| 8699 | ac_status=$? |
| 8700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8701 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8702 | (./conftest; exit; ) 2>/dev/null |
| 8703 | lt_status=$? |
| 8704 | case x$lt_status in |
| 8705 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 8706 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 8707 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 8708 | esac |
| 8709 | else : |
| 8710 | # compilation failed |
| 8711 | lt_cv_dlopen_self_static=no |
| 8712 | fi |
| 8713 | fi |
| 8714 | rm -fr conftest* |
| 8715 | |
| 8716 | |
| 8717 | fi |
| 8718 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 8719 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 8720 | fi |
| 8721 | |
| 8722 | CPPFLAGS="$save_CPPFLAGS" |
| 8723 | LDFLAGS="$save_LDFLAGS" |
| 8724 | LIBS="$save_LIBS" |
| 8725 | ;; |
| 8726 | esac |
| 8727 | |
| 8728 | case $lt_cv_dlopen_self in |
| 8729 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 8730 | *) enable_dlopen_self=unknown ;; |
| 8731 | esac |
| 8732 | |
| 8733 | case $lt_cv_dlopen_self_static in |
| 8734 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 8735 | *) enable_dlopen_self_static=unknown ;; |
| 8736 | esac |
| 8737 | fi |
| 8738 | |
| 8739 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8740 | # Report which librarie types wil actually be built |
| 8741 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 8742 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 8743 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 8744 | echo "${ECHO_T}$can_build_shared" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8745 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8746 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 8747 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 8748 | test "$can_build_shared" = "no" && enable_shared=no |
| 8749 | |
| 8750 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 8751 | # are all built from PIC. |
| 8752 | case "$host_os" in |
| 8753 | aix3*) |
| 8754 | test "$enable_shared" = yes && enable_static=no |
| 8755 | if test -n "$RANLIB"; then |
| 8756 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 8757 | postinstall_cmds='$RANLIB $lib' |
| 8758 | fi |
| 8759 | ;; |
| 8760 | |
| 8761 | aix4*) |
| 8762 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 8763 | test "$enable_shared" = yes && enable_static=no |
| 8764 | fi |
| 8765 | ;; |
| 8766 | darwin* | rhapsody*) |
| 8767 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 8768 | archive_cmds_need_lc=no |
| 8769 | case "$host_os" in |
| 8770 | rhapsody* | darwin1.[012]) |
| 8771 | allow_undefined_flag='-undefined suppress' |
| 8772 | ;; |
| 8773 | *) # Darwin 1.3 on |
| 8774 | test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' |
| 8775 | ;; |
| 8776 | esac |
| 8777 | # FIXME: Relying on posixy $() will cause problems for |
| 8778 | # cross-compilation, but unfortunately the echo tests do not |
| 8779 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles |
| 8780 | # `"' quotes if we put them in here... so don't! |
| 8781 | output_verbose_link_cmd='echo' |
| 8782 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
| 8783 | module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
| 8784 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 8785 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 8786 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 8787 | hardcode_direct=no |
| 8788 | hardcode_automatic=yes |
| 8789 | hardcode_shlibpath_var=unsupported |
| 8790 | whole_archive_flag_spec='-all_load $convenience' |
| 8791 | link_all_deplibs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8792 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8793 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8794 | esac |
| 8795 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 8796 | echo "${ECHO_T}$enable_shared" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8797 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8798 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 8799 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 8800 | # Make sure either enable_shared or enable_static is yes. |
| 8801 | test "$enable_shared" = yes || enable_static=yes |
| 8802 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 8803 | echo "${ECHO_T}$enable_static" >&6 |
| 8804 | |
| 8805 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8806 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 8807 | # with your package, and you will get complaints that there are |
| 8808 | # no rules to generate ltmain.sh. |
| 8809 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8810 | # See if we are running on zsh, and set the options which allow our commands through |
| 8811 | # without removal of \ escapes. |
| 8812 | if test -n "${ZSH_VERSION+set}" ; then |
| 8813 | setopt NO_GLOB_SUBST |
| 8814 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8815 | # Now quote all the things that may contain metacharacters while being |
| 8816 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 8817 | # variables and quote the copies for generation of the libtool script. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8818 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
| 8819 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 8820 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 8821 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 8822 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 8823 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8824 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8825 | old_postinstall_cmds old_postuninstall_cmds \ |
| 8826 | compiler \ |
| 8827 | CC \ |
| 8828 | LD \ |
| 8829 | lt_prog_compiler_wl \ |
| 8830 | lt_prog_compiler_pic \ |
| 8831 | lt_prog_compiler_static \ |
| 8832 | lt_prog_compiler_no_builtin_flag \ |
| 8833 | export_dynamic_flag_spec \ |
| 8834 | thread_safe_flag_spec \ |
| 8835 | whole_archive_flag_spec \ |
| 8836 | enable_shared_with_static_runtimes \ |
| 8837 | old_archive_cmds \ |
| 8838 | old_archive_from_new_cmds \ |
| 8839 | predep_objects \ |
| 8840 | postdep_objects \ |
| 8841 | predeps \ |
| 8842 | postdeps \ |
| 8843 | compiler_lib_search_path \ |
| 8844 | archive_cmds \ |
| 8845 | archive_expsym_cmds \ |
| 8846 | postinstall_cmds \ |
| 8847 | postuninstall_cmds \ |
| 8848 | old_archive_from_expsyms_cmds \ |
| 8849 | allow_undefined_flag \ |
| 8850 | no_undefined_flag \ |
| 8851 | export_symbols_cmds \ |
| 8852 | hardcode_libdir_flag_spec \ |
| 8853 | hardcode_libdir_flag_spec_ld \ |
| 8854 | hardcode_libdir_separator \ |
| 8855 | hardcode_automatic \ |
| 8856 | module_cmds \ |
| 8857 | module_expsym_cmds \ |
| 8858 | lt_cv_prog_compiler_c_o \ |
| 8859 | exclude_expsyms \ |
| 8860 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8861 | |
| 8862 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8863 | old_archive_cmds | \ |
| 8864 | old_archive_from_new_cmds | \ |
| 8865 | archive_cmds | \ |
| 8866 | archive_expsym_cmds | \ |
| 8867 | module_cmds | \ |
| 8868 | module_expsym_cmds | \ |
| 8869 | old_archive_from_expsyms_cmds | \ |
| 8870 | export_symbols_cmds | \ |
| 8871 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8872 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8873 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 8874 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8875 | # Double-quote double-evaled strings. |
| 8876 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 8877 | ;; |
| 8878 | *) |
| 8879 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 8880 | ;; |
| 8881 | esac |
| 8882 | done |
| 8883 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8884 | case $lt_echo in |
| 8885 | *'\$0 --fallback-echo"') |
| 8886 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 8887 | ;; |
| 8888 | esac |
| 8889 | |
| 8890 | cfgfile="${ofile}T" |
| 8891 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 8892 | $rm -f "$cfgfile" |
| 8893 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 8894 | echo "$as_me: creating $ofile" >&6;} |
| 8895 | |
| 8896 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8897 | #! $SHELL |
| 8898 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8899 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8900 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 8901 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 8902 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8903 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 8904 | # Free Software Foundation, Inc. |
| 8905 | # |
| 8906 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8907 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 8908 | # |
| 8909 | # This program is free software; you can redistribute it and/or modify |
| 8910 | # it under the terms of the GNU General Public License as published by |
| 8911 | # the Free Software Foundation; either version 2 of the License, or |
| 8912 | # (at your option) any later version. |
| 8913 | # |
| 8914 | # This program is distributed in the hope that it will be useful, but |
| 8915 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 8916 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 8917 | # General Public License for more details. |
| 8918 | # |
| 8919 | # You should have received a copy of the GNU General Public License |
| 8920 | # along with this program; if not, write to the Free Software |
| 8921 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 8922 | # |
| 8923 | # As a special exception to the GNU General Public License, if you |
| 8924 | # distribute this file as part of a program that contains a |
| 8925 | # configuration script generated by Autoconf, you may include it under |
| 8926 | # the same distribution terms that you use for the rest of that program. |
| 8927 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8928 | # A sed program that does not truncate output. |
| 8929 | SED=$lt_SED |
| 8930 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8931 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8932 | Xsed="$SED -e s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8933 | |
| 8934 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 8935 | # if CDPATH is set. |
| 8936 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 8937 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8938 | # The names of the tagged configurations supported by this script. |
| 8939 | available_tags= |
| 8940 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8941 | # ### BEGIN LIBTOOL CONFIG |
| 8942 | |
| 8943 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 8944 | |
| 8945 | # Shell to use when invoking shell scripts. |
| 8946 | SHELL=$lt_SHELL |
| 8947 | |
| 8948 | # Whether or not to build shared libraries. |
| 8949 | build_libtool_libs=$enable_shared |
| 8950 | |
| 8951 | # Whether or not to build static libraries. |
| 8952 | build_old_libs=$enable_static |
| 8953 | |
| 8954 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8955 | build_libtool_need_lc=$archive_cmds_need_lc |
| 8956 | |
| 8957 | # Whether or not to disallow shared libs when runtime libs are static |
| 8958 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8959 | |
| 8960 | # Whether or not to optimize for fast installation. |
| 8961 | fast_install=$enable_fast_install |
| 8962 | |
| 8963 | # The host system. |
| 8964 | host_alias=$host_alias |
| 8965 | host=$host |
| 8966 | |
| 8967 | # An echo program that does not interpret backslashes. |
| 8968 | echo=$lt_echo |
| 8969 | |
| 8970 | # The archiver. |
| 8971 | AR=$lt_AR |
| 8972 | AR_FLAGS=$lt_AR_FLAGS |
| 8973 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8974 | # A C compiler. |
| 8975 | LTCC=$lt_LTCC |
| 8976 | |
| 8977 | # A language-specific compiler. |
| 8978 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8979 | |
| 8980 | # Is the compiler the GNU C compiler? |
| 8981 | with_gcc=$GCC |
| 8982 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8983 | # An ERE matcher. |
| 8984 | EGREP=$lt_EGREP |
| 8985 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8986 | # The linker used to build libraries. |
| 8987 | LD=$lt_LD |
| 8988 | |
| 8989 | # Whether we need hard or soft links. |
| 8990 | LN_S=$lt_LN_S |
| 8991 | |
| 8992 | # A BSD-compatible nm program. |
| 8993 | NM=$lt_NM |
| 8994 | |
| 8995 | # A symbol stripping program |
| 8996 | STRIP=$STRIP |
| 8997 | |
| 8998 | # Used to examine libraries when file_magic_cmd begins "file" |
| 8999 | MAGIC_CMD=$MAGIC_CMD |
| 9000 | |
| 9001 | # Used on cygwin: DLL creation program. |
| 9002 | DLLTOOL="$DLLTOOL" |
| 9003 | |
| 9004 | # Used on cygwin: object dumper. |
| 9005 | OBJDUMP="$OBJDUMP" |
| 9006 | |
| 9007 | # Used on cygwin: assembler. |
| 9008 | AS="$AS" |
| 9009 | |
| 9010 | # The name of the directory that contains temporary libtool files. |
| 9011 | objdir=$objdir |
| 9012 | |
| 9013 | # How to create reloadable object files. |
| 9014 | reload_flag=$lt_reload_flag |
| 9015 | reload_cmds=$lt_reload_cmds |
| 9016 | |
| 9017 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9018 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9019 | |
| 9020 | # Object file suffix (normally "o"). |
| 9021 | objext="$ac_objext" |
| 9022 | |
| 9023 | # Old archive suffix (normally "a"). |
| 9024 | libext="$libext" |
| 9025 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9026 | # Shared library suffix (normally ".so"). |
| 9027 | shrext='$shrext' |
| 9028 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9029 | # Executable file suffix (normally ""). |
| 9030 | exeext="$exeext" |
| 9031 | |
| 9032 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9033 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9034 | pic_mode=$pic_mode |
| 9035 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9036 | # What is the maximum length of a command? |
| 9037 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9038 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9039 | # Does compiler simultaneously support -c and -o options? |
| 9040 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9041 | |
| 9042 | # Must we lock files when doing compilation ? |
| 9043 | need_locks=$lt_need_locks |
| 9044 | |
| 9045 | # Do we need the lib prefix for modules? |
| 9046 | need_lib_prefix=$need_lib_prefix |
| 9047 | |
| 9048 | # Do we need a version for libraries? |
| 9049 | need_version=$need_version |
| 9050 | |
| 9051 | # Whether dlopen is supported. |
| 9052 | dlopen_support=$enable_dlopen |
| 9053 | |
| 9054 | # Whether dlopen of programs is supported. |
| 9055 | dlopen_self=$enable_dlopen_self |
| 9056 | |
| 9057 | # Whether dlopen of statically linked programs is supported. |
| 9058 | dlopen_self_static=$enable_dlopen_self_static |
| 9059 | |
| 9060 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9061 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9062 | |
| 9063 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9064 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9065 | |
| 9066 | # Compiler flag to allow reflexive dlopens. |
| 9067 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 9068 | |
| 9069 | # Compiler flag to generate shared objects directly from archives. |
| 9070 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 9071 | |
| 9072 | # Compiler flag to generate thread-safe objects. |
| 9073 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 9074 | |
| 9075 | # Library versioning type. |
| 9076 | version_type=$version_type |
| 9077 | |
| 9078 | # Format of library name prefix. |
| 9079 | libname_spec=$lt_libname_spec |
| 9080 | |
| 9081 | # List of archive names. First name is the real one, the rest are links. |
| 9082 | # The last name is the one that the linker finds with -lNAME. |
| 9083 | library_names_spec=$lt_library_names_spec |
| 9084 | |
| 9085 | # The coded name of the library, if different from the real name. |
| 9086 | soname_spec=$lt_soname_spec |
| 9087 | |
| 9088 | # Commands used to build and install an old-style archive. |
| 9089 | RANLIB=$lt_RANLIB |
| 9090 | old_archive_cmds=$lt_old_archive_cmds |
| 9091 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 9092 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 9093 | |
| 9094 | # Create an old-style archive from a shared archive. |
| 9095 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 9096 | |
| 9097 | # Create a temporary old-style archive to link instead of a shared archive. |
| 9098 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 9099 | |
| 9100 | # Commands used to build and install a shared archive. |
| 9101 | archive_cmds=$lt_archive_cmds |
| 9102 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 9103 | postinstall_cmds=$lt_postinstall_cmds |
| 9104 | postuninstall_cmds=$lt_postuninstall_cmds |
| 9105 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9106 | # Commands used to build a loadable module (assumed same as above if empty) |
| 9107 | module_cmds=$lt_module_cmds |
| 9108 | module_expsym_cmds=$lt_module_expsym_cmds |
| 9109 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9110 | # Commands to strip libraries. |
| 9111 | old_striplib=$lt_old_striplib |
| 9112 | striplib=$lt_striplib |
| 9113 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9114 | # Dependencies to place before the objects being linked to create a |
| 9115 | # shared library. |
| 9116 | predep_objects=$lt_predep_objects |
| 9117 | |
| 9118 | # Dependencies to place after the objects being linked to create a |
| 9119 | # shared library. |
| 9120 | postdep_objects=$lt_postdep_objects |
| 9121 | |
| 9122 | # Dependencies to place before the objects being linked to create a |
| 9123 | # shared library. |
| 9124 | predeps=$lt_predeps |
| 9125 | |
| 9126 | # Dependencies to place after the objects being linked to create a |
| 9127 | # shared library. |
| 9128 | postdeps=$lt_postdeps |
| 9129 | |
| 9130 | # The library search path used internally by the compiler when linking |
| 9131 | # a shared library. |
| 9132 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 9133 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9134 | # Method to check whether dependent libraries are shared objects. |
| 9135 | deplibs_check_method=$lt_deplibs_check_method |
| 9136 | |
| 9137 | # Command to use when deplibs_check_method == file_magic. |
| 9138 | file_magic_cmd=$lt_file_magic_cmd |
| 9139 | |
| 9140 | # Flag that allows shared libraries with undefined symbols to be built. |
| 9141 | allow_undefined_flag=$lt_allow_undefined_flag |
| 9142 | |
| 9143 | # Flag that forces no undefined symbols. |
| 9144 | no_undefined_flag=$lt_no_undefined_flag |
| 9145 | |
| 9146 | # Commands used to finish a libtool library installation in a directory. |
| 9147 | finish_cmds=$lt_finish_cmds |
| 9148 | |
| 9149 | # Same as above, but a single script fragment to be evaled but not shown. |
| 9150 | finish_eval=$lt_finish_eval |
| 9151 | |
| 9152 | # Take the output of nm and produce a listing of raw symbols and C names. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9153 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9154 | |
| 9155 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9156 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9157 | |
| 9158 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9159 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9160 | |
| 9161 | # This is the shared library runtime path variable. |
| 9162 | runpath_var=$runpath_var |
| 9163 | |
| 9164 | # This is the shared library path variable. |
| 9165 | shlibpath_var=$shlibpath_var |
| 9166 | |
| 9167 | # Is shlibpath searched before the hard-coded library search path? |
| 9168 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 9169 | |
| 9170 | # How to hardcode a shared library path into an executable. |
| 9171 | hardcode_action=$hardcode_action |
| 9172 | |
| 9173 | # Whether we should hardcode library paths into libraries. |
| 9174 | hardcode_into_libs=$hardcode_into_libs |
| 9175 | |
| 9176 | # Flag to hardcode \$libdir into a binary during linking. |
| 9177 | # This must work even if \$libdir does not exist. |
| 9178 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 9179 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9180 | # If ld is used when linking, flag to hardcode \$libdir into |
| 9181 | # a binary during linking. This must work even if \$libdir does |
| 9182 | # not exist. |
| 9183 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 9184 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9185 | # Whether we need a single -rpath flag with a separated argument. |
| 9186 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 9187 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9188 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9189 | # resulting binary. |
| 9190 | hardcode_direct=$hardcode_direct |
| 9191 | |
| 9192 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 9193 | # resulting binary. |
| 9194 | hardcode_minus_L=$hardcode_minus_L |
| 9195 | |
| 9196 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 9197 | # the resulting binary. |
| 9198 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 9199 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9200 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 9201 | # and all subsequent libraries and executables linked against it. |
| 9202 | hardcode_automatic=$hardcode_automatic |
| 9203 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9204 | # Variables whose values should be saved in libtool wrapper scripts and |
| 9205 | # restored at relink time. |
| 9206 | variables_saved_for_relink="$variables_saved_for_relink" |
| 9207 | |
| 9208 | # Whether libtool must link a program against all its dependency libraries. |
| 9209 | link_all_deplibs=$link_all_deplibs |
| 9210 | |
| 9211 | # Compile-time system search path for libraries |
| 9212 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 9213 | |
| 9214 | # Run-time system search path for libraries |
| 9215 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 9216 | |
| 9217 | # Fix the shell variable \$srcfile for the compiler. |
| 9218 | fix_srcfile_path="$fix_srcfile_path" |
| 9219 | |
| 9220 | # Set to yes if exported symbols are required. |
| 9221 | always_export_symbols=$always_export_symbols |
| 9222 | |
| 9223 | # The commands to list exported symbols. |
| 9224 | export_symbols_cmds=$lt_export_symbols_cmds |
| 9225 | |
| 9226 | # The commands to extract the exported symbol list from a shared archive. |
| 9227 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 9228 | |
| 9229 | # Symbols that should not be listed in the preloaded symbols. |
| 9230 | exclude_expsyms=$lt_exclude_expsyms |
| 9231 | |
| 9232 | # Symbols that must always be exported. |
| 9233 | include_expsyms=$lt_include_expsyms |
| 9234 | |
| 9235 | # ### END LIBTOOL CONFIG |
| 9236 | |
| 9237 | __EOF__ |
| 9238 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9239 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9240 | case $host_os in |
| 9241 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9242 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9243 | |
| 9244 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 9245 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 9246 | # vanish in a puff of smoke. |
| 9247 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 9248 | COLLECT_NAMES= |
| 9249 | export COLLECT_NAMES |
| 9250 | fi |
| 9251 | EOF |
| 9252 | ;; |
| 9253 | esac |
| 9254 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9255 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 9256 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 9257 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 9258 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9259 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9260 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9261 | mv -f "$cfgfile" "$ofile" || \ |
| 9262 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9263 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9264 | |
| 9265 | else |
| 9266 | # If there is no Makefile yet, we rely on a make rule to execute |
| 9267 | # `config.status --recheck' to rerun these tests and create the |
| 9268 | # libtool script then. |
| 9269 | test -f Makefile && make "$ltmain" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9270 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9271 | |
| 9272 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9273 | ac_ext=c |
| 9274 | ac_cpp='$CPP $CPPFLAGS' |
| 9275 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9276 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9277 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9278 | |
| 9279 | CC="$lt_save_CC" |
| 9280 | |
| 9281 | |
| 9282 | # Check whether --with-tags or --without-tags was given. |
| 9283 | if test "${with_tags+set}" = set; then |
| 9284 | withval="$with_tags" |
| 9285 | tagnames="$withval" |
| 9286 | fi; |
| 9287 | |
| 9288 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 9289 | if test ! -f "${ofile}"; then |
| 9290 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 9291 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 9292 | fi |
| 9293 | |
| 9294 | if test -z "$LTCC"; then |
| 9295 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 9296 | if test -z "$LTCC"; then |
| 9297 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 9298 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 9299 | else |
| 9300 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 9301 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 9302 | fi |
| 9303 | fi |
| 9304 | |
| 9305 | # Extract list of available tagged configurations in $ofile. |
| 9306 | # Note that this assumes the entire list is on one line. |
| 9307 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 9308 | |
| 9309 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 9310 | for tagname in $tagnames; do |
| 9311 | IFS="$lt_save_ifs" |
| 9312 | # Check whether tagname contains only valid characters |
| 9313 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 9314 | "") ;; |
| 9315 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 9316 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 9317 | { (exit 1); exit 1; }; } |
| 9318 | ;; |
| 9319 | esac |
| 9320 | |
| 9321 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 9322 | then |
| 9323 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 9324 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 9325 | { (exit 1); exit 1; }; } |
| 9326 | fi |
| 9327 | |
| 9328 | # Update the list of available tags. |
| 9329 | if test -n "$tagname"; then |
| 9330 | echo appending configuration tag \"$tagname\" to $ofile |
| 9331 | |
| 9332 | case $tagname in |
| 9333 | CXX) |
| 9334 | if test -n "$CXX" && test "X$CXX" != "Xno"; then |
| 9335 | ac_ext=cc |
| 9336 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 9337 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9338 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9339 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 9340 | |
| 9341 | |
| 9342 | |
| 9343 | |
| 9344 | archive_cmds_need_lc_CXX=no |
| 9345 | allow_undefined_flag_CXX= |
| 9346 | always_export_symbols_CXX=no |
| 9347 | archive_expsym_cmds_CXX= |
| 9348 | export_dynamic_flag_spec_CXX= |
| 9349 | hardcode_direct_CXX=no |
| 9350 | hardcode_libdir_flag_spec_CXX= |
| 9351 | hardcode_libdir_flag_spec_ld_CXX= |
| 9352 | hardcode_libdir_separator_CXX= |
| 9353 | hardcode_minus_L_CXX=no |
| 9354 | hardcode_automatic_CXX=no |
| 9355 | module_cmds_CXX= |
| 9356 | module_expsym_cmds_CXX= |
| 9357 | link_all_deplibs_CXX=unknown |
| 9358 | old_archive_cmds_CXX=$old_archive_cmds |
| 9359 | no_undefined_flag_CXX= |
| 9360 | whole_archive_flag_spec_CXX= |
| 9361 | enable_shared_with_static_runtimes_CXX=no |
| 9362 | |
| 9363 | # Dependencies to place before and after the object being linked: |
| 9364 | predep_objects_CXX= |
| 9365 | postdep_objects_CXX= |
| 9366 | predeps_CXX= |
| 9367 | postdeps_CXX= |
| 9368 | compiler_lib_search_path_CXX= |
| 9369 | |
| 9370 | # Source file extension for C++ test sources. |
| 9371 | ac_ext=cc |
| 9372 | |
| 9373 | # Object file extension for compiled C++ test sources. |
| 9374 | objext=o |
| 9375 | objext_CXX=$objext |
| 9376 | |
| 9377 | # Code to be used in simple compile tests |
| 9378 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 9379 | |
| 9380 | # Code to be used in simple link tests |
| 9381 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
| 9382 | |
| 9383 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 9384 | |
| 9385 | # If no C compiler was specified, use CC. |
| 9386 | LTCC=${LTCC-"$CC"} |
| 9387 | |
| 9388 | # Allow CC to be a program name with arguments. |
| 9389 | compiler=$CC |
| 9390 | |
| 9391 | |
| 9392 | # Allow CC to be a program name with arguments. |
| 9393 | lt_save_CC=$CC |
| 9394 | lt_save_LD=$LD |
| 9395 | lt_save_GCC=$GCC |
| 9396 | GCC=$GXX |
| 9397 | lt_save_with_gnu_ld=$with_gnu_ld |
| 9398 | lt_save_path_LD=$lt_cv_path_LD |
| 9399 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 9400 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 9401 | else |
| 9402 | unset lt_cv_prog_gnu_ld |
| 9403 | fi |
| 9404 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 9405 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 9406 | else |
| 9407 | unset lt_cv_path_LD |
| 9408 | fi |
| 9409 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 9410 | CC=${CXX-"c++"} |
| 9411 | compiler=$CC |
| 9412 | compiler_CXX=$CC |
| 9413 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 9414 | |
| 9415 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 9416 | # no_builtin_flag separately |
| 9417 | if test "$GXX" = yes; then |
| 9418 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 9419 | else |
| 9420 | lt_prog_compiler_no_builtin_flag_CXX= |
| 9421 | fi |
| 9422 | |
| 9423 | if test "$GXX" = yes; then |
| 9424 | # Set up default GNU C++ configuration |
| 9425 | |
| 9426 | |
| 9427 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 9428 | if test "${with_gnu_ld+set}" = set; then |
| 9429 | withval="$with_gnu_ld" |
| 9430 | test "$withval" = no || with_gnu_ld=yes |
| 9431 | else |
| 9432 | with_gnu_ld=no |
| 9433 | fi; |
| 9434 | ac_prog=ld |
| 9435 | if test "$GCC" = yes; then |
| 9436 | # Check if gcc -print-prog-name=ld gives a path. |
| 9437 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 9438 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 9439 | case $host in |
| 9440 | *-*-mingw*) |
| 9441 | # gcc leaves a trailing carriage return which upsets mingw |
| 9442 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 9443 | *) |
| 9444 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 9445 | esac |
| 9446 | case $ac_prog in |
| 9447 | # Accept absolute paths. |
| 9448 | [\\/]* | ?:[\\/]*) |
| 9449 | re_direlt='/[^/][^/]*/\.\./' |
| 9450 | # Canonicalize the path of ld |
| 9451 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 9452 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 9453 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 9454 | done |
| 9455 | test -z "$LD" && LD="$ac_prog" |
| 9456 | ;; |
| 9457 | "") |
| 9458 | # If it fails, then pretend we aren't using GCC. |
| 9459 | ac_prog=ld |
| 9460 | ;; |
| 9461 | *) |
| 9462 | # If it is relative, then search for the first ld in PATH. |
| 9463 | with_gnu_ld=unknown |
| 9464 | ;; |
| 9465 | esac |
| 9466 | elif test "$with_gnu_ld" = yes; then |
| 9467 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 9468 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 9469 | else |
| 9470 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 9471 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 9472 | fi |
| 9473 | if test "${lt_cv_path_LD+set}" = set; then |
| 9474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9475 | else |
| 9476 | if test -z "$LD"; then |
| 9477 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 9478 | for ac_dir in $PATH; do |
| 9479 | IFS="$lt_save_ifs" |
| 9480 | test -z "$ac_dir" && ac_dir=. |
| 9481 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 9482 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 9483 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 9484 | # but apparently some GNU ld's only accept -v. |
| 9485 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 9486 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 9487 | *GNU* | *'with BFD'*) |
| 9488 | test "$with_gnu_ld" != no && break |
| 9489 | ;; |
| 9490 | *) |
| 9491 | test "$with_gnu_ld" != yes && break |
| 9492 | ;; |
| 9493 | esac |
| 9494 | fi |
| 9495 | done |
| 9496 | IFS="$lt_save_ifs" |
| 9497 | else |
| 9498 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 9499 | fi |
| 9500 | fi |
| 9501 | |
| 9502 | LD="$lt_cv_path_LD" |
| 9503 | if test -n "$LD"; then |
| 9504 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 9505 | echo "${ECHO_T}$LD" >&6 |
| 9506 | else |
| 9507 | echo "$as_me:$LINENO: result: no" >&5 |
| 9508 | echo "${ECHO_T}no" >&6 |
| 9509 | fi |
| 9510 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 9511 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 9512 | { (exit 1); exit 1; }; } |
| 9513 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 9514 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 9515 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 9516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9517 | else |
| 9518 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 9519 | case `"$LD" -v 2>&1 </dev/null` in |
| 9520 | *GNU* | *'with BFD'*) |
| 9521 | lt_cv_prog_gnu_ld=yes |
| 9522 | ;; |
| 9523 | *) |
| 9524 | lt_cv_prog_gnu_ld=no |
| 9525 | ;; |
| 9526 | esac |
| 9527 | fi |
| 9528 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 9529 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 9530 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 9531 | |
| 9532 | |
| 9533 | |
| 9534 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 9535 | # archiving commands below assume that GNU ld is being used. |
| 9536 | if test "$with_gnu_ld" = yes; then |
| 9537 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9538 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9539 | |
| 9540 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 9541 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 9542 | |
| 9543 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 9544 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 9545 | # investigate it a little bit more. (MM) |
| 9546 | wlarc='${wl}' |
| 9547 | |
| 9548 | # ancient GNU ld didn't support --whole-archive et. al. |
| 9549 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 9550 | grep 'no-whole-archive' > /dev/null; then |
| 9551 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 9552 | else |
| 9553 | whole_archive_flag_spec_CXX= |
| 9554 | fi |
| 9555 | else |
| 9556 | with_gnu_ld=no |
| 9557 | wlarc= |
| 9558 | |
| 9559 | # A generic and very simple default shared library creation |
| 9560 | # command for GNU C++ for the case where it uses the native |
| 9561 | # linker, instead of GNU ld. If possible, this setting should |
| 9562 | # overridden to take advantage of the native linker features on |
| 9563 | # the platform it is being used on. |
| 9564 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 9565 | fi |
| 9566 | |
| 9567 | # Commands to make compiler produce verbose output that lists |
| 9568 | # what "hidden" libraries, object files and flags are used when |
| 9569 | # linking a shared library. |
| 9570 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 9571 | |
| 9572 | else |
| 9573 | GXX=no |
| 9574 | with_gnu_ld=no |
| 9575 | wlarc= |
| 9576 | fi |
| 9577 | |
| 9578 | # PORTME: fill in a description of your system's C++ link characteristics |
| 9579 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 9580 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 9581 | ld_shlibs_CXX=yes |
| 9582 | case $host_os in |
| 9583 | aix3*) |
| 9584 | # FIXME: insert proper C++ library support |
| 9585 | ld_shlibs_CXX=no |
| 9586 | ;; |
| 9587 | aix4* | aix5*) |
| 9588 | if test "$host_cpu" = ia64; then |
| 9589 | # On IA64, the linker does run time linking by default, so we don't |
| 9590 | # have to do anything special. |
| 9591 | aix_use_runtimelinking=no |
| 9592 | exp_sym_flag='-Bexport' |
| 9593 | no_entry_flag="" |
| 9594 | else |
| 9595 | aix_use_runtimelinking=no |
| 9596 | |
| 9597 | # Test if we are trying to use run time linking or normal |
| 9598 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9599 | # need to do runtime linking. |
| 9600 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 9601 | for ld_flag in $LDFLAGS; do |
| 9602 | case $ld_flag in |
| 9603 | *-brtl*) |
| 9604 | aix_use_runtimelinking=yes |
| 9605 | break |
| 9606 | ;; |
| 9607 | esac |
| 9608 | done |
| 9609 | esac |
| 9610 | |
| 9611 | exp_sym_flag='-bexport' |
| 9612 | no_entry_flag='-bnoentry' |
| 9613 | fi |
| 9614 | |
| 9615 | # When large executables or shared objects are built, AIX ld can |
| 9616 | # have problems creating the table of contents. If linking a library |
| 9617 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 9618 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9619 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9620 | |
| 9621 | archive_cmds_CXX='' |
| 9622 | hardcode_direct_CXX=yes |
| 9623 | hardcode_libdir_separator_CXX=':' |
| 9624 | link_all_deplibs_CXX=yes |
| 9625 | |
| 9626 | if test "$GXX" = yes; then |
| 9627 | case $host_os in aix4.012|aix4.012.*) |
| 9628 | # We only want to do this on AIX 4.2 and lower, the check |
| 9629 | # below for broken collect2 doesn't work under 4.3+ |
| 9630 | collect2name=`${CC} -print-prog-name=collect2` |
| 9631 | if test -f "$collect2name" && \ |
| 9632 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 9633 | then |
| 9634 | # We have reworked collect2 |
| 9635 | hardcode_direct_CXX=yes |
| 9636 | else |
| 9637 | # We have old collect2 |
| 9638 | hardcode_direct_CXX=unsupported |
| 9639 | # It fails to find uninstalled libraries when the uninstalled |
| 9640 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 9641 | # to unsupported forces relinking |
| 9642 | hardcode_minus_L_CXX=yes |
| 9643 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 9644 | hardcode_libdir_separator_CXX= |
| 9645 | fi |
| 9646 | esac |
| 9647 | shared_flag='-shared' |
| 9648 | else |
| 9649 | # not using gcc |
| 9650 | if test "$host_cpu" = ia64; then |
| 9651 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9652 | # chokes on -Wl,-G. The following line is correct: |
| 9653 | shared_flag='-G' |
| 9654 | else |
| 9655 | if test "$aix_use_runtimelinking" = yes; then |
| 9656 | shared_flag='${wl}-G' |
| 9657 | else |
| 9658 | shared_flag='${wl}-bM:SRE' |
| 9659 | fi |
| 9660 | fi |
| 9661 | fi |
| 9662 | |
| 9663 | # It seems that -bexpall does not export symbols beginning with |
| 9664 | # underscore (_), so it is better to generate a list of symbols to export. |
| 9665 | always_export_symbols_CXX=yes |
| 9666 | if test "$aix_use_runtimelinking" = yes; then |
| 9667 | # Warning - without using the other runtime loading flags (-brtl), |
| 9668 | # -berok will link without error, but may produce a broken library. |
| 9669 | allow_undefined_flag_CXX='-berok' |
| 9670 | # Determine the default libpath from the value encoded in an empty executable. |
| 9671 | cat >conftest.$ac_ext <<_ACEOF |
| 9672 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9673 | /* confdefs.h. */ |
| 9674 | _ACEOF |
| 9675 | cat confdefs.h >>conftest.$ac_ext |
| 9676 | cat >>conftest.$ac_ext <<_ACEOF |
| 9677 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9678 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9679 | int |
| 9680 | main () |
| 9681 | { |
| 9682 | |
| 9683 | ; |
| 9684 | return 0; |
| 9685 | } |
| 9686 | _ACEOF |
| 9687 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9689 | (eval $ac_link) 2>&5 |
| 9690 | ac_status=$? |
| 9691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9692 | (exit $ac_status); } && |
| 9693 | { ac_try='test -s conftest$ac_exeext' |
| 9694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9695 | (eval $ac_try) 2>&5 |
| 9696 | ac_status=$? |
| 9697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9698 | (exit $ac_status); }; }; then |
| 9699 | |
| 9700 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 9701 | }'` |
| 9702 | # Check for a 64-bit object if we didn't find anything. |
| 9703 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 9704 | }'`; fi |
| 9705 | else |
| 9706 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9708 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9709 | fi |
| 9710 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9711 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9712 | |
| 9713 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9714 | |
| 9715 | archive_expsym_cmds_CXX="\$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" |
| 9716 | else |
| 9717 | if test "$host_cpu" = ia64; then |
| 9718 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 9719 | allow_undefined_flag_CXX="-z nodefs" |
| 9720 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 9721 | else |
| 9722 | # Determine the default libpath from the value encoded in an empty executable. |
| 9723 | cat >conftest.$ac_ext <<_ACEOF |
| 9724 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9725 | /* confdefs.h. */ |
| 9726 | _ACEOF |
| 9727 | cat confdefs.h >>conftest.$ac_ext |
| 9728 | cat >>conftest.$ac_ext <<_ACEOF |
| 9729 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9730 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9731 | int |
| 9732 | main () |
| 9733 | { |
| 9734 | |
| 9735 | ; |
| 9736 | return 0; |
| 9737 | } |
| 9738 | _ACEOF |
| 9739 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9740 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9741 | (eval $ac_link) 2>&5 |
| 9742 | ac_status=$? |
| 9743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9744 | (exit $ac_status); } && |
| 9745 | { ac_try='test -s conftest$ac_exeext' |
| 9746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9747 | (eval $ac_try) 2>&5 |
| 9748 | ac_status=$? |
| 9749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9750 | (exit $ac_status); }; }; then |
| 9751 | |
| 9752 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 9753 | }'` |
| 9754 | # Check for a 64-bit object if we didn't find anything. |
| 9755 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 9756 | }'`; fi |
| 9757 | else |
| 9758 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9760 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9761 | fi |
| 9762 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9763 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9764 | |
| 9765 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9766 | # Warning - without using the other run time loading flags, |
| 9767 | # -berok will link without error, but may produce a broken library. |
| 9768 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 9769 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 9770 | # -bexpall does not export symbols beginning with underscore (_) |
| 9771 | always_export_symbols_CXX=yes |
| 9772 | # Exported symbols can be pulled into shared objects from archives |
| 9773 | whole_archive_flag_spec_CXX=' ' |
| 9774 | archive_cmds_need_lc_CXX=yes |
| 9775 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 9776 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 9777 | fi |
| 9778 | fi |
| 9779 | ;; |
| 9780 | chorus*) |
| 9781 | case $cc_basename in |
| 9782 | *) |
| 9783 | # FIXME: insert proper C++ library support |
| 9784 | ld_shlibs_CXX=no |
| 9785 | ;; |
| 9786 | esac |
| 9787 | ;; |
| 9788 | |
| 9789 | cygwin* | mingw* | pw32*) |
| 9790 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 9791 | # as there is no search path for DLLs. |
| 9792 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 9793 | allow_undefined_flag_CXX=unsupported |
| 9794 | always_export_symbols_CXX=no |
| 9795 | enable_shared_with_static_runtimes_CXX=yes |
| 9796 | |
| 9797 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 9798 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 9799 | # If the export-symbols file already is a .def file (1st line |
| 9800 | # is EXPORTS), use it as is; otherwise, prepend... |
| 9801 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9802 | cp $export_symbols $output_objdir/$soname.def; |
| 9803 | else |
| 9804 | echo EXPORTS > $output_objdir/$soname.def; |
| 9805 | cat $export_symbols >> $output_objdir/$soname.def; |
| 9806 | fi~ |
| 9807 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 9808 | else |
| 9809 | ld_shlibs_CXX=no |
| 9810 | fi |
| 9811 | ;; |
| 9812 | |
| 9813 | darwin* | rhapsody*) |
| 9814 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 9815 | archive_cmds_need_lc_CXX=no |
| 9816 | case "$host_os" in |
| 9817 | rhapsody* | darwin1.[012]) |
| 9818 | allow_undefined_flag_CXX='-undefined suppress' |
| 9819 | ;; |
| 9820 | *) # Darwin 1.3 on |
| 9821 | test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
| 9822 | ;; |
| 9823 | esac |
| 9824 | lt_int_apple_cc_single_mod=no |
| 9825 | output_verbose_link_cmd='echo' |
| 9826 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 9827 | lt_int_apple_cc_single_mod=yes |
| 9828 | fi |
| 9829 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 9830 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 9831 | else |
| 9832 | archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 9833 | fi |
| 9834 | module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
| 9835 | |
| 9836 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 9837 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 9838 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 9839 | else |
| 9840 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 9841 | fi |
| 9842 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 9843 | hardcode_direct_CXX=no |
| 9844 | hardcode_automatic_CXX=yes |
| 9845 | hardcode_shlibpath_var_CXX=unsupported |
| 9846 | whole_archive_flag_spec_CXX='-all_load $convenience' |
| 9847 | link_all_deplibs_CXX=yes |
| 9848 | fi |
| 9849 | ;; |
| 9850 | |
| 9851 | dgux*) |
| 9852 | case $cc_basename in |
| 9853 | ec++) |
| 9854 | # FIXME: insert proper C++ library support |
| 9855 | ld_shlibs_CXX=no |
| 9856 | ;; |
| 9857 | ghcx) |
| 9858 | # Green Hills C++ Compiler |
| 9859 | # FIXME: insert proper C++ library support |
| 9860 | ld_shlibs_CXX=no |
| 9861 | ;; |
| 9862 | *) |
| 9863 | # FIXME: insert proper C++ library support |
| 9864 | ld_shlibs_CXX=no |
| 9865 | ;; |
| 9866 | esac |
| 9867 | ;; |
| 9868 | freebsd12*) |
| 9869 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 9870 | ld_shlibs_CXX=no |
| 9871 | ;; |
| 9872 | freebsd-elf*) |
| 9873 | archive_cmds_need_lc_CXX=no |
| 9874 | ;; |
| 9875 | freebsd*) |
| 9876 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 9877 | # conventions |
| 9878 | ld_shlibs_CXX=yes |
| 9879 | ;; |
| 9880 | gnu*) |
| 9881 | ;; |
| 9882 | hpux9*) |
| 9883 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 9884 | hardcode_libdir_separator_CXX=: |
| 9885 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 9886 | hardcode_direct_CXX=yes |
| 9887 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 9888 | # but as the default |
| 9889 | # location of the library. |
| 9890 | |
| 9891 | case $cc_basename in |
| 9892 | CC) |
| 9893 | # FIXME: insert proper C++ library support |
| 9894 | ld_shlibs_CXX=no |
| 9895 | ;; |
| 9896 | aCC) |
| 9897 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 9898 | # Commands to make compiler produce verbose output that lists |
| 9899 | # what "hidden" libraries, object files and flags are used when |
| 9900 | # linking a shared library. |
| 9901 | # |
| 9902 | # There doesn't appear to be a way to prevent this compiler from |
| 9903 | # explicitly linking system object files so we need to strip them |
| 9904 | # from the output so that they don't get included in the library |
| 9905 | # dependencies. |
| 9906 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 9907 | ;; |
| 9908 | *) |
| 9909 | if test "$GXX" = yes; then |
| 9910 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 9911 | else |
| 9912 | # FIXME: insert proper C++ library support |
| 9913 | ld_shlibs_CXX=no |
| 9914 | fi |
| 9915 | ;; |
| 9916 | esac |
| 9917 | ;; |
| 9918 | hpux10*|hpux11*) |
| 9919 | if test $with_gnu_ld = no; then |
| 9920 | case "$host_cpu" in |
| 9921 | hppa*64*) |
| 9922 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 9923 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
| 9924 | hardcode_libdir_separator_CXX=: |
| 9925 | ;; |
| 9926 | ia64*) |
| 9927 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 9928 | ;; |
| 9929 | *) |
| 9930 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 9931 | hardcode_libdir_separator_CXX=: |
| 9932 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 9933 | ;; |
| 9934 | esac |
| 9935 | fi |
| 9936 | case "$host_cpu" in |
| 9937 | hppa*64*) |
| 9938 | hardcode_direct_CXX=no |
| 9939 | hardcode_shlibpath_var_CXX=no |
| 9940 | ;; |
| 9941 | ia64*) |
| 9942 | hardcode_direct_CXX=no |
| 9943 | hardcode_shlibpath_var_CXX=no |
| 9944 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 9945 | # but as the default |
| 9946 | # location of the library. |
| 9947 | ;; |
| 9948 | *) |
| 9949 | hardcode_direct_CXX=yes |
| 9950 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 9951 | # but as the default |
| 9952 | # location of the library. |
| 9953 | ;; |
| 9954 | esac |
| 9955 | |
| 9956 | case $cc_basename in |
| 9957 | CC) |
| 9958 | # FIXME: insert proper C++ library support |
| 9959 | ld_shlibs_CXX=no |
| 9960 | ;; |
| 9961 | aCC) |
| 9962 | case "$host_cpu" in |
| 9963 | hppa*64*|ia64*) |
| 9964 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 9965 | ;; |
| 9966 | *) |
| 9967 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 9968 | ;; |
| 9969 | esac |
| 9970 | # Commands to make compiler produce verbose output that lists |
| 9971 | # what "hidden" libraries, object files and flags are used when |
| 9972 | # linking a shared library. |
| 9973 | # |
| 9974 | # There doesn't appear to be a way to prevent this compiler from |
| 9975 | # explicitly linking system object files so we need to strip them |
| 9976 | # from the output so that they don't get included in the library |
| 9977 | # dependencies. |
| 9978 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 9979 | ;; |
| 9980 | *) |
| 9981 | if test "$GXX" = yes; then |
| 9982 | if test $with_gnu_ld = no; then |
| 9983 | case "$host_cpu" in |
| 9984 | ia64*|hppa*64*) |
| 9985 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 9986 | ;; |
| 9987 | *) |
| 9988 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 9989 | ;; |
| 9990 | esac |
| 9991 | fi |
| 9992 | else |
| 9993 | # FIXME: insert proper C++ library support |
| 9994 | ld_shlibs_CXX=no |
| 9995 | fi |
| 9996 | ;; |
| 9997 | esac |
| 9998 | ;; |
| 9999 | irix5* | irix6*) |
| 10000 | case $cc_basename in |
| 10001 | CC) |
| 10002 | # SGI C++ |
| 10003 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
| 10004 | |
| 10005 | # Archives containing C++ object files must be created using |
| 10006 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 10007 | # necessary to make sure instantiated templates are included |
| 10008 | # in the archive. |
| 10009 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 10010 | ;; |
| 10011 | *) |
| 10012 | if test "$GXX" = yes; then |
| 10013 | if test "$with_gnu_ld" = no; then |
| 10014 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
| 10015 | else |
| 10016 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' |
| 10017 | fi |
| 10018 | fi |
| 10019 | link_all_deplibs_CXX=yes |
| 10020 | ;; |
| 10021 | esac |
| 10022 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10023 | hardcode_libdir_separator_CXX=: |
| 10024 | ;; |
| 10025 | linux*) |
| 10026 | case $cc_basename in |
| 10027 | KCC) |
| 10028 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 10029 | |
| 10030 | # KCC will only create a shared library if the output file |
| 10031 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 10032 | # to its proper name (with version) after linking. |
| 10033 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 10034 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
| 10035 | # Commands to make compiler produce verbose output that lists |
| 10036 | # what "hidden" libraries, object files and flags are used when |
| 10037 | # linking a shared library. |
| 10038 | # |
| 10039 | # There doesn't appear to be a way to prevent this compiler from |
| 10040 | # explicitly linking system object files so we need to strip them |
| 10041 | # from the output so that they don't get included in the library |
| 10042 | # dependencies. |
| 10043 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 10044 | |
| 10045 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 10046 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 10047 | |
| 10048 | # Archives containing C++ object files must be created using |
| 10049 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 10050 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 10051 | ;; |
| 10052 | icpc) |
| 10053 | # Intel C++ |
| 10054 | with_gnu_ld=yes |
| 10055 | archive_cmds_need_lc_CXX=no |
| 10056 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10057 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 10058 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 10059 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 10060 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 10061 | ;; |
| 10062 | cxx) |
| 10063 | # Compaq C++ |
| 10064 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10065 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
| 10066 | |
| 10067 | runpath_var=LD_RUN_PATH |
| 10068 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 10069 | hardcode_libdir_separator_CXX=: |
| 10070 | |
| 10071 | # Commands to make compiler produce verbose output that lists |
| 10072 | # what "hidden" libraries, object files and flags are used when |
| 10073 | # linking a shared library. |
| 10074 | # |
| 10075 | # There doesn't appear to be a way to prevent this compiler from |
| 10076 | # explicitly linking system object files so we need to strip them |
| 10077 | # from the output so that they don't get included in the library |
| 10078 | # dependencies. |
| 10079 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 10080 | ;; |
| 10081 | esac |
| 10082 | ;; |
| 10083 | lynxos*) |
| 10084 | # FIXME: insert proper C++ library support |
| 10085 | ld_shlibs_CXX=no |
| 10086 | ;; |
| 10087 | m88k*) |
| 10088 | # FIXME: insert proper C++ library support |
| 10089 | ld_shlibs_CXX=no |
| 10090 | ;; |
| 10091 | mvs*) |
| 10092 | case $cc_basename in |
| 10093 | cxx) |
| 10094 | # FIXME: insert proper C++ library support |
| 10095 | ld_shlibs_CXX=no |
| 10096 | ;; |
| 10097 | *) |
| 10098 | # FIXME: insert proper C++ library support |
| 10099 | ld_shlibs_CXX=no |
| 10100 | ;; |
| 10101 | esac |
| 10102 | ;; |
| 10103 | netbsd*) |
| 10104 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 10105 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 10106 | wlarc= |
| 10107 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 10108 | hardcode_direct_CXX=yes |
| 10109 | hardcode_shlibpath_var_CXX=no |
| 10110 | fi |
| 10111 | # Workaround some broken pre-1.5 toolchains |
| 10112 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 10113 | ;; |
| 10114 | osf3*) |
| 10115 | case $cc_basename in |
| 10116 | KCC) |
| 10117 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 10118 | |
| 10119 | # KCC will only create a shared library if the output file |
| 10120 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 10121 | # to its proper name (with version) after linking. |
| 10122 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 10123 | |
| 10124 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 10125 | hardcode_libdir_separator_CXX=: |
| 10126 | |
| 10127 | # Archives containing C++ object files must be created using |
| 10128 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 10129 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 10130 | |
| 10131 | ;; |
| 10132 | RCC) |
| 10133 | # Rational C++ 2.4.1 |
| 10134 | # FIXME: insert proper C++ library support |
| 10135 | ld_shlibs_CXX=no |
| 10136 | ;; |
| 10137 | cxx) |
| 10138 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 10139 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
| 10140 | |
| 10141 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10142 | hardcode_libdir_separator_CXX=: |
| 10143 | |
| 10144 | # Commands to make compiler produce verbose output that lists |
| 10145 | # what "hidden" libraries, object files and flags are used when |
| 10146 | # linking a shared library. |
| 10147 | # |
| 10148 | # There doesn't appear to be a way to prevent this compiler from |
| 10149 | # explicitly linking system object files so we need to strip them |
| 10150 | # from the output so that they don't get included in the library |
| 10151 | # dependencies. |
| 10152 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 10153 | ;; |
| 10154 | *) |
| 10155 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 10156 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 10157 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
| 10158 | |
| 10159 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10160 | hardcode_libdir_separator_CXX=: |
| 10161 | |
| 10162 | # Commands to make compiler produce verbose output that lists |
| 10163 | # what "hidden" libraries, object files and flags are used when |
| 10164 | # linking a shared library. |
| 10165 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 10166 | |
| 10167 | else |
| 10168 | # FIXME: insert proper C++ library support |
| 10169 | ld_shlibs_CXX=no |
| 10170 | fi |
| 10171 | ;; |
| 10172 | esac |
| 10173 | ;; |
| 10174 | osf4* | osf5*) |
| 10175 | case $cc_basename in |
| 10176 | KCC) |
| 10177 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 10178 | |
| 10179 | # KCC will only create a shared library if the output file |
| 10180 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 10181 | # to its proper name (with version) after linking. |
| 10182 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 10183 | |
| 10184 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 10185 | hardcode_libdir_separator_CXX=: |
| 10186 | |
| 10187 | # Archives containing C++ object files must be created using |
| 10188 | # the KAI C++ compiler. |
| 10189 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 10190 | ;; |
| 10191 | RCC) |
| 10192 | # Rational C++ 2.4.1 |
| 10193 | # FIXME: insert proper C++ library support |
| 10194 | ld_shlibs_CXX=no |
| 10195 | ;; |
| 10196 | cxx) |
| 10197 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 10198 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
| 10199 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 10200 | echo "-hidden">> $lib.exp~ |
| 10201 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ |
| 10202 | $rm $lib.exp' |
| 10203 | |
| 10204 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 10205 | hardcode_libdir_separator_CXX=: |
| 10206 | |
| 10207 | # Commands to make compiler produce verbose output that lists |
| 10208 | # what "hidden" libraries, object files and flags are used when |
| 10209 | # linking a shared library. |
| 10210 | # |
| 10211 | # There doesn't appear to be a way to prevent this compiler from |
| 10212 | # explicitly linking system object files so we need to strip them |
| 10213 | # from the output so that they don't get included in the library |
| 10214 | # dependencies. |
| 10215 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 10216 | ;; |
| 10217 | *) |
| 10218 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 10219 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 10220 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
| 10221 | |
| 10222 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10223 | hardcode_libdir_separator_CXX=: |
| 10224 | |
| 10225 | # Commands to make compiler produce verbose output that lists |
| 10226 | # what "hidden" libraries, object files and flags are used when |
| 10227 | # linking a shared library. |
| 10228 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 10229 | |
| 10230 | else |
| 10231 | # FIXME: insert proper C++ library support |
| 10232 | ld_shlibs_CXX=no |
| 10233 | fi |
| 10234 | ;; |
| 10235 | esac |
| 10236 | ;; |
| 10237 | psos*) |
| 10238 | # FIXME: insert proper C++ library support |
| 10239 | ld_shlibs_CXX=no |
| 10240 | ;; |
| 10241 | sco*) |
| 10242 | archive_cmds_need_lc_CXX=no |
| 10243 | case $cc_basename in |
| 10244 | CC) |
| 10245 | # FIXME: insert proper C++ library support |
| 10246 | ld_shlibs_CXX=no |
| 10247 | ;; |
| 10248 | *) |
| 10249 | # FIXME: insert proper C++ library support |
| 10250 | ld_shlibs_CXX=no |
| 10251 | ;; |
| 10252 | esac |
| 10253 | ;; |
| 10254 | sunos4*) |
| 10255 | case $cc_basename in |
| 10256 | CC) |
| 10257 | # Sun C++ 4.x |
| 10258 | # FIXME: insert proper C++ library support |
| 10259 | ld_shlibs_CXX=no |
| 10260 | ;; |
| 10261 | lcc) |
| 10262 | # Lucid |
| 10263 | # FIXME: insert proper C++ library support |
| 10264 | ld_shlibs_CXX=no |
| 10265 | ;; |
| 10266 | *) |
| 10267 | # FIXME: insert proper C++ library support |
| 10268 | ld_shlibs_CXX=no |
| 10269 | ;; |
| 10270 | esac |
| 10271 | ;; |
| 10272 | solaris*) |
| 10273 | case $cc_basename in |
| 10274 | CC) |
| 10275 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 10276 | no_undefined_flag_CXX=' -zdefs' |
| 10277 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10278 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 10279 | $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 10280 | |
| 10281 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 10282 | hardcode_shlibpath_var_CXX=no |
| 10283 | case $host_os in |
| 10284 | solaris2.0-5 | solaris2.0-5.*) ;; |
| 10285 | *) |
| 10286 | # The C++ compiler is used as linker so we must use $wl |
| 10287 | # flag to pass the commands to the underlying system |
| 10288 | # linker. |
| 10289 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 10290 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 10291 | ;; |
| 10292 | esac |
| 10293 | link_all_deplibs_CXX=yes |
| 10294 | |
| 10295 | # Commands to make compiler produce verbose output that lists |
| 10296 | # what "hidden" libraries, object files and flags are used when |
| 10297 | # linking a shared library. |
| 10298 | # |
| 10299 | # There doesn't appear to be a way to prevent this compiler from |
| 10300 | # explicitly linking system object files so we need to strip them |
| 10301 | # from the output so that they don't get included in the library |
| 10302 | # dependencies. |
| 10303 | output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 10304 | |
| 10305 | # Archives containing C++ object files must be created using |
| 10306 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 10307 | # necessary to make sure instantiated templates are included |
| 10308 | # in the archive. |
| 10309 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 10310 | ;; |
| 10311 | gcx) |
| 10312 | # Green Hills C++ Compiler |
| 10313 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 10314 | |
| 10315 | # The C++ compiler must be used to create the archive. |
| 10316 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 10317 | ;; |
| 10318 | *) |
| 10319 | # GNU C++ compiler with Solaris linker |
| 10320 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 10321 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 10322 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
| 10323 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 10324 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 10325 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 10326 | |
| 10327 | # Commands to make compiler produce verbose output that lists |
| 10328 | # what "hidden" libraries, object files and flags are used when |
| 10329 | # linking a shared library. |
| 10330 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 10331 | else |
| 10332 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 10333 | # platform. |
| 10334 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 10335 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 10336 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 10337 | |
| 10338 | # Commands to make compiler produce verbose output that lists |
| 10339 | # what "hidden" libraries, object files and flags are used when |
| 10340 | # linking a shared library. |
| 10341 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 10342 | fi |
| 10343 | |
| 10344 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 10345 | fi |
| 10346 | ;; |
| 10347 | esac |
| 10348 | ;; |
| 10349 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 10350 | archive_cmds_need_lc_CXX=no |
| 10351 | ;; |
| 10352 | tandem*) |
| 10353 | case $cc_basename in |
| 10354 | NCC) |
| 10355 | # NonStop-UX NCC 3.20 |
| 10356 | # FIXME: insert proper C++ library support |
| 10357 | ld_shlibs_CXX=no |
| 10358 | ;; |
| 10359 | *) |
| 10360 | # FIXME: insert proper C++ library support |
| 10361 | ld_shlibs_CXX=no |
| 10362 | ;; |
| 10363 | esac |
| 10364 | ;; |
| 10365 | vxworks*) |
| 10366 | # FIXME: insert proper C++ library support |
| 10367 | ld_shlibs_CXX=no |
| 10368 | ;; |
| 10369 | *) |
| 10370 | # FIXME: insert proper C++ library support |
| 10371 | ld_shlibs_CXX=no |
| 10372 | ;; |
| 10373 | esac |
| 10374 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 10375 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 10376 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 10377 | |
| 10378 | GCC_CXX="$GXX" |
| 10379 | LD_CXX="$LD" |
| 10380 | |
| 10381 | ## CAVEAT EMPTOR: |
| 10382 | ## There is no encapsulation within the following macros, do not change |
| 10383 | ## the running order or otherwise move them around unless you know exactly |
| 10384 | ## what you are doing... |
| 10385 | |
| 10386 | cat > conftest.$ac_ext <<EOF |
| 10387 | class Foo |
| 10388 | { |
| 10389 | public: |
| 10390 | Foo (void) { a = 0; } |
| 10391 | private: |
| 10392 | int a; |
| 10393 | }; |
| 10394 | EOF |
| 10395 | |
| 10396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10397 | (eval $ac_compile) 2>&5 |
| 10398 | ac_status=$? |
| 10399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10400 | (exit $ac_status); }; then |
| 10401 | # Parse the compiler output and extract the necessary |
| 10402 | # objects, libraries and library flags. |
| 10403 | |
| 10404 | # Sentinel used to keep track of whether or not we are before |
| 10405 | # the conftest object file. |
| 10406 | pre_test_object_deps_done=no |
| 10407 | |
| 10408 | # The `*' in the case matches for architectures that use `case' in |
| 10409 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 10410 | # eval without this substitution. |
| 10411 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
| 10412 | |
| 10413 | for p in `eval $output_verbose_link_cmd`; do |
| 10414 | case $p in |
| 10415 | |
| 10416 | -L* | -R* | -l*) |
| 10417 | # Some compilers place space between "-{L,R}" and the path. |
| 10418 | # Remove the space. |
| 10419 | if test $p = "-L" \ |
| 10420 | || test $p = "-R"; then |
| 10421 | prev=$p |
| 10422 | continue |
| 10423 | else |
| 10424 | prev= |
| 10425 | fi |
| 10426 | |
| 10427 | if test "$pre_test_object_deps_done" = no; then |
| 10428 | case $p in |
| 10429 | -L* | -R*) |
| 10430 | # Internal compiler library paths should come after those |
| 10431 | # provided the user. The postdeps already come after the |
| 10432 | # user supplied libs so there is no need to process them. |
| 10433 | if test -z "$compiler_lib_search_path_CXX"; then |
| 10434 | compiler_lib_search_path_CXX="${prev}${p}" |
| 10435 | else |
| 10436 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 10437 | fi |
| 10438 | ;; |
| 10439 | # The "-l" case would never come before the object being |
| 10440 | # linked, so don't bother handling this case. |
| 10441 | esac |
| 10442 | else |
| 10443 | if test -z "$postdeps_CXX"; then |
| 10444 | postdeps_CXX="${prev}${p}" |
| 10445 | else |
| 10446 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 10447 | fi |
| 10448 | fi |
| 10449 | ;; |
| 10450 | |
| 10451 | *.$objext) |
| 10452 | # This assumes that the test object file only shows up |
| 10453 | # once in the compiler output. |
| 10454 | if test "$p" = "conftest.$objext"; then |
| 10455 | pre_test_object_deps_done=yes |
| 10456 | continue |
| 10457 | fi |
| 10458 | |
| 10459 | if test "$pre_test_object_deps_done" = no; then |
| 10460 | if test -z "$predep_objects_CXX"; then |
| 10461 | predep_objects_CXX="$p" |
| 10462 | else |
| 10463 | predep_objects_CXX="$predep_objects_CXX $p" |
| 10464 | fi |
| 10465 | else |
| 10466 | if test -z "$postdep_objects_CXX"; then |
| 10467 | postdep_objects_CXX="$p" |
| 10468 | else |
| 10469 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 10470 | fi |
| 10471 | fi |
| 10472 | ;; |
| 10473 | |
| 10474 | *) ;; # Ignore the rest. |
| 10475 | |
| 10476 | esac |
| 10477 | done |
| 10478 | |
| 10479 | # Clean up. |
| 10480 | rm -f a.out a.exe |
| 10481 | else |
| 10482 | echo "libtool.m4: error: problem compiling CXX test program" |
| 10483 | fi |
| 10484 | |
| 10485 | $rm -f confest.$objext |
| 10486 | |
| 10487 | case " $postdeps_CXX " in |
| 10488 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 10489 | esac |
| 10490 | |
| 10491 | lt_prog_compiler_wl_CXX= |
| 10492 | lt_prog_compiler_pic_CXX= |
| 10493 | lt_prog_compiler_static_CXX= |
| 10494 | |
| 10495 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 10496 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 10497 | |
| 10498 | # C++ specific cases for pic, static, wl, etc. |
| 10499 | if test "$GXX" = yes; then |
| 10500 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10501 | lt_prog_compiler_static_CXX='-static' |
| 10502 | |
| 10503 | case $host_os in |
| 10504 | aix*) |
| 10505 | # All AIX code is PIC. |
| 10506 | if test "$host_cpu" = ia64; then |
| 10507 | # AIX 5 now supports IA64 processor |
| 10508 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10509 | fi |
| 10510 | ;; |
| 10511 | amigaos*) |
| 10512 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 10513 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 10514 | # like `-m68040'. |
| 10515 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 10516 | ;; |
| 10517 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 10518 | # PIC is the default for these OSes. |
| 10519 | ;; |
| 10520 | mingw* | os2* | pw32*) |
| 10521 | # This hack is so that the source file can tell whether it is being |
| 10522 | # built for inclusion in a dll (and should export symbols for example). |
| 10523 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 10524 | ;; |
| 10525 | darwin* | rhapsody*) |
| 10526 | # PIC is the default on this platform |
| 10527 | # Common symbols not allowed in MH_DYLIB files |
| 10528 | lt_prog_compiler_pic_CXX='-fno-common' |
| 10529 | ;; |
| 10530 | *djgpp*) |
| 10531 | # DJGPP does not support shared libraries at all |
| 10532 | lt_prog_compiler_pic_CXX= |
| 10533 | ;; |
| 10534 | sysv4*MP*) |
| 10535 | if test -d /usr/nec; then |
| 10536 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 10537 | fi |
| 10538 | ;; |
| 10539 | hpux*) |
| 10540 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 10541 | # not for PA HP-UX. |
| 10542 | case "$host_cpu" in |
| 10543 | hppa*64*|ia64*) |
| 10544 | ;; |
| 10545 | *) |
| 10546 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10547 | ;; |
| 10548 | esac |
| 10549 | ;; |
| 10550 | *) |
| 10551 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10552 | ;; |
| 10553 | esac |
| 10554 | else |
| 10555 | case $host_os in |
| 10556 | aix4* | aix5*) |
| 10557 | # All AIX code is PIC. |
| 10558 | if test "$host_cpu" = ia64; then |
| 10559 | # AIX 5 now supports IA64 processor |
| 10560 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10561 | else |
| 10562 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 10563 | fi |
| 10564 | ;; |
| 10565 | chorus*) |
| 10566 | case $cc_basename in |
| 10567 | cxch68) |
| 10568 | # Green Hills C++ Compiler |
| 10569 | # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
| 10570 | ;; |
| 10571 | esac |
| 10572 | ;; |
| 10573 | dgux*) |
| 10574 | case $cc_basename in |
| 10575 | ec++) |
| 10576 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10577 | ;; |
| 10578 | ghcx) |
| 10579 | # Green Hills C++ Compiler |
| 10580 | lt_prog_compiler_pic_CXX='-pic' |
| 10581 | ;; |
| 10582 | *) |
| 10583 | ;; |
| 10584 | esac |
| 10585 | ;; |
| 10586 | freebsd*) |
| 10587 | # FreeBSD uses GNU C++ |
| 10588 | ;; |
| 10589 | hpux9* | hpux10* | hpux11*) |
| 10590 | case $cc_basename in |
| 10591 | CC) |
| 10592 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10593 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 10594 | if test "$host_cpu" != ia64; then |
| 10595 | lt_prog_compiler_pic_CXX='+Z' |
| 10596 | fi |
| 10597 | ;; |
| 10598 | aCC) |
| 10599 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10600 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 10601 | case "$host_cpu" in |
| 10602 | hppa*64*|ia64*) |
| 10603 | # +Z the default |
| 10604 | ;; |
| 10605 | *) |
| 10606 | lt_prog_compiler_pic_CXX='+Z' |
| 10607 | ;; |
| 10608 | esac |
| 10609 | ;; |
| 10610 | *) |
| 10611 | ;; |
| 10612 | esac |
| 10613 | ;; |
| 10614 | irix5* | irix6* | nonstopux*) |
| 10615 | case $cc_basename in |
| 10616 | CC) |
| 10617 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10618 | lt_prog_compiler_static_CXX='-non_shared' |
| 10619 | # CC pic flag -KPIC is the default. |
| 10620 | ;; |
| 10621 | *) |
| 10622 | ;; |
| 10623 | esac |
| 10624 | ;; |
| 10625 | linux*) |
| 10626 | case $cc_basename in |
| 10627 | KCC) |
| 10628 | # KAI C++ Compiler |
| 10629 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 10630 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10631 | ;; |
| 10632 | icpc) |
| 10633 | # Intel C++ |
| 10634 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10635 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10636 | lt_prog_compiler_static_CXX='-static' |
| 10637 | ;; |
| 10638 | cxx) |
| 10639 | # Compaq C++ |
| 10640 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 10641 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 10642 | lt_prog_compiler_pic_CXX= |
| 10643 | lt_prog_compiler_static_CXX='-non_shared' |
| 10644 | ;; |
| 10645 | *) |
| 10646 | ;; |
| 10647 | esac |
| 10648 | ;; |
| 10649 | lynxos*) |
| 10650 | ;; |
| 10651 | m88k*) |
| 10652 | ;; |
| 10653 | mvs*) |
| 10654 | case $cc_basename in |
| 10655 | cxx) |
| 10656 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 10657 | ;; |
| 10658 | *) |
| 10659 | ;; |
| 10660 | esac |
| 10661 | ;; |
| 10662 | netbsd*) |
| 10663 | ;; |
| 10664 | osf3* | osf4* | osf5*) |
| 10665 | case $cc_basename in |
| 10666 | KCC) |
| 10667 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 10668 | ;; |
| 10669 | RCC) |
| 10670 | # Rational C++ 2.4.1 |
| 10671 | lt_prog_compiler_pic_CXX='-pic' |
| 10672 | ;; |
| 10673 | cxx) |
| 10674 | # Digital/Compaq C++ |
| 10675 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10676 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 10677 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 10678 | lt_prog_compiler_pic_CXX= |
| 10679 | lt_prog_compiler_static_CXX='-non_shared' |
| 10680 | ;; |
| 10681 | *) |
| 10682 | ;; |
| 10683 | esac |
| 10684 | ;; |
| 10685 | psos*) |
| 10686 | ;; |
| 10687 | sco*) |
| 10688 | case $cc_basename in |
| 10689 | CC) |
| 10690 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10691 | ;; |
| 10692 | *) |
| 10693 | ;; |
| 10694 | esac |
| 10695 | ;; |
| 10696 | solaris*) |
| 10697 | case $cc_basename in |
| 10698 | CC) |
| 10699 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 10700 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10701 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10702 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 10703 | ;; |
| 10704 | gcx) |
| 10705 | # Green Hills C++ Compiler |
| 10706 | lt_prog_compiler_pic_CXX='-PIC' |
| 10707 | ;; |
| 10708 | *) |
| 10709 | ;; |
| 10710 | esac |
| 10711 | ;; |
| 10712 | sunos4*) |
| 10713 | case $cc_basename in |
| 10714 | CC) |
| 10715 | # Sun C++ 4.x |
| 10716 | lt_prog_compiler_pic_CXX='-pic' |
| 10717 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10718 | ;; |
| 10719 | lcc) |
| 10720 | # Lucid |
| 10721 | lt_prog_compiler_pic_CXX='-pic' |
| 10722 | ;; |
| 10723 | *) |
| 10724 | ;; |
| 10725 | esac |
| 10726 | ;; |
| 10727 | tandem*) |
| 10728 | case $cc_basename in |
| 10729 | NCC) |
| 10730 | # NonStop-UX NCC 3.20 |
| 10731 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10732 | ;; |
| 10733 | *) |
| 10734 | ;; |
| 10735 | esac |
| 10736 | ;; |
| 10737 | unixware*) |
| 10738 | ;; |
| 10739 | vxworks*) |
| 10740 | ;; |
| 10741 | *) |
| 10742 | lt_prog_compiler_can_build_shared_CXX=no |
| 10743 | ;; |
| 10744 | esac |
| 10745 | fi |
| 10746 | |
| 10747 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 10748 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
| 10749 | |
| 10750 | # |
| 10751 | # Check to make sure the PIC flag actually works. |
| 10752 | # |
| 10753 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 10754 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 10755 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
| 10756 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 10757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10758 | else |
| 10759 | lt_prog_compiler_pic_works_CXX=no |
| 10760 | ac_outfile=conftest.$ac_objext |
| 10761 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10762 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 10763 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10764 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10765 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10766 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10767 | # The option is referenced via a variable to avoid confusing sed. |
| 10768 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10769 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 10770 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10771 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 10772 | (eval echo "\"\$as_me:10772: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10773 | (eval "$lt_compile" 2>conftest.err) |
| 10774 | ac_status=$? |
| 10775 | cat conftest.err >&5 |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 10776 | echo "$as_me:10776: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10777 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 10778 | # The compiler can only warn and ignore the option if not recognized |
| 10779 | # So say no if there are warnings |
| 10780 | if test ! -s conftest.err; then |
| 10781 | lt_prog_compiler_pic_works_CXX=yes |
| 10782 | fi |
| 10783 | fi |
| 10784 | $rm conftest* |
| 10785 | |
| 10786 | fi |
| 10787 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 10788 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
| 10789 | |
| 10790 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 10791 | case $lt_prog_compiler_pic_CXX in |
| 10792 | "" | " "*) ;; |
| 10793 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 10794 | esac |
| 10795 | else |
| 10796 | lt_prog_compiler_pic_CXX= |
| 10797 | lt_prog_compiler_can_build_shared_CXX=no |
| 10798 | fi |
| 10799 | |
| 10800 | fi |
| 10801 | case "$host_os" in |
| 10802 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 10803 | *djgpp*) |
| 10804 | lt_prog_compiler_pic_CXX= |
| 10805 | ;; |
| 10806 | *) |
| 10807 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 10808 | ;; |
| 10809 | esac |
| 10810 | |
| 10811 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 10812 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 10813 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 10814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10815 | else |
| 10816 | lt_cv_prog_compiler_c_o_CXX=no |
| 10817 | $rm -r conftest 2>/dev/null |
| 10818 | mkdir conftest |
| 10819 | cd conftest |
| 10820 | mkdir out |
| 10821 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10822 | |
| 10823 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 10824 | # that will create temporary files in the current directory regardless of |
| 10825 | # the output directory. Thus, making CWD read-only will cause this test |
| 10826 | # to fail, enabling locking or at least warning the user not to do parallel |
| 10827 | # builds. |
| 10828 | chmod -w . |
| 10829 | |
| 10830 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 10831 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10832 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10833 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10834 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10835 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10836 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 10837 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10838 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 10839 | (eval echo "\"\$as_me:10839: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10840 | (eval "$lt_compile" 2>out/conftest.err) |
| 10841 | ac_status=$? |
| 10842 | cat out/conftest.err >&5 |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 10843 | echo "$as_me:10843: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10844 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 10845 | then |
| 10846 | # The compiler can only warn and ignore the option if not recognized |
| 10847 | # So say no if there are warnings |
| 10848 | if test ! -s out/conftest.err; then |
| 10849 | lt_cv_prog_compiler_c_o_CXX=yes |
| 10850 | fi |
| 10851 | fi |
| 10852 | chmod u+w . |
| 10853 | $rm conftest* out/* |
| 10854 | rmdir out |
| 10855 | cd .. |
| 10856 | rmdir conftest |
| 10857 | $rm conftest* |
| 10858 | |
| 10859 | fi |
| 10860 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 10861 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
| 10862 | |
| 10863 | |
| 10864 | hard_links="nottested" |
| 10865 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 10866 | # do not overwrite the value of need_locks provided by the user |
| 10867 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 10868 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 10869 | hard_links=yes |
| 10870 | $rm conftest* |
| 10871 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 10872 | touch conftest.a |
| 10873 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 10874 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 10875 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 10876 | echo "${ECHO_T}$hard_links" >&6 |
| 10877 | if test "$hard_links" = no; then |
| 10878 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 10879 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 10880 | need_locks=warn |
| 10881 | fi |
| 10882 | else |
| 10883 | need_locks=no |
| 10884 | fi |
| 10885 | |
| 10886 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 10887 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 10888 | |
| 10889 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 10890 | case $host_os in |
| 10891 | aix4* | aix5*) |
| 10892 | # If we're using GNU nm, then we don't want the "-C" option. |
| 10893 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 10894 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 10895 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 10896 | else |
| 10897 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 10898 | fi |
| 10899 | ;; |
| 10900 | pw32*) |
| 10901 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 10902 | ;; |
| 10903 | cygwin* | mingw*) |
| 10904 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 10905 | ;; |
| 10906 | *) |
| 10907 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 10908 | ;; |
| 10909 | esac |
| 10910 | |
| 10911 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 10912 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 10913 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 10914 | |
| 10915 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10916 | if test "$GCC" = yes; then |
| 10917 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10918 | fi |
| 10919 | |
| 10920 | # |
| 10921 | # Do we need to explicitly link libc? |
| 10922 | # |
| 10923 | case "x$archive_cmds_need_lc_CXX" in |
| 10924 | x|xyes) |
| 10925 | # Assume -lc should be added |
| 10926 | archive_cmds_need_lc_CXX=yes |
| 10927 | |
| 10928 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 10929 | case $archive_cmds_CXX in |
| 10930 | *'~'*) |
| 10931 | # FIXME: we may have to deal with multi-command sequences. |
| 10932 | ;; |
| 10933 | '$CC '*) |
| 10934 | # Test whether the compiler implicitly links with -lc since on some |
| 10935 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 10936 | # to ld, don't add -lc before -lgcc. |
| 10937 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 10938 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 10939 | $rm conftest* |
| 10940 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10941 | |
| 10942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10943 | (eval $ac_compile) 2>&5 |
| 10944 | ac_status=$? |
| 10945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10946 | (exit $ac_status); } 2>conftest.err; then |
| 10947 | soname=conftest |
| 10948 | lib=conftest |
| 10949 | libobjs=conftest.$ac_objext |
| 10950 | deplibs= |
| 10951 | wl=$lt_prog_compiler_wl_CXX |
| 10952 | compiler_flags=-v |
| 10953 | linker_flags=-v |
| 10954 | verstring= |
| 10955 | output_objdir=. |
| 10956 | libname=conftest |
| 10957 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 10958 | allow_undefined_flag_CXX= |
| 10959 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 10960 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 10961 | ac_status=$? |
| 10962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10963 | (exit $ac_status); } |
| 10964 | then |
| 10965 | archive_cmds_need_lc_CXX=no |
| 10966 | else |
| 10967 | archive_cmds_need_lc_CXX=yes |
| 10968 | fi |
| 10969 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 10970 | else |
| 10971 | cat conftest.err 1>&5 |
| 10972 | fi |
| 10973 | $rm conftest* |
| 10974 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 10975 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
| 10976 | ;; |
| 10977 | esac |
| 10978 | fi |
| 10979 | ;; |
| 10980 | esac |
| 10981 | |
| 10982 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 10983 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 10984 | hardcode_action_CXX= |
| 10985 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 10986 | test -n "$runpath_var CXX" || \ |
| 10987 | test "X$hardcode_automatic_CXX"="Xyes" ; then |
| 10988 | |
| 10989 | # We can hardcode non-existant directories. |
| 10990 | if test "$hardcode_direct_CXX" != no && |
| 10991 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 10992 | # have to relink, otherwise we might link with an installed library |
| 10993 | # when we should be linking with a yet-to-be-installed one |
| 10994 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 10995 | test "$hardcode_minus_L_CXX" != no; then |
| 10996 | # Linking always hardcodes the temporary library directory. |
| 10997 | hardcode_action_CXX=relink |
| 10998 | else |
| 10999 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 11000 | hardcode_action_CXX=immediate |
| 11001 | fi |
| 11002 | else |
| 11003 | # We cannot hardcode anything, or else we can only hardcode existing |
| 11004 | # directories. |
| 11005 | hardcode_action_CXX=unsupported |
| 11006 | fi |
| 11007 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 11008 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
| 11009 | |
| 11010 | if test "$hardcode_action_CXX" = relink; then |
| 11011 | # Fast installation is not supported |
| 11012 | enable_fast_install=no |
| 11013 | elif test "$shlibpath_overrides_runpath" = yes || |
| 11014 | test "$enable_shared" = no; then |
| 11015 | # Fast installation is not necessary |
| 11016 | enable_fast_install=needless |
| 11017 | fi |
| 11018 | |
| 11019 | striplib= |
| 11020 | old_striplib= |
| 11021 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 11022 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 11023 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 11024 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 11025 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 11026 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11027 | echo "${ECHO_T}yes" >&6 |
| 11028 | else |
| 11029 | # FIXME - insert some real tests, host_os isn't really good enough |
| 11030 | case $host_os in |
| 11031 | darwin*) |
| 11032 | if test -n "$STRIP" ; then |
| 11033 | striplib="$STRIP -x" |
| 11034 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11035 | echo "${ECHO_T}yes" >&6 |
| 11036 | else |
| 11037 | echo "$as_me:$LINENO: result: no" >&5 |
| 11038 | echo "${ECHO_T}no" >&6 |
| 11039 | fi |
| 11040 | ;; |
| 11041 | *) |
| 11042 | echo "$as_me:$LINENO: result: no" >&5 |
| 11043 | echo "${ECHO_T}no" >&6 |
| 11044 | ;; |
| 11045 | esac |
| 11046 | fi |
| 11047 | |
| 11048 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 11049 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 11050 | library_names_spec= |
| 11051 | libname_spec='lib$name' |
| 11052 | soname_spec= |
| 11053 | shrext=".so" |
| 11054 | postinstall_cmds= |
| 11055 | postuninstall_cmds= |
| 11056 | finish_cmds= |
| 11057 | finish_eval= |
| 11058 | shlibpath_var= |
| 11059 | shlibpath_overrides_runpath=unknown |
| 11060 | version_type=none |
| 11061 | dynamic_linker="$host_os ld.so" |
| 11062 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 11063 | if test "$GCC" = yes; then |
| 11064 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 11065 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 11066 | # if the path contains ";" then we assume it to be the separator |
| 11067 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 11068 | # assumed that no part of a normal pathname contains ";" but that should |
| 11069 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 11070 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 11071 | else |
| 11072 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 11073 | fi |
| 11074 | else |
| 11075 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 11076 | fi |
| 11077 | need_lib_prefix=unknown |
| 11078 | hardcode_into_libs=no |
| 11079 | |
| 11080 | # when you set need_version to no, make sure it does not cause -set_version |
| 11081 | # flags to be left without arguments |
| 11082 | need_version=unknown |
| 11083 | |
| 11084 | case $host_os in |
| 11085 | aix3*) |
| 11086 | version_type=linux |
| 11087 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 11088 | shlibpath_var=LIBPATH |
| 11089 | |
| 11090 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 11091 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11092 | ;; |
| 11093 | |
| 11094 | aix4* | aix5*) |
| 11095 | version_type=linux |
| 11096 | need_lib_prefix=no |
| 11097 | need_version=no |
| 11098 | hardcode_into_libs=yes |
| 11099 | if test "$host_cpu" = ia64; then |
| 11100 | # AIX 5 supports IA64 |
| 11101 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 11102 | shlibpath_var=LD_LIBRARY_PATH |
| 11103 | else |
| 11104 | # With GCC up to 2.95.x, collect2 would create an import file |
| 11105 | # for dependence libraries. The import file would start with |
| 11106 | # the line `#! .'. This would cause the generated library to |
| 11107 | # depend on `.', always an invalid library. This was fixed in |
| 11108 | # development snapshots of GCC prior to 3.0. |
| 11109 | case $host_os in |
| 11110 | aix4 | aix4.[01] | aix4.[01].*) |
| 11111 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 11112 | echo ' yes ' |
| 11113 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 11114 | : |
| 11115 | else |
| 11116 | can_build_shared=no |
| 11117 | fi |
| 11118 | ;; |
| 11119 | esac |
| 11120 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 11121 | # soname into executable. Probably we can add versioning support to |
| 11122 | # collect2, so additional links can be useful in future. |
| 11123 | if test "$aix_use_runtimelinking" = yes; then |
| 11124 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 11125 | # instead of lib<name>.a to let people know that these are not |
| 11126 | # typical AIX shared libraries. |
| 11127 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11128 | else |
| 11129 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 11130 | # and later when we are not doing run time linking. |
| 11131 | library_names_spec='${libname}${release}.a $libname.a' |
| 11132 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11133 | fi |
| 11134 | shlibpath_var=LIBPATH |
| 11135 | fi |
| 11136 | ;; |
| 11137 | |
| 11138 | amigaos*) |
| 11139 | library_names_spec='$libname.ixlibrary $libname.a' |
| 11140 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 11141 | 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' |
| 11142 | ;; |
| 11143 | |
| 11144 | beos*) |
| 11145 | library_names_spec='${libname}${shared_ext}' |
| 11146 | dynamic_linker="$host_os ld.so" |
| 11147 | shlibpath_var=LIBRARY_PATH |
| 11148 | ;; |
| 11149 | |
| 11150 | bsdi4*) |
| 11151 | version_type=linux |
| 11152 | need_version=no |
| 11153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11154 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11155 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 11156 | shlibpath_var=LD_LIBRARY_PATH |
| 11157 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 11158 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 11159 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 11160 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 11161 | # libtool to hard-code these into programs |
| 11162 | ;; |
| 11163 | |
| 11164 | cygwin* | mingw* | pw32*) |
| 11165 | version_type=windows |
| 11166 | shrext=".dll" |
| 11167 | need_version=no |
| 11168 | need_lib_prefix=no |
| 11169 | |
| 11170 | case $GCC,$host_os in |
| 11171 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 11172 | library_names_spec='$libname.dll.a' |
| 11173 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 11174 | postinstall_cmds='base_file=`basename \${file}`~ |
| 11175 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 11176 | dldir=$destdir/`dirname \$dlpath`~ |
| 11177 | test -d \$dldir || mkdir -p \$dldir~ |
| 11178 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 11179 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 11180 | dlpath=$dir/\$dldll~ |
| 11181 | $rm \$dlpath' |
| 11182 | shlibpath_overrides_runpath=yes |
| 11183 | |
| 11184 | case $host_os in |
| 11185 | cygwin*) |
| 11186 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 11187 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 11188 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" |
| 11189 | ;; |
| 11190 | mingw*) |
| 11191 | # MinGW DLLs use traditional 'lib' prefix |
| 11192 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 11193 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 11194 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 11195 | # It is most probably a Windows format PATH printed by |
| 11196 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 11197 | # path with ; separators, and with drive letters. We can handle the |
| 11198 | # drive letters (cygwin fileutils understands them), so leave them, |
| 11199 | # especially as we might pass files found there to a mingw objdump, |
| 11200 | # which wouldn't understand a cygwinified path. Ahh. |
| 11201 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 11202 | else |
| 11203 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 11204 | fi |
| 11205 | ;; |
| 11206 | pw32*) |
| 11207 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 11208 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 11209 | ;; |
| 11210 | esac |
| 11211 | ;; |
| 11212 | |
| 11213 | *) |
| 11214 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 11215 | ;; |
| 11216 | esac |
| 11217 | dynamic_linker='Win32 ld.exe' |
| 11218 | # FIXME: first we should search . and the directory the executable is in |
| 11219 | shlibpath_var=PATH |
| 11220 | ;; |
| 11221 | |
| 11222 | darwin* | rhapsody*) |
| 11223 | dynamic_linker="$host_os dyld" |
| 11224 | version_type=darwin |
| 11225 | need_lib_prefix=no |
| 11226 | need_version=no |
| 11227 | # FIXME: Relying on posixy $() will cause problems for |
| 11228 | # cross-compilation, but unfortunately the echo tests do not |
| 11229 | # yet detect zsh echo's removal of \ escapes. |
| 11230 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 11231 | soname_spec='${libname}${release}${major}$shared_ext' |
| 11232 | shlibpath_overrides_runpath=yes |
| 11233 | shlibpath_var=DYLD_LIBRARY_PATH |
| 11234 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 11235 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 11236 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 11237 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 11238 | fi |
| 11239 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 11240 | ;; |
| 11241 | |
| 11242 | dgux*) |
| 11243 | version_type=linux |
| 11244 | need_lib_prefix=no |
| 11245 | need_version=no |
| 11246 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 11247 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11248 | shlibpath_var=LD_LIBRARY_PATH |
| 11249 | ;; |
| 11250 | |
| 11251 | freebsd1*) |
| 11252 | dynamic_linker=no |
| 11253 | ;; |
| 11254 | |
| 11255 | freebsd*) |
| 11256 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 11257 | version_type=freebsd-$objformat |
| 11258 | case $version_type in |
| 11259 | freebsd-elf*) |
| 11260 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11261 | need_version=no |
| 11262 | need_lib_prefix=no |
| 11263 | ;; |
| 11264 | freebsd-*) |
| 11265 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 11266 | need_version=yes |
| 11267 | ;; |
| 11268 | esac |
| 11269 | shlibpath_var=LD_LIBRARY_PATH |
| 11270 | case $host_os in |
| 11271 | freebsd2*) |
| 11272 | shlibpath_overrides_runpath=yes |
| 11273 | ;; |
| 11274 | freebsd3.01* | freebsdelf3.01*) |
| 11275 | shlibpath_overrides_runpath=yes |
| 11276 | hardcode_into_libs=yes |
| 11277 | ;; |
| 11278 | *) # from 3.2 on |
| 11279 | shlibpath_overrides_runpath=no |
| 11280 | hardcode_into_libs=yes |
| 11281 | ;; |
| 11282 | esac |
| 11283 | ;; |
| 11284 | |
| 11285 | gnu*) |
| 11286 | version_type=linux |
| 11287 | need_lib_prefix=no |
| 11288 | need_version=no |
| 11289 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 11290 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11291 | shlibpath_var=LD_LIBRARY_PATH |
| 11292 | hardcode_into_libs=yes |
| 11293 | ;; |
| 11294 | |
| 11295 | hpux9* | hpux10* | hpux11*) |
| 11296 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 11297 | # link against other versions. |
| 11298 | version_type=sunos |
| 11299 | need_lib_prefix=no |
| 11300 | need_version=no |
| 11301 | case "$host_cpu" in |
| 11302 | ia64*) |
| 11303 | shrext='.so' |
| 11304 | hardcode_into_libs=yes |
| 11305 | dynamic_linker="$host_os dld.so" |
| 11306 | shlibpath_var=LD_LIBRARY_PATH |
| 11307 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 11308 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11309 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11310 | if test "X$HPUX_IA64_MODE" = X32; then |
| 11311 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 11312 | else |
| 11313 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 11314 | fi |
| 11315 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 11316 | ;; |
| 11317 | hppa*64*) |
| 11318 | shrext='.sl' |
| 11319 | hardcode_into_libs=yes |
| 11320 | dynamic_linker="$host_os dld.sl" |
| 11321 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 11322 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 11323 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11324 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11325 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 11326 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 11327 | ;; |
| 11328 | *) |
| 11329 | shrext='.sl' |
| 11330 | dynamic_linker="$host_os dld.sl" |
| 11331 | shlibpath_var=SHLIB_PATH |
| 11332 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 11333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11334 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11335 | ;; |
| 11336 | esac |
| 11337 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 11338 | postinstall_cmds='chmod 555 $lib' |
| 11339 | ;; |
| 11340 | |
| 11341 | irix5* | irix6* | nonstopux*) |
| 11342 | case $host_os in |
| 11343 | nonstopux*) version_type=nonstopux ;; |
| 11344 | *) |
| 11345 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 11346 | version_type=linux |
| 11347 | else |
| 11348 | version_type=irix |
| 11349 | fi ;; |
| 11350 | esac |
| 11351 | need_lib_prefix=no |
| 11352 | need_version=no |
| 11353 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11354 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11355 | case $host_os in |
| 11356 | irix5* | nonstopux*) |
| 11357 | libsuff= shlibsuff= |
| 11358 | ;; |
| 11359 | *) |
| 11360 | case $LD in # libtool.m4 will add one of these switches to LD |
| 11361 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 11362 | libsuff= shlibsuff= libmagic=32-bit;; |
| 11363 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 11364 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 11365 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 11366 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 11367 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 11368 | esac |
| 11369 | ;; |
| 11370 | esac |
| 11371 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 11372 | shlibpath_overrides_runpath=no |
| 11373 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 11374 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 11375 | hardcode_into_libs=yes |
| 11376 | ;; |
| 11377 | |
| 11378 | # No shared lib support for Linux oldld, aout, or coff. |
| 11379 | linux*oldld* | linux*aout* | linux*coff*) |
| 11380 | dynamic_linker=no |
| 11381 | ;; |
| 11382 | |
| 11383 | # This must be Linux ELF. |
| 11384 | linux*) |
| 11385 | version_type=linux |
| 11386 | need_lib_prefix=no |
| 11387 | need_version=no |
| 11388 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11389 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11390 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 11391 | shlibpath_var=LD_LIBRARY_PATH |
| 11392 | shlibpath_overrides_runpath=no |
| 11393 | # This implies no fast_install, which is unacceptable. |
| 11394 | # Some rework will be needed to allow for fast_install |
| 11395 | # before this can be enabled. |
| 11396 | hardcode_into_libs=yes |
| 11397 | |
| 11398 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 11399 | # powerpc, because MkLinux only supported shared libraries with the |
| 11400 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 11401 | # most powerpc-linux boxes support dynamic linking these days and |
| 11402 | # people can always --disable-shared, the test was removed, and we |
| 11403 | # assume the GNU/Linux dynamic linker is in use. |
| 11404 | dynamic_linker='GNU/Linux ld.so' |
| 11405 | ;; |
| 11406 | |
| 11407 | netbsd*) |
| 11408 | version_type=sunos |
| 11409 | need_lib_prefix=no |
| 11410 | need_version=no |
| 11411 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 11412 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11413 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11414 | dynamic_linker='NetBSD (a.out) ld.so' |
| 11415 | else |
| 11416 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
| 11417 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11418 | dynamic_linker='NetBSD ld.elf_so' |
| 11419 | fi |
| 11420 | shlibpath_var=LD_LIBRARY_PATH |
| 11421 | shlibpath_overrides_runpath=yes |
| 11422 | hardcode_into_libs=yes |
| 11423 | ;; |
| 11424 | |
| 11425 | newsos6) |
| 11426 | version_type=linux |
| 11427 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11428 | shlibpath_var=LD_LIBRARY_PATH |
| 11429 | shlibpath_overrides_runpath=yes |
| 11430 | ;; |
| 11431 | |
| 11432 | nto-qnx) |
| 11433 | version_type=linux |
| 11434 | need_lib_prefix=no |
| 11435 | need_version=no |
| 11436 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11437 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11438 | shlibpath_var=LD_LIBRARY_PATH |
| 11439 | shlibpath_overrides_runpath=yes |
| 11440 | ;; |
| 11441 | |
| 11442 | openbsd*) |
| 11443 | version_type=sunos |
| 11444 | need_lib_prefix=no |
| 11445 | need_version=no |
| 11446 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11447 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11448 | shlibpath_var=LD_LIBRARY_PATH |
| 11449 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 11450 | case $host_os in |
| 11451 | openbsd2.[89] | openbsd2.[89].*) |
| 11452 | shlibpath_overrides_runpath=no |
| 11453 | ;; |
| 11454 | *) |
| 11455 | shlibpath_overrides_runpath=yes |
| 11456 | ;; |
| 11457 | esac |
| 11458 | else |
| 11459 | shlibpath_overrides_runpath=yes |
| 11460 | fi |
| 11461 | ;; |
| 11462 | |
| 11463 | os2*) |
| 11464 | libname_spec='$name' |
| 11465 | shrext=".dll" |
| 11466 | need_lib_prefix=no |
| 11467 | library_names_spec='$libname${shared_ext} $libname.a' |
| 11468 | dynamic_linker='OS/2 ld.exe' |
| 11469 | shlibpath_var=LIBPATH |
| 11470 | ;; |
| 11471 | |
| 11472 | osf3* | osf4* | osf5*) |
| 11473 | version_type=osf |
| 11474 | need_lib_prefix=no |
| 11475 | need_version=no |
| 11476 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11477 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11478 | shlibpath_var=LD_LIBRARY_PATH |
| 11479 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 11480 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 11481 | ;; |
| 11482 | |
| 11483 | sco3.2v5*) |
| 11484 | version_type=osf |
| 11485 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11486 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11487 | shlibpath_var=LD_LIBRARY_PATH |
| 11488 | ;; |
| 11489 | |
| 11490 | solaris*) |
| 11491 | version_type=linux |
| 11492 | need_lib_prefix=no |
| 11493 | need_version=no |
| 11494 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11495 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11496 | shlibpath_var=LD_LIBRARY_PATH |
| 11497 | shlibpath_overrides_runpath=yes |
| 11498 | hardcode_into_libs=yes |
| 11499 | # ldd complains unless libraries are executable |
| 11500 | postinstall_cmds='chmod +x $lib' |
| 11501 | ;; |
| 11502 | |
| 11503 | sunos4*) |
| 11504 | version_type=sunos |
| 11505 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11506 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 11507 | shlibpath_var=LD_LIBRARY_PATH |
| 11508 | shlibpath_overrides_runpath=yes |
| 11509 | if test "$with_gnu_ld" = yes; then |
| 11510 | need_lib_prefix=no |
| 11511 | fi |
| 11512 | need_version=yes |
| 11513 | ;; |
| 11514 | |
| 11515 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 11516 | version_type=linux |
| 11517 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11518 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11519 | shlibpath_var=LD_LIBRARY_PATH |
| 11520 | case $host_vendor in |
| 11521 | sni) |
| 11522 | shlibpath_overrides_runpath=no |
| 11523 | need_lib_prefix=no |
| 11524 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 11525 | runpath_var=LD_RUN_PATH |
| 11526 | ;; |
| 11527 | siemens) |
| 11528 | need_lib_prefix=no |
| 11529 | ;; |
| 11530 | motorola) |
| 11531 | need_lib_prefix=no |
| 11532 | need_version=no |
| 11533 | shlibpath_overrides_runpath=no |
| 11534 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 11535 | ;; |
| 11536 | esac |
| 11537 | ;; |
| 11538 | |
| 11539 | sysv4*MP*) |
| 11540 | if test -d /usr/nec ;then |
| 11541 | version_type=linux |
| 11542 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 11543 | soname_spec='$libname${shared_ext}.$major' |
| 11544 | shlibpath_var=LD_LIBRARY_PATH |
| 11545 | fi |
| 11546 | ;; |
| 11547 | |
| 11548 | uts4*) |
| 11549 | version_type=linux |
| 11550 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11551 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11552 | shlibpath_var=LD_LIBRARY_PATH |
| 11553 | ;; |
| 11554 | |
| 11555 | *) |
| 11556 | dynamic_linker=no |
| 11557 | ;; |
| 11558 | esac |
| 11559 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 11560 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 11561 | test "$dynamic_linker" = no && can_build_shared=no |
| 11562 | |
| 11563 | if test "x$enable_dlopen" != xyes; then |
| 11564 | enable_dlopen=unknown |
| 11565 | enable_dlopen_self=unknown |
| 11566 | enable_dlopen_self_static=unknown |
| 11567 | else |
| 11568 | lt_cv_dlopen=no |
| 11569 | lt_cv_dlopen_libs= |
| 11570 | |
| 11571 | case $host_os in |
| 11572 | beos*) |
| 11573 | lt_cv_dlopen="load_add_on" |
| 11574 | lt_cv_dlopen_libs= |
| 11575 | lt_cv_dlopen_self=yes |
| 11576 | ;; |
| 11577 | |
| 11578 | mingw* | pw32*) |
| 11579 | lt_cv_dlopen="LoadLibrary" |
| 11580 | lt_cv_dlopen_libs= |
| 11581 | ;; |
| 11582 | |
| 11583 | cygwin*) |
| 11584 | lt_cv_dlopen="dlopen" |
| 11585 | lt_cv_dlopen_libs= |
| 11586 | ;; |
| 11587 | |
| 11588 | darwin*) |
| 11589 | # if libdl is installed we need to link against it |
| 11590 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 11591 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 11592 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 11593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11594 | else |
| 11595 | ac_check_lib_save_LIBS=$LIBS |
| 11596 | LIBS="-ldl $LIBS" |
| 11597 | cat >conftest.$ac_ext <<_ACEOF |
| 11598 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11599 | /* confdefs.h. */ |
| 11600 | _ACEOF |
| 11601 | cat confdefs.h >>conftest.$ac_ext |
| 11602 | cat >>conftest.$ac_ext <<_ACEOF |
| 11603 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11604 | |
| 11605 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11606 | #ifdef __cplusplus |
| 11607 | extern "C" |
| 11608 | #endif |
| 11609 | /* We use char because int might match the return type of a gcc2 |
| 11610 | builtin and then its argument prototype would still apply. */ |
| 11611 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11612 | int |
| 11613 | main () |
| 11614 | { |
| 11615 | dlopen (); |
| 11616 | ; |
| 11617 | return 0; |
| 11618 | } |
| 11619 | _ACEOF |
| 11620 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11621 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11622 | (eval $ac_link) 2>&5 |
| 11623 | ac_status=$? |
| 11624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11625 | (exit $ac_status); } && |
| 11626 | { ac_try='test -s conftest$ac_exeext' |
| 11627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11628 | (eval $ac_try) 2>&5 |
| 11629 | ac_status=$? |
| 11630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11631 | (exit $ac_status); }; }; then |
| 11632 | ac_cv_lib_dl_dlopen=yes |
| 11633 | else |
| 11634 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11635 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11636 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11637 | ac_cv_lib_dl_dlopen=no |
| 11638 | fi |
| 11639 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11640 | LIBS=$ac_check_lib_save_LIBS |
| 11641 | fi |
| 11642 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11643 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 11644 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 11645 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11646 | else |
| 11647 | |
| 11648 | lt_cv_dlopen="dyld" |
| 11649 | lt_cv_dlopen_libs= |
| 11650 | lt_cv_dlopen_self=yes |
| 11651 | |
| 11652 | fi |
| 11653 | |
| 11654 | ;; |
| 11655 | |
| 11656 | *) |
| 11657 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 11658 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 11659 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 11660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11661 | else |
| 11662 | cat >conftest.$ac_ext <<_ACEOF |
| 11663 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11664 | /* confdefs.h. */ |
| 11665 | _ACEOF |
| 11666 | cat confdefs.h >>conftest.$ac_ext |
| 11667 | cat >>conftest.$ac_ext <<_ACEOF |
| 11668 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11669 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11670 | which can conflict with char shl_load (); below. |
| 11671 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11672 | <limits.h> exists even on freestanding compilers. */ |
| 11673 | #ifdef __STDC__ |
| 11674 | # include <limits.h> |
| 11675 | #else |
| 11676 | # include <assert.h> |
| 11677 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11678 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11679 | #ifdef __cplusplus |
| 11680 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11681 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11682 | #endif |
| 11683 | /* We use char because int might match the return type of a gcc2 |
| 11684 | builtin and then its argument prototype would still apply. */ |
| 11685 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11686 | /* The GNU C library defines this for functions which it implements |
| 11687 | to always fail with ENOSYS. Some functions are actually named |
| 11688 | something starting with __ and the normal name is an alias. */ |
| 11689 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 11690 | choke me |
| 11691 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11692 | char (*f) () = shl_load; |
| 11693 | #endif |
| 11694 | #ifdef __cplusplus |
| 11695 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11696 | #endif |
| 11697 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11698 | int |
| 11699 | main () |
| 11700 | { |
| 11701 | return f != shl_load; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11702 | ; |
| 11703 | return 0; |
| 11704 | } |
| 11705 | _ACEOF |
| 11706 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11708 | (eval $ac_link) 2>&5 |
| 11709 | ac_status=$? |
| 11710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11711 | (exit $ac_status); } && |
| 11712 | { ac_try='test -s conftest$ac_exeext' |
| 11713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11714 | (eval $ac_try) 2>&5 |
| 11715 | ac_status=$? |
| 11716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11717 | (exit $ac_status); }; }; then |
| 11718 | ac_cv_func_shl_load=yes |
| 11719 | else |
| 11720 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11722 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11723 | ac_cv_func_shl_load=no |
| 11724 | fi |
| 11725 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11726 | fi |
| 11727 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 11728 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 11729 | if test $ac_cv_func_shl_load = yes; then |
| 11730 | lt_cv_dlopen="shl_load" |
| 11731 | else |
| 11732 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 11733 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 11734 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 11735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11736 | else |
| 11737 | ac_check_lib_save_LIBS=$LIBS |
| 11738 | LIBS="-ldld $LIBS" |
| 11739 | cat >conftest.$ac_ext <<_ACEOF |
| 11740 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11741 | /* confdefs.h. */ |
| 11742 | _ACEOF |
| 11743 | cat confdefs.h >>conftest.$ac_ext |
| 11744 | cat >>conftest.$ac_ext <<_ACEOF |
| 11745 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11746 | |
| 11747 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11748 | #ifdef __cplusplus |
| 11749 | extern "C" |
| 11750 | #endif |
| 11751 | /* We use char because int might match the return type of a gcc2 |
| 11752 | builtin and then its argument prototype would still apply. */ |
| 11753 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11754 | int |
| 11755 | main () |
| 11756 | { |
| 11757 | shl_load (); |
| 11758 | ; |
| 11759 | return 0; |
| 11760 | } |
| 11761 | _ACEOF |
| 11762 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11763 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11764 | (eval $ac_link) 2>&5 |
| 11765 | ac_status=$? |
| 11766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11767 | (exit $ac_status); } && |
| 11768 | { ac_try='test -s conftest$ac_exeext' |
| 11769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11770 | (eval $ac_try) 2>&5 |
| 11771 | ac_status=$? |
| 11772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11773 | (exit $ac_status); }; }; then |
| 11774 | ac_cv_lib_dld_shl_load=yes |
| 11775 | else |
| 11776 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11777 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11778 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11779 | ac_cv_lib_dld_shl_load=no |
| 11780 | fi |
| 11781 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11782 | LIBS=$ac_check_lib_save_LIBS |
| 11783 | fi |
| 11784 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 11785 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 11786 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 11787 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 11788 | else |
| 11789 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 11790 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 11791 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 11792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11793 | else |
| 11794 | cat >conftest.$ac_ext <<_ACEOF |
| 11795 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11796 | /* confdefs.h. */ |
| 11797 | _ACEOF |
| 11798 | cat confdefs.h >>conftest.$ac_ext |
| 11799 | cat >>conftest.$ac_ext <<_ACEOF |
| 11800 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11801 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11802 | which can conflict with char dlopen (); below. |
| 11803 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11804 | <limits.h> exists even on freestanding compilers. */ |
| 11805 | #ifdef __STDC__ |
| 11806 | # include <limits.h> |
| 11807 | #else |
| 11808 | # include <assert.h> |
| 11809 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11810 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11811 | #ifdef __cplusplus |
| 11812 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11813 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11814 | #endif |
| 11815 | /* We use char because int might match the return type of a gcc2 |
| 11816 | builtin and then its argument prototype would still apply. */ |
| 11817 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11818 | /* The GNU C library defines this for functions which it implements |
| 11819 | to always fail with ENOSYS. Some functions are actually named |
| 11820 | something starting with __ and the normal name is an alias. */ |
| 11821 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 11822 | choke me |
| 11823 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11824 | char (*f) () = dlopen; |
| 11825 | #endif |
| 11826 | #ifdef __cplusplus |
| 11827 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11828 | #endif |
| 11829 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11830 | int |
| 11831 | main () |
| 11832 | { |
| 11833 | return f != dlopen; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11834 | ; |
| 11835 | return 0; |
| 11836 | } |
| 11837 | _ACEOF |
| 11838 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11840 | (eval $ac_link) 2>&5 |
| 11841 | ac_status=$? |
| 11842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11843 | (exit $ac_status); } && |
| 11844 | { ac_try='test -s conftest$ac_exeext' |
| 11845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11846 | (eval $ac_try) 2>&5 |
| 11847 | ac_status=$? |
| 11848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11849 | (exit $ac_status); }; }; then |
| 11850 | ac_cv_func_dlopen=yes |
| 11851 | else |
| 11852 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11854 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11855 | ac_cv_func_dlopen=no |
| 11856 | fi |
| 11857 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11858 | fi |
| 11859 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 11860 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 11861 | if test $ac_cv_func_dlopen = yes; then |
| 11862 | lt_cv_dlopen="dlopen" |
| 11863 | else |
| 11864 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 11865 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 11866 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 11867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11868 | else |
| 11869 | ac_check_lib_save_LIBS=$LIBS |
| 11870 | LIBS="-ldl $LIBS" |
| 11871 | cat >conftest.$ac_ext <<_ACEOF |
| 11872 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11873 | /* confdefs.h. */ |
| 11874 | _ACEOF |
| 11875 | cat confdefs.h >>conftest.$ac_ext |
| 11876 | cat >>conftest.$ac_ext <<_ACEOF |
| 11877 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11878 | |
| 11879 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11880 | #ifdef __cplusplus |
| 11881 | extern "C" |
| 11882 | #endif |
| 11883 | /* We use char because int might match the return type of a gcc2 |
| 11884 | builtin and then its argument prototype would still apply. */ |
| 11885 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11886 | int |
| 11887 | main () |
| 11888 | { |
| 11889 | dlopen (); |
| 11890 | ; |
| 11891 | return 0; |
| 11892 | } |
| 11893 | _ACEOF |
| 11894 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11896 | (eval $ac_link) 2>&5 |
| 11897 | ac_status=$? |
| 11898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11899 | (exit $ac_status); } && |
| 11900 | { ac_try='test -s conftest$ac_exeext' |
| 11901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11902 | (eval $ac_try) 2>&5 |
| 11903 | ac_status=$? |
| 11904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11905 | (exit $ac_status); }; }; then |
| 11906 | ac_cv_lib_dl_dlopen=yes |
| 11907 | else |
| 11908 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11910 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11911 | ac_cv_lib_dl_dlopen=no |
| 11912 | fi |
| 11913 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11914 | LIBS=$ac_check_lib_save_LIBS |
| 11915 | fi |
| 11916 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11917 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 11918 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 11919 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11920 | else |
| 11921 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 11922 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 11923 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 11924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11925 | else |
| 11926 | ac_check_lib_save_LIBS=$LIBS |
| 11927 | LIBS="-lsvld $LIBS" |
| 11928 | cat >conftest.$ac_ext <<_ACEOF |
| 11929 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11930 | /* confdefs.h. */ |
| 11931 | _ACEOF |
| 11932 | cat confdefs.h >>conftest.$ac_ext |
| 11933 | cat >>conftest.$ac_ext <<_ACEOF |
| 11934 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11935 | |
| 11936 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11937 | #ifdef __cplusplus |
| 11938 | extern "C" |
| 11939 | #endif |
| 11940 | /* We use char because int might match the return type of a gcc2 |
| 11941 | builtin and then its argument prototype would still apply. */ |
| 11942 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11943 | int |
| 11944 | main () |
| 11945 | { |
| 11946 | dlopen (); |
| 11947 | ; |
| 11948 | return 0; |
| 11949 | } |
| 11950 | _ACEOF |
| 11951 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11952 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11953 | (eval $ac_link) 2>&5 |
| 11954 | ac_status=$? |
| 11955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11956 | (exit $ac_status); } && |
| 11957 | { ac_try='test -s conftest$ac_exeext' |
| 11958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11959 | (eval $ac_try) 2>&5 |
| 11960 | ac_status=$? |
| 11961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11962 | (exit $ac_status); }; }; then |
| 11963 | ac_cv_lib_svld_dlopen=yes |
| 11964 | else |
| 11965 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11967 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11968 | ac_cv_lib_svld_dlopen=no |
| 11969 | fi |
| 11970 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11971 | LIBS=$ac_check_lib_save_LIBS |
| 11972 | fi |
| 11973 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 11974 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 11975 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 11976 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 11977 | else |
| 11978 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 11979 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 11980 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 11981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11982 | else |
| 11983 | ac_check_lib_save_LIBS=$LIBS |
| 11984 | LIBS="-ldld $LIBS" |
| 11985 | cat >conftest.$ac_ext <<_ACEOF |
| 11986 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11987 | /* confdefs.h. */ |
| 11988 | _ACEOF |
| 11989 | cat confdefs.h >>conftest.$ac_ext |
| 11990 | cat >>conftest.$ac_ext <<_ACEOF |
| 11991 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11992 | |
| 11993 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11994 | #ifdef __cplusplus |
| 11995 | extern "C" |
| 11996 | #endif |
| 11997 | /* We use char because int might match the return type of a gcc2 |
| 11998 | builtin and then its argument prototype would still apply. */ |
| 11999 | char dld_link (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12000 | int |
| 12001 | main () |
| 12002 | { |
| 12003 | dld_link (); |
| 12004 | ; |
| 12005 | return 0; |
| 12006 | } |
| 12007 | _ACEOF |
| 12008 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12009 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12010 | (eval $ac_link) 2>&5 |
| 12011 | ac_status=$? |
| 12012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12013 | (exit $ac_status); } && |
| 12014 | { ac_try='test -s conftest$ac_exeext' |
| 12015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12016 | (eval $ac_try) 2>&5 |
| 12017 | ac_status=$? |
| 12018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12019 | (exit $ac_status); }; }; then |
| 12020 | ac_cv_lib_dld_dld_link=yes |
| 12021 | else |
| 12022 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12024 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12025 | ac_cv_lib_dld_dld_link=no |
| 12026 | fi |
| 12027 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12028 | LIBS=$ac_check_lib_save_LIBS |
| 12029 | fi |
| 12030 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 12031 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 12032 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 12033 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 12034 | fi |
| 12035 | |
| 12036 | |
| 12037 | fi |
| 12038 | |
| 12039 | |
| 12040 | fi |
| 12041 | |
| 12042 | |
| 12043 | fi |
| 12044 | |
| 12045 | |
| 12046 | fi |
| 12047 | |
| 12048 | |
| 12049 | fi |
| 12050 | |
| 12051 | ;; |
| 12052 | esac |
| 12053 | |
| 12054 | if test "x$lt_cv_dlopen" != xno; then |
| 12055 | enable_dlopen=yes |
| 12056 | else |
| 12057 | enable_dlopen=no |
| 12058 | fi |
| 12059 | |
| 12060 | case $lt_cv_dlopen in |
| 12061 | dlopen) |
| 12062 | save_CPPFLAGS="$CPPFLAGS" |
| 12063 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 12064 | |
| 12065 | save_LDFLAGS="$LDFLAGS" |
| 12066 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 12067 | |
| 12068 | save_LIBS="$LIBS" |
| 12069 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 12070 | |
| 12071 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 12072 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 12073 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 12074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12075 | else |
| 12076 | if test "$cross_compiling" = yes; then : |
| 12077 | lt_cv_dlopen_self=cross |
| 12078 | else |
| 12079 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 12080 | lt_status=$lt_dlunknown |
| 12081 | cat > conftest.$ac_ext <<EOF |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 12082 | #line 12082 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12083 | #include "confdefs.h" |
| 12084 | |
| 12085 | #if HAVE_DLFCN_H |
| 12086 | #include <dlfcn.h> |
| 12087 | #endif |
| 12088 | |
| 12089 | #include <stdio.h> |
| 12090 | |
| 12091 | #ifdef RTLD_GLOBAL |
| 12092 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 12093 | #else |
| 12094 | # ifdef DL_GLOBAL |
| 12095 | # define LT_DLGLOBAL DL_GLOBAL |
| 12096 | # else |
| 12097 | # define LT_DLGLOBAL 0 |
| 12098 | # endif |
| 12099 | #endif |
| 12100 | |
| 12101 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 12102 | find out it does not work in some platform. */ |
| 12103 | #ifndef LT_DLLAZY_OR_NOW |
| 12104 | # ifdef RTLD_LAZY |
| 12105 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 12106 | # else |
| 12107 | # ifdef DL_LAZY |
| 12108 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 12109 | # else |
| 12110 | # ifdef RTLD_NOW |
| 12111 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 12112 | # else |
| 12113 | # ifdef DL_NOW |
| 12114 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 12115 | # else |
| 12116 | # define LT_DLLAZY_OR_NOW 0 |
| 12117 | # endif |
| 12118 | # endif |
| 12119 | # endif |
| 12120 | # endif |
| 12121 | #endif |
| 12122 | |
| 12123 | #ifdef __cplusplus |
| 12124 | extern "C" void exit (int); |
| 12125 | #endif |
| 12126 | |
| 12127 | void fnord() { int i=42;} |
| 12128 | int main () |
| 12129 | { |
| 12130 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 12131 | int status = $lt_dlunknown; |
| 12132 | |
| 12133 | if (self) |
| 12134 | { |
| 12135 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 12136 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 12137 | /* dlclose (self); */ |
| 12138 | } |
| 12139 | |
| 12140 | exit (status); |
| 12141 | } |
| 12142 | EOF |
| 12143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12144 | (eval $ac_link) 2>&5 |
| 12145 | ac_status=$? |
| 12146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12147 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 12148 | (./conftest; exit; ) 2>/dev/null |
| 12149 | lt_status=$? |
| 12150 | case x$lt_status in |
| 12151 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 12152 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 12153 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 12154 | esac |
| 12155 | else : |
| 12156 | # compilation failed |
| 12157 | lt_cv_dlopen_self=no |
| 12158 | fi |
| 12159 | fi |
| 12160 | rm -fr conftest* |
| 12161 | |
| 12162 | |
| 12163 | fi |
| 12164 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 12165 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 12166 | |
| 12167 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 12168 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 12169 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 12170 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 12171 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 12172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12173 | else |
| 12174 | if test "$cross_compiling" = yes; then : |
| 12175 | lt_cv_dlopen_self_static=cross |
| 12176 | else |
| 12177 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 12178 | lt_status=$lt_dlunknown |
| 12179 | cat > conftest.$ac_ext <<EOF |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 12180 | #line 12180 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12181 | #include "confdefs.h" |
| 12182 | |
| 12183 | #if HAVE_DLFCN_H |
| 12184 | #include <dlfcn.h> |
| 12185 | #endif |
| 12186 | |
| 12187 | #include <stdio.h> |
| 12188 | |
| 12189 | #ifdef RTLD_GLOBAL |
| 12190 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 12191 | #else |
| 12192 | # ifdef DL_GLOBAL |
| 12193 | # define LT_DLGLOBAL DL_GLOBAL |
| 12194 | # else |
| 12195 | # define LT_DLGLOBAL 0 |
| 12196 | # endif |
| 12197 | #endif |
| 12198 | |
| 12199 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 12200 | find out it does not work in some platform. */ |
| 12201 | #ifndef LT_DLLAZY_OR_NOW |
| 12202 | # ifdef RTLD_LAZY |
| 12203 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 12204 | # else |
| 12205 | # ifdef DL_LAZY |
| 12206 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 12207 | # else |
| 12208 | # ifdef RTLD_NOW |
| 12209 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 12210 | # else |
| 12211 | # ifdef DL_NOW |
| 12212 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 12213 | # else |
| 12214 | # define LT_DLLAZY_OR_NOW 0 |
| 12215 | # endif |
| 12216 | # endif |
| 12217 | # endif |
| 12218 | # endif |
| 12219 | #endif |
| 12220 | |
| 12221 | #ifdef __cplusplus |
| 12222 | extern "C" void exit (int); |
| 12223 | #endif |
| 12224 | |
| 12225 | void fnord() { int i=42;} |
| 12226 | int main () |
| 12227 | { |
| 12228 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 12229 | int status = $lt_dlunknown; |
| 12230 | |
| 12231 | if (self) |
| 12232 | { |
| 12233 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 12234 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 12235 | /* dlclose (self); */ |
| 12236 | } |
| 12237 | |
| 12238 | exit (status); |
| 12239 | } |
| 12240 | EOF |
| 12241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12242 | (eval $ac_link) 2>&5 |
| 12243 | ac_status=$? |
| 12244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12245 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 12246 | (./conftest; exit; ) 2>/dev/null |
| 12247 | lt_status=$? |
| 12248 | case x$lt_status in |
| 12249 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 12250 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 12251 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 12252 | esac |
| 12253 | else : |
| 12254 | # compilation failed |
| 12255 | lt_cv_dlopen_self_static=no |
| 12256 | fi |
| 12257 | fi |
| 12258 | rm -fr conftest* |
| 12259 | |
| 12260 | |
| 12261 | fi |
| 12262 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 12263 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 12264 | fi |
| 12265 | |
| 12266 | CPPFLAGS="$save_CPPFLAGS" |
| 12267 | LDFLAGS="$save_LDFLAGS" |
| 12268 | LIBS="$save_LIBS" |
| 12269 | ;; |
| 12270 | esac |
| 12271 | |
| 12272 | case $lt_cv_dlopen_self in |
| 12273 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 12274 | *) enable_dlopen_self=unknown ;; |
| 12275 | esac |
| 12276 | |
| 12277 | case $lt_cv_dlopen_self_static in |
| 12278 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 12279 | *) enable_dlopen_self_static=unknown ;; |
| 12280 | esac |
| 12281 | fi |
| 12282 | |
| 12283 | |
| 12284 | # The else clause should only fire when bootstrapping the |
| 12285 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 12286 | # with your package, and you will get complaints that there are |
| 12287 | # no rules to generate ltmain.sh. |
| 12288 | if test -f "$ltmain"; then |
| 12289 | # See if we are running on zsh, and set the options which allow our commands through |
| 12290 | # without removal of \ escapes. |
| 12291 | if test -n "${ZSH_VERSION+set}" ; then |
| 12292 | setopt NO_GLOB_SUBST |
| 12293 | fi |
| 12294 | # Now quote all the things that may contain metacharacters while being |
| 12295 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 12296 | # variables and quote the copies for generation of the libtool script. |
| 12297 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
| 12298 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 12299 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 12300 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 12301 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 12302 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 12303 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 12304 | old_postinstall_cmds old_postuninstall_cmds \ |
| 12305 | compiler_CXX \ |
| 12306 | CC_CXX \ |
| 12307 | LD_CXX \ |
| 12308 | lt_prog_compiler_wl_CXX \ |
| 12309 | lt_prog_compiler_pic_CXX \ |
| 12310 | lt_prog_compiler_static_CXX \ |
| 12311 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 12312 | export_dynamic_flag_spec_CXX \ |
| 12313 | thread_safe_flag_spec_CXX \ |
| 12314 | whole_archive_flag_spec_CXX \ |
| 12315 | enable_shared_with_static_runtimes_CXX \ |
| 12316 | old_archive_cmds_CXX \ |
| 12317 | old_archive_from_new_cmds_CXX \ |
| 12318 | predep_objects_CXX \ |
| 12319 | postdep_objects_CXX \ |
| 12320 | predeps_CXX \ |
| 12321 | postdeps_CXX \ |
| 12322 | compiler_lib_search_path_CXX \ |
| 12323 | archive_cmds_CXX \ |
| 12324 | archive_expsym_cmds_CXX \ |
| 12325 | postinstall_cmds_CXX \ |
| 12326 | postuninstall_cmds_CXX \ |
| 12327 | old_archive_from_expsyms_cmds_CXX \ |
| 12328 | allow_undefined_flag_CXX \ |
| 12329 | no_undefined_flag_CXX \ |
| 12330 | export_symbols_cmds_CXX \ |
| 12331 | hardcode_libdir_flag_spec_CXX \ |
| 12332 | hardcode_libdir_flag_spec_ld_CXX \ |
| 12333 | hardcode_libdir_separator_CXX \ |
| 12334 | hardcode_automatic_CXX \ |
| 12335 | module_cmds_CXX \ |
| 12336 | module_expsym_cmds_CXX \ |
| 12337 | lt_cv_prog_compiler_c_o_CXX \ |
| 12338 | exclude_expsyms_CXX \ |
| 12339 | include_expsyms_CXX; do |
| 12340 | |
| 12341 | case $var in |
| 12342 | old_archive_cmds_CXX | \ |
| 12343 | old_archive_from_new_cmds_CXX | \ |
| 12344 | archive_cmds_CXX | \ |
| 12345 | archive_expsym_cmds_CXX | \ |
| 12346 | module_cmds_CXX | \ |
| 12347 | module_expsym_cmds_CXX | \ |
| 12348 | old_archive_from_expsyms_cmds_CXX | \ |
| 12349 | export_symbols_cmds_CXX | \ |
| 12350 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 12351 | postinstall_cmds | postuninstall_cmds | \ |
| 12352 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 12353 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 12354 | # Double-quote double-evaled strings. |
| 12355 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 12356 | ;; |
| 12357 | *) |
| 12358 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 12359 | ;; |
| 12360 | esac |
| 12361 | done |
| 12362 | |
| 12363 | case $lt_echo in |
| 12364 | *'\$0 --fallback-echo"') |
| 12365 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 12366 | ;; |
| 12367 | esac |
| 12368 | |
| 12369 | cfgfile="$ofile" |
| 12370 | |
| 12371 | cat <<__EOF__ >> "$cfgfile" |
| 12372 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 12373 | |
| 12374 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 12375 | |
| 12376 | # Shell to use when invoking shell scripts. |
| 12377 | SHELL=$lt_SHELL |
| 12378 | |
| 12379 | # Whether or not to build shared libraries. |
| 12380 | build_libtool_libs=$enable_shared |
| 12381 | |
| 12382 | # Whether or not to build static libraries. |
| 12383 | build_old_libs=$enable_static |
| 12384 | |
| 12385 | # Whether or not to add -lc for building shared libraries. |
| 12386 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 12387 | |
| 12388 | # Whether or not to disallow shared libs when runtime libs are static |
| 12389 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 12390 | |
| 12391 | # Whether or not to optimize for fast installation. |
| 12392 | fast_install=$enable_fast_install |
| 12393 | |
| 12394 | # The host system. |
| 12395 | host_alias=$host_alias |
| 12396 | host=$host |
| 12397 | |
| 12398 | # An echo program that does not interpret backslashes. |
| 12399 | echo=$lt_echo |
| 12400 | |
| 12401 | # The archiver. |
| 12402 | AR=$lt_AR |
| 12403 | AR_FLAGS=$lt_AR_FLAGS |
| 12404 | |
| 12405 | # A C compiler. |
| 12406 | LTCC=$lt_LTCC |
| 12407 | |
| 12408 | # A language-specific compiler. |
| 12409 | CC=$lt_compiler_CXX |
| 12410 | |
| 12411 | # Is the compiler the GNU C compiler? |
| 12412 | with_gcc=$GCC_CXX |
| 12413 | |
| 12414 | # An ERE matcher. |
| 12415 | EGREP=$lt_EGREP |
| 12416 | |
| 12417 | # The linker used to build libraries. |
| 12418 | LD=$lt_LD_CXX |
| 12419 | |
| 12420 | # Whether we need hard or soft links. |
| 12421 | LN_S=$lt_LN_S |
| 12422 | |
| 12423 | # A BSD-compatible nm program. |
| 12424 | NM=$lt_NM |
| 12425 | |
| 12426 | # A symbol stripping program |
| 12427 | STRIP=$STRIP |
| 12428 | |
| 12429 | # Used to examine libraries when file_magic_cmd begins "file" |
| 12430 | MAGIC_CMD=$MAGIC_CMD |
| 12431 | |
| 12432 | # Used on cygwin: DLL creation program. |
| 12433 | DLLTOOL="$DLLTOOL" |
| 12434 | |
| 12435 | # Used on cygwin: object dumper. |
| 12436 | OBJDUMP="$OBJDUMP" |
| 12437 | |
| 12438 | # Used on cygwin: assembler. |
| 12439 | AS="$AS" |
| 12440 | |
| 12441 | # The name of the directory that contains temporary libtool files. |
| 12442 | objdir=$objdir |
| 12443 | |
| 12444 | # How to create reloadable object files. |
| 12445 | reload_flag=$lt_reload_flag |
| 12446 | reload_cmds=$lt_reload_cmds |
| 12447 | |
| 12448 | # How to pass a linker flag through the compiler. |
| 12449 | wl=$lt_lt_prog_compiler_wl_CXX |
| 12450 | |
| 12451 | # Object file suffix (normally "o"). |
| 12452 | objext="$ac_objext" |
| 12453 | |
| 12454 | # Old archive suffix (normally "a"). |
| 12455 | libext="$libext" |
| 12456 | |
| 12457 | # Shared library suffix (normally ".so"). |
| 12458 | shrext='$shrext' |
| 12459 | |
| 12460 | # Executable file suffix (normally ""). |
| 12461 | exeext="$exeext" |
| 12462 | |
| 12463 | # Additional compiler flags for building library objects. |
| 12464 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 12465 | pic_mode=$pic_mode |
| 12466 | |
| 12467 | # What is the maximum length of a command? |
| 12468 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 12469 | |
| 12470 | # Does compiler simultaneously support -c and -o options? |
| 12471 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 12472 | |
| 12473 | # Must we lock files when doing compilation ? |
| 12474 | need_locks=$lt_need_locks |
| 12475 | |
| 12476 | # Do we need the lib prefix for modules? |
| 12477 | need_lib_prefix=$need_lib_prefix |
| 12478 | |
| 12479 | # Do we need a version for libraries? |
| 12480 | need_version=$need_version |
| 12481 | |
| 12482 | # Whether dlopen is supported. |
| 12483 | dlopen_support=$enable_dlopen |
| 12484 | |
| 12485 | # Whether dlopen of programs is supported. |
| 12486 | dlopen_self=$enable_dlopen_self |
| 12487 | |
| 12488 | # Whether dlopen of statically linked programs is supported. |
| 12489 | dlopen_self_static=$enable_dlopen_self_static |
| 12490 | |
| 12491 | # Compiler flag to prevent dynamic linking. |
| 12492 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 12493 | |
| 12494 | # Compiler flag to turn off builtin functions. |
| 12495 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 12496 | |
| 12497 | # Compiler flag to allow reflexive dlopens. |
| 12498 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 12499 | |
| 12500 | # Compiler flag to generate shared objects directly from archives. |
| 12501 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 12502 | |
| 12503 | # Compiler flag to generate thread-safe objects. |
| 12504 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 12505 | |
| 12506 | # Library versioning type. |
| 12507 | version_type=$version_type |
| 12508 | |
| 12509 | # Format of library name prefix. |
| 12510 | libname_spec=$lt_libname_spec |
| 12511 | |
| 12512 | # List of archive names. First name is the real one, the rest are links. |
| 12513 | # The last name is the one that the linker finds with -lNAME. |
| 12514 | library_names_spec=$lt_library_names_spec |
| 12515 | |
| 12516 | # The coded name of the library, if different from the real name. |
| 12517 | soname_spec=$lt_soname_spec |
| 12518 | |
| 12519 | # Commands used to build and install an old-style archive. |
| 12520 | RANLIB=$lt_RANLIB |
| 12521 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 12522 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 12523 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 12524 | |
| 12525 | # Create an old-style archive from a shared archive. |
| 12526 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 12527 | |
| 12528 | # Create a temporary old-style archive to link instead of a shared archive. |
| 12529 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 12530 | |
| 12531 | # Commands used to build and install a shared archive. |
| 12532 | archive_cmds=$lt_archive_cmds_CXX |
| 12533 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 12534 | postinstall_cmds=$lt_postinstall_cmds |
| 12535 | postuninstall_cmds=$lt_postuninstall_cmds |
| 12536 | |
| 12537 | # Commands used to build a loadable module (assumed same as above if empty) |
| 12538 | module_cmds=$lt_module_cmds_CXX |
| 12539 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 12540 | |
| 12541 | # Commands to strip libraries. |
| 12542 | old_striplib=$lt_old_striplib |
| 12543 | striplib=$lt_striplib |
| 12544 | |
| 12545 | # Dependencies to place before the objects being linked to create a |
| 12546 | # shared library. |
| 12547 | predep_objects=$lt_predep_objects_CXX |
| 12548 | |
| 12549 | # Dependencies to place after the objects being linked to create a |
| 12550 | # shared library. |
| 12551 | postdep_objects=$lt_postdep_objects_CXX |
| 12552 | |
| 12553 | # Dependencies to place before the objects being linked to create a |
| 12554 | # shared library. |
| 12555 | predeps=$lt_predeps_CXX |
| 12556 | |
| 12557 | # Dependencies to place after the objects being linked to create a |
| 12558 | # shared library. |
| 12559 | postdeps=$lt_postdeps_CXX |
| 12560 | |
| 12561 | # The library search path used internally by the compiler when linking |
| 12562 | # a shared library. |
| 12563 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 12564 | |
| 12565 | # Method to check whether dependent libraries are shared objects. |
| 12566 | deplibs_check_method=$lt_deplibs_check_method |
| 12567 | |
| 12568 | # Command to use when deplibs_check_method == file_magic. |
| 12569 | file_magic_cmd=$lt_file_magic_cmd |
| 12570 | |
| 12571 | # Flag that allows shared libraries with undefined symbols to be built. |
| 12572 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 12573 | |
| 12574 | # Flag that forces no undefined symbols. |
| 12575 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 12576 | |
| 12577 | # Commands used to finish a libtool library installation in a directory. |
| 12578 | finish_cmds=$lt_finish_cmds |
| 12579 | |
| 12580 | # Same as above, but a single script fragment to be evaled but not shown. |
| 12581 | finish_eval=$lt_finish_eval |
| 12582 | |
| 12583 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 12584 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 12585 | |
| 12586 | # Transform the output of nm in a proper C declaration |
| 12587 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 12588 | |
| 12589 | # Transform the output of nm in a C name address pair |
| 12590 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 12591 | |
| 12592 | # This is the shared library runtime path variable. |
| 12593 | runpath_var=$runpath_var |
| 12594 | |
| 12595 | # This is the shared library path variable. |
| 12596 | shlibpath_var=$shlibpath_var |
| 12597 | |
| 12598 | # Is shlibpath searched before the hard-coded library search path? |
| 12599 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 12600 | |
| 12601 | # How to hardcode a shared library path into an executable. |
| 12602 | hardcode_action=$hardcode_action_CXX |
| 12603 | |
| 12604 | # Whether we should hardcode library paths into libraries. |
| 12605 | hardcode_into_libs=$hardcode_into_libs |
| 12606 | |
| 12607 | # Flag to hardcode \$libdir into a binary during linking. |
| 12608 | # This must work even if \$libdir does not exist. |
| 12609 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 12610 | |
| 12611 | # If ld is used when linking, flag to hardcode \$libdir into |
| 12612 | # a binary during linking. This must work even if \$libdir does |
| 12613 | # not exist. |
| 12614 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 12615 | |
| 12616 | # Whether we need a single -rpath flag with a separated argument. |
| 12617 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 12618 | |
| 12619 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 12620 | # resulting binary. |
| 12621 | hardcode_direct=$hardcode_direct_CXX |
| 12622 | |
| 12623 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 12624 | # resulting binary. |
| 12625 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 12626 | |
| 12627 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 12628 | # the resulting binary. |
| 12629 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 12630 | |
| 12631 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 12632 | # and all subsequent libraries and executables linked against it. |
| 12633 | hardcode_automatic=$hardcode_automatic_CXX |
| 12634 | |
| 12635 | # Variables whose values should be saved in libtool wrapper scripts and |
| 12636 | # restored at relink time. |
| 12637 | variables_saved_for_relink="$variables_saved_for_relink" |
| 12638 | |
| 12639 | # Whether libtool must link a program against all its dependency libraries. |
| 12640 | link_all_deplibs=$link_all_deplibs_CXX |
| 12641 | |
| 12642 | # Compile-time system search path for libraries |
| 12643 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 12644 | |
| 12645 | # Run-time system search path for libraries |
| 12646 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 12647 | |
| 12648 | # Fix the shell variable \$srcfile for the compiler. |
| 12649 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 12650 | |
| 12651 | # Set to yes if exported symbols are required. |
| 12652 | always_export_symbols=$always_export_symbols_CXX |
| 12653 | |
| 12654 | # The commands to list exported symbols. |
| 12655 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 12656 | |
| 12657 | # The commands to extract the exported symbol list from a shared archive. |
| 12658 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 12659 | |
| 12660 | # Symbols that should not be listed in the preloaded symbols. |
| 12661 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 12662 | |
| 12663 | # Symbols that must always be exported. |
| 12664 | include_expsyms=$lt_include_expsyms_CXX |
| 12665 | |
| 12666 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 12667 | |
| 12668 | __EOF__ |
| 12669 | |
| 12670 | |
| 12671 | else |
| 12672 | # If there is no Makefile yet, we rely on a make rule to execute |
| 12673 | # `config.status --recheck' to rerun these tests and create the |
| 12674 | # libtool script then. |
| 12675 | test -f Makefile && make "$ltmain" |
| 12676 | fi |
| 12677 | |
| 12678 | |
| 12679 | ac_ext=c |
| 12680 | ac_cpp='$CPP $CPPFLAGS' |
| 12681 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12682 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12683 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12684 | |
| 12685 | CC=$lt_save_CC |
| 12686 | LDCXX=$LD |
| 12687 | LD=$lt_save_LD |
| 12688 | GCC=$lt_save_GCC |
| 12689 | with_gnu_ldcxx=$with_gnu_ld |
| 12690 | with_gnu_ld=$lt_save_with_gnu_ld |
| 12691 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 12692 | lt_cv_path_LD=$lt_save_path_LD |
| 12693 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 12694 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 12695 | |
| 12696 | else |
| 12697 | tagname="" |
| 12698 | fi |
| 12699 | ;; |
| 12700 | |
| 12701 | F77) |
| 12702 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 12703 | |
| 12704 | ac_ext=f |
| 12705 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 12706 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12707 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 12708 | |
| 12709 | |
| 12710 | archive_cmds_need_lc_F77=no |
| 12711 | allow_undefined_flag_F77= |
| 12712 | always_export_symbols_F77=no |
| 12713 | archive_expsym_cmds_F77= |
| 12714 | export_dynamic_flag_spec_F77= |
| 12715 | hardcode_direct_F77=no |
| 12716 | hardcode_libdir_flag_spec_F77= |
| 12717 | hardcode_libdir_flag_spec_ld_F77= |
| 12718 | hardcode_libdir_separator_F77= |
| 12719 | hardcode_minus_L_F77=no |
| 12720 | hardcode_automatic_F77=no |
| 12721 | module_cmds_F77= |
| 12722 | module_expsym_cmds_F77= |
| 12723 | link_all_deplibs_F77=unknown |
| 12724 | old_archive_cmds_F77=$old_archive_cmds |
| 12725 | no_undefined_flag_F77= |
| 12726 | whole_archive_flag_spec_F77= |
| 12727 | enable_shared_with_static_runtimes_F77=no |
| 12728 | |
| 12729 | # Source file extension for f77 test sources. |
| 12730 | ac_ext=f |
| 12731 | |
| 12732 | # Object file extension for compiled f77 test sources. |
| 12733 | objext=o |
| 12734 | objext_F77=$objext |
| 12735 | |
| 12736 | # Code to be used in simple compile tests |
| 12737 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 12738 | |
| 12739 | # Code to be used in simple link tests |
| 12740 | lt_simple_link_test_code=" program t\n end\n" |
| 12741 | |
| 12742 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 12743 | |
| 12744 | # If no C compiler was specified, use CC. |
| 12745 | LTCC=${LTCC-"$CC"} |
| 12746 | |
| 12747 | # Allow CC to be a program name with arguments. |
| 12748 | compiler=$CC |
| 12749 | |
| 12750 | |
| 12751 | # Allow CC to be a program name with arguments. |
| 12752 | lt_save_CC="$CC" |
| 12753 | CC=${F77-"f77"} |
| 12754 | compiler=$CC |
| 12755 | compiler_F77=$CC |
| 12756 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 12757 | |
| 12758 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 12759 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 12760 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 12761 | echo "${ECHO_T}$can_build_shared" >&6 |
| 12762 | |
| 12763 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 12764 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 12765 | test "$can_build_shared" = "no" && enable_shared=no |
| 12766 | |
| 12767 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 12768 | # are all built from PIC. |
| 12769 | case "$host_os" in |
| 12770 | aix3*) |
| 12771 | test "$enable_shared" = yes && enable_static=no |
| 12772 | if test -n "$RANLIB"; then |
| 12773 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 12774 | postinstall_cmds='$RANLIB $lib' |
| 12775 | fi |
| 12776 | ;; |
| 12777 | aix4*) |
| 12778 | test "$enable_shared" = yes && enable_static=no |
| 12779 | ;; |
| 12780 | esac |
| 12781 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 12782 | echo "${ECHO_T}$enable_shared" >&6 |
| 12783 | |
| 12784 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 12785 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 12786 | # Make sure either enable_shared or enable_static is yes. |
| 12787 | test "$enable_shared" = yes || enable_static=yes |
| 12788 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 12789 | echo "${ECHO_T}$enable_static" >&6 |
| 12790 | |
| 12791 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 12792 | |
| 12793 | GCC_F77="$G77" |
| 12794 | LD_F77="$LD" |
| 12795 | |
| 12796 | lt_prog_compiler_wl_F77= |
| 12797 | lt_prog_compiler_pic_F77= |
| 12798 | lt_prog_compiler_static_F77= |
| 12799 | |
| 12800 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 12801 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 12802 | |
| 12803 | if test "$GCC" = yes; then |
| 12804 | lt_prog_compiler_wl_F77='-Wl,' |
| 12805 | lt_prog_compiler_static_F77='-static' |
| 12806 | |
| 12807 | case $host_os in |
| 12808 | aix*) |
| 12809 | # All AIX code is PIC. |
| 12810 | if test "$host_cpu" = ia64; then |
| 12811 | # AIX 5 now supports IA64 processor |
| 12812 | lt_prog_compiler_static_F77='-Bstatic' |
| 12813 | fi |
| 12814 | ;; |
| 12815 | |
| 12816 | amigaos*) |
| 12817 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 12818 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 12819 | # like `-m68040'. |
| 12820 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 12821 | ;; |
| 12822 | |
| 12823 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 12824 | # PIC is the default for these OSes. |
| 12825 | ;; |
| 12826 | |
| 12827 | mingw* | pw32* | os2*) |
| 12828 | # This hack is so that the source file can tell whether it is being |
| 12829 | # built for inclusion in a dll (and should export symbols for example). |
| 12830 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 12831 | ;; |
| 12832 | |
| 12833 | darwin* | rhapsody*) |
| 12834 | # PIC is the default on this platform |
| 12835 | # Common symbols not allowed in MH_DYLIB files |
| 12836 | lt_prog_compiler_pic_F77='-fno-common' |
| 12837 | ;; |
| 12838 | |
| 12839 | msdosdjgpp*) |
| 12840 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 12841 | # on systems that don't support them. |
| 12842 | lt_prog_compiler_can_build_shared_F77=no |
| 12843 | enable_shared=no |
| 12844 | ;; |
| 12845 | |
| 12846 | sysv4*MP*) |
| 12847 | if test -d /usr/nec; then |
| 12848 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 12849 | fi |
| 12850 | ;; |
| 12851 | |
| 12852 | hpux*) |
| 12853 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 12854 | # not for PA HP-UX. |
| 12855 | case "$host_cpu" in |
| 12856 | hppa*64*|ia64*) |
| 12857 | # +Z the default |
| 12858 | ;; |
| 12859 | *) |
| 12860 | lt_prog_compiler_pic_F77='-fPIC' |
| 12861 | ;; |
| 12862 | esac |
| 12863 | ;; |
| 12864 | |
| 12865 | *) |
| 12866 | lt_prog_compiler_pic_F77='-fPIC' |
| 12867 | ;; |
| 12868 | esac |
| 12869 | else |
| 12870 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 12871 | case $host_os in |
| 12872 | aix*) |
| 12873 | lt_prog_compiler_wl_F77='-Wl,' |
| 12874 | if test "$host_cpu" = ia64; then |
| 12875 | # AIX 5 now supports IA64 processor |
| 12876 | lt_prog_compiler_static_F77='-Bstatic' |
| 12877 | else |
| 12878 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 12879 | fi |
| 12880 | ;; |
| 12881 | |
| 12882 | mingw* | pw32* | os2*) |
| 12883 | # This hack is so that the source file can tell whether it is being |
| 12884 | # built for inclusion in a dll (and should export symbols for example). |
| 12885 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 12886 | ;; |
| 12887 | |
| 12888 | hpux9* | hpux10* | hpux11*) |
| 12889 | lt_prog_compiler_wl_F77='-Wl,' |
| 12890 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 12891 | # not for PA HP-UX. |
| 12892 | case "$host_cpu" in |
| 12893 | hppa*64*|ia64*) |
| 12894 | # +Z the default |
| 12895 | ;; |
| 12896 | *) |
| 12897 | lt_prog_compiler_pic_F77='+Z' |
| 12898 | ;; |
| 12899 | esac |
| 12900 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 12901 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 12902 | ;; |
| 12903 | |
| 12904 | irix5* | irix6* | nonstopux*) |
| 12905 | lt_prog_compiler_wl_F77='-Wl,' |
| 12906 | # PIC (with -KPIC) is the default. |
| 12907 | lt_prog_compiler_static_F77='-non_shared' |
| 12908 | ;; |
| 12909 | |
| 12910 | newsos6) |
| 12911 | lt_prog_compiler_pic_F77='-KPIC' |
| 12912 | lt_prog_compiler_static_F77='-Bstatic' |
| 12913 | ;; |
| 12914 | |
| 12915 | linux*) |
| 12916 | case $CC in |
| 12917 | icc|ecc) |
| 12918 | lt_prog_compiler_wl_F77='-Wl,' |
| 12919 | lt_prog_compiler_pic_F77='-KPIC' |
| 12920 | lt_prog_compiler_static_F77='-static' |
| 12921 | ;; |
| 12922 | ccc) |
| 12923 | lt_prog_compiler_wl_F77='-Wl,' |
| 12924 | # All Alpha code is PIC. |
| 12925 | lt_prog_compiler_static_F77='-non_shared' |
| 12926 | ;; |
| 12927 | esac |
| 12928 | ;; |
| 12929 | |
| 12930 | osf3* | osf4* | osf5*) |
| 12931 | lt_prog_compiler_wl_F77='-Wl,' |
| 12932 | # All OSF/1 code is PIC. |
| 12933 | lt_prog_compiler_static_F77='-non_shared' |
| 12934 | ;; |
| 12935 | |
| 12936 | sco3.2v5*) |
| 12937 | lt_prog_compiler_pic_F77='-Kpic' |
| 12938 | lt_prog_compiler_static_F77='-dn' |
| 12939 | ;; |
| 12940 | |
| 12941 | solaris*) |
| 12942 | lt_prog_compiler_wl_F77='-Wl,' |
| 12943 | lt_prog_compiler_pic_F77='-KPIC' |
| 12944 | lt_prog_compiler_static_F77='-Bstatic' |
| 12945 | ;; |
| 12946 | |
| 12947 | sunos4*) |
| 12948 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 12949 | lt_prog_compiler_pic_F77='-PIC' |
| 12950 | lt_prog_compiler_static_F77='-Bstatic' |
| 12951 | ;; |
| 12952 | |
| 12953 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 12954 | lt_prog_compiler_wl_F77='-Wl,' |
| 12955 | lt_prog_compiler_pic_F77='-KPIC' |
| 12956 | lt_prog_compiler_static_F77='-Bstatic' |
| 12957 | ;; |
| 12958 | |
| 12959 | sysv4*MP*) |
| 12960 | if test -d /usr/nec ;then |
| 12961 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 12962 | lt_prog_compiler_static_F77='-Bstatic' |
| 12963 | fi |
| 12964 | ;; |
| 12965 | |
| 12966 | uts4*) |
| 12967 | lt_prog_compiler_pic_F77='-pic' |
| 12968 | lt_prog_compiler_static_F77='-Bstatic' |
| 12969 | ;; |
| 12970 | |
| 12971 | *) |
| 12972 | lt_prog_compiler_can_build_shared_F77=no |
| 12973 | ;; |
| 12974 | esac |
| 12975 | fi |
| 12976 | |
| 12977 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 12978 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
| 12979 | |
| 12980 | # |
| 12981 | # Check to make sure the PIC flag actually works. |
| 12982 | # |
| 12983 | if test -n "$lt_prog_compiler_pic_F77"; then |
| 12984 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 12985 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
| 12986 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 12987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12988 | else |
| 12989 | lt_prog_compiler_pic_works_F77=no |
| 12990 | ac_outfile=conftest.$ac_objext |
| 12991 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12992 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 12993 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12994 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12995 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12996 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12997 | # The option is referenced via a variable to avoid confusing sed. |
| 12998 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12999 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 13000 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13001 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 13002 | (eval echo "\"\$as_me:13002: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13003 | (eval "$lt_compile" 2>conftest.err) |
| 13004 | ac_status=$? |
| 13005 | cat conftest.err >&5 |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 13006 | echo "$as_me:13006: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13007 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 13008 | # The compiler can only warn and ignore the option if not recognized |
| 13009 | # So say no if there are warnings |
| 13010 | if test ! -s conftest.err; then |
| 13011 | lt_prog_compiler_pic_works_F77=yes |
| 13012 | fi |
| 13013 | fi |
| 13014 | $rm conftest* |
| 13015 | |
| 13016 | fi |
| 13017 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 13018 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
| 13019 | |
| 13020 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 13021 | case $lt_prog_compiler_pic_F77 in |
| 13022 | "" | " "*) ;; |
| 13023 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 13024 | esac |
| 13025 | else |
| 13026 | lt_prog_compiler_pic_F77= |
| 13027 | lt_prog_compiler_can_build_shared_F77=no |
| 13028 | fi |
| 13029 | |
| 13030 | fi |
| 13031 | case "$host_os" in |
| 13032 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 13033 | *djgpp*) |
| 13034 | lt_prog_compiler_pic_F77= |
| 13035 | ;; |
| 13036 | *) |
| 13037 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 13038 | ;; |
| 13039 | esac |
| 13040 | |
| 13041 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13042 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 13043 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 13044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13045 | else |
| 13046 | lt_cv_prog_compiler_c_o_F77=no |
| 13047 | $rm -r conftest 2>/dev/null |
| 13048 | mkdir conftest |
| 13049 | cd conftest |
| 13050 | mkdir out |
| 13051 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13052 | |
| 13053 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 13054 | # that will create temporary files in the current directory regardless of |
| 13055 | # the output directory. Thus, making CWD read-only will cause this test |
| 13056 | # to fail, enabling locking or at least warning the user not to do parallel |
| 13057 | # builds. |
| 13058 | chmod -w . |
| 13059 | |
| 13060 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13061 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13062 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13063 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13064 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13065 | lt_compile=`echo "$ac_compile" | $SED \ |
| 13066 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 13067 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13068 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 13069 | (eval echo "\"\$as_me:13069: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13070 | (eval "$lt_compile" 2>out/conftest.err) |
| 13071 | ac_status=$? |
| 13072 | cat out/conftest.err >&5 |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 13073 | echo "$as_me:13073: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13074 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13075 | then |
| 13076 | # The compiler can only warn and ignore the option if not recognized |
| 13077 | # So say no if there are warnings |
| 13078 | if test ! -s out/conftest.err; then |
| 13079 | lt_cv_prog_compiler_c_o_F77=yes |
| 13080 | fi |
| 13081 | fi |
| 13082 | chmod u+w . |
| 13083 | $rm conftest* out/* |
| 13084 | rmdir out |
| 13085 | cd .. |
| 13086 | rmdir conftest |
| 13087 | $rm conftest* |
| 13088 | |
| 13089 | fi |
| 13090 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 13091 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
| 13092 | |
| 13093 | |
| 13094 | hard_links="nottested" |
| 13095 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 13096 | # do not overwrite the value of need_locks provided by the user |
| 13097 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 13098 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 13099 | hard_links=yes |
| 13100 | $rm conftest* |
| 13101 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13102 | touch conftest.a |
| 13103 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 13104 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13105 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 13106 | echo "${ECHO_T}$hard_links" >&6 |
| 13107 | if test "$hard_links" = no; then |
| 13108 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 13109 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 13110 | need_locks=warn |
| 13111 | fi |
| 13112 | else |
| 13113 | need_locks=no |
| 13114 | fi |
| 13115 | |
| 13116 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 13117 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 13118 | |
| 13119 | runpath_var= |
| 13120 | allow_undefined_flag_F77= |
| 13121 | enable_shared_with_static_runtimes_F77=no |
| 13122 | archive_cmds_F77= |
| 13123 | archive_expsym_cmds_F77= |
| 13124 | old_archive_From_new_cmds_F77= |
| 13125 | old_archive_from_expsyms_cmds_F77= |
| 13126 | export_dynamic_flag_spec_F77= |
| 13127 | whole_archive_flag_spec_F77= |
| 13128 | thread_safe_flag_spec_F77= |
| 13129 | hardcode_libdir_flag_spec_F77= |
| 13130 | hardcode_libdir_flag_spec_ld_F77= |
| 13131 | hardcode_libdir_separator_F77= |
| 13132 | hardcode_direct_F77=no |
| 13133 | hardcode_minus_L_F77=no |
| 13134 | hardcode_shlibpath_var_F77=unsupported |
| 13135 | link_all_deplibs_F77=unknown |
| 13136 | hardcode_automatic_F77=no |
| 13137 | module_cmds_F77= |
| 13138 | module_expsym_cmds_F77= |
| 13139 | always_export_symbols_F77=no |
| 13140 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13141 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 13142 | # included in the symbol list |
| 13143 | include_expsyms_F77= |
| 13144 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 13145 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 13146 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 13147 | # as well as any symbol that contains `d'. |
| 13148 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 13149 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 13150 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 13151 | # the symbol is explicitly referenced. Since portable code cannot |
| 13152 | # rely on this symbol name, it's probably fine to never include it in |
| 13153 | # preloaded symbol tables. |
| 13154 | extract_expsyms_cmds= |
| 13155 | |
| 13156 | case $host_os in |
| 13157 | cygwin* | mingw* | pw32*) |
| 13158 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 13159 | # When not using gcc, we currently assume that we are using |
| 13160 | # Microsoft Visual C++. |
| 13161 | if test "$GCC" != yes; then |
| 13162 | with_gnu_ld=no |
| 13163 | fi |
| 13164 | ;; |
| 13165 | openbsd*) |
| 13166 | with_gnu_ld=no |
| 13167 | ;; |
| 13168 | esac |
| 13169 | |
| 13170 | ld_shlibs_F77=yes |
| 13171 | if test "$with_gnu_ld" = yes; then |
| 13172 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 13173 | wlarc='${wl}' |
| 13174 | |
| 13175 | # See if GNU ld supports shared libraries. |
| 13176 | case $host_os in |
| 13177 | aix3* | aix4* | aix5*) |
| 13178 | # On AIX/PPC, the GNU linker is very broken |
| 13179 | if test "$host_cpu" != ia64; then |
| 13180 | ld_shlibs_F77=no |
| 13181 | cat <<EOF 1>&2 |
| 13182 | |
| 13183 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 13184 | *** to be unable to reliably create shared libraries on AIX. |
| 13185 | *** Therefore, libtool is disabling shared libraries support. If you |
| 13186 | *** really care for shared libraries, you may want to modify your PATH |
| 13187 | *** so that a non-GNU linker is found, and then restart. |
| 13188 | |
| 13189 | EOF |
| 13190 | fi |
| 13191 | ;; |
| 13192 | |
| 13193 | amigaos*) |
| 13194 | archive_cmds_F77='$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)' |
| 13195 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13196 | hardcode_minus_L_F77=yes |
| 13197 | |
| 13198 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 13199 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 13200 | # to version 4, is to share data among multiple programs linked |
| 13201 | # with the same dynamic library. Since this doesn't match the |
| 13202 | # behavior of shared libraries on other platforms, we can't use |
| 13203 | # them. |
| 13204 | ld_shlibs_F77=no |
| 13205 | ;; |
| 13206 | |
| 13207 | beos*) |
| 13208 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 13209 | allow_undefined_flag_F77=unsupported |
| 13210 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 13211 | # support --undefined. This deserves some investigation. FIXME |
| 13212 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13213 | else |
| 13214 | ld_shlibs_F77=no |
| 13215 | fi |
| 13216 | ;; |
| 13217 | |
| 13218 | cygwin* | mingw* | pw32*) |
| 13219 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 13220 | # as there is no search path for DLLs. |
| 13221 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13222 | allow_undefined_flag_F77=unsupported |
| 13223 | always_export_symbols_F77=no |
| 13224 | enable_shared_with_static_runtimes_F77=yes |
| 13225 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 13226 | |
| 13227 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 13228 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 13229 | # If the export-symbols file already is a .def file (1st line |
| 13230 | # is EXPORTS), use it as is; otherwise, prepend... |
| 13231 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 13232 | cp $export_symbols $output_objdir/$soname.def; |
| 13233 | else |
| 13234 | echo EXPORTS > $output_objdir/$soname.def; |
| 13235 | cat $export_symbols >> $output_objdir/$soname.def; |
| 13236 | fi~ |
| 13237 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 13238 | else |
| 13239 | ld_shlibs=no |
| 13240 | fi |
| 13241 | ;; |
| 13242 | |
| 13243 | netbsd*) |
| 13244 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 13245 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 13246 | wlarc= |
| 13247 | else |
| 13248 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13249 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13250 | fi |
| 13251 | ;; |
| 13252 | |
| 13253 | solaris* | sysv5*) |
| 13254 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 13255 | ld_shlibs_F77=no |
| 13256 | cat <<EOF 1>&2 |
| 13257 | |
| 13258 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 13259 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 13260 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 13261 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 13262 | *** your PATH or compiler configuration so that the native linker is |
| 13263 | *** used, and then restart. |
| 13264 | |
| 13265 | EOF |
| 13266 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 13267 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13268 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13269 | else |
| 13270 | ld_shlibs_F77=no |
| 13271 | fi |
| 13272 | ;; |
| 13273 | |
| 13274 | sunos4*) |
| 13275 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13276 | wlarc= |
| 13277 | hardcode_direct_F77=yes |
| 13278 | hardcode_shlibpath_var_F77=no |
| 13279 | ;; |
| 13280 | |
| 13281 | *) |
| 13282 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 13283 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13284 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13285 | else |
| 13286 | ld_shlibs_F77=no |
| 13287 | fi |
| 13288 | ;; |
| 13289 | esac |
| 13290 | |
| 13291 | if test "$ld_shlibs_F77" = yes; then |
| 13292 | runpath_var=LD_RUN_PATH |
| 13293 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 13294 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 13295 | # ancient GNU ld didn't support --whole-archive et. al. |
| 13296 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 13297 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 13298 | else |
| 13299 | whole_archive_flag_spec_F77= |
| 13300 | fi |
| 13301 | fi |
| 13302 | else |
| 13303 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 13304 | case $host_os in |
| 13305 | aix3*) |
| 13306 | allow_undefined_flag_F77=unsupported |
| 13307 | always_export_symbols_F77=yes |
| 13308 | archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
| 13309 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 13310 | # are no directories specified by -L. |
| 13311 | hardcode_minus_L_F77=yes |
| 13312 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 13313 | # Neither direct hardcoding nor static linking is supported with a |
| 13314 | # broken collect2. |
| 13315 | hardcode_direct_F77=unsupported |
| 13316 | fi |
| 13317 | ;; |
| 13318 | |
| 13319 | aix4* | aix5*) |
| 13320 | if test "$host_cpu" = ia64; then |
| 13321 | # On IA64, the linker does run time linking by default, so we don't |
| 13322 | # have to do anything special. |
| 13323 | aix_use_runtimelinking=no |
| 13324 | exp_sym_flag='-Bexport' |
| 13325 | no_entry_flag="" |
| 13326 | else |
| 13327 | # If we're using GNU nm, then we don't want the "-C" option. |
| 13328 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 13329 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 13330 | export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 13331 | else |
| 13332 | export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 13333 | fi |
| 13334 | aix_use_runtimelinking=no |
| 13335 | |
| 13336 | # Test if we are trying to use run time linking or normal |
| 13337 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 13338 | # need to do runtime linking. |
| 13339 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 13340 | for ld_flag in $LDFLAGS; do |
| 13341 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 13342 | aix_use_runtimelinking=yes |
| 13343 | break |
| 13344 | fi |
| 13345 | done |
| 13346 | esac |
| 13347 | |
| 13348 | exp_sym_flag='-bexport' |
| 13349 | no_entry_flag='-bnoentry' |
| 13350 | fi |
| 13351 | |
| 13352 | # When large executables or shared objects are built, AIX ld can |
| 13353 | # have problems creating the table of contents. If linking a library |
| 13354 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 13355 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 13356 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 13357 | |
| 13358 | archive_cmds_F77='' |
| 13359 | hardcode_direct_F77=yes |
| 13360 | hardcode_libdir_separator_F77=':' |
| 13361 | link_all_deplibs_F77=yes |
| 13362 | |
| 13363 | if test "$GCC" = yes; then |
| 13364 | case $host_os in aix4.012|aix4.012.*) |
| 13365 | # We only want to do this on AIX 4.2 and lower, the check |
| 13366 | # below for broken collect2 doesn't work under 4.3+ |
| 13367 | collect2name=`${CC} -print-prog-name=collect2` |
| 13368 | if test -f "$collect2name" && \ |
| 13369 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 13370 | then |
| 13371 | # We have reworked collect2 |
| 13372 | hardcode_direct_F77=yes |
| 13373 | else |
| 13374 | # We have old collect2 |
| 13375 | hardcode_direct_F77=unsupported |
| 13376 | # It fails to find uninstalled libraries when the uninstalled |
| 13377 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 13378 | # to unsupported forces relinking |
| 13379 | hardcode_minus_L_F77=yes |
| 13380 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13381 | hardcode_libdir_separator_F77= |
| 13382 | fi |
| 13383 | esac |
| 13384 | shared_flag='-shared' |
| 13385 | else |
| 13386 | # not using gcc |
| 13387 | if test "$host_cpu" = ia64; then |
| 13388 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 13389 | # chokes on -Wl,-G. The following line is correct: |
| 13390 | shared_flag='-G' |
| 13391 | else |
| 13392 | if test "$aix_use_runtimelinking" = yes; then |
| 13393 | shared_flag='${wl}-G' |
| 13394 | else |
| 13395 | shared_flag='${wl}-bM:SRE' |
| 13396 | fi |
| 13397 | fi |
| 13398 | fi |
| 13399 | |
| 13400 | # It seems that -bexpall does not export symbols beginning with |
| 13401 | # underscore (_), so it is better to generate a list of symbols to export. |
| 13402 | always_export_symbols_F77=yes |
| 13403 | if test "$aix_use_runtimelinking" = yes; then |
| 13404 | # Warning - without using the other runtime loading flags (-brtl), |
| 13405 | # -berok will link without error, but may produce a broken library. |
| 13406 | allow_undefined_flag_F77='-berok' |
| 13407 | # Determine the default libpath from the value encoded in an empty executable. |
| 13408 | cat >conftest.$ac_ext <<_ACEOF |
| 13409 | program main |
| 13410 | |
| 13411 | end |
| 13412 | _ACEOF |
| 13413 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13414 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13415 | (eval $ac_link) 2>&5 |
| 13416 | ac_status=$? |
| 13417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13418 | (exit $ac_status); } && |
| 13419 | { ac_try='test -s conftest$ac_exeext' |
| 13420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13421 | (eval $ac_try) 2>&5 |
| 13422 | ac_status=$? |
| 13423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13424 | (exit $ac_status); }; }; then |
| 13425 | |
| 13426 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13427 | }'` |
| 13428 | # Check for a 64-bit object if we didn't find anything. |
| 13429 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13430 | }'`; fi |
| 13431 | else |
| 13432 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13434 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13435 | fi |
| 13436 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13437 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 13438 | |
| 13439 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13440 | archive_expsym_cmds_F77="\$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" |
| 13441 | else |
| 13442 | if test "$host_cpu" = ia64; then |
| 13443 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 13444 | allow_undefined_flag_F77="-z nodefs" |
| 13445 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 13446 | else |
| 13447 | # Determine the default libpath from the value encoded in an empty executable. |
| 13448 | cat >conftest.$ac_ext <<_ACEOF |
| 13449 | program main |
| 13450 | |
| 13451 | end |
| 13452 | _ACEOF |
| 13453 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13454 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13455 | (eval $ac_link) 2>&5 |
| 13456 | ac_status=$? |
| 13457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13458 | (exit $ac_status); } && |
| 13459 | { ac_try='test -s conftest$ac_exeext' |
| 13460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13461 | (eval $ac_try) 2>&5 |
| 13462 | ac_status=$? |
| 13463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13464 | (exit $ac_status); }; }; then |
| 13465 | |
| 13466 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13467 | }'` |
| 13468 | # Check for a 64-bit object if we didn't find anything. |
| 13469 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13470 | }'`; fi |
| 13471 | else |
| 13472 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13474 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13475 | fi |
| 13476 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13477 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 13478 | |
| 13479 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13480 | # Warning - without using the other run time loading flags, |
| 13481 | # -berok will link without error, but may produce a broken library. |
| 13482 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 13483 | allow_undefined_flag_F77=' ${wl}-berok' |
| 13484 | # -bexpall does not export symbols beginning with underscore (_) |
| 13485 | always_export_symbols_F77=yes |
| 13486 | # Exported symbols can be pulled into shared objects from archives |
| 13487 | whole_archive_flag_spec_F77=' ' |
| 13488 | archive_cmds_need_lc_F77=yes |
| 13489 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 13490 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 13491 | fi |
| 13492 | fi |
| 13493 | ;; |
| 13494 | |
| 13495 | amigaos*) |
| 13496 | archive_cmds_F77='$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)' |
| 13497 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13498 | hardcode_minus_L_F77=yes |
| 13499 | # see comment about different semantics on the GNU ld section |
| 13500 | ld_shlibs_F77=no |
| 13501 | ;; |
| 13502 | |
| 13503 | bsdi4*) |
| 13504 | export_dynamic_flag_spec_F77=-rdynamic |
| 13505 | ;; |
| 13506 | |
| 13507 | cygwin* | mingw* | pw32*) |
| 13508 | # When not using gcc, we currently assume that we are using |
| 13509 | # Microsoft Visual C++. |
| 13510 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 13511 | # no search path for DLLs. |
| 13512 | hardcode_libdir_flag_spec_F77=' ' |
| 13513 | allow_undefined_flag_F77=unsupported |
| 13514 | # Tell ltmain to make .lib files, not .a files. |
| 13515 | libext=lib |
| 13516 | # Tell ltmain to make .dll files, not .so files. |
| 13517 | shrext=".dll" |
| 13518 | # FIXME: Setting linknames here is a bad hack. |
| 13519 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 13520 | # The linker will automatically build a .lib file if we build a DLL. |
| 13521 | old_archive_From_new_cmds_F77='true' |
| 13522 | # FIXME: Should let the user specify the lib program. |
| 13523 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 13524 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 13525 | enable_shared_with_static_runtimes_F77=yes |
| 13526 | ;; |
| 13527 | |
| 13528 | darwin* | rhapsody*) |
| 13529 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 13530 | archive_cmds_need_lc_F77=no |
| 13531 | case "$host_os" in |
| 13532 | rhapsody* | darwin1.[012]) |
| 13533 | allow_undefined_flag_F77='-undefined suppress' |
| 13534 | ;; |
| 13535 | *) # Darwin 1.3 on |
| 13536 | test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
| 13537 | ;; |
| 13538 | esac |
| 13539 | # FIXME: Relying on posixy $() will cause problems for |
| 13540 | # cross-compilation, but unfortunately the echo tests do not |
| 13541 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles |
| 13542 | # `"' quotes if we put them in here... so don't! |
| 13543 | lt_int_apple_cc_single_mod=no |
| 13544 | output_verbose_link_cmd='echo' |
| 13545 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 13546 | lt_int_apple_cc_single_mod=yes |
| 13547 | fi |
| 13548 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 13549 | archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 13550 | else |
| 13551 | archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 13552 | fi |
| 13553 | module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
| 13554 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 13555 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 13556 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 13557 | else |
| 13558 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 13559 | fi |
| 13560 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 13561 | hardcode_direct_F77=no |
| 13562 | hardcode_automatic_F77=yes |
| 13563 | hardcode_shlibpath_var_F77=unsupported |
| 13564 | whole_archive_flag_spec_F77='-all_load $convenience' |
| 13565 | link_all_deplibs_F77=yes |
| 13566 | fi |
| 13567 | ;; |
| 13568 | |
| 13569 | dgux*) |
| 13570 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13571 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13572 | hardcode_shlibpath_var_F77=no |
| 13573 | ;; |
| 13574 | |
| 13575 | freebsd1*) |
| 13576 | ld_shlibs_F77=no |
| 13577 | ;; |
| 13578 | |
| 13579 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 13580 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 13581 | # does not break anything, and helps significantly (at the cost of a little |
| 13582 | # extra space). |
| 13583 | freebsd2.2*) |
| 13584 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 13585 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13586 | hardcode_direct_F77=yes |
| 13587 | hardcode_shlibpath_var_F77=no |
| 13588 | ;; |
| 13589 | |
| 13590 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 13591 | freebsd2*) |
| 13592 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13593 | hardcode_direct_F77=yes |
| 13594 | hardcode_minus_L_F77=yes |
| 13595 | hardcode_shlibpath_var_F77=no |
| 13596 | ;; |
| 13597 | |
| 13598 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 13599 | freebsd*) |
| 13600 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 13601 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13602 | hardcode_direct_F77=yes |
| 13603 | hardcode_shlibpath_var_F77=no |
| 13604 | ;; |
| 13605 | |
| 13606 | hpux9*) |
| 13607 | if test "$GCC" = yes; then |
| 13608 | archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 13609 | else |
| 13610 | archive_cmds_F77='$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' |
| 13611 | fi |
| 13612 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 13613 | hardcode_libdir_separator_F77=: |
| 13614 | hardcode_direct_F77=yes |
| 13615 | |
| 13616 | # hardcode_minus_L: Not really in the search PATH, |
| 13617 | # but as the default location of the library. |
| 13618 | hardcode_minus_L_F77=yes |
| 13619 | export_dynamic_flag_spec_F77='${wl}-E' |
| 13620 | ;; |
| 13621 | |
| 13622 | hpux10* | hpux11*) |
| 13623 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 13624 | case "$host_cpu" in |
| 13625 | hppa*64*|ia64*) |
| 13626 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13627 | ;; |
| 13628 | *) |
| 13629 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 13630 | ;; |
| 13631 | esac |
| 13632 | else |
| 13633 | case "$host_cpu" in |
| 13634 | hppa*64*|ia64*) |
| 13635 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13636 | ;; |
| 13637 | *) |
| 13638 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 13639 | ;; |
| 13640 | esac |
| 13641 | fi |
| 13642 | if test "$with_gnu_ld" = no; then |
| 13643 | case "$host_cpu" in |
| 13644 | hppa*64*) |
| 13645 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 13646 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 13647 | hardcode_libdir_separator_F77=: |
| 13648 | hardcode_direct_F77=no |
| 13649 | hardcode_shlibpath_var_F77=no |
| 13650 | ;; |
| 13651 | ia64*) |
| 13652 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13653 | hardcode_direct_F77=no |
| 13654 | hardcode_shlibpath_var_F77=no |
| 13655 | |
| 13656 | # hardcode_minus_L: Not really in the search PATH, |
| 13657 | # but as the default location of the library. |
| 13658 | hardcode_minus_L_F77=yes |
| 13659 | ;; |
| 13660 | *) |
| 13661 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 13662 | hardcode_libdir_separator_F77=: |
| 13663 | hardcode_direct_F77=yes |
| 13664 | export_dynamic_flag_spec_F77='${wl}-E' |
| 13665 | |
| 13666 | # hardcode_minus_L: Not really in the search PATH, |
| 13667 | # but as the default location of the library. |
| 13668 | hardcode_minus_L_F77=yes |
| 13669 | ;; |
| 13670 | esac |
| 13671 | fi |
| 13672 | ;; |
| 13673 | |
| 13674 | irix5* | irix6* | nonstopux*) |
| 13675 | if test "$GCC" = yes; then |
| 13676 | archive_cmds_F77='$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' |
| 13677 | else |
| 13678 | archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 13679 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 13680 | fi |
| 13681 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 13682 | hardcode_libdir_separator_F77=: |
| 13683 | link_all_deplibs_F77=yes |
| 13684 | ;; |
| 13685 | |
| 13686 | netbsd*) |
| 13687 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 13688 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 13689 | else |
| 13690 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 13691 | fi |
| 13692 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13693 | hardcode_direct_F77=yes |
| 13694 | hardcode_shlibpath_var_F77=no |
| 13695 | ;; |
| 13696 | |
| 13697 | newsos6) |
| 13698 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13699 | hardcode_direct_F77=yes |
| 13700 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 13701 | hardcode_libdir_separator_F77=: |
| 13702 | hardcode_shlibpath_var_F77=no |
| 13703 | ;; |
| 13704 | |
| 13705 | openbsd*) |
| 13706 | hardcode_direct_F77=yes |
| 13707 | hardcode_shlibpath_var_F77=no |
| 13708 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13709 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 13710 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 13711 | export_dynamic_flag_spec_F77='${wl}-E' |
| 13712 | else |
| 13713 | case $host_os in |
| 13714 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 13715 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13716 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13717 | ;; |
| 13718 | *) |
| 13719 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 13720 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 13721 | ;; |
| 13722 | esac |
| 13723 | fi |
| 13724 | ;; |
| 13725 | |
| 13726 | os2*) |
| 13727 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13728 | hardcode_minus_L_F77=yes |
| 13729 | allow_undefined_flag_F77=unsupported |
| 13730 | archive_cmds_F77='$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' |
| 13731 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 13732 | ;; |
| 13733 | |
| 13734 | osf3*) |
| 13735 | if test "$GCC" = yes; then |
| 13736 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 13737 | archive_cmds_F77='$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' |
| 13738 | else |
| 13739 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 13740 | archive_cmds_F77='$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' |
| 13741 | fi |
| 13742 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 13743 | hardcode_libdir_separator_F77=: |
| 13744 | ;; |
| 13745 | |
| 13746 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 13747 | if test "$GCC" = yes; then |
| 13748 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 13749 | archive_cmds_F77='$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' |
| 13750 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 13751 | else |
| 13752 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 13753 | archive_cmds_F77='$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' |
| 13754 | archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 13755 | $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' |
| 13756 | |
| 13757 | # Both c and cxx compiler support -rpath directly |
| 13758 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 13759 | fi |
| 13760 | hardcode_libdir_separator_F77=: |
| 13761 | ;; |
| 13762 | |
| 13763 | sco3.2v5*) |
| 13764 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13765 | hardcode_shlibpath_var_F77=no |
| 13766 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
| 13767 | runpath_var=LD_RUN_PATH |
| 13768 | hardcode_runpath_var=yes |
| 13769 | ;; |
| 13770 | |
| 13771 | solaris*) |
| 13772 | no_undefined_flag_F77=' -z text' |
| 13773 | if test "$GCC" = yes; then |
| 13774 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13775 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 13776 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 13777 | else |
| 13778 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13779 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 13780 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 13781 | fi |
| 13782 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13783 | hardcode_shlibpath_var_F77=no |
| 13784 | case $host_os in |
| 13785 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 13786 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 13787 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 13788 | esac |
| 13789 | link_all_deplibs_F77=yes |
| 13790 | ;; |
| 13791 | |
| 13792 | sunos4*) |
| 13793 | if test "x$host_vendor" = xsequent; then |
| 13794 | # Use $CC to link under sequent, because it throws in some extra .o |
| 13795 | # files that make .init and .fini sections work. |
| 13796 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13797 | else |
| 13798 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 13799 | fi |
| 13800 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13801 | hardcode_direct_F77=yes |
| 13802 | hardcode_minus_L_F77=yes |
| 13803 | hardcode_shlibpath_var_F77=no |
| 13804 | ;; |
| 13805 | |
| 13806 | sysv4) |
| 13807 | case $host_vendor in |
| 13808 | sni) |
| 13809 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13810 | hardcode_direct_F77=yes # is this really true??? |
| 13811 | ;; |
| 13812 | siemens) |
| 13813 | ## LD is ld it makes a PLAMLIB |
| 13814 | ## CC just makes a GrossModule. |
| 13815 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 13816 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 13817 | hardcode_direct_F77=no |
| 13818 | ;; |
| 13819 | motorola) |
| 13820 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13821 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 13822 | ;; |
| 13823 | esac |
| 13824 | runpath_var='LD_RUN_PATH' |
| 13825 | hardcode_shlibpath_var_F77=no |
| 13826 | ;; |
| 13827 | |
| 13828 | sysv4.3*) |
| 13829 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13830 | hardcode_shlibpath_var_F77=no |
| 13831 | export_dynamic_flag_spec_F77='-Bexport' |
| 13832 | ;; |
| 13833 | |
| 13834 | sysv4*MP*) |
| 13835 | if test -d /usr/nec; then |
| 13836 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13837 | hardcode_shlibpath_var_F77=no |
| 13838 | runpath_var=LD_RUN_PATH |
| 13839 | hardcode_runpath_var=yes |
| 13840 | ld_shlibs_F77=yes |
| 13841 | fi |
| 13842 | ;; |
| 13843 | |
| 13844 | sysv4.2uw2*) |
| 13845 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 13846 | hardcode_direct_F77=yes |
| 13847 | hardcode_minus_L_F77=no |
| 13848 | hardcode_shlibpath_var_F77=no |
| 13849 | hardcode_runpath_var=yes |
| 13850 | runpath_var=LD_RUN_PATH |
| 13851 | ;; |
| 13852 | |
| 13853 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 13854 | no_undefined_flag_F77='${wl}-z ${wl}text' |
| 13855 | if test "$GCC" = yes; then |
| 13856 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13857 | else |
| 13858 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13859 | fi |
| 13860 | runpath_var='LD_RUN_PATH' |
| 13861 | hardcode_shlibpath_var_F77=no |
| 13862 | ;; |
| 13863 | |
| 13864 | sysv5*) |
| 13865 | no_undefined_flag_F77=' -z text' |
| 13866 | # $CC -shared without GNU ld will not create a library from C++ |
| 13867 | # object files and a static libstdc++, better avoid it by now |
| 13868 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13869 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 13870 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 13871 | hardcode_libdir_flag_spec_F77= |
| 13872 | hardcode_shlibpath_var_F77=no |
| 13873 | runpath_var='LD_RUN_PATH' |
| 13874 | ;; |
| 13875 | |
| 13876 | uts4*) |
| 13877 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13878 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13879 | hardcode_shlibpath_var_F77=no |
| 13880 | ;; |
| 13881 | |
| 13882 | *) |
| 13883 | ld_shlibs_F77=no |
| 13884 | ;; |
| 13885 | esac |
| 13886 | fi |
| 13887 | |
| 13888 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 13889 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
| 13890 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 13891 | |
| 13892 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 13893 | if test "$GCC" = yes; then |
| 13894 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 13895 | fi |
| 13896 | |
| 13897 | # |
| 13898 | # Do we need to explicitly link libc? |
| 13899 | # |
| 13900 | case "x$archive_cmds_need_lc_F77" in |
| 13901 | x|xyes) |
| 13902 | # Assume -lc should be added |
| 13903 | archive_cmds_need_lc_F77=yes |
| 13904 | |
| 13905 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 13906 | case $archive_cmds_F77 in |
| 13907 | *'~'*) |
| 13908 | # FIXME: we may have to deal with multi-command sequences. |
| 13909 | ;; |
| 13910 | '$CC '*) |
| 13911 | # Test whether the compiler implicitly links with -lc since on some |
| 13912 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 13913 | # to ld, don't add -lc before -lgcc. |
| 13914 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 13915 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 13916 | $rm conftest* |
| 13917 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13918 | |
| 13919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13920 | (eval $ac_compile) 2>&5 |
| 13921 | ac_status=$? |
| 13922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13923 | (exit $ac_status); } 2>conftest.err; then |
| 13924 | soname=conftest |
| 13925 | lib=conftest |
| 13926 | libobjs=conftest.$ac_objext |
| 13927 | deplibs= |
| 13928 | wl=$lt_prog_compiler_wl_F77 |
| 13929 | compiler_flags=-v |
| 13930 | linker_flags=-v |
| 13931 | verstring= |
| 13932 | output_objdir=. |
| 13933 | libname=conftest |
| 13934 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 13935 | allow_undefined_flag_F77= |
| 13936 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 13937 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 13938 | ac_status=$? |
| 13939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13940 | (exit $ac_status); } |
| 13941 | then |
| 13942 | archive_cmds_need_lc_F77=no |
| 13943 | else |
| 13944 | archive_cmds_need_lc_F77=yes |
| 13945 | fi |
| 13946 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 13947 | else |
| 13948 | cat conftest.err 1>&5 |
| 13949 | fi |
| 13950 | $rm conftest* |
| 13951 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 13952 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
| 13953 | ;; |
| 13954 | esac |
| 13955 | fi |
| 13956 | ;; |
| 13957 | esac |
| 13958 | |
| 13959 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 13960 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 13961 | hardcode_action_F77= |
| 13962 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 13963 | test -n "$runpath_var F77" || \ |
| 13964 | test "X$hardcode_automatic_F77"="Xyes" ; then |
| 13965 | |
| 13966 | # We can hardcode non-existant directories. |
| 13967 | if test "$hardcode_direct_F77" != no && |
| 13968 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 13969 | # have to relink, otherwise we might link with an installed library |
| 13970 | # when we should be linking with a yet-to-be-installed one |
| 13971 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 13972 | test "$hardcode_minus_L_F77" != no; then |
| 13973 | # Linking always hardcodes the temporary library directory. |
| 13974 | hardcode_action_F77=relink |
| 13975 | else |
| 13976 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 13977 | hardcode_action_F77=immediate |
| 13978 | fi |
| 13979 | else |
| 13980 | # We cannot hardcode anything, or else we can only hardcode existing |
| 13981 | # directories. |
| 13982 | hardcode_action_F77=unsupported |
| 13983 | fi |
| 13984 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 13985 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
| 13986 | |
| 13987 | if test "$hardcode_action_F77" = relink; then |
| 13988 | # Fast installation is not supported |
| 13989 | enable_fast_install=no |
| 13990 | elif test "$shlibpath_overrides_runpath" = yes || |
| 13991 | test "$enable_shared" = no; then |
| 13992 | # Fast installation is not necessary |
| 13993 | enable_fast_install=needless |
| 13994 | fi |
| 13995 | |
| 13996 | striplib= |
| 13997 | old_striplib= |
| 13998 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 13999 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 14000 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 14001 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 14002 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 14003 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14004 | echo "${ECHO_T}yes" >&6 |
| 14005 | else |
| 14006 | # FIXME - insert some real tests, host_os isn't really good enough |
| 14007 | case $host_os in |
| 14008 | darwin*) |
| 14009 | if test -n "$STRIP" ; then |
| 14010 | striplib="$STRIP -x" |
| 14011 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14012 | echo "${ECHO_T}yes" >&6 |
| 14013 | else |
| 14014 | echo "$as_me:$LINENO: result: no" >&5 |
| 14015 | echo "${ECHO_T}no" >&6 |
| 14016 | fi |
| 14017 | ;; |
| 14018 | *) |
| 14019 | echo "$as_me:$LINENO: result: no" >&5 |
| 14020 | echo "${ECHO_T}no" >&6 |
| 14021 | ;; |
| 14022 | esac |
| 14023 | fi |
| 14024 | |
| 14025 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 14026 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 14027 | library_names_spec= |
| 14028 | libname_spec='lib$name' |
| 14029 | soname_spec= |
| 14030 | shrext=".so" |
| 14031 | postinstall_cmds= |
| 14032 | postuninstall_cmds= |
| 14033 | finish_cmds= |
| 14034 | finish_eval= |
| 14035 | shlibpath_var= |
| 14036 | shlibpath_overrides_runpath=unknown |
| 14037 | version_type=none |
| 14038 | dynamic_linker="$host_os ld.so" |
| 14039 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 14040 | if test "$GCC" = yes; then |
| 14041 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 14042 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 14043 | # if the path contains ";" then we assume it to be the separator |
| 14044 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 14045 | # assumed that no part of a normal pathname contains ";" but that should |
| 14046 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 14047 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 14048 | else |
| 14049 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 14050 | fi |
| 14051 | else |
| 14052 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 14053 | fi |
| 14054 | need_lib_prefix=unknown |
| 14055 | hardcode_into_libs=no |
| 14056 | |
| 14057 | # when you set need_version to no, make sure it does not cause -set_version |
| 14058 | # flags to be left without arguments |
| 14059 | need_version=unknown |
| 14060 | |
| 14061 | case $host_os in |
| 14062 | aix3*) |
| 14063 | version_type=linux |
| 14064 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 14065 | shlibpath_var=LIBPATH |
| 14066 | |
| 14067 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 14068 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14069 | ;; |
| 14070 | |
| 14071 | aix4* | aix5*) |
| 14072 | version_type=linux |
| 14073 | need_lib_prefix=no |
| 14074 | need_version=no |
| 14075 | hardcode_into_libs=yes |
| 14076 | if test "$host_cpu" = ia64; then |
| 14077 | # AIX 5 supports IA64 |
| 14078 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 14079 | shlibpath_var=LD_LIBRARY_PATH |
| 14080 | else |
| 14081 | # With GCC up to 2.95.x, collect2 would create an import file |
| 14082 | # for dependence libraries. The import file would start with |
| 14083 | # the line `#! .'. This would cause the generated library to |
| 14084 | # depend on `.', always an invalid library. This was fixed in |
| 14085 | # development snapshots of GCC prior to 3.0. |
| 14086 | case $host_os in |
| 14087 | aix4 | aix4.[01] | aix4.[01].*) |
| 14088 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 14089 | echo ' yes ' |
| 14090 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 14091 | : |
| 14092 | else |
| 14093 | can_build_shared=no |
| 14094 | fi |
| 14095 | ;; |
| 14096 | esac |
| 14097 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 14098 | # soname into executable. Probably we can add versioning support to |
| 14099 | # collect2, so additional links can be useful in future. |
| 14100 | if test "$aix_use_runtimelinking" = yes; then |
| 14101 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 14102 | # instead of lib<name>.a to let people know that these are not |
| 14103 | # typical AIX shared libraries. |
| 14104 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14105 | else |
| 14106 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 14107 | # and later when we are not doing run time linking. |
| 14108 | library_names_spec='${libname}${release}.a $libname.a' |
| 14109 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14110 | fi |
| 14111 | shlibpath_var=LIBPATH |
| 14112 | fi |
| 14113 | ;; |
| 14114 | |
| 14115 | amigaos*) |
| 14116 | library_names_spec='$libname.ixlibrary $libname.a' |
| 14117 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 14118 | 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' |
| 14119 | ;; |
| 14120 | |
| 14121 | beos*) |
| 14122 | library_names_spec='${libname}${shared_ext}' |
| 14123 | dynamic_linker="$host_os ld.so" |
| 14124 | shlibpath_var=LIBRARY_PATH |
| 14125 | ;; |
| 14126 | |
| 14127 | bsdi4*) |
| 14128 | version_type=linux |
| 14129 | need_version=no |
| 14130 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14131 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14132 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 14133 | shlibpath_var=LD_LIBRARY_PATH |
| 14134 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 14135 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 14136 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 14137 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 14138 | # libtool to hard-code these into programs |
| 14139 | ;; |
| 14140 | |
| 14141 | cygwin* | mingw* | pw32*) |
| 14142 | version_type=windows |
| 14143 | shrext=".dll" |
| 14144 | need_version=no |
| 14145 | need_lib_prefix=no |
| 14146 | |
| 14147 | case $GCC,$host_os in |
| 14148 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 14149 | library_names_spec='$libname.dll.a' |
| 14150 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 14151 | postinstall_cmds='base_file=`basename \${file}`~ |
| 14152 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 14153 | dldir=$destdir/`dirname \$dlpath`~ |
| 14154 | test -d \$dldir || mkdir -p \$dldir~ |
| 14155 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 14156 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 14157 | dlpath=$dir/\$dldll~ |
| 14158 | $rm \$dlpath' |
| 14159 | shlibpath_overrides_runpath=yes |
| 14160 | |
| 14161 | case $host_os in |
| 14162 | cygwin*) |
| 14163 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 14164 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 14165 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" |
| 14166 | ;; |
| 14167 | mingw*) |
| 14168 | # MinGW DLLs use traditional 'lib' prefix |
| 14169 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 14170 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 14171 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 14172 | # It is most probably a Windows format PATH printed by |
| 14173 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 14174 | # path with ; separators, and with drive letters. We can handle the |
| 14175 | # drive letters (cygwin fileutils understands them), so leave them, |
| 14176 | # especially as we might pass files found there to a mingw objdump, |
| 14177 | # which wouldn't understand a cygwinified path. Ahh. |
| 14178 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 14179 | else |
| 14180 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 14181 | fi |
| 14182 | ;; |
| 14183 | pw32*) |
| 14184 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 14185 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 14186 | ;; |
| 14187 | esac |
| 14188 | ;; |
| 14189 | |
| 14190 | *) |
| 14191 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 14192 | ;; |
| 14193 | esac |
| 14194 | dynamic_linker='Win32 ld.exe' |
| 14195 | # FIXME: first we should search . and the directory the executable is in |
| 14196 | shlibpath_var=PATH |
| 14197 | ;; |
| 14198 | |
| 14199 | darwin* | rhapsody*) |
| 14200 | dynamic_linker="$host_os dyld" |
| 14201 | version_type=darwin |
| 14202 | need_lib_prefix=no |
| 14203 | need_version=no |
| 14204 | # FIXME: Relying on posixy $() will cause problems for |
| 14205 | # cross-compilation, but unfortunately the echo tests do not |
| 14206 | # yet detect zsh echo's removal of \ escapes. |
| 14207 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 14208 | soname_spec='${libname}${release}${major}$shared_ext' |
| 14209 | shlibpath_overrides_runpath=yes |
| 14210 | shlibpath_var=DYLD_LIBRARY_PATH |
| 14211 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 14212 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 14213 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 14214 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 14215 | fi |
| 14216 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 14217 | ;; |
| 14218 | |
| 14219 | dgux*) |
| 14220 | version_type=linux |
| 14221 | need_lib_prefix=no |
| 14222 | need_version=no |
| 14223 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 14224 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14225 | shlibpath_var=LD_LIBRARY_PATH |
| 14226 | ;; |
| 14227 | |
| 14228 | freebsd1*) |
| 14229 | dynamic_linker=no |
| 14230 | ;; |
| 14231 | |
| 14232 | freebsd*) |
| 14233 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 14234 | version_type=freebsd-$objformat |
| 14235 | case $version_type in |
| 14236 | freebsd-elf*) |
| 14237 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14238 | need_version=no |
| 14239 | need_lib_prefix=no |
| 14240 | ;; |
| 14241 | freebsd-*) |
| 14242 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 14243 | need_version=yes |
| 14244 | ;; |
| 14245 | esac |
| 14246 | shlibpath_var=LD_LIBRARY_PATH |
| 14247 | case $host_os in |
| 14248 | freebsd2*) |
| 14249 | shlibpath_overrides_runpath=yes |
| 14250 | ;; |
| 14251 | freebsd3.01* | freebsdelf3.01*) |
| 14252 | shlibpath_overrides_runpath=yes |
| 14253 | hardcode_into_libs=yes |
| 14254 | ;; |
| 14255 | *) # from 3.2 on |
| 14256 | shlibpath_overrides_runpath=no |
| 14257 | hardcode_into_libs=yes |
| 14258 | ;; |
| 14259 | esac |
| 14260 | ;; |
| 14261 | |
| 14262 | gnu*) |
| 14263 | version_type=linux |
| 14264 | need_lib_prefix=no |
| 14265 | need_version=no |
| 14266 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 14267 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14268 | shlibpath_var=LD_LIBRARY_PATH |
| 14269 | hardcode_into_libs=yes |
| 14270 | ;; |
| 14271 | |
| 14272 | hpux9* | hpux10* | hpux11*) |
| 14273 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 14274 | # link against other versions. |
| 14275 | version_type=sunos |
| 14276 | need_lib_prefix=no |
| 14277 | need_version=no |
| 14278 | case "$host_cpu" in |
| 14279 | ia64*) |
| 14280 | shrext='.so' |
| 14281 | hardcode_into_libs=yes |
| 14282 | dynamic_linker="$host_os dld.so" |
| 14283 | shlibpath_var=LD_LIBRARY_PATH |
| 14284 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 14285 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14286 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14287 | if test "X$HPUX_IA64_MODE" = X32; then |
| 14288 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 14289 | else |
| 14290 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 14291 | fi |
| 14292 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 14293 | ;; |
| 14294 | hppa*64*) |
| 14295 | shrext='.sl' |
| 14296 | hardcode_into_libs=yes |
| 14297 | dynamic_linker="$host_os dld.sl" |
| 14298 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 14299 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 14300 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14301 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14302 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 14303 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 14304 | ;; |
| 14305 | *) |
| 14306 | shrext='.sl' |
| 14307 | dynamic_linker="$host_os dld.sl" |
| 14308 | shlibpath_var=SHLIB_PATH |
| 14309 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 14310 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14311 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14312 | ;; |
| 14313 | esac |
| 14314 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 14315 | postinstall_cmds='chmod 555 $lib' |
| 14316 | ;; |
| 14317 | |
| 14318 | irix5* | irix6* | nonstopux*) |
| 14319 | case $host_os in |
| 14320 | nonstopux*) version_type=nonstopux ;; |
| 14321 | *) |
| 14322 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 14323 | version_type=linux |
| 14324 | else |
| 14325 | version_type=irix |
| 14326 | fi ;; |
| 14327 | esac |
| 14328 | need_lib_prefix=no |
| 14329 | need_version=no |
| 14330 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14331 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14332 | case $host_os in |
| 14333 | irix5* | nonstopux*) |
| 14334 | libsuff= shlibsuff= |
| 14335 | ;; |
| 14336 | *) |
| 14337 | case $LD in # libtool.m4 will add one of these switches to LD |
| 14338 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 14339 | libsuff= shlibsuff= libmagic=32-bit;; |
| 14340 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 14341 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 14342 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 14343 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 14344 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 14345 | esac |
| 14346 | ;; |
| 14347 | esac |
| 14348 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 14349 | shlibpath_overrides_runpath=no |
| 14350 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 14351 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 14352 | hardcode_into_libs=yes |
| 14353 | ;; |
| 14354 | |
| 14355 | # No shared lib support for Linux oldld, aout, or coff. |
| 14356 | linux*oldld* | linux*aout* | linux*coff*) |
| 14357 | dynamic_linker=no |
| 14358 | ;; |
| 14359 | |
| 14360 | # This must be Linux ELF. |
| 14361 | linux*) |
| 14362 | version_type=linux |
| 14363 | need_lib_prefix=no |
| 14364 | need_version=no |
| 14365 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14366 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14367 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 14368 | shlibpath_var=LD_LIBRARY_PATH |
| 14369 | shlibpath_overrides_runpath=no |
| 14370 | # This implies no fast_install, which is unacceptable. |
| 14371 | # Some rework will be needed to allow for fast_install |
| 14372 | # before this can be enabled. |
| 14373 | hardcode_into_libs=yes |
| 14374 | |
| 14375 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 14376 | # powerpc, because MkLinux only supported shared libraries with the |
| 14377 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 14378 | # most powerpc-linux boxes support dynamic linking these days and |
| 14379 | # people can always --disable-shared, the test was removed, and we |
| 14380 | # assume the GNU/Linux dynamic linker is in use. |
| 14381 | dynamic_linker='GNU/Linux ld.so' |
| 14382 | ;; |
| 14383 | |
| 14384 | netbsd*) |
| 14385 | version_type=sunos |
| 14386 | need_lib_prefix=no |
| 14387 | need_version=no |
| 14388 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14389 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14390 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14391 | dynamic_linker='NetBSD (a.out) ld.so' |
| 14392 | else |
| 14393 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
| 14394 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14395 | dynamic_linker='NetBSD ld.elf_so' |
| 14396 | fi |
| 14397 | shlibpath_var=LD_LIBRARY_PATH |
| 14398 | shlibpath_overrides_runpath=yes |
| 14399 | hardcode_into_libs=yes |
| 14400 | ;; |
| 14401 | |
| 14402 | newsos6) |
| 14403 | version_type=linux |
| 14404 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14405 | shlibpath_var=LD_LIBRARY_PATH |
| 14406 | shlibpath_overrides_runpath=yes |
| 14407 | ;; |
| 14408 | |
| 14409 | nto-qnx) |
| 14410 | version_type=linux |
| 14411 | need_lib_prefix=no |
| 14412 | need_version=no |
| 14413 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14414 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14415 | shlibpath_var=LD_LIBRARY_PATH |
| 14416 | shlibpath_overrides_runpath=yes |
| 14417 | ;; |
| 14418 | |
| 14419 | openbsd*) |
| 14420 | version_type=sunos |
| 14421 | need_lib_prefix=no |
| 14422 | need_version=no |
| 14423 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14424 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14425 | shlibpath_var=LD_LIBRARY_PATH |
| 14426 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 14427 | case $host_os in |
| 14428 | openbsd2.[89] | openbsd2.[89].*) |
| 14429 | shlibpath_overrides_runpath=no |
| 14430 | ;; |
| 14431 | *) |
| 14432 | shlibpath_overrides_runpath=yes |
| 14433 | ;; |
| 14434 | esac |
| 14435 | else |
| 14436 | shlibpath_overrides_runpath=yes |
| 14437 | fi |
| 14438 | ;; |
| 14439 | |
| 14440 | os2*) |
| 14441 | libname_spec='$name' |
| 14442 | shrext=".dll" |
| 14443 | need_lib_prefix=no |
| 14444 | library_names_spec='$libname${shared_ext} $libname.a' |
| 14445 | dynamic_linker='OS/2 ld.exe' |
| 14446 | shlibpath_var=LIBPATH |
| 14447 | ;; |
| 14448 | |
| 14449 | osf3* | osf4* | osf5*) |
| 14450 | version_type=osf |
| 14451 | need_lib_prefix=no |
| 14452 | need_version=no |
| 14453 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14454 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14455 | shlibpath_var=LD_LIBRARY_PATH |
| 14456 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 14457 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 14458 | ;; |
| 14459 | |
| 14460 | sco3.2v5*) |
| 14461 | version_type=osf |
| 14462 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14463 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14464 | shlibpath_var=LD_LIBRARY_PATH |
| 14465 | ;; |
| 14466 | |
| 14467 | solaris*) |
| 14468 | version_type=linux |
| 14469 | need_lib_prefix=no |
| 14470 | need_version=no |
| 14471 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14472 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14473 | shlibpath_var=LD_LIBRARY_PATH |
| 14474 | shlibpath_overrides_runpath=yes |
| 14475 | hardcode_into_libs=yes |
| 14476 | # ldd complains unless libraries are executable |
| 14477 | postinstall_cmds='chmod +x $lib' |
| 14478 | ;; |
| 14479 | |
| 14480 | sunos4*) |
| 14481 | version_type=sunos |
| 14482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14483 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 14484 | shlibpath_var=LD_LIBRARY_PATH |
| 14485 | shlibpath_overrides_runpath=yes |
| 14486 | if test "$with_gnu_ld" = yes; then |
| 14487 | need_lib_prefix=no |
| 14488 | fi |
| 14489 | need_version=yes |
| 14490 | ;; |
| 14491 | |
| 14492 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 14493 | version_type=linux |
| 14494 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14495 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14496 | shlibpath_var=LD_LIBRARY_PATH |
| 14497 | case $host_vendor in |
| 14498 | sni) |
| 14499 | shlibpath_overrides_runpath=no |
| 14500 | need_lib_prefix=no |
| 14501 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 14502 | runpath_var=LD_RUN_PATH |
| 14503 | ;; |
| 14504 | siemens) |
| 14505 | need_lib_prefix=no |
| 14506 | ;; |
| 14507 | motorola) |
| 14508 | need_lib_prefix=no |
| 14509 | need_version=no |
| 14510 | shlibpath_overrides_runpath=no |
| 14511 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 14512 | ;; |
| 14513 | esac |
| 14514 | ;; |
| 14515 | |
| 14516 | sysv4*MP*) |
| 14517 | if test -d /usr/nec ;then |
| 14518 | version_type=linux |
| 14519 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 14520 | soname_spec='$libname${shared_ext}.$major' |
| 14521 | shlibpath_var=LD_LIBRARY_PATH |
| 14522 | fi |
| 14523 | ;; |
| 14524 | |
| 14525 | uts4*) |
| 14526 | version_type=linux |
| 14527 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14528 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14529 | shlibpath_var=LD_LIBRARY_PATH |
| 14530 | ;; |
| 14531 | |
| 14532 | *) |
| 14533 | dynamic_linker=no |
| 14534 | ;; |
| 14535 | esac |
| 14536 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 14537 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 14538 | test "$dynamic_linker" = no && can_build_shared=no |
| 14539 | |
| 14540 | |
| 14541 | # The else clause should only fire when bootstrapping the |
| 14542 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 14543 | # with your package, and you will get complaints that there are |
| 14544 | # no rules to generate ltmain.sh. |
| 14545 | if test -f "$ltmain"; then |
| 14546 | # See if we are running on zsh, and set the options which allow our commands through |
| 14547 | # without removal of \ escapes. |
| 14548 | if test -n "${ZSH_VERSION+set}" ; then |
| 14549 | setopt NO_GLOB_SUBST |
| 14550 | fi |
| 14551 | # Now quote all the things that may contain metacharacters while being |
| 14552 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 14553 | # variables and quote the copies for generation of the libtool script. |
| 14554 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
| 14555 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 14556 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 14557 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 14558 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 14559 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 14560 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 14561 | old_postinstall_cmds old_postuninstall_cmds \ |
| 14562 | compiler_F77 \ |
| 14563 | CC_F77 \ |
| 14564 | LD_F77 \ |
| 14565 | lt_prog_compiler_wl_F77 \ |
| 14566 | lt_prog_compiler_pic_F77 \ |
| 14567 | lt_prog_compiler_static_F77 \ |
| 14568 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 14569 | export_dynamic_flag_spec_F77 \ |
| 14570 | thread_safe_flag_spec_F77 \ |
| 14571 | whole_archive_flag_spec_F77 \ |
| 14572 | enable_shared_with_static_runtimes_F77 \ |
| 14573 | old_archive_cmds_F77 \ |
| 14574 | old_archive_from_new_cmds_F77 \ |
| 14575 | predep_objects_F77 \ |
| 14576 | postdep_objects_F77 \ |
| 14577 | predeps_F77 \ |
| 14578 | postdeps_F77 \ |
| 14579 | compiler_lib_search_path_F77 \ |
| 14580 | archive_cmds_F77 \ |
| 14581 | archive_expsym_cmds_F77 \ |
| 14582 | postinstall_cmds_F77 \ |
| 14583 | postuninstall_cmds_F77 \ |
| 14584 | old_archive_from_expsyms_cmds_F77 \ |
| 14585 | allow_undefined_flag_F77 \ |
| 14586 | no_undefined_flag_F77 \ |
| 14587 | export_symbols_cmds_F77 \ |
| 14588 | hardcode_libdir_flag_spec_F77 \ |
| 14589 | hardcode_libdir_flag_spec_ld_F77 \ |
| 14590 | hardcode_libdir_separator_F77 \ |
| 14591 | hardcode_automatic_F77 \ |
| 14592 | module_cmds_F77 \ |
| 14593 | module_expsym_cmds_F77 \ |
| 14594 | lt_cv_prog_compiler_c_o_F77 \ |
| 14595 | exclude_expsyms_F77 \ |
| 14596 | include_expsyms_F77; do |
| 14597 | |
| 14598 | case $var in |
| 14599 | old_archive_cmds_F77 | \ |
| 14600 | old_archive_from_new_cmds_F77 | \ |
| 14601 | archive_cmds_F77 | \ |
| 14602 | archive_expsym_cmds_F77 | \ |
| 14603 | module_cmds_F77 | \ |
| 14604 | module_expsym_cmds_F77 | \ |
| 14605 | old_archive_from_expsyms_cmds_F77 | \ |
| 14606 | export_symbols_cmds_F77 | \ |
| 14607 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 14608 | postinstall_cmds | postuninstall_cmds | \ |
| 14609 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 14610 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 14611 | # Double-quote double-evaled strings. |
| 14612 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 14613 | ;; |
| 14614 | *) |
| 14615 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 14616 | ;; |
| 14617 | esac |
| 14618 | done |
| 14619 | |
| 14620 | case $lt_echo in |
| 14621 | *'\$0 --fallback-echo"') |
| 14622 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 14623 | ;; |
| 14624 | esac |
| 14625 | |
| 14626 | cfgfile="$ofile" |
| 14627 | |
| 14628 | cat <<__EOF__ >> "$cfgfile" |
| 14629 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 14630 | |
| 14631 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 14632 | |
| 14633 | # Shell to use when invoking shell scripts. |
| 14634 | SHELL=$lt_SHELL |
| 14635 | |
| 14636 | # Whether or not to build shared libraries. |
| 14637 | build_libtool_libs=$enable_shared |
| 14638 | |
| 14639 | # Whether or not to build static libraries. |
| 14640 | build_old_libs=$enable_static |
| 14641 | |
| 14642 | # Whether or not to add -lc for building shared libraries. |
| 14643 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 14644 | |
| 14645 | # Whether or not to disallow shared libs when runtime libs are static |
| 14646 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 14647 | |
| 14648 | # Whether or not to optimize for fast installation. |
| 14649 | fast_install=$enable_fast_install |
| 14650 | |
| 14651 | # The host system. |
| 14652 | host_alias=$host_alias |
| 14653 | host=$host |
| 14654 | |
| 14655 | # An echo program that does not interpret backslashes. |
| 14656 | echo=$lt_echo |
| 14657 | |
| 14658 | # The archiver. |
| 14659 | AR=$lt_AR |
| 14660 | AR_FLAGS=$lt_AR_FLAGS |
| 14661 | |
| 14662 | # A C compiler. |
| 14663 | LTCC=$lt_LTCC |
| 14664 | |
| 14665 | # A language-specific compiler. |
| 14666 | CC=$lt_compiler_F77 |
| 14667 | |
| 14668 | # Is the compiler the GNU C compiler? |
| 14669 | with_gcc=$GCC_F77 |
| 14670 | |
| 14671 | # An ERE matcher. |
| 14672 | EGREP=$lt_EGREP |
| 14673 | |
| 14674 | # The linker used to build libraries. |
| 14675 | LD=$lt_LD_F77 |
| 14676 | |
| 14677 | # Whether we need hard or soft links. |
| 14678 | LN_S=$lt_LN_S |
| 14679 | |
| 14680 | # A BSD-compatible nm program. |
| 14681 | NM=$lt_NM |
| 14682 | |
| 14683 | # A symbol stripping program |
| 14684 | STRIP=$STRIP |
| 14685 | |
| 14686 | # Used to examine libraries when file_magic_cmd begins "file" |
| 14687 | MAGIC_CMD=$MAGIC_CMD |
| 14688 | |
| 14689 | # Used on cygwin: DLL creation program. |
| 14690 | DLLTOOL="$DLLTOOL" |
| 14691 | |
| 14692 | # Used on cygwin: object dumper. |
| 14693 | OBJDUMP="$OBJDUMP" |
| 14694 | |
| 14695 | # Used on cygwin: assembler. |
| 14696 | AS="$AS" |
| 14697 | |
| 14698 | # The name of the directory that contains temporary libtool files. |
| 14699 | objdir=$objdir |
| 14700 | |
| 14701 | # How to create reloadable object files. |
| 14702 | reload_flag=$lt_reload_flag |
| 14703 | reload_cmds=$lt_reload_cmds |
| 14704 | |
| 14705 | # How to pass a linker flag through the compiler. |
| 14706 | wl=$lt_lt_prog_compiler_wl_F77 |
| 14707 | |
| 14708 | # Object file suffix (normally "o"). |
| 14709 | objext="$ac_objext" |
| 14710 | |
| 14711 | # Old archive suffix (normally "a"). |
| 14712 | libext="$libext" |
| 14713 | |
| 14714 | # Shared library suffix (normally ".so"). |
| 14715 | shrext='$shrext' |
| 14716 | |
| 14717 | # Executable file suffix (normally ""). |
| 14718 | exeext="$exeext" |
| 14719 | |
| 14720 | # Additional compiler flags for building library objects. |
| 14721 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 14722 | pic_mode=$pic_mode |
| 14723 | |
| 14724 | # What is the maximum length of a command? |
| 14725 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 14726 | |
| 14727 | # Does compiler simultaneously support -c and -o options? |
| 14728 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 14729 | |
| 14730 | # Must we lock files when doing compilation ? |
| 14731 | need_locks=$lt_need_locks |
| 14732 | |
| 14733 | # Do we need the lib prefix for modules? |
| 14734 | need_lib_prefix=$need_lib_prefix |
| 14735 | |
| 14736 | # Do we need a version for libraries? |
| 14737 | need_version=$need_version |
| 14738 | |
| 14739 | # Whether dlopen is supported. |
| 14740 | dlopen_support=$enable_dlopen |
| 14741 | |
| 14742 | # Whether dlopen of programs is supported. |
| 14743 | dlopen_self=$enable_dlopen_self |
| 14744 | |
| 14745 | # Whether dlopen of statically linked programs is supported. |
| 14746 | dlopen_self_static=$enable_dlopen_self_static |
| 14747 | |
| 14748 | # Compiler flag to prevent dynamic linking. |
| 14749 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 14750 | |
| 14751 | # Compiler flag to turn off builtin functions. |
| 14752 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 14753 | |
| 14754 | # Compiler flag to allow reflexive dlopens. |
| 14755 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 14756 | |
| 14757 | # Compiler flag to generate shared objects directly from archives. |
| 14758 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 14759 | |
| 14760 | # Compiler flag to generate thread-safe objects. |
| 14761 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 14762 | |
| 14763 | # Library versioning type. |
| 14764 | version_type=$version_type |
| 14765 | |
| 14766 | # Format of library name prefix. |
| 14767 | libname_spec=$lt_libname_spec |
| 14768 | |
| 14769 | # List of archive names. First name is the real one, the rest are links. |
| 14770 | # The last name is the one that the linker finds with -lNAME. |
| 14771 | library_names_spec=$lt_library_names_spec |
| 14772 | |
| 14773 | # The coded name of the library, if different from the real name. |
| 14774 | soname_spec=$lt_soname_spec |
| 14775 | |
| 14776 | # Commands used to build and install an old-style archive. |
| 14777 | RANLIB=$lt_RANLIB |
| 14778 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 14779 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 14780 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 14781 | |
| 14782 | # Create an old-style archive from a shared archive. |
| 14783 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 14784 | |
| 14785 | # Create a temporary old-style archive to link instead of a shared archive. |
| 14786 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 14787 | |
| 14788 | # Commands used to build and install a shared archive. |
| 14789 | archive_cmds=$lt_archive_cmds_F77 |
| 14790 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 14791 | postinstall_cmds=$lt_postinstall_cmds |
| 14792 | postuninstall_cmds=$lt_postuninstall_cmds |
| 14793 | |
| 14794 | # Commands used to build a loadable module (assumed same as above if empty) |
| 14795 | module_cmds=$lt_module_cmds_F77 |
| 14796 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 14797 | |
| 14798 | # Commands to strip libraries. |
| 14799 | old_striplib=$lt_old_striplib |
| 14800 | striplib=$lt_striplib |
| 14801 | |
| 14802 | # Dependencies to place before the objects being linked to create a |
| 14803 | # shared library. |
| 14804 | predep_objects=$lt_predep_objects_F77 |
| 14805 | |
| 14806 | # Dependencies to place after the objects being linked to create a |
| 14807 | # shared library. |
| 14808 | postdep_objects=$lt_postdep_objects_F77 |
| 14809 | |
| 14810 | # Dependencies to place before the objects being linked to create a |
| 14811 | # shared library. |
| 14812 | predeps=$lt_predeps_F77 |
| 14813 | |
| 14814 | # Dependencies to place after the objects being linked to create a |
| 14815 | # shared library. |
| 14816 | postdeps=$lt_postdeps_F77 |
| 14817 | |
| 14818 | # The library search path used internally by the compiler when linking |
| 14819 | # a shared library. |
| 14820 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 14821 | |
| 14822 | # Method to check whether dependent libraries are shared objects. |
| 14823 | deplibs_check_method=$lt_deplibs_check_method |
| 14824 | |
| 14825 | # Command to use when deplibs_check_method == file_magic. |
| 14826 | file_magic_cmd=$lt_file_magic_cmd |
| 14827 | |
| 14828 | # Flag that allows shared libraries with undefined symbols to be built. |
| 14829 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 14830 | |
| 14831 | # Flag that forces no undefined symbols. |
| 14832 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 14833 | |
| 14834 | # Commands used to finish a libtool library installation in a directory. |
| 14835 | finish_cmds=$lt_finish_cmds |
| 14836 | |
| 14837 | # Same as above, but a single script fragment to be evaled but not shown. |
| 14838 | finish_eval=$lt_finish_eval |
| 14839 | |
| 14840 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 14841 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 14842 | |
| 14843 | # Transform the output of nm in a proper C declaration |
| 14844 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 14845 | |
| 14846 | # Transform the output of nm in a C name address pair |
| 14847 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 14848 | |
| 14849 | # This is the shared library runtime path variable. |
| 14850 | runpath_var=$runpath_var |
| 14851 | |
| 14852 | # This is the shared library path variable. |
| 14853 | shlibpath_var=$shlibpath_var |
| 14854 | |
| 14855 | # Is shlibpath searched before the hard-coded library search path? |
| 14856 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 14857 | |
| 14858 | # How to hardcode a shared library path into an executable. |
| 14859 | hardcode_action=$hardcode_action_F77 |
| 14860 | |
| 14861 | # Whether we should hardcode library paths into libraries. |
| 14862 | hardcode_into_libs=$hardcode_into_libs |
| 14863 | |
| 14864 | # Flag to hardcode \$libdir into a binary during linking. |
| 14865 | # This must work even if \$libdir does not exist. |
| 14866 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 14867 | |
| 14868 | # If ld is used when linking, flag to hardcode \$libdir into |
| 14869 | # a binary during linking. This must work even if \$libdir does |
| 14870 | # not exist. |
| 14871 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 14872 | |
| 14873 | # Whether we need a single -rpath flag with a separated argument. |
| 14874 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 14875 | |
| 14876 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 14877 | # resulting binary. |
| 14878 | hardcode_direct=$hardcode_direct_F77 |
| 14879 | |
| 14880 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 14881 | # resulting binary. |
| 14882 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 14883 | |
| 14884 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 14885 | # the resulting binary. |
| 14886 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 14887 | |
| 14888 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 14889 | # and all subsequent libraries and executables linked against it. |
| 14890 | hardcode_automatic=$hardcode_automatic_F77 |
| 14891 | |
| 14892 | # Variables whose values should be saved in libtool wrapper scripts and |
| 14893 | # restored at relink time. |
| 14894 | variables_saved_for_relink="$variables_saved_for_relink" |
| 14895 | |
| 14896 | # Whether libtool must link a program against all its dependency libraries. |
| 14897 | link_all_deplibs=$link_all_deplibs_F77 |
| 14898 | |
| 14899 | # Compile-time system search path for libraries |
| 14900 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 14901 | |
| 14902 | # Run-time system search path for libraries |
| 14903 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 14904 | |
| 14905 | # Fix the shell variable \$srcfile for the compiler. |
| 14906 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 14907 | |
| 14908 | # Set to yes if exported symbols are required. |
| 14909 | always_export_symbols=$always_export_symbols_F77 |
| 14910 | |
| 14911 | # The commands to list exported symbols. |
| 14912 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 14913 | |
| 14914 | # The commands to extract the exported symbol list from a shared archive. |
| 14915 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 14916 | |
| 14917 | # Symbols that should not be listed in the preloaded symbols. |
| 14918 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 14919 | |
| 14920 | # Symbols that must always be exported. |
| 14921 | include_expsyms=$lt_include_expsyms_F77 |
| 14922 | |
| 14923 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 14924 | |
| 14925 | __EOF__ |
| 14926 | |
| 14927 | |
| 14928 | else |
| 14929 | # If there is no Makefile yet, we rely on a make rule to execute |
| 14930 | # `config.status --recheck' to rerun these tests and create the |
| 14931 | # libtool script then. |
| 14932 | test -f Makefile && make "$ltmain" |
| 14933 | fi |
| 14934 | |
| 14935 | |
| 14936 | ac_ext=c |
| 14937 | ac_cpp='$CPP $CPPFLAGS' |
| 14938 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14939 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14940 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14941 | |
| 14942 | CC="$lt_save_CC" |
| 14943 | |
| 14944 | else |
| 14945 | tagname="" |
| 14946 | fi |
| 14947 | ;; |
| 14948 | |
| 14949 | GCJ) |
| 14950 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
| 14951 | |
| 14952 | |
| 14953 | |
| 14954 | # Source file extension for Java test sources. |
| 14955 | ac_ext=java |
| 14956 | |
| 14957 | # Object file extension for compiled Java test sources. |
| 14958 | objext=o |
| 14959 | objext_GCJ=$objext |
| 14960 | |
| 14961 | # Code to be used in simple compile tests |
| 14962 | lt_simple_compile_test_code="class foo {}\n" |
| 14963 | |
| 14964 | # Code to be used in simple link tests |
| 14965 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' |
| 14966 | |
| 14967 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 14968 | |
| 14969 | # If no C compiler was specified, use CC. |
| 14970 | LTCC=${LTCC-"$CC"} |
| 14971 | |
| 14972 | # Allow CC to be a program name with arguments. |
| 14973 | compiler=$CC |
| 14974 | |
| 14975 | |
| 14976 | # Allow CC to be a program name with arguments. |
| 14977 | lt_save_CC="$CC" |
| 14978 | CC=${GCJ-"gcj"} |
| 14979 | compiler=$CC |
| 14980 | compiler_GCJ=$CC |
| 14981 | |
| 14982 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 14983 | archive_cmds_need_lc_GCJ=no |
| 14984 | |
| 14985 | ## CAVEAT EMPTOR: |
| 14986 | ## There is no encapsulation within the following macros, do not change |
| 14987 | ## the running order or otherwise move them around unless you know exactly |
| 14988 | ## what you are doing... |
| 14989 | |
| 14990 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 14991 | |
| 14992 | if test "$GCC" = yes; then |
| 14993 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 14994 | |
| 14995 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 14996 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 14997 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 14998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14999 | else |
| 15000 | lt_cv_prog_compiler_rtti_exceptions=no |
| 15001 | ac_outfile=conftest.$ac_objext |
| 15002 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15003 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 15004 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15005 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15006 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15007 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15008 | # The option is referenced via a variable to avoid confusing sed. |
| 15009 | lt_compile=`echo "$ac_compile" | $SED \ |
| 15010 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 15011 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15012 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 15013 | (eval echo "\"\$as_me:15013: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15014 | (eval "$lt_compile" 2>conftest.err) |
| 15015 | ac_status=$? |
| 15016 | cat conftest.err >&5 |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 15017 | echo "$as_me:15017: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15018 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 15019 | # The compiler can only warn and ignore the option if not recognized |
| 15020 | # So say no if there are warnings |
| 15021 | if test ! -s conftest.err; then |
| 15022 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 15023 | fi |
| 15024 | fi |
| 15025 | $rm conftest* |
| 15026 | |
| 15027 | fi |
| 15028 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 15029 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 15030 | |
| 15031 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 15032 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 15033 | else |
| 15034 | : |
| 15035 | fi |
| 15036 | |
| 15037 | fi |
| 15038 | |
| 15039 | lt_prog_compiler_wl_GCJ= |
| 15040 | lt_prog_compiler_pic_GCJ= |
| 15041 | lt_prog_compiler_static_GCJ= |
| 15042 | |
| 15043 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 15044 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 15045 | |
| 15046 | if test "$GCC" = yes; then |
| 15047 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15048 | lt_prog_compiler_static_GCJ='-static' |
| 15049 | |
| 15050 | case $host_os in |
| 15051 | aix*) |
| 15052 | # All AIX code is PIC. |
| 15053 | if test "$host_cpu" = ia64; then |
| 15054 | # AIX 5 now supports IA64 processor |
| 15055 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15056 | fi |
| 15057 | ;; |
| 15058 | |
| 15059 | amigaos*) |
| 15060 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 15061 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 15062 | # like `-m68040'. |
| 15063 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 15064 | ;; |
| 15065 | |
| 15066 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 15067 | # PIC is the default for these OSes. |
| 15068 | ;; |
| 15069 | |
| 15070 | mingw* | pw32* | os2*) |
| 15071 | # This hack is so that the source file can tell whether it is being |
| 15072 | # built for inclusion in a dll (and should export symbols for example). |
| 15073 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 15074 | ;; |
| 15075 | |
| 15076 | darwin* | rhapsody*) |
| 15077 | # PIC is the default on this platform |
| 15078 | # Common symbols not allowed in MH_DYLIB files |
| 15079 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 15080 | ;; |
| 15081 | |
| 15082 | msdosdjgpp*) |
| 15083 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 15084 | # on systems that don't support them. |
| 15085 | lt_prog_compiler_can_build_shared_GCJ=no |
| 15086 | enable_shared=no |
| 15087 | ;; |
| 15088 | |
| 15089 | sysv4*MP*) |
| 15090 | if test -d /usr/nec; then |
| 15091 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 15092 | fi |
| 15093 | ;; |
| 15094 | |
| 15095 | hpux*) |
| 15096 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 15097 | # not for PA HP-UX. |
| 15098 | case "$host_cpu" in |
| 15099 | hppa*64*|ia64*) |
| 15100 | # +Z the default |
| 15101 | ;; |
| 15102 | *) |
| 15103 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 15104 | ;; |
| 15105 | esac |
| 15106 | ;; |
| 15107 | |
| 15108 | *) |
| 15109 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 15110 | ;; |
| 15111 | esac |
| 15112 | else |
| 15113 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 15114 | case $host_os in |
| 15115 | aix*) |
| 15116 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15117 | if test "$host_cpu" = ia64; then |
| 15118 | # AIX 5 now supports IA64 processor |
| 15119 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15120 | else |
| 15121 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 15122 | fi |
| 15123 | ;; |
| 15124 | |
| 15125 | mingw* | pw32* | os2*) |
| 15126 | # This hack is so that the source file can tell whether it is being |
| 15127 | # built for inclusion in a dll (and should export symbols for example). |
| 15128 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 15129 | ;; |
| 15130 | |
| 15131 | hpux9* | hpux10* | hpux11*) |
| 15132 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15133 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 15134 | # not for PA HP-UX. |
| 15135 | case "$host_cpu" in |
| 15136 | hppa*64*|ia64*) |
| 15137 | # +Z the default |
| 15138 | ;; |
| 15139 | *) |
| 15140 | lt_prog_compiler_pic_GCJ='+Z' |
| 15141 | ;; |
| 15142 | esac |
| 15143 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 15144 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 15145 | ;; |
| 15146 | |
| 15147 | irix5* | irix6* | nonstopux*) |
| 15148 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15149 | # PIC (with -KPIC) is the default. |
| 15150 | lt_prog_compiler_static_GCJ='-non_shared' |
| 15151 | ;; |
| 15152 | |
| 15153 | newsos6) |
| 15154 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 15155 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15156 | ;; |
| 15157 | |
| 15158 | linux*) |
| 15159 | case $CC in |
| 15160 | icc|ecc) |
| 15161 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15162 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 15163 | lt_prog_compiler_static_GCJ='-static' |
| 15164 | ;; |
| 15165 | ccc) |
| 15166 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15167 | # All Alpha code is PIC. |
| 15168 | lt_prog_compiler_static_GCJ='-non_shared' |
| 15169 | ;; |
| 15170 | esac |
| 15171 | ;; |
| 15172 | |
| 15173 | osf3* | osf4* | osf5*) |
| 15174 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15175 | # All OSF/1 code is PIC. |
| 15176 | lt_prog_compiler_static_GCJ='-non_shared' |
| 15177 | ;; |
| 15178 | |
| 15179 | sco3.2v5*) |
| 15180 | lt_prog_compiler_pic_GCJ='-Kpic' |
| 15181 | lt_prog_compiler_static_GCJ='-dn' |
| 15182 | ;; |
| 15183 | |
| 15184 | solaris*) |
| 15185 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15186 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 15187 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15188 | ;; |
| 15189 | |
| 15190 | sunos4*) |
| 15191 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 15192 | lt_prog_compiler_pic_GCJ='-PIC' |
| 15193 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15194 | ;; |
| 15195 | |
| 15196 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 15197 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15198 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 15199 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15200 | ;; |
| 15201 | |
| 15202 | sysv4*MP*) |
| 15203 | if test -d /usr/nec ;then |
| 15204 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 15205 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15206 | fi |
| 15207 | ;; |
| 15208 | |
| 15209 | uts4*) |
| 15210 | lt_prog_compiler_pic_GCJ='-pic' |
| 15211 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15212 | ;; |
| 15213 | |
| 15214 | *) |
| 15215 | lt_prog_compiler_can_build_shared_GCJ=no |
| 15216 | ;; |
| 15217 | esac |
| 15218 | fi |
| 15219 | |
| 15220 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 15221 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
| 15222 | |
| 15223 | # |
| 15224 | # Check to make sure the PIC flag actually works. |
| 15225 | # |
| 15226 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
| 15227 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 15228 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
| 15229 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 15230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15231 | else |
| 15232 | lt_prog_compiler_pic_works_GCJ=no |
| 15233 | ac_outfile=conftest.$ac_objext |
| 15234 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15235 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 15236 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15237 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15238 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15239 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15240 | # The option is referenced via a variable to avoid confusing sed. |
| 15241 | lt_compile=`echo "$ac_compile" | $SED \ |
| 15242 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 15243 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15244 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 15245 | (eval echo "\"\$as_me:15245: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15246 | (eval "$lt_compile" 2>conftest.err) |
| 15247 | ac_status=$? |
| 15248 | cat conftest.err >&5 |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 15249 | echo "$as_me:15249: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15250 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 15251 | # The compiler can only warn and ignore the option if not recognized |
| 15252 | # So say no if there are warnings |
| 15253 | if test ! -s conftest.err; then |
| 15254 | lt_prog_compiler_pic_works_GCJ=yes |
| 15255 | fi |
| 15256 | fi |
| 15257 | $rm conftest* |
| 15258 | |
| 15259 | fi |
| 15260 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 15261 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
| 15262 | |
| 15263 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 15264 | case $lt_prog_compiler_pic_GCJ in |
| 15265 | "" | " "*) ;; |
| 15266 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 15267 | esac |
| 15268 | else |
| 15269 | lt_prog_compiler_pic_GCJ= |
| 15270 | lt_prog_compiler_can_build_shared_GCJ=no |
| 15271 | fi |
| 15272 | |
| 15273 | fi |
| 15274 | case "$host_os" in |
| 15275 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 15276 | *djgpp*) |
| 15277 | lt_prog_compiler_pic_GCJ= |
| 15278 | ;; |
| 15279 | *) |
| 15280 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 15281 | ;; |
| 15282 | esac |
| 15283 | |
| 15284 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 15285 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 15286 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 15287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15288 | else |
| 15289 | lt_cv_prog_compiler_c_o_GCJ=no |
| 15290 | $rm -r conftest 2>/dev/null |
| 15291 | mkdir conftest |
| 15292 | cd conftest |
| 15293 | mkdir out |
| 15294 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15295 | |
| 15296 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 15297 | # that will create temporary files in the current directory regardless of |
| 15298 | # the output directory. Thus, making CWD read-only will cause this test |
| 15299 | # to fail, enabling locking or at least warning the user not to do parallel |
| 15300 | # builds. |
| 15301 | chmod -w . |
| 15302 | |
| 15303 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 15304 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15305 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15306 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15307 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15308 | lt_compile=`echo "$ac_compile" | $SED \ |
| 15309 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 15310 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15311 | -e 's:$: $lt_compiler_flag:'` |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 15312 | (eval echo "\"\$as_me:15312: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15313 | (eval "$lt_compile" 2>out/conftest.err) |
| 15314 | ac_status=$? |
| 15315 | cat out/conftest.err >&5 |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 15316 | echo "$as_me:15316: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15317 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 15318 | then |
| 15319 | # The compiler can only warn and ignore the option if not recognized |
| 15320 | # So say no if there are warnings |
| 15321 | if test ! -s out/conftest.err; then |
| 15322 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 15323 | fi |
| 15324 | fi |
| 15325 | chmod u+w . |
| 15326 | $rm conftest* out/* |
| 15327 | rmdir out |
| 15328 | cd .. |
| 15329 | rmdir conftest |
| 15330 | $rm conftest* |
| 15331 | |
| 15332 | fi |
| 15333 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 15334 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
| 15335 | |
| 15336 | |
| 15337 | hard_links="nottested" |
| 15338 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 15339 | # do not overwrite the value of need_locks provided by the user |
| 15340 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 15341 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 15342 | hard_links=yes |
| 15343 | $rm conftest* |
| 15344 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15345 | touch conftest.a |
| 15346 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 15347 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15348 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 15349 | echo "${ECHO_T}$hard_links" >&6 |
| 15350 | if test "$hard_links" = no; then |
| 15351 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 15352 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 15353 | need_locks=warn |
| 15354 | fi |
| 15355 | else |
| 15356 | need_locks=no |
| 15357 | fi |
| 15358 | |
| 15359 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 15360 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 15361 | |
| 15362 | runpath_var= |
| 15363 | allow_undefined_flag_GCJ= |
| 15364 | enable_shared_with_static_runtimes_GCJ=no |
| 15365 | archive_cmds_GCJ= |
| 15366 | archive_expsym_cmds_GCJ= |
| 15367 | old_archive_From_new_cmds_GCJ= |
| 15368 | old_archive_from_expsyms_cmds_GCJ= |
| 15369 | export_dynamic_flag_spec_GCJ= |
| 15370 | whole_archive_flag_spec_GCJ= |
| 15371 | thread_safe_flag_spec_GCJ= |
| 15372 | hardcode_libdir_flag_spec_GCJ= |
| 15373 | hardcode_libdir_flag_spec_ld_GCJ= |
| 15374 | hardcode_libdir_separator_GCJ= |
| 15375 | hardcode_direct_GCJ=no |
| 15376 | hardcode_minus_L_GCJ=no |
| 15377 | hardcode_shlibpath_var_GCJ=unsupported |
| 15378 | link_all_deplibs_GCJ=unknown |
| 15379 | hardcode_automatic_GCJ=no |
| 15380 | module_cmds_GCJ= |
| 15381 | module_expsym_cmds_GCJ= |
| 15382 | always_export_symbols_GCJ=no |
| 15383 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 15384 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 15385 | # included in the symbol list |
| 15386 | include_expsyms_GCJ= |
| 15387 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 15388 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 15389 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 15390 | # as well as any symbol that contains `d'. |
| 15391 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 15392 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 15393 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 15394 | # the symbol is explicitly referenced. Since portable code cannot |
| 15395 | # rely on this symbol name, it's probably fine to never include it in |
| 15396 | # preloaded symbol tables. |
| 15397 | extract_expsyms_cmds= |
| 15398 | |
| 15399 | case $host_os in |
| 15400 | cygwin* | mingw* | pw32*) |
| 15401 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 15402 | # When not using gcc, we currently assume that we are using |
| 15403 | # Microsoft Visual C++. |
| 15404 | if test "$GCC" != yes; then |
| 15405 | with_gnu_ld=no |
| 15406 | fi |
| 15407 | ;; |
| 15408 | openbsd*) |
| 15409 | with_gnu_ld=no |
| 15410 | ;; |
| 15411 | esac |
| 15412 | |
| 15413 | ld_shlibs_GCJ=yes |
| 15414 | if test "$with_gnu_ld" = yes; then |
| 15415 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 15416 | wlarc='${wl}' |
| 15417 | |
| 15418 | # See if GNU ld supports shared libraries. |
| 15419 | case $host_os in |
| 15420 | aix3* | aix4* | aix5*) |
| 15421 | # On AIX/PPC, the GNU linker is very broken |
| 15422 | if test "$host_cpu" != ia64; then |
| 15423 | ld_shlibs_GCJ=no |
| 15424 | cat <<EOF 1>&2 |
| 15425 | |
| 15426 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 15427 | *** to be unable to reliably create shared libraries on AIX. |
| 15428 | *** Therefore, libtool is disabling shared libraries support. If you |
| 15429 | *** really care for shared libraries, you may want to modify your PATH |
| 15430 | *** so that a non-GNU linker is found, and then restart. |
| 15431 | |
| 15432 | EOF |
| 15433 | fi |
| 15434 | ;; |
| 15435 | |
| 15436 | amigaos*) |
| 15437 | archive_cmds_GCJ='$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)' |
| 15438 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15439 | hardcode_minus_L_GCJ=yes |
| 15440 | |
| 15441 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 15442 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 15443 | # to version 4, is to share data among multiple programs linked |
| 15444 | # with the same dynamic library. Since this doesn't match the |
| 15445 | # behavior of shared libraries on other platforms, we can't use |
| 15446 | # them. |
| 15447 | ld_shlibs_GCJ=no |
| 15448 | ;; |
| 15449 | |
| 15450 | beos*) |
| 15451 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15452 | allow_undefined_flag_GCJ=unsupported |
| 15453 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 15454 | # support --undefined. This deserves some investigation. FIXME |
| 15455 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15456 | else |
| 15457 | ld_shlibs_GCJ=no |
| 15458 | fi |
| 15459 | ;; |
| 15460 | |
| 15461 | cygwin* | mingw* | pw32*) |
| 15462 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 15463 | # as there is no search path for DLLs. |
| 15464 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15465 | allow_undefined_flag_GCJ=unsupported |
| 15466 | always_export_symbols_GCJ=no |
| 15467 | enable_shared_with_static_runtimes_GCJ=yes |
| 15468 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 15469 | |
| 15470 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 15471 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 15472 | # If the export-symbols file already is a .def file (1st line |
| 15473 | # is EXPORTS), use it as is; otherwise, prepend... |
| 15474 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 15475 | cp $export_symbols $output_objdir/$soname.def; |
| 15476 | else |
| 15477 | echo EXPORTS > $output_objdir/$soname.def; |
| 15478 | cat $export_symbols >> $output_objdir/$soname.def; |
| 15479 | fi~ |
| 15480 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 15481 | else |
| 15482 | ld_shlibs=no |
| 15483 | fi |
| 15484 | ;; |
| 15485 | |
| 15486 | netbsd*) |
| 15487 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15488 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 15489 | wlarc= |
| 15490 | else |
| 15491 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15492 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15493 | fi |
| 15494 | ;; |
| 15495 | |
| 15496 | solaris* | sysv5*) |
| 15497 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 15498 | ld_shlibs_GCJ=no |
| 15499 | cat <<EOF 1>&2 |
| 15500 | |
| 15501 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 15502 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 15503 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15504 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 15505 | *** your PATH or compiler configuration so that the native linker is |
| 15506 | *** used, and then restart. |
| 15507 | |
| 15508 | EOF |
| 15509 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15510 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15511 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15512 | else |
| 15513 | ld_shlibs_GCJ=no |
| 15514 | fi |
| 15515 | ;; |
| 15516 | |
| 15517 | sunos4*) |
| 15518 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15519 | wlarc= |
| 15520 | hardcode_direct_GCJ=yes |
| 15521 | hardcode_shlibpath_var_GCJ=no |
| 15522 | ;; |
| 15523 | |
| 15524 | *) |
| 15525 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15526 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15527 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15528 | else |
| 15529 | ld_shlibs_GCJ=no |
| 15530 | fi |
| 15531 | ;; |
| 15532 | esac |
| 15533 | |
| 15534 | if test "$ld_shlibs_GCJ" = yes; then |
| 15535 | runpath_var=LD_RUN_PATH |
| 15536 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 15537 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 15538 | # ancient GNU ld didn't support --whole-archive et. al. |
| 15539 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 15540 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 15541 | else |
| 15542 | whole_archive_flag_spec_GCJ= |
| 15543 | fi |
| 15544 | fi |
| 15545 | else |
| 15546 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 15547 | case $host_os in |
| 15548 | aix3*) |
| 15549 | allow_undefined_flag_GCJ=unsupported |
| 15550 | always_export_symbols_GCJ=yes |
| 15551 | archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
| 15552 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 15553 | # are no directories specified by -L. |
| 15554 | hardcode_minus_L_GCJ=yes |
| 15555 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 15556 | # Neither direct hardcoding nor static linking is supported with a |
| 15557 | # broken collect2. |
| 15558 | hardcode_direct_GCJ=unsupported |
| 15559 | fi |
| 15560 | ;; |
| 15561 | |
| 15562 | aix4* | aix5*) |
| 15563 | if test "$host_cpu" = ia64; then |
| 15564 | # On IA64, the linker does run time linking by default, so we don't |
| 15565 | # have to do anything special. |
| 15566 | aix_use_runtimelinking=no |
| 15567 | exp_sym_flag='-Bexport' |
| 15568 | no_entry_flag="" |
| 15569 | else |
| 15570 | # If we're using GNU nm, then we don't want the "-C" option. |
| 15571 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 15572 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 15573 | export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 15574 | else |
| 15575 | export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 15576 | fi |
| 15577 | aix_use_runtimelinking=no |
| 15578 | |
| 15579 | # Test if we are trying to use run time linking or normal |
| 15580 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 15581 | # need to do runtime linking. |
| 15582 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 15583 | for ld_flag in $LDFLAGS; do |
| 15584 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 15585 | aix_use_runtimelinking=yes |
| 15586 | break |
| 15587 | fi |
| 15588 | done |
| 15589 | esac |
| 15590 | |
| 15591 | exp_sym_flag='-bexport' |
| 15592 | no_entry_flag='-bnoentry' |
| 15593 | fi |
| 15594 | |
| 15595 | # When large executables or shared objects are built, AIX ld can |
| 15596 | # have problems creating the table of contents. If linking a library |
| 15597 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 15598 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15599 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15600 | |
| 15601 | archive_cmds_GCJ='' |
| 15602 | hardcode_direct_GCJ=yes |
| 15603 | hardcode_libdir_separator_GCJ=':' |
| 15604 | link_all_deplibs_GCJ=yes |
| 15605 | |
| 15606 | if test "$GCC" = yes; then |
| 15607 | case $host_os in aix4.012|aix4.012.*) |
| 15608 | # We only want to do this on AIX 4.2 and lower, the check |
| 15609 | # below for broken collect2 doesn't work under 4.3+ |
| 15610 | collect2name=`${CC} -print-prog-name=collect2` |
| 15611 | if test -f "$collect2name" && \ |
| 15612 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 15613 | then |
| 15614 | # We have reworked collect2 |
| 15615 | hardcode_direct_GCJ=yes |
| 15616 | else |
| 15617 | # We have old collect2 |
| 15618 | hardcode_direct_GCJ=unsupported |
| 15619 | # It fails to find uninstalled libraries when the uninstalled |
| 15620 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 15621 | # to unsupported forces relinking |
| 15622 | hardcode_minus_L_GCJ=yes |
| 15623 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15624 | hardcode_libdir_separator_GCJ= |
| 15625 | fi |
| 15626 | esac |
| 15627 | shared_flag='-shared' |
| 15628 | else |
| 15629 | # not using gcc |
| 15630 | if test "$host_cpu" = ia64; then |
| 15631 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15632 | # chokes on -Wl,-G. The following line is correct: |
| 15633 | shared_flag='-G' |
| 15634 | else |
| 15635 | if test "$aix_use_runtimelinking" = yes; then |
| 15636 | shared_flag='${wl}-G' |
| 15637 | else |
| 15638 | shared_flag='${wl}-bM:SRE' |
| 15639 | fi |
| 15640 | fi |
| 15641 | fi |
| 15642 | |
| 15643 | # It seems that -bexpall does not export symbols beginning with |
| 15644 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15645 | always_export_symbols_GCJ=yes |
| 15646 | if test "$aix_use_runtimelinking" = yes; then |
| 15647 | # Warning - without using the other runtime loading flags (-brtl), |
| 15648 | # -berok will link without error, but may produce a broken library. |
| 15649 | allow_undefined_flag_GCJ='-berok' |
| 15650 | # Determine the default libpath from the value encoded in an empty executable. |
| 15651 | cat >conftest.$ac_ext <<_ACEOF |
| 15652 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15653 | /* confdefs.h. */ |
| 15654 | _ACEOF |
| 15655 | cat confdefs.h >>conftest.$ac_ext |
| 15656 | cat >>conftest.$ac_ext <<_ACEOF |
| 15657 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15658 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15659 | int |
| 15660 | main () |
| 15661 | { |
| 15662 | |
| 15663 | ; |
| 15664 | return 0; |
| 15665 | } |
| 15666 | _ACEOF |
| 15667 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15668 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15669 | (eval $ac_link) 2>&5 |
| 15670 | ac_status=$? |
| 15671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15672 | (exit $ac_status); } && |
| 15673 | { ac_try='test -s conftest$ac_exeext' |
| 15674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15675 | (eval $ac_try) 2>&5 |
| 15676 | ac_status=$? |
| 15677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15678 | (exit $ac_status); }; }; then |
| 15679 | |
| 15680 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15681 | }'` |
| 15682 | # Check for a 64-bit object if we didn't find anything. |
| 15683 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15684 | }'`; fi |
| 15685 | else |
| 15686 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15688 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15689 | fi |
| 15690 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15691 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15692 | |
| 15693 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15694 | archive_expsym_cmds_GCJ="\$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" |
| 15695 | else |
| 15696 | if test "$host_cpu" = ia64; then |
| 15697 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 15698 | allow_undefined_flag_GCJ="-z nodefs" |
| 15699 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 15700 | else |
| 15701 | # Determine the default libpath from the value encoded in an empty executable. |
| 15702 | cat >conftest.$ac_ext <<_ACEOF |
| 15703 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15704 | /* confdefs.h. */ |
| 15705 | _ACEOF |
| 15706 | cat confdefs.h >>conftest.$ac_ext |
| 15707 | cat >>conftest.$ac_ext <<_ACEOF |
| 15708 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15709 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15710 | int |
| 15711 | main () |
| 15712 | { |
| 15713 | |
| 15714 | ; |
| 15715 | return 0; |
| 15716 | } |
| 15717 | _ACEOF |
| 15718 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15719 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15720 | (eval $ac_link) 2>&5 |
| 15721 | ac_status=$? |
| 15722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15723 | (exit $ac_status); } && |
| 15724 | { ac_try='test -s conftest$ac_exeext' |
| 15725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15726 | (eval $ac_try) 2>&5 |
| 15727 | ac_status=$? |
| 15728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15729 | (exit $ac_status); }; }; then |
| 15730 | |
| 15731 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15732 | }'` |
| 15733 | # Check for a 64-bit object if we didn't find anything. |
| 15734 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15735 | }'`; fi |
| 15736 | else |
| 15737 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15738 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15739 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15740 | fi |
| 15741 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15742 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15743 | |
| 15744 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15745 | # Warning - without using the other run time loading flags, |
| 15746 | # -berok will link without error, but may produce a broken library. |
| 15747 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 15748 | allow_undefined_flag_GCJ=' ${wl}-berok' |
| 15749 | # -bexpall does not export symbols beginning with underscore (_) |
| 15750 | always_export_symbols_GCJ=yes |
| 15751 | # Exported symbols can be pulled into shared objects from archives |
| 15752 | whole_archive_flag_spec_GCJ=' ' |
| 15753 | archive_cmds_need_lc_GCJ=yes |
| 15754 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 15755 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 15756 | fi |
| 15757 | fi |
| 15758 | ;; |
| 15759 | |
| 15760 | amigaos*) |
| 15761 | archive_cmds_GCJ='$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)' |
| 15762 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15763 | hardcode_minus_L_GCJ=yes |
| 15764 | # see comment about different semantics on the GNU ld section |
| 15765 | ld_shlibs_GCJ=no |
| 15766 | ;; |
| 15767 | |
| 15768 | bsdi4*) |
| 15769 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 15770 | ;; |
| 15771 | |
| 15772 | cygwin* | mingw* | pw32*) |
| 15773 | # When not using gcc, we currently assume that we are using |
| 15774 | # Microsoft Visual C++. |
| 15775 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15776 | # no search path for DLLs. |
| 15777 | hardcode_libdir_flag_spec_GCJ=' ' |
| 15778 | allow_undefined_flag_GCJ=unsupported |
| 15779 | # Tell ltmain to make .lib files, not .a files. |
| 15780 | libext=lib |
| 15781 | # Tell ltmain to make .dll files, not .so files. |
| 15782 | shrext=".dll" |
| 15783 | # FIXME: Setting linknames here is a bad hack. |
| 15784 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 15785 | # The linker will automatically build a .lib file if we build a DLL. |
| 15786 | old_archive_From_new_cmds_GCJ='true' |
| 15787 | # FIXME: Should let the user specify the lib program. |
| 15788 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 15789 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 15790 | enable_shared_with_static_runtimes_GCJ=yes |
| 15791 | ;; |
| 15792 | |
| 15793 | darwin* | rhapsody*) |
| 15794 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 15795 | archive_cmds_need_lc_GCJ=no |
| 15796 | case "$host_os" in |
| 15797 | rhapsody* | darwin1.[012]) |
| 15798 | allow_undefined_flag_GCJ='-undefined suppress' |
| 15799 | ;; |
| 15800 | *) # Darwin 1.3 on |
| 15801 | test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
| 15802 | ;; |
| 15803 | esac |
| 15804 | # FIXME: Relying on posixy $() will cause problems for |
| 15805 | # cross-compilation, but unfortunately the echo tests do not |
| 15806 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles |
| 15807 | # `"' quotes if we put them in here... so don't! |
| 15808 | lt_int_apple_cc_single_mod=no |
| 15809 | output_verbose_link_cmd='echo' |
| 15810 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 15811 | lt_int_apple_cc_single_mod=yes |
| 15812 | fi |
| 15813 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 15814 | archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15815 | else |
| 15816 | archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15817 | fi |
| 15818 | module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
| 15819 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 15820 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 15821 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 15822 | else |
| 15823 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 15824 | fi |
| 15825 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 15826 | hardcode_direct_GCJ=no |
| 15827 | hardcode_automatic_GCJ=yes |
| 15828 | hardcode_shlibpath_var_GCJ=unsupported |
| 15829 | whole_archive_flag_spec_GCJ='-all_load $convenience' |
| 15830 | link_all_deplibs_GCJ=yes |
| 15831 | fi |
| 15832 | ;; |
| 15833 | |
| 15834 | dgux*) |
| 15835 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15836 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15837 | hardcode_shlibpath_var_GCJ=no |
| 15838 | ;; |
| 15839 | |
| 15840 | freebsd1*) |
| 15841 | ld_shlibs_GCJ=no |
| 15842 | ;; |
| 15843 | |
| 15844 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15845 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15846 | # does not break anything, and helps significantly (at the cost of a little |
| 15847 | # extra space). |
| 15848 | freebsd2.2*) |
| 15849 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15850 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 15851 | hardcode_direct_GCJ=yes |
| 15852 | hardcode_shlibpath_var_GCJ=no |
| 15853 | ;; |
| 15854 | |
| 15855 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15856 | freebsd2*) |
| 15857 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15858 | hardcode_direct_GCJ=yes |
| 15859 | hardcode_minus_L_GCJ=yes |
| 15860 | hardcode_shlibpath_var_GCJ=no |
| 15861 | ;; |
| 15862 | |
| 15863 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 15864 | freebsd*) |
| 15865 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15866 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 15867 | hardcode_direct_GCJ=yes |
| 15868 | hardcode_shlibpath_var_GCJ=no |
| 15869 | ;; |
| 15870 | |
| 15871 | hpux9*) |
| 15872 | if test "$GCC" = yes; then |
| 15873 | archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 15874 | else |
| 15875 | archive_cmds_GCJ='$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' |
| 15876 | fi |
| 15877 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 15878 | hardcode_libdir_separator_GCJ=: |
| 15879 | hardcode_direct_GCJ=yes |
| 15880 | |
| 15881 | # hardcode_minus_L: Not really in the search PATH, |
| 15882 | # but as the default location of the library. |
| 15883 | hardcode_minus_L_GCJ=yes |
| 15884 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 15885 | ;; |
| 15886 | |
| 15887 | hpux10* | hpux11*) |
| 15888 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15889 | case "$host_cpu" in |
| 15890 | hppa*64*|ia64*) |
| 15891 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15892 | ;; |
| 15893 | *) |
| 15894 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15895 | ;; |
| 15896 | esac |
| 15897 | else |
| 15898 | case "$host_cpu" in |
| 15899 | hppa*64*|ia64*) |
| 15900 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15901 | ;; |
| 15902 | *) |
| 15903 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15904 | ;; |
| 15905 | esac |
| 15906 | fi |
| 15907 | if test "$with_gnu_ld" = no; then |
| 15908 | case "$host_cpu" in |
| 15909 | hppa*64*) |
| 15910 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 15911 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 15912 | hardcode_libdir_separator_GCJ=: |
| 15913 | hardcode_direct_GCJ=no |
| 15914 | hardcode_shlibpath_var_GCJ=no |
| 15915 | ;; |
| 15916 | ia64*) |
| 15917 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15918 | hardcode_direct_GCJ=no |
| 15919 | hardcode_shlibpath_var_GCJ=no |
| 15920 | |
| 15921 | # hardcode_minus_L: Not really in the search PATH, |
| 15922 | # but as the default location of the library. |
| 15923 | hardcode_minus_L_GCJ=yes |
| 15924 | ;; |
| 15925 | *) |
| 15926 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 15927 | hardcode_libdir_separator_GCJ=: |
| 15928 | hardcode_direct_GCJ=yes |
| 15929 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 15930 | |
| 15931 | # hardcode_minus_L: Not really in the search PATH, |
| 15932 | # but as the default location of the library. |
| 15933 | hardcode_minus_L_GCJ=yes |
| 15934 | ;; |
| 15935 | esac |
| 15936 | fi |
| 15937 | ;; |
| 15938 | |
| 15939 | irix5* | irix6* | nonstopux*) |
| 15940 | if test "$GCC" = yes; then |
| 15941 | archive_cmds_GCJ='$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' |
| 15942 | else |
| 15943 | archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 15944 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 15945 | fi |
| 15946 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 15947 | hardcode_libdir_separator_GCJ=: |
| 15948 | link_all_deplibs_GCJ=yes |
| 15949 | ;; |
| 15950 | |
| 15951 | netbsd*) |
| 15952 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15953 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 15954 | else |
| 15955 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 15956 | fi |
| 15957 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 15958 | hardcode_direct_GCJ=yes |
| 15959 | hardcode_shlibpath_var_GCJ=no |
| 15960 | ;; |
| 15961 | |
| 15962 | newsos6) |
| 15963 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15964 | hardcode_direct_GCJ=yes |
| 15965 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 15966 | hardcode_libdir_separator_GCJ=: |
| 15967 | hardcode_shlibpath_var_GCJ=no |
| 15968 | ;; |
| 15969 | |
| 15970 | openbsd*) |
| 15971 | hardcode_direct_GCJ=yes |
| 15972 | hardcode_shlibpath_var_GCJ=no |
| 15973 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15974 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15975 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 15976 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 15977 | else |
| 15978 | case $host_os in |
| 15979 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 15980 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15981 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 15982 | ;; |
| 15983 | *) |
| 15984 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15985 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 15986 | ;; |
| 15987 | esac |
| 15988 | fi |
| 15989 | ;; |
| 15990 | |
| 15991 | os2*) |
| 15992 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15993 | hardcode_minus_L_GCJ=yes |
| 15994 | allow_undefined_flag_GCJ=unsupported |
| 15995 | archive_cmds_GCJ='$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' |
| 15996 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 15997 | ;; |
| 15998 | |
| 15999 | osf3*) |
| 16000 | if test "$GCC" = yes; then |
| 16001 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 16002 | archive_cmds_GCJ='$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' |
| 16003 | else |
| 16004 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 16005 | archive_cmds_GCJ='$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' |
| 16006 | fi |
| 16007 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 16008 | hardcode_libdir_separator_GCJ=: |
| 16009 | ;; |
| 16010 | |
| 16011 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 16012 | if test "$GCC" = yes; then |
| 16013 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 16014 | archive_cmds_GCJ='$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' |
| 16015 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 16016 | else |
| 16017 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 16018 | archive_cmds_GCJ='$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' |
| 16019 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 16020 | $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' |
| 16021 | |
| 16022 | # Both c and cxx compiler support -rpath directly |
| 16023 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 16024 | fi |
| 16025 | hardcode_libdir_separator_GCJ=: |
| 16026 | ;; |
| 16027 | |
| 16028 | sco3.2v5*) |
| 16029 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16030 | hardcode_shlibpath_var_GCJ=no |
| 16031 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
| 16032 | runpath_var=LD_RUN_PATH |
| 16033 | hardcode_runpath_var=yes |
| 16034 | ;; |
| 16035 | |
| 16036 | solaris*) |
| 16037 | no_undefined_flag_GCJ=' -z text' |
| 16038 | if test "$GCC" = yes; then |
| 16039 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16040 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16041 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 16042 | else |
| 16043 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16044 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16045 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 16046 | fi |
| 16047 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 16048 | hardcode_shlibpath_var_GCJ=no |
| 16049 | case $host_os in |
| 16050 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 16051 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 16052 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 16053 | esac |
| 16054 | link_all_deplibs_GCJ=yes |
| 16055 | ;; |
| 16056 | |
| 16057 | sunos4*) |
| 16058 | if test "x$host_vendor" = xsequent; then |
| 16059 | # Use $CC to link under sequent, because it throws in some extra .o |
| 16060 | # files that make .init and .fini sections work. |
| 16061 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16062 | else |
| 16063 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 16064 | fi |
| 16065 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16066 | hardcode_direct_GCJ=yes |
| 16067 | hardcode_minus_L_GCJ=yes |
| 16068 | hardcode_shlibpath_var_GCJ=no |
| 16069 | ;; |
| 16070 | |
| 16071 | sysv4) |
| 16072 | case $host_vendor in |
| 16073 | sni) |
| 16074 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16075 | hardcode_direct_GCJ=yes # is this really true??? |
| 16076 | ;; |
| 16077 | siemens) |
| 16078 | ## LD is ld it makes a PLAMLIB |
| 16079 | ## CC just makes a GrossModule. |
| 16080 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 16081 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 16082 | hardcode_direct_GCJ=no |
| 16083 | ;; |
| 16084 | motorola) |
| 16085 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16086 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 16087 | ;; |
| 16088 | esac |
| 16089 | runpath_var='LD_RUN_PATH' |
| 16090 | hardcode_shlibpath_var_GCJ=no |
| 16091 | ;; |
| 16092 | |
| 16093 | sysv4.3*) |
| 16094 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16095 | hardcode_shlibpath_var_GCJ=no |
| 16096 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 16097 | ;; |
| 16098 | |
| 16099 | sysv4*MP*) |
| 16100 | if test -d /usr/nec; then |
| 16101 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16102 | hardcode_shlibpath_var_GCJ=no |
| 16103 | runpath_var=LD_RUN_PATH |
| 16104 | hardcode_runpath_var=yes |
| 16105 | ld_shlibs_GCJ=yes |
| 16106 | fi |
| 16107 | ;; |
| 16108 | |
| 16109 | sysv4.2uw2*) |
| 16110 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 16111 | hardcode_direct_GCJ=yes |
| 16112 | hardcode_minus_L_GCJ=no |
| 16113 | hardcode_shlibpath_var_GCJ=no |
| 16114 | hardcode_runpath_var=yes |
| 16115 | runpath_var=LD_RUN_PATH |
| 16116 | ;; |
| 16117 | |
| 16118 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 16119 | no_undefined_flag_GCJ='${wl}-z ${wl}text' |
| 16120 | if test "$GCC" = yes; then |
| 16121 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16122 | else |
| 16123 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16124 | fi |
| 16125 | runpath_var='LD_RUN_PATH' |
| 16126 | hardcode_shlibpath_var_GCJ=no |
| 16127 | ;; |
| 16128 | |
| 16129 | sysv5*) |
| 16130 | no_undefined_flag_GCJ=' -z text' |
| 16131 | # $CC -shared without GNU ld will not create a library from C++ |
| 16132 | # object files and a static libstdc++, better avoid it by now |
| 16133 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16134 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16135 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 16136 | hardcode_libdir_flag_spec_GCJ= |
| 16137 | hardcode_shlibpath_var_GCJ=no |
| 16138 | runpath_var='LD_RUN_PATH' |
| 16139 | ;; |
| 16140 | |
| 16141 | uts4*) |
| 16142 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16143 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16144 | hardcode_shlibpath_var_GCJ=no |
| 16145 | ;; |
| 16146 | |
| 16147 | *) |
| 16148 | ld_shlibs_GCJ=no |
| 16149 | ;; |
| 16150 | esac |
| 16151 | fi |
| 16152 | |
| 16153 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 16154 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
| 16155 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 16156 | |
| 16157 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16158 | if test "$GCC" = yes; then |
| 16159 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16160 | fi |
| 16161 | |
| 16162 | # |
| 16163 | # Do we need to explicitly link libc? |
| 16164 | # |
| 16165 | case "x$archive_cmds_need_lc_GCJ" in |
| 16166 | x|xyes) |
| 16167 | # Assume -lc should be added |
| 16168 | archive_cmds_need_lc_GCJ=yes |
| 16169 | |
| 16170 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 16171 | case $archive_cmds_GCJ in |
| 16172 | *'~'*) |
| 16173 | # FIXME: we may have to deal with multi-command sequences. |
| 16174 | ;; |
| 16175 | '$CC '*) |
| 16176 | # Test whether the compiler implicitly links with -lc since on some |
| 16177 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 16178 | # to ld, don't add -lc before -lgcc. |
| 16179 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 16180 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 16181 | $rm conftest* |
| 16182 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16183 | |
| 16184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16185 | (eval $ac_compile) 2>&5 |
| 16186 | ac_status=$? |
| 16187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16188 | (exit $ac_status); } 2>conftest.err; then |
| 16189 | soname=conftest |
| 16190 | lib=conftest |
| 16191 | libobjs=conftest.$ac_objext |
| 16192 | deplibs= |
| 16193 | wl=$lt_prog_compiler_wl_GCJ |
| 16194 | compiler_flags=-v |
| 16195 | linker_flags=-v |
| 16196 | verstring= |
| 16197 | output_objdir=. |
| 16198 | libname=conftest |
| 16199 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 16200 | allow_undefined_flag_GCJ= |
| 16201 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 16202 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 16203 | ac_status=$? |
| 16204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16205 | (exit $ac_status); } |
| 16206 | then |
| 16207 | archive_cmds_need_lc_GCJ=no |
| 16208 | else |
| 16209 | archive_cmds_need_lc_GCJ=yes |
| 16210 | fi |
| 16211 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 16212 | else |
| 16213 | cat conftest.err 1>&5 |
| 16214 | fi |
| 16215 | $rm conftest* |
| 16216 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 16217 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
| 16218 | ;; |
| 16219 | esac |
| 16220 | fi |
| 16221 | ;; |
| 16222 | esac |
| 16223 | |
| 16224 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 16225 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 16226 | hardcode_action_GCJ= |
| 16227 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 16228 | test -n "$runpath_var GCJ" || \ |
| 16229 | test "X$hardcode_automatic_GCJ"="Xyes" ; then |
| 16230 | |
| 16231 | # We can hardcode non-existant directories. |
| 16232 | if test "$hardcode_direct_GCJ" != no && |
| 16233 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16234 | # have to relink, otherwise we might link with an installed library |
| 16235 | # when we should be linking with a yet-to-be-installed one |
| 16236 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 16237 | test "$hardcode_minus_L_GCJ" != no; then |
| 16238 | # Linking always hardcodes the temporary library directory. |
| 16239 | hardcode_action_GCJ=relink |
| 16240 | else |
| 16241 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16242 | hardcode_action_GCJ=immediate |
| 16243 | fi |
| 16244 | else |
| 16245 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16246 | # directories. |
| 16247 | hardcode_action_GCJ=unsupported |
| 16248 | fi |
| 16249 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 16250 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
| 16251 | |
| 16252 | if test "$hardcode_action_GCJ" = relink; then |
| 16253 | # Fast installation is not supported |
| 16254 | enable_fast_install=no |
| 16255 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16256 | test "$enable_shared" = no; then |
| 16257 | # Fast installation is not necessary |
| 16258 | enable_fast_install=needless |
| 16259 | fi |
| 16260 | |
| 16261 | striplib= |
| 16262 | old_striplib= |
| 16263 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 16264 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 16265 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 16266 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 16267 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 16268 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16269 | echo "${ECHO_T}yes" >&6 |
| 16270 | else |
| 16271 | # FIXME - insert some real tests, host_os isn't really good enough |
| 16272 | case $host_os in |
| 16273 | darwin*) |
| 16274 | if test -n "$STRIP" ; then |
| 16275 | striplib="$STRIP -x" |
| 16276 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16277 | echo "${ECHO_T}yes" >&6 |
| 16278 | else |
| 16279 | echo "$as_me:$LINENO: result: no" >&5 |
| 16280 | echo "${ECHO_T}no" >&6 |
| 16281 | fi |
| 16282 | ;; |
| 16283 | *) |
| 16284 | echo "$as_me:$LINENO: result: no" >&5 |
| 16285 | echo "${ECHO_T}no" >&6 |
| 16286 | ;; |
| 16287 | esac |
| 16288 | fi |
| 16289 | |
| 16290 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 16291 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 16292 | library_names_spec= |
| 16293 | libname_spec='lib$name' |
| 16294 | soname_spec= |
| 16295 | shrext=".so" |
| 16296 | postinstall_cmds= |
| 16297 | postuninstall_cmds= |
| 16298 | finish_cmds= |
| 16299 | finish_eval= |
| 16300 | shlibpath_var= |
| 16301 | shlibpath_overrides_runpath=unknown |
| 16302 | version_type=none |
| 16303 | dynamic_linker="$host_os ld.so" |
| 16304 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 16305 | if test "$GCC" = yes; then |
| 16306 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16307 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 16308 | # if the path contains ";" then we assume it to be the separator |
| 16309 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 16310 | # assumed that no part of a normal pathname contains ";" but that should |
| 16311 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 16312 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16313 | else |
| 16314 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16315 | fi |
| 16316 | else |
| 16317 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 16318 | fi |
| 16319 | need_lib_prefix=unknown |
| 16320 | hardcode_into_libs=no |
| 16321 | |
| 16322 | # when you set need_version to no, make sure it does not cause -set_version |
| 16323 | # flags to be left without arguments |
| 16324 | need_version=unknown |
| 16325 | |
| 16326 | case $host_os in |
| 16327 | aix3*) |
| 16328 | version_type=linux |
| 16329 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 16330 | shlibpath_var=LIBPATH |
| 16331 | |
| 16332 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 16333 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16334 | ;; |
| 16335 | |
| 16336 | aix4* | aix5*) |
| 16337 | version_type=linux |
| 16338 | need_lib_prefix=no |
| 16339 | need_version=no |
| 16340 | hardcode_into_libs=yes |
| 16341 | if test "$host_cpu" = ia64; then |
| 16342 | # AIX 5 supports IA64 |
| 16343 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 16344 | shlibpath_var=LD_LIBRARY_PATH |
| 16345 | else |
| 16346 | # With GCC up to 2.95.x, collect2 would create an import file |
| 16347 | # for dependence libraries. The import file would start with |
| 16348 | # the line `#! .'. This would cause the generated library to |
| 16349 | # depend on `.', always an invalid library. This was fixed in |
| 16350 | # development snapshots of GCC prior to 3.0. |
| 16351 | case $host_os in |
| 16352 | aix4 | aix4.[01] | aix4.[01].*) |
| 16353 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16354 | echo ' yes ' |
| 16355 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 16356 | : |
| 16357 | else |
| 16358 | can_build_shared=no |
| 16359 | fi |
| 16360 | ;; |
| 16361 | esac |
| 16362 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 16363 | # soname into executable. Probably we can add versioning support to |
| 16364 | # collect2, so additional links can be useful in future. |
| 16365 | if test "$aix_use_runtimelinking" = yes; then |
| 16366 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16367 | # instead of lib<name>.a to let people know that these are not |
| 16368 | # typical AIX shared libraries. |
| 16369 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16370 | else |
| 16371 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 16372 | # and later when we are not doing run time linking. |
| 16373 | library_names_spec='${libname}${release}.a $libname.a' |
| 16374 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16375 | fi |
| 16376 | shlibpath_var=LIBPATH |
| 16377 | fi |
| 16378 | ;; |
| 16379 | |
| 16380 | amigaos*) |
| 16381 | library_names_spec='$libname.ixlibrary $libname.a' |
| 16382 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 16383 | 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' |
| 16384 | ;; |
| 16385 | |
| 16386 | beos*) |
| 16387 | library_names_spec='${libname}${shared_ext}' |
| 16388 | dynamic_linker="$host_os ld.so" |
| 16389 | shlibpath_var=LIBRARY_PATH |
| 16390 | ;; |
| 16391 | |
| 16392 | bsdi4*) |
| 16393 | version_type=linux |
| 16394 | need_version=no |
| 16395 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16396 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16397 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16398 | shlibpath_var=LD_LIBRARY_PATH |
| 16399 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16400 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 16401 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 16402 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16403 | # libtool to hard-code these into programs |
| 16404 | ;; |
| 16405 | |
| 16406 | cygwin* | mingw* | pw32*) |
| 16407 | version_type=windows |
| 16408 | shrext=".dll" |
| 16409 | need_version=no |
| 16410 | need_lib_prefix=no |
| 16411 | |
| 16412 | case $GCC,$host_os in |
| 16413 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 16414 | library_names_spec='$libname.dll.a' |
| 16415 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 16416 | postinstall_cmds='base_file=`basename \${file}`~ |
| 16417 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 16418 | dldir=$destdir/`dirname \$dlpath`~ |
| 16419 | test -d \$dldir || mkdir -p \$dldir~ |
| 16420 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 16421 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16422 | dlpath=$dir/\$dldll~ |
| 16423 | $rm \$dlpath' |
| 16424 | shlibpath_overrides_runpath=yes |
| 16425 | |
| 16426 | case $host_os in |
| 16427 | cygwin*) |
| 16428 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16429 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16430 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" |
| 16431 | ;; |
| 16432 | mingw*) |
| 16433 | # MinGW DLLs use traditional 'lib' prefix |
| 16434 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16435 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16436 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 16437 | # It is most probably a Windows format PATH printed by |
| 16438 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 16439 | # path with ; separators, and with drive letters. We can handle the |
| 16440 | # drive letters (cygwin fileutils understands them), so leave them, |
| 16441 | # especially as we might pass files found there to a mingw objdump, |
| 16442 | # which wouldn't understand a cygwinified path. Ahh. |
| 16443 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16444 | else |
| 16445 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16446 | fi |
| 16447 | ;; |
| 16448 | pw32*) |
| 16449 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 16450 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 16451 | ;; |
| 16452 | esac |
| 16453 | ;; |
| 16454 | |
| 16455 | *) |
| 16456 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 16457 | ;; |
| 16458 | esac |
| 16459 | dynamic_linker='Win32 ld.exe' |
| 16460 | # FIXME: first we should search . and the directory the executable is in |
| 16461 | shlibpath_var=PATH |
| 16462 | ;; |
| 16463 | |
| 16464 | darwin* | rhapsody*) |
| 16465 | dynamic_linker="$host_os dyld" |
| 16466 | version_type=darwin |
| 16467 | need_lib_prefix=no |
| 16468 | need_version=no |
| 16469 | # FIXME: Relying on posixy $() will cause problems for |
| 16470 | # cross-compilation, but unfortunately the echo tests do not |
| 16471 | # yet detect zsh echo's removal of \ escapes. |
| 16472 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 16473 | soname_spec='${libname}${release}${major}$shared_ext' |
| 16474 | shlibpath_overrides_runpath=yes |
| 16475 | shlibpath_var=DYLD_LIBRARY_PATH |
| 16476 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 16477 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 16478 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 16479 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 16480 | fi |
| 16481 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16482 | ;; |
| 16483 | |
| 16484 | dgux*) |
| 16485 | version_type=linux |
| 16486 | need_lib_prefix=no |
| 16487 | need_version=no |
| 16488 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 16489 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16490 | shlibpath_var=LD_LIBRARY_PATH |
| 16491 | ;; |
| 16492 | |
| 16493 | freebsd1*) |
| 16494 | dynamic_linker=no |
| 16495 | ;; |
| 16496 | |
| 16497 | freebsd*) |
| 16498 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 16499 | version_type=freebsd-$objformat |
| 16500 | case $version_type in |
| 16501 | freebsd-elf*) |
| 16502 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16503 | need_version=no |
| 16504 | need_lib_prefix=no |
| 16505 | ;; |
| 16506 | freebsd-*) |
| 16507 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 16508 | need_version=yes |
| 16509 | ;; |
| 16510 | esac |
| 16511 | shlibpath_var=LD_LIBRARY_PATH |
| 16512 | case $host_os in |
| 16513 | freebsd2*) |
| 16514 | shlibpath_overrides_runpath=yes |
| 16515 | ;; |
| 16516 | freebsd3.01* | freebsdelf3.01*) |
| 16517 | shlibpath_overrides_runpath=yes |
| 16518 | hardcode_into_libs=yes |
| 16519 | ;; |
| 16520 | *) # from 3.2 on |
| 16521 | shlibpath_overrides_runpath=no |
| 16522 | hardcode_into_libs=yes |
| 16523 | ;; |
| 16524 | esac |
| 16525 | ;; |
| 16526 | |
| 16527 | gnu*) |
| 16528 | version_type=linux |
| 16529 | need_lib_prefix=no |
| 16530 | need_version=no |
| 16531 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 16532 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16533 | shlibpath_var=LD_LIBRARY_PATH |
| 16534 | hardcode_into_libs=yes |
| 16535 | ;; |
| 16536 | |
| 16537 | hpux9* | hpux10* | hpux11*) |
| 16538 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 16539 | # link against other versions. |
| 16540 | version_type=sunos |
| 16541 | need_lib_prefix=no |
| 16542 | need_version=no |
| 16543 | case "$host_cpu" in |
| 16544 | ia64*) |
| 16545 | shrext='.so' |
| 16546 | hardcode_into_libs=yes |
| 16547 | dynamic_linker="$host_os dld.so" |
| 16548 | shlibpath_var=LD_LIBRARY_PATH |
| 16549 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16550 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16551 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16552 | if test "X$HPUX_IA64_MODE" = X32; then |
| 16553 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 16554 | else |
| 16555 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 16556 | fi |
| 16557 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16558 | ;; |
| 16559 | hppa*64*) |
| 16560 | shrext='.sl' |
| 16561 | hardcode_into_libs=yes |
| 16562 | dynamic_linker="$host_os dld.sl" |
| 16563 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 16564 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16565 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16566 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16567 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 16568 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16569 | ;; |
| 16570 | *) |
| 16571 | shrext='.sl' |
| 16572 | dynamic_linker="$host_os dld.sl" |
| 16573 | shlibpath_var=SHLIB_PATH |
| 16574 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 16575 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16576 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16577 | ;; |
| 16578 | esac |
| 16579 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 16580 | postinstall_cmds='chmod 555 $lib' |
| 16581 | ;; |
| 16582 | |
| 16583 | irix5* | irix6* | nonstopux*) |
| 16584 | case $host_os in |
| 16585 | nonstopux*) version_type=nonstopux ;; |
| 16586 | *) |
| 16587 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 16588 | version_type=linux |
| 16589 | else |
| 16590 | version_type=irix |
| 16591 | fi ;; |
| 16592 | esac |
| 16593 | need_lib_prefix=no |
| 16594 | need_version=no |
| 16595 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16596 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16597 | case $host_os in |
| 16598 | irix5* | nonstopux*) |
| 16599 | libsuff= shlibsuff= |
| 16600 | ;; |
| 16601 | *) |
| 16602 | case $LD in # libtool.m4 will add one of these switches to LD |
| 16603 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 16604 | libsuff= shlibsuff= libmagic=32-bit;; |
| 16605 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 16606 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 16607 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 16608 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 16609 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 16610 | esac |
| 16611 | ;; |
| 16612 | esac |
| 16613 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 16614 | shlibpath_overrides_runpath=no |
| 16615 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 16616 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 16617 | hardcode_into_libs=yes |
| 16618 | ;; |
| 16619 | |
| 16620 | # No shared lib support for Linux oldld, aout, or coff. |
| 16621 | linux*oldld* | linux*aout* | linux*coff*) |
| 16622 | dynamic_linker=no |
| 16623 | ;; |
| 16624 | |
| 16625 | # This must be Linux ELF. |
| 16626 | linux*) |
| 16627 | version_type=linux |
| 16628 | need_lib_prefix=no |
| 16629 | need_version=no |
| 16630 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16631 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16632 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 16633 | shlibpath_var=LD_LIBRARY_PATH |
| 16634 | shlibpath_overrides_runpath=no |
| 16635 | # This implies no fast_install, which is unacceptable. |
| 16636 | # Some rework will be needed to allow for fast_install |
| 16637 | # before this can be enabled. |
| 16638 | hardcode_into_libs=yes |
| 16639 | |
| 16640 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16641 | # powerpc, because MkLinux only supported shared libraries with the |
| 16642 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16643 | # most powerpc-linux boxes support dynamic linking these days and |
| 16644 | # people can always --disable-shared, the test was removed, and we |
| 16645 | # assume the GNU/Linux dynamic linker is in use. |
| 16646 | dynamic_linker='GNU/Linux ld.so' |
| 16647 | ;; |
| 16648 | |
| 16649 | netbsd*) |
| 16650 | version_type=sunos |
| 16651 | need_lib_prefix=no |
| 16652 | need_version=no |
| 16653 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 16654 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16655 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16656 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16657 | else |
| 16658 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
| 16659 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16660 | dynamic_linker='NetBSD ld.elf_so' |
| 16661 | fi |
| 16662 | shlibpath_var=LD_LIBRARY_PATH |
| 16663 | shlibpath_overrides_runpath=yes |
| 16664 | hardcode_into_libs=yes |
| 16665 | ;; |
| 16666 | |
| 16667 | newsos6) |
| 16668 | version_type=linux |
| 16669 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16670 | shlibpath_var=LD_LIBRARY_PATH |
| 16671 | shlibpath_overrides_runpath=yes |
| 16672 | ;; |
| 16673 | |
| 16674 | nto-qnx) |
| 16675 | version_type=linux |
| 16676 | need_lib_prefix=no |
| 16677 | need_version=no |
| 16678 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16679 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16680 | shlibpath_var=LD_LIBRARY_PATH |
| 16681 | shlibpath_overrides_runpath=yes |
| 16682 | ;; |
| 16683 | |
| 16684 | openbsd*) |
| 16685 | version_type=sunos |
| 16686 | need_lib_prefix=no |
| 16687 | need_version=no |
| 16688 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16689 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16690 | shlibpath_var=LD_LIBRARY_PATH |
| 16691 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 16692 | case $host_os in |
| 16693 | openbsd2.[89] | openbsd2.[89].*) |
| 16694 | shlibpath_overrides_runpath=no |
| 16695 | ;; |
| 16696 | *) |
| 16697 | shlibpath_overrides_runpath=yes |
| 16698 | ;; |
| 16699 | esac |
| 16700 | else |
| 16701 | shlibpath_overrides_runpath=yes |
| 16702 | fi |
| 16703 | ;; |
| 16704 | |
| 16705 | os2*) |
| 16706 | libname_spec='$name' |
| 16707 | shrext=".dll" |
| 16708 | need_lib_prefix=no |
| 16709 | library_names_spec='$libname${shared_ext} $libname.a' |
| 16710 | dynamic_linker='OS/2 ld.exe' |
| 16711 | shlibpath_var=LIBPATH |
| 16712 | ;; |
| 16713 | |
| 16714 | osf3* | osf4* | osf5*) |
| 16715 | version_type=osf |
| 16716 | need_lib_prefix=no |
| 16717 | need_version=no |
| 16718 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16719 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16720 | shlibpath_var=LD_LIBRARY_PATH |
| 16721 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16722 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16723 | ;; |
| 16724 | |
| 16725 | sco3.2v5*) |
| 16726 | version_type=osf |
| 16727 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16728 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16729 | shlibpath_var=LD_LIBRARY_PATH |
| 16730 | ;; |
| 16731 | |
| 16732 | solaris*) |
| 16733 | version_type=linux |
| 16734 | need_lib_prefix=no |
| 16735 | need_version=no |
| 16736 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16737 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16738 | shlibpath_var=LD_LIBRARY_PATH |
| 16739 | shlibpath_overrides_runpath=yes |
| 16740 | hardcode_into_libs=yes |
| 16741 | # ldd complains unless libraries are executable |
| 16742 | postinstall_cmds='chmod +x $lib' |
| 16743 | ;; |
| 16744 | |
| 16745 | sunos4*) |
| 16746 | version_type=sunos |
| 16747 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16748 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16749 | shlibpath_var=LD_LIBRARY_PATH |
| 16750 | shlibpath_overrides_runpath=yes |
| 16751 | if test "$with_gnu_ld" = yes; then |
| 16752 | need_lib_prefix=no |
| 16753 | fi |
| 16754 | need_version=yes |
| 16755 | ;; |
| 16756 | |
| 16757 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 16758 | version_type=linux |
| 16759 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16760 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16761 | shlibpath_var=LD_LIBRARY_PATH |
| 16762 | case $host_vendor in |
| 16763 | sni) |
| 16764 | shlibpath_overrides_runpath=no |
| 16765 | need_lib_prefix=no |
| 16766 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16767 | runpath_var=LD_RUN_PATH |
| 16768 | ;; |
| 16769 | siemens) |
| 16770 | need_lib_prefix=no |
| 16771 | ;; |
| 16772 | motorola) |
| 16773 | need_lib_prefix=no |
| 16774 | need_version=no |
| 16775 | shlibpath_overrides_runpath=no |
| 16776 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16777 | ;; |
| 16778 | esac |
| 16779 | ;; |
| 16780 | |
| 16781 | sysv4*MP*) |
| 16782 | if test -d /usr/nec ;then |
| 16783 | version_type=linux |
| 16784 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16785 | soname_spec='$libname${shared_ext}.$major' |
| 16786 | shlibpath_var=LD_LIBRARY_PATH |
| 16787 | fi |
| 16788 | ;; |
| 16789 | |
| 16790 | uts4*) |
| 16791 | version_type=linux |
| 16792 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16793 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16794 | shlibpath_var=LD_LIBRARY_PATH |
| 16795 | ;; |
| 16796 | |
| 16797 | *) |
| 16798 | dynamic_linker=no |
| 16799 | ;; |
| 16800 | esac |
| 16801 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16802 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 16803 | test "$dynamic_linker" = no && can_build_shared=no |
| 16804 | |
| 16805 | if test "x$enable_dlopen" != xyes; then |
| 16806 | enable_dlopen=unknown |
| 16807 | enable_dlopen_self=unknown |
| 16808 | enable_dlopen_self_static=unknown |
| 16809 | else |
| 16810 | lt_cv_dlopen=no |
| 16811 | lt_cv_dlopen_libs= |
| 16812 | |
| 16813 | case $host_os in |
| 16814 | beos*) |
| 16815 | lt_cv_dlopen="load_add_on" |
| 16816 | lt_cv_dlopen_libs= |
| 16817 | lt_cv_dlopen_self=yes |
| 16818 | ;; |
| 16819 | |
| 16820 | mingw* | pw32*) |
| 16821 | lt_cv_dlopen="LoadLibrary" |
| 16822 | lt_cv_dlopen_libs= |
| 16823 | ;; |
| 16824 | |
| 16825 | cygwin*) |
| 16826 | lt_cv_dlopen="dlopen" |
| 16827 | lt_cv_dlopen_libs= |
| 16828 | ;; |
| 16829 | |
| 16830 | darwin*) |
| 16831 | # if libdl is installed we need to link against it |
| 16832 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16833 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 16834 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16836 | else |
| 16837 | ac_check_lib_save_LIBS=$LIBS |
| 16838 | LIBS="-ldl $LIBS" |
| 16839 | cat >conftest.$ac_ext <<_ACEOF |
| 16840 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16841 | /* confdefs.h. */ |
| 16842 | _ACEOF |
| 16843 | cat confdefs.h >>conftest.$ac_ext |
| 16844 | cat >>conftest.$ac_ext <<_ACEOF |
| 16845 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16846 | |
| 16847 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16848 | #ifdef __cplusplus |
| 16849 | extern "C" |
| 16850 | #endif |
| 16851 | /* We use char because int might match the return type of a gcc2 |
| 16852 | builtin and then its argument prototype would still apply. */ |
| 16853 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16854 | int |
| 16855 | main () |
| 16856 | { |
| 16857 | dlopen (); |
| 16858 | ; |
| 16859 | return 0; |
| 16860 | } |
| 16861 | _ACEOF |
| 16862 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16863 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16864 | (eval $ac_link) 2>&5 |
| 16865 | ac_status=$? |
| 16866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16867 | (exit $ac_status); } && |
| 16868 | { ac_try='test -s conftest$ac_exeext' |
| 16869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16870 | (eval $ac_try) 2>&5 |
| 16871 | ac_status=$? |
| 16872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16873 | (exit $ac_status); }; }; then |
| 16874 | ac_cv_lib_dl_dlopen=yes |
| 16875 | else |
| 16876 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16878 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16879 | ac_cv_lib_dl_dlopen=no |
| 16880 | fi |
| 16881 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16882 | LIBS=$ac_check_lib_save_LIBS |
| 16883 | fi |
| 16884 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16885 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 16886 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 16887 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16888 | else |
| 16889 | |
| 16890 | lt_cv_dlopen="dyld" |
| 16891 | lt_cv_dlopen_libs= |
| 16892 | lt_cv_dlopen_self=yes |
| 16893 | |
| 16894 | fi |
| 16895 | |
| 16896 | ;; |
| 16897 | |
| 16898 | *) |
| 16899 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 16900 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 16901 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 16902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16903 | else |
| 16904 | cat >conftest.$ac_ext <<_ACEOF |
| 16905 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16906 | /* confdefs.h. */ |
| 16907 | _ACEOF |
| 16908 | cat confdefs.h >>conftest.$ac_ext |
| 16909 | cat >>conftest.$ac_ext <<_ACEOF |
| 16910 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16911 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16912 | which can conflict with char shl_load (); below. |
| 16913 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16914 | <limits.h> exists even on freestanding compilers. */ |
| 16915 | #ifdef __STDC__ |
| 16916 | # include <limits.h> |
| 16917 | #else |
| 16918 | # include <assert.h> |
| 16919 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16920 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16921 | #ifdef __cplusplus |
| 16922 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16923 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16924 | #endif |
| 16925 | /* We use char because int might match the return type of a gcc2 |
| 16926 | builtin and then its argument prototype would still apply. */ |
| 16927 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16928 | /* The GNU C library defines this for functions which it implements |
| 16929 | to always fail with ENOSYS. Some functions are actually named |
| 16930 | something starting with __ and the normal name is an alias. */ |
| 16931 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 16932 | choke me |
| 16933 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16934 | char (*f) () = shl_load; |
| 16935 | #endif |
| 16936 | #ifdef __cplusplus |
| 16937 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16938 | #endif |
| 16939 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16940 | int |
| 16941 | main () |
| 16942 | { |
| 16943 | return f != shl_load; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16944 | ; |
| 16945 | return 0; |
| 16946 | } |
| 16947 | _ACEOF |
| 16948 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16949 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16950 | (eval $ac_link) 2>&5 |
| 16951 | ac_status=$? |
| 16952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16953 | (exit $ac_status); } && |
| 16954 | { ac_try='test -s conftest$ac_exeext' |
| 16955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16956 | (eval $ac_try) 2>&5 |
| 16957 | ac_status=$? |
| 16958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16959 | (exit $ac_status); }; }; then |
| 16960 | ac_cv_func_shl_load=yes |
| 16961 | else |
| 16962 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16963 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16964 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16965 | ac_cv_func_shl_load=no |
| 16966 | fi |
| 16967 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16968 | fi |
| 16969 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 16970 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 16971 | if test $ac_cv_func_shl_load = yes; then |
| 16972 | lt_cv_dlopen="shl_load" |
| 16973 | else |
| 16974 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 16975 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 16976 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 16977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16978 | else |
| 16979 | ac_check_lib_save_LIBS=$LIBS |
| 16980 | LIBS="-ldld $LIBS" |
| 16981 | cat >conftest.$ac_ext <<_ACEOF |
| 16982 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16983 | /* confdefs.h. */ |
| 16984 | _ACEOF |
| 16985 | cat confdefs.h >>conftest.$ac_ext |
| 16986 | cat >>conftest.$ac_ext <<_ACEOF |
| 16987 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16988 | |
| 16989 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16990 | #ifdef __cplusplus |
| 16991 | extern "C" |
| 16992 | #endif |
| 16993 | /* We use char because int might match the return type of a gcc2 |
| 16994 | builtin and then its argument prototype would still apply. */ |
| 16995 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16996 | int |
| 16997 | main () |
| 16998 | { |
| 16999 | shl_load (); |
| 17000 | ; |
| 17001 | return 0; |
| 17002 | } |
| 17003 | _ACEOF |
| 17004 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17006 | (eval $ac_link) 2>&5 |
| 17007 | ac_status=$? |
| 17008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17009 | (exit $ac_status); } && |
| 17010 | { ac_try='test -s conftest$ac_exeext' |
| 17011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17012 | (eval $ac_try) 2>&5 |
| 17013 | ac_status=$? |
| 17014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17015 | (exit $ac_status); }; }; then |
| 17016 | ac_cv_lib_dld_shl_load=yes |
| 17017 | else |
| 17018 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17020 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17021 | ac_cv_lib_dld_shl_load=no |
| 17022 | fi |
| 17023 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 17024 | LIBS=$ac_check_lib_save_LIBS |
| 17025 | fi |
| 17026 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 17027 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 17028 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 17029 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 17030 | else |
| 17031 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 17032 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 17033 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 17034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17035 | else |
| 17036 | cat >conftest.$ac_ext <<_ACEOF |
| 17037 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17038 | /* confdefs.h. */ |
| 17039 | _ACEOF |
| 17040 | cat confdefs.h >>conftest.$ac_ext |
| 17041 | cat >>conftest.$ac_ext <<_ACEOF |
| 17042 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17043 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17044 | which can conflict with char dlopen (); below. |
| 17045 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17046 | <limits.h> exists even on freestanding compilers. */ |
| 17047 | #ifdef __STDC__ |
| 17048 | # include <limits.h> |
| 17049 | #else |
| 17050 | # include <assert.h> |
| 17051 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17052 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17053 | #ifdef __cplusplus |
| 17054 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17055 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17056 | #endif |
| 17057 | /* We use char because int might match the return type of a gcc2 |
| 17058 | builtin and then its argument prototype would still apply. */ |
| 17059 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17060 | /* The GNU C library defines this for functions which it implements |
| 17061 | to always fail with ENOSYS. Some functions are actually named |
| 17062 | something starting with __ and the normal name is an alias. */ |
| 17063 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 17064 | choke me |
| 17065 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17066 | char (*f) () = dlopen; |
| 17067 | #endif |
| 17068 | #ifdef __cplusplus |
| 17069 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17070 | #endif |
| 17071 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17072 | int |
| 17073 | main () |
| 17074 | { |
| 17075 | return f != dlopen; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17076 | ; |
| 17077 | return 0; |
| 17078 | } |
| 17079 | _ACEOF |
| 17080 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17081 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17082 | (eval $ac_link) 2>&5 |
| 17083 | ac_status=$? |
| 17084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17085 | (exit $ac_status); } && |
| 17086 | { ac_try='test -s conftest$ac_exeext' |
| 17087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17088 | (eval $ac_try) 2>&5 |
| 17089 | ac_status=$? |
| 17090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17091 | (exit $ac_status); }; }; then |
| 17092 | ac_cv_func_dlopen=yes |
| 17093 | else |
| 17094 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17096 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17097 | ac_cv_func_dlopen=no |
| 17098 | fi |
| 17099 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 17100 | fi |
| 17101 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 17102 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 17103 | if test $ac_cv_func_dlopen = yes; then |
| 17104 | lt_cv_dlopen="dlopen" |
| 17105 | else |
| 17106 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17107 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 17108 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17110 | else |
| 17111 | ac_check_lib_save_LIBS=$LIBS |
| 17112 | LIBS="-ldl $LIBS" |
| 17113 | cat >conftest.$ac_ext <<_ACEOF |
| 17114 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17115 | /* confdefs.h. */ |
| 17116 | _ACEOF |
| 17117 | cat confdefs.h >>conftest.$ac_ext |
| 17118 | cat >>conftest.$ac_ext <<_ACEOF |
| 17119 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17120 | |
| 17121 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17122 | #ifdef __cplusplus |
| 17123 | extern "C" |
| 17124 | #endif |
| 17125 | /* We use char because int might match the return type of a gcc2 |
| 17126 | builtin and then its argument prototype would still apply. */ |
| 17127 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17128 | int |
| 17129 | main () |
| 17130 | { |
| 17131 | dlopen (); |
| 17132 | ; |
| 17133 | return 0; |
| 17134 | } |
| 17135 | _ACEOF |
| 17136 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17137 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17138 | (eval $ac_link) 2>&5 |
| 17139 | ac_status=$? |
| 17140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17141 | (exit $ac_status); } && |
| 17142 | { ac_try='test -s conftest$ac_exeext' |
| 17143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17144 | (eval $ac_try) 2>&5 |
| 17145 | ac_status=$? |
| 17146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17147 | (exit $ac_status); }; }; then |
| 17148 | ac_cv_lib_dl_dlopen=yes |
| 17149 | else |
| 17150 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17152 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17153 | ac_cv_lib_dl_dlopen=no |
| 17154 | fi |
| 17155 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 17156 | LIBS=$ac_check_lib_save_LIBS |
| 17157 | fi |
| 17158 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17159 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 17160 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17161 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17162 | else |
| 17163 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 17164 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 17165 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 17166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17167 | else |
| 17168 | ac_check_lib_save_LIBS=$LIBS |
| 17169 | LIBS="-lsvld $LIBS" |
| 17170 | cat >conftest.$ac_ext <<_ACEOF |
| 17171 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17172 | /* confdefs.h. */ |
| 17173 | _ACEOF |
| 17174 | cat confdefs.h >>conftest.$ac_ext |
| 17175 | cat >>conftest.$ac_ext <<_ACEOF |
| 17176 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17177 | |
| 17178 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17179 | #ifdef __cplusplus |
| 17180 | extern "C" |
| 17181 | #endif |
| 17182 | /* We use char because int might match the return type of a gcc2 |
| 17183 | builtin and then its argument prototype would still apply. */ |
| 17184 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17185 | int |
| 17186 | main () |
| 17187 | { |
| 17188 | dlopen (); |
| 17189 | ; |
| 17190 | return 0; |
| 17191 | } |
| 17192 | _ACEOF |
| 17193 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17195 | (eval $ac_link) 2>&5 |
| 17196 | ac_status=$? |
| 17197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17198 | (exit $ac_status); } && |
| 17199 | { ac_try='test -s conftest$ac_exeext' |
| 17200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17201 | (eval $ac_try) 2>&5 |
| 17202 | ac_status=$? |
| 17203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17204 | (exit $ac_status); }; }; then |
| 17205 | ac_cv_lib_svld_dlopen=yes |
| 17206 | else |
| 17207 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17209 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17210 | ac_cv_lib_svld_dlopen=no |
| 17211 | fi |
| 17212 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 17213 | LIBS=$ac_check_lib_save_LIBS |
| 17214 | fi |
| 17215 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 17216 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 17217 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 17218 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 17219 | else |
| 17220 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 17221 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 17222 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 17223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17224 | else |
| 17225 | ac_check_lib_save_LIBS=$LIBS |
| 17226 | LIBS="-ldld $LIBS" |
| 17227 | cat >conftest.$ac_ext <<_ACEOF |
| 17228 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17229 | /* confdefs.h. */ |
| 17230 | _ACEOF |
| 17231 | cat confdefs.h >>conftest.$ac_ext |
| 17232 | cat >>conftest.$ac_ext <<_ACEOF |
| 17233 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17234 | |
| 17235 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17236 | #ifdef __cplusplus |
| 17237 | extern "C" |
| 17238 | #endif |
| 17239 | /* We use char because int might match the return type of a gcc2 |
| 17240 | builtin and then its argument prototype would still apply. */ |
| 17241 | char dld_link (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17242 | int |
| 17243 | main () |
| 17244 | { |
| 17245 | dld_link (); |
| 17246 | ; |
| 17247 | return 0; |
| 17248 | } |
| 17249 | _ACEOF |
| 17250 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17251 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17252 | (eval $ac_link) 2>&5 |
| 17253 | ac_status=$? |
| 17254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17255 | (exit $ac_status); } && |
| 17256 | { ac_try='test -s conftest$ac_exeext' |
| 17257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17258 | (eval $ac_try) 2>&5 |
| 17259 | ac_status=$? |
| 17260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17261 | (exit $ac_status); }; }; then |
| 17262 | ac_cv_lib_dld_dld_link=yes |
| 17263 | else |
| 17264 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17266 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17267 | ac_cv_lib_dld_dld_link=no |
| 17268 | fi |
| 17269 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 17270 | LIBS=$ac_check_lib_save_LIBS |
| 17271 | fi |
| 17272 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 17273 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 17274 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 17275 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 17276 | fi |
| 17277 | |
| 17278 | |
| 17279 | fi |
| 17280 | |
| 17281 | |
| 17282 | fi |
| 17283 | |
| 17284 | |
| 17285 | fi |
| 17286 | |
| 17287 | |
| 17288 | fi |
| 17289 | |
| 17290 | |
| 17291 | fi |
| 17292 | |
| 17293 | ;; |
| 17294 | esac |
| 17295 | |
| 17296 | if test "x$lt_cv_dlopen" != xno; then |
| 17297 | enable_dlopen=yes |
| 17298 | else |
| 17299 | enable_dlopen=no |
| 17300 | fi |
| 17301 | |
| 17302 | case $lt_cv_dlopen in |
| 17303 | dlopen) |
| 17304 | save_CPPFLAGS="$CPPFLAGS" |
| 17305 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 17306 | |
| 17307 | save_LDFLAGS="$LDFLAGS" |
| 17308 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 17309 | |
| 17310 | save_LIBS="$LIBS" |
| 17311 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 17312 | |
| 17313 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 17314 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 17315 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 17316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17317 | else |
| 17318 | if test "$cross_compiling" = yes; then : |
| 17319 | lt_cv_dlopen_self=cross |
| 17320 | else |
| 17321 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 17322 | lt_status=$lt_dlunknown |
| 17323 | cat > conftest.$ac_ext <<EOF |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 17324 | #line 17324 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17325 | #include "confdefs.h" |
| 17326 | |
| 17327 | #if HAVE_DLFCN_H |
| 17328 | #include <dlfcn.h> |
| 17329 | #endif |
| 17330 | |
| 17331 | #include <stdio.h> |
| 17332 | |
| 17333 | #ifdef RTLD_GLOBAL |
| 17334 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17335 | #else |
| 17336 | # ifdef DL_GLOBAL |
| 17337 | # define LT_DLGLOBAL DL_GLOBAL |
| 17338 | # else |
| 17339 | # define LT_DLGLOBAL 0 |
| 17340 | # endif |
| 17341 | #endif |
| 17342 | |
| 17343 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17344 | find out it does not work in some platform. */ |
| 17345 | #ifndef LT_DLLAZY_OR_NOW |
| 17346 | # ifdef RTLD_LAZY |
| 17347 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17348 | # else |
| 17349 | # ifdef DL_LAZY |
| 17350 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17351 | # else |
| 17352 | # ifdef RTLD_NOW |
| 17353 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17354 | # else |
| 17355 | # ifdef DL_NOW |
| 17356 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17357 | # else |
| 17358 | # define LT_DLLAZY_OR_NOW 0 |
| 17359 | # endif |
| 17360 | # endif |
| 17361 | # endif |
| 17362 | # endif |
| 17363 | #endif |
| 17364 | |
| 17365 | #ifdef __cplusplus |
| 17366 | extern "C" void exit (int); |
| 17367 | #endif |
| 17368 | |
| 17369 | void fnord() { int i=42;} |
| 17370 | int main () |
| 17371 | { |
| 17372 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17373 | int status = $lt_dlunknown; |
| 17374 | |
| 17375 | if (self) |
| 17376 | { |
| 17377 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17378 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17379 | /* dlclose (self); */ |
| 17380 | } |
| 17381 | |
| 17382 | exit (status); |
| 17383 | } |
| 17384 | EOF |
| 17385 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17386 | (eval $ac_link) 2>&5 |
| 17387 | ac_status=$? |
| 17388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17389 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 17390 | (./conftest; exit; ) 2>/dev/null |
| 17391 | lt_status=$? |
| 17392 | case x$lt_status in |
| 17393 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 17394 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 17395 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 17396 | esac |
| 17397 | else : |
| 17398 | # compilation failed |
| 17399 | lt_cv_dlopen_self=no |
| 17400 | fi |
| 17401 | fi |
| 17402 | rm -fr conftest* |
| 17403 | |
| 17404 | |
| 17405 | fi |
| 17406 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 17407 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 17408 | |
| 17409 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 17410 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 17411 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 17412 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 17413 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 17414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17415 | else |
| 17416 | if test "$cross_compiling" = yes; then : |
| 17417 | lt_cv_dlopen_self_static=cross |
| 17418 | else |
| 17419 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 17420 | lt_status=$lt_dlunknown |
| 17421 | cat > conftest.$ac_ext <<EOF |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 17422 | #line 17422 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17423 | #include "confdefs.h" |
| 17424 | |
| 17425 | #if HAVE_DLFCN_H |
| 17426 | #include <dlfcn.h> |
| 17427 | #endif |
| 17428 | |
| 17429 | #include <stdio.h> |
| 17430 | |
| 17431 | #ifdef RTLD_GLOBAL |
| 17432 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17433 | #else |
| 17434 | # ifdef DL_GLOBAL |
| 17435 | # define LT_DLGLOBAL DL_GLOBAL |
| 17436 | # else |
| 17437 | # define LT_DLGLOBAL 0 |
| 17438 | # endif |
| 17439 | #endif |
| 17440 | |
| 17441 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17442 | find out it does not work in some platform. */ |
| 17443 | #ifndef LT_DLLAZY_OR_NOW |
| 17444 | # ifdef RTLD_LAZY |
| 17445 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17446 | # else |
| 17447 | # ifdef DL_LAZY |
| 17448 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17449 | # else |
| 17450 | # ifdef RTLD_NOW |
| 17451 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17452 | # else |
| 17453 | # ifdef DL_NOW |
| 17454 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17455 | # else |
| 17456 | # define LT_DLLAZY_OR_NOW 0 |
| 17457 | # endif |
| 17458 | # endif |
| 17459 | # endif |
| 17460 | # endif |
| 17461 | #endif |
| 17462 | |
| 17463 | #ifdef __cplusplus |
| 17464 | extern "C" void exit (int); |
| 17465 | #endif |
| 17466 | |
| 17467 | void fnord() { int i=42;} |
| 17468 | int main () |
| 17469 | { |
| 17470 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17471 | int status = $lt_dlunknown; |
| 17472 | |
| 17473 | if (self) |
| 17474 | { |
| 17475 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17476 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17477 | /* dlclose (self); */ |
| 17478 | } |
| 17479 | |
| 17480 | exit (status); |
| 17481 | } |
| 17482 | EOF |
| 17483 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17484 | (eval $ac_link) 2>&5 |
| 17485 | ac_status=$? |
| 17486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17487 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 17488 | (./conftest; exit; ) 2>/dev/null |
| 17489 | lt_status=$? |
| 17490 | case x$lt_status in |
| 17491 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17492 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17493 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 17494 | esac |
| 17495 | else : |
| 17496 | # compilation failed |
| 17497 | lt_cv_dlopen_self_static=no |
| 17498 | fi |
| 17499 | fi |
| 17500 | rm -fr conftest* |
| 17501 | |
| 17502 | |
| 17503 | fi |
| 17504 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 17505 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 17506 | fi |
| 17507 | |
| 17508 | CPPFLAGS="$save_CPPFLAGS" |
| 17509 | LDFLAGS="$save_LDFLAGS" |
| 17510 | LIBS="$save_LIBS" |
| 17511 | ;; |
| 17512 | esac |
| 17513 | |
| 17514 | case $lt_cv_dlopen_self in |
| 17515 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 17516 | *) enable_dlopen_self=unknown ;; |
| 17517 | esac |
| 17518 | |
| 17519 | case $lt_cv_dlopen_self_static in |
| 17520 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 17521 | *) enable_dlopen_self_static=unknown ;; |
| 17522 | esac |
| 17523 | fi |
| 17524 | |
| 17525 | |
| 17526 | # The else clause should only fire when bootstrapping the |
| 17527 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17528 | # with your package, and you will get complaints that there are |
| 17529 | # no rules to generate ltmain.sh. |
| 17530 | if test -f "$ltmain"; then |
| 17531 | # See if we are running on zsh, and set the options which allow our commands through |
| 17532 | # without removal of \ escapes. |
| 17533 | if test -n "${ZSH_VERSION+set}" ; then |
| 17534 | setopt NO_GLOB_SUBST |
| 17535 | fi |
| 17536 | # Now quote all the things that may contain metacharacters while being |
| 17537 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17538 | # variables and quote the copies for generation of the libtool script. |
| 17539 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
| 17540 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17541 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17542 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17543 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17544 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 17545 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 17546 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17547 | compiler_GCJ \ |
| 17548 | CC_GCJ \ |
| 17549 | LD_GCJ \ |
| 17550 | lt_prog_compiler_wl_GCJ \ |
| 17551 | lt_prog_compiler_pic_GCJ \ |
| 17552 | lt_prog_compiler_static_GCJ \ |
| 17553 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 17554 | export_dynamic_flag_spec_GCJ \ |
| 17555 | thread_safe_flag_spec_GCJ \ |
| 17556 | whole_archive_flag_spec_GCJ \ |
| 17557 | enable_shared_with_static_runtimes_GCJ \ |
| 17558 | old_archive_cmds_GCJ \ |
| 17559 | old_archive_from_new_cmds_GCJ \ |
| 17560 | predep_objects_GCJ \ |
| 17561 | postdep_objects_GCJ \ |
| 17562 | predeps_GCJ \ |
| 17563 | postdeps_GCJ \ |
| 17564 | compiler_lib_search_path_GCJ \ |
| 17565 | archive_cmds_GCJ \ |
| 17566 | archive_expsym_cmds_GCJ \ |
| 17567 | postinstall_cmds_GCJ \ |
| 17568 | postuninstall_cmds_GCJ \ |
| 17569 | old_archive_from_expsyms_cmds_GCJ \ |
| 17570 | allow_undefined_flag_GCJ \ |
| 17571 | no_undefined_flag_GCJ \ |
| 17572 | export_symbols_cmds_GCJ \ |
| 17573 | hardcode_libdir_flag_spec_GCJ \ |
| 17574 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 17575 | hardcode_libdir_separator_GCJ \ |
| 17576 | hardcode_automatic_GCJ \ |
| 17577 | module_cmds_GCJ \ |
| 17578 | module_expsym_cmds_GCJ \ |
| 17579 | lt_cv_prog_compiler_c_o_GCJ \ |
| 17580 | exclude_expsyms_GCJ \ |
| 17581 | include_expsyms_GCJ; do |
| 17582 | |
| 17583 | case $var in |
| 17584 | old_archive_cmds_GCJ | \ |
| 17585 | old_archive_from_new_cmds_GCJ | \ |
| 17586 | archive_cmds_GCJ | \ |
| 17587 | archive_expsym_cmds_GCJ | \ |
| 17588 | module_cmds_GCJ | \ |
| 17589 | module_expsym_cmds_GCJ | \ |
| 17590 | old_archive_from_expsyms_cmds_GCJ | \ |
| 17591 | export_symbols_cmds_GCJ | \ |
| 17592 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 17593 | postinstall_cmds | postuninstall_cmds | \ |
| 17594 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17595 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 17596 | # Double-quote double-evaled strings. |
| 17597 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 17598 | ;; |
| 17599 | *) |
| 17600 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17601 | ;; |
| 17602 | esac |
| 17603 | done |
| 17604 | |
| 17605 | case $lt_echo in |
| 17606 | *'\$0 --fallback-echo"') |
| 17607 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17608 | ;; |
| 17609 | esac |
| 17610 | |
| 17611 | cfgfile="$ofile" |
| 17612 | |
| 17613 | cat <<__EOF__ >> "$cfgfile" |
| 17614 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 17615 | |
| 17616 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 17617 | |
| 17618 | # Shell to use when invoking shell scripts. |
| 17619 | SHELL=$lt_SHELL |
| 17620 | |
| 17621 | # Whether or not to build shared libraries. |
| 17622 | build_libtool_libs=$enable_shared |
| 17623 | |
| 17624 | # Whether or not to build static libraries. |
| 17625 | build_old_libs=$enable_static |
| 17626 | |
| 17627 | # Whether or not to add -lc for building shared libraries. |
| 17628 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 17629 | |
| 17630 | # Whether or not to disallow shared libs when runtime libs are static |
| 17631 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 17632 | |
| 17633 | # Whether or not to optimize for fast installation. |
| 17634 | fast_install=$enable_fast_install |
| 17635 | |
| 17636 | # The host system. |
| 17637 | host_alias=$host_alias |
| 17638 | host=$host |
| 17639 | |
| 17640 | # An echo program that does not interpret backslashes. |
| 17641 | echo=$lt_echo |
| 17642 | |
| 17643 | # The archiver. |
| 17644 | AR=$lt_AR |
| 17645 | AR_FLAGS=$lt_AR_FLAGS |
| 17646 | |
| 17647 | # A C compiler. |
| 17648 | LTCC=$lt_LTCC |
| 17649 | |
| 17650 | # A language-specific compiler. |
| 17651 | CC=$lt_compiler_GCJ |
| 17652 | |
| 17653 | # Is the compiler the GNU C compiler? |
| 17654 | with_gcc=$GCC_GCJ |
| 17655 | |
| 17656 | # An ERE matcher. |
| 17657 | EGREP=$lt_EGREP |
| 17658 | |
| 17659 | # The linker used to build libraries. |
| 17660 | LD=$lt_LD_GCJ |
| 17661 | |
| 17662 | # Whether we need hard or soft links. |
| 17663 | LN_S=$lt_LN_S |
| 17664 | |
| 17665 | # A BSD-compatible nm program. |
| 17666 | NM=$lt_NM |
| 17667 | |
| 17668 | # A symbol stripping program |
| 17669 | STRIP=$STRIP |
| 17670 | |
| 17671 | # Used to examine libraries when file_magic_cmd begins "file" |
| 17672 | MAGIC_CMD=$MAGIC_CMD |
| 17673 | |
| 17674 | # Used on cygwin: DLL creation program. |
| 17675 | DLLTOOL="$DLLTOOL" |
| 17676 | |
| 17677 | # Used on cygwin: object dumper. |
| 17678 | OBJDUMP="$OBJDUMP" |
| 17679 | |
| 17680 | # Used on cygwin: assembler. |
| 17681 | AS="$AS" |
| 17682 | |
| 17683 | # The name of the directory that contains temporary libtool files. |
| 17684 | objdir=$objdir |
| 17685 | |
| 17686 | # How to create reloadable object files. |
| 17687 | reload_flag=$lt_reload_flag |
| 17688 | reload_cmds=$lt_reload_cmds |
| 17689 | |
| 17690 | # How to pass a linker flag through the compiler. |
| 17691 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 17692 | |
| 17693 | # Object file suffix (normally "o"). |
| 17694 | objext="$ac_objext" |
| 17695 | |
| 17696 | # Old archive suffix (normally "a"). |
| 17697 | libext="$libext" |
| 17698 | |
| 17699 | # Shared library suffix (normally ".so"). |
| 17700 | shrext='$shrext' |
| 17701 | |
| 17702 | # Executable file suffix (normally ""). |
| 17703 | exeext="$exeext" |
| 17704 | |
| 17705 | # Additional compiler flags for building library objects. |
| 17706 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 17707 | pic_mode=$pic_mode |
| 17708 | |
| 17709 | # What is the maximum length of a command? |
| 17710 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 17711 | |
| 17712 | # Does compiler simultaneously support -c and -o options? |
| 17713 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 17714 | |
| 17715 | # Must we lock files when doing compilation ? |
| 17716 | need_locks=$lt_need_locks |
| 17717 | |
| 17718 | # Do we need the lib prefix for modules? |
| 17719 | need_lib_prefix=$need_lib_prefix |
| 17720 | |
| 17721 | # Do we need a version for libraries? |
| 17722 | need_version=$need_version |
| 17723 | |
| 17724 | # Whether dlopen is supported. |
| 17725 | dlopen_support=$enable_dlopen |
| 17726 | |
| 17727 | # Whether dlopen of programs is supported. |
| 17728 | dlopen_self=$enable_dlopen_self |
| 17729 | |
| 17730 | # Whether dlopen of statically linked programs is supported. |
| 17731 | dlopen_self_static=$enable_dlopen_self_static |
| 17732 | |
| 17733 | # Compiler flag to prevent dynamic linking. |
| 17734 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 17735 | |
| 17736 | # Compiler flag to turn off builtin functions. |
| 17737 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 17738 | |
| 17739 | # Compiler flag to allow reflexive dlopens. |
| 17740 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 17741 | |
| 17742 | # Compiler flag to generate shared objects directly from archives. |
| 17743 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 17744 | |
| 17745 | # Compiler flag to generate thread-safe objects. |
| 17746 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 17747 | |
| 17748 | # Library versioning type. |
| 17749 | version_type=$version_type |
| 17750 | |
| 17751 | # Format of library name prefix. |
| 17752 | libname_spec=$lt_libname_spec |
| 17753 | |
| 17754 | # List of archive names. First name is the real one, the rest are links. |
| 17755 | # The last name is the one that the linker finds with -lNAME. |
| 17756 | library_names_spec=$lt_library_names_spec |
| 17757 | |
| 17758 | # The coded name of the library, if different from the real name. |
| 17759 | soname_spec=$lt_soname_spec |
| 17760 | |
| 17761 | # Commands used to build and install an old-style archive. |
| 17762 | RANLIB=$lt_RANLIB |
| 17763 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 17764 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 17765 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 17766 | |
| 17767 | # Create an old-style archive from a shared archive. |
| 17768 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 17769 | |
| 17770 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17771 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 17772 | |
| 17773 | # Commands used to build and install a shared archive. |
| 17774 | archive_cmds=$lt_archive_cmds_GCJ |
| 17775 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 17776 | postinstall_cmds=$lt_postinstall_cmds |
| 17777 | postuninstall_cmds=$lt_postuninstall_cmds |
| 17778 | |
| 17779 | # Commands used to build a loadable module (assumed same as above if empty) |
| 17780 | module_cmds=$lt_module_cmds_GCJ |
| 17781 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 17782 | |
| 17783 | # Commands to strip libraries. |
| 17784 | old_striplib=$lt_old_striplib |
| 17785 | striplib=$lt_striplib |
| 17786 | |
| 17787 | # Dependencies to place before the objects being linked to create a |
| 17788 | # shared library. |
| 17789 | predep_objects=$lt_predep_objects_GCJ |
| 17790 | |
| 17791 | # Dependencies to place after the objects being linked to create a |
| 17792 | # shared library. |
| 17793 | postdep_objects=$lt_postdep_objects_GCJ |
| 17794 | |
| 17795 | # Dependencies to place before the objects being linked to create a |
| 17796 | # shared library. |
| 17797 | predeps=$lt_predeps_GCJ |
| 17798 | |
| 17799 | # Dependencies to place after the objects being linked to create a |
| 17800 | # shared library. |
| 17801 | postdeps=$lt_postdeps_GCJ |
| 17802 | |
| 17803 | # The library search path used internally by the compiler when linking |
| 17804 | # a shared library. |
| 17805 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 17806 | |
| 17807 | # Method to check whether dependent libraries are shared objects. |
| 17808 | deplibs_check_method=$lt_deplibs_check_method |
| 17809 | |
| 17810 | # Command to use when deplibs_check_method == file_magic. |
| 17811 | file_magic_cmd=$lt_file_magic_cmd |
| 17812 | |
| 17813 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17814 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 17815 | |
| 17816 | # Flag that forces no undefined symbols. |
| 17817 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 17818 | |
| 17819 | # Commands used to finish a libtool library installation in a directory. |
| 17820 | finish_cmds=$lt_finish_cmds |
| 17821 | |
| 17822 | # Same as above, but a single script fragment to be evaled but not shown. |
| 17823 | finish_eval=$lt_finish_eval |
| 17824 | |
| 17825 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 17826 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 17827 | |
| 17828 | # Transform the output of nm in a proper C declaration |
| 17829 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 17830 | |
| 17831 | # Transform the output of nm in a C name address pair |
| 17832 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 17833 | |
| 17834 | # This is the shared library runtime path variable. |
| 17835 | runpath_var=$runpath_var |
| 17836 | |
| 17837 | # This is the shared library path variable. |
| 17838 | shlibpath_var=$shlibpath_var |
| 17839 | |
| 17840 | # Is shlibpath searched before the hard-coded library search path? |
| 17841 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 17842 | |
| 17843 | # How to hardcode a shared library path into an executable. |
| 17844 | hardcode_action=$hardcode_action_GCJ |
| 17845 | |
| 17846 | # Whether we should hardcode library paths into libraries. |
| 17847 | hardcode_into_libs=$hardcode_into_libs |
| 17848 | |
| 17849 | # Flag to hardcode \$libdir into a binary during linking. |
| 17850 | # This must work even if \$libdir does not exist. |
| 17851 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 17852 | |
| 17853 | # If ld is used when linking, flag to hardcode \$libdir into |
| 17854 | # a binary during linking. This must work even if \$libdir does |
| 17855 | # not exist. |
| 17856 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 17857 | |
| 17858 | # Whether we need a single -rpath flag with a separated argument. |
| 17859 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 17860 | |
| 17861 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 17862 | # resulting binary. |
| 17863 | hardcode_direct=$hardcode_direct_GCJ |
| 17864 | |
| 17865 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 17866 | # resulting binary. |
| 17867 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 17868 | |
| 17869 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 17870 | # the resulting binary. |
| 17871 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 17872 | |
| 17873 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 17874 | # and all subsequent libraries and executables linked against it. |
| 17875 | hardcode_automatic=$hardcode_automatic_GCJ |
| 17876 | |
| 17877 | # Variables whose values should be saved in libtool wrapper scripts and |
| 17878 | # restored at relink time. |
| 17879 | variables_saved_for_relink="$variables_saved_for_relink" |
| 17880 | |
| 17881 | # Whether libtool must link a program against all its dependency libraries. |
| 17882 | link_all_deplibs=$link_all_deplibs_GCJ |
| 17883 | |
| 17884 | # Compile-time system search path for libraries |
| 17885 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 17886 | |
| 17887 | # Run-time system search path for libraries |
| 17888 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 17889 | |
| 17890 | # Fix the shell variable \$srcfile for the compiler. |
| 17891 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 17892 | |
| 17893 | # Set to yes if exported symbols are required. |
| 17894 | always_export_symbols=$always_export_symbols_GCJ |
| 17895 | |
| 17896 | # The commands to list exported symbols. |
| 17897 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 17898 | |
| 17899 | # The commands to extract the exported symbol list from a shared archive. |
| 17900 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 17901 | |
| 17902 | # Symbols that should not be listed in the preloaded symbols. |
| 17903 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 17904 | |
| 17905 | # Symbols that must always be exported. |
| 17906 | include_expsyms=$lt_include_expsyms_GCJ |
| 17907 | |
| 17908 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 17909 | |
| 17910 | __EOF__ |
| 17911 | |
| 17912 | |
| 17913 | else |
| 17914 | # If there is no Makefile yet, we rely on a make rule to execute |
| 17915 | # `config.status --recheck' to rerun these tests and create the |
| 17916 | # libtool script then. |
| 17917 | test -f Makefile && make "$ltmain" |
| 17918 | fi |
| 17919 | |
| 17920 | |
| 17921 | ac_ext=c |
| 17922 | ac_cpp='$CPP $CPPFLAGS' |
| 17923 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17924 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17925 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17926 | |
| 17927 | CC="$lt_save_CC" |
| 17928 | |
| 17929 | else |
| 17930 | tagname="" |
| 17931 | fi |
| 17932 | ;; |
| 17933 | |
| 17934 | RC) |
| 17935 | |
| 17936 | |
| 17937 | |
| 17938 | # Source file extension for RC test sources. |
| 17939 | ac_ext=rc |
| 17940 | |
| 17941 | # Object file extension for compiled RC test sources. |
| 17942 | objext=o |
| 17943 | objext_RC=$objext |
| 17944 | |
| 17945 | # Code to be used in simple compile tests |
| 17946 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 17947 | |
| 17948 | # Code to be used in simple link tests |
| 17949 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 17950 | |
| 17951 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 17952 | |
| 17953 | # If no C compiler was specified, use CC. |
| 17954 | LTCC=${LTCC-"$CC"} |
| 17955 | |
| 17956 | # Allow CC to be a program name with arguments. |
| 17957 | compiler=$CC |
| 17958 | |
| 17959 | |
| 17960 | # Allow CC to be a program name with arguments. |
| 17961 | lt_save_CC="$CC" |
| 17962 | CC=${RC-"windres"} |
| 17963 | compiler=$CC |
| 17964 | compiler_RC=$CC |
| 17965 | lt_cv_prog_compiler_c_o_RC=yes |
| 17966 | |
| 17967 | # The else clause should only fire when bootstrapping the |
| 17968 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17969 | # with your package, and you will get complaints that there are |
| 17970 | # no rules to generate ltmain.sh. |
| 17971 | if test -f "$ltmain"; then |
| 17972 | # See if we are running on zsh, and set the options which allow our commands through |
| 17973 | # without removal of \ escapes. |
| 17974 | if test -n "${ZSH_VERSION+set}" ; then |
| 17975 | setopt NO_GLOB_SUBST |
| 17976 | fi |
| 17977 | # Now quote all the things that may contain metacharacters while being |
| 17978 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17979 | # variables and quote the copies for generation of the libtool script. |
| 17980 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
| 17981 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17982 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17983 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17984 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17985 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 17986 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 17987 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17988 | compiler_RC \ |
| 17989 | CC_RC \ |
| 17990 | LD_RC \ |
| 17991 | lt_prog_compiler_wl_RC \ |
| 17992 | lt_prog_compiler_pic_RC \ |
| 17993 | lt_prog_compiler_static_RC \ |
| 17994 | lt_prog_compiler_no_builtin_flag_RC \ |
| 17995 | export_dynamic_flag_spec_RC \ |
| 17996 | thread_safe_flag_spec_RC \ |
| 17997 | whole_archive_flag_spec_RC \ |
| 17998 | enable_shared_with_static_runtimes_RC \ |
| 17999 | old_archive_cmds_RC \ |
| 18000 | old_archive_from_new_cmds_RC \ |
| 18001 | predep_objects_RC \ |
| 18002 | postdep_objects_RC \ |
| 18003 | predeps_RC \ |
| 18004 | postdeps_RC \ |
| 18005 | compiler_lib_search_path_RC \ |
| 18006 | archive_cmds_RC \ |
| 18007 | archive_expsym_cmds_RC \ |
| 18008 | postinstall_cmds_RC \ |
| 18009 | postuninstall_cmds_RC \ |
| 18010 | old_archive_from_expsyms_cmds_RC \ |
| 18011 | allow_undefined_flag_RC \ |
| 18012 | no_undefined_flag_RC \ |
| 18013 | export_symbols_cmds_RC \ |
| 18014 | hardcode_libdir_flag_spec_RC \ |
| 18015 | hardcode_libdir_flag_spec_ld_RC \ |
| 18016 | hardcode_libdir_separator_RC \ |
| 18017 | hardcode_automatic_RC \ |
| 18018 | module_cmds_RC \ |
| 18019 | module_expsym_cmds_RC \ |
| 18020 | lt_cv_prog_compiler_c_o_RC \ |
| 18021 | exclude_expsyms_RC \ |
| 18022 | include_expsyms_RC; do |
| 18023 | |
| 18024 | case $var in |
| 18025 | old_archive_cmds_RC | \ |
| 18026 | old_archive_from_new_cmds_RC | \ |
| 18027 | archive_cmds_RC | \ |
| 18028 | archive_expsym_cmds_RC | \ |
| 18029 | module_cmds_RC | \ |
| 18030 | module_expsym_cmds_RC | \ |
| 18031 | old_archive_from_expsyms_cmds_RC | \ |
| 18032 | export_symbols_cmds_RC | \ |
| 18033 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 18034 | postinstall_cmds | postuninstall_cmds | \ |
| 18035 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 18036 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 18037 | # Double-quote double-evaled strings. |
| 18038 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 18039 | ;; |
| 18040 | *) |
| 18041 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 18042 | ;; |
| 18043 | esac |
| 18044 | done |
| 18045 | |
| 18046 | case $lt_echo in |
| 18047 | *'\$0 --fallback-echo"') |
| 18048 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 18049 | ;; |
| 18050 | esac |
| 18051 | |
| 18052 | cfgfile="$ofile" |
| 18053 | |
| 18054 | cat <<__EOF__ >> "$cfgfile" |
| 18055 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 18056 | |
| 18057 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18058 | |
| 18059 | # Shell to use when invoking shell scripts. |
| 18060 | SHELL=$lt_SHELL |
| 18061 | |
| 18062 | # Whether or not to build shared libraries. |
| 18063 | build_libtool_libs=$enable_shared |
| 18064 | |
| 18065 | # Whether or not to build static libraries. |
| 18066 | build_old_libs=$enable_static |
| 18067 | |
| 18068 | # Whether or not to add -lc for building shared libraries. |
| 18069 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 18070 | |
| 18071 | # Whether or not to disallow shared libs when runtime libs are static |
| 18072 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 18073 | |
| 18074 | # Whether or not to optimize for fast installation. |
| 18075 | fast_install=$enable_fast_install |
| 18076 | |
| 18077 | # The host system. |
| 18078 | host_alias=$host_alias |
| 18079 | host=$host |
| 18080 | |
| 18081 | # An echo program that does not interpret backslashes. |
| 18082 | echo=$lt_echo |
| 18083 | |
| 18084 | # The archiver. |
| 18085 | AR=$lt_AR |
| 18086 | AR_FLAGS=$lt_AR_FLAGS |
| 18087 | |
| 18088 | # A C compiler. |
| 18089 | LTCC=$lt_LTCC |
| 18090 | |
| 18091 | # A language-specific compiler. |
| 18092 | CC=$lt_compiler_RC |
| 18093 | |
| 18094 | # Is the compiler the GNU C compiler? |
| 18095 | with_gcc=$GCC_RC |
| 18096 | |
| 18097 | # An ERE matcher. |
| 18098 | EGREP=$lt_EGREP |
| 18099 | |
| 18100 | # The linker used to build libraries. |
| 18101 | LD=$lt_LD_RC |
| 18102 | |
| 18103 | # Whether we need hard or soft links. |
| 18104 | LN_S=$lt_LN_S |
| 18105 | |
| 18106 | # A BSD-compatible nm program. |
| 18107 | NM=$lt_NM |
| 18108 | |
| 18109 | # A symbol stripping program |
| 18110 | STRIP=$STRIP |
| 18111 | |
| 18112 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18113 | MAGIC_CMD=$MAGIC_CMD |
| 18114 | |
| 18115 | # Used on cygwin: DLL creation program. |
| 18116 | DLLTOOL="$DLLTOOL" |
| 18117 | |
| 18118 | # Used on cygwin: object dumper. |
| 18119 | OBJDUMP="$OBJDUMP" |
| 18120 | |
| 18121 | # Used on cygwin: assembler. |
| 18122 | AS="$AS" |
| 18123 | |
| 18124 | # The name of the directory that contains temporary libtool files. |
| 18125 | objdir=$objdir |
| 18126 | |
| 18127 | # How to create reloadable object files. |
| 18128 | reload_flag=$lt_reload_flag |
| 18129 | reload_cmds=$lt_reload_cmds |
| 18130 | |
| 18131 | # How to pass a linker flag through the compiler. |
| 18132 | wl=$lt_lt_prog_compiler_wl_RC |
| 18133 | |
| 18134 | # Object file suffix (normally "o"). |
| 18135 | objext="$ac_objext" |
| 18136 | |
| 18137 | # Old archive suffix (normally "a"). |
| 18138 | libext="$libext" |
| 18139 | |
| 18140 | # Shared library suffix (normally ".so"). |
| 18141 | shrext='$shrext' |
| 18142 | |
| 18143 | # Executable file suffix (normally ""). |
| 18144 | exeext="$exeext" |
| 18145 | |
| 18146 | # Additional compiler flags for building library objects. |
| 18147 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 18148 | pic_mode=$pic_mode |
| 18149 | |
| 18150 | # What is the maximum length of a command? |
| 18151 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 18152 | |
| 18153 | # Does compiler simultaneously support -c and -o options? |
| 18154 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 18155 | |
| 18156 | # Must we lock files when doing compilation ? |
| 18157 | need_locks=$lt_need_locks |
| 18158 | |
| 18159 | # Do we need the lib prefix for modules? |
| 18160 | need_lib_prefix=$need_lib_prefix |
| 18161 | |
| 18162 | # Do we need a version for libraries? |
| 18163 | need_version=$need_version |
| 18164 | |
| 18165 | # Whether dlopen is supported. |
| 18166 | dlopen_support=$enable_dlopen |
| 18167 | |
| 18168 | # Whether dlopen of programs is supported. |
| 18169 | dlopen_self=$enable_dlopen_self |
| 18170 | |
| 18171 | # Whether dlopen of statically linked programs is supported. |
| 18172 | dlopen_self_static=$enable_dlopen_self_static |
| 18173 | |
| 18174 | # Compiler flag to prevent dynamic linking. |
| 18175 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 18176 | |
| 18177 | # Compiler flag to turn off builtin functions. |
| 18178 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 18179 | |
| 18180 | # Compiler flag to allow reflexive dlopens. |
| 18181 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 18182 | |
| 18183 | # Compiler flag to generate shared objects directly from archives. |
| 18184 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 18185 | |
| 18186 | # Compiler flag to generate thread-safe objects. |
| 18187 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 18188 | |
| 18189 | # Library versioning type. |
| 18190 | version_type=$version_type |
| 18191 | |
| 18192 | # Format of library name prefix. |
| 18193 | libname_spec=$lt_libname_spec |
| 18194 | |
| 18195 | # List of archive names. First name is the real one, the rest are links. |
| 18196 | # The last name is the one that the linker finds with -lNAME. |
| 18197 | library_names_spec=$lt_library_names_spec |
| 18198 | |
| 18199 | # The coded name of the library, if different from the real name. |
| 18200 | soname_spec=$lt_soname_spec |
| 18201 | |
| 18202 | # Commands used to build and install an old-style archive. |
| 18203 | RANLIB=$lt_RANLIB |
| 18204 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 18205 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 18206 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 18207 | |
| 18208 | # Create an old-style archive from a shared archive. |
| 18209 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 18210 | |
| 18211 | # Create a temporary old-style archive to link instead of a shared archive. |
| 18212 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 18213 | |
| 18214 | # Commands used to build and install a shared archive. |
| 18215 | archive_cmds=$lt_archive_cmds_RC |
| 18216 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 18217 | postinstall_cmds=$lt_postinstall_cmds |
| 18218 | postuninstall_cmds=$lt_postuninstall_cmds |
| 18219 | |
| 18220 | # Commands used to build a loadable module (assumed same as above if empty) |
| 18221 | module_cmds=$lt_module_cmds_RC |
| 18222 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 18223 | |
| 18224 | # Commands to strip libraries. |
| 18225 | old_striplib=$lt_old_striplib |
| 18226 | striplib=$lt_striplib |
| 18227 | |
| 18228 | # Dependencies to place before the objects being linked to create a |
| 18229 | # shared library. |
| 18230 | predep_objects=$lt_predep_objects_RC |
| 18231 | |
| 18232 | # Dependencies to place after the objects being linked to create a |
| 18233 | # shared library. |
| 18234 | postdep_objects=$lt_postdep_objects_RC |
| 18235 | |
| 18236 | # Dependencies to place before the objects being linked to create a |
| 18237 | # shared library. |
| 18238 | predeps=$lt_predeps_RC |
| 18239 | |
| 18240 | # Dependencies to place after the objects being linked to create a |
| 18241 | # shared library. |
| 18242 | postdeps=$lt_postdeps_RC |
| 18243 | |
| 18244 | # The library search path used internally by the compiler when linking |
| 18245 | # a shared library. |
| 18246 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 18247 | |
| 18248 | # Method to check whether dependent libraries are shared objects. |
| 18249 | deplibs_check_method=$lt_deplibs_check_method |
| 18250 | |
| 18251 | # Command to use when deplibs_check_method == file_magic. |
| 18252 | file_magic_cmd=$lt_file_magic_cmd |
| 18253 | |
| 18254 | # Flag that allows shared libraries with undefined symbols to be built. |
| 18255 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 18256 | |
| 18257 | # Flag that forces no undefined symbols. |
| 18258 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 18259 | |
| 18260 | # Commands used to finish a libtool library installation in a directory. |
| 18261 | finish_cmds=$lt_finish_cmds |
| 18262 | |
| 18263 | # Same as above, but a single script fragment to be evaled but not shown. |
| 18264 | finish_eval=$lt_finish_eval |
| 18265 | |
| 18266 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 18267 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 18268 | |
| 18269 | # Transform the output of nm in a proper C declaration |
| 18270 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 18271 | |
| 18272 | # Transform the output of nm in a C name address pair |
| 18273 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 18274 | |
| 18275 | # This is the shared library runtime path variable. |
| 18276 | runpath_var=$runpath_var |
| 18277 | |
| 18278 | # This is the shared library path variable. |
| 18279 | shlibpath_var=$shlibpath_var |
| 18280 | |
| 18281 | # Is shlibpath searched before the hard-coded library search path? |
| 18282 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 18283 | |
| 18284 | # How to hardcode a shared library path into an executable. |
| 18285 | hardcode_action=$hardcode_action_RC |
| 18286 | |
| 18287 | # Whether we should hardcode library paths into libraries. |
| 18288 | hardcode_into_libs=$hardcode_into_libs |
| 18289 | |
| 18290 | # Flag to hardcode \$libdir into a binary during linking. |
| 18291 | # This must work even if \$libdir does not exist. |
| 18292 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 18293 | |
| 18294 | # If ld is used when linking, flag to hardcode \$libdir into |
| 18295 | # a binary during linking. This must work even if \$libdir does |
| 18296 | # not exist. |
| 18297 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 18298 | |
| 18299 | # Whether we need a single -rpath flag with a separated argument. |
| 18300 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 18301 | |
| 18302 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 18303 | # resulting binary. |
| 18304 | hardcode_direct=$hardcode_direct_RC |
| 18305 | |
| 18306 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 18307 | # resulting binary. |
| 18308 | hardcode_minus_L=$hardcode_minus_L_RC |
| 18309 | |
| 18310 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 18311 | # the resulting binary. |
| 18312 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 18313 | |
| 18314 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 18315 | # and all subsequent libraries and executables linked against it. |
| 18316 | hardcode_automatic=$hardcode_automatic_RC |
| 18317 | |
| 18318 | # Variables whose values should be saved in libtool wrapper scripts and |
| 18319 | # restored at relink time. |
| 18320 | variables_saved_for_relink="$variables_saved_for_relink" |
| 18321 | |
| 18322 | # Whether libtool must link a program against all its dependency libraries. |
| 18323 | link_all_deplibs=$link_all_deplibs_RC |
| 18324 | |
| 18325 | # Compile-time system search path for libraries |
| 18326 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 18327 | |
| 18328 | # Run-time system search path for libraries |
| 18329 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 18330 | |
| 18331 | # Fix the shell variable \$srcfile for the compiler. |
| 18332 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 18333 | |
| 18334 | # Set to yes if exported symbols are required. |
| 18335 | always_export_symbols=$always_export_symbols_RC |
| 18336 | |
| 18337 | # The commands to list exported symbols. |
| 18338 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 18339 | |
| 18340 | # The commands to extract the exported symbol list from a shared archive. |
| 18341 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 18342 | |
| 18343 | # Symbols that should not be listed in the preloaded symbols. |
| 18344 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 18345 | |
| 18346 | # Symbols that must always be exported. |
| 18347 | include_expsyms=$lt_include_expsyms_RC |
| 18348 | |
| 18349 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 18350 | |
| 18351 | __EOF__ |
| 18352 | |
| 18353 | |
| 18354 | else |
| 18355 | # If there is no Makefile yet, we rely on a make rule to execute |
| 18356 | # `config.status --recheck' to rerun these tests and create the |
| 18357 | # libtool script then. |
| 18358 | test -f Makefile && make "$ltmain" |
| 18359 | fi |
| 18360 | |
| 18361 | |
| 18362 | ac_ext=c |
| 18363 | ac_cpp='$CPP $CPPFLAGS' |
| 18364 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18365 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18366 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18367 | |
| 18368 | CC="$lt_save_CC" |
| 18369 | |
| 18370 | ;; |
| 18371 | |
| 18372 | *) |
| 18373 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 18374 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 18375 | { (exit 1); exit 1; }; } |
| 18376 | ;; |
| 18377 | esac |
| 18378 | |
| 18379 | # Append the new tag name to the list of available tags. |
| 18380 | if test -n "$tagname" ; then |
| 18381 | available_tags="$available_tags $tagname" |
| 18382 | fi |
| 18383 | fi |
| 18384 | done |
| 18385 | IFS="$lt_save_ifs" |
| 18386 | |
| 18387 | # Now substitute the updated list of available tags. |
| 18388 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 18389 | mv "${ofile}T" "$ofile" |
| 18390 | chmod +x "$ofile" |
| 18391 | else |
| 18392 | rm -f "${ofile}T" |
| 18393 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 18394 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 18395 | { (exit 1); exit 1; }; } |
| 18396 | fi |
| 18397 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18398 | |
| 18399 | |
| 18400 | |
| 18401 | # This can be used to rebuild libtool when needed |
| 18402 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 18403 | |
| 18404 | # Always use our own libtool. |
John Criswell | 8d4221e | 2003-07-23 16:52:50 +0000 | [diff] [blame] | 18405 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18406 | |
| 18407 | # Prevent multiple expansion |
| 18408 | |
| 18409 | |
| 18410 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18411 | |
| 18412 | |
| 18413 | |
| 18414 | |
| 18415 | |
| 18416 | |
| 18417 | |
| 18418 | |
| 18419 | |
| 18420 | |
| 18421 | |
| 18422 | |
| 18423 | |
| 18424 | |
| 18425 | |
| 18426 | |
| 18427 | |
| 18428 | |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 18429 | # Extract the first word of "pwd", so it can be a program name with args. |
| 18430 | set dummy pwd; ac_word=$2 |
| 18431 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18432 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18433 | if test "${ac_cv_path_RPWD+set}" = set; then |
| 18434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18435 | else |
| 18436 | case $RPWD in |
| 18437 | [\\/]* | ?:[\\/]*) |
| 18438 | ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path. |
| 18439 | ;; |
| 18440 | *) |
| 18441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18442 | for as_dir in $PATH |
| 18443 | do |
| 18444 | IFS=$as_save_IFS |
| 18445 | test -z "$as_dir" && as_dir=. |
| 18446 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18447 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18448 | ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext" |
| 18449 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18450 | break 2 |
| 18451 | fi |
| 18452 | done |
| 18453 | done |
| 18454 | |
| 18455 | ;; |
| 18456 | esac |
| 18457 | fi |
| 18458 | RPWD=$ac_cv_path_RPWD |
| 18459 | |
| 18460 | if test -n "$RPWD"; then |
| 18461 | echo "$as_me:$LINENO: result: $RPWD" >&5 |
| 18462 | echo "${ECHO_T}$RPWD" >&6 |
| 18463 | else |
| 18464 | echo "$as_me:$LINENO: result: no" >&5 |
| 18465 | echo "${ECHO_T}no" >&6 |
| 18466 | fi |
| 18467 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18468 | # Extract the first word of "ar", so it can be a program name with args. |
| 18469 | set dummy ar; ac_word=$2 |
| 18470 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18471 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18472 | if test "${ac_cv_path_AR+set}" = set; then |
| 18473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18474 | else |
| 18475 | case $AR in |
| 18476 | [\\/]* | ?:[\\/]*) |
| 18477 | ac_cv_path_AR="$AR" # Let the user override the test with a path. |
| 18478 | ;; |
| 18479 | *) |
| 18480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18481 | for as_dir in $PATH |
| 18482 | do |
| 18483 | IFS=$as_save_IFS |
| 18484 | test -z "$as_dir" && as_dir=. |
| 18485 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18486 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18487 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
| 18488 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18489 | break 2 |
| 18490 | fi |
| 18491 | done |
| 18492 | done |
| 18493 | |
| 18494 | ;; |
| 18495 | esac |
| 18496 | fi |
| 18497 | AR=$ac_cv_path_AR |
| 18498 | |
| 18499 | if test -n "$AR"; then |
| 18500 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 18501 | echo "${ECHO_T}$AR" >&6 |
| 18502 | else |
| 18503 | echo "$as_me:$LINENO: result: no" >&5 |
| 18504 | echo "${ECHO_T}no" >&6 |
| 18505 | fi |
| 18506 | |
| 18507 | # Extract the first word of "sed", so it can be a program name with args. |
| 18508 | set dummy sed; ac_word=$2 |
| 18509 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18510 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18511 | if test "${ac_cv_path_SED+set}" = set; then |
| 18512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18513 | else |
| 18514 | case $SED in |
| 18515 | [\\/]* | ?:[\\/]*) |
| 18516 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 18517 | ;; |
| 18518 | *) |
| 18519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18520 | for as_dir in $PATH |
| 18521 | do |
| 18522 | IFS=$as_save_IFS |
| 18523 | test -z "$as_dir" && as_dir=. |
| 18524 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18525 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18526 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 18527 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18528 | break 2 |
| 18529 | fi |
| 18530 | done |
| 18531 | done |
| 18532 | |
| 18533 | ;; |
| 18534 | esac |
| 18535 | fi |
| 18536 | SED=$ac_cv_path_SED |
| 18537 | |
| 18538 | if test -n "$SED"; then |
| 18539 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 18540 | echo "${ECHO_T}$SED" >&6 |
| 18541 | else |
| 18542 | echo "$as_me:$LINENO: result: no" >&5 |
| 18543 | echo "${ECHO_T}no" >&6 |
| 18544 | fi |
| 18545 | |
| 18546 | # Extract the first word of "rm", so it can be a program name with args. |
| 18547 | set dummy rm; ac_word=$2 |
| 18548 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18549 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18550 | if test "${ac_cv_path_RM+set}" = set; then |
| 18551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18552 | else |
| 18553 | case $RM in |
| 18554 | [\\/]* | ?:[\\/]*) |
| 18555 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 18556 | ;; |
| 18557 | *) |
| 18558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18559 | for as_dir in $PATH |
| 18560 | do |
| 18561 | IFS=$as_save_IFS |
| 18562 | test -z "$as_dir" && as_dir=. |
| 18563 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18564 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18565 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 18566 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18567 | break 2 |
| 18568 | fi |
| 18569 | done |
| 18570 | done |
| 18571 | |
| 18572 | ;; |
| 18573 | esac |
| 18574 | fi |
| 18575 | RM=$ac_cv_path_RM |
| 18576 | |
| 18577 | if test -n "$RM"; then |
| 18578 | echo "$as_me:$LINENO: result: $RM" >&5 |
| 18579 | echo "${ECHO_T}$RM" >&6 |
| 18580 | else |
| 18581 | echo "$as_me:$LINENO: result: no" >&5 |
| 18582 | echo "${ECHO_T}no" >&6 |
| 18583 | fi |
| 18584 | |
| 18585 | # Extract the first word of "echo", so it can be a program name with args. |
| 18586 | set dummy echo; ac_word=$2 |
| 18587 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18588 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18589 | if test "${ac_cv_path_ECHO+set}" = set; then |
| 18590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18591 | else |
| 18592 | case $ECHO in |
| 18593 | [\\/]* | ?:[\\/]*) |
| 18594 | ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. |
| 18595 | ;; |
| 18596 | *) |
| 18597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18598 | for as_dir in $PATH |
| 18599 | do |
| 18600 | IFS=$as_save_IFS |
| 18601 | test -z "$as_dir" && as_dir=. |
| 18602 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18603 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18604 | ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" |
| 18605 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18606 | break 2 |
| 18607 | fi |
| 18608 | done |
| 18609 | done |
| 18610 | |
| 18611 | ;; |
| 18612 | esac |
| 18613 | fi |
| 18614 | ECHO=$ac_cv_path_ECHO |
| 18615 | |
| 18616 | if test -n "$ECHO"; then |
| 18617 | echo "$as_me:$LINENO: result: $ECHO" >&5 |
| 18618 | echo "${ECHO_T}$ECHO" >&6 |
| 18619 | else |
| 18620 | echo "$as_me:$LINENO: result: no" >&5 |
| 18621 | echo "${ECHO_T}no" >&6 |
| 18622 | fi |
| 18623 | |
| 18624 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 18625 | set dummy mkdir; ac_word=$2 |
| 18626 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18627 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18628 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 18629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18630 | else |
| 18631 | case $MKDIR in |
| 18632 | [\\/]* | ?:[\\/]*) |
| 18633 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 18634 | ;; |
| 18635 | *) |
| 18636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18637 | for as_dir in $PATH |
| 18638 | do |
| 18639 | IFS=$as_save_IFS |
| 18640 | test -z "$as_dir" && as_dir=. |
| 18641 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18642 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18643 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
| 18644 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18645 | break 2 |
| 18646 | fi |
| 18647 | done |
| 18648 | done |
| 18649 | |
| 18650 | ;; |
| 18651 | esac |
| 18652 | fi |
| 18653 | MKDIR=$ac_cv_path_MKDIR |
| 18654 | |
| 18655 | if test -n "$MKDIR"; then |
| 18656 | echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 18657 | echo "${ECHO_T}$MKDIR" >&6 |
| 18658 | else |
| 18659 | echo "$as_me:$LINENO: result: no" >&5 |
| 18660 | echo "${ECHO_T}no" >&6 |
| 18661 | fi |
| 18662 | |
| 18663 | # Extract the first word of "date", so it can be a program name with args. |
| 18664 | set dummy date; ac_word=$2 |
| 18665 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18666 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18667 | if test "${ac_cv_path_DATE+set}" = set; then |
| 18668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18669 | else |
| 18670 | case $DATE in |
| 18671 | [\\/]* | ?:[\\/]*) |
| 18672 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 18673 | ;; |
| 18674 | *) |
| 18675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18676 | for as_dir in $PATH |
| 18677 | do |
| 18678 | IFS=$as_save_IFS |
| 18679 | test -z "$as_dir" && as_dir=. |
| 18680 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18681 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18682 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 18683 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18684 | break 2 |
| 18685 | fi |
| 18686 | done |
| 18687 | done |
| 18688 | |
| 18689 | ;; |
| 18690 | esac |
| 18691 | fi |
| 18692 | DATE=$ac_cv_path_DATE |
| 18693 | |
| 18694 | if test -n "$DATE"; then |
| 18695 | echo "$as_me:$LINENO: result: $DATE" >&5 |
| 18696 | echo "${ECHO_T}$DATE" >&6 |
| 18697 | else |
| 18698 | echo "$as_me:$LINENO: result: no" >&5 |
| 18699 | echo "${ECHO_T}no" >&6 |
| 18700 | fi |
| 18701 | |
| 18702 | # Extract the first word of "mv", so it can be a program name with args. |
| 18703 | set dummy mv; ac_word=$2 |
| 18704 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18705 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18706 | if test "${ac_cv_path_MV+set}" = set; then |
| 18707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18708 | else |
| 18709 | case $MV in |
| 18710 | [\\/]* | ?:[\\/]*) |
| 18711 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 18712 | ;; |
| 18713 | *) |
| 18714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18715 | for as_dir in $PATH |
| 18716 | do |
| 18717 | IFS=$as_save_IFS |
| 18718 | test -z "$as_dir" && as_dir=. |
| 18719 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18720 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18721 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 18722 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18723 | break 2 |
| 18724 | fi |
| 18725 | done |
| 18726 | done |
| 18727 | |
| 18728 | ;; |
| 18729 | esac |
| 18730 | fi |
| 18731 | MV=$ac_cv_path_MV |
| 18732 | |
| 18733 | if test -n "$MV"; then |
| 18734 | echo "$as_me:$LINENO: result: $MV" >&5 |
| 18735 | echo "${ECHO_T}$MV" >&6 |
| 18736 | else |
| 18737 | echo "$as_me:$LINENO: result: no" >&5 |
| 18738 | echo "${ECHO_T}no" >&6 |
| 18739 | fi |
| 18740 | |
| 18741 | # Extract the first word of "dot", so it can be a program name with args. |
| 18742 | set dummy dot; ac_word=$2 |
| 18743 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18744 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18745 | if test "${ac_cv_path_DOT+set}" = set; then |
| 18746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18747 | else |
| 18748 | case $DOT in |
| 18749 | [\\/]* | ?:[\\/]*) |
| 18750 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 18751 | ;; |
| 18752 | *) |
| 18753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18754 | for as_dir in $PATH |
| 18755 | do |
| 18756 | IFS=$as_save_IFS |
| 18757 | test -z "$as_dir" && as_dir=. |
| 18758 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18759 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18760 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 18761 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18762 | break 2 |
| 18763 | fi |
| 18764 | done |
| 18765 | done |
| 18766 | |
| 18767 | ;; |
| 18768 | esac |
| 18769 | fi |
| 18770 | DOT=$ac_cv_path_DOT |
| 18771 | |
| 18772 | if test -n "$DOT"; then |
| 18773 | echo "$as_me:$LINENO: result: $DOT" >&5 |
| 18774 | echo "${ECHO_T}$DOT" >&6 |
| 18775 | else |
| 18776 | echo "$as_me:$LINENO: result: no" >&5 |
| 18777 | echo "${ECHO_T}no" >&6 |
| 18778 | fi |
| 18779 | |
| 18780 | # Extract the first word of "etags", so it can be a program name with args. |
| 18781 | set dummy etags; ac_word=$2 |
| 18782 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18783 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18784 | if test "${ac_cv_path_ETAGS+set}" = set; then |
| 18785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18786 | else |
| 18787 | case $ETAGS in |
| 18788 | [\\/]* | ?:[\\/]*) |
| 18789 | ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. |
| 18790 | ;; |
| 18791 | *) |
| 18792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18793 | for as_dir in $PATH |
| 18794 | do |
| 18795 | IFS=$as_save_IFS |
| 18796 | test -z "$as_dir" && as_dir=. |
| 18797 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18798 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18799 | ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" |
| 18800 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18801 | break 2 |
| 18802 | fi |
| 18803 | done |
| 18804 | done |
| 18805 | |
| 18806 | ;; |
| 18807 | esac |
| 18808 | fi |
| 18809 | ETAGS=$ac_cv_path_ETAGS |
| 18810 | |
| 18811 | if test -n "$ETAGS"; then |
| 18812 | echo "$as_me:$LINENO: result: $ETAGS" >&5 |
| 18813 | echo "${ECHO_T}$ETAGS" >&6 |
| 18814 | else |
| 18815 | echo "$as_me:$LINENO: result: no" >&5 |
| 18816 | echo "${ECHO_T}no" >&6 |
| 18817 | fi |
| 18818 | |
| 18819 | # Extract the first word of "purify", so it can be a program name with args. |
| 18820 | set dummy purify; ac_word=$2 |
| 18821 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18822 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18823 | if test "${ac_cv_path_PURIFY+set}" = set; then |
| 18824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18825 | else |
| 18826 | case $PURIFY in |
| 18827 | [\\/]* | ?:[\\/]*) |
| 18828 | ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path. |
| 18829 | ;; |
| 18830 | *) |
| 18831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18832 | for as_dir in $PATH |
| 18833 | do |
| 18834 | IFS=$as_save_IFS |
| 18835 | test -z "$as_dir" && as_dir=. |
| 18836 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18837 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18838 | ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext" |
| 18839 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18840 | break 2 |
| 18841 | fi |
| 18842 | done |
| 18843 | done |
| 18844 | |
| 18845 | ;; |
| 18846 | esac |
| 18847 | fi |
| 18848 | PURIFY=$ac_cv_path_PURIFY |
| 18849 | |
| 18850 | if test -n "$PURIFY"; then |
| 18851 | echo "$as_me:$LINENO: result: $PURIFY" >&5 |
| 18852 | echo "${ECHO_T}$PURIFY" >&6 |
| 18853 | else |
| 18854 | echo "$as_me:$LINENO: result: no" >&5 |
| 18855 | echo "${ECHO_T}no" >&6 |
| 18856 | fi |
| 18857 | |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 18858 | # Extract the first word of "python", so it can be a program name with args. |
| 18859 | set dummy python; ac_word=$2 |
| 18860 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18861 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18862 | if test "${ac_cv_path_PYTHON+set}" = set; then |
| 18863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18864 | else |
| 18865 | case $PYTHON in |
| 18866 | [\\/]* | ?:[\\/]*) |
| 18867 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. |
| 18868 | ;; |
| 18869 | *) |
| 18870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18871 | for as_dir in $PATH |
| 18872 | do |
| 18873 | IFS=$as_save_IFS |
| 18874 | test -z "$as_dir" && as_dir=. |
| 18875 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18876 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18877 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" |
| 18878 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18879 | break 2 |
| 18880 | fi |
| 18881 | done |
| 18882 | done |
| 18883 | |
| 18884 | ;; |
| 18885 | esac |
| 18886 | fi |
| 18887 | PYTHON=$ac_cv_path_PYTHON |
| 18888 | |
| 18889 | if test -n "$PYTHON"; then |
| 18890 | echo "$as_me:$LINENO: result: $PYTHON" >&5 |
| 18891 | echo "${ECHO_T}$PYTHON" >&6 |
| 18892 | else |
| 18893 | echo "$as_me:$LINENO: result: no" >&5 |
| 18894 | echo "${ECHO_T}no" >&6 |
| 18895 | fi |
| 18896 | |
| 18897 | # Extract the first word of "qmtest", so it can be a program name with args. |
| 18898 | set dummy qmtest; ac_word=$2 |
| 18899 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18900 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18901 | if test "${ac_cv_path_QMTEST+set}" = set; then |
| 18902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18903 | else |
| 18904 | case $QMTEST in |
| 18905 | [\\/]* | ?:[\\/]*) |
| 18906 | ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path. |
| 18907 | ;; |
| 18908 | *) |
| 18909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18910 | for as_dir in $PATH |
| 18911 | do |
| 18912 | IFS=$as_save_IFS |
| 18913 | test -z "$as_dir" && as_dir=. |
| 18914 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18915 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18916 | ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext" |
| 18917 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18918 | break 2 |
| 18919 | fi |
| 18920 | done |
| 18921 | done |
| 18922 | |
| 18923 | ;; |
| 18924 | esac |
| 18925 | fi |
| 18926 | QMTEST=$ac_cv_path_QMTEST |
| 18927 | |
| 18928 | if test -n "$QMTEST"; then |
| 18929 | echo "$as_me:$LINENO: result: $QMTEST" >&5 |
| 18930 | echo "${ECHO_T}$QMTEST" >&6 |
| 18931 | else |
| 18932 | echo "$as_me:$LINENO: result: no" >&5 |
| 18933 | echo "${ECHO_T}no" >&6 |
| 18934 | fi |
| 18935 | |
| 18936 | |
| 18937 | pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2` |
| 18938 | pymajor=`echo $pyversion | cut -d. -f1` |
| 18939 | pyminor=`echo $pyversion | cut -d. -f2` |
| 18940 | |
| 18941 | if test "$pymajor" -ge "2" |
| 18942 | then |
| 18943 | if test "$pymajor" -eq "2" |
| 18944 | then |
| 18945 | if test "$pyminor" -lt "2" |
| 18946 | then |
| 18947 | { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5 |
| 18948 | echo "$as_me: error: Python 2.2 or greater required" >&2;} |
| 18949 | { (exit 1); exit 1; }; } |
| 18950 | fi |
| 18951 | fi |
| 18952 | else |
| 18953 | { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5 |
| 18954 | echo "$as_me: error: Python 2.2 or greater required" >&2;} |
| 18955 | { (exit 1); exit 1; }; } |
| 18956 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18957 | |
| 18958 | |
| 18959 | |
| 18960 | |
| 18961 | |
| 18962 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
| 18963 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 |
| 18964 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
| 18965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18966 | else |
| 18967 | ac_check_lib_save_LIBS=$LIBS |
| 18968 | LIBS="-lelf $LIBS" |
| 18969 | cat >conftest.$ac_ext <<_ACEOF |
| 18970 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18971 | /* confdefs.h. */ |
| 18972 | _ACEOF |
| 18973 | cat confdefs.h >>conftest.$ac_ext |
| 18974 | cat >>conftest.$ac_ext <<_ACEOF |
| 18975 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18976 | |
| 18977 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18978 | #ifdef __cplusplus |
| 18979 | extern "C" |
| 18980 | #endif |
| 18981 | /* We use char because int might match the return type of a gcc2 |
| 18982 | builtin and then its argument prototype would still apply. */ |
| 18983 | char elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18984 | int |
| 18985 | main () |
| 18986 | { |
| 18987 | elf_begin (); |
| 18988 | ; |
| 18989 | return 0; |
| 18990 | } |
| 18991 | _ACEOF |
| 18992 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18993 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18994 | (eval $ac_link) 2>&5 |
| 18995 | ac_status=$? |
| 18996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18997 | (exit $ac_status); } && |
| 18998 | { ac_try='test -s conftest$ac_exeext' |
| 18999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19000 | (eval $ac_try) 2>&5 |
| 19001 | ac_status=$? |
| 19002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19003 | (exit $ac_status); }; }; then |
| 19004 | ac_cv_lib_elf_elf_begin=yes |
| 19005 | else |
| 19006 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19008 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19009 | ac_cv_lib_elf_elf_begin=no |
| 19010 | fi |
| 19011 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 19012 | LIBS=$ac_check_lib_save_LIBS |
| 19013 | fi |
| 19014 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 19015 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 |
| 19016 | if test $ac_cv_lib_elf_elf_begin = yes; then |
| 19017 | cat >>confdefs.h <<_ACEOF |
| 19018 | #define HAVE_LIBELF 1 |
| 19019 | _ACEOF |
| 19020 | |
| 19021 | LIBS="-lelf $LIBS" |
| 19022 | |
| 19023 | fi |
| 19024 | |
| 19025 | |
| 19026 | echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 19027 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6 |
| 19028 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 19029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19030 | else |
| 19031 | ac_func_search_save_LIBS=$LIBS |
| 19032 | ac_cv_search_dlopen=no |
| 19033 | cat >conftest.$ac_ext <<_ACEOF |
| 19034 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19035 | /* confdefs.h. */ |
| 19036 | _ACEOF |
| 19037 | cat confdefs.h >>conftest.$ac_ext |
| 19038 | cat >>conftest.$ac_ext <<_ACEOF |
| 19039 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19040 | |
| 19041 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19042 | #ifdef __cplusplus |
| 19043 | extern "C" |
| 19044 | #endif |
| 19045 | /* We use char because int might match the return type of a gcc2 |
| 19046 | builtin and then its argument prototype would still apply. */ |
| 19047 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19048 | int |
| 19049 | main () |
| 19050 | { |
| 19051 | dlopen (); |
| 19052 | ; |
| 19053 | return 0; |
| 19054 | } |
| 19055 | _ACEOF |
| 19056 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19057 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19058 | (eval $ac_link) 2>&5 |
| 19059 | ac_status=$? |
| 19060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19061 | (exit $ac_status); } && |
| 19062 | { ac_try='test -s conftest$ac_exeext' |
| 19063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19064 | (eval $ac_try) 2>&5 |
| 19065 | ac_status=$? |
| 19066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19067 | (exit $ac_status); }; }; then |
| 19068 | ac_cv_search_dlopen="none required" |
| 19069 | else |
| 19070 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19072 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19073 | fi |
| 19074 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 19075 | if test "$ac_cv_search_dlopen" = no; then |
| 19076 | for ac_lib in dl; do |
| 19077 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 19078 | cat >conftest.$ac_ext <<_ACEOF |
| 19079 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19080 | /* confdefs.h. */ |
| 19081 | _ACEOF |
| 19082 | cat confdefs.h >>conftest.$ac_ext |
| 19083 | cat >>conftest.$ac_ext <<_ACEOF |
| 19084 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19085 | |
| 19086 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19087 | #ifdef __cplusplus |
| 19088 | extern "C" |
| 19089 | #endif |
| 19090 | /* We use char because int might match the return type of a gcc2 |
| 19091 | builtin and then its argument prototype would still apply. */ |
| 19092 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19093 | int |
| 19094 | main () |
| 19095 | { |
| 19096 | dlopen (); |
| 19097 | ; |
| 19098 | return 0; |
| 19099 | } |
| 19100 | _ACEOF |
| 19101 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19102 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19103 | (eval $ac_link) 2>&5 |
| 19104 | ac_status=$? |
| 19105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19106 | (exit $ac_status); } && |
| 19107 | { ac_try='test -s conftest$ac_exeext' |
| 19108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19109 | (eval $ac_try) 2>&5 |
| 19110 | ac_status=$? |
| 19111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19112 | (exit $ac_status); }; }; then |
| 19113 | ac_cv_search_dlopen="-l$ac_lib" |
| 19114 | break |
| 19115 | else |
| 19116 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19118 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19119 | fi |
| 19120 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 19121 | done |
| 19122 | fi |
| 19123 | LIBS=$ac_func_search_save_LIBS |
| 19124 | fi |
| 19125 | echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 19126 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6 |
| 19127 | if test "$ac_cv_search_dlopen" != no; then |
| 19128 | test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS" |
| 19129 | |
| 19130 | else |
| 19131 | { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5 |
| 19132 | echo "$as_me: error: dlopen() required but not found" >&2;} |
| 19133 | { (exit 1); exit 1; }; } |
| 19134 | fi |
| 19135 | |
| 19136 | |
| 19137 | echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 19138 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6 |
| 19139 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 19140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19141 | else |
| 19142 | ac_func_search_save_LIBS=$LIBS |
| 19143 | ac_cv_search_mallinfo=no |
| 19144 | cat >conftest.$ac_ext <<_ACEOF |
| 19145 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19146 | /* confdefs.h. */ |
| 19147 | _ACEOF |
| 19148 | cat confdefs.h >>conftest.$ac_ext |
| 19149 | cat >>conftest.$ac_ext <<_ACEOF |
| 19150 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19151 | |
| 19152 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19153 | #ifdef __cplusplus |
| 19154 | extern "C" |
| 19155 | #endif |
| 19156 | /* We use char because int might match the return type of a gcc2 |
| 19157 | builtin and then its argument prototype would still apply. */ |
| 19158 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19159 | int |
| 19160 | main () |
| 19161 | { |
| 19162 | mallinfo (); |
| 19163 | ; |
| 19164 | return 0; |
| 19165 | } |
| 19166 | _ACEOF |
| 19167 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19168 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19169 | (eval $ac_link) 2>&5 |
| 19170 | ac_status=$? |
| 19171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19172 | (exit $ac_status); } && |
| 19173 | { ac_try='test -s conftest$ac_exeext' |
| 19174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19175 | (eval $ac_try) 2>&5 |
| 19176 | ac_status=$? |
| 19177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19178 | (exit $ac_status); }; }; then |
| 19179 | ac_cv_search_mallinfo="none required" |
| 19180 | else |
| 19181 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19183 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19184 | fi |
| 19185 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 19186 | if test "$ac_cv_search_mallinfo" = no; then |
| 19187 | for ac_lib in malloc; do |
| 19188 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 19189 | cat >conftest.$ac_ext <<_ACEOF |
| 19190 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19191 | /* confdefs.h. */ |
| 19192 | _ACEOF |
| 19193 | cat confdefs.h >>conftest.$ac_ext |
| 19194 | cat >>conftest.$ac_ext <<_ACEOF |
| 19195 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19196 | |
| 19197 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19198 | #ifdef __cplusplus |
| 19199 | extern "C" |
| 19200 | #endif |
| 19201 | /* We use char because int might match the return type of a gcc2 |
| 19202 | builtin and then its argument prototype would still apply. */ |
| 19203 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19204 | int |
| 19205 | main () |
| 19206 | { |
| 19207 | mallinfo (); |
| 19208 | ; |
| 19209 | return 0; |
| 19210 | } |
| 19211 | _ACEOF |
| 19212 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19213 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19214 | (eval $ac_link) 2>&5 |
| 19215 | ac_status=$? |
| 19216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19217 | (exit $ac_status); } && |
| 19218 | { ac_try='test -s conftest$ac_exeext' |
| 19219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19220 | (eval $ac_try) 2>&5 |
| 19221 | ac_status=$? |
| 19222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19223 | (exit $ac_status); }; }; then |
| 19224 | ac_cv_search_mallinfo="-l$ac_lib" |
| 19225 | break |
| 19226 | else |
| 19227 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19229 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19230 | fi |
| 19231 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 19232 | done |
| 19233 | fi |
| 19234 | LIBS=$ac_func_search_save_LIBS |
| 19235 | fi |
| 19236 | echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 19237 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6 |
| 19238 | if test "$ac_cv_search_mallinfo" != no; then |
| 19239 | test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS" |
| 19240 | cat >>confdefs.h <<\_ACEOF |
| 19241 | #define HAVE_MALLINFO 1 |
| 19242 | _ACEOF |
| 19243 | |
| 19244 | fi |
| 19245 | |
| 19246 | |
| 19247 | |
| 19248 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 19249 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 19250 | if test "${ac_cv_header_stdc+set}" = set; then |
| 19251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19252 | else |
| 19253 | cat >conftest.$ac_ext <<_ACEOF |
| 19254 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19255 | /* confdefs.h. */ |
| 19256 | _ACEOF |
| 19257 | cat confdefs.h >>conftest.$ac_ext |
| 19258 | cat >>conftest.$ac_ext <<_ACEOF |
| 19259 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19260 | #include <stdlib.h> |
| 19261 | #include <stdarg.h> |
| 19262 | #include <string.h> |
| 19263 | #include <float.h> |
| 19264 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19265 | int |
| 19266 | main () |
| 19267 | { |
| 19268 | |
| 19269 | ; |
| 19270 | return 0; |
| 19271 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19272 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19273 | rm -f conftest.$ac_objext |
| 19274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19275 | (eval $ac_compile) 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19276 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19278 | (exit $ac_status); } && |
| 19279 | { ac_try='test -s conftest.$ac_objext' |
| 19280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19281 | (eval $ac_try) 2>&5 |
| 19282 | ac_status=$? |
| 19283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19284 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19285 | ac_cv_header_stdc=yes |
| 19286 | else |
| 19287 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19288 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19289 | |
| 19290 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19291 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19292 | rm -f conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19293 | |
| 19294 | if test $ac_cv_header_stdc = yes; then |
| 19295 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 19296 | cat >conftest.$ac_ext <<_ACEOF |
| 19297 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19298 | /* confdefs.h. */ |
| 19299 | _ACEOF |
| 19300 | cat confdefs.h >>conftest.$ac_ext |
| 19301 | cat >>conftest.$ac_ext <<_ACEOF |
| 19302 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19303 | #include <string.h> |
| 19304 | |
| 19305 | _ACEOF |
| 19306 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19307 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19308 | : |
| 19309 | else |
| 19310 | ac_cv_header_stdc=no |
| 19311 | fi |
| 19312 | rm -f conftest* |
| 19313 | |
| 19314 | fi |
| 19315 | |
| 19316 | if test $ac_cv_header_stdc = yes; then |
| 19317 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 19318 | cat >conftest.$ac_ext <<_ACEOF |
| 19319 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19320 | /* confdefs.h. */ |
| 19321 | _ACEOF |
| 19322 | cat confdefs.h >>conftest.$ac_ext |
| 19323 | cat >>conftest.$ac_ext <<_ACEOF |
| 19324 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19325 | #include <stdlib.h> |
| 19326 | |
| 19327 | _ACEOF |
| 19328 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19329 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19330 | : |
| 19331 | else |
| 19332 | ac_cv_header_stdc=no |
| 19333 | fi |
| 19334 | rm -f conftest* |
| 19335 | |
| 19336 | fi |
| 19337 | |
| 19338 | if test $ac_cv_header_stdc = yes; then |
| 19339 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 19340 | if test "$cross_compiling" = yes; then |
| 19341 | : |
| 19342 | else |
| 19343 | cat >conftest.$ac_ext <<_ACEOF |
| 19344 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19345 | /* confdefs.h. */ |
| 19346 | _ACEOF |
| 19347 | cat confdefs.h >>conftest.$ac_ext |
| 19348 | cat >>conftest.$ac_ext <<_ACEOF |
| 19349 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19350 | #include <ctype.h> |
| 19351 | #if ((' ' & 0x0FF) == 0x020) |
| 19352 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 19353 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 19354 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19355 | # define ISLOWER(c) \ |
| 19356 | (('a' <= (c) && (c) <= 'i') \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19357 | || ('j' <= (c) && (c) <= 'r') \ |
| 19358 | || ('s' <= (c) && (c) <= 'z')) |
| 19359 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 19360 | #endif |
| 19361 | |
| 19362 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 19363 | int |
| 19364 | main () |
| 19365 | { |
| 19366 | int i; |
| 19367 | for (i = 0; i < 256; i++) |
| 19368 | if (XOR (islower (i), ISLOWER (i)) |
| 19369 | || toupper (i) != TOUPPER (i)) |
| 19370 | exit(2); |
| 19371 | exit (0); |
| 19372 | } |
| 19373 | _ACEOF |
| 19374 | rm -f conftest$ac_exeext |
| 19375 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19376 | (eval $ac_link) 2>&5 |
| 19377 | ac_status=$? |
| 19378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19379 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19381 | (eval $ac_try) 2>&5 |
| 19382 | ac_status=$? |
| 19383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19384 | (exit $ac_status); }; }; then |
| 19385 | : |
| 19386 | else |
| 19387 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19388 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19390 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19391 | ( exit $ac_status ) |
| 19392 | ac_cv_header_stdc=no |
| 19393 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19394 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19395 | fi |
| 19396 | fi |
| 19397 | fi |
| 19398 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 19399 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 19400 | if test $ac_cv_header_stdc = yes; then |
| 19401 | |
| 19402 | cat >>confdefs.h <<\_ACEOF |
| 19403 | #define STDC_HEADERS 1 |
| 19404 | _ACEOF |
| 19405 | |
| 19406 | fi |
| 19407 | |
| 19408 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 19409 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
| 19410 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 19411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19412 | else |
| 19413 | cat >conftest.$ac_ext <<_ACEOF |
| 19414 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19415 | /* confdefs.h. */ |
| 19416 | _ACEOF |
| 19417 | cat confdefs.h >>conftest.$ac_ext |
| 19418 | cat >>conftest.$ac_ext <<_ACEOF |
| 19419 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19420 | #include <sys/types.h> |
| 19421 | #include <sys/wait.h> |
| 19422 | #ifndef WEXITSTATUS |
| 19423 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
| 19424 | #endif |
| 19425 | #ifndef WIFEXITED |
| 19426 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 19427 | #endif |
| 19428 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19429 | int |
| 19430 | main () |
| 19431 | { |
| 19432 | int s; |
| 19433 | wait (&s); |
| 19434 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 19435 | ; |
| 19436 | return 0; |
| 19437 | } |
| 19438 | _ACEOF |
| 19439 | rm -f conftest.$ac_objext |
| 19440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19441 | (eval $ac_compile) 2>&5 |
| 19442 | ac_status=$? |
| 19443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19444 | (exit $ac_status); } && |
| 19445 | { ac_try='test -s conftest.$ac_objext' |
| 19446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19447 | (eval $ac_try) 2>&5 |
| 19448 | ac_status=$? |
| 19449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19450 | (exit $ac_status); }; }; then |
| 19451 | ac_cv_header_sys_wait_h=yes |
| 19452 | else |
| 19453 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19455 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19456 | ac_cv_header_sys_wait_h=no |
| 19457 | fi |
| 19458 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19459 | fi |
| 19460 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 19461 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
| 19462 | if test $ac_cv_header_sys_wait_h = yes; then |
| 19463 | |
| 19464 | cat >>confdefs.h <<\_ACEOF |
| 19465 | #define HAVE_SYS_WAIT_H 1 |
| 19466 | _ACEOF |
| 19467 | |
| 19468 | fi |
| 19469 | |
| 19470 | |
| 19471 | |
| 19472 | |
| 19473 | |
| 19474 | |
| 19475 | |
| 19476 | |
| 19477 | |
| 19478 | |
| 19479 | for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h |
| 19480 | do |
| 19481 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19482 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19483 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19484 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 19485 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19487 | fi |
| 19488 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 19489 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 19490 | else |
| 19491 | # Is the header compilable? |
| 19492 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 19493 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 19494 | cat >conftest.$ac_ext <<_ACEOF |
| 19495 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19496 | /* confdefs.h. */ |
| 19497 | _ACEOF |
| 19498 | cat confdefs.h >>conftest.$ac_ext |
| 19499 | cat >>conftest.$ac_ext <<_ACEOF |
| 19500 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19501 | $ac_includes_default |
| 19502 | #include <$ac_header> |
| 19503 | _ACEOF |
| 19504 | rm -f conftest.$ac_objext |
| 19505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19506 | (eval $ac_compile) 2>&5 |
| 19507 | ac_status=$? |
| 19508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19509 | (exit $ac_status); } && |
| 19510 | { ac_try='test -s conftest.$ac_objext' |
| 19511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19512 | (eval $ac_try) 2>&5 |
| 19513 | ac_status=$? |
| 19514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19515 | (exit $ac_status); }; }; then |
| 19516 | ac_header_compiler=yes |
| 19517 | else |
| 19518 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19520 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19521 | ac_header_compiler=no |
| 19522 | fi |
| 19523 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19524 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19525 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 19526 | |
| 19527 | # Is the header present? |
| 19528 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 19529 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 19530 | cat >conftest.$ac_ext <<_ACEOF |
| 19531 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19532 | /* confdefs.h. */ |
| 19533 | _ACEOF |
| 19534 | cat confdefs.h >>conftest.$ac_ext |
| 19535 | cat >>conftest.$ac_ext <<_ACEOF |
| 19536 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19537 | #include <$ac_header> |
| 19538 | _ACEOF |
| 19539 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 19540 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 19541 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19542 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19543 | rm -f conftest.er1 |
| 19544 | cat conftest.err >&5 |
| 19545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19546 | (exit $ac_status); } >/dev/null; then |
| 19547 | if test -s conftest.err; then |
| 19548 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 19549 | else |
| 19550 | ac_cpp_err= |
| 19551 | fi |
| 19552 | else |
| 19553 | ac_cpp_err=yes |
| 19554 | fi |
| 19555 | if test -z "$ac_cpp_err"; then |
| 19556 | ac_header_preproc=yes |
| 19557 | else |
| 19558 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19559 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19560 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19561 | ac_header_preproc=no |
| 19562 | fi |
| 19563 | rm -f conftest.err conftest.$ac_ext |
| 19564 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 19565 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 19566 | |
| 19567 | # So? What about this header? |
| 19568 | case $ac_header_compiler:$ac_header_preproc in |
| 19569 | yes:no ) |
| 19570 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 19571 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 19572 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19573 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19574 | ( |
| 19575 | cat <<\_ASBOX |
| 19576 | ## ------------------------------------ ## |
| 19577 | ## Report this to bug-autoconf@gnu.org. ## |
| 19578 | ## ------------------------------------ ## |
| 19579 | _ASBOX |
| 19580 | ) | |
| 19581 | sed "s/^/$as_me: WARNING: /" >&2 |
| 19582 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19583 | no:yes ) |
| 19584 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 19585 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 19586 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 19587 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 19588 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19589 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19590 | ( |
| 19591 | cat <<\_ASBOX |
| 19592 | ## ------------------------------------ ## |
| 19593 | ## Report this to bug-autoconf@gnu.org. ## |
| 19594 | ## ------------------------------------ ## |
| 19595 | _ASBOX |
| 19596 | ) | |
| 19597 | sed "s/^/$as_me: WARNING: /" >&2 |
| 19598 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19599 | esac |
| 19600 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19601 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 19602 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19604 | else |
| 19605 | eval "$as_ac_Header=$ac_header_preproc" |
| 19606 | fi |
| 19607 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 19608 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 19609 | |
| 19610 | fi |
| 19611 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 19612 | cat >>confdefs.h <<_ACEOF |
| 19613 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 19614 | _ACEOF |
| 19615 | |
| 19616 | fi |
| 19617 | |
| 19618 | done |
| 19619 | |
| 19620 | |
| 19621 | |
| 19622 | |
| 19623 | |
| 19624 | |
| 19625 | for ac_header in malloc.h strings.h sys/mman.h sys/resource.h |
| 19626 | do |
| 19627 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19628 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19629 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19630 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 19631 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19633 | fi |
| 19634 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 19635 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 19636 | else |
| 19637 | # Is the header compilable? |
| 19638 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 19639 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 19640 | cat >conftest.$ac_ext <<_ACEOF |
| 19641 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19642 | /* confdefs.h. */ |
| 19643 | _ACEOF |
| 19644 | cat confdefs.h >>conftest.$ac_ext |
| 19645 | cat >>conftest.$ac_ext <<_ACEOF |
| 19646 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19647 | $ac_includes_default |
| 19648 | #include <$ac_header> |
| 19649 | _ACEOF |
| 19650 | rm -f conftest.$ac_objext |
| 19651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19652 | (eval $ac_compile) 2>&5 |
| 19653 | ac_status=$? |
| 19654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19655 | (exit $ac_status); } && |
| 19656 | { ac_try='test -s conftest.$ac_objext' |
| 19657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19658 | (eval $ac_try) 2>&5 |
| 19659 | ac_status=$? |
| 19660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19661 | (exit $ac_status); }; }; then |
| 19662 | ac_header_compiler=yes |
| 19663 | else |
| 19664 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19666 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19667 | ac_header_compiler=no |
| 19668 | fi |
| 19669 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19670 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19671 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 19672 | |
| 19673 | # Is the header present? |
| 19674 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 19675 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 19676 | cat >conftest.$ac_ext <<_ACEOF |
| 19677 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19678 | /* confdefs.h. */ |
| 19679 | _ACEOF |
| 19680 | cat confdefs.h >>conftest.$ac_ext |
| 19681 | cat >>conftest.$ac_ext <<_ACEOF |
| 19682 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19683 | #include <$ac_header> |
| 19684 | _ACEOF |
| 19685 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 19686 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 19687 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19688 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19689 | rm -f conftest.er1 |
| 19690 | cat conftest.err >&5 |
| 19691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19692 | (exit $ac_status); } >/dev/null; then |
| 19693 | if test -s conftest.err; then |
| 19694 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 19695 | else |
| 19696 | ac_cpp_err= |
| 19697 | fi |
| 19698 | else |
| 19699 | ac_cpp_err=yes |
| 19700 | fi |
| 19701 | if test -z "$ac_cpp_err"; then |
| 19702 | ac_header_preproc=yes |
| 19703 | else |
| 19704 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19706 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19707 | ac_header_preproc=no |
| 19708 | fi |
| 19709 | rm -f conftest.err conftest.$ac_ext |
| 19710 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 19711 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 19712 | |
| 19713 | # So? What about this header? |
| 19714 | case $ac_header_compiler:$ac_header_preproc in |
| 19715 | yes:no ) |
| 19716 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 19717 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 19718 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19719 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19720 | ( |
| 19721 | cat <<\_ASBOX |
| 19722 | ## ------------------------------------ ## |
| 19723 | ## Report this to bug-autoconf@gnu.org. ## |
| 19724 | ## ------------------------------------ ## |
| 19725 | _ASBOX |
| 19726 | ) | |
| 19727 | sed "s/^/$as_me: WARNING: /" >&2 |
| 19728 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19729 | no:yes ) |
| 19730 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 19731 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 19732 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 19733 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 19734 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19735 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19736 | ( |
| 19737 | cat <<\_ASBOX |
| 19738 | ## ------------------------------------ ## |
| 19739 | ## Report this to bug-autoconf@gnu.org. ## |
| 19740 | ## ------------------------------------ ## |
| 19741 | _ASBOX |
| 19742 | ) | |
| 19743 | sed "s/^/$as_me: WARNING: /" >&2 |
| 19744 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19745 | esac |
| 19746 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19747 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 19748 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19750 | else |
| 19751 | eval "$as_ac_Header=$ac_header_preproc" |
| 19752 | fi |
| 19753 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 19754 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 19755 | |
| 19756 | fi |
| 19757 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 19758 | cat >>confdefs.h <<_ACEOF |
| 19759 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 19760 | _ACEOF |
| 19761 | |
| 19762 | fi |
| 19763 | |
| 19764 | done |
| 19765 | |
| 19766 | |
| 19767 | |
| 19768 | |
| 19769 | for ac_header in dlfcn.h link.h |
| 19770 | do |
| 19771 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19772 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19773 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19774 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 19775 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19777 | fi |
| 19778 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 19779 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 19780 | else |
| 19781 | # Is the header compilable? |
| 19782 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 19783 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 19784 | cat >conftest.$ac_ext <<_ACEOF |
| 19785 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19786 | /* confdefs.h. */ |
| 19787 | _ACEOF |
| 19788 | cat confdefs.h >>conftest.$ac_ext |
| 19789 | cat >>conftest.$ac_ext <<_ACEOF |
| 19790 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19791 | $ac_includes_default |
| 19792 | #include <$ac_header> |
| 19793 | _ACEOF |
| 19794 | rm -f conftest.$ac_objext |
| 19795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19796 | (eval $ac_compile) 2>&5 |
| 19797 | ac_status=$? |
| 19798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19799 | (exit $ac_status); } && |
| 19800 | { ac_try='test -s conftest.$ac_objext' |
| 19801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19802 | (eval $ac_try) 2>&5 |
| 19803 | ac_status=$? |
| 19804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19805 | (exit $ac_status); }; }; then |
| 19806 | ac_header_compiler=yes |
| 19807 | else |
| 19808 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19810 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19811 | ac_header_compiler=no |
| 19812 | fi |
| 19813 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19814 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19815 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 19816 | |
| 19817 | # Is the header present? |
| 19818 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 19819 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 19820 | cat >conftest.$ac_ext <<_ACEOF |
| 19821 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19822 | /* confdefs.h. */ |
| 19823 | _ACEOF |
| 19824 | cat confdefs.h >>conftest.$ac_ext |
| 19825 | cat >>conftest.$ac_ext <<_ACEOF |
| 19826 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19827 | #include <$ac_header> |
| 19828 | _ACEOF |
| 19829 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 19830 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 19831 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19832 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19833 | rm -f conftest.er1 |
| 19834 | cat conftest.err >&5 |
| 19835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19836 | (exit $ac_status); } >/dev/null; then |
| 19837 | if test -s conftest.err; then |
| 19838 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 19839 | else |
| 19840 | ac_cpp_err= |
| 19841 | fi |
| 19842 | else |
| 19843 | ac_cpp_err=yes |
| 19844 | fi |
| 19845 | if test -z "$ac_cpp_err"; then |
| 19846 | ac_header_preproc=yes |
| 19847 | else |
| 19848 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19849 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19850 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19851 | ac_header_preproc=no |
| 19852 | fi |
| 19853 | rm -f conftest.err conftest.$ac_ext |
| 19854 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 19855 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 19856 | |
| 19857 | # So? What about this header? |
| 19858 | case $ac_header_compiler:$ac_header_preproc in |
| 19859 | yes:no ) |
| 19860 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 19861 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 19862 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19863 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19864 | ( |
| 19865 | cat <<\_ASBOX |
| 19866 | ## ------------------------------------ ## |
| 19867 | ## Report this to bug-autoconf@gnu.org. ## |
| 19868 | ## ------------------------------------ ## |
| 19869 | _ASBOX |
| 19870 | ) | |
| 19871 | sed "s/^/$as_me: WARNING: /" >&2 |
| 19872 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19873 | no:yes ) |
| 19874 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 19875 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 19876 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 19877 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 19878 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19879 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19880 | ( |
| 19881 | cat <<\_ASBOX |
| 19882 | ## ------------------------------------ ## |
| 19883 | ## Report this to bug-autoconf@gnu.org. ## |
| 19884 | ## ------------------------------------ ## |
| 19885 | _ASBOX |
| 19886 | ) | |
| 19887 | sed "s/^/$as_me: WARNING: /" >&2 |
| 19888 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19889 | esac |
| 19890 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19891 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 19892 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 19893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19894 | else |
| 19895 | eval "$as_ac_Header=$ac_header_preproc" |
| 19896 | fi |
| 19897 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 19898 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 19899 | |
| 19900 | fi |
| 19901 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 19902 | cat >>confdefs.h <<_ACEOF |
| 19903 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 19904 | _ACEOF |
| 19905 | |
| 19906 | fi |
| 19907 | |
| 19908 | done |
| 19909 | |
| 19910 | |
| 19911 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19912 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 19913 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 19914 | if test "${ac_cv_c_const+set}" = set; then |
| 19915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19916 | else |
| 19917 | cat >conftest.$ac_ext <<_ACEOF |
| 19918 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19919 | /* confdefs.h. */ |
| 19920 | _ACEOF |
| 19921 | cat confdefs.h >>conftest.$ac_ext |
| 19922 | cat >>conftest.$ac_ext <<_ACEOF |
| 19923 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19924 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19925 | int |
| 19926 | main () |
| 19927 | { |
| 19928 | /* FIXME: Include the comments suggested by Paul. */ |
| 19929 | #ifndef __cplusplus |
| 19930 | /* Ultrix mips cc rejects this. */ |
| 19931 | typedef int charset[2]; |
| 19932 | const charset x; |
| 19933 | /* SunOS 4.1.1 cc rejects this. */ |
| 19934 | char const *const *ccp; |
| 19935 | char **p; |
| 19936 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 19937 | struct point {int x, y;}; |
| 19938 | static struct point const zero = {0,0}; |
| 19939 | /* AIX XL C 1.02.0.0 rejects this. |
| 19940 | It does not let you subtract one const X* pointer from another in |
| 19941 | an arm of an if-expression whose if-part is not a constant |
| 19942 | expression */ |
| 19943 | const char *g = "string"; |
| 19944 | ccp = &g + (g ? g-g : 0); |
| 19945 | /* HPUX 7.0 cc rejects these. */ |
| 19946 | ++ccp; |
| 19947 | p = (char**) ccp; |
| 19948 | ccp = (char const *const *) p; |
| 19949 | { /* SCO 3.2v4 cc rejects this. */ |
| 19950 | char *t; |
| 19951 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 19952 | |
| 19953 | *t++ = 0; |
| 19954 | } |
| 19955 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 19956 | int x[] = {25, 17}; |
| 19957 | const int *foo = &x[0]; |
| 19958 | ++foo; |
| 19959 | } |
| 19960 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 19961 | typedef const int *iptr; |
| 19962 | iptr p = 0; |
| 19963 | ++p; |
| 19964 | } |
| 19965 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 19966 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 19967 | struct s { int j; const int *ap[3]; }; |
| 19968 | struct s *b; b->j = 5; |
| 19969 | } |
| 19970 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 19971 | const int foo = 10; |
| 19972 | } |
| 19973 | #endif |
| 19974 | |
| 19975 | ; |
| 19976 | return 0; |
| 19977 | } |
| 19978 | _ACEOF |
| 19979 | rm -f conftest.$ac_objext |
| 19980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19981 | (eval $ac_compile) 2>&5 |
| 19982 | ac_status=$? |
| 19983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19984 | (exit $ac_status); } && |
| 19985 | { ac_try='test -s conftest.$ac_objext' |
| 19986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19987 | (eval $ac_try) 2>&5 |
| 19988 | ac_status=$? |
| 19989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19990 | (exit $ac_status); }; }; then |
| 19991 | ac_cv_c_const=yes |
| 19992 | else |
| 19993 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19995 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19996 | ac_cv_c_const=no |
| 19997 | fi |
| 19998 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 19999 | fi |
| 20000 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 20001 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 20002 | if test $ac_cv_c_const = no; then |
| 20003 | |
| 20004 | cat >>confdefs.h <<\_ACEOF |
| 20005 | #define const |
| 20006 | _ACEOF |
| 20007 | |
| 20008 | fi |
| 20009 | |
| 20010 | echo "$as_me:$LINENO: checking for inline" >&5 |
| 20011 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 20012 | if test "${ac_cv_c_inline+set}" = set; then |
| 20013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20014 | else |
| 20015 | ac_cv_c_inline=no |
| 20016 | for ac_kw in inline __inline__ __inline; do |
| 20017 | cat >conftest.$ac_ext <<_ACEOF |
| 20018 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20019 | /* confdefs.h. */ |
| 20020 | _ACEOF |
| 20021 | cat confdefs.h >>conftest.$ac_ext |
| 20022 | cat >>conftest.$ac_ext <<_ACEOF |
| 20023 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20024 | #ifndef __cplusplus |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20025 | typedef int foo_t; |
| 20026 | static $ac_kw foo_t static_foo () {return 0; } |
| 20027 | $ac_kw foo_t foo () {return 0; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20028 | #endif |
| 20029 | |
| 20030 | _ACEOF |
| 20031 | rm -f conftest.$ac_objext |
| 20032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20033 | (eval $ac_compile) 2>&5 |
| 20034 | ac_status=$? |
| 20035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20036 | (exit $ac_status); } && |
| 20037 | { ac_try='test -s conftest.$ac_objext' |
| 20038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20039 | (eval $ac_try) 2>&5 |
| 20040 | ac_status=$? |
| 20041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20042 | (exit $ac_status); }; }; then |
| 20043 | ac_cv_c_inline=$ac_kw; break |
| 20044 | else |
| 20045 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20046 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20047 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20048 | fi |
| 20049 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20050 | done |
| 20051 | |
| 20052 | fi |
| 20053 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 20054 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
| 20055 | case $ac_cv_c_inline in |
| 20056 | inline | yes) ;; |
| 20057 | no) |
| 20058 | cat >>confdefs.h <<\_ACEOF |
| 20059 | #define inline |
| 20060 | _ACEOF |
| 20061 | ;; |
| 20062 | *) cat >>confdefs.h <<_ACEOF |
| 20063 | #define inline $ac_cv_c_inline |
| 20064 | _ACEOF |
| 20065 | ;; |
| 20066 | esac |
| 20067 | |
| 20068 | |
| 20069 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 20070 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 20071 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 20072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20073 | else |
| 20074 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 20075 | cat >conftest.$ac_ext <<_ACEOF |
| 20076 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20077 | /* confdefs.h. */ |
| 20078 | _ACEOF |
| 20079 | cat confdefs.h >>conftest.$ac_ext |
| 20080 | cat >>conftest.$ac_ext <<_ACEOF |
| 20081 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20082 | #include <sys/types.h> |
| 20083 | #include <sys/param.h> |
| 20084 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20085 | int |
| 20086 | main () |
| 20087 | { |
| 20088 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 20089 | bogus endian macros |
| 20090 | #endif |
| 20091 | |
| 20092 | ; |
| 20093 | return 0; |
| 20094 | } |
| 20095 | _ACEOF |
| 20096 | rm -f conftest.$ac_objext |
| 20097 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20098 | (eval $ac_compile) 2>&5 |
| 20099 | ac_status=$? |
| 20100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20101 | (exit $ac_status); } && |
| 20102 | { ac_try='test -s conftest.$ac_objext' |
| 20103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20104 | (eval $ac_try) 2>&5 |
| 20105 | ac_status=$? |
| 20106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20107 | (exit $ac_status); }; }; then |
| 20108 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 20109 | cat >conftest.$ac_ext <<_ACEOF |
| 20110 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20111 | /* confdefs.h. */ |
| 20112 | _ACEOF |
| 20113 | cat confdefs.h >>conftest.$ac_ext |
| 20114 | cat >>conftest.$ac_ext <<_ACEOF |
| 20115 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20116 | #include <sys/types.h> |
| 20117 | #include <sys/param.h> |
| 20118 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20119 | int |
| 20120 | main () |
| 20121 | { |
| 20122 | #if BYTE_ORDER != BIG_ENDIAN |
| 20123 | not big endian |
| 20124 | #endif |
| 20125 | |
| 20126 | ; |
| 20127 | return 0; |
| 20128 | } |
| 20129 | _ACEOF |
| 20130 | rm -f conftest.$ac_objext |
| 20131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20132 | (eval $ac_compile) 2>&5 |
| 20133 | ac_status=$? |
| 20134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20135 | (exit $ac_status); } && |
| 20136 | { ac_try='test -s conftest.$ac_objext' |
| 20137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20138 | (eval $ac_try) 2>&5 |
| 20139 | ac_status=$? |
| 20140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20141 | (exit $ac_status); }; }; then |
| 20142 | ac_cv_c_bigendian=yes |
| 20143 | else |
| 20144 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20146 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20147 | ac_cv_c_bigendian=no |
| 20148 | fi |
| 20149 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20150 | else |
| 20151 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20153 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20154 | # It does not; compile a test program. |
| 20155 | if test "$cross_compiling" = yes; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20156 | # try to guess the endianness by grepping values into an object file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20157 | ac_cv_c_bigendian=unknown |
| 20158 | cat >conftest.$ac_ext <<_ACEOF |
| 20159 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20160 | /* confdefs.h. */ |
| 20161 | _ACEOF |
| 20162 | cat confdefs.h >>conftest.$ac_ext |
| 20163 | cat >>conftest.$ac_ext <<_ACEOF |
| 20164 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20165 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 20166 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 20167 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 20168 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 20169 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 20170 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20171 | int |
| 20172 | main () |
| 20173 | { |
| 20174 | _ascii (); _ebcdic (); |
| 20175 | ; |
| 20176 | return 0; |
| 20177 | } |
| 20178 | _ACEOF |
| 20179 | rm -f conftest.$ac_objext |
| 20180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20181 | (eval $ac_compile) 2>&5 |
| 20182 | ac_status=$? |
| 20183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20184 | (exit $ac_status); } && |
| 20185 | { ac_try='test -s conftest.$ac_objext' |
| 20186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20187 | (eval $ac_try) 2>&5 |
| 20188 | ac_status=$? |
| 20189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20190 | (exit $ac_status); }; }; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20191 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20192 | ac_cv_c_bigendian=yes |
| 20193 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20194 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20195 | if test "$ac_cv_c_bigendian" = unknown; then |
| 20196 | ac_cv_c_bigendian=no |
| 20197 | else |
| 20198 | # finding both strings is unlikely to happen, but who knows? |
| 20199 | ac_cv_c_bigendian=unknown |
| 20200 | fi |
| 20201 | fi |
| 20202 | else |
| 20203 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20205 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20206 | fi |
| 20207 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20208 | else |
| 20209 | cat >conftest.$ac_ext <<_ACEOF |
| 20210 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20211 | /* confdefs.h. */ |
| 20212 | _ACEOF |
| 20213 | cat confdefs.h >>conftest.$ac_ext |
| 20214 | cat >>conftest.$ac_ext <<_ACEOF |
| 20215 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20216 | int |
| 20217 | main () |
| 20218 | { |
| 20219 | /* Are we little or big endian? From Harbison&Steele. */ |
| 20220 | union |
| 20221 | { |
| 20222 | long l; |
| 20223 | char c[sizeof (long)]; |
| 20224 | } u; |
| 20225 | u.l = 1; |
| 20226 | exit (u.c[sizeof (long) - 1] == 1); |
| 20227 | } |
| 20228 | _ACEOF |
| 20229 | rm -f conftest$ac_exeext |
| 20230 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20231 | (eval $ac_link) 2>&5 |
| 20232 | ac_status=$? |
| 20233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20234 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20236 | (eval $ac_try) 2>&5 |
| 20237 | ac_status=$? |
| 20238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20239 | (exit $ac_status); }; }; then |
| 20240 | ac_cv_c_bigendian=no |
| 20241 | else |
| 20242 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20243 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20245 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20246 | ( exit $ac_status ) |
| 20247 | ac_cv_c_bigendian=yes |
| 20248 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20249 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20250 | fi |
| 20251 | fi |
| 20252 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20253 | fi |
| 20254 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 20255 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 20256 | case $ac_cv_c_bigendian in |
| 20257 | yes) |
| 20258 | cat >>confdefs.h <<\_ACEOF |
| 20259 | #define ENDIAN_BIG 1 |
| 20260 | _ACEOF |
| 20261 | ;; |
| 20262 | no) |
| 20263 | cat >>confdefs.h <<\_ACEOF |
| 20264 | #define ENDIAN_LITTLE 1 |
| 20265 | _ACEOF |
| 20266 | ;; |
| 20267 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20268 | { { echo "$as_me:$LINENO: error: unknown endianness |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20269 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20270 | echo "$as_me: error: unknown endianness |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20271 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 20272 | { (exit 1); exit 1; }; } ;; |
| 20273 | esac |
| 20274 | |
| 20275 | |
| 20276 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 20277 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 20278 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 20279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20280 | else |
| 20281 | cat >conftest.$ac_ext <<_ACEOF |
| 20282 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20283 | /* confdefs.h. */ |
| 20284 | _ACEOF |
| 20285 | cat confdefs.h >>conftest.$ac_ext |
| 20286 | cat >>conftest.$ac_ext <<_ACEOF |
| 20287 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20288 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20289 | int |
| 20290 | main () |
| 20291 | { |
| 20292 | if ((pid_t *) 0) |
| 20293 | return 0; |
| 20294 | if (sizeof (pid_t)) |
| 20295 | return 0; |
| 20296 | ; |
| 20297 | return 0; |
| 20298 | } |
| 20299 | _ACEOF |
| 20300 | rm -f conftest.$ac_objext |
| 20301 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20302 | (eval $ac_compile) 2>&5 |
| 20303 | ac_status=$? |
| 20304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20305 | (exit $ac_status); } && |
| 20306 | { ac_try='test -s conftest.$ac_objext' |
| 20307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20308 | (eval $ac_try) 2>&5 |
| 20309 | ac_status=$? |
| 20310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20311 | (exit $ac_status); }; }; then |
| 20312 | ac_cv_type_pid_t=yes |
| 20313 | else |
| 20314 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20316 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20317 | ac_cv_type_pid_t=no |
| 20318 | fi |
| 20319 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20320 | fi |
| 20321 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 20322 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 20323 | if test $ac_cv_type_pid_t = yes; then |
| 20324 | : |
| 20325 | else |
| 20326 | |
| 20327 | cat >>confdefs.h <<_ACEOF |
| 20328 | #define pid_t int |
| 20329 | _ACEOF |
| 20330 | |
| 20331 | fi |
| 20332 | |
| 20333 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 20334 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 20335 | if test "${ac_cv_type_size_t+set}" = set; then |
| 20336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20337 | else |
| 20338 | cat >conftest.$ac_ext <<_ACEOF |
| 20339 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20340 | /* confdefs.h. */ |
| 20341 | _ACEOF |
| 20342 | cat confdefs.h >>conftest.$ac_ext |
| 20343 | cat >>conftest.$ac_ext <<_ACEOF |
| 20344 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20345 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20346 | int |
| 20347 | main () |
| 20348 | { |
| 20349 | if ((size_t *) 0) |
| 20350 | return 0; |
| 20351 | if (sizeof (size_t)) |
| 20352 | return 0; |
| 20353 | ; |
| 20354 | return 0; |
| 20355 | } |
| 20356 | _ACEOF |
| 20357 | rm -f conftest.$ac_objext |
| 20358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20359 | (eval $ac_compile) 2>&5 |
| 20360 | ac_status=$? |
| 20361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20362 | (exit $ac_status); } && |
| 20363 | { ac_try='test -s conftest.$ac_objext' |
| 20364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20365 | (eval $ac_try) 2>&5 |
| 20366 | ac_status=$? |
| 20367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20368 | (exit $ac_status); }; }; then |
| 20369 | ac_cv_type_size_t=yes |
| 20370 | else |
| 20371 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20372 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20373 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20374 | ac_cv_type_size_t=no |
| 20375 | fi |
| 20376 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20377 | fi |
| 20378 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 20379 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 20380 | if test $ac_cv_type_size_t = yes; then |
| 20381 | : |
| 20382 | else |
| 20383 | |
| 20384 | cat >>confdefs.h <<_ACEOF |
| 20385 | #define size_t unsigned |
| 20386 | _ACEOF |
| 20387 | |
| 20388 | fi |
| 20389 | |
| 20390 | echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 20391 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 |
| 20392 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 20393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20394 | else |
| 20395 | cat >conftest.$ac_ext <<_ACEOF |
| 20396 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20397 | /* confdefs.h. */ |
| 20398 | _ACEOF |
| 20399 | cat confdefs.h >>conftest.$ac_ext |
| 20400 | cat >>conftest.$ac_ext <<_ACEOF |
| 20401 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20402 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20403 | int |
| 20404 | main () |
| 20405 | { |
| 20406 | if ((int64_t *) 0) |
| 20407 | return 0; |
| 20408 | if (sizeof (int64_t)) |
| 20409 | return 0; |
| 20410 | ; |
| 20411 | return 0; |
| 20412 | } |
| 20413 | _ACEOF |
| 20414 | rm -f conftest.$ac_objext |
| 20415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20416 | (eval $ac_compile) 2>&5 |
| 20417 | ac_status=$? |
| 20418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20419 | (exit $ac_status); } && |
| 20420 | { ac_try='test -s conftest.$ac_objext' |
| 20421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20422 | (eval $ac_try) 2>&5 |
| 20423 | ac_status=$? |
| 20424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20425 | (exit $ac_status); }; }; then |
| 20426 | ac_cv_type_int64_t=yes |
| 20427 | else |
| 20428 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20429 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20430 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20431 | ac_cv_type_int64_t=no |
| 20432 | fi |
| 20433 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20434 | fi |
| 20435 | echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 20436 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6 |
| 20437 | if test $ac_cv_type_int64_t = yes; then |
| 20438 | |
| 20439 | cat >>confdefs.h <<_ACEOF |
| 20440 | #define HAVE_INT64_T 1 |
| 20441 | _ACEOF |
| 20442 | |
| 20443 | |
| 20444 | else |
| 20445 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 20446 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 20447 | { (exit 1); exit 1; }; } |
| 20448 | fi |
| 20449 | |
| 20450 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 20451 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 |
| 20452 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 20453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20454 | else |
| 20455 | cat >conftest.$ac_ext <<_ACEOF |
| 20456 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20457 | /* confdefs.h. */ |
| 20458 | _ACEOF |
| 20459 | cat confdefs.h >>conftest.$ac_ext |
| 20460 | cat >>conftest.$ac_ext <<_ACEOF |
| 20461 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20462 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20463 | int |
| 20464 | main () |
| 20465 | { |
| 20466 | if ((uint64_t *) 0) |
| 20467 | return 0; |
| 20468 | if (sizeof (uint64_t)) |
| 20469 | return 0; |
| 20470 | ; |
| 20471 | return 0; |
| 20472 | } |
| 20473 | _ACEOF |
| 20474 | rm -f conftest.$ac_objext |
| 20475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20476 | (eval $ac_compile) 2>&5 |
| 20477 | ac_status=$? |
| 20478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20479 | (exit $ac_status); } && |
| 20480 | { ac_try='test -s conftest.$ac_objext' |
| 20481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20482 | (eval $ac_try) 2>&5 |
| 20483 | ac_status=$? |
| 20484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20485 | (exit $ac_status); }; }; then |
| 20486 | ac_cv_type_uint64_t=yes |
| 20487 | else |
| 20488 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20490 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20491 | ac_cv_type_uint64_t=no |
| 20492 | fi |
| 20493 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20494 | fi |
| 20495 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 20496 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 |
| 20497 | if test $ac_cv_type_uint64_t = yes; then |
| 20498 | |
| 20499 | cat >>confdefs.h <<_ACEOF |
| 20500 | #define HAVE_UINT64_T 1 |
| 20501 | _ACEOF |
| 20502 | |
| 20503 | |
| 20504 | else |
| 20505 | { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5 |
| 20506 | echo "$as_me: error: Type uint64_t required but not found" >&2;} |
| 20507 | { (exit 1); exit 1; }; } |
| 20508 | fi |
| 20509 | |
| 20510 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 20511 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 20512 | if test "${ac_cv_header_time+set}" = set; then |
| 20513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20514 | else |
| 20515 | cat >conftest.$ac_ext <<_ACEOF |
| 20516 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20517 | /* confdefs.h. */ |
| 20518 | _ACEOF |
| 20519 | cat confdefs.h >>conftest.$ac_ext |
| 20520 | cat >>conftest.$ac_ext <<_ACEOF |
| 20521 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20522 | #include <sys/types.h> |
| 20523 | #include <sys/time.h> |
| 20524 | #include <time.h> |
| 20525 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20526 | int |
| 20527 | main () |
| 20528 | { |
| 20529 | if ((struct tm *) 0) |
| 20530 | return 0; |
| 20531 | ; |
| 20532 | return 0; |
| 20533 | } |
| 20534 | _ACEOF |
| 20535 | rm -f conftest.$ac_objext |
| 20536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20537 | (eval $ac_compile) 2>&5 |
| 20538 | ac_status=$? |
| 20539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20540 | (exit $ac_status); } && |
| 20541 | { ac_try='test -s conftest.$ac_objext' |
| 20542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20543 | (eval $ac_try) 2>&5 |
| 20544 | ac_status=$? |
| 20545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20546 | (exit $ac_status); }; }; then |
| 20547 | ac_cv_header_time=yes |
| 20548 | else |
| 20549 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20551 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20552 | ac_cv_header_time=no |
| 20553 | fi |
| 20554 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20555 | fi |
| 20556 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 20557 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
| 20558 | if test $ac_cv_header_time = yes; then |
| 20559 | |
| 20560 | cat >>confdefs.h <<\_ACEOF |
| 20561 | #define TIME_WITH_SYS_TIME 1 |
| 20562 | _ACEOF |
| 20563 | |
| 20564 | fi |
| 20565 | |
| 20566 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 20567 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 20568 | if test "${ac_cv_struct_tm+set}" = set; then |
| 20569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20570 | else |
| 20571 | cat >conftest.$ac_ext <<_ACEOF |
| 20572 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20573 | /* confdefs.h. */ |
| 20574 | _ACEOF |
| 20575 | cat confdefs.h >>conftest.$ac_ext |
| 20576 | cat >>conftest.$ac_ext <<_ACEOF |
| 20577 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20578 | #include <sys/types.h> |
| 20579 | #include <time.h> |
| 20580 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20581 | int |
| 20582 | main () |
| 20583 | { |
| 20584 | struct tm *tp; tp->tm_sec; |
| 20585 | ; |
| 20586 | return 0; |
| 20587 | } |
| 20588 | _ACEOF |
| 20589 | rm -f conftest.$ac_objext |
| 20590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20591 | (eval $ac_compile) 2>&5 |
| 20592 | ac_status=$? |
| 20593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20594 | (exit $ac_status); } && |
| 20595 | { ac_try='test -s conftest.$ac_objext' |
| 20596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20597 | (eval $ac_try) 2>&5 |
| 20598 | ac_status=$? |
| 20599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20600 | (exit $ac_status); }; }; then |
| 20601 | ac_cv_struct_tm=time.h |
| 20602 | else |
| 20603 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20605 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20606 | ac_cv_struct_tm=sys/time.h |
| 20607 | fi |
| 20608 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20609 | fi |
| 20610 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 20611 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
| 20612 | if test $ac_cv_struct_tm = sys/time.h; then |
| 20613 | |
| 20614 | cat >>confdefs.h <<\_ACEOF |
| 20615 | #define TM_IN_SYS_TIME 1 |
| 20616 | _ACEOF |
| 20617 | |
| 20618 | fi |
| 20619 | |
| 20620 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20621 | echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 20622 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 |
| 20623 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 20624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20625 | else |
| 20626 | |
| 20627 | |
| 20628 | ac_ext=cc |
| 20629 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20630 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20631 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20632 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20633 | |
| 20634 | cat >conftest.$ac_ext <<_ACEOF |
| 20635 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20636 | /* confdefs.h. */ |
| 20637 | _ACEOF |
| 20638 | cat confdefs.h >>conftest.$ac_ext |
| 20639 | cat >>conftest.$ac_ext <<_ACEOF |
| 20640 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20641 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20642 | int |
| 20643 | main () |
| 20644 | { |
| 20645 | using namespace Outer::Inner; return i; |
| 20646 | ; |
| 20647 | return 0; |
| 20648 | } |
| 20649 | _ACEOF |
| 20650 | rm -f conftest.$ac_objext |
| 20651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20652 | (eval $ac_compile) 2>&5 |
| 20653 | ac_status=$? |
| 20654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20655 | (exit $ac_status); } && |
| 20656 | { ac_try='test -s conftest.$ac_objext' |
| 20657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20658 | (eval $ac_try) 2>&5 |
| 20659 | ac_status=$? |
| 20660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20661 | (exit $ac_status); }; }; then |
| 20662 | ac_cv_cxx_namespaces=yes |
| 20663 | else |
| 20664 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20666 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20667 | ac_cv_cxx_namespaces=no |
| 20668 | fi |
| 20669 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20670 | ac_ext=c |
| 20671 | ac_cpp='$CPP $CPPFLAGS' |
| 20672 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20673 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20674 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20675 | |
| 20676 | |
| 20677 | fi |
| 20678 | echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 20679 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 |
| 20680 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 20681 | |
| 20682 | cat >>confdefs.h <<\_ACEOF |
| 20683 | #define HAVE_NAMESPACES |
| 20684 | _ACEOF |
| 20685 | |
| 20686 | fi |
| 20687 | |
| 20688 | echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5 |
| 20689 | echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6 |
| 20690 | if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then |
| 20691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20692 | else |
| 20693 | |
| 20694 | |
| 20695 | |
| 20696 | ac_ext=cc |
| 20697 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20698 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20699 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20700 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20701 | |
| 20702 | cat >conftest.$ac_ext <<_ACEOF |
| 20703 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20704 | /* confdefs.h. */ |
| 20705 | _ACEOF |
| 20706 | cat confdefs.h >>conftest.$ac_ext |
| 20707 | cat >>conftest.$ac_ext <<_ACEOF |
| 20708 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20709 | #include <ext/hash_map> |
| 20710 | #ifdef HAVE_NAMESPACES |
| 20711 | using namespace std; |
| 20712 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20713 | int |
| 20714 | main () |
| 20715 | { |
| 20716 | hash_map<int, int> t; return 0; |
| 20717 | ; |
| 20718 | return 0; |
| 20719 | } |
| 20720 | _ACEOF |
| 20721 | rm -f conftest.$ac_objext |
| 20722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20723 | (eval $ac_compile) 2>&5 |
| 20724 | ac_status=$? |
| 20725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20726 | (exit $ac_status); } && |
| 20727 | { ac_try='test -s conftest.$ac_objext' |
| 20728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20729 | (eval $ac_try) 2>&5 |
| 20730 | ac_status=$? |
| 20731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20732 | (exit $ac_status); }; }; then |
| 20733 | ac_cv_cxx_have_ext_hash_map=std |
| 20734 | else |
| 20735 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20737 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20738 | ac_cv_cxx_have_ext_hash_map=no |
| 20739 | fi |
| 20740 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20741 | cat >conftest.$ac_ext <<_ACEOF |
| 20742 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20743 | /* confdefs.h. */ |
| 20744 | _ACEOF |
| 20745 | cat confdefs.h >>conftest.$ac_ext |
| 20746 | cat >>conftest.$ac_ext <<_ACEOF |
| 20747 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20748 | #include <ext/hash_map> |
| 20749 | #ifdef HAVE_NAMESPACES |
| 20750 | using namespace __gnu_cxx; |
| 20751 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20752 | int |
| 20753 | main () |
| 20754 | { |
| 20755 | hash_map<int, int> t; return 0; |
| 20756 | ; |
| 20757 | return 0; |
| 20758 | } |
| 20759 | _ACEOF |
| 20760 | rm -f conftest.$ac_objext |
| 20761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20762 | (eval $ac_compile) 2>&5 |
| 20763 | ac_status=$? |
| 20764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20765 | (exit $ac_status); } && |
| 20766 | { ac_try='test -s conftest.$ac_objext' |
| 20767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20768 | (eval $ac_try) 2>&5 |
| 20769 | ac_status=$? |
| 20770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20771 | (exit $ac_status); }; }; then |
| 20772 | ac_cv_cxx_have_ext_hash_map=gnu |
| 20773 | else |
| 20774 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20776 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20777 | ac_cv_cxx_have_ext_hash_map=no |
| 20778 | fi |
| 20779 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20780 | ac_ext=c |
| 20781 | ac_cpp='$CPP $CPPFLAGS' |
| 20782 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20783 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20784 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20785 | |
| 20786 | |
| 20787 | fi |
| 20788 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5 |
| 20789 | echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6 |
| 20790 | if test "$ac_cv_cxx_have_ext_hash_map" = std; then |
| 20791 | |
| 20792 | cat >>confdefs.h <<\_ACEOF |
| 20793 | #define HAVE_STD_EXT_HASH_MAP |
| 20794 | _ACEOF |
| 20795 | |
| 20796 | fi |
| 20797 | if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then |
| 20798 | |
| 20799 | cat >>confdefs.h <<\_ACEOF |
| 20800 | #define HAVE_GNU_EXT_HASH_MAP |
| 20801 | _ACEOF |
| 20802 | |
| 20803 | fi |
| 20804 | |
| 20805 | echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5 |
| 20806 | echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6 |
| 20807 | if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then |
| 20808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20809 | else |
| 20810 | |
| 20811 | |
| 20812 | |
| 20813 | ac_ext=cc |
| 20814 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20815 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20816 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20817 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20818 | |
| 20819 | cat >conftest.$ac_ext <<_ACEOF |
| 20820 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20821 | /* confdefs.h. */ |
| 20822 | _ACEOF |
| 20823 | cat confdefs.h >>conftest.$ac_ext |
| 20824 | cat >>conftest.$ac_ext <<_ACEOF |
| 20825 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20826 | #include <ext/hash_set> |
| 20827 | #ifdef HAVE_NAMESPACES |
| 20828 | using namespace std; |
| 20829 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20830 | int |
| 20831 | main () |
| 20832 | { |
| 20833 | hash_set<int> t; return 0; |
| 20834 | ; |
| 20835 | return 0; |
| 20836 | } |
| 20837 | _ACEOF |
| 20838 | rm -f conftest.$ac_objext |
| 20839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20840 | (eval $ac_compile) 2>&5 |
| 20841 | ac_status=$? |
| 20842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20843 | (exit $ac_status); } && |
| 20844 | { ac_try='test -s conftest.$ac_objext' |
| 20845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20846 | (eval $ac_try) 2>&5 |
| 20847 | ac_status=$? |
| 20848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20849 | (exit $ac_status); }; }; then |
| 20850 | ac_cv_cxx_have_ext_hash_set=std |
| 20851 | else |
| 20852 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20854 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20855 | ac_cv_cxx_have_ext_hash_set=no |
| 20856 | fi |
| 20857 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20858 | cat >conftest.$ac_ext <<_ACEOF |
| 20859 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20860 | /* confdefs.h. */ |
| 20861 | _ACEOF |
| 20862 | cat confdefs.h >>conftest.$ac_ext |
| 20863 | cat >>conftest.$ac_ext <<_ACEOF |
| 20864 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20865 | #include <ext/hash_set> |
| 20866 | #ifdef HAVE_NAMESPACES |
| 20867 | using namespace __gnu_cxx; |
| 20868 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20869 | int |
| 20870 | main () |
| 20871 | { |
| 20872 | hash_set<int> t; return 0; |
| 20873 | ; |
| 20874 | return 0; |
| 20875 | } |
| 20876 | _ACEOF |
| 20877 | rm -f conftest.$ac_objext |
| 20878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20879 | (eval $ac_compile) 2>&5 |
| 20880 | ac_status=$? |
| 20881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20882 | (exit $ac_status); } && |
| 20883 | { ac_try='test -s conftest.$ac_objext' |
| 20884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20885 | (eval $ac_try) 2>&5 |
| 20886 | ac_status=$? |
| 20887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20888 | (exit $ac_status); }; }; then |
| 20889 | ac_cv_cxx_have_ext_hash_set=gnu |
| 20890 | else |
| 20891 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20893 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20894 | ac_cv_cxx_have_ext_hash_set=no |
| 20895 | fi |
| 20896 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20897 | ac_ext=c |
| 20898 | ac_cpp='$CPP $CPPFLAGS' |
| 20899 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20900 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20901 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20902 | |
| 20903 | |
| 20904 | fi |
| 20905 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5 |
| 20906 | echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6 |
| 20907 | if test "$ac_cv_cxx_have_ext_hash_set" = std; then |
| 20908 | |
| 20909 | cat >>confdefs.h <<\_ACEOF |
| 20910 | #define HAVE_STD_EXT_HASH_SET |
| 20911 | _ACEOF |
| 20912 | |
| 20913 | fi |
| 20914 | if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then |
| 20915 | |
| 20916 | cat >>confdefs.h <<\_ACEOF |
| 20917 | #define HAVE_GNU_EXT_HASH_SET |
| 20918 | _ACEOF |
| 20919 | |
| 20920 | fi |
| 20921 | |
| 20922 | echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5 |
| 20923 | echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6 |
| 20924 | if test "${ac_cv_cxx_have_ext_slist+set}" = set; then |
| 20925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20926 | else |
| 20927 | |
| 20928 | |
| 20929 | |
| 20930 | ac_ext=cc |
| 20931 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20932 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20933 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20934 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20935 | |
| 20936 | cat >conftest.$ac_ext <<_ACEOF |
| 20937 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20938 | /* confdefs.h. */ |
| 20939 | _ACEOF |
| 20940 | cat confdefs.h >>conftest.$ac_ext |
| 20941 | cat >>conftest.$ac_ext <<_ACEOF |
| 20942 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20943 | #include <ext/slist> |
| 20944 | #ifdef HAVE_NAMESPACES |
| 20945 | using namespace std; |
| 20946 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20947 | int |
| 20948 | main () |
| 20949 | { |
| 20950 | slist<int> s; return 0; |
| 20951 | ; |
| 20952 | return 0; |
| 20953 | } |
| 20954 | _ACEOF |
| 20955 | rm -f conftest.$ac_objext |
| 20956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20957 | (eval $ac_compile) 2>&5 |
| 20958 | ac_status=$? |
| 20959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20960 | (exit $ac_status); } && |
| 20961 | { ac_try='test -s conftest.$ac_objext' |
| 20962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20963 | (eval $ac_try) 2>&5 |
| 20964 | ac_status=$? |
| 20965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20966 | (exit $ac_status); }; }; then |
| 20967 | ac_cv_cxx_have_ext_slist=std |
| 20968 | else |
| 20969 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20971 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20972 | ac_cv_cxx_have_ext_slist=no |
| 20973 | fi |
| 20974 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 20975 | cat >conftest.$ac_ext <<_ACEOF |
| 20976 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20977 | /* confdefs.h. */ |
| 20978 | _ACEOF |
| 20979 | cat confdefs.h >>conftest.$ac_ext |
| 20980 | cat >>conftest.$ac_ext <<_ACEOF |
| 20981 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20982 | #include <ext/slist> |
| 20983 | #ifdef HAVE_NAMESPACES |
| 20984 | using namespace __gnu_cxx; |
| 20985 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20986 | int |
| 20987 | main () |
| 20988 | { |
| 20989 | slist<int> s; return 0; |
| 20990 | ; |
| 20991 | return 0; |
| 20992 | } |
| 20993 | _ACEOF |
| 20994 | rm -f conftest.$ac_objext |
| 20995 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20996 | (eval $ac_compile) 2>&5 |
| 20997 | ac_status=$? |
| 20998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20999 | (exit $ac_status); } && |
| 21000 | { ac_try='test -s conftest.$ac_objext' |
| 21001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21002 | (eval $ac_try) 2>&5 |
| 21003 | ac_status=$? |
| 21004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21005 | (exit $ac_status); }; }; then |
| 21006 | ac_cv_cxx_have_ext_slist=gnu |
| 21007 | else |
| 21008 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21010 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21011 | ac_cv_cxx_have_ext_slist=no |
| 21012 | fi |
| 21013 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 21014 | |
| 21015 | ac_ext=c |
| 21016 | ac_cpp='$CPP $CPPFLAGS' |
| 21017 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21018 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21019 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21020 | |
| 21021 | |
| 21022 | fi |
| 21023 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5 |
| 21024 | echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6 |
| 21025 | if test "$ac_cv_cxx_have_ext_slist" = std; then |
| 21026 | |
| 21027 | cat >>confdefs.h <<\_ACEOF |
| 21028 | #define HAVE_EXT_SLIST std |
| 21029 | _ACEOF |
| 21030 | |
| 21031 | fi |
| 21032 | if test "$ac_cv_cxx_have_ext_slist" = gnu; then |
| 21033 | |
| 21034 | cat >>confdefs.h <<\_ACEOF |
| 21035 | #define HAVE_EXT_SLIST gnu |
| 21036 | _ACEOF |
| 21037 | |
| 21038 | fi |
| 21039 | |
| 21040 | echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 21041 | echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6 |
| 21042 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then |
| 21043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21044 | else |
| 21045 | |
| 21046 | |
| 21047 | |
| 21048 | ac_ext=cc |
| 21049 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21050 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21051 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21052 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21053 | |
| 21054 | cat >conftest.$ac_ext <<_ACEOF |
| 21055 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21056 | /* confdefs.h. */ |
| 21057 | _ACEOF |
| 21058 | cat confdefs.h >>conftest.$ac_ext |
| 21059 | cat >>conftest.$ac_ext <<_ACEOF |
| 21060 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21061 | #include <iterator> |
| 21062 | #ifdef HAVE_NAMESPACES |
| 21063 | using namespace std; |
| 21064 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21065 | int |
| 21066 | main () |
| 21067 | { |
| 21068 | iterator<int,int,int> t; return 0; |
| 21069 | ; |
| 21070 | return 0; |
| 21071 | } |
| 21072 | _ACEOF |
| 21073 | rm -f conftest.$ac_objext |
| 21074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21075 | (eval $ac_compile) 2>&5 |
| 21076 | ac_status=$? |
| 21077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21078 | (exit $ac_status); } && |
| 21079 | { ac_try='test -s conftest.$ac_objext' |
| 21080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21081 | (eval $ac_try) 2>&5 |
| 21082 | ac_status=$? |
| 21083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21084 | (exit $ac_status); }; }; then |
| 21085 | ac_cv_cxx_have_std_iterator=yes |
| 21086 | else |
| 21087 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21089 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21090 | ac_cv_cxx_have_std_iterator=no |
| 21091 | fi |
| 21092 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 21093 | ac_ext=c |
| 21094 | ac_cpp='$CPP $CPPFLAGS' |
| 21095 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21096 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21097 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21098 | |
| 21099 | |
| 21100 | fi |
| 21101 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 |
| 21102 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6 |
| 21103 | if test "$ac_cv_cxx_have_std_iterator" = yes; then |
| 21104 | |
| 21105 | cat >>confdefs.h <<\_ACEOF |
| 21106 | #define HAVE_STD_ITERATOR |
| 21107 | _ACEOF |
| 21108 | |
| 21109 | fi |
| 21110 | |
| 21111 | echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 21112 | echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6 |
| 21113 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 21114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21115 | else |
| 21116 | |
| 21117 | |
| 21118 | |
| 21119 | ac_ext=cc |
| 21120 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21121 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21122 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21123 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21124 | |
| 21125 | cat >conftest.$ac_ext <<_ACEOF |
| 21126 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21127 | /* confdefs.h. */ |
| 21128 | _ACEOF |
| 21129 | cat confdefs.h >>conftest.$ac_ext |
| 21130 | cat >>conftest.$ac_ext <<_ACEOF |
| 21131 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21132 | #include <iterator> |
| 21133 | #ifdef HAVE_NAMESPACES |
| 21134 | using namespace std; |
| 21135 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21136 | int |
| 21137 | main () |
| 21138 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 21139 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21140 | ; |
| 21141 | return 0; |
| 21142 | } |
| 21143 | _ACEOF |
| 21144 | rm -f conftest.$ac_objext |
| 21145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21146 | (eval $ac_compile) 2>&5 |
| 21147 | ac_status=$? |
| 21148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21149 | (exit $ac_status); } && |
| 21150 | { ac_try='test -s conftest.$ac_objext' |
| 21151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21152 | (eval $ac_try) 2>&5 |
| 21153 | ac_status=$? |
| 21154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21155 | (exit $ac_status); }; }; then |
| 21156 | ac_cv_cxx_have_bi_iterator=yes |
| 21157 | else |
| 21158 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21159 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21160 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21161 | ac_cv_cxx_have_bi_iterator=no |
| 21162 | fi |
| 21163 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 21164 | ac_ext=c |
| 21165 | ac_cpp='$CPP $CPPFLAGS' |
| 21166 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21167 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21168 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21169 | |
| 21170 | |
| 21171 | fi |
| 21172 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 21173 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6 |
| 21174 | if test "$ac_cv_cxx_have_bi_iterator" = yes; then |
| 21175 | |
| 21176 | cat >>confdefs.h <<\_ACEOF |
| 21177 | #define HAVE_BI_ITERATOR |
| 21178 | _ACEOF |
| 21179 | |
| 21180 | fi |
| 21181 | |
| 21182 | echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 21183 | echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6 |
| 21184 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 21185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21186 | else |
| 21187 | |
| 21188 | |
| 21189 | |
| 21190 | ac_ext=cc |
| 21191 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21192 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21193 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21194 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21195 | |
| 21196 | cat >conftest.$ac_ext <<_ACEOF |
| 21197 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21198 | /* confdefs.h. */ |
| 21199 | _ACEOF |
| 21200 | cat confdefs.h >>conftest.$ac_ext |
| 21201 | cat >>conftest.$ac_ext <<_ACEOF |
| 21202 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21203 | #include <iterator> |
| 21204 | #ifdef HAVE_NAMESPACES |
| 21205 | using namespace std; |
| 21206 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21207 | int |
| 21208 | main () |
| 21209 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 21210 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21211 | ; |
| 21212 | return 0; |
| 21213 | } |
| 21214 | _ACEOF |
| 21215 | rm -f conftest.$ac_objext |
| 21216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21217 | (eval $ac_compile) 2>&5 |
| 21218 | ac_status=$? |
| 21219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21220 | (exit $ac_status); } && |
| 21221 | { ac_try='test -s conftest.$ac_objext' |
| 21222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21223 | (eval $ac_try) 2>&5 |
| 21224 | ac_status=$? |
| 21225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21226 | (exit $ac_status); }; }; then |
| 21227 | ac_cv_cxx_have_fwd_iterator=yes |
| 21228 | else |
| 21229 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21231 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21232 | ac_cv_cxx_have_fwd_iterator=no |
| 21233 | fi |
| 21234 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 21235 | ac_ext=c |
| 21236 | ac_cpp='$CPP $CPPFLAGS' |
| 21237 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21238 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21239 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21240 | |
| 21241 | |
| 21242 | fi |
| 21243 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 21244 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6 |
| 21245 | if test "$ac_cv_cxx_have_fwd_iterator" = yes; then |
| 21246 | |
| 21247 | cat >>confdefs.h <<\_ACEOF |
| 21248 | #define HAVE_FWD_ITERATOR |
| 21249 | _ACEOF |
| 21250 | |
| 21251 | fi |
| 21252 | |
| 21253 | |
| 21254 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 21255 | # for constant arguments. Useless! |
| 21256 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 21257 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 21258 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 21259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21260 | else |
| 21261 | cat >conftest.$ac_ext <<_ACEOF |
| 21262 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21263 | /* confdefs.h. */ |
| 21264 | _ACEOF |
| 21265 | cat confdefs.h >>conftest.$ac_ext |
| 21266 | cat >>conftest.$ac_ext <<_ACEOF |
| 21267 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21268 | #include <alloca.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21269 | int |
| 21270 | main () |
| 21271 | { |
| 21272 | char *p = (char *) alloca (2 * sizeof (int)); |
| 21273 | ; |
| 21274 | return 0; |
| 21275 | } |
| 21276 | _ACEOF |
| 21277 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21279 | (eval $ac_link) 2>&5 |
| 21280 | ac_status=$? |
| 21281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21282 | (exit $ac_status); } && |
| 21283 | { ac_try='test -s conftest$ac_exeext' |
| 21284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21285 | (eval $ac_try) 2>&5 |
| 21286 | ac_status=$? |
| 21287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21288 | (exit $ac_status); }; }; then |
| 21289 | ac_cv_working_alloca_h=yes |
| 21290 | else |
| 21291 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21293 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21294 | ac_cv_working_alloca_h=no |
| 21295 | fi |
| 21296 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 21297 | fi |
| 21298 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 21299 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 21300 | if test $ac_cv_working_alloca_h = yes; then |
| 21301 | |
| 21302 | cat >>confdefs.h <<\_ACEOF |
| 21303 | #define HAVE_ALLOCA_H 1 |
| 21304 | _ACEOF |
| 21305 | |
| 21306 | fi |
| 21307 | |
| 21308 | echo "$as_me:$LINENO: checking for alloca" >&5 |
| 21309 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 21310 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 21311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21312 | else |
| 21313 | cat >conftest.$ac_ext <<_ACEOF |
| 21314 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21315 | /* confdefs.h. */ |
| 21316 | _ACEOF |
| 21317 | cat confdefs.h >>conftest.$ac_ext |
| 21318 | cat >>conftest.$ac_ext <<_ACEOF |
| 21319 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21320 | #ifdef __GNUC__ |
| 21321 | # define alloca __builtin_alloca |
| 21322 | #else |
| 21323 | # ifdef _MSC_VER |
| 21324 | # include <malloc.h> |
| 21325 | # define alloca _alloca |
| 21326 | # else |
| 21327 | # if HAVE_ALLOCA_H |
| 21328 | # include <alloca.h> |
| 21329 | # else |
| 21330 | # ifdef _AIX |
| 21331 | #pragma alloca |
| 21332 | # else |
| 21333 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 21334 | char *alloca (); |
| 21335 | # endif |
| 21336 | # endif |
| 21337 | # endif |
| 21338 | # endif |
| 21339 | #endif |
| 21340 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21341 | int |
| 21342 | main () |
| 21343 | { |
| 21344 | char *p = (char *) alloca (1); |
| 21345 | ; |
| 21346 | return 0; |
| 21347 | } |
| 21348 | _ACEOF |
| 21349 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21350 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21351 | (eval $ac_link) 2>&5 |
| 21352 | ac_status=$? |
| 21353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21354 | (exit $ac_status); } && |
| 21355 | { ac_try='test -s conftest$ac_exeext' |
| 21356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21357 | (eval $ac_try) 2>&5 |
| 21358 | ac_status=$? |
| 21359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21360 | (exit $ac_status); }; }; then |
| 21361 | ac_cv_func_alloca_works=yes |
| 21362 | else |
| 21363 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21365 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21366 | ac_cv_func_alloca_works=no |
| 21367 | fi |
| 21368 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 21369 | fi |
| 21370 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 21371 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
| 21372 | |
| 21373 | if test $ac_cv_func_alloca_works = yes; then |
| 21374 | |
| 21375 | cat >>confdefs.h <<\_ACEOF |
| 21376 | #define HAVE_ALLOCA 1 |
| 21377 | _ACEOF |
| 21378 | |
| 21379 | else |
| 21380 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 21381 | # that cause trouble. Some versions do not even contain alloca or |
| 21382 | # contain a buggy version. If you still want to use their alloca, |
| 21383 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 21384 | |
| 21385 | ALLOCA=alloca.$ac_objext |
| 21386 | |
| 21387 | cat >>confdefs.h <<\_ACEOF |
| 21388 | #define C_ALLOCA 1 |
| 21389 | _ACEOF |
| 21390 | |
| 21391 | |
| 21392 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 21393 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 21394 | if test "${ac_cv_os_cray+set}" = set; then |
| 21395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21396 | else |
| 21397 | cat >conftest.$ac_ext <<_ACEOF |
| 21398 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21399 | /* confdefs.h. */ |
| 21400 | _ACEOF |
| 21401 | cat confdefs.h >>conftest.$ac_ext |
| 21402 | cat >>conftest.$ac_ext <<_ACEOF |
| 21403 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21404 | #if defined(CRAY) && ! defined(CRAY2) |
| 21405 | webecray |
| 21406 | #else |
| 21407 | wenotbecray |
| 21408 | #endif |
| 21409 | |
| 21410 | _ACEOF |
| 21411 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21412 | $EGREP "webecray" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21413 | ac_cv_os_cray=yes |
| 21414 | else |
| 21415 | ac_cv_os_cray=no |
| 21416 | fi |
| 21417 | rm -f conftest* |
| 21418 | |
| 21419 | fi |
| 21420 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 21421 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
| 21422 | if test $ac_cv_os_cray = yes; then |
| 21423 | for ac_func in _getb67 GETB67 getb67; do |
| 21424 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21425 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21426 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 21427 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 21428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21429 | else |
| 21430 | cat >conftest.$ac_ext <<_ACEOF |
| 21431 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21432 | /* confdefs.h. */ |
| 21433 | _ACEOF |
| 21434 | cat confdefs.h >>conftest.$ac_ext |
| 21435 | cat >>conftest.$ac_ext <<_ACEOF |
| 21436 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21437 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21438 | which can conflict with char $ac_func (); below. |
| 21439 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 21440 | <limits.h> exists even on freestanding compilers. */ |
| 21441 | #ifdef __STDC__ |
| 21442 | # include <limits.h> |
| 21443 | #else |
| 21444 | # include <assert.h> |
| 21445 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21446 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 21447 | #ifdef __cplusplus |
| 21448 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21449 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21450 | #endif |
| 21451 | /* We use char because int might match the return type of a gcc2 |
| 21452 | builtin and then its argument prototype would still apply. */ |
| 21453 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21454 | /* The GNU C library defines this for functions which it implements |
| 21455 | to always fail with ENOSYS. Some functions are actually named |
| 21456 | something starting with __ and the normal name is an alias. */ |
| 21457 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 21458 | choke me |
| 21459 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21460 | char (*f) () = $ac_func; |
| 21461 | #endif |
| 21462 | #ifdef __cplusplus |
| 21463 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21464 | #endif |
| 21465 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21466 | int |
| 21467 | main () |
| 21468 | { |
| 21469 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21470 | ; |
| 21471 | return 0; |
| 21472 | } |
| 21473 | _ACEOF |
| 21474 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21475 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21476 | (eval $ac_link) 2>&5 |
| 21477 | ac_status=$? |
| 21478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21479 | (exit $ac_status); } && |
| 21480 | { ac_try='test -s conftest$ac_exeext' |
| 21481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21482 | (eval $ac_try) 2>&5 |
| 21483 | ac_status=$? |
| 21484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21485 | (exit $ac_status); }; }; then |
| 21486 | eval "$as_ac_var=yes" |
| 21487 | else |
| 21488 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21490 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21491 | eval "$as_ac_var=no" |
| 21492 | fi |
| 21493 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 21494 | fi |
| 21495 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 21496 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 21497 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 21498 | |
| 21499 | cat >>confdefs.h <<_ACEOF |
| 21500 | #define CRAY_STACKSEG_END $ac_func |
| 21501 | _ACEOF |
| 21502 | |
| 21503 | break |
| 21504 | fi |
| 21505 | |
| 21506 | done |
| 21507 | fi |
| 21508 | |
| 21509 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 21510 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 21511 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 21512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21513 | else |
| 21514 | if test "$cross_compiling" = yes; then |
| 21515 | ac_cv_c_stack_direction=0 |
| 21516 | else |
| 21517 | cat >conftest.$ac_ext <<_ACEOF |
| 21518 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21519 | /* confdefs.h. */ |
| 21520 | _ACEOF |
| 21521 | cat confdefs.h >>conftest.$ac_ext |
| 21522 | cat >>conftest.$ac_ext <<_ACEOF |
| 21523 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21524 | int |
| 21525 | find_stack_direction () |
| 21526 | { |
| 21527 | static char *addr = 0; |
| 21528 | auto char dummy; |
| 21529 | if (addr == 0) |
| 21530 | { |
| 21531 | addr = &dummy; |
| 21532 | return find_stack_direction (); |
| 21533 | } |
| 21534 | else |
| 21535 | return (&dummy > addr) ? 1 : -1; |
| 21536 | } |
| 21537 | |
| 21538 | int |
| 21539 | main () |
| 21540 | { |
| 21541 | exit (find_stack_direction () < 0); |
| 21542 | } |
| 21543 | _ACEOF |
| 21544 | rm -f conftest$ac_exeext |
| 21545 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21546 | (eval $ac_link) 2>&5 |
| 21547 | ac_status=$? |
| 21548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21549 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21551 | (eval $ac_try) 2>&5 |
| 21552 | ac_status=$? |
| 21553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21554 | (exit $ac_status); }; }; then |
| 21555 | ac_cv_c_stack_direction=1 |
| 21556 | else |
| 21557 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21558 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21559 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21560 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21561 | ( exit $ac_status ) |
| 21562 | ac_cv_c_stack_direction=-1 |
| 21563 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21564 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21565 | fi |
| 21566 | fi |
| 21567 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 21568 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
| 21569 | |
| 21570 | cat >>confdefs.h <<_ACEOF |
| 21571 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 21572 | _ACEOF |
| 21573 | |
| 21574 | |
| 21575 | fi |
| 21576 | |
| 21577 | if test $ac_cv_c_compiler_gnu = yes; then |
| 21578 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
| 21579 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 |
| 21580 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
| 21581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21582 | else |
| 21583 | ac_pattern="Autoconf.*'x'" |
| 21584 | cat >conftest.$ac_ext <<_ACEOF |
| 21585 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21586 | /* confdefs.h. */ |
| 21587 | _ACEOF |
| 21588 | cat confdefs.h >>conftest.$ac_ext |
| 21589 | cat >>conftest.$ac_ext <<_ACEOF |
| 21590 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21591 | #include <sgtty.h> |
| 21592 | Autoconf TIOCGETP |
| 21593 | _ACEOF |
| 21594 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21595 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21596 | ac_cv_prog_gcc_traditional=yes |
| 21597 | else |
| 21598 | ac_cv_prog_gcc_traditional=no |
| 21599 | fi |
| 21600 | rm -f conftest* |
| 21601 | |
| 21602 | |
| 21603 | if test $ac_cv_prog_gcc_traditional = no; then |
| 21604 | cat >conftest.$ac_ext <<_ACEOF |
| 21605 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21606 | /* confdefs.h. */ |
| 21607 | _ACEOF |
| 21608 | cat confdefs.h >>conftest.$ac_ext |
| 21609 | cat >>conftest.$ac_ext <<_ACEOF |
| 21610 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21611 | #include <termio.h> |
| 21612 | Autoconf TCGETA |
| 21613 | _ACEOF |
| 21614 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21615 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21616 | ac_cv_prog_gcc_traditional=yes |
| 21617 | fi |
| 21618 | rm -f conftest* |
| 21619 | |
| 21620 | fi |
| 21621 | fi |
| 21622 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
| 21623 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 |
| 21624 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 21625 | CC="$CC -traditional" |
| 21626 | fi |
| 21627 | fi |
| 21628 | |
| 21629 | echo "$as_me:$LINENO: checking for working memcmp" >&5 |
| 21630 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 |
| 21631 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
| 21632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21633 | else |
| 21634 | if test "$cross_compiling" = yes; then |
| 21635 | ac_cv_func_memcmp_working=no |
| 21636 | else |
| 21637 | cat >conftest.$ac_ext <<_ACEOF |
| 21638 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21639 | /* confdefs.h. */ |
| 21640 | _ACEOF |
| 21641 | cat confdefs.h >>conftest.$ac_ext |
| 21642 | cat >>conftest.$ac_ext <<_ACEOF |
| 21643 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21644 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21645 | int |
| 21646 | main () |
| 21647 | { |
| 21648 | |
| 21649 | /* Some versions of memcmp are not 8-bit clean. */ |
| 21650 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; |
| 21651 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
| 21652 | exit (1); |
| 21653 | |
| 21654 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
| 21655 | or more and with at least one buffer not starting on a 4-byte boundary. |
| 21656 | William Lewis provided this test program. */ |
| 21657 | { |
| 21658 | char foo[21]; |
| 21659 | char bar[21]; |
| 21660 | int i; |
| 21661 | for (i = 0; i < 4; i++) |
| 21662 | { |
| 21663 | char *a = foo + i; |
| 21664 | char *b = bar + i; |
| 21665 | strcpy (a, "--------01111111"); |
| 21666 | strcpy (b, "--------10000000"); |
| 21667 | if (memcmp (a, b, 16) >= 0) |
| 21668 | exit (1); |
| 21669 | } |
| 21670 | exit (0); |
| 21671 | } |
| 21672 | |
| 21673 | ; |
| 21674 | return 0; |
| 21675 | } |
| 21676 | _ACEOF |
| 21677 | rm -f conftest$ac_exeext |
| 21678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21679 | (eval $ac_link) 2>&5 |
| 21680 | ac_status=$? |
| 21681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21682 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21684 | (eval $ac_try) 2>&5 |
| 21685 | ac_status=$? |
| 21686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21687 | (exit $ac_status); }; }; then |
| 21688 | ac_cv_func_memcmp_working=yes |
| 21689 | else |
| 21690 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21691 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21693 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21694 | ( exit $ac_status ) |
| 21695 | ac_cv_func_memcmp_working=no |
| 21696 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21697 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21698 | fi |
| 21699 | fi |
| 21700 | echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
| 21701 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 |
| 21702 | test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
| 21703 | |
| 21704 | |
| 21705 | |
| 21706 | for ac_header in stdlib.h unistd.h |
| 21707 | do |
| 21708 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21709 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21710 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21711 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 21712 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21714 | fi |
| 21715 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 21716 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 21717 | else |
| 21718 | # Is the header compilable? |
| 21719 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 21720 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 21721 | cat >conftest.$ac_ext <<_ACEOF |
| 21722 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21723 | /* confdefs.h. */ |
| 21724 | _ACEOF |
| 21725 | cat confdefs.h >>conftest.$ac_ext |
| 21726 | cat >>conftest.$ac_ext <<_ACEOF |
| 21727 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21728 | $ac_includes_default |
| 21729 | #include <$ac_header> |
| 21730 | _ACEOF |
| 21731 | rm -f conftest.$ac_objext |
| 21732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21733 | (eval $ac_compile) 2>&5 |
| 21734 | ac_status=$? |
| 21735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21736 | (exit $ac_status); } && |
| 21737 | { ac_try='test -s conftest.$ac_objext' |
| 21738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21739 | (eval $ac_try) 2>&5 |
| 21740 | ac_status=$? |
| 21741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21742 | (exit $ac_status); }; }; then |
| 21743 | ac_header_compiler=yes |
| 21744 | else |
| 21745 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21747 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21748 | ac_header_compiler=no |
| 21749 | fi |
| 21750 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 21751 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 21752 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 21753 | |
| 21754 | # Is the header present? |
| 21755 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 21756 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 21757 | cat >conftest.$ac_ext <<_ACEOF |
| 21758 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21759 | /* confdefs.h. */ |
| 21760 | _ACEOF |
| 21761 | cat confdefs.h >>conftest.$ac_ext |
| 21762 | cat >>conftest.$ac_ext <<_ACEOF |
| 21763 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21764 | #include <$ac_header> |
| 21765 | _ACEOF |
| 21766 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 21767 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 21768 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21769 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21770 | rm -f conftest.er1 |
| 21771 | cat conftest.err >&5 |
| 21772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21773 | (exit $ac_status); } >/dev/null; then |
| 21774 | if test -s conftest.err; then |
| 21775 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 21776 | else |
| 21777 | ac_cpp_err= |
| 21778 | fi |
| 21779 | else |
| 21780 | ac_cpp_err=yes |
| 21781 | fi |
| 21782 | if test -z "$ac_cpp_err"; then |
| 21783 | ac_header_preproc=yes |
| 21784 | else |
| 21785 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21787 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21788 | ac_header_preproc=no |
| 21789 | fi |
| 21790 | rm -f conftest.err conftest.$ac_ext |
| 21791 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 21792 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 21793 | |
| 21794 | # So? What about this header? |
| 21795 | case $ac_header_compiler:$ac_header_preproc in |
| 21796 | yes:no ) |
| 21797 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 21798 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 21799 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21800 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 21801 | ( |
| 21802 | cat <<\_ASBOX |
| 21803 | ## ------------------------------------ ## |
| 21804 | ## Report this to bug-autoconf@gnu.org. ## |
| 21805 | ## ------------------------------------ ## |
| 21806 | _ASBOX |
| 21807 | ) | |
| 21808 | sed "s/^/$as_me: WARNING: /" >&2 |
| 21809 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21810 | no:yes ) |
| 21811 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 21812 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 21813 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 21814 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 21815 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21816 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 21817 | ( |
| 21818 | cat <<\_ASBOX |
| 21819 | ## ------------------------------------ ## |
| 21820 | ## Report this to bug-autoconf@gnu.org. ## |
| 21821 | ## ------------------------------------ ## |
| 21822 | _ASBOX |
| 21823 | ) | |
| 21824 | sed "s/^/$as_me: WARNING: /" >&2 |
| 21825 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21826 | esac |
| 21827 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21828 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 21829 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21831 | else |
| 21832 | eval "$as_ac_Header=$ac_header_preproc" |
| 21833 | fi |
| 21834 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 21835 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 21836 | |
| 21837 | fi |
| 21838 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 21839 | cat >>confdefs.h <<_ACEOF |
| 21840 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21841 | _ACEOF |
| 21842 | |
| 21843 | fi |
| 21844 | |
| 21845 | done |
| 21846 | |
| 21847 | |
| 21848 | for ac_func in getpagesize |
| 21849 | do |
| 21850 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21851 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21852 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 21853 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 21854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21855 | else |
| 21856 | cat >conftest.$ac_ext <<_ACEOF |
| 21857 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21858 | /* confdefs.h. */ |
| 21859 | _ACEOF |
| 21860 | cat confdefs.h >>conftest.$ac_ext |
| 21861 | cat >>conftest.$ac_ext <<_ACEOF |
| 21862 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21863 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21864 | which can conflict with char $ac_func (); below. |
| 21865 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 21866 | <limits.h> exists even on freestanding compilers. */ |
| 21867 | #ifdef __STDC__ |
| 21868 | # include <limits.h> |
| 21869 | #else |
| 21870 | # include <assert.h> |
| 21871 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21872 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 21873 | #ifdef __cplusplus |
| 21874 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21875 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21876 | #endif |
| 21877 | /* We use char because int might match the return type of a gcc2 |
| 21878 | builtin and then its argument prototype would still apply. */ |
| 21879 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21880 | /* The GNU C library defines this for functions which it implements |
| 21881 | to always fail with ENOSYS. Some functions are actually named |
| 21882 | something starting with __ and the normal name is an alias. */ |
| 21883 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 21884 | choke me |
| 21885 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21886 | char (*f) () = $ac_func; |
| 21887 | #endif |
| 21888 | #ifdef __cplusplus |
| 21889 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21890 | #endif |
| 21891 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21892 | int |
| 21893 | main () |
| 21894 | { |
| 21895 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21896 | ; |
| 21897 | return 0; |
| 21898 | } |
| 21899 | _ACEOF |
| 21900 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21901 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21902 | (eval $ac_link) 2>&5 |
| 21903 | ac_status=$? |
| 21904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21905 | (exit $ac_status); } && |
| 21906 | { ac_try='test -s conftest$ac_exeext' |
| 21907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21908 | (eval $ac_try) 2>&5 |
| 21909 | ac_status=$? |
| 21910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21911 | (exit $ac_status); }; }; then |
| 21912 | eval "$as_ac_var=yes" |
| 21913 | else |
| 21914 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21916 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21917 | eval "$as_ac_var=no" |
| 21918 | fi |
| 21919 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 21920 | fi |
| 21921 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 21922 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 21923 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 21924 | cat >>confdefs.h <<_ACEOF |
| 21925 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 21926 | _ACEOF |
| 21927 | |
| 21928 | fi |
| 21929 | done |
| 21930 | |
| 21931 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 21932 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
| 21933 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 21934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21935 | else |
| 21936 | if test "$cross_compiling" = yes; then |
| 21937 | ac_cv_func_mmap_fixed_mapped=no |
| 21938 | else |
| 21939 | cat >conftest.$ac_ext <<_ACEOF |
| 21940 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21941 | /* confdefs.h. */ |
| 21942 | _ACEOF |
| 21943 | cat confdefs.h >>conftest.$ac_ext |
| 21944 | cat >>conftest.$ac_ext <<_ACEOF |
| 21945 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21946 | $ac_includes_default |
| 21947 | /* malloc might have been renamed as rpl_malloc. */ |
| 21948 | #undef malloc |
| 21949 | |
| 21950 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 21951 | Here is a matrix of mmap possibilities: |
| 21952 | mmap private not fixed |
| 21953 | mmap private fixed at somewhere currently unmapped |
| 21954 | mmap private fixed at somewhere already mapped |
| 21955 | mmap shared not fixed |
| 21956 | mmap shared fixed at somewhere currently unmapped |
| 21957 | mmap shared fixed at somewhere already mapped |
| 21958 | For private mappings, we should verify that changes cannot be read() |
| 21959 | back from the file, nor mmap's back from the file at a different |
| 21960 | address. (There have been systems where private was not correctly |
| 21961 | implemented like the infamous i386 svr4.0, and systems where the |
| 21962 | VM page cache was not coherent with the file system buffer cache |
| 21963 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 21964 | For shared mappings, we should conversely verify that changes get |
| 21965 | propagated back to all the places they're supposed to be. |
| 21966 | |
| 21967 | Grep wants private fixed already mapped. |
| 21968 | The main things grep needs to know about mmap are: |
| 21969 | * does it exist and is it safe to write into the mmap'd area |
| 21970 | * how to use it (BSD variants) */ |
| 21971 | |
| 21972 | #include <fcntl.h> |
| 21973 | #include <sys/mman.h> |
| 21974 | |
| 21975 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 21976 | char *malloc (); |
| 21977 | #endif |
| 21978 | |
| 21979 | /* This mess was copied from the GNU getpagesize.h. */ |
| 21980 | #if !HAVE_GETPAGESIZE |
| 21981 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 21982 | # if !HAVE_SYS_PARAM_H |
| 21983 | # define HAVE_SYS_PARAM_H 1 |
| 21984 | # endif |
| 21985 | |
| 21986 | # ifdef _SC_PAGESIZE |
| 21987 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 21988 | # else /* no _SC_PAGESIZE */ |
| 21989 | # if HAVE_SYS_PARAM_H |
| 21990 | # include <sys/param.h> |
| 21991 | # ifdef EXEC_PAGESIZE |
| 21992 | # define getpagesize() EXEC_PAGESIZE |
| 21993 | # else /* no EXEC_PAGESIZE */ |
| 21994 | # ifdef NBPG |
| 21995 | # define getpagesize() NBPG * CLSIZE |
| 21996 | # ifndef CLSIZE |
| 21997 | # define CLSIZE 1 |
| 21998 | # endif /* no CLSIZE */ |
| 21999 | # else /* no NBPG */ |
| 22000 | # ifdef NBPC |
| 22001 | # define getpagesize() NBPC |
| 22002 | # else /* no NBPC */ |
| 22003 | # ifdef PAGESIZE |
| 22004 | # define getpagesize() PAGESIZE |
| 22005 | # endif /* PAGESIZE */ |
| 22006 | # endif /* no NBPC */ |
| 22007 | # endif /* no NBPG */ |
| 22008 | # endif /* no EXEC_PAGESIZE */ |
| 22009 | # else /* no HAVE_SYS_PARAM_H */ |
| 22010 | # define getpagesize() 8192 /* punt totally */ |
| 22011 | # endif /* no HAVE_SYS_PARAM_H */ |
| 22012 | # endif /* no _SC_PAGESIZE */ |
| 22013 | |
| 22014 | #endif /* no HAVE_GETPAGESIZE */ |
| 22015 | |
| 22016 | int |
| 22017 | main () |
| 22018 | { |
| 22019 | char *data, *data2, *data3; |
| 22020 | int i, pagesize; |
| 22021 | int fd; |
| 22022 | |
| 22023 | pagesize = getpagesize (); |
| 22024 | |
| 22025 | /* First, make a file with some known garbage in it. */ |
| 22026 | data = (char *) malloc (pagesize); |
| 22027 | if (!data) |
| 22028 | exit (1); |
| 22029 | for (i = 0; i < pagesize; ++i) |
| 22030 | *(data + i) = rand (); |
| 22031 | umask (0); |
| 22032 | fd = creat ("conftest.mmap", 0600); |
| 22033 | if (fd < 0) |
| 22034 | exit (1); |
| 22035 | if (write (fd, data, pagesize) != pagesize) |
| 22036 | exit (1); |
| 22037 | close (fd); |
| 22038 | |
| 22039 | /* Next, try to mmap the file at a fixed address which already has |
| 22040 | something else allocated at it. If we can, also make sure that |
| 22041 | we see the same garbage. */ |
| 22042 | fd = open ("conftest.mmap", O_RDWR); |
| 22043 | if (fd < 0) |
| 22044 | exit (1); |
| 22045 | data2 = (char *) malloc (2 * pagesize); |
| 22046 | if (!data2) |
| 22047 | exit (1); |
| 22048 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
| 22049 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 22050 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 22051 | exit (1); |
| 22052 | for (i = 0; i < pagesize; ++i) |
| 22053 | if (*(data + i) != *(data2 + i)) |
| 22054 | exit (1); |
| 22055 | |
| 22056 | /* Finally, make sure that changes to the mapped area do not |
| 22057 | percolate back to the file as seen by read(). (This is a bug on |
| 22058 | some variants of i386 svr4.0.) */ |
| 22059 | for (i = 0; i < pagesize; ++i) |
| 22060 | *(data2 + i) = *(data2 + i) + 1; |
| 22061 | data3 = (char *) malloc (pagesize); |
| 22062 | if (!data3) |
| 22063 | exit (1); |
| 22064 | if (read (fd, data3, pagesize) != pagesize) |
| 22065 | exit (1); |
| 22066 | for (i = 0; i < pagesize; ++i) |
| 22067 | if (*(data + i) != *(data3 + i)) |
| 22068 | exit (1); |
| 22069 | close (fd); |
| 22070 | exit (0); |
| 22071 | } |
| 22072 | _ACEOF |
| 22073 | rm -f conftest$ac_exeext |
| 22074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22075 | (eval $ac_link) 2>&5 |
| 22076 | ac_status=$? |
| 22077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22078 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 22079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22080 | (eval $ac_try) 2>&5 |
| 22081 | ac_status=$? |
| 22082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22083 | (exit $ac_status); }; }; then |
| 22084 | ac_cv_func_mmap_fixed_mapped=yes |
| 22085 | else |
| 22086 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22087 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22089 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22090 | ( exit $ac_status ) |
| 22091 | ac_cv_func_mmap_fixed_mapped=no |
| 22092 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22093 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22094 | fi |
| 22095 | fi |
| 22096 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 22097 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
| 22098 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 22099 | |
| 22100 | cat >>confdefs.h <<\_ACEOF |
| 22101 | #define HAVE_MMAP 1 |
| 22102 | _ACEOF |
| 22103 | |
| 22104 | fi |
| 22105 | rm -f conftest.mmap |
| 22106 | |
| 22107 | echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 22108 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6 |
| 22109 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 22110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22111 | else |
| 22112 | |
| 22113 | |
| 22114 | ac_ext=c |
| 22115 | ac_cpp='$CPP $CPPFLAGS' |
| 22116 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22117 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22118 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22119 | |
| 22120 | if test "$cross_compiling" = yes; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22121 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 22122 | See \`config.log' for more details." >&5 |
| 22123 | echo "$as_me: error: cannot run test program while cross compiling |
| 22124 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22125 | { (exit 1); exit 1; }; } |
| 22126 | else |
| 22127 | cat >conftest.$ac_ext <<_ACEOF |
| 22128 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22129 | /* confdefs.h. */ |
| 22130 | _ACEOF |
| 22131 | cat confdefs.h >>conftest.$ac_ext |
| 22132 | cat >>conftest.$ac_ext <<_ACEOF |
| 22133 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22134 | |
| 22135 | #ifdef HAVE_SYS_MMAN_H |
| 22136 | #include <sys/mman.h> |
| 22137 | #endif |
| 22138 | |
| 22139 | #ifdef HAVE_SYS_TYPES_H |
| 22140 | #include <sys/types.h> |
| 22141 | #endif |
| 22142 | |
| 22143 | #ifdef HAVE_FCNTL_H |
| 22144 | #include <fcntl.h> |
| 22145 | #endif |
| 22146 | |
| 22147 | int fd; |
| 22148 | int main () { |
| 22149 | fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);} |
| 22150 | _ACEOF |
| 22151 | rm -f conftest$ac_exeext |
| 22152 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22153 | (eval $ac_link) 2>&5 |
| 22154 | ac_status=$? |
| 22155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22156 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 22157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22158 | (eval $ac_try) 2>&5 |
| 22159 | ac_status=$? |
| 22160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22161 | (exit $ac_status); }; }; then |
| 22162 | ac_cv_func_mmap_file=yes |
| 22163 | else |
| 22164 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22165 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22167 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22168 | ( exit $ac_status ) |
| 22169 | ac_cv_func_mmap_file=no |
| 22170 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22171 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22172 | fi |
| 22173 | ac_ext=c |
| 22174 | ac_cpp='$CPP $CPPFLAGS' |
| 22175 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22176 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22177 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22178 | |
| 22179 | |
| 22180 | fi |
| 22181 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 22182 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6 |
| 22183 | if test "$ac_cv_func_mmap_file" = yes; then |
| 22184 | cat >>confdefs.h <<\_ACEOF |
| 22185 | #define HAVE_MMAP_FILE 1 |
| 22186 | _ACEOF |
| 22187 | |
| 22188 | MMAP_FILE=yes |
| 22189 | |
| 22190 | fi |
| 22191 | |
| 22192 | if test ${ac_cv_func_mmap_file} = "no" |
| 22193 | then |
| 22194 | { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5 |
| 22195 | echo "$as_me: error: mmap() of files required but not found" >&2;} |
| 22196 | { (exit 1); exit 1; }; } |
| 22197 | fi |
| 22198 | echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 22199 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6 |
| 22200 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 22201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22202 | else |
| 22203 | |
| 22204 | |
| 22205 | ac_ext=c |
| 22206 | ac_cpp='$CPP $CPPFLAGS' |
| 22207 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22208 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22209 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22210 | |
| 22211 | cat >conftest.$ac_ext <<_ACEOF |
| 22212 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22213 | /* confdefs.h. */ |
| 22214 | _ACEOF |
| 22215 | cat confdefs.h >>conftest.$ac_ext |
| 22216 | cat >>conftest.$ac_ext <<_ACEOF |
| 22217 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22218 | #include <sys/mman.h> |
| 22219 | #include <unistd.h> |
| 22220 | #include <fcntl.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22221 | int |
| 22222 | main () |
| 22223 | { |
| 22224 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 22225 | ; |
| 22226 | return 0; |
| 22227 | } |
| 22228 | _ACEOF |
| 22229 | rm -f conftest.$ac_objext |
| 22230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22231 | (eval $ac_compile) 2>&5 |
| 22232 | ac_status=$? |
| 22233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22234 | (exit $ac_status); } && |
| 22235 | { ac_try='test -s conftest.$ac_objext' |
| 22236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22237 | (eval $ac_try) 2>&5 |
| 22238 | ac_status=$? |
| 22239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22240 | (exit $ac_status); }; }; then |
| 22241 | ac_cv_header_mmap_anon=yes |
| 22242 | else |
| 22243 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22245 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22246 | ac_cv_header_mmap_anon=no |
| 22247 | fi |
| 22248 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 22249 | ac_ext=c |
| 22250 | ac_cpp='$CPP $CPPFLAGS' |
| 22251 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22252 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22253 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22254 | |
| 22255 | |
| 22256 | fi |
| 22257 | echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 22258 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6 |
| 22259 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 22260 | cat >>confdefs.h <<\_ACEOF |
| 22261 | #define HAVE_MMAP_ANONYMOUS 1 |
| 22262 | _ACEOF |
| 22263 | |
| 22264 | fi |
| 22265 | |
| 22266 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 22267 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 22268 | if test "${ac_cv_type_signal+set}" = set; then |
| 22269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22270 | else |
| 22271 | cat >conftest.$ac_ext <<_ACEOF |
| 22272 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22273 | /* confdefs.h. */ |
| 22274 | _ACEOF |
| 22275 | cat confdefs.h >>conftest.$ac_ext |
| 22276 | cat >>conftest.$ac_ext <<_ACEOF |
| 22277 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22278 | #include <sys/types.h> |
| 22279 | #include <signal.h> |
| 22280 | #ifdef signal |
| 22281 | # undef signal |
| 22282 | #endif |
| 22283 | #ifdef __cplusplus |
| 22284 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 22285 | #else |
| 22286 | void (*signal ()) (); |
| 22287 | #endif |
| 22288 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22289 | int |
| 22290 | main () |
| 22291 | { |
| 22292 | int i; |
| 22293 | ; |
| 22294 | return 0; |
| 22295 | } |
| 22296 | _ACEOF |
| 22297 | rm -f conftest.$ac_objext |
| 22298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22299 | (eval $ac_compile) 2>&5 |
| 22300 | ac_status=$? |
| 22301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22302 | (exit $ac_status); } && |
| 22303 | { ac_try='test -s conftest.$ac_objext' |
| 22304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22305 | (eval $ac_try) 2>&5 |
| 22306 | ac_status=$? |
| 22307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22308 | (exit $ac_status); }; }; then |
| 22309 | ac_cv_type_signal=void |
| 22310 | else |
| 22311 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22313 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22314 | ac_cv_type_signal=int |
| 22315 | fi |
| 22316 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 22317 | fi |
| 22318 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 22319 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 22320 | |
| 22321 | cat >>confdefs.h <<_ACEOF |
| 22322 | #define RETSIGTYPE $ac_cv_type_signal |
| 22323 | _ACEOF |
| 22324 | |
| 22325 | |
| 22326 | |
| 22327 | |
| 22328 | |
| 22329 | |
| 22330 | |
| 22331 | |
| 22332 | |
| 22333 | |
| 22334 | |
| 22335 | for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol |
| 22336 | do |
| 22337 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22338 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22339 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 22340 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 22341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22342 | else |
| 22343 | cat >conftest.$ac_ext <<_ACEOF |
| 22344 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22345 | /* confdefs.h. */ |
| 22346 | _ACEOF |
| 22347 | cat confdefs.h >>conftest.$ac_ext |
| 22348 | cat >>conftest.$ac_ext <<_ACEOF |
| 22349 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22350 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22351 | which can conflict with char $ac_func (); below. |
| 22352 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22353 | <limits.h> exists even on freestanding compilers. */ |
| 22354 | #ifdef __STDC__ |
| 22355 | # include <limits.h> |
| 22356 | #else |
| 22357 | # include <assert.h> |
| 22358 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22359 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 22360 | #ifdef __cplusplus |
| 22361 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22362 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22363 | #endif |
| 22364 | /* We use char because int might match the return type of a gcc2 |
| 22365 | builtin and then its argument prototype would still apply. */ |
| 22366 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22367 | /* The GNU C library defines this for functions which it implements |
| 22368 | to always fail with ENOSYS. Some functions are actually named |
| 22369 | something starting with __ and the normal name is an alias. */ |
| 22370 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 22371 | choke me |
| 22372 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22373 | char (*f) () = $ac_func; |
| 22374 | #endif |
| 22375 | #ifdef __cplusplus |
| 22376 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22377 | #endif |
| 22378 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22379 | int |
| 22380 | main () |
| 22381 | { |
| 22382 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22383 | ; |
| 22384 | return 0; |
| 22385 | } |
| 22386 | _ACEOF |
| 22387 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22389 | (eval $ac_link) 2>&5 |
| 22390 | ac_status=$? |
| 22391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22392 | (exit $ac_status); } && |
| 22393 | { ac_try='test -s conftest$ac_exeext' |
| 22394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22395 | (eval $ac_try) 2>&5 |
| 22396 | ac_status=$? |
| 22397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22398 | (exit $ac_status); }; }; then |
| 22399 | eval "$as_ac_var=yes" |
| 22400 | else |
| 22401 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22402 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22403 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22404 | eval "$as_ac_var=no" |
| 22405 | fi |
| 22406 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 22407 | fi |
| 22408 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 22409 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 22410 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 22411 | cat >>confdefs.h <<_ACEOF |
| 22412 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 22413 | _ACEOF |
| 22414 | |
| 22415 | fi |
| 22416 | done |
| 22417 | |
| 22418 | |
| 22419 | |
| 22420 | echo "$as_me:$LINENO: checking for mmap" >&5 |
| 22421 | echo $ECHO_N "checking for mmap... $ECHO_C" >&6 |
| 22422 | if test "${ac_cv_func_mmap+set}" = set; then |
| 22423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22424 | else |
| 22425 | cat >conftest.$ac_ext <<_ACEOF |
| 22426 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22427 | /* confdefs.h. */ |
| 22428 | _ACEOF |
| 22429 | cat confdefs.h >>conftest.$ac_ext |
| 22430 | cat >>conftest.$ac_ext <<_ACEOF |
| 22431 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22432 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22433 | which can conflict with char mmap (); below. |
| 22434 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22435 | <limits.h> exists even on freestanding compilers. */ |
| 22436 | #ifdef __STDC__ |
| 22437 | # include <limits.h> |
| 22438 | #else |
| 22439 | # include <assert.h> |
| 22440 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22441 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 22442 | #ifdef __cplusplus |
| 22443 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22444 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22445 | #endif |
| 22446 | /* We use char because int might match the return type of a gcc2 |
| 22447 | builtin and then its argument prototype would still apply. */ |
| 22448 | char mmap (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22449 | /* The GNU C library defines this for functions which it implements |
| 22450 | to always fail with ENOSYS. Some functions are actually named |
| 22451 | something starting with __ and the normal name is an alias. */ |
| 22452 | #if defined (__stub_mmap) || defined (__stub___mmap) |
| 22453 | choke me |
| 22454 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22455 | char (*f) () = mmap; |
| 22456 | #endif |
| 22457 | #ifdef __cplusplus |
| 22458 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22459 | #endif |
| 22460 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22461 | int |
| 22462 | main () |
| 22463 | { |
| 22464 | return f != mmap; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22465 | ; |
| 22466 | return 0; |
| 22467 | } |
| 22468 | _ACEOF |
| 22469 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22471 | (eval $ac_link) 2>&5 |
| 22472 | ac_status=$? |
| 22473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22474 | (exit $ac_status); } && |
| 22475 | { ac_try='test -s conftest$ac_exeext' |
| 22476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22477 | (eval $ac_try) 2>&5 |
| 22478 | ac_status=$? |
| 22479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22480 | (exit $ac_status); }; }; then |
| 22481 | ac_cv_func_mmap=yes |
| 22482 | else |
| 22483 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22485 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22486 | ac_cv_func_mmap=no |
| 22487 | fi |
| 22488 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 22489 | fi |
| 22490 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5 |
| 22491 | echo "${ECHO_T}$ac_cv_func_mmap" >&6 |
| 22492 | if test $ac_cv_func_mmap = yes; then |
| 22493 | : |
| 22494 | else |
| 22495 | { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5 |
| 22496 | echo "$as_me: error: Function mmap() required but not found" >&2;} |
| 22497 | { (exit 1); exit 1; }; } |
| 22498 | fi |
| 22499 | |
| 22500 | echo "$as_me:$LINENO: checking for mprotect" >&5 |
| 22501 | echo $ECHO_N "checking for mprotect... $ECHO_C" >&6 |
| 22502 | if test "${ac_cv_func_mprotect+set}" = set; then |
| 22503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22504 | else |
| 22505 | cat >conftest.$ac_ext <<_ACEOF |
| 22506 | #line $LINENO "configure" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22507 | /* confdefs.h. */ |
| 22508 | _ACEOF |
| 22509 | cat confdefs.h >>conftest.$ac_ext |
| 22510 | cat >>conftest.$ac_ext <<_ACEOF |
| 22511 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22512 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22513 | which can conflict with char mprotect (); below. |
| 22514 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22515 | <limits.h> exists even on freestanding compilers. */ |
| 22516 | #ifdef __STDC__ |
| 22517 | # include <limits.h> |
| 22518 | #else |
| 22519 | # include <assert.h> |
| 22520 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22521 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 22522 | #ifdef __cplusplus |
| 22523 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22524 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22525 | #endif |
| 22526 | /* We use char because int might match the return type of a gcc2 |
| 22527 | builtin and then its argument prototype would still apply. */ |
| 22528 | char mprotect (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22529 | /* The GNU C library defines this for functions which it implements |
| 22530 | to always fail with ENOSYS. Some functions are actually named |
| 22531 | something starting with __ and the normal name is an alias. */ |
| 22532 | #if defined (__stub_mprotect) || defined (__stub___mprotect) |
| 22533 | choke me |
| 22534 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22535 | char (*f) () = mprotect; |
| 22536 | #endif |
| 22537 | #ifdef __cplusplus |
| 22538 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22539 | #endif |
| 22540 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22541 | int |
| 22542 | main () |
| 22543 | { |
| 22544 | return f != mprotect; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22545 | ; |
| 22546 | return 0; |
| 22547 | } |
| 22548 | _ACEOF |
| 22549 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22550 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22551 | (eval $ac_link) 2>&5 |
| 22552 | ac_status=$? |
| 22553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22554 | (exit $ac_status); } && |
| 22555 | { ac_try='test -s conftest$ac_exeext' |
| 22556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22557 | (eval $ac_try) 2>&5 |
| 22558 | ac_status=$? |
| 22559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22560 | (exit $ac_status); }; }; then |
| 22561 | ac_cv_func_mprotect=yes |
| 22562 | else |
| 22563 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22565 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22566 | ac_cv_func_mprotect=no |
| 22567 | fi |
| 22568 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 22569 | fi |
| 22570 | echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 |
| 22571 | echo "${ECHO_T}$ac_cv_func_mprotect" >&6 |
| 22572 | if test $ac_cv_func_mprotect = yes; then |
| 22573 | : |
| 22574 | else |
| 22575 | { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 |
| 22576 | echo "$as_me: error: Function mprotect() required but not found" >&2;} |
| 22577 | { (exit 1); exit 1; }; } |
| 22578 | fi |
| 22579 | |
| 22580 | |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 22581 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22582 | # Check whether --enable-purify or --disable-purify was given. |
| 22583 | if test "${enable_purify+set}" = set; then |
| 22584 | enableval="$enable_purify" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22585 | |
| 22586 | else |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 22587 | enableval="no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22588 | fi; |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 22589 | if test ${enableval} = "no" |
| 22590 | then |
| 22591 | ENABLE_PURIFY= |
| 22592 | |
| 22593 | else |
| 22594 | ENABLE_PURIFY=ENABLE_PURIFY=1 |
| 22595 | |
| 22596 | fi |
| 22597 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22598 | # Check whether --enable-optimized or --disable-optimized was given. |
| 22599 | if test "${enable_optimized+set}" = set; then |
| 22600 | enableval="$enable_optimized" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22601 | |
| 22602 | else |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 22603 | enableval=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22604 | fi; |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 22605 | if test ${enableval} = "no" |
| 22606 | then |
| 22607 | ENABLE_OPTIMIZED= |
| 22608 | |
| 22609 | else |
| 22610 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 22611 | |
| 22612 | fi |
| 22613 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22614 | # Check whether --enable-spec or --disable-spec was given. |
| 22615 | if test "${enable_spec+set}" = set; then |
| 22616 | enableval="$enable_spec" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22617 | |
| 22618 | else |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 22619 | enableval=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22620 | fi; |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 22621 | if test ${enableval} = "no" |
| 22622 | then |
| 22623 | USE_SPEC= |
| 22624 | |
| 22625 | else |
| 22626 | USE_SPEC=USE_SPEC=1 |
| 22627 | |
| 22628 | fi |
| 22629 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22630 | # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given. |
| 22631 | if test "${enable_precompiled_bytecode+set}" = set; then |
| 22632 | enableval="$enable_precompiled_bytecode" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22633 | |
| 22634 | else |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 22635 | enableval=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22636 | fi; |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 22637 | if test ${enableval} = "no" |
| 22638 | then |
| 22639 | UPB= |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 22640 | |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 22641 | else |
| 22642 | UPB=USE_PRECOMPILED_BYTECODE=1 |
| 22643 | |
| 22644 | fi |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 22645 | |
| 22646 | |
| 22647 | # Check whether --enable-llc_diffs or --disable-llc_diffs was given. |
| 22648 | if test "${enable_llc_diffs+set}" = set; then |
| 22649 | enableval="$enable_llc_diffs" |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 22650 | |
| 22651 | else |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 22652 | enableval=yes |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 22653 | fi; |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 22654 | if test ${enableval} = "no" |
| 22655 | then |
| 22656 | DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1 |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 22657 | |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 22658 | else |
| 22659 | DISABLE_LLC_DIFFS= |
| 22660 | |
| 22661 | fi |
| 22662 | |
| 22663 | # Check whether --enable-jit or --disable-jit was given. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22664 | if test "${enable_jit+set}" = set; then |
| 22665 | enableval="$enable_jit" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22666 | |
| 22667 | else |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 22668 | enableval=default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22669 | fi; |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 22670 | |
| 22671 | if test ${enableval} = "no" |
| 22672 | then |
| 22673 | JIT= |
| 22674 | |
| 22675 | else |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 22676 | case $target in |
| 22677 | *i*86*) |
| 22678 | JIT=TARGET_HAS_JIT=1 |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 22679 | |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 22680 | ;; |
| 22681 | *sparc*) |
| 22682 | JIT=TARGET_HAS_JIT=1 |
| 22683 | |
| 22684 | ;; |
| 22685 | *) |
| 22686 | JIT= |
| 22687 | |
| 22688 | ;; |
| 22689 | esac |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 22690 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22691 | |
| 22692 | |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 22693 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22694 | # Check whether --with-spec or --without-spec was given. |
| 22695 | if test "${with_spec+set}" = set; then |
| 22696 | withval="$with_spec" |
| 22697 | SPEC_ROOT=$withval |
| 22698 | |
| 22699 | else |
| 22700 | SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec |
| 22701 | |
| 22702 | fi; |
| 22703 | |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 22704 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22705 | # Check whether --with-llvmgccdir or --without-llvmgccdir was given. |
| 22706 | if test "${with_llvmgccdir+set}" = set; then |
| 22707 | withval="$with_llvmgccdir" |
| 22708 | LLVMGCCDIR=$withval |
| 22709 | |
| 22710 | fi; |
| 22711 | |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 22712 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22713 | # Check whether --with-bcrepos or --without-bcrepos was given. |
| 22714 | if test "${with_bcrepos+set}" = set; then |
| 22715 | withval="$with_bcrepos" |
| 22716 | BCR=$withval |
| 22717 | |
| 22718 | else |
| 22719 | BCR=/home/vadve/lattner/LLVMPrograms |
| 22720 | |
| 22721 | fi; |
| 22722 | |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 22723 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22724 | # Check whether --with-papi or --without-papi was given. |
| 22725 | if test "${with_papi+set}" = set; then |
| 22726 | withval="$with_papi" |
| 22727 | PAPIDIR=$withval |
| 22728 | |
| 22729 | else |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 22730 | PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22731 | |
| 22732 | fi; |
| 22733 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22734 | |
| 22735 | # Check whether --with-purify or --without-purify was given. |
| 22736 | if test "${with_purify+set}" = set; then |
| 22737 | withval="$with_purify" |
| 22738 | PURIFY=$withval |
| 22739 | |
| 22740 | fi; |
| 22741 | |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 22742 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22743 | ac_config_files="$ac_config_files Makefile.config" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22744 | cat >confcache <<\_ACEOF |
| 22745 | # This file is a shell script that caches the results of configure |
| 22746 | # tests run on this system so they can be shared between configure |
| 22747 | # scripts and configure runs, see configure's option --config-cache. |
| 22748 | # It is not useful on other systems. If it contains results you don't |
| 22749 | # want to keep, you may remove or edit it. |
| 22750 | # |
| 22751 | # config.status only pays attention to the cache file if you give it |
| 22752 | # the --recheck option to rerun configure. |
| 22753 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22754 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22755 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 22756 | # following values. |
| 22757 | |
| 22758 | _ACEOF |
| 22759 | |
| 22760 | # The following way of writing the cache mishandles newlines in values, |
| 22761 | # but we know of no workaround that is simple, portable, and efficient. |
| 22762 | # So, don't put newlines in cache variables' values. |
| 22763 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 22764 | # and sets the high bit in the cache file unless we assign to the vars. |
| 22765 | { |
| 22766 | (set) 2>&1 | |
| 22767 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 22768 | *ac_space=\ *) |
| 22769 | # `set' does not quote correctly, so add quotes (double-quote |
| 22770 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 22771 | sed -n \ |
| 22772 | "s/'/'\\\\''/g; |
| 22773 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 22774 | ;; |
| 22775 | *) |
| 22776 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 22777 | sed -n \ |
| 22778 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 22779 | ;; |
| 22780 | esac; |
| 22781 | } | |
| 22782 | sed ' |
| 22783 | t clear |
| 22784 | : clear |
| 22785 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 22786 | t end |
| 22787 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 22788 | : end' >>confcache |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22789 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22790 | if test -w $cache_file; then |
| 22791 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 22792 | cat confcache >$cache_file |
| 22793 | else |
| 22794 | echo "not updating unwritable cache $cache_file" |
| 22795 | fi |
| 22796 | fi |
| 22797 | rm -f confcache |
| 22798 | |
| 22799 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 22800 | # Let make expand exec_prefix. |
| 22801 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 22802 | |
| 22803 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 22804 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 22805 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 22806 | # (actually we leave an empty line to preserve line numbers). |
| 22807 | if test "x$srcdir" = x.; then |
| 22808 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 22809 | s/:*\$(srcdir):*/:/; |
| 22810 | s/:*\${srcdir}:*/:/; |
| 22811 | s/:*@srcdir@:*/:/; |
| 22812 | s/^\([^=]*=[ ]*\):*/\1/; |
| 22813 | s/:*$//; |
| 22814 | s/^[^=]*=[ ]*$//; |
| 22815 | }' |
| 22816 | fi |
| 22817 | |
| 22818 | DEFS=-DHAVE_CONFIG_H |
| 22819 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22820 | ac_libobjs= |
| 22821 | ac_ltlibobjs= |
| 22822 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 22823 | # 1. Remove the extension, and $U if already installed. |
| 22824 | ac_i=`echo "$ac_i" | |
| 22825 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 22826 | # 2. Add them. |
| 22827 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 22828 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 22829 | done |
| 22830 | LIBOBJS=$ac_libobjs |
| 22831 | |
| 22832 | LTLIBOBJS=$ac_ltlibobjs |
| 22833 | |
| 22834 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22835 | |
| 22836 | : ${CONFIG_STATUS=./config.status} |
| 22837 | ac_clean_files_save=$ac_clean_files |
| 22838 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 22839 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 22840 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 22841 | cat >$CONFIG_STATUS <<_ACEOF |
| 22842 | #! $SHELL |
| 22843 | # Generated by $as_me. |
| 22844 | # Run this file to recreate the current configuration. |
| 22845 | # Compiler output produced by configure, useful for debugging |
| 22846 | # configure, is in config.log if it exists. |
| 22847 | |
| 22848 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22849 | ac_cs_recheck=false |
| 22850 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22851 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 22852 | _ACEOF |
| 22853 | |
| 22854 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22855 | ## --------------------- ## |
| 22856 | ## M4sh Initialization. ## |
| 22857 | ## --------------------- ## |
| 22858 | |
| 22859 | # Be Bourne compatible |
| 22860 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 22861 | emulate sh |
| 22862 | NULLCMD=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22863 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 22864 | # is contrary to our usage. Disable this feature. |
| 22865 | alias -g '${1+"$@"}'='"$@"' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22866 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 22867 | set -o posix |
| 22868 | fi |
| 22869 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22870 | # Support unset when possible. |
| 22871 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 22872 | as_unset=unset |
| 22873 | else |
| 22874 | as_unset=false |
| 22875 | fi |
| 22876 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22877 | |
| 22878 | # Work around bugs in pre-3.0 UWIN ksh. |
| 22879 | $as_unset ENV MAIL MAILPATH |
| 22880 | PS1='$ ' |
| 22881 | PS2='> ' |
| 22882 | PS4='+ ' |
| 22883 | |
| 22884 | # NLS nuisances. |
| 22885 | for as_var in \ |
| 22886 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 22887 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 22888 | LC_TELEPHONE LC_TIME |
| 22889 | do |
| 22890 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 22891 | eval $as_var=C; export $as_var |
| 22892 | else |
| 22893 | $as_unset $as_var |
| 22894 | fi |
| 22895 | done |
| 22896 | |
| 22897 | # Required to use basename. |
| 22898 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 22899 | as_expr=expr |
| 22900 | else |
| 22901 | as_expr=false |
| 22902 | fi |
| 22903 | |
| 22904 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 22905 | as_basename=basename |
| 22906 | else |
| 22907 | as_basename=false |
| 22908 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22909 | |
| 22910 | |
| 22911 | # Name of the executable. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22912 | as_me=`$as_basename "$0" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22913 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 22914 | X"$0" : 'X\(//\)$' \| \ |
| 22915 | X"$0" : 'X\(/\)$' \| \ |
| 22916 | . : '\(.\)' 2>/dev/null || |
| 22917 | echo X/"$0" | |
| 22918 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 22919 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 22920 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 22921 | s/.*/./; q'` |
| 22922 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22923 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22924 | # PATH needs CR, and LINENO needs CR and PATH. |
| 22925 | # Avoid depending upon Character Ranges. |
| 22926 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 22927 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 22928 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 22929 | as_cr_digits='0123456789' |
| 22930 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 22931 | |
| 22932 | # The user is always right. |
| 22933 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22934 | echo "#! /bin/sh" >conf$$.sh |
| 22935 | echo "exit 0" >>conf$$.sh |
| 22936 | chmod +x conf$$.sh |
| 22937 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22938 | PATH_SEPARATOR=';' |
| 22939 | else |
| 22940 | PATH_SEPARATOR=: |
| 22941 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22942 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22943 | fi |
| 22944 | |
| 22945 | |
| 22946 | as_lineno_1=$LINENO |
| 22947 | as_lineno_2=$LINENO |
| 22948 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 22949 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 22950 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 22951 | # Find who we are. Look in the path if we contain no path at all |
| 22952 | # relative or not. |
| 22953 | case $0 in |
| 22954 | *[\\/]* ) as_myself=$0 ;; |
| 22955 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22956 | for as_dir in $PATH |
| 22957 | do |
| 22958 | IFS=$as_save_IFS |
| 22959 | test -z "$as_dir" && as_dir=. |
| 22960 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 22961 | done |
| 22962 | |
| 22963 | ;; |
| 22964 | esac |
| 22965 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 22966 | # in which case we are not to be found in the path. |
| 22967 | if test "x$as_myself" = x; then |
| 22968 | as_myself=$0 |
| 22969 | fi |
| 22970 | if test ! -f "$as_myself"; then |
| 22971 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 22972 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 22973 | { (exit 1); exit 1; }; } |
| 22974 | fi |
| 22975 | case $CONFIG_SHELL in |
| 22976 | '') |
| 22977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22978 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 22979 | do |
| 22980 | IFS=$as_save_IFS |
| 22981 | test -z "$as_dir" && as_dir=. |
| 22982 | for as_base in sh bash ksh sh5; do |
| 22983 | case $as_dir in |
| 22984 | /*) |
| 22985 | if ("$as_dir/$as_base" -c ' |
| 22986 | as_lineno_1=$LINENO |
| 22987 | as_lineno_2=$LINENO |
| 22988 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 22989 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 22990 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22991 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 22992 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22993 | CONFIG_SHELL=$as_dir/$as_base |
| 22994 | export CONFIG_SHELL |
| 22995 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 22996 | fi;; |
| 22997 | esac |
| 22998 | done |
| 22999 | done |
| 23000 | ;; |
| 23001 | esac |
| 23002 | |
| 23003 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 23004 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 23005 | # line-number line before each line; the second 'sed' does the real |
| 23006 | # work. The second script uses 'N' to pair each line-number line |
| 23007 | # with the numbered line, and appends trailing '-' during |
| 23008 | # substitution so that $LINENO is not a special case at line end. |
| 23009 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 23010 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 23011 | sed '=' <$as_myself | |
| 23012 | sed ' |
| 23013 | N |
| 23014 | s,$,-, |
| 23015 | : loop |
| 23016 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 23017 | t loop |
| 23018 | s,-$,, |
| 23019 | s,^['$as_cr_digits']*\n,, |
| 23020 | ' >$as_me.lineno && |
| 23021 | chmod +x $as_me.lineno || |
| 23022 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 23023 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 23024 | { (exit 1); exit 1; }; } |
| 23025 | |
| 23026 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 23027 | # (the dirname of $[0] is not the place where we might find the |
| 23028 | # original and so on. Autoconf is especially sensible to this). |
| 23029 | . ./$as_me.lineno |
| 23030 | # Exit status is that of the last command. |
| 23031 | exit |
| 23032 | } |
| 23033 | |
| 23034 | |
| 23035 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 23036 | *c*,-n*) ECHO_N= ECHO_C=' |
| 23037 | ' ECHO_T=' ' ;; |
| 23038 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 23039 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 23040 | esac |
| 23041 | |
| 23042 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 23043 | as_expr=expr |
| 23044 | else |
| 23045 | as_expr=false |
| 23046 | fi |
| 23047 | |
| 23048 | rm -f conf$$ conf$$.exe conf$$.file |
| 23049 | echo >conf$$.file |
| 23050 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 23051 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 23052 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 23053 | if test -f conf$$.exe; then |
| 23054 | # Don't use ln at all; we don't have any links |
| 23055 | as_ln_s='cp -p' |
| 23056 | else |
| 23057 | as_ln_s='ln -s' |
| 23058 | fi |
| 23059 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 23060 | as_ln_s=ln |
| 23061 | else |
| 23062 | as_ln_s='cp -p' |
| 23063 | fi |
| 23064 | rm -f conf$$ conf$$.exe conf$$.file |
| 23065 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23066 | if mkdir -p . 2>/dev/null; then |
| 23067 | as_mkdir_p=: |
| 23068 | else |
| 23069 | as_mkdir_p=false |
| 23070 | fi |
| 23071 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23072 | as_executable_p="test -f" |
| 23073 | |
| 23074 | # Sed expression to map a string onto a valid CPP name. |
| 23075 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 23076 | |
| 23077 | # Sed expression to map a string onto a valid variable name. |
| 23078 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 23079 | |
| 23080 | |
| 23081 | # IFS |
| 23082 | # We need space, tab and new line, in precisely that order. |
| 23083 | as_nl=' |
| 23084 | ' |
| 23085 | IFS=" $as_nl" |
| 23086 | |
| 23087 | # CDPATH. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23088 | $as_unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23089 | |
| 23090 | exec 6>&1 |
| 23091 | |
| 23092 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 23093 | # report actual input values of CONFIG_FILES etc. instead of their |
| 23094 | # values after options handling. Logging --version etc. is OK. |
| 23095 | exec 5>>config.log |
| 23096 | { |
| 23097 | echo |
| 23098 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 23099 | ## Running $as_me. ## |
| 23100 | _ASBOX |
| 23101 | } >&5 |
| 23102 | cat >&5 <<_CSEOF |
| 23103 | |
| 23104 | This file was extended by [LLVM] $as_me [1.0], which was |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23105 | generated by GNU Autoconf 2.57. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23106 | |
| 23107 | CONFIG_FILES = $CONFIG_FILES |
| 23108 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 23109 | CONFIG_LINKS = $CONFIG_LINKS |
| 23110 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 23111 | $ $0 $@ |
| 23112 | |
| 23113 | _CSEOF |
| 23114 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 23115 | echo >&5 |
| 23116 | _ACEOF |
| 23117 | |
| 23118 | # Files that config.status was made for. |
| 23119 | if test -n "$ac_config_files"; then |
| 23120 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 23121 | fi |
| 23122 | |
| 23123 | if test -n "$ac_config_headers"; then |
| 23124 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 23125 | fi |
| 23126 | |
| 23127 | if test -n "$ac_config_links"; then |
| 23128 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 23129 | fi |
| 23130 | |
| 23131 | if test -n "$ac_config_commands"; then |
| 23132 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 23133 | fi |
| 23134 | |
| 23135 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23136 | |
| 23137 | ac_cs_usage="\ |
| 23138 | \`$as_me' instantiates files from templates according to the |
| 23139 | current configuration. |
| 23140 | |
| 23141 | Usage: $0 [OPTIONS] [FILE]... |
| 23142 | |
| 23143 | -h, --help print this help, then exit |
| 23144 | -V, --version print version number, then exit |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23145 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23146 | -d, --debug don't remove temporary files |
| 23147 | --recheck update $as_me by reconfiguring in the same conditions |
| 23148 | --file=FILE[:TEMPLATE] |
| 23149 | instantiate the configuration file FILE |
| 23150 | --header=FILE[:TEMPLATE] |
| 23151 | instantiate the configuration header FILE |
| 23152 | |
| 23153 | Configuration files: |
| 23154 | $config_files |
| 23155 | |
| 23156 | Configuration headers: |
| 23157 | $config_headers |
| 23158 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23159 | Configuration commands: |
| 23160 | $config_commands |
| 23161 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23162 | Report bugs to <bug-autoconf@gnu.org>." |
| 23163 | _ACEOF |
| 23164 | |
| 23165 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23166 | ac_cs_version="\\ |
| 23167 | [LLVM] config.status [1.0] |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23168 | configured by $0, generated by GNU Autoconf 2.57, |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23169 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 23170 | |
| 23171 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 23172 | Free Software Foundation, Inc. |
| 23173 | This config.status script is free software; the Free Software Foundation |
| 23174 | gives unlimited permission to copy, distribute and modify it." |
| 23175 | srcdir=$srcdir |
| 23176 | INSTALL="$INSTALL" |
| 23177 | _ACEOF |
| 23178 | |
| 23179 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23180 | # If no file are specified by the user, then we need to provide default |
| 23181 | # value. By we need to know if files were specified by the user. |
| 23182 | ac_need_defaults=: |
| 23183 | while test $# != 0 |
| 23184 | do |
| 23185 | case $1 in |
| 23186 | --*=*) |
| 23187 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 23188 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23189 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23190 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23191 | -*) |
| 23192 | ac_option=$1 |
| 23193 | ac_optarg=$2 |
| 23194 | ac_shift=shift |
| 23195 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23196 | *) # This is not an option, so the user has probably given explicit |
| 23197 | # arguments. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23198 | ac_option=$1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23199 | ac_need_defaults=false;; |
| 23200 | esac |
| 23201 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23202 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23203 | # Handling of the options. |
| 23204 | _ACEOF |
John Criswell | d9cd144 | 2003-09-09 20:52:17 +0000 | [diff] [blame] | 23205 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23206 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 23207 | ac_cs_recheck=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23208 | --version | --vers* | -V ) |
| 23209 | echo "$ac_cs_version"; exit 0 ;; |
| 23210 | --he | --h) |
| 23211 | # Conflict between --help and --header |
| 23212 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 23213 | Try \`$0 --help' for more information." >&5 |
| 23214 | echo "$as_me: error: ambiguous option: $1 |
| 23215 | Try \`$0 --help' for more information." >&2;} |
| 23216 | { (exit 1); exit 1; }; };; |
| 23217 | --help | --hel | -h ) |
| 23218 | echo "$ac_cs_usage"; exit 0 ;; |
| 23219 | --debug | --d* | -d ) |
| 23220 | debug=: ;; |
| 23221 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23222 | $ac_shift |
| 23223 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23224 | ac_need_defaults=false;; |
| 23225 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23226 | $ac_shift |
| 23227 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23228 | ac_need_defaults=false;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23229 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 23230 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 23231 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23232 | |
| 23233 | # This is an error. |
| 23234 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 23235 | Try \`$0 --help' for more information." >&5 |
| 23236 | echo "$as_me: error: unrecognized option: $1 |
| 23237 | Try \`$0 --help' for more information." >&2;} |
| 23238 | { (exit 1); exit 1; }; } ;; |
| 23239 | |
| 23240 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 23241 | |
| 23242 | esac |
| 23243 | shift |
| 23244 | done |
| 23245 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23246 | ac_configure_extra_args= |
| 23247 | |
| 23248 | if $ac_cs_silent; then |
| 23249 | exec 6>/dev/null |
| 23250 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 23251 | fi |
| 23252 | |
| 23253 | _ACEOF |
| 23254 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23255 | if \$ac_cs_recheck; then |
| 23256 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 23257 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 23258 | fi |
| 23259 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23260 | _ACEOF |
| 23261 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23262 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23263 | # |
| 23264 | # INIT-COMMANDS section. |
| 23265 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23266 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23267 | ${srcdir}/autoconf/mkinstalldirs `dirname Makefile` |
| 23268 | ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common` |
| 23269 | ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules` |
| 23270 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile` |
| 23271 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile` |
| 23272 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile` |
| 23273 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile` |
| 23274 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile` |
| 23275 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile` |
| 23276 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile` |
| 23277 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile` |
| 23278 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile` |
| 23279 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile` |
| 23280 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile` |
| 23281 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile` |
| 23282 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile` |
| 23283 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23284 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile` |
| 23285 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile` |
| 23286 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile` |
| 23287 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile` |
| 23288 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile` |
| 23289 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile` |
| 23290 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile` |
| 23291 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile` |
| 23292 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile` |
| 23293 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile` |
| 23294 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile` |
| 23295 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile` |
| 23296 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile` |
| 23297 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile` |
| 23298 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile` |
| 23299 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile` |
| 23300 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile` |
| 23301 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
| 23302 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile` |
| 23303 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile` |
| 23304 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile` |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 23305 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile` |
| 23306 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libexception/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23307 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile` |
| 23308 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile` |
| 23309 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile` |
| 23310 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile` |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 23311 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23312 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile` |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 23313 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile` |
| 23314 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23315 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile` |
| 23316 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile` |
| 23317 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile` |
| 23318 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
| 23319 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile` |
| 23320 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs` |
| 23321 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile` |
| 23322 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report` |
| 23323 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report` |
| 23324 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report` |
| 23325 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile` |
| 23326 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile` |
| 23327 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile` |
| 23328 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile` |
| 23329 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report` |
| 23330 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile` |
| 23331 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report` |
| 23332 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile` |
| 23333 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot` |
| 23334 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile` |
| 23335 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile` |
| 23336 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile` |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 23337 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23338 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile` |
| 23339 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile` |
| 23340 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile` |
| 23341 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile` |
| 23342 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile` |
| 23343 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile` |
| 23344 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile` |
| 23345 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile` |
| 23346 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile` |
| 23347 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile` |
| 23348 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile` |
| 23349 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile` |
| 23350 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile` |
| 23351 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile` |
| 23352 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile` |
| 23353 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile` |
| 23354 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile` |
| 23355 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc` |
| 23356 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Burg/Makefile` |
| 23357 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Fhourstones/Makefile` |
| 23358 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/Makefile` |
| 23359 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/01-qbsort/Makefile` |
| 23360 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/03-testtrie/Makefile` |
| 23361 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/04-bisect/Makefile` |
| 23362 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/05-eks/Makefile` |
| 23363 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/08-main/Makefile` |
| 23364 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/09-vor/Makefile` |
| 23365 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/12-IOtest/Makefile` |
| 23366 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/15-trie/Makefile` |
| 23367 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/17-bintr/Makefile` |
| 23368 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/18-imp/Makefile` |
| 23369 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/Makefile` |
| 23370 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/bh/Makefile` |
| 23371 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/bisort/Makefile` |
| 23372 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/em3d/Makefile` |
| 23373 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/health/Makefile` |
| 23374 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/mst/Makefile` |
| 23375 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/perimeter/Makefile` |
| 23376 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/power/Makefile` |
| 23377 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/treeadd/Makefile` |
| 23378 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/tsp/Makefile` |
| 23379 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/voronoi/Makefile` |
| 23380 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/OptimizerEval/Makefile` |
| 23381 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/Makefile` |
| 23382 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/anagram/Makefile` |
| 23383 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/bc/Makefile` |
| 23384 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/ft/Makefile` |
| 23385 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/ks/Makefile` |
| 23386 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/yacr2/Makefile` |
| 23387 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/aha/Makefile` |
| 23388 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/llubenchmark/Makefile` |
| 23389 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/sgefa/Makefile` |
| 23390 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/sim/Makefile` |
| 23391 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile` |
| 23392 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile` |
| 23393 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile` |
| 23394 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile` |
| 23395 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23396 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile` |
| 23397 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile` |
| 23398 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc` |
John Criswell | ffaaf3b | 2003-09-10 18:38:44 +0000 | [diff] [blame] | 23399 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile` |
| 23400 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile` |
| 23401 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile` |
| 23402 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile` |
| 23403 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile` |
| 23404 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23405 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23406 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile` |
| 23407 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile` |
| 23408 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile` |
| 23409 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/as/Makefile` |
| 23410 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile` |
| 23411 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/dis/Makefile` |
| 23412 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile` |
| 23413 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile` |
| 23414 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile` |
| 23415 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/link/Makefile` |
| 23416 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile` |
| 23417 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile` |
| 23418 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile` |
| 23419 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile` |
| 23420 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile` |
| 23421 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile` |
| 23422 | ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile` |
| 23423 | ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile` |
| 23424 | ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile` |
| 23425 | ${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile` |
| 23426 | ${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile` |
| 23427 | ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile` |
| 23428 | ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile` |
| 23429 | ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common` |
| 23430 | ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config` |
| 23431 | ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile` |
| 23432 | ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile` |
| 23433 | ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile` |
| 23434 | ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile` |
| 23435 | ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile` |
| 23436 | ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common` |
| 23437 | ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile` |
| 23438 | ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile` |
| 23439 | |
| 23440 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23441 | |
| 23442 | |
| 23443 | |
| 23444 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23445 | for ac_config_target in $ac_config_targets |
| 23446 | do |
| 23447 | case "$ac_config_target" in |
| 23448 | # Handling of arguments. |
| 23449 | "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23450 | "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 23451 | "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 23452 | "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;; |
| 23453 | "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
| 23454 | "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;; |
| 23455 | "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;; |
| 23456 | "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;; |
| 23457 | "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;; |
| 23458 | "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;; |
| 23459 | "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;; |
| 23460 | "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;; |
| 23461 | "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;; |
| 23462 | "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;; |
| 23463 | "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;; |
| 23464 | "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;; |
| 23465 | "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;; |
| 23466 | "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23467 | "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;; |
| 23468 | "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;; |
| 23469 | "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;; |
| 23470 | "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;; |
| 23471 | "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;; |
| 23472 | "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;; |
| 23473 | "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;; |
| 23474 | "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;; |
| 23475 | "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;; |
| 23476 | "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;; |
| 23477 | "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;; |
| 23478 | "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;; |
| 23479 | "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;; |
| 23480 | "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;; |
| 23481 | "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;; |
| 23482 | "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;; |
| 23483 | "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;; |
| 23484 | "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
| 23485 | "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;; |
| 23486 | "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;; |
| 23487 | "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;; |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 23488 | "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;; |
| 23489 | "runtime/GCCLibraries/libexception/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libexception/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23490 | "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;; |
| 23491 | "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;; |
| 23492 | "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;; |
| 23493 | "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;; |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 23494 | "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23495 | "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;; |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 23496 | "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;; |
| 23497 | "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23498 | "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;; |
| 23499 | "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;; |
| 23500 | "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 23501 | "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
| 23502 | "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;; |
| 23503 | "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;; |
| 23504 | "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;; |
| 23505 | "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;; |
| 23506 | "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;; |
| 23507 | "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;; |
| 23508 | "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;; |
| 23509 | "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;; |
| 23510 | "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;; |
| 23511 | "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;; |
| 23512 | "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;; |
| 23513 | "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;; |
| 23514 | "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;; |
| 23515 | "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;; |
| 23516 | "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;; |
| 23517 | "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;; |
| 23518 | "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;; |
| 23519 | "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;; |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 23520 | "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23521 | "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;; |
| 23522 | "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;; |
| 23523 | "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;; |
| 23524 | "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;; |
| 23525 | "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;; |
| 23526 | "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;; |
| 23527 | "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;; |
| 23528 | "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;; |
| 23529 | "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;; |
| 23530 | "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;; |
| 23531 | "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;; |
| 23532 | "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;; |
| 23533 | "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;; |
| 23534 | "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;; |
| 23535 | "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;; |
| 23536 | "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;; |
| 23537 | "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;; |
| 23538 | "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;; |
| 23539 | "test/Programs/MultiSource/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Burg/Makefile" ;; |
| 23540 | "test/Programs/MultiSource/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Fhourstones/Makefile" ;; |
| 23541 | "test/Programs/MultiSource/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/Makefile" ;; |
| 23542 | "test/Programs/MultiSource/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/01-qbsort/Makefile" ;; |
| 23543 | "test/Programs/MultiSource/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/03-testtrie/Makefile" ;; |
| 23544 | "test/Programs/MultiSource/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/04-bisect/Makefile" ;; |
| 23545 | "test/Programs/MultiSource/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/05-eks/Makefile" ;; |
| 23546 | "test/Programs/MultiSource/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/08-main/Makefile" ;; |
| 23547 | "test/Programs/MultiSource/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/09-vor/Makefile" ;; |
| 23548 | "test/Programs/MultiSource/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/12-IOtest/Makefile" ;; |
| 23549 | "test/Programs/MultiSource/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/15-trie/Makefile" ;; |
| 23550 | "test/Programs/MultiSource/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/17-bintr/Makefile" ;; |
| 23551 | "test/Programs/MultiSource/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/18-imp/Makefile" ;; |
| 23552 | "test/Programs/MultiSource/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/Makefile" ;; |
| 23553 | "test/Programs/MultiSource/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/bh/Makefile" ;; |
| 23554 | "test/Programs/MultiSource/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/bisort/Makefile" ;; |
| 23555 | "test/Programs/MultiSource/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/em3d/Makefile" ;; |
| 23556 | "test/Programs/MultiSource/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/health/Makefile" ;; |
| 23557 | "test/Programs/MultiSource/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/mst/Makefile" ;; |
| 23558 | "test/Programs/MultiSource/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/perimeter/Makefile" ;; |
| 23559 | "test/Programs/MultiSource/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/power/Makefile" ;; |
| 23560 | "test/Programs/MultiSource/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/treeadd/Makefile" ;; |
| 23561 | "test/Programs/MultiSource/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/tsp/Makefile" ;; |
| 23562 | "test/Programs/MultiSource/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/voronoi/Makefile" ;; |
| 23563 | "test/Programs/MultiSource/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/OptimizerEval/Makefile" ;; |
| 23564 | "test/Programs/MultiSource/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/Makefile" ;; |
| 23565 | "test/Programs/MultiSource/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/anagram/Makefile" ;; |
| 23566 | "test/Programs/MultiSource/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/bc/Makefile" ;; |
| 23567 | "test/Programs/MultiSource/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/ft/Makefile" ;; |
| 23568 | "test/Programs/MultiSource/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/ks/Makefile" ;; |
| 23569 | "test/Programs/MultiSource/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/yacr2/Makefile" ;; |
| 23570 | "test/Programs/MultiSource/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/aha/Makefile" ;; |
| 23571 | "test/Programs/MultiSource/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/llubenchmark/Makefile" ;; |
| 23572 | "test/Programs/MultiSource/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/sgefa/Makefile" ;; |
| 23573 | "test/Programs/MultiSource/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/sim/Makefile" ;; |
| 23574 | "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;; |
| 23575 | "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;; |
| 23576 | "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;; |
| 23577 | "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;; |
| 23578 | "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23579 | "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;; |
| 23580 | "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;; |
| 23581 | "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;; |
John Criswell | ffaaf3b | 2003-09-10 18:38:44 +0000 | [diff] [blame] | 23582 | "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;; |
| 23583 | "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;; |
| 23584 | "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;; |
| 23585 | "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;; |
| 23586 | "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;; |
| 23587 | "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23588 | "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23589 | "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;; |
| 23590 | "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 23591 | "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;; |
| 23592 | "tools/as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/as/Makefile" ;; |
| 23593 | "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;; |
| 23594 | "tools/dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/dis/Makefile" ;; |
| 23595 | "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;; |
| 23596 | "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;; |
| 23597 | "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;; |
| 23598 | "tools/link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/link/Makefile" ;; |
| 23599 | "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;; |
| 23600 | "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;; |
| 23601 | "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;; |
| 23602 | "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;; |
| 23603 | "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;; |
| 23604 | "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;; |
| 23605 | "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 23606 | "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;; |
| 23607 | "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;; |
| 23608 | "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;; |
| 23609 | "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;; |
| 23610 | "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
| 23611 | "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;; |
| 23612 | "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;; |
| 23613 | "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;; |
| 23614 | "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;; |
| 23615 | "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;; |
| 23616 | "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;; |
| 23617 | "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;; |
| 23618 | "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;; |
| 23619 | "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;; |
| 23620 | "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;; |
| 23621 | "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23622 | "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;; |
| 23623 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 23624 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 23625 | { (exit 1); exit 1; }; };; |
| 23626 | esac |
| 23627 | done |
| 23628 | |
| 23629 | # If the user did not use the arguments to specify the items to instantiate, |
| 23630 | # then the envvar interface is used. Set only those that are not. |
| 23631 | # We use the long form for the default assignment because of an extremely |
| 23632 | # bizarre bug on SunOS 4.1.3. |
| 23633 | if $ac_need_defaults; then |
| 23634 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 23635 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 23636 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23637 | fi |
| 23638 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23639 | # Have a temporary directory for convenience. Make it in the build tree |
| 23640 | # simply because there is no reason to put it here, and in addition, |
| 23641 | # creating and moving files from /tmp can sometimes cause problems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23642 | # Create a temporary directory, and hook for its removal unless debugging. |
| 23643 | $debug || |
| 23644 | { |
| 23645 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 23646 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 23647 | } |
| 23648 | |
| 23649 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23650 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23651 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23652 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23653 | test -n "$tmp" && test -d "$tmp" |
| 23654 | } || |
| 23655 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23656 | tmp=./confstat$$-$RANDOM |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23657 | (umask 077 && mkdir $tmp) |
| 23658 | } || |
| 23659 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23660 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23661 | { (exit 1); exit 1; } |
| 23662 | } |
| 23663 | |
| 23664 | _ACEOF |
| 23665 | |
| 23666 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23667 | |
| 23668 | # |
| 23669 | # CONFIG_FILES section. |
| 23670 | # |
| 23671 | |
| 23672 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 23673 | # This happens for instance when ./config.status config.h |
| 23674 | if test -n "\$CONFIG_FILES"; then |
| 23675 | # Protect against being on the right side of a sed subst in config.status. |
| 23676 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 23677 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 23678 | s,@SHELL@,$SHELL,;t t |
| 23679 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 23680 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 23681 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 23682 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 23683 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 23684 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 23685 | s,@exec_prefix@,$exec_prefix,;t t |
| 23686 | s,@prefix@,$prefix,;t t |
| 23687 | s,@program_transform_name@,$program_transform_name,;t t |
| 23688 | s,@bindir@,$bindir,;t t |
| 23689 | s,@sbindir@,$sbindir,;t t |
| 23690 | s,@libexecdir@,$libexecdir,;t t |
| 23691 | s,@datadir@,$datadir,;t t |
| 23692 | s,@sysconfdir@,$sysconfdir,;t t |
| 23693 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 23694 | s,@localstatedir@,$localstatedir,;t t |
| 23695 | s,@libdir@,$libdir,;t t |
| 23696 | s,@includedir@,$includedir,;t t |
| 23697 | s,@oldincludedir@,$oldincludedir,;t t |
| 23698 | s,@infodir@,$infodir,;t t |
| 23699 | s,@mandir@,$mandir,;t t |
| 23700 | s,@build_alias@,$build_alias,;t t |
| 23701 | s,@host_alias@,$host_alias,;t t |
| 23702 | s,@target_alias@,$target_alias,;t t |
| 23703 | s,@DEFS@,$DEFS,;t t |
| 23704 | s,@ECHO_C@,$ECHO_C,;t t |
| 23705 | s,@ECHO_N@,$ECHO_N,;t t |
| 23706 | s,@ECHO_T@,$ECHO_T,;t t |
| 23707 | s,@LIBS@,$LIBS,;t t |
| 23708 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 23709 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 23710 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 23711 | s,@build@,$build,;t t |
| 23712 | s,@build_cpu@,$build_cpu,;t t |
| 23713 | s,@build_vendor@,$build_vendor,;t t |
| 23714 | s,@build_os@,$build_os,;t t |
| 23715 | s,@host@,$host,;t t |
| 23716 | s,@host_cpu@,$host_cpu,;t t |
| 23717 | s,@host_vendor@,$host_vendor,;t t |
| 23718 | s,@host_os@,$host_os,;t t |
| 23719 | s,@target@,$target,;t t |
| 23720 | s,@target_cpu@,$target_cpu,;t t |
| 23721 | s,@target_vendor@,$target_vendor,;t t |
| 23722 | s,@target_os@,$target_os,;t t |
| 23723 | s,@OS@,$OS,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23724 | s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 23725 | s,@ARCH@,$ARCH,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23726 | s,@CXX@,$CXX,;t t |
| 23727 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 23728 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 23729 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 23730 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 23731 | s,@EXEEXT@,$EXEEXT,;t t |
| 23732 | s,@OBJEXT@,$OBJEXT,;t t |
| 23733 | s,@CC@,$CC,;t t |
| 23734 | s,@CFLAGS@,$CFLAGS,;t t |
| 23735 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 23736 | s,@CPP@,$CPP,;t t |
| 23737 | s,@ifGNUmake@,$ifGNUmake,;t t |
| 23738 | s,@LEX@,$LEX,;t t |
| 23739 | s,@LEXLIB@,$LEXLIB,;t t |
| 23740 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
| 23741 | s,@YACC@,$YACC,;t t |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23742 | s,@EGREP@,$EGREP,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23743 | s,@LN_S@,$LN_S,;t t |
| 23744 | s,@ECHO@,$ECHO,;t t |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23745 | s,@AR@,$AR,;t t |
| 23746 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23747 | s,@RANLIB@,$RANLIB,;t t |
| 23748 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 23749 | s,@STRIP@,$STRIP,;t t |
| 23750 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23751 | s,@CXXCPP@,$CXXCPP,;t t |
| 23752 | s,@F77@,$F77,;t t |
| 23753 | s,@FFLAGS@,$FFLAGS,;t t |
| 23754 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23755 | s,@LIBTOOL@,$LIBTOOL,;t t |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 23756 | s,@RPWD@,$RPWD,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23757 | s,@SED@,$SED,;t t |
| 23758 | s,@RM@,$RM,;t t |
| 23759 | s,@MKDIR@,$MKDIR,;t t |
| 23760 | s,@DATE@,$DATE,;t t |
| 23761 | s,@MV@,$MV,;t t |
| 23762 | s,@DOT@,$DOT,;t t |
| 23763 | s,@ETAGS@,$ETAGS,;t t |
| 23764 | s,@PURIFY@,$PURIFY,;t t |
John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 23765 | s,@PYTHON@,$PYTHON,;t t |
| 23766 | s,@QMTEST@,$QMTEST,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23767 | s,@ALLOCA@,$ALLOCA,;t t |
| 23768 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 23769 | s,@MMAP_FILE@,$MMAP_FILE,;t t |
| 23770 | s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23771 | s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t |
| 23772 | s,@USE_SPEC@,$USE_SPEC,;t t |
| 23773 | s,@UPB@,$UPB,;t t |
John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 23774 | s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23775 | s,@JIT@,$JIT,;t t |
| 23776 | s,@SPEC_ROOT@,$SPEC_ROOT,;t t |
| 23777 | s,@BCR@,$BCR,;t t |
| 23778 | s,@PAPIDIR@,$PAPIDIR,;t t |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23779 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23780 | CEOF |
| 23781 | |
| 23782 | _ACEOF |
| 23783 | |
| 23784 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23785 | # Split the substitutions into bite-sized pieces for seds with |
| 23786 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 23787 | ac_max_sed_lines=48 |
| 23788 | ac_sed_frag=1 # Number of current file. |
| 23789 | ac_beg=1 # First line for current file. |
| 23790 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 23791 | ac_more_lines=: |
| 23792 | ac_sed_cmds= |
| 23793 | while $ac_more_lines; do |
| 23794 | if test $ac_beg -gt 1; then |
| 23795 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 23796 | else |
| 23797 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 23798 | fi |
| 23799 | if test ! -s $tmp/subs.frag; then |
| 23800 | ac_more_lines=false |
| 23801 | else |
| 23802 | # The purpose of the label and of the branching condition is to |
| 23803 | # speed up the sed processing (if there are no `@' at all, there |
| 23804 | # is no need to browse any of the substitutions). |
| 23805 | # These are the two extra sed commands mentioned above. |
| 23806 | (echo ':t |
| 23807 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 23808 | if test -z "$ac_sed_cmds"; then |
| 23809 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 23810 | else |
| 23811 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 23812 | fi |
| 23813 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 23814 | ac_beg=$ac_end |
| 23815 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 23816 | fi |
| 23817 | done |
| 23818 | if test -z "$ac_sed_cmds"; then |
| 23819 | ac_sed_cmds=cat |
| 23820 | fi |
| 23821 | fi # test -n "$CONFIG_FILES" |
| 23822 | |
| 23823 | _ACEOF |
| 23824 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23825 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 23826 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 23827 | case $ac_file in |
| 23828 | - | *:- | *:-:* ) # input from stdin |
| 23829 | cat >$tmp/stdin |
| 23830 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 23831 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 23832 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 23833 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 23834 | * ) ac_file_in=$ac_file.in ;; |
| 23835 | esac |
| 23836 | |
| 23837 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 23838 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 23839 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23840 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 23841 | X"$ac_file" : 'X\(//\)$' \| \ |
| 23842 | X"$ac_file" : 'X\(/\)' \| \ |
| 23843 | . : '\(.\)' 2>/dev/null || |
| 23844 | echo X"$ac_file" | |
| 23845 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23846 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23847 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23848 | /^X\(\/\).*/{ s//\1/; q; } |
| 23849 | s/.*/./; q'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23850 | { if $as_mkdir_p; then |
| 23851 | mkdir -p "$ac_dir" |
| 23852 | else |
| 23853 | as_dir="$ac_dir" |
| 23854 | as_dirs= |
| 23855 | while test ! -d "$as_dir"; do |
| 23856 | as_dirs="$as_dir $as_dirs" |
| 23857 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 23858 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23859 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 23860 | X"$as_dir" : 'X\(//\)$' \| \ |
| 23861 | X"$as_dir" : 'X\(/\)' \| \ |
| 23862 | . : '\(.\)' 2>/dev/null || |
| 23863 | echo X"$as_dir" | |
| 23864 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23865 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23866 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23867 | /^X\(\/\).*/{ s//\1/; q; } |
| 23868 | s/.*/./; q'` |
| 23869 | done |
| 23870 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 23871 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 23872 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 23873 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23874 | |
| 23875 | ac_builddir=. |
| 23876 | |
| 23877 | if test "$ac_dir" != .; then |
| 23878 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 23879 | # A "../" for each directory in $ac_dir_suffix. |
| 23880 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 23881 | else |
| 23882 | ac_dir_suffix= ac_top_builddir= |
| 23883 | fi |
| 23884 | |
| 23885 | case $srcdir in |
| 23886 | .) # No --srcdir option. We are building in place. |
| 23887 | ac_srcdir=. |
| 23888 | if test -z "$ac_top_builddir"; then |
| 23889 | ac_top_srcdir=. |
| 23890 | else |
| 23891 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 23892 | fi ;; |
| 23893 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 23894 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 23895 | ac_top_srcdir=$srcdir ;; |
| 23896 | *) # Relative path. |
| 23897 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 23898 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 23899 | esac |
| 23900 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 23901 | # absolute. |
| 23902 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23903 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23904 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 23905 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 23906 | |
| 23907 | |
| 23908 | case $INSTALL in |
| 23909 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 23910 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 23911 | esac |
| 23912 | |
| 23913 | if test x"$ac_file" != x-; then |
| 23914 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 23915 | echo "$as_me: creating $ac_file" >&6;} |
| 23916 | rm -f "$ac_file" |
| 23917 | fi |
| 23918 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 23919 | # use $as_me), people would be surprised to read: |
| 23920 | # /* config.h. Generated by config.status. */ |
| 23921 | if test x"$ac_file" = x-; then |
| 23922 | configure_input= |
| 23923 | else |
| 23924 | configure_input="$ac_file. " |
| 23925 | fi |
| 23926 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 23927 | sed 's,.*/,,'` by configure." |
| 23928 | |
| 23929 | # First look for the input files in the build tree, otherwise in the |
| 23930 | # src tree. |
| 23931 | ac_file_inputs=`IFS=: |
| 23932 | for f in $ac_file_in; do |
| 23933 | case $f in |
| 23934 | -) echo $tmp/stdin ;; |
| 23935 | [\\/$]*) |
| 23936 | # Absolute (can't be DOS-style, as IFS=:) |
| 23937 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 23938 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 23939 | { (exit 1); exit 1; }; } |
| 23940 | echo $f;; |
| 23941 | *) # Relative |
| 23942 | if test -f "$f"; then |
| 23943 | # Build tree |
| 23944 | echo $f |
| 23945 | elif test -f "$srcdir/$f"; then |
| 23946 | # Source tree |
| 23947 | echo $srcdir/$f |
| 23948 | else |
| 23949 | # /dev/null tree |
| 23950 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 23951 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 23952 | { (exit 1); exit 1; }; } |
| 23953 | fi;; |
| 23954 | esac |
| 23955 | done` || { (exit 1); exit 1; } |
| 23956 | _ACEOF |
| 23957 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23958 | sed "$ac_vpsub |
| 23959 | $extrasub |
| 23960 | _ACEOF |
| 23961 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23962 | :t |
| 23963 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 23964 | s,@configure_input@,$configure_input,;t t |
| 23965 | s,@srcdir@,$ac_srcdir,;t t |
| 23966 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 23967 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 23968 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 23969 | s,@builddir@,$ac_builddir,;t t |
| 23970 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 23971 | s,@top_builddir@,$ac_top_builddir,;t t |
| 23972 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 23973 | s,@INSTALL@,$ac_INSTALL,;t t |
| 23974 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 23975 | rm -f $tmp/stdin |
| 23976 | if test x"$ac_file" != x-; then |
| 23977 | mv $tmp/out $ac_file |
| 23978 | else |
| 23979 | cat $tmp/out |
| 23980 | rm -f $tmp/out |
| 23981 | fi |
| 23982 | |
| 23983 | done |
| 23984 | _ACEOF |
| 23985 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23986 | |
| 23987 | # |
| 23988 | # CONFIG_HEADER section. |
| 23989 | # |
| 23990 | |
| 23991 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 23992 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 23993 | # |
| 23994 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 23995 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 23996 | ac_dB='[ ].*$,\1#\2' |
| 23997 | ac_dC=' ' |
| 23998 | ac_dD=',;t' |
| 23999 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 24000 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 24001 | ac_uB='$,\1#\2define\3' |
| 24002 | ac_uC=' ' |
| 24003 | ac_uD=',;t' |
| 24004 | |
| 24005 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 24006 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 24007 | case $ac_file in |
| 24008 | - | *:- | *:-:* ) # input from stdin |
| 24009 | cat >$tmp/stdin |
| 24010 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 24011 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 24012 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 24013 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 24014 | * ) ac_file_in=$ac_file.in ;; |
| 24015 | esac |
| 24016 | |
| 24017 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 24018 | echo "$as_me: creating $ac_file" >&6;} |
| 24019 | |
| 24020 | # First look for the input files in the build tree, otherwise in the |
| 24021 | # src tree. |
| 24022 | ac_file_inputs=`IFS=: |
| 24023 | for f in $ac_file_in; do |
| 24024 | case $f in |
| 24025 | -) echo $tmp/stdin ;; |
| 24026 | [\\/$]*) |
| 24027 | # Absolute (can't be DOS-style, as IFS=:) |
| 24028 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 24029 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 24030 | { (exit 1); exit 1; }; } |
| 24031 | echo $f;; |
| 24032 | *) # Relative |
| 24033 | if test -f "$f"; then |
| 24034 | # Build tree |
| 24035 | echo $f |
| 24036 | elif test -f "$srcdir/$f"; then |
| 24037 | # Source tree |
| 24038 | echo $srcdir/$f |
| 24039 | else |
| 24040 | # /dev/null tree |
| 24041 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 24042 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 24043 | { (exit 1); exit 1; }; } |
| 24044 | fi;; |
| 24045 | esac |
| 24046 | done` || { (exit 1); exit 1; } |
| 24047 | # Remove the trailing spaces. |
| 24048 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 24049 | |
| 24050 | _ACEOF |
| 24051 | |
| 24052 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 24053 | # `conftest.undefs', that substitutes the proper values into |
| 24054 | # config.h.in to produce config.h. The first handles `#define' |
| 24055 | # templates, and the second `#undef' templates. |
| 24056 | # And first: Protect against being on the right side of a sed subst in |
| 24057 | # config.status. Protect against being in an unquoted here document |
| 24058 | # in config.status. |
| 24059 | rm -f conftest.defines conftest.undefs |
| 24060 | # Using a here document instead of a string reduces the quoting nightmare. |
| 24061 | # Putting comments in sed scripts is not portable. |
| 24062 | # |
| 24063 | # `end' is used to avoid that the second main sed command (meant for |
| 24064 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 24065 | # See the Autoconf documentation for `clear'. |
| 24066 | cat >confdef2sed.sed <<\_ACEOF |
| 24067 | s/[\\&,]/\\&/g |
| 24068 | s,[\\$`],\\&,g |
| 24069 | t clear |
| 24070 | : clear |
| 24071 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 24072 | t end |
| 24073 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 24074 | : end |
| 24075 | _ACEOF |
| 24076 | # If some macros were called several times there might be several times |
| 24077 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 24078 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 24079 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 24080 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 24081 | rm -f confdef2sed.sed |
| 24082 | |
| 24083 | # This sed command replaces #undef with comments. This is necessary, for |
| 24084 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 24085 | # on some systems where configure will not decide to define it. |
| 24086 | cat >>conftest.undefs <<\_ACEOF |
| 24087 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 24088 | _ACEOF |
| 24089 | |
| 24090 | # Break up conftest.defines because some shells have a limit on the size |
| 24091 | # of here documents, and old seds have small limits too (100 cmds). |
| 24092 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24093 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24094 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 24095 | echo ' :' >>$CONFIG_STATUS |
| 24096 | rm -f conftest.tail |
| 24097 | while grep . conftest.defines >/dev/null |
| 24098 | do |
| 24099 | # Write a limited-size here document to $tmp/defines.sed. |
| 24100 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 24101 | # Speed up: don't consider the non `#define' lines. |
| 24102 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 24103 | # Work around the forget-to-reset-the-flag bug. |
| 24104 | echo 't clr' >>$CONFIG_STATUS |
| 24105 | echo ': clr' >>$CONFIG_STATUS |
| 24106 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 24107 | echo 'CEOF |
| 24108 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 24109 | rm -f $tmp/in |
| 24110 | mv $tmp/out $tmp/in |
| 24111 | ' >>$CONFIG_STATUS |
| 24112 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 24113 | rm -f conftest.defines |
| 24114 | mv conftest.tail conftest.defines |
| 24115 | done |
| 24116 | rm -f conftest.defines |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24117 | echo ' fi # grep' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24118 | echo >>$CONFIG_STATUS |
| 24119 | |
| 24120 | # Break up conftest.undefs because some shells have a limit on the size |
| 24121 | # of here documents, and old seds have small limits too (100 cmds). |
| 24122 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 24123 | rm -f conftest.tail |
| 24124 | while grep . conftest.undefs >/dev/null |
| 24125 | do |
| 24126 | # Write a limited-size here document to $tmp/undefs.sed. |
| 24127 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 24128 | # Speed up: don't consider the non `#undef' |
| 24129 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 24130 | # Work around the forget-to-reset-the-flag bug. |
| 24131 | echo 't clr' >>$CONFIG_STATUS |
| 24132 | echo ': clr' >>$CONFIG_STATUS |
| 24133 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 24134 | echo 'CEOF |
| 24135 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 24136 | rm -f $tmp/in |
| 24137 | mv $tmp/out $tmp/in |
| 24138 | ' >>$CONFIG_STATUS |
| 24139 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 24140 | rm -f conftest.undefs |
| 24141 | mv conftest.tail conftest.undefs |
| 24142 | done |
| 24143 | rm -f conftest.undefs |
| 24144 | |
| 24145 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24146 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 24147 | # use $as_me), people would be surprised to read: |
| 24148 | # /* config.h. Generated by config.status. */ |
| 24149 | if test x"$ac_file" = x-; then |
| 24150 | echo "/* Generated by configure. */" >$tmp/config.h |
| 24151 | else |
| 24152 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 24153 | fi |
| 24154 | cat $tmp/in >>$tmp/config.h |
| 24155 | rm -f $tmp/in |
| 24156 | if test x"$ac_file" != x-; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24157 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24158 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 24159 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 24160 | else |
| 24161 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 24162 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24163 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 24164 | X"$ac_file" : 'X\(//\)$' \| \ |
| 24165 | X"$ac_file" : 'X\(/\)' \| \ |
| 24166 | . : '\(.\)' 2>/dev/null || |
| 24167 | echo X"$ac_file" | |
| 24168 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 24169 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 24170 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 24171 | /^X\(\/\).*/{ s//\1/; q; } |
| 24172 | s/.*/./; q'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24173 | { if $as_mkdir_p; then |
| 24174 | mkdir -p "$ac_dir" |
| 24175 | else |
| 24176 | as_dir="$ac_dir" |
| 24177 | as_dirs= |
| 24178 | while test ! -d "$as_dir"; do |
| 24179 | as_dirs="$as_dir $as_dirs" |
| 24180 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 24181 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24182 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 24183 | X"$as_dir" : 'X\(//\)$' \| \ |
| 24184 | X"$as_dir" : 'X\(/\)' \| \ |
| 24185 | . : '\(.\)' 2>/dev/null || |
| 24186 | echo X"$as_dir" | |
| 24187 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 24188 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 24189 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 24190 | /^X\(\/\).*/{ s//\1/; q; } |
| 24191 | s/.*/./; q'` |
| 24192 | done |
| 24193 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 24194 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 24195 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 24196 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24197 | |
| 24198 | rm -f $ac_file |
| 24199 | mv $tmp/config.h $ac_file |
| 24200 | fi |
| 24201 | else |
| 24202 | cat $tmp/config.h |
| 24203 | rm -f $tmp/config.h |
| 24204 | fi |
| 24205 | done |
| 24206 | _ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24207 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24208 | |
| 24209 | # |
| 24210 | # CONFIG_COMMANDS section. |
| 24211 | # |
| 24212 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 24213 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 24214 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 24215 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 24216 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24217 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 24218 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 24219 | X"$ac_dest" : 'X\(/\)' \| \ |
| 24220 | . : '\(.\)' 2>/dev/null || |
| 24221 | echo X"$ac_dest" | |
| 24222 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 24223 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 24224 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 24225 | /^X\(\/\).*/{ s//\1/; q; } |
| 24226 | s/.*/./; q'` |
| 24227 | ac_builddir=. |
| 24228 | |
| 24229 | if test "$ac_dir" != .; then |
| 24230 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 24231 | # A "../" for each directory in $ac_dir_suffix. |
| 24232 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 24233 | else |
| 24234 | ac_dir_suffix= ac_top_builddir= |
| 24235 | fi |
| 24236 | |
| 24237 | case $srcdir in |
| 24238 | .) # No --srcdir option. We are building in place. |
| 24239 | ac_srcdir=. |
| 24240 | if test -z "$ac_top_builddir"; then |
| 24241 | ac_top_srcdir=. |
| 24242 | else |
| 24243 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 24244 | fi ;; |
| 24245 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 24246 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 24247 | ac_top_srcdir=$srcdir ;; |
| 24248 | *) # Relative path. |
| 24249 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 24250 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 24251 | esac |
| 24252 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 24253 | # absolute. |
| 24254 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24255 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24256 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 24257 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 24258 | |
| 24259 | |
| 24260 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 24261 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 24262 | case $ac_dest in |
| 24263 | Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; |
| 24264 | Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; |
| 24265 | Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;; |
| 24266 | lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; |
| 24267 | lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;; |
| 24268 | lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;; |
| 24269 | lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;; |
| 24270 | lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;; |
| 24271 | lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;; |
| 24272 | lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;; |
| 24273 | lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;; |
| 24274 | lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;; |
| 24275 | lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;; |
| 24276 | lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;; |
| 24277 | lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;; |
| 24278 | lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;; |
| 24279 | lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24280 | lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;; |
| 24281 | lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;; |
| 24282 | lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;; |
| 24283 | lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;; |
| 24284 | lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;; |
| 24285 | lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;; |
| 24286 | lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;; |
| 24287 | lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;; |
| 24288 | lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;; |
| 24289 | lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;; |
| 24290 | lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;; |
| 24291 | lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;; |
| 24292 | lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;; |
| 24293 | lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;; |
| 24294 | lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;; |
| 24295 | lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;; |
| 24296 | lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;; |
| 24297 | runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; |
| 24298 | runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;; |
| 24299 | runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;; |
| 24300 | runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;; |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 24301 | runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;; |
| 24302 | runtime/GCCLibraries/libexception/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libexception/Makefile runtime/GCCLibraries/libexception/Makefile ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24303 | runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;; |
| 24304 | runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;; |
| 24305 | runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;; |
| 24306 | runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;; |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 24307 | runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24308 | runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;; |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 24309 | runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;; |
| 24310 | runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24311 | runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;; |
| 24312 | runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;; |
| 24313 | test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; |
| 24314 | test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; |
| 24315 | test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;; |
| 24316 | test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;; |
| 24317 | test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;; |
| 24318 | test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;; |
| 24319 | test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;; |
| 24320 | test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;; |
| 24321 | test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;; |
| 24322 | test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;; |
| 24323 | test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;; |
| 24324 | test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;; |
| 24325 | test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;; |
| 24326 | test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;; |
| 24327 | test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;; |
| 24328 | test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;; |
| 24329 | test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;; |
| 24330 | test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;; |
| 24331 | test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;; |
| 24332 | test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;; |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 24333 | test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24334 | test/Programs/External/SPEC/CFP2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/Makefile test/Programs/External/SPEC/CFP2000/Makefile ;; |
| 24335 | test/Programs/External/SPEC/CFP2000/179.art/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/179.art/Makefile test/Programs/External/SPEC/CFP2000/179.art/Makefile ;; |
| 24336 | test/Programs/External/SPEC/CFP2000/183.equake/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/183.equake/Makefile test/Programs/External/SPEC/CFP2000/183.equake/Makefile ;; |
| 24337 | test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/188.ammp/Makefile test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ;; |
| 24338 | test/Programs/External/SPEC/CINT2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/Makefile test/Programs/External/SPEC/CINT2000/Makefile ;; |
| 24339 | test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/164.gzip/Makefile test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ;; |
| 24340 | test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/175.vpr/Makefile test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ;; |
| 24341 | test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/176.gcc/Makefile test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ;; |
| 24342 | test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/181.mcf/Makefile test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ;; |
| 24343 | test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/186.crafty/Makefile test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ;; |
| 24344 | test/Programs/External/SPEC/CINT2000/197.parser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/197.parser/Makefile test/Programs/External/SPEC/CINT2000/197.parser/Makefile ;; |
| 24345 | test/Programs/External/SPEC/CINT2000/254.gap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/254.gap/Makefile test/Programs/External/SPEC/CINT2000/254.gap/Makefile ;; |
| 24346 | test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/255.vortex/Makefile test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ;; |
| 24347 | test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ;; |
| 24348 | test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/300.twolf/Makefile test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ;; |
| 24349 | test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;; |
| 24350 | test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;; |
| 24351 | test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;; |
| 24352 | test/Programs/MultiSource/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Burg/Makefile test/Programs/MultiSource/Burg/Makefile ;; |
| 24353 | test/Programs/MultiSource/Fhourstones/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Fhourstones/Makefile test/Programs/MultiSource/Fhourstones/Makefile ;; |
| 24354 | test/Programs/MultiSource/McCat/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/Makefile test/Programs/MultiSource/McCat/Makefile ;; |
| 24355 | test/Programs/MultiSource/McCat/01-qbsort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/01-qbsort/Makefile test/Programs/MultiSource/McCat/01-qbsort/Makefile ;; |
| 24356 | test/Programs/MultiSource/McCat/03-testtrie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/03-testtrie/Makefile test/Programs/MultiSource/McCat/03-testtrie/Makefile ;; |
| 24357 | test/Programs/MultiSource/McCat/04-bisect/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/04-bisect/Makefile test/Programs/MultiSource/McCat/04-bisect/Makefile ;; |
| 24358 | test/Programs/MultiSource/McCat/05-eks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/05-eks/Makefile test/Programs/MultiSource/McCat/05-eks/Makefile ;; |
| 24359 | test/Programs/MultiSource/McCat/08-main/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/08-main/Makefile test/Programs/MultiSource/McCat/08-main/Makefile ;; |
| 24360 | test/Programs/MultiSource/McCat/09-vor/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/09-vor/Makefile test/Programs/MultiSource/McCat/09-vor/Makefile ;; |
| 24361 | test/Programs/MultiSource/McCat/12-IOtest/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/12-IOtest/Makefile test/Programs/MultiSource/McCat/12-IOtest/Makefile ;; |
| 24362 | test/Programs/MultiSource/McCat/15-trie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/15-trie/Makefile test/Programs/MultiSource/McCat/15-trie/Makefile ;; |
| 24363 | test/Programs/MultiSource/McCat/17-bintr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/17-bintr/Makefile test/Programs/MultiSource/McCat/17-bintr/Makefile ;; |
| 24364 | test/Programs/MultiSource/McCat/18-imp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/18-imp/Makefile test/Programs/MultiSource/McCat/18-imp/Makefile ;; |
| 24365 | test/Programs/MultiSource/Olden/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/Makefile test/Programs/MultiSource/Olden/Makefile ;; |
| 24366 | test/Programs/MultiSource/Olden/bh/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/bh/Makefile test/Programs/MultiSource/Olden/bh/Makefile ;; |
| 24367 | test/Programs/MultiSource/Olden/bisort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/bisort/Makefile test/Programs/MultiSource/Olden/bisort/Makefile ;; |
| 24368 | test/Programs/MultiSource/Olden/em3d/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/em3d/Makefile test/Programs/MultiSource/Olden/em3d/Makefile ;; |
| 24369 | test/Programs/MultiSource/Olden/health/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/health/Makefile test/Programs/MultiSource/Olden/health/Makefile ;; |
| 24370 | test/Programs/MultiSource/Olden/mst/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/mst/Makefile test/Programs/MultiSource/Olden/mst/Makefile ;; |
| 24371 | test/Programs/MultiSource/Olden/perimeter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/perimeter/Makefile test/Programs/MultiSource/Olden/perimeter/Makefile ;; |
| 24372 | test/Programs/MultiSource/Olden/power/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/power/Makefile test/Programs/MultiSource/Olden/power/Makefile ;; |
| 24373 | test/Programs/MultiSource/Olden/treeadd/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/treeadd/Makefile test/Programs/MultiSource/Olden/treeadd/Makefile ;; |
| 24374 | test/Programs/MultiSource/Olden/tsp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/tsp/Makefile test/Programs/MultiSource/Olden/tsp/Makefile ;; |
| 24375 | test/Programs/MultiSource/Olden/voronoi/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/voronoi/Makefile test/Programs/MultiSource/Olden/voronoi/Makefile ;; |
| 24376 | test/Programs/MultiSource/OptimizerEval/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/OptimizerEval/Makefile test/Programs/MultiSource/OptimizerEval/Makefile ;; |
| 24377 | test/Programs/MultiSource/Ptrdist/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/Makefile test/Programs/MultiSource/Ptrdist/Makefile ;; |
| 24378 | test/Programs/MultiSource/Ptrdist/anagram/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/anagram/Makefile test/Programs/MultiSource/Ptrdist/anagram/Makefile ;; |
| 24379 | test/Programs/MultiSource/Ptrdist/bc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/bc/Makefile test/Programs/MultiSource/Ptrdist/bc/Makefile ;; |
| 24380 | test/Programs/MultiSource/Ptrdist/ft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/ft/Makefile test/Programs/MultiSource/Ptrdist/ft/Makefile ;; |
| 24381 | test/Programs/MultiSource/Ptrdist/ks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/ks/Makefile test/Programs/MultiSource/Ptrdist/ks/Makefile ;; |
| 24382 | test/Programs/MultiSource/Ptrdist/yacr2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/yacr2/Makefile test/Programs/MultiSource/Ptrdist/yacr2/Makefile ;; |
| 24383 | test/Programs/MultiSource/aha/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/aha/Makefile test/Programs/MultiSource/aha/Makefile ;; |
| 24384 | test/Programs/MultiSource/llubenchmark/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/llubenchmark/Makefile test/Programs/MultiSource/llubenchmark/Makefile ;; |
| 24385 | test/Programs/MultiSource/sgefa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/sgefa/Makefile test/Programs/MultiSource/sgefa/Makefile ;; |
| 24386 | test/Programs/MultiSource/sim/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/sim/Makefile test/Programs/MultiSource/sim/Makefile ;; |
| 24387 | test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;; |
| 24388 | test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;; |
| 24389 | test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;; |
| 24390 | test/Programs/NoSource/Moria-5.5.2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Moria-5.5.2/Makefile test/Programs/NoSource/Moria-5.5.2/Makefile ;; |
| 24391 | test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24392 | test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;; |
| 24393 | test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;; |
| 24394 | test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;; |
John Criswell | ffaaf3b | 2003-09-10 18:38:44 +0000 | [diff] [blame] | 24395 | test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;; |
| 24396 | test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;; |
| 24397 | test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ;; |
| 24398 | test/Programs/SingleSource/Benchmarks/Shootout/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Shootout/Makefile test/Programs/SingleSource/Benchmarks/Shootout/Makefile ;; |
| 24399 | test/Programs/SingleSource/Benchmarks/Stanford/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Stanford/Makefile test/Programs/SingleSource/Benchmarks/Stanford/Makefile ;; |
| 24400 | test/Programs/SingleSource/Benchmarks/Misc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Misc/Makefile test/Programs/SingleSource/Benchmarks/Misc/Makefile ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24401 | test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24402 | test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;; |
| 24403 | tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; |
| 24404 | tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;; |
| 24405 | tools/as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/as/Makefile tools/as/Makefile ;; |
| 24406 | tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;; |
| 24407 | tools/dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/dis/Makefile tools/dis/Makefile ;; |
| 24408 | tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;; |
| 24409 | tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;; |
| 24410 | tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;; |
| 24411 | tools/link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/link/Makefile tools/link/Makefile ;; |
| 24412 | tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;; |
| 24413 | tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;; |
| 24414 | tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;; |
| 24415 | tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;; |
| 24416 | tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;; |
| 24417 | tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;; |
| 24418 | utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; |
| 24419 | utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;; |
| 24420 | utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;; |
| 24421 | utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;; |
| 24422 | www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;; |
| 24423 | projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; |
| 24424 | projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;; |
| 24425 | projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;; |
| 24426 | projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;; |
| 24427 | projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;; |
| 24428 | projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;; |
| 24429 | projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;; |
| 24430 | projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;; |
| 24431 | projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;; |
| 24432 | projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;; |
| 24433 | projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;; |
| 24434 | projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;; |
| 24435 | esac |
| 24436 | done |
| 24437 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24438 | |
| 24439 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24440 | |
| 24441 | { (exit 0); exit 0; } |
| 24442 | _ACEOF |
| 24443 | chmod +x $CONFIG_STATUS |
| 24444 | ac_clean_files=$ac_clean_files_save |
| 24445 | |
| 24446 | |
| 24447 | # configure is writing to config.log, and then calls config.status. |
| 24448 | # config.status does its own redirection, appending to config.log. |
| 24449 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 24450 | # by configure, so config.status won't be able to write to it; its |
| 24451 | # output is simply discarded. So we exec the FD to /dev/null, |
| 24452 | # effectively closing config.log, so it can be properly (re)opened and |
| 24453 | # appended to by config.status. When coming back to configure, we |
| 24454 | # need to make the FD available again. |
| 24455 | if test "$no_create" != yes; then |
| 24456 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24457 | ac_config_status_args= |
| 24458 | test "$silent" = yes && |
| 24459 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24460 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24461 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24462 | exec 5>>config.log |
| 24463 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 24464 | # would make configure fail if this is the last instruction. |
| 24465 | $ac_cs_success || { (exit 1); exit 1; } |
| 24466 | fi |
| 24467 | |