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. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for llvm 1.9cvs. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 6 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11 | # |
John Criswell | c0c186d | 2005-11-08 21:11:33 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13 | ## --------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## --------------------- ## |
| 16 | |
| 17 | # Be Bourne compatible |
| 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 19 | emulate sh |
| 20 | NULLCMD=: |
| 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 22 | # is contrary to our usage. Disable this feature. |
| 23 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST |
| 25 | else |
| 26 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32 | # PATH needs CR |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33 | # Avoid depending upon Character Ranges. |
| 34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 37 | as_cr_digits='0123456789' |
| 38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 39 | |
| 40 | # The user is always right. |
| 41 | if test "${PATH_SEPARATOR+set}" != set; then |
| 42 | echo "#! /bin/sh" >conf$$.sh |
| 43 | echo "exit 0" >>conf$$.sh |
| 44 | chmod +x conf$$.sh |
| 45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 46 | PATH_SEPARATOR=';' |
| 47 | else |
| 48 | PATH_SEPARATOR=: |
| 49 | fi |
| 50 | rm -f conf$$.sh |
| 51 | fi |
| 52 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 53 | # Support unset when possible. |
| 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 55 | as_unset=unset |
| 56 | else |
| 57 | as_unset=false |
| 58 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 59 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 60 | |
| 61 | # IFS |
| 62 | # We need space, tab and new line, in precisely that order. Quoting is |
| 63 | # there to prevent editors from complaining about space-tab. |
| 64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 65 | # splitting by setting IFS to empty value.) |
| 66 | as_nl=' |
| 67 | ' |
| 68 | IFS=" "" $as_nl" |
| 69 | |
| 70 | # Find who we are. Look in the path if we contain no directory separator. |
| 71 | case $0 in |
| 72 | *[\\/]* ) as_myself=$0 ;; |
| 73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 74 | for as_dir in $PATH |
| 75 | do |
| 76 | IFS=$as_save_IFS |
| 77 | test -z "$as_dir" && as_dir=. |
| 78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 79 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 80 | IFS=$as_save_IFS |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 81 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 82 | ;; |
| 83 | esac |
| 84 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 85 | # in which case we are not to be found in the path. |
| 86 | if test "x$as_myself" = x; then |
| 87 | as_myself=$0 |
| 88 | fi |
| 89 | if test ! -f "$as_myself"; then |
| 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 91 | { (exit 1); exit 1; } |
| 92 | fi |
| 93 | |
| 94 | # Work around bugs in pre-3.0 UWIN ksh. |
| 95 | for as_var in ENV MAIL MAILPATH |
| 96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 97 | done |
| 98 | PS1='$ ' |
| 99 | PS2='> ' |
| 100 | PS4='+ ' |
| 101 | |
| 102 | # NLS nuisances. |
| 103 | for as_var in \ |
| 104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 106 | LC_TELEPHONE LC_TIME |
| 107 | do |
| 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 109 | eval $as_var=C; export $as_var |
| 110 | else |
| 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 112 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 113 | done |
| 114 | |
| 115 | # Required to use basename. |
| 116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 118 | as_expr=expr |
| 119 | else |
| 120 | as_expr=false |
| 121 | fi |
| 122 | |
| 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 124 | as_basename=basename |
| 125 | else |
| 126 | as_basename=false |
| 127 | fi |
| 128 | |
| 129 | |
| 130 | # Name of the executable. |
| 131 | as_me=`$as_basename -- "$0" || |
| 132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 133 | X"$0" : 'X\(//\)$' \| \ |
| 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 135 | echo X/"$0" | |
| 136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 137 | s//\1/ |
| 138 | q |
| 139 | } |
| 140 | /^X\/\(\/\/\)$/{ |
| 141 | s//\1/ |
| 142 | q |
| 143 | } |
| 144 | /^X\/\(\/\).*/{ |
| 145 | s//\1/ |
| 146 | q |
| 147 | } |
| 148 | s/.*/./; q'` |
| 149 | |
| 150 | # CDPATH. |
| 151 | $as_unset CDPATH |
| 152 | |
| 153 | |
| 154 | if test "x$CONFIG_SHELL" = x; then |
| 155 | if (eval ":") 2>/dev/null; then |
| 156 | as_have_required=yes |
| 157 | else |
| 158 | as_have_required=no |
| 159 | fi |
| 160 | |
| 161 | if test $as_have_required = yes && (eval ": |
| 162 | (as_func_return () { |
| 163 | (exit \$1) |
| 164 | } |
| 165 | as_func_success () { |
| 166 | as_func_return 0 |
| 167 | } |
| 168 | as_func_failure () { |
| 169 | as_func_return 1 |
| 170 | } |
| 171 | as_func_ret_success () { |
| 172 | return 0 |
| 173 | } |
| 174 | as_func_ret_failure () { |
| 175 | return 1 |
| 176 | } |
| 177 | |
| 178 | exitcode=0 |
| 179 | if as_func_success; then |
| 180 | : |
| 181 | else |
| 182 | exitcode=1 |
| 183 | echo as_func_success failed. |
| 184 | fi |
| 185 | |
| 186 | if as_func_failure; then |
| 187 | exitcode=1 |
| 188 | echo as_func_failure succeeded. |
| 189 | fi |
| 190 | |
| 191 | if as_func_ret_success; then |
| 192 | : |
| 193 | else |
| 194 | exitcode=1 |
| 195 | echo as_func_ret_success failed. |
| 196 | fi |
| 197 | |
| 198 | if as_func_ret_failure; then |
| 199 | exitcode=1 |
| 200 | echo as_func_ret_failure succeeded. |
| 201 | fi |
| 202 | |
| 203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 204 | : |
| 205 | else |
| 206 | exitcode=1 |
| 207 | echo positional parameters were not saved. |
| 208 | fi |
| 209 | |
| 210 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 211 | |
| 212 | ( |
| 213 | as_lineno_1=\$LINENO |
| 214 | as_lineno_2=\$LINENO |
| 215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 217 | ") 2> /dev/null; then |
| 218 | : |
| 219 | else |
| 220 | as_candidate_shells= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 222 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 223 | do |
| 224 | IFS=$as_save_IFS |
| 225 | test -z "$as_dir" && as_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 226 | case $as_dir in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 227 | /*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 228 | for as_base in sh bash ksh sh5; do |
| 229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 230 | done;; |
| 231 | esac |
| 232 | done |
| 233 | IFS=$as_save_IFS |
| 234 | |
| 235 | |
| 236 | for as_shell in $as_candidate_shells $SHELL; do |
| 237 | # Try only shells that exist, to save several forks. |
| 238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 239 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 240 | # Be Bourne compatible |
| 241 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 242 | emulate sh |
| 243 | NULLCMD=: |
| 244 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 245 | # is contrary to our usage. Disable this feature. |
| 246 | alias -g '${1+"$@"}'='"$@"' |
| 247 | setopt NO_GLOB_SUBST |
| 248 | else |
| 249 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 250 | fi |
| 251 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 252 | DUALCASE=1; export DUALCASE # for MKS sh |
| 253 | |
| 254 | : |
| 255 | _ASEOF |
| 256 | }; then |
| 257 | CONFIG_SHELL=$as_shell |
| 258 | as_have_required=yes |
| 259 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 260 | # Be Bourne compatible |
| 261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 262 | emulate sh |
| 263 | NULLCMD=: |
| 264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 265 | # is contrary to our usage. Disable this feature. |
| 266 | alias -g '${1+"$@"}'='"$@"' |
| 267 | setopt NO_GLOB_SUBST |
| 268 | else |
| 269 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 270 | fi |
| 271 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 272 | DUALCASE=1; export DUALCASE # for MKS sh |
| 273 | |
| 274 | : |
| 275 | (as_func_return () { |
| 276 | (exit $1) |
| 277 | } |
| 278 | as_func_success () { |
| 279 | as_func_return 0 |
| 280 | } |
| 281 | as_func_failure () { |
| 282 | as_func_return 1 |
| 283 | } |
| 284 | as_func_ret_success () { |
| 285 | return 0 |
| 286 | } |
| 287 | as_func_ret_failure () { |
| 288 | return 1 |
| 289 | } |
| 290 | |
| 291 | exitcode=0 |
| 292 | if as_func_success; then |
| 293 | : |
| 294 | else |
| 295 | exitcode=1 |
| 296 | echo as_func_success failed. |
| 297 | fi |
| 298 | |
| 299 | if as_func_failure; then |
| 300 | exitcode=1 |
| 301 | echo as_func_failure succeeded. |
| 302 | fi |
| 303 | |
| 304 | if as_func_ret_success; then |
| 305 | : |
| 306 | else |
| 307 | exitcode=1 |
| 308 | echo as_func_ret_success failed. |
| 309 | fi |
| 310 | |
| 311 | if as_func_ret_failure; then |
| 312 | exitcode=1 |
| 313 | echo as_func_ret_failure succeeded. |
| 314 | fi |
| 315 | |
| 316 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 317 | : |
| 318 | else |
| 319 | exitcode=1 |
| 320 | echo positional parameters were not saved. |
| 321 | fi |
| 322 | |
| 323 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 324 | |
| 325 | ( |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 326 | as_lineno_1=$LINENO |
| 327 | as_lineno_2=$LINENO |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 328 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 329 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 330 | |
| 331 | _ASEOF |
| 332 | }; then |
| 333 | break |
| 334 | fi |
| 335 | |
| 336 | fi |
| 337 | |
| 338 | done |
| 339 | |
| 340 | if test "x$CONFIG_SHELL" != x; then |
| 341 | for as_var in BASH_ENV ENV |
| 342 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 343 | done |
| 344 | export CONFIG_SHELL |
| 345 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 346 | fi |
| 347 | |
| 348 | |
| 349 | if test $as_have_required = no; then |
| 350 | echo This script requires a shell more modern than all the |
| 351 | echo shells that I found on your system. Please install a |
| 352 | echo modern shell, or manually run the script under such a |
| 353 | echo shell if you do have one. |
| 354 | { (exit 1); exit 1; } |
| 355 | fi |
| 356 | |
| 357 | |
| 358 | fi |
| 359 | |
| 360 | fi |
| 361 | |
| 362 | |
| 363 | |
| 364 | (eval "as_func_return () { |
| 365 | (exit \$1) |
| 366 | } |
| 367 | as_func_success () { |
| 368 | as_func_return 0 |
| 369 | } |
| 370 | as_func_failure () { |
| 371 | as_func_return 1 |
| 372 | } |
| 373 | as_func_ret_success () { |
| 374 | return 0 |
| 375 | } |
| 376 | as_func_ret_failure () { |
| 377 | return 1 |
| 378 | } |
| 379 | |
| 380 | exitcode=0 |
| 381 | if as_func_success; then |
| 382 | : |
| 383 | else |
| 384 | exitcode=1 |
| 385 | echo as_func_success failed. |
| 386 | fi |
| 387 | |
| 388 | if as_func_failure; then |
| 389 | exitcode=1 |
| 390 | echo as_func_failure succeeded. |
| 391 | fi |
| 392 | |
| 393 | if as_func_ret_success; then |
| 394 | : |
| 395 | else |
| 396 | exitcode=1 |
| 397 | echo as_func_ret_success failed. |
| 398 | fi |
| 399 | |
| 400 | if as_func_ret_failure; then |
| 401 | exitcode=1 |
| 402 | echo as_func_ret_failure succeeded. |
| 403 | fi |
| 404 | |
| 405 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 406 | : |
| 407 | else |
| 408 | exitcode=1 |
| 409 | echo positional parameters were not saved. |
| 410 | fi |
| 411 | |
| 412 | test \$exitcode = 0") || { |
| 413 | echo No shell found that supports shell functions. |
| 414 | echo Please tell autoconf@gnu.org about your system, |
| 415 | echo including any error possibly output before this |
| 416 | echo message |
| 417 | } |
| 418 | |
| 419 | |
| 420 | |
| 421 | as_lineno_1=$LINENO |
| 422 | as_lineno_2=$LINENO |
| 423 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 424 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 425 | |
| 426 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 427 | # uniformly replaced by the line number. The first 'sed' inserts a |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 428 | # line-number line after each line using $LINENO; the second 'sed' |
| 429 | # does the real work. The second script uses 'N' to pair each |
| 430 | # line-number line with the line containing $LINENO, and appends |
| 431 | # trailing '-' during substitution so that $LINENO is not a special |
| 432 | # case at line end. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 433 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 434 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 435 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 436 | sed -n ' |
| 437 | p |
| 438 | /[$]LINENO/= |
| 439 | ' <$as_myself | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 440 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 441 | s/[$]LINENO.*/&-/ |
| 442 | t lineno |
| 443 | b |
| 444 | :lineno |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 445 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 446 | :loop |
| 447 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 448 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 449 | s/-\n.*// |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 450 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 451 | chmod +x "$as_me.lineno" || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 452 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 453 | { (exit 1); exit 1; }; } |
| 454 | |
| 455 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 456 | # (the dirname of $[0] is not the place where we might find the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 457 | # original and so on. Autoconf is especially sensitive to this). |
| 458 | . "./$as_me.lineno" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 459 | # Exit status is that of the last command. |
| 460 | exit |
| 461 | } |
| 462 | |
| 463 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 464 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 465 | as_dirname=dirname |
| 466 | else |
| 467 | as_dirname=false |
| 468 | fi |
| 469 | |
| 470 | ECHO_C= ECHO_N= ECHO_T= |
| 471 | case `echo -n x` in |
| 472 | -n*) |
| 473 | case `echo 'x\c'` in |
| 474 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 475 | *) ECHO_C='\c';; |
| 476 | esac;; |
| 477 | *) |
| 478 | ECHO_N='-n';; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 479 | esac |
| 480 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 481 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 482 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 483 | as_expr=expr |
| 484 | else |
| 485 | as_expr=false |
| 486 | fi |
| 487 | |
| 488 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 489 | if test -d conf$$.dir; then |
| 490 | rm -f conf$$.dir/conf$$.file |
| 491 | else |
| 492 | rm -f conf$$.dir |
| 493 | mkdir conf$$.dir |
| 494 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 495 | echo >conf$$.file |
| 496 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 497 | as_ln_s='ln -s' |
| 498 | # ... but there are two gotchas: |
| 499 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 500 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 501 | # In both cases, we have to default to `cp -p'. |
| 502 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 503 | as_ln_s='cp -p' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 504 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 505 | as_ln_s=ln |
| 506 | else |
| 507 | as_ln_s='cp -p' |
| 508 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 509 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 510 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 511 | |
| 512 | if mkdir -p . 2>/dev/null; then |
| 513 | as_mkdir_p=: |
| 514 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 515 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 516 | as_mkdir_p=false |
| 517 | fi |
| 518 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 519 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 520 | # systems may use methods other than mode bits to determine executability. |
| 521 | cat >conf$$.file <<_ASEOF |
| 522 | #! /bin/sh |
| 523 | exit 0 |
| 524 | _ASEOF |
| 525 | chmod +x conf$$.file |
| 526 | if test -x conf$$.file >/dev/null 2>&1; then |
| 527 | as_executable_p="test -x" |
| 528 | else |
| 529 | as_executable_p=: |
| 530 | fi |
| 531 | rm -f conf$$.file |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 532 | |
| 533 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 534 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 535 | |
| 536 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 538 | |
| 539 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 540 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 541 | |
| 542 | # Check that we are running under the correct shell. |
| 543 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 544 | |
| 545 | case X$ECHO in |
| 546 | X*--fallback-echo) |
| 547 | # Remove one level of quotation (which was required for Make). |
| 548 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 549 | ;; |
| 550 | esac |
| 551 | |
| 552 | echo=${ECHO-echo} |
| 553 | if test "X$1" = X--no-reexec; then |
| 554 | # Discard the --no-reexec flag, and continue. |
| 555 | shift |
| 556 | elif test "X$1" = X--fallback-echo; then |
| 557 | # Avoid inline document here, it may be left over |
| 558 | : |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 559 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 560 | # Yippee, $echo works! |
| 561 | : |
| 562 | else |
| 563 | # Restart under the correct shell. |
| 564 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 565 | fi |
| 566 | |
| 567 | if test "X$1" = X--fallback-echo; then |
| 568 | # used as fallback echo |
| 569 | shift |
| 570 | cat <<EOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 571 | $* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 572 | EOF |
| 573 | exit 0 |
| 574 | fi |
| 575 | |
| 576 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 577 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 578 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 579 | |
| 580 | if test -z "$ECHO"; then |
| 581 | if test "X${echo_test_string+set}" != Xset; then |
| 582 | # find a string as large as possible, as long as the shell can cope with it |
| 583 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 584 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 585 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
| 586 | echo_test_string=`eval $cmd` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 587 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 588 | then |
| 589 | break |
| 590 | fi |
| 591 | done |
| 592 | fi |
| 593 | |
| 594 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 595 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 596 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 597 | : |
| 598 | else |
| 599 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 600 | # backslashes. This makes it impossible to quote backslashes using |
| 601 | # echo "$something" | sed 's/\\/\\\\/g' |
| 602 | # |
| 603 | # So, first we look for a working echo in the user's PATH. |
| 604 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 605 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 606 | for dir in $PATH /usr/ucb; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 607 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 608 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 609 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 610 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 611 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 612 | echo="$dir/echo" |
| 613 | break |
| 614 | fi |
| 615 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 616 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 617 | |
| 618 | if test "X$echo" = Xecho; then |
| 619 | # We didn't find a better echo, so look for alternatives. |
| 620 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 621 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 622 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 623 | # This shell has a builtin print -r that does the trick. |
| 624 | echo='print -r' |
| 625 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 626 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 627 | # If we have ksh, try running configure again with it. |
| 628 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 629 | export ORIGINAL_CONFIG_SHELL |
| 630 | CONFIG_SHELL=/bin/ksh |
| 631 | export CONFIG_SHELL |
| 632 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 633 | else |
| 634 | # Try using printf. |
| 635 | echo='printf %s\n' |
| 636 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 637 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 638 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 639 | # Cool, printf works |
| 640 | : |
| 641 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 642 | test "X$echo_testing_string" = 'X\t' && |
| 643 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 644 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 645 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 646 | export CONFIG_SHELL |
| 647 | SHELL="$CONFIG_SHELL" |
| 648 | export SHELL |
| 649 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 650 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 651 | test "X$echo_testing_string" = 'X\t' && |
| 652 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 653 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 654 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 655 | else |
| 656 | # maybe with a smaller string... |
| 657 | prev=: |
| 658 | |
| 659 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 660 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 661 | then |
| 662 | break |
| 663 | fi |
| 664 | prev="$cmd" |
| 665 | done |
| 666 | |
| 667 | if test "$prev" != 'sed 50q "$0"'; then |
| 668 | echo_test_string=`eval $prev` |
| 669 | export echo_test_string |
| 670 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 671 | else |
| 672 | # Oops. We lost completely, so just stick with echo. |
| 673 | echo=echo |
| 674 | fi |
| 675 | fi |
| 676 | fi |
| 677 | fi |
| 678 | fi |
| 679 | fi |
| 680 | |
| 681 | # Copy echo and quote the copy suitably for passing to libtool from |
| 682 | # the Makefile, instead of quoting the original, which is used later. |
| 683 | ECHO=$echo |
| 684 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 685 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 686 | fi |
| 687 | |
| 688 | |
| 689 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 690 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 691 | tagnames=${tagnames+${tagnames},}CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 692 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 693 | tagnames=${tagnames+${tagnames},}F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 694 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 695 | exec 7<&0 </dev/null 6>&1 |
| 696 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 697 | # Name of the host. |
| 698 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 699 | # so uname gets run too. |
| 700 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 701 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 702 | # |
| 703 | # Initializations. |
| 704 | # |
| 705 | ac_default_prefix=/usr/local |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 706 | ac_clean_files= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 707 | ac_config_libobj_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 708 | LIBOBJS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 709 | cross_compiling=no |
| 710 | subdirs= |
| 711 | MFLAGS= |
| 712 | MAKEFLAGS= |
| 713 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 714 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 715 | # Identity of this package. |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 716 | PACKAGE_NAME='llvm' |
Reid Spencer | 2b51a08 | 2004-08-04 00:34:49 +0000 | [diff] [blame] | 717 | PACKAGE_TARNAME='-llvm-' |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 718 | PACKAGE_VERSION='1.9cvs' |
| 719 | PACKAGE_STRING='llvm 1.9cvs' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 720 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' |
| 721 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 722 | ac_unique_file="lib/VMCore/Module.cpp" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 723 | # Factoring default headers for most tests. |
| 724 | ac_includes_default="\ |
| 725 | #include <stdio.h> |
| 726 | #if HAVE_SYS_TYPES_H |
| 727 | # include <sys/types.h> |
| 728 | #endif |
| 729 | #if HAVE_SYS_STAT_H |
| 730 | # include <sys/stat.h> |
| 731 | #endif |
| 732 | #if STDC_HEADERS |
| 733 | # include <stdlib.h> |
| 734 | # include <stddef.h> |
| 735 | #else |
| 736 | # if HAVE_STDLIB_H |
| 737 | # include <stdlib.h> |
| 738 | # endif |
| 739 | #endif |
| 740 | #if HAVE_STRING_H |
| 741 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 742 | # include <memory.h> |
| 743 | # endif |
| 744 | # include <string.h> |
| 745 | #endif |
| 746 | #if HAVE_STRINGS_H |
| 747 | # include <strings.h> |
| 748 | #endif |
| 749 | #if HAVE_INTTYPES_H |
| 750 | # include <inttypes.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 751 | #endif |
| 752 | #if HAVE_STDINT_H |
| 753 | # include <stdint.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 754 | #endif |
| 755 | #if HAVE_UNISTD_H |
| 756 | # include <unistd.h> |
| 757 | #endif" |
| 758 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 759 | ac_subst_vars='SHELL |
| 760 | PATH_SEPARATOR |
| 761 | PACKAGE_NAME |
| 762 | PACKAGE_TARNAME |
| 763 | PACKAGE_VERSION |
| 764 | PACKAGE_STRING |
| 765 | PACKAGE_BUGREPORT |
| 766 | exec_prefix |
| 767 | prefix |
| 768 | program_transform_name |
| 769 | bindir |
| 770 | sbindir |
| 771 | libexecdir |
| 772 | datarootdir |
| 773 | datadir |
| 774 | sysconfdir |
| 775 | sharedstatedir |
| 776 | localstatedir |
| 777 | includedir |
| 778 | oldincludedir |
| 779 | docdir |
| 780 | infodir |
| 781 | htmldir |
| 782 | dvidir |
| 783 | pdfdir |
| 784 | psdir |
| 785 | libdir |
| 786 | localedir |
| 787 | mandir |
| 788 | DEFS |
| 789 | ECHO_C |
| 790 | ECHO_N |
| 791 | ECHO_T |
| 792 | LIBS |
| 793 | build_alias |
| 794 | host_alias |
| 795 | target_alias |
| 796 | LLVM_COPYRIGHT |
| 797 | subdirs |
| 798 | build |
| 799 | build_cpu |
| 800 | build_vendor |
| 801 | build_os |
| 802 | host |
| 803 | host_cpu |
| 804 | host_vendor |
| 805 | host_os |
| 806 | target |
| 807 | target_cpu |
| 808 | target_vendor |
| 809 | target_os |
| 810 | OS |
| 811 | LINKALL |
| 812 | NOLINKALL |
| 813 | LLVM_ON_UNIX |
| 814 | LLVM_ON_WIN32 |
| 815 | ARCH |
| 816 | ENDIAN |
| 817 | CC |
| 818 | CFLAGS |
| 819 | LDFLAGS |
| 820 | CPPFLAGS |
| 821 | ac_ct_CC |
| 822 | EXEEXT |
| 823 | OBJEXT |
| 824 | CPP |
| 825 | GREP |
| 826 | EGREP |
| 827 | LLVM_CROSS_COMPILING |
| 828 | BUILD_CC |
| 829 | BUILD_EXEEXT |
| 830 | CVSBUILD |
| 831 | ENABLE_OPTIMIZED |
| 832 | DISABLE_ASSERTIONS |
| 833 | DEBUG_RUNTIME |
| 834 | JIT |
| 835 | TARGET_HAS_JIT |
| 836 | ENABLE_DOXYGEN |
| 837 | ENABLE_THREADS |
| 838 | TARGETS_TO_BUILD |
| 839 | EXTRA_OPTIONS |
| 840 | CXX |
| 841 | CXXFLAGS |
| 842 | ac_ct_CXX |
| 843 | LEX |
| 844 | LEXLIB |
| 845 | LEX_OUTPUT_ROOT |
| 846 | FLEX |
| 847 | YACC |
| 848 | YFLAGS |
| 849 | BISON |
| 850 | NM |
| 851 | ifGNUmake |
| 852 | LN_S |
| 853 | CMP |
| 854 | CP |
| 855 | DATE |
| 856 | FIND |
| 857 | MKDIR |
| 858 | MV |
| 859 | RANLIB |
| 860 | RM |
| 861 | SED |
| 862 | TAR |
| 863 | BINPWD |
| 864 | GRAPHVIZ |
| 865 | DOT |
| 866 | GV |
| 867 | DOTTY |
| 868 | PERL |
| 869 | HAVE_PERL |
| 870 | INSTALL_PROGRAM |
| 871 | INSTALL_SCRIPT |
| 872 | INSTALL_DATA |
| 873 | BZIP2 |
| 874 | DOXYGEN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 875 | GROFF |
| 876 | GZIP |
| 877 | POD2HTML |
| 878 | POD2MAN |
| 879 | RUNTEST |
| 880 | TCLSH |
| 881 | ZIP |
| 882 | INSTALL_LTDL_TRUE |
| 883 | INSTALL_LTDL_FALSE |
| 884 | CONVENIENCE_LTDL_TRUE |
| 885 | CONVENIENCE_LTDL_FALSE |
| 886 | LIBADD_DL |
| 887 | ECHO |
| 888 | AR |
| 889 | STRIP |
| 890 | CXXCPP |
| 891 | F77 |
| 892 | FFLAGS |
| 893 | ac_ct_F77 |
| 894 | LIBTOOL |
| 895 | ETAGSFLAGS |
| 896 | LLVMGCC |
| 897 | LLVMGXX |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 898 | HUGE_VAL_SANITY |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 899 | ALLOCA |
| 900 | MMAP_FILE |
| 901 | LLVMCC1 |
| 902 | LLVMCC1PLUS |
| 903 | LLVMGCCDIR |
| 904 | LLVMGCC_VERSION |
| 905 | LLVMGCC_MAJVERS |
| 906 | SHLIBEXT |
| 907 | LLVM_PREFIX |
| 908 | LLVM_BINDIR |
| 909 | LLVM_LIBDIR |
| 910 | LLVM_DATADIR |
| 911 | LLVM_DOCSDIR |
| 912 | LLVM_ETCDIR |
| 913 | LLVM_INCLUDEDIR |
| 914 | LLVM_INFODIR |
| 915 | LLVM_MANDIR |
| 916 | LLVM_CONFIGTIME |
| 917 | LIBOBJS |
| 918 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 919 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 920 | ac_precious_vars='build_alias |
| 921 | host_alias |
| 922 | target_alias |
| 923 | CC |
| 924 | CFLAGS |
| 925 | LDFLAGS |
| 926 | CPPFLAGS |
| 927 | CPP |
| 928 | CXX |
| 929 | CXXFLAGS |
| 930 | CCC |
| 931 | YACC |
| 932 | YFLAGS |
| 933 | CXXCPP |
| 934 | F77 |
| 935 | FFLAGS' |
| 936 | ac_subdirs_all='projects/sample |
| 937 | projects/Stacker |
| 938 | projects/privbracket |
| 939 | projects/llvm-test |
| 940 | projects/llvm-reopt |
| 941 | projects/llvm-gcc |
| 942 | projects/llvm-java |
| 943 | projects/llvm-tv |
| 944 | projects/llvm-poolalloc |
| 945 | projects/llvm-kernel' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 946 | |
| 947 | # Initialize some variables set by options. |
| 948 | ac_init_help= |
| 949 | ac_init_version=false |
| 950 | # The variables have the same names as the options, with |
| 951 | # dashes changed to underlines. |
| 952 | cache_file=/dev/null |
| 953 | exec_prefix=NONE |
| 954 | no_create= |
| 955 | no_recursion= |
| 956 | prefix=NONE |
| 957 | program_prefix=NONE |
| 958 | program_suffix=NONE |
| 959 | program_transform_name=s,x,x, |
| 960 | silent= |
| 961 | site= |
| 962 | srcdir= |
| 963 | verbose= |
| 964 | x_includes=NONE |
| 965 | x_libraries=NONE |
| 966 | |
| 967 | # Installation directory options. |
| 968 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 969 | # and all the variables that are supposed to be based on exec_prefix |
| 970 | # by default will actually change. |
| 971 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 972 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 973 | bindir='${exec_prefix}/bin' |
| 974 | sbindir='${exec_prefix}/sbin' |
| 975 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 976 | datarootdir='${prefix}/share' |
| 977 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 978 | sysconfdir='${prefix}/etc' |
| 979 | sharedstatedir='${prefix}/com' |
| 980 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 981 | includedir='${prefix}/include' |
| 982 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 983 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 984 | infodir='${datarootdir}/info' |
| 985 | htmldir='${docdir}' |
| 986 | dvidir='${docdir}' |
| 987 | pdfdir='${docdir}' |
| 988 | psdir='${docdir}' |
| 989 | libdir='${exec_prefix}/lib' |
| 990 | localedir='${datarootdir}/locale' |
| 991 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 992 | |
| 993 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 994 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 995 | for ac_option |
| 996 | do |
| 997 | # If the previous option needs an argument, assign it. |
| 998 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 999 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1000 | ac_prev= |
| 1001 | continue |
| 1002 | fi |
| 1003 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1004 | case $ac_option in |
| 1005 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1006 | *) ac_optarg=yes ;; |
| 1007 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1008 | |
| 1009 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 1010 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1011 | case $ac_dashdash$ac_option in |
| 1012 | --) |
| 1013 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1014 | |
| 1015 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1016 | ac_prev=bindir ;; |
| 1017 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1018 | bindir=$ac_optarg ;; |
| 1019 | |
| 1020 | -build | --build | --buil | --bui | --bu) |
| 1021 | ac_prev=build_alias ;; |
| 1022 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1023 | build_alias=$ac_optarg ;; |
| 1024 | |
| 1025 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1026 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1027 | ac_prev=cache_file ;; |
| 1028 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1029 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1030 | cache_file=$ac_optarg ;; |
| 1031 | |
| 1032 | --config-cache | -C) |
| 1033 | cache_file=config.cache ;; |
| 1034 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1035 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1036 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1037 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1038 | datadir=$ac_optarg ;; |
| 1039 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1040 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1041 | | --dataroo | --dataro | --datar) |
| 1042 | ac_prev=datarootdir ;; |
| 1043 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1044 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1045 | datarootdir=$ac_optarg ;; |
| 1046 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1047 | -disable-* | --disable-*) |
| 1048 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1049 | # Reject names that are not valid shell variable names. |
| 1050 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1051 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1052 | { (exit 1); exit 1; }; } |
| 1053 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1054 | eval enable_$ac_feature=no ;; |
| 1055 | |
| 1056 | -docdir | --docdir | --docdi | --doc | --do) |
| 1057 | ac_prev=docdir ;; |
| 1058 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1059 | docdir=$ac_optarg ;; |
| 1060 | |
| 1061 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1062 | ac_prev=dvidir ;; |
| 1063 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1064 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1065 | |
| 1066 | -enable-* | --enable-*) |
| 1067 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1068 | # Reject names that are not valid shell variable names. |
| 1069 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1070 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1071 | { (exit 1); exit 1; }; } |
| 1072 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1073 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1074 | |
| 1075 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1076 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1077 | | --exec | --exe | --ex) |
| 1078 | ac_prev=exec_prefix ;; |
| 1079 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1080 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1081 | | --exec=* | --exe=* | --ex=*) |
| 1082 | exec_prefix=$ac_optarg ;; |
| 1083 | |
| 1084 | -gas | --gas | --ga | --g) |
| 1085 | # Obsolete; use --with-gas. |
| 1086 | with_gas=yes ;; |
| 1087 | |
| 1088 | -help | --help | --hel | --he | -h) |
| 1089 | ac_init_help=long ;; |
| 1090 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1091 | ac_init_help=recursive ;; |
| 1092 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1093 | ac_init_help=short ;; |
| 1094 | |
| 1095 | -host | --host | --hos | --ho) |
| 1096 | ac_prev=host_alias ;; |
| 1097 | -host=* | --host=* | --hos=* | --ho=*) |
| 1098 | host_alias=$ac_optarg ;; |
| 1099 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1100 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1101 | ac_prev=htmldir ;; |
| 1102 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1103 | | --ht=*) |
| 1104 | htmldir=$ac_optarg ;; |
| 1105 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1106 | -includedir | --includedir | --includedi | --included | --include \ |
| 1107 | | --includ | --inclu | --incl | --inc) |
| 1108 | ac_prev=includedir ;; |
| 1109 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1110 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1111 | includedir=$ac_optarg ;; |
| 1112 | |
| 1113 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1114 | ac_prev=infodir ;; |
| 1115 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1116 | infodir=$ac_optarg ;; |
| 1117 | |
| 1118 | -libdir | --libdir | --libdi | --libd) |
| 1119 | ac_prev=libdir ;; |
| 1120 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1121 | libdir=$ac_optarg ;; |
| 1122 | |
| 1123 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1124 | | --libexe | --libex | --libe) |
| 1125 | ac_prev=libexecdir ;; |
| 1126 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1127 | | --libexe=* | --libex=* | --libe=*) |
| 1128 | libexecdir=$ac_optarg ;; |
| 1129 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1130 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1131 | ac_prev=localedir ;; |
| 1132 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1133 | localedir=$ac_optarg ;; |
| 1134 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1135 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1136 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1137 | ac_prev=localstatedir ;; |
| 1138 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1139 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1140 | localstatedir=$ac_optarg ;; |
| 1141 | |
| 1142 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1143 | ac_prev=mandir ;; |
| 1144 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1145 | mandir=$ac_optarg ;; |
| 1146 | |
| 1147 | -nfp | --nfp | --nf) |
| 1148 | # Obsolete; use --without-fp. |
| 1149 | with_fp=no ;; |
| 1150 | |
| 1151 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1152 | | --no-cr | --no-c | -n) |
| 1153 | no_create=yes ;; |
| 1154 | |
| 1155 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1156 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1157 | no_recursion=yes ;; |
| 1158 | |
| 1159 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1160 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1161 | | --oldin | --oldi | --old | --ol | --o) |
| 1162 | ac_prev=oldincludedir ;; |
| 1163 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1164 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1165 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1166 | oldincludedir=$ac_optarg ;; |
| 1167 | |
| 1168 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1169 | ac_prev=prefix ;; |
| 1170 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1171 | prefix=$ac_optarg ;; |
| 1172 | |
| 1173 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1174 | | --program-pre | --program-pr | --program-p) |
| 1175 | ac_prev=program_prefix ;; |
| 1176 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1177 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1178 | program_prefix=$ac_optarg ;; |
| 1179 | |
| 1180 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1181 | | --program-suf | --program-su | --program-s) |
| 1182 | ac_prev=program_suffix ;; |
| 1183 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1184 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1185 | program_suffix=$ac_optarg ;; |
| 1186 | |
| 1187 | -program-transform-name | --program-transform-name \ |
| 1188 | | --program-transform-nam | --program-transform-na \ |
| 1189 | | --program-transform-n | --program-transform- \ |
| 1190 | | --program-transform | --program-transfor \ |
| 1191 | | --program-transfo | --program-transf \ |
| 1192 | | --program-trans | --program-tran \ |
| 1193 | | --progr-tra | --program-tr | --program-t) |
| 1194 | ac_prev=program_transform_name ;; |
| 1195 | -program-transform-name=* | --program-transform-name=* \ |
| 1196 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1197 | | --program-transform-n=* | --program-transform-=* \ |
| 1198 | | --program-transform=* | --program-transfor=* \ |
| 1199 | | --program-transfo=* | --program-transf=* \ |
| 1200 | | --program-trans=* | --program-tran=* \ |
| 1201 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1202 | program_transform_name=$ac_optarg ;; |
| 1203 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1204 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1205 | ac_prev=pdfdir ;; |
| 1206 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1207 | pdfdir=$ac_optarg ;; |
| 1208 | |
| 1209 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1210 | ac_prev=psdir ;; |
| 1211 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1212 | psdir=$ac_optarg ;; |
| 1213 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1214 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1215 | | -silent | --silent | --silen | --sile | --sil) |
| 1216 | silent=yes ;; |
| 1217 | |
| 1218 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1219 | ac_prev=sbindir ;; |
| 1220 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1221 | | --sbi=* | --sb=*) |
| 1222 | sbindir=$ac_optarg ;; |
| 1223 | |
| 1224 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1225 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1226 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1227 | | --sha | --sh) |
| 1228 | ac_prev=sharedstatedir ;; |
| 1229 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1230 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1231 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1232 | | --sha=* | --sh=*) |
| 1233 | sharedstatedir=$ac_optarg ;; |
| 1234 | |
| 1235 | -site | --site | --sit) |
| 1236 | ac_prev=site ;; |
| 1237 | -site=* | --site=* | --sit=*) |
| 1238 | site=$ac_optarg ;; |
| 1239 | |
| 1240 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1241 | ac_prev=srcdir ;; |
| 1242 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1243 | srcdir=$ac_optarg ;; |
| 1244 | |
| 1245 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1246 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1247 | ac_prev=sysconfdir ;; |
| 1248 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1249 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1250 | sysconfdir=$ac_optarg ;; |
| 1251 | |
| 1252 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1253 | ac_prev=target_alias ;; |
| 1254 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1255 | target_alias=$ac_optarg ;; |
| 1256 | |
| 1257 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1258 | verbose=yes ;; |
| 1259 | |
| 1260 | -version | --version | --versio | --versi | --vers | -V) |
| 1261 | ac_init_version=: ;; |
| 1262 | |
| 1263 | -with-* | --with-*) |
| 1264 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1265 | # Reject names that are not valid shell variable names. |
| 1266 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1267 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1268 | { (exit 1); exit 1; }; } |
| 1269 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1270 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1271 | |
| 1272 | -without-* | --without-*) |
| 1273 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1274 | # Reject names that are not valid shell variable names. |
| 1275 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1276 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1277 | { (exit 1); exit 1; }; } |
| 1278 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1279 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1280 | |
| 1281 | --x) |
| 1282 | # Obsolete; use --with-x. |
| 1283 | with_x=yes ;; |
| 1284 | |
| 1285 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1286 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1287 | ac_prev=x_includes ;; |
| 1288 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1289 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1290 | x_includes=$ac_optarg ;; |
| 1291 | |
| 1292 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1293 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1294 | ac_prev=x_libraries ;; |
| 1295 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1296 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1297 | x_libraries=$ac_optarg ;; |
| 1298 | |
| 1299 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1300 | Try \`$0 --help' for more information." >&2 |
| 1301 | { (exit 1); exit 1; }; } |
| 1302 | ;; |
| 1303 | |
| 1304 | *=*) |
| 1305 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1306 | # Reject names that are not valid shell variable names. |
| 1307 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1308 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1309 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1310 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1311 | export $ac_envvar ;; |
| 1312 | |
| 1313 | *) |
| 1314 | # FIXME: should be removed in autoconf 3.0. |
| 1315 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1316 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1317 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1318 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1319 | ;; |
| 1320 | |
| 1321 | esac |
| 1322 | done |
| 1323 | |
| 1324 | if test -n "$ac_prev"; then |
| 1325 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1326 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1327 | { (exit 1); exit 1; }; } |
| 1328 | fi |
| 1329 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1330 | # Be sure to have absolute directory names. |
| 1331 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1332 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1333 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1334 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1335 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1336 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1337 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1338 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1339 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1340 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1341 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1342 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1343 | done |
| 1344 | |
| 1345 | # There might be people who depend on the old broken behavior: `$host' |
| 1346 | # used to hold the argument of --host etc. |
| 1347 | # FIXME: To remove some day. |
| 1348 | build=$build_alias |
| 1349 | host=$host_alias |
| 1350 | target=$target_alias |
| 1351 | |
| 1352 | # FIXME: To remove some day. |
| 1353 | if test "x$host_alias" != x; then |
| 1354 | if test "x$build_alias" = x; then |
| 1355 | cross_compiling=maybe |
| 1356 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1357 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1358 | elif test "x$build_alias" != "x$host_alias"; then |
| 1359 | cross_compiling=yes |
| 1360 | fi |
| 1361 | fi |
| 1362 | |
| 1363 | ac_tool_prefix= |
| 1364 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1365 | |
| 1366 | test "$silent" = yes && exec 6>/dev/null |
| 1367 | |
| 1368 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1369 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1370 | ac_ls_di=`ls -di .` && |
| 1371 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1372 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1373 | { (exit 1); exit 1; }; } |
| 1374 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1375 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1376 | { (exit 1); exit 1; }; } |
| 1377 | |
| 1378 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1379 | # Find the source files, if location was not specified. |
| 1380 | if test -z "$srcdir"; then |
| 1381 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1382 | # Try the directory containing this script, then the parent directory. |
| 1383 | ac_confdir=`$as_dirname -- "$0" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1384 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1385 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1386 | X"$0" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1387 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1388 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1389 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1390 | s//\1/ |
| 1391 | q |
| 1392 | } |
| 1393 | /^X\(\/\/\)[^/].*/{ |
| 1394 | s//\1/ |
| 1395 | q |
| 1396 | } |
| 1397 | /^X\(\/\/\)$/{ |
| 1398 | s//\1/ |
| 1399 | q |
| 1400 | } |
| 1401 | /^X\(\/\).*/{ |
| 1402 | s//\1/ |
| 1403 | q |
| 1404 | } |
| 1405 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1406 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1407 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1408 | srcdir=.. |
| 1409 | fi |
| 1410 | else |
| 1411 | ac_srcdir_defaulted=no |
| 1412 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1413 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1414 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1415 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1416 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1417 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1418 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1419 | ac_abs_confdir=`( |
| 1420 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1421 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1422 | pwd)` |
| 1423 | # When building in place, set srcdir=. |
| 1424 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1425 | srcdir=. |
| 1426 | fi |
| 1427 | # Remove unnecessary trailing slashes from srcdir. |
| 1428 | # Double slashes in file names in object file debugging info |
| 1429 | # mess up M-x gdb in Emacs. |
| 1430 | case $srcdir in |
| 1431 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1432 | esac |
| 1433 | for ac_var in $ac_precious_vars; do |
| 1434 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1435 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1436 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1437 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1438 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1439 | |
| 1440 | # |
| 1441 | # Report the --help message. |
| 1442 | # |
| 1443 | if test "$ac_init_help" = "long"; then |
| 1444 | # Omit some internal or obsolete options to make the list less imposing. |
| 1445 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1446 | cat <<_ACEOF |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 1447 | \`configure' configures llvm 1.9cvs to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1448 | |
| 1449 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1450 | |
| 1451 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1452 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1453 | |
| 1454 | Defaults for the options are specified in brackets. |
| 1455 | |
| 1456 | Configuration: |
| 1457 | -h, --help display this help and exit |
| 1458 | --help=short display options specific to this package |
| 1459 | --help=recursive display the short help of all the included packages |
| 1460 | -V, --version display version information and exit |
| 1461 | -q, --quiet, --silent do not print \`checking...' messages |
| 1462 | --cache-file=FILE cache test results in FILE [disabled] |
| 1463 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1464 | -n, --no-create do not create output files |
| 1465 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1466 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1467 | Installation directories: |
| 1468 | --prefix=PREFIX install architecture-independent files in PREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1469 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1470 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1471 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1472 | |
| 1473 | By default, \`make install' will install all the files in |
| 1474 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1475 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1476 | for instance \`--prefix=\$HOME'. |
| 1477 | |
| 1478 | For better control, use the options below. |
| 1479 | |
| 1480 | Fine tuning of the installation directories: |
| 1481 | --bindir=DIR user executables [EPREFIX/bin] |
| 1482 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1483 | --libexecdir=DIR program executables [EPREFIX/libexec] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1484 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1485 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1486 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1487 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1488 | --includedir=DIR C header files [PREFIX/include] |
| 1489 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1490 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1491 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1492 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1493 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1494 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1495 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1496 | --htmldir=DIR html documentation [DOCDIR] |
| 1497 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1498 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1499 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1500 | _ACEOF |
| 1501 | |
| 1502 | cat <<\_ACEOF |
| 1503 | |
| 1504 | System types: |
| 1505 | --build=BUILD configure for building on BUILD [guessed] |
| 1506 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1507 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1508 | _ACEOF |
| 1509 | fi |
| 1510 | |
| 1511 | if test -n "$ac_init_help"; then |
| 1512 | case $ac_init_help in |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 1513 | short | recursive ) echo "Configuration of llvm 1.9cvs:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1514 | esac |
| 1515 | cat <<\_ACEOF |
| 1516 | |
| 1517 | Optional Features: |
| 1518 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1519 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1520 | --enable-optimized |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 1521 | --enable-assertions |
Reid Spencer | 6e96d81 | 2005-12-21 03:31:53 +0000 | [diff] [blame] | 1522 | --enable-debug-runtime |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1523 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1524 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1525 | --enable-threads Use threads if available (default is YES) |
Evan Cheng | 939ea65 | 2006-07-06 07:46:33 +0000 | [diff] [blame] | 1526 | --enable-targets Build specific host targets: |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 1527 | all,host-only,{target-name} (default=all) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1528 | --enable-ltdl-install install libltdl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1529 | --enable-shared[=PKGS] build shared libraries |
| 1530 | [default=enable_shared_default] |
| 1531 | --enable-static[=PKGS] build static libraries |
| 1532 | [default=enable_static_default] |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1533 | --enable-fast-install[=PKGS] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1534 | optimize for fast installation |
| 1535 | [default=enable_Fast_install_default] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1536 | --disable-libtool-lock avoid locking (might break parallel builds) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1537 | |
| 1538 | Optional Packages: |
| 1539 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1540 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1541 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1542 | searches PATH) |
Evan Cheng | cf9be26 | 2006-06-20 22:16:32 +0000 | [diff] [blame] | 1543 | --with-extra-options Specify addtional options to compile LLVM with |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1544 | --with-tclinclude directory where tcl headers are |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1545 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1546 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1547 | both] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1548 | --with-tags[=TAGS] include additional configurations [automatic] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1549 | |
| 1550 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1551 | CC C compiler command |
| 1552 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1553 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1554 | nonstandard directory <lib dir> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1555 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1556 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1557 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1558 | CXX C++ compiler command |
| 1559 | CXXFLAGS C++ compiler flags |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1560 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
| 1561 | the first program found out of: `bison -y', `byacc', `yacc'. |
| 1562 | YFLAGS The list of arguments that will be passed by default to $YACC. |
| 1563 | This script will default YFLAGS to the empty string to avoid a |
| 1564 | default value of `-d' given by some make applications. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1565 | CXXCPP C++ preprocessor |
| 1566 | F77 Fortran 77 compiler command |
| 1567 | FFLAGS Fortran 77 compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1568 | |
| 1569 | Use these variables to override the choices made by `configure' or to help |
| 1570 | it to find libraries and programs with nonstandard names/locations. |
| 1571 | |
| 1572 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1573 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1574 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1575 | fi |
| 1576 | |
| 1577 | if test "$ac_init_help" = "recursive"; then |
| 1578 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1579 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1580 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1581 | ac_builddir=. |
| 1582 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1583 | case "$ac_dir" in |
| 1584 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1585 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1586 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1587 | # A ".." for each directory in $ac_dir_suffix. |
| 1588 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1589 | case $ac_top_builddir_sub in |
| 1590 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1591 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1592 | esac ;; |
| 1593 | esac |
| 1594 | ac_abs_top_builddir=$ac_pwd |
| 1595 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1596 | # for backward compatibility: |
| 1597 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1598 | |
| 1599 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1600 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1601 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1602 | ac_top_srcdir=$ac_top_builddir_sub |
| 1603 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1604 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1605 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1606 | ac_top_srcdir=$srcdir |
| 1607 | ac_abs_top_srcdir=$srcdir ;; |
| 1608 | *) # Relative name. |
| 1609 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1610 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1611 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1612 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1613 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1614 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1615 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1616 | # Check for guested configure. |
| 1617 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1618 | echo && |
| 1619 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1620 | elif test -f "$ac_srcdir/configure"; then |
| 1621 | echo && |
| 1622 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1623 | else |
| 1624 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1625 | fi || ac_status=$? |
| 1626 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1627 | done |
| 1628 | fi |
| 1629 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1630 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1631 | if $ac_init_version; then |
| 1632 | cat <<\_ACEOF |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 1633 | llvm configure 1.9cvs |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1634 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1635 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1636 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1637 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1638 | This configure script is free software; the Free Software Foundation |
| 1639 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1640 | |
John Criswell | c0c186d | 2005-11-08 21:11:33 +0000 | [diff] [blame] | 1641 | Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1642 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1643 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1644 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1645 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1646 | This file contains any messages produced by compilers while |
| 1647 | running configure, to aid debugging if configure makes a mistake. |
| 1648 | |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 1649 | It was created by llvm $as_me 1.9cvs, which was |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1650 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1651 | |
| 1652 | $ $0 $@ |
| 1653 | |
| 1654 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1655 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1656 | { |
| 1657 | cat <<_ASUNAME |
| 1658 | ## --------- ## |
| 1659 | ## Platform. ## |
| 1660 | ## --------- ## |
| 1661 | |
| 1662 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1663 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1664 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1665 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1666 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1667 | |
| 1668 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1669 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1670 | |
| 1671 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1672 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1673 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1674 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1675 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1676 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1677 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1678 | |
| 1679 | _ASUNAME |
| 1680 | |
| 1681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1682 | for as_dir in $PATH |
| 1683 | do |
| 1684 | IFS=$as_save_IFS |
| 1685 | test -z "$as_dir" && as_dir=. |
| 1686 | echo "PATH: $as_dir" |
| 1687 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1688 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1689 | |
| 1690 | } >&5 |
| 1691 | |
| 1692 | cat >&5 <<_ACEOF |
| 1693 | |
| 1694 | |
| 1695 | ## ----------- ## |
| 1696 | ## Core tests. ## |
| 1697 | ## ----------- ## |
| 1698 | |
| 1699 | _ACEOF |
| 1700 | |
| 1701 | |
| 1702 | # Keep a trace of the command line. |
| 1703 | # 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] | 1704 | # 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] | 1705 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1706 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1707 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1708 | ac_configure_args0= |
| 1709 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1710 | ac_must_keep_next=false |
| 1711 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1712 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1713 | for ac_arg |
| 1714 | do |
| 1715 | case $ac_arg in |
| 1716 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1717 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1718 | | -silent | --silent | --silen | --sile | --sil) |
| 1719 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1720 | *\'*) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1721 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1722 | esac |
| 1723 | case $ac_pass in |
| 1724 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1725 | 2) |
| 1726 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1727 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1728 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1729 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1730 | case $ac_arg in |
| 1731 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1732 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1733 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1734 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1735 | case "$ac_configure_args0 " in |
| 1736 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1737 | esac |
| 1738 | ;; |
| 1739 | -* ) ac_must_keep_next=true ;; |
| 1740 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1741 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1742 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1743 | ;; |
| 1744 | esac |
| 1745 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1746 | done |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1747 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1748 | $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] | 1749 | |
| 1750 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1751 | # config.log. We remove comments because anyway the quotes in there |
| 1752 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1753 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1754 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1755 | trap 'exit_status=$? |
| 1756 | # Save into config.log some information that might help in debugging. |
| 1757 | { |
| 1758 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1759 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1760 | cat <<\_ASBOX |
| 1761 | ## ---------------- ## |
| 1762 | ## Cache variables. ## |
| 1763 | ## ---------------- ## |
| 1764 | _ASBOX |
| 1765 | echo |
| 1766 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1767 | ( |
| 1768 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1769 | eval ac_val=\$$ac_var |
| 1770 | case $ac_val in #( |
| 1771 | *${as_nl}*) |
| 1772 | case $ac_var in #( |
| 1773 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1774 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1775 | esac |
| 1776 | case $ac_var in #( |
| 1777 | _ | IFS | as_nl) ;; #( |
| 1778 | *) $as_unset $ac_var ;; |
| 1779 | esac ;; |
| 1780 | esac |
| 1781 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1782 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1783 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1784 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1785 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1786 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1787 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1788 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1789 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1790 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1791 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1792 | esac | |
| 1793 | sort |
| 1794 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1795 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1796 | |
| 1797 | cat <<\_ASBOX |
| 1798 | ## ----------------- ## |
| 1799 | ## Output variables. ## |
| 1800 | ## ----------------- ## |
| 1801 | _ASBOX |
| 1802 | echo |
| 1803 | for ac_var in $ac_subst_vars |
| 1804 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1805 | eval ac_val=\$$ac_var |
| 1806 | case $ac_val in |
| 1807 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1808 | esac |
| 1809 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1810 | done | sort |
| 1811 | echo |
| 1812 | |
| 1813 | if test -n "$ac_subst_files"; then |
| 1814 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1815 | ## ------------------- ## |
| 1816 | ## File substitutions. ## |
| 1817 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1818 | _ASBOX |
| 1819 | echo |
| 1820 | for ac_var in $ac_subst_files |
| 1821 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1822 | eval ac_val=\$$ac_var |
| 1823 | case $ac_val in |
| 1824 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1825 | esac |
| 1826 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1827 | done | sort |
| 1828 | echo |
| 1829 | fi |
| 1830 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1831 | if test -s confdefs.h; then |
| 1832 | cat <<\_ASBOX |
| 1833 | ## ----------- ## |
| 1834 | ## confdefs.h. ## |
| 1835 | ## ----------- ## |
| 1836 | _ASBOX |
| 1837 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1838 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1839 | echo |
| 1840 | fi |
| 1841 | test "$ac_signal" != 0 && |
| 1842 | echo "$as_me: caught signal $ac_signal" |
| 1843 | echo "$as_me: exit $exit_status" |
| 1844 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1845 | rm -f core *.core core.conftest.* && |
| 1846 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1847 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1848 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1849 | for ac_signal in 1 2 13 15; do |
| 1850 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1851 | done |
| 1852 | ac_signal=0 |
| 1853 | |
| 1854 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1855 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1856 | |
| 1857 | # Predefined preprocessor variables. |
| 1858 | |
| 1859 | cat >>confdefs.h <<_ACEOF |
| 1860 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1861 | _ACEOF |
| 1862 | |
| 1863 | |
| 1864 | cat >>confdefs.h <<_ACEOF |
| 1865 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1866 | _ACEOF |
| 1867 | |
| 1868 | |
| 1869 | cat >>confdefs.h <<_ACEOF |
| 1870 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1871 | _ACEOF |
| 1872 | |
| 1873 | |
| 1874 | cat >>confdefs.h <<_ACEOF |
| 1875 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1876 | _ACEOF |
| 1877 | |
| 1878 | |
| 1879 | cat >>confdefs.h <<_ACEOF |
| 1880 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1881 | _ACEOF |
| 1882 | |
| 1883 | |
| 1884 | # Let the site file select an alternate cache file if it wants to. |
| 1885 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1886 | if test -n "$CONFIG_SITE"; then |
| 1887 | set x "$CONFIG_SITE" |
| 1888 | elif test "x$prefix" != xNONE; then |
| 1889 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1890 | else |
| 1891 | set x "$ac_default_prefix/share/config.site" \ |
| 1892 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1893 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1894 | shift |
| 1895 | for ac_site_file |
| 1896 | do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1897 | if test -r "$ac_site_file"; then |
| 1898 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1899 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1900 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1901 | . "$ac_site_file" |
| 1902 | fi |
| 1903 | done |
| 1904 | |
| 1905 | if test -r "$cache_file"; then |
| 1906 | # Some versions of bash will fail to source /dev/null (special |
| 1907 | # files actually), so we avoid doing that. |
| 1908 | if test -f "$cache_file"; then |
| 1909 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1910 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1911 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1912 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1913 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1914 | esac |
| 1915 | fi |
| 1916 | else |
| 1917 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1918 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1919 | >$cache_file |
| 1920 | fi |
| 1921 | |
| 1922 | # Check that the precious variables saved in the cache have kept the same |
| 1923 | # value. |
| 1924 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1925 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1926 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1927 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1928 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1929 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1930 | case $ac_old_set,$ac_new_set in |
| 1931 | set,) |
| 1932 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1933 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1934 | ac_cache_corrupted=: ;; |
| 1935 | ,set) |
| 1936 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1937 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1938 | ac_cache_corrupted=: ;; |
| 1939 | ,);; |
| 1940 | *) |
| 1941 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1942 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1943 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1944 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1945 | echo "$as_me: former value: $ac_old_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1946 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1947 | echo "$as_me: current value: $ac_new_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1948 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1949 | fi;; |
| 1950 | esac |
| 1951 | # Pass precious variables to config.status. |
| 1952 | if test "$ac_new_set" = set; then |
| 1953 | case $ac_new_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1954 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1955 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1956 | esac |
| 1957 | case " $ac_configure_args " in |
| 1958 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1959 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1960 | esac |
| 1961 | fi |
| 1962 | done |
| 1963 | if $ac_cache_corrupted; then |
| 1964 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1965 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1966 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1967 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1968 | { (exit 1); exit 1; }; } |
| 1969 | fi |
| 1970 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1971 | |
| 1972 | |
| 1973 | |
| 1974 | |
| 1975 | |
| 1976 | |
| 1977 | |
| 1978 | |
| 1979 | |
| 1980 | |
| 1981 | |
| 1982 | |
| 1983 | |
| 1984 | |
| 1985 | |
| 1986 | |
| 1987 | |
| 1988 | |
| 1989 | |
| 1990 | |
| 1991 | |
| 1992 | |
| 1993 | |
| 1994 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1995 | ac_ext=c |
| 1996 | ac_cpp='$CPP $CPPFLAGS' |
| 1997 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1998 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1999 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2000 | |
| 2001 | |
| 2002 | |
Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 2003 | LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2004 | |
| 2005 | |
| 2006 | |
| 2007 | |
| 2008 | |
| 2009 | |
| 2010 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2011 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2012 | for ac_dir in autoconf "$srcdir"/autoconf; do |
| 2013 | if test -f "$ac_dir/install-sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2014 | ac_aux_dir=$ac_dir |
| 2015 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2016 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2017 | elif test -f "$ac_dir/install.sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2018 | ac_aux_dir=$ac_dir |
| 2019 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2020 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2021 | elif test -f "$ac_dir/shtool"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2022 | ac_aux_dir=$ac_dir |
| 2023 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2024 | break |
| 2025 | fi |
| 2026 | done |
| 2027 | if test -z "$ac_aux_dir"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2028 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 2029 | 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] | 2030 | { (exit 1); exit 1; }; } |
| 2031 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2032 | |
| 2033 | # These three variables are undocumented and unsupported, |
| 2034 | # and are intended to be withdrawn in a future Autoconf release. |
| 2035 | # They can cause serious problems if a builder's source tree is in a directory |
| 2036 | # whose full name contains unusual characters. |
| 2037 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2038 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2039 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2040 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2041 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2042 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2043 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2044 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
| 2045 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2046 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 2047 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2048 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2049 | fi |
| 2050 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2051 | for i in `ls ${srcdir}/projects` |
| 2052 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2053 | if test -d ${srcdir}/projects/${i} ; then |
| 2054 | case ${i} in |
| 2055 | "CVS") ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2056 | "sample") subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2057 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2058 | "Stacker") subdirs="$subdirs projects/Stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2059 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2060 | "privbracket") subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 2061 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2062 | "llvm-test") subdirs="$subdirs projects/llvm-test" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2063 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2064 | "llvm-reopt") subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2065 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2066 | "llvm-gcc") subdirs="$subdirs projects/llvm-gcc" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2067 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2068 | "llvm-java") subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 2069 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2070 | "llvm-tv") subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2071 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2072 | "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc" |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 2073 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2074 | "llvm-kernel") subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2075 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2076 | *) |
Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 2077 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 2078 | echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 2079 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2080 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2081 | fi |
| 2082 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2083 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2084 | |
| 2085 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2086 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2087 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2088 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2089 | { (exit 1); exit 1; }; } |
| 2090 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2091 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2092 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2093 | if test "${ac_cv_build+set}" = set; then |
| 2094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2095 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2096 | ac_build_alias=$build_alias |
| 2097 | test "x$ac_build_alias" = x && |
| 2098 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2099 | test "x$ac_build_alias" = x && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2100 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2101 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2102 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2103 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2104 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2105 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2106 | { (exit 1); exit 1; }; } |
| 2107 | |
| 2108 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2109 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2110 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 2111 | case $ac_cv_build in |
| 2112 | *-*-*) ;; |
| 2113 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2114 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2115 | { (exit 1); exit 1; }; };; |
| 2116 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2117 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2118 | ac_save_IFS=$IFS; IFS='-' |
| 2119 | set x $ac_cv_build |
| 2120 | shift |
| 2121 | build_cpu=$1 |
| 2122 | build_vendor=$2 |
| 2123 | shift; shift |
| 2124 | # Remember, the first character of IFS is used to create $*, |
| 2125 | # except with old shells: |
| 2126 | build_os=$* |
| 2127 | IFS=$ac_save_IFS |
| 2128 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2129 | |
| 2130 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2131 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2132 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2133 | if test "${ac_cv_host+set}" = set; then |
| 2134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2135 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2136 | if test "x$host_alias" = x; then |
| 2137 | ac_cv_host=$ac_cv_build |
| 2138 | else |
| 2139 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2140 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2141 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2142 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2143 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2144 | |
| 2145 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2146 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2147 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 2148 | case $ac_cv_host in |
| 2149 | *-*-*) ;; |
| 2150 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2151 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2152 | { (exit 1); exit 1; }; };; |
| 2153 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2154 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2155 | ac_save_IFS=$IFS; IFS='-' |
| 2156 | set x $ac_cv_host |
| 2157 | shift |
| 2158 | host_cpu=$1 |
| 2159 | host_vendor=$2 |
| 2160 | shift; shift |
| 2161 | # Remember, the first character of IFS is used to create $*, |
| 2162 | # except with old shells: |
| 2163 | host_os=$* |
| 2164 | IFS=$ac_save_IFS |
| 2165 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2166 | |
| 2167 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2168 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2169 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2170 | if test "${ac_cv_target+set}" = set; then |
| 2171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2172 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2173 | if test "x$target_alias" = x; then |
| 2174 | ac_cv_target=$ac_cv_host |
| 2175 | else |
| 2176 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 2177 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2178 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2179 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2180 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2181 | |
| 2182 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2183 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2184 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 2185 | case $ac_cv_target in |
| 2186 | *-*-*) ;; |
| 2187 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2188 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2189 | { (exit 1); exit 1; }; };; |
| 2190 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2191 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2192 | ac_save_IFS=$IFS; IFS='-' |
| 2193 | set x $ac_cv_target |
| 2194 | shift |
| 2195 | target_cpu=$1 |
| 2196 | target_vendor=$2 |
| 2197 | shift; shift |
| 2198 | # Remember, the first character of IFS is used to create $*, |
| 2199 | # except with old shells: |
| 2200 | target_os=$* |
| 2201 | IFS=$ac_save_IFS |
| 2202 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2203 | |
| 2204 | |
| 2205 | # The aliases save the names the user supplied, while $host etc. |
| 2206 | # will get canonicalized. |
| 2207 | test -n "$target_alias" && |
| 2208 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2209 | NONENONEs,x,x, && |
| 2210 | program_prefix=${target_alias}- |
| 2211 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2212 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2213 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2214 | if test "${llvm_cv_os_type+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2216 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2217 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2218 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2219 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2220 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2221 | llvm_cv_os_type="AIX" |
| 2222 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2223 | *-*-irix*) |
| 2224 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2225 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2226 | llvm_cv_os_type="IRIX" |
| 2227 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2228 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2229 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2230 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2231 | llvm_cv_os_type="Cygwin" |
| 2232 | llvm_cv_platform_type="Unix" ;; |
| 2233 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2234 | llvm_cv_link_all_option="-Wl,-all_load" |
| 2235 | llvm_cv_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2236 | llvm_cv_os_type="Darwin" |
| 2237 | llvm_cv_platform_type="Unix" ;; |
| 2238 | *-*-freebsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2239 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2240 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2241 | llvm_cv_os_type="FreeBSD" |
| 2242 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2243 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2244 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2245 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2246 | llvm_cv_os_type="OpenBSD" |
| 2247 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2248 | *-*-hpux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2249 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2250 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2251 | llvm_cv_os_type="HP-UX" |
| 2252 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2253 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2254 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2255 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2256 | llvm_cv_os_type="Interix" |
| 2257 | llvm_cv_platform_type="Unix" ;; |
| 2258 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2259 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2260 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2261 | llvm_cv_os_type="Linux" |
| 2262 | llvm_cv_platform_type="Unix" ;; |
| 2263 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2264 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2265 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2266 | llvm_cv_os_type="SunOS" |
| 2267 | llvm_cv_platform_type="Unix" ;; |
| 2268 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2269 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2270 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2271 | llvm_cv_os_type="Win32" |
| 2272 | llvm_cv_platform_type="Win32" ;; |
| 2273 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2274 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2275 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2276 | llvm_cv_os_type="MingW" |
| 2277 | llvm_cv_platform_type="Win32" ;; |
| 2278 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2279 | llvm_cv_link_all_option="" |
| 2280 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2281 | llvm_cv_os_type="Unknown" |
| 2282 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2283 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2284 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2285 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2286 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2287 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2288 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 2289 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2290 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} |
Reid Spencer | 886e951 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 2291 | { (exit 1); exit 1; }; } |
| 2292 | fi |
| 2293 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2294 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2295 | |
| 2296 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2297 | LINKALL=$llvm_cv_link_all_option |
| 2298 | |
| 2299 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2300 | |
| 2301 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2302 | case $llvm_cv_platform_type in |
| 2303 | Unix) |
| 2304 | |
| 2305 | cat >>confdefs.h <<\_ACEOF |
| 2306 | #define LLVM_ON_UNIX 1 |
| 2307 | _ACEOF |
| 2308 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2309 | LLVM_ON_UNIX=1 |
| 2310 | |
| 2311 | LLVM_ON_WIN32=0 |
| 2312 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2313 | ;; |
| 2314 | Win32) |
| 2315 | |
| 2316 | cat >>confdefs.h <<\_ACEOF |
| 2317 | #define LLVM_ON_WIN32 1 |
| 2318 | _ACEOF |
| 2319 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2320 | LLVM_ON_UNIX=0 |
| 2321 | |
| 2322 | LLVM_ON_WIN32=1 |
| 2323 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2324 | ;; |
| 2325 | esac |
| 2326 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2327 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2328 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2329 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2331 | else |
| 2332 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2333 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2334 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2335 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2336 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2337 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Misha Brukman | 1edb190 | 2005-03-17 20:56:22 +0000 | [diff] [blame] | 2338 | ia64-*) llvm_cv_target_arch="IA64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2339 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2340 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2341 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2342 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2343 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2344 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2345 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 2346 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2347 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 2348 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2349 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2350 | ARCH=$llvm_cv_target_arch |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 2351 | |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 2352 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2353 | ac_ext=c |
| 2354 | ac_cpp='$CPP $CPPFLAGS' |
| 2355 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2356 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2357 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2358 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2359 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2360 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2361 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2362 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2363 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2365 | else |
| 2366 | if test -n "$CC"; then |
| 2367 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2368 | else |
| 2369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2370 | for as_dir in $PATH |
| 2371 | do |
| 2372 | IFS=$as_save_IFS |
| 2373 | test -z "$as_dir" && as_dir=. |
| 2374 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2375 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2376 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2377 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2378 | break 2 |
| 2379 | fi |
| 2380 | done |
| 2381 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2382 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2383 | |
| 2384 | fi |
| 2385 | fi |
| 2386 | CC=$ac_cv_prog_CC |
| 2387 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2388 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2389 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2390 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2391 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2392 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2393 | fi |
| 2394 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2395 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2396 | fi |
| 2397 | if test -z "$ac_cv_prog_CC"; then |
| 2398 | ac_ct_CC=$CC |
| 2399 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2400 | set dummy gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2401 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2402 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2403 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2405 | else |
| 2406 | if test -n "$ac_ct_CC"; then |
| 2407 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2408 | else |
| 2409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2410 | for as_dir in $PATH |
| 2411 | do |
| 2412 | IFS=$as_save_IFS |
| 2413 | test -z "$as_dir" && as_dir=. |
| 2414 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2415 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2416 | ac_cv_prog_ac_ct_CC="gcc" |
| 2417 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2418 | break 2 |
| 2419 | fi |
| 2420 | done |
| 2421 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2422 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2423 | |
| 2424 | fi |
| 2425 | fi |
| 2426 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2427 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2428 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2429 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2430 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2431 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2432 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2433 | fi |
| 2434 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2435 | if test "x$ac_ct_CC" = x; then |
| 2436 | CC="" |
| 2437 | else |
| 2438 | case $cross_compiling:$ac_tool_warned in |
| 2439 | yes:) |
| 2440 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2441 | whose name does not start with the host triplet. If you think this |
| 2442 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2443 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2444 | whose name does not start with the host triplet. If you think this |
| 2445 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2446 | ac_tool_warned=yes ;; |
| 2447 | esac |
| 2448 | CC=$ac_ct_CC |
| 2449 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2450 | else |
| 2451 | CC="$ac_cv_prog_CC" |
| 2452 | fi |
| 2453 | |
| 2454 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2455 | if test -n "$ac_tool_prefix"; then |
| 2456 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2457 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2458 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2459 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2460 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2462 | else |
| 2463 | if test -n "$CC"; then |
| 2464 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2465 | else |
| 2466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2467 | for as_dir in $PATH |
| 2468 | do |
| 2469 | IFS=$as_save_IFS |
| 2470 | test -z "$as_dir" && as_dir=. |
| 2471 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2472 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2473 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2474 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2475 | break 2 |
| 2476 | fi |
| 2477 | done |
| 2478 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2479 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2480 | |
| 2481 | fi |
| 2482 | fi |
| 2483 | CC=$ac_cv_prog_CC |
| 2484 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2485 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2486 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2487 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2488 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2489 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2490 | fi |
| 2491 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2492 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2493 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2494 | fi |
| 2495 | if test -z "$CC"; then |
| 2496 | # Extract the first word of "cc", so it can be a program name with args. |
| 2497 | set dummy cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2498 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2499 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2500 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2502 | else |
| 2503 | if test -n "$CC"; then |
| 2504 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2505 | else |
| 2506 | ac_prog_rejected=no |
| 2507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2508 | for as_dir in $PATH |
| 2509 | do |
| 2510 | IFS=$as_save_IFS |
| 2511 | test -z "$as_dir" && as_dir=. |
| 2512 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2513 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2514 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2515 | ac_prog_rejected=yes |
| 2516 | continue |
| 2517 | fi |
| 2518 | ac_cv_prog_CC="cc" |
| 2519 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2520 | break 2 |
| 2521 | fi |
| 2522 | done |
| 2523 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2524 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2525 | |
| 2526 | if test $ac_prog_rejected = yes; then |
| 2527 | # We found a bogon in the path, so make sure we never use it. |
| 2528 | set dummy $ac_cv_prog_CC |
| 2529 | shift |
| 2530 | if test $# != 0; then |
| 2531 | # We chose a different compiler from the bogus one. |
| 2532 | # However, it has the same basename, so the bogon will be chosen |
| 2533 | # first if we set CC to just the basename; use the full file name. |
| 2534 | shift |
| 2535 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2536 | fi |
| 2537 | fi |
| 2538 | fi |
| 2539 | fi |
| 2540 | CC=$ac_cv_prog_CC |
| 2541 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2542 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2543 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2544 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2545 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2546 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2547 | fi |
| 2548 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2549 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2550 | fi |
| 2551 | if test -z "$CC"; then |
| 2552 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2553 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2554 | do |
| 2555 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2556 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2557 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2558 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2559 | if test "${ac_cv_prog_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2561 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2562 | if test -n "$CC"; then |
| 2563 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2564 | else |
| 2565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2566 | for as_dir in $PATH |
| 2567 | do |
| 2568 | IFS=$as_save_IFS |
| 2569 | test -z "$as_dir" && as_dir=. |
| 2570 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2571 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2572 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2573 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2574 | break 2 |
| 2575 | fi |
| 2576 | done |
| 2577 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2578 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2579 | |
| 2580 | fi |
| 2581 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2582 | CC=$ac_cv_prog_CC |
| 2583 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2584 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2585 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2586 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2587 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2588 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2589 | fi |
| 2590 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2591 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2592 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2593 | done |
| 2594 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2595 | if test -z "$CC"; then |
| 2596 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2597 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2598 | do |
| 2599 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2600 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2601 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2602 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2603 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2605 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2606 | if test -n "$ac_ct_CC"; then |
| 2607 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2608 | else |
| 2609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2610 | for as_dir in $PATH |
| 2611 | do |
| 2612 | IFS=$as_save_IFS |
| 2613 | test -z "$as_dir" && as_dir=. |
| 2614 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2615 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2616 | ac_cv_prog_ac_ct_CC="$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2617 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2618 | break 2 |
| 2619 | fi |
| 2620 | done |
| 2621 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2622 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2623 | |
| 2624 | fi |
| 2625 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2626 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2627 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2628 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2629 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2630 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2631 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2632 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2633 | fi |
| 2634 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2635 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2636 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2637 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2638 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2639 | if test "x$ac_ct_CC" = x; then |
| 2640 | CC="" |
| 2641 | else |
| 2642 | case $cross_compiling:$ac_tool_warned in |
| 2643 | yes:) |
| 2644 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2645 | whose name does not start with the host triplet. If you think this |
| 2646 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2647 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2648 | whose name does not start with the host triplet. If you think this |
| 2649 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2650 | ac_tool_warned=yes ;; |
| 2651 | esac |
| 2652 | CC=$ac_ct_CC |
| 2653 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2654 | fi |
| 2655 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2656 | fi |
| 2657 | |
| 2658 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2659 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2660 | See \`config.log' for more details." >&5 |
| 2661 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2662 | See \`config.log' for more details." >&2;} |
| 2663 | { (exit 1); exit 1; }; } |
| 2664 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2665 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2666 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2667 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2668 | { (ac_try="$ac_compiler --version >&5" |
| 2669 | case "(($ac_try" in |
| 2670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2671 | *) ac_try_echo=$ac_try;; |
| 2672 | esac |
| 2673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2674 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2675 | ac_status=$? |
| 2676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2677 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2678 | { (ac_try="$ac_compiler -v >&5" |
| 2679 | case "(($ac_try" in |
| 2680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2681 | *) ac_try_echo=$ac_try;; |
| 2682 | esac |
| 2683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2684 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2685 | ac_status=$? |
| 2686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2687 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2688 | { (ac_try="$ac_compiler -V >&5" |
| 2689 | case "(($ac_try" in |
| 2690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2691 | *) ac_try_echo=$ac_try;; |
| 2692 | esac |
| 2693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2694 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2695 | ac_status=$? |
| 2696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2697 | (exit $ac_status); } |
| 2698 | |
| 2699 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2700 | /* confdefs.h. */ |
| 2701 | _ACEOF |
| 2702 | cat confdefs.h >>conftest.$ac_ext |
| 2703 | cat >>conftest.$ac_ext <<_ACEOF |
| 2704 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2705 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2706 | int |
| 2707 | main () |
| 2708 | { |
| 2709 | |
| 2710 | ; |
| 2711 | return 0; |
| 2712 | } |
| 2713 | _ACEOF |
| 2714 | ac_clean_files_save=$ac_clean_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2715 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2716 | # Try to create an executable without -o first, disregard a.out. |
| 2717 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2718 | # of exeext. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2719 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2720 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2721 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2722 | # |
| 2723 | # List of possible output files, starting from the most likely. |
| 2724 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2725 | # only as a last resort. b.out is created by i960 compilers. |
| 2726 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2727 | # |
| 2728 | # The IRIX 6 linker writes into existing files which may not be |
| 2729 | # executable, retaining their permissions. Remove them first so a |
| 2730 | # subsequent execution test works. |
| 2731 | ac_rmfiles= |
| 2732 | for ac_file in $ac_files |
| 2733 | do |
| 2734 | case $ac_file in |
| 2735 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2736 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2737 | esac |
| 2738 | done |
| 2739 | rm -f $ac_rmfiles |
| 2740 | |
| 2741 | if { (ac_try="$ac_link_default" |
| 2742 | case "(($ac_try" in |
| 2743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2744 | *) ac_try_echo=$ac_try;; |
| 2745 | esac |
| 2746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2747 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2748 | ac_status=$? |
| 2749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2750 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2751 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2752 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2753 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2754 | # so that the user can short-circuit this test for compilers unknown to |
| 2755 | # Autoconf. |
| 2756 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2757 | do |
| 2758 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2759 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2760 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2761 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2762 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2763 | # We found the default executable, but exeext='' is most |
| 2764 | # certainly right. |
| 2765 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2766 | *.* ) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2767 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2768 | then :; else |
| 2769 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2770 | fi |
| 2771 | # We set ac_cv_exeext here because the later test for it is not |
| 2772 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2773 | # argument, so we may need to know it at that point already. |
| 2774 | # Even if this section looks crufty: it has the advantage of |
| 2775 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2776 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2777 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2778 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2779 | esac |
| 2780 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2781 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2782 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2783 | else |
| 2784 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2786 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2787 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2788 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2789 | echo "$as_me: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2790 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2791 | { (exit 77); exit 77; }; } |
| 2792 | fi |
| 2793 | |
| 2794 | ac_exeext=$ac_cv_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2795 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2796 | echo "${ECHO_T}$ac_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2797 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2798 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2799 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2800 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2801 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2802 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2803 | # If not cross compiling, check that we can run a simple program. |
| 2804 | if test "$cross_compiling" != yes; then |
| 2805 | if { ac_try='./$ac_file' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2806 | { (case "(($ac_try" in |
| 2807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2808 | *) ac_try_echo=$ac_try;; |
| 2809 | esac |
| 2810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2811 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2812 | ac_status=$? |
| 2813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2814 | (exit $ac_status); }; }; then |
| 2815 | cross_compiling=no |
| 2816 | else |
| 2817 | if test "$cross_compiling" = maybe; then |
| 2818 | cross_compiling=yes |
| 2819 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2820 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2821 | If you meant to cross compile, use \`--host'. |
| 2822 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2823 | echo "$as_me: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2824 | If you meant to cross compile, use \`--host'. |
| 2825 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2826 | { (exit 1); exit 1; }; } |
| 2827 | fi |
| 2828 | fi |
| 2829 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2830 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2831 | echo "${ECHO_T}yes" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2832 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2833 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2834 | ac_clean_files=$ac_clean_files_save |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2835 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2836 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2837 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2838 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2839 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2840 | echo "${ECHO_T}$cross_compiling" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2841 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2842 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2843 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2844 | if { (ac_try="$ac_link" |
| 2845 | case "(($ac_try" in |
| 2846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2847 | *) ac_try_echo=$ac_try;; |
| 2848 | esac |
| 2849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2850 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2851 | ac_status=$? |
| 2852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2853 | (exit $ac_status); }; then |
| 2854 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2855 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2856 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2857 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2858 | for ac_file in conftest.exe conftest conftest.*; do |
| 2859 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2860 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2861 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2862 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2863 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2864 | * ) break;; |
| 2865 | esac |
| 2866 | done |
| 2867 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2868 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2869 | See \`config.log' for more details." >&5 |
| 2870 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2871 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2872 | { (exit 1); exit 1; }; } |
| 2873 | fi |
| 2874 | |
| 2875 | rm -f conftest$ac_cv_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2876 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2877 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2878 | |
| 2879 | rm -f conftest.$ac_ext |
| 2880 | EXEEXT=$ac_cv_exeext |
| 2881 | ac_exeext=$EXEEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2882 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2883 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2884 | if test "${ac_cv_objext+set}" = set; then |
| 2885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2886 | else |
| 2887 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2888 | /* confdefs.h. */ |
| 2889 | _ACEOF |
| 2890 | cat confdefs.h >>conftest.$ac_ext |
| 2891 | cat >>conftest.$ac_ext <<_ACEOF |
| 2892 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2893 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2894 | int |
| 2895 | main () |
| 2896 | { |
| 2897 | |
| 2898 | ; |
| 2899 | return 0; |
| 2900 | } |
| 2901 | _ACEOF |
| 2902 | rm -f conftest.o conftest.obj |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2903 | if { (ac_try="$ac_compile" |
| 2904 | case "(($ac_try" in |
| 2905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2906 | *) ac_try_echo=$ac_try;; |
| 2907 | esac |
| 2908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2909 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2910 | ac_status=$? |
| 2911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2912 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2913 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2914 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2915 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2916 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2917 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2918 | break;; |
| 2919 | esac |
| 2920 | done |
| 2921 | else |
| 2922 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2923 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2924 | |
| 2925 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2926 | See \`config.log' for more details." >&5 |
| 2927 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2928 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2929 | { (exit 1); exit 1; }; } |
| 2930 | fi |
| 2931 | |
| 2932 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2933 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2934 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2935 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2936 | OBJEXT=$ac_cv_objext |
| 2937 | ac_objext=$OBJEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2938 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2939 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2940 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2942 | else |
| 2943 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2944 | /* confdefs.h. */ |
| 2945 | _ACEOF |
| 2946 | cat confdefs.h >>conftest.$ac_ext |
| 2947 | cat >>conftest.$ac_ext <<_ACEOF |
| 2948 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2949 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2950 | int |
| 2951 | main () |
| 2952 | { |
| 2953 | #ifndef __GNUC__ |
| 2954 | choke me |
| 2955 | #endif |
| 2956 | |
| 2957 | ; |
| 2958 | return 0; |
| 2959 | } |
| 2960 | _ACEOF |
| 2961 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2962 | if { (ac_try="$ac_compile" |
| 2963 | case "(($ac_try" in |
| 2964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2965 | *) ac_try_echo=$ac_try;; |
| 2966 | esac |
| 2967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2968 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2969 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2970 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2971 | rm -f conftest.er1 |
| 2972 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2974 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2975 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2976 | { (case "(($ac_try" in |
| 2977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2978 | *) ac_try_echo=$ac_try;; |
| 2979 | esac |
| 2980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2981 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2982 | ac_status=$? |
| 2983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2984 | (exit $ac_status); }; } && |
| 2985 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2986 | { (case "(($ac_try" in |
| 2987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2988 | *) ac_try_echo=$ac_try;; |
| 2989 | esac |
| 2990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2991 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2992 | ac_status=$? |
| 2993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2994 | (exit $ac_status); }; }; then |
| 2995 | ac_compiler_gnu=yes |
| 2996 | else |
| 2997 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2998 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2999 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3000 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3001 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3002 | |
| 3003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3004 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3005 | |
| 3006 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3007 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3008 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3009 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3010 | ac_test_CFLAGS=${CFLAGS+set} |
| 3011 | ac_save_CFLAGS=$CFLAGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3012 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3013 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3014 | if test "${ac_cv_prog_cc_g+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3016 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3017 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3018 | ac_c_werror_flag=yes |
| 3019 | ac_cv_prog_cc_g=no |
| 3020 | CFLAGS="-g" |
| 3021 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3022 | /* confdefs.h. */ |
| 3023 | _ACEOF |
| 3024 | cat confdefs.h >>conftest.$ac_ext |
| 3025 | cat >>conftest.$ac_ext <<_ACEOF |
| 3026 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3027 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3028 | int |
| 3029 | main () |
| 3030 | { |
| 3031 | |
| 3032 | ; |
| 3033 | return 0; |
| 3034 | } |
| 3035 | _ACEOF |
| 3036 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3037 | if { (ac_try="$ac_compile" |
| 3038 | case "(($ac_try" in |
| 3039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3040 | *) ac_try_echo=$ac_try;; |
| 3041 | esac |
| 3042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3043 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3044 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3046 | rm -f conftest.er1 |
| 3047 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3049 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3050 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3051 | { (case "(($ac_try" in |
| 3052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3053 | *) ac_try_echo=$ac_try;; |
| 3054 | esac |
| 3055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3056 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3057 | ac_status=$? |
| 3058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3059 | (exit $ac_status); }; } && |
| 3060 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3061 | { (case "(($ac_try" in |
| 3062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3063 | *) ac_try_echo=$ac_try;; |
| 3064 | esac |
| 3065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3066 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3067 | ac_status=$? |
| 3068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3069 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3070 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3071 | else |
| 3072 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3073 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3074 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3075 | CFLAGS="" |
| 3076 | cat >conftest.$ac_ext <<_ACEOF |
| 3077 | /* confdefs.h. */ |
| 3078 | _ACEOF |
| 3079 | cat confdefs.h >>conftest.$ac_ext |
| 3080 | cat >>conftest.$ac_ext <<_ACEOF |
| 3081 | /* end confdefs.h. */ |
| 3082 | |
| 3083 | int |
| 3084 | main () |
| 3085 | { |
| 3086 | |
| 3087 | ; |
| 3088 | return 0; |
| 3089 | } |
| 3090 | _ACEOF |
| 3091 | rm -f conftest.$ac_objext |
| 3092 | if { (ac_try="$ac_compile" |
| 3093 | case "(($ac_try" in |
| 3094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3095 | *) ac_try_echo=$ac_try;; |
| 3096 | esac |
| 3097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3098 | (eval "$ac_compile") 2>conftest.er1 |
| 3099 | ac_status=$? |
| 3100 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3101 | rm -f conftest.er1 |
| 3102 | cat conftest.err >&5 |
| 3103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3104 | (exit $ac_status); } && |
| 3105 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3106 | { (case "(($ac_try" in |
| 3107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3108 | *) ac_try_echo=$ac_try;; |
| 3109 | esac |
| 3110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3111 | (eval "$ac_try") 2>&5 |
| 3112 | ac_status=$? |
| 3113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3114 | (exit $ac_status); }; } && |
| 3115 | { ac_try='test -s conftest.$ac_objext' |
| 3116 | { (case "(($ac_try" in |
| 3117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3118 | *) ac_try_echo=$ac_try;; |
| 3119 | esac |
| 3120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3121 | (eval "$ac_try") 2>&5 |
| 3122 | ac_status=$? |
| 3123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3124 | (exit $ac_status); }; }; then |
| 3125 | : |
| 3126 | else |
| 3127 | echo "$as_me: failed program was:" >&5 |
| 3128 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3129 | |
| 3130 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3131 | CFLAGS="-g" |
| 3132 | cat >conftest.$ac_ext <<_ACEOF |
| 3133 | /* confdefs.h. */ |
| 3134 | _ACEOF |
| 3135 | cat confdefs.h >>conftest.$ac_ext |
| 3136 | cat >>conftest.$ac_ext <<_ACEOF |
| 3137 | /* end confdefs.h. */ |
| 3138 | |
| 3139 | int |
| 3140 | main () |
| 3141 | { |
| 3142 | |
| 3143 | ; |
| 3144 | return 0; |
| 3145 | } |
| 3146 | _ACEOF |
| 3147 | rm -f conftest.$ac_objext |
| 3148 | if { (ac_try="$ac_compile" |
| 3149 | case "(($ac_try" in |
| 3150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3151 | *) ac_try_echo=$ac_try;; |
| 3152 | esac |
| 3153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3154 | (eval "$ac_compile") 2>conftest.er1 |
| 3155 | ac_status=$? |
| 3156 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3157 | rm -f conftest.er1 |
| 3158 | cat conftest.err >&5 |
| 3159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3160 | (exit $ac_status); } && |
| 3161 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3162 | { (case "(($ac_try" in |
| 3163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3164 | *) ac_try_echo=$ac_try;; |
| 3165 | esac |
| 3166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3167 | (eval "$ac_try") 2>&5 |
| 3168 | ac_status=$? |
| 3169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3170 | (exit $ac_status); }; } && |
| 3171 | { ac_try='test -s conftest.$ac_objext' |
| 3172 | { (case "(($ac_try" in |
| 3173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3174 | *) ac_try_echo=$ac_try;; |
| 3175 | esac |
| 3176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3177 | (eval "$ac_try") 2>&5 |
| 3178 | ac_status=$? |
| 3179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3180 | (exit $ac_status); }; }; then |
| 3181 | ac_cv_prog_cc_g=yes |
| 3182 | else |
| 3183 | echo "$as_me: failed program was:" >&5 |
| 3184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3185 | |
| 3186 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3187 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3188 | |
| 3189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3190 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3191 | |
| 3192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3193 | fi |
| 3194 | |
| 3195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3196 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3197 | fi |
| 3198 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3199 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3200 | if test "$ac_test_CFLAGS" = set; then |
| 3201 | CFLAGS=$ac_save_CFLAGS |
| 3202 | elif test $ac_cv_prog_cc_g = yes; then |
| 3203 | if test "$GCC" = yes; then |
| 3204 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3205 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3206 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3207 | fi |
| 3208 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3209 | if test "$GCC" = yes; then |
| 3210 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3211 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3212 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3213 | fi |
| 3214 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3215 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3216 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3217 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3219 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3220 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3221 | ac_save_CC=$CC |
| 3222 | cat >conftest.$ac_ext <<_ACEOF |
| 3223 | /* confdefs.h. */ |
| 3224 | _ACEOF |
| 3225 | cat confdefs.h >>conftest.$ac_ext |
| 3226 | cat >>conftest.$ac_ext <<_ACEOF |
| 3227 | /* end confdefs.h. */ |
| 3228 | #include <stdarg.h> |
| 3229 | #include <stdio.h> |
| 3230 | #include <sys/types.h> |
| 3231 | #include <sys/stat.h> |
| 3232 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3233 | struct buf { int x; }; |
| 3234 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3235 | static char *e (p, i) |
| 3236 | char **p; |
| 3237 | int i; |
| 3238 | { |
| 3239 | return p[i]; |
| 3240 | } |
| 3241 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3242 | { |
| 3243 | char *s; |
| 3244 | va_list v; |
| 3245 | va_start (v,p); |
| 3246 | s = g (p, va_arg (v,int)); |
| 3247 | va_end (v); |
| 3248 | return s; |
| 3249 | } |
| 3250 | |
| 3251 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3252 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3253 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3254 | as 'x'. The following induces an error, until -std is added to get |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3255 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3256 | array size at least. It's necessary to write '\x00'==0 to get something |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3257 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3258 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3259 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3260 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3261 | inside strings and character constants. */ |
| 3262 | #define FOO(x) 'x' |
| 3263 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3264 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3265 | int test (int i, double x); |
| 3266 | struct s1 {int (*f) (int a);}; |
| 3267 | struct s2 {int (*f) (double a);}; |
| 3268 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3269 | int argc; |
| 3270 | char **argv; |
| 3271 | int |
| 3272 | main () |
| 3273 | { |
| 3274 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3275 | ; |
| 3276 | return 0; |
| 3277 | } |
| 3278 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3279 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3280 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3281 | do |
| 3282 | CC="$ac_save_CC $ac_arg" |
| 3283 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3284 | if { (ac_try="$ac_compile" |
| 3285 | case "(($ac_try" in |
| 3286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3287 | *) ac_try_echo=$ac_try;; |
| 3288 | esac |
| 3289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3290 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3291 | ac_status=$? |
| 3292 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3293 | rm -f conftest.er1 |
| 3294 | cat conftest.err >&5 |
| 3295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3296 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3297 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3298 | { (case "(($ac_try" in |
| 3299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3300 | *) ac_try_echo=$ac_try;; |
| 3301 | esac |
| 3302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3303 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3304 | ac_status=$? |
| 3305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3306 | (exit $ac_status); }; } && |
| 3307 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3308 | { (case "(($ac_try" in |
| 3309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3310 | *) ac_try_echo=$ac_try;; |
| 3311 | esac |
| 3312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3313 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3314 | ac_status=$? |
| 3315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3316 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3317 | ac_cv_prog_cc_c89=$ac_arg |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3318 | else |
| 3319 | echo "$as_me: failed program was:" >&5 |
| 3320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3321 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3322 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3323 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3324 | |
| 3325 | rm -f core conftest.err conftest.$ac_objext |
| 3326 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3327 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3328 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3329 | CC=$ac_save_CC |
| 3330 | |
| 3331 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3332 | # AC_CACHE_VAL |
| 3333 | case "x$ac_cv_prog_cc_c89" in |
| 3334 | x) |
| 3335 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3336 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3337 | xno) |
| 3338 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3339 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3340 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3341 | CC="$CC $ac_cv_prog_cc_c89" |
| 3342 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3343 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3344 | esac |
| 3345 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3346 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3347 | ac_ext=c |
| 3348 | ac_cpp='$CPP $CPPFLAGS' |
| 3349 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3350 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3351 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3352 | |
| 3353 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3354 | ac_ext=c |
| 3355 | ac_cpp='$CPP $CPPFLAGS' |
| 3356 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3357 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3358 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3359 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3360 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3361 | # On Suns, sometimes $CPP names a directory. |
| 3362 | if test -n "$CPP" && test -d "$CPP"; then |
| 3363 | CPP= |
| 3364 | fi |
| 3365 | if test -z "$CPP"; then |
| 3366 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3368 | else |
| 3369 | # Double quotes because CPP needs to be expanded |
| 3370 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3371 | do |
| 3372 | ac_preproc_ok=false |
| 3373 | for ac_c_preproc_warn_flag in '' yes |
| 3374 | do |
| 3375 | # Use a header file that comes with gcc, so configuring glibc |
| 3376 | # with a fresh cross-compiler works. |
| 3377 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3378 | # <limits.h> exists even on freestanding compilers. |
| 3379 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3380 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3381 | cat >conftest.$ac_ext <<_ACEOF |
| 3382 | /* confdefs.h. */ |
| 3383 | _ACEOF |
| 3384 | cat confdefs.h >>conftest.$ac_ext |
| 3385 | cat >>conftest.$ac_ext <<_ACEOF |
| 3386 | /* end confdefs.h. */ |
| 3387 | #ifdef __STDC__ |
| 3388 | # include <limits.h> |
| 3389 | #else |
| 3390 | # include <assert.h> |
| 3391 | #endif |
| 3392 | Syntax error |
| 3393 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3394 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3395 | case "(($ac_try" in |
| 3396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3397 | *) ac_try_echo=$ac_try;; |
| 3398 | esac |
| 3399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3400 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3401 | ac_status=$? |
| 3402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3403 | rm -f conftest.er1 |
| 3404 | cat conftest.err >&5 |
| 3405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3406 | (exit $ac_status); } >/dev/null; then |
| 3407 | if test -s conftest.err; then |
| 3408 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3409 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3410 | else |
| 3411 | ac_cpp_err= |
| 3412 | fi |
| 3413 | else |
| 3414 | ac_cpp_err=yes |
| 3415 | fi |
| 3416 | if test -z "$ac_cpp_err"; then |
| 3417 | : |
| 3418 | else |
| 3419 | echo "$as_me: failed program was:" >&5 |
| 3420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3421 | |
| 3422 | # Broken: fails on valid input. |
| 3423 | continue |
| 3424 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3425 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3426 | rm -f conftest.err conftest.$ac_ext |
| 3427 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3428 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3429 | # can be detected and how. |
| 3430 | cat >conftest.$ac_ext <<_ACEOF |
| 3431 | /* confdefs.h. */ |
| 3432 | _ACEOF |
| 3433 | cat confdefs.h >>conftest.$ac_ext |
| 3434 | cat >>conftest.$ac_ext <<_ACEOF |
| 3435 | /* end confdefs.h. */ |
| 3436 | #include <ac_nonexistent.h> |
| 3437 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3438 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3439 | case "(($ac_try" in |
| 3440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3441 | *) ac_try_echo=$ac_try;; |
| 3442 | esac |
| 3443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3444 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3445 | ac_status=$? |
| 3446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3447 | rm -f conftest.er1 |
| 3448 | cat conftest.err >&5 |
| 3449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3450 | (exit $ac_status); } >/dev/null; then |
| 3451 | if test -s conftest.err; then |
| 3452 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3453 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3454 | else |
| 3455 | ac_cpp_err= |
| 3456 | fi |
| 3457 | else |
| 3458 | ac_cpp_err=yes |
| 3459 | fi |
| 3460 | if test -z "$ac_cpp_err"; then |
| 3461 | # Broken: success on invalid input. |
| 3462 | continue |
| 3463 | else |
| 3464 | echo "$as_me: failed program was:" >&5 |
| 3465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3466 | |
| 3467 | # Passes both tests. |
| 3468 | ac_preproc_ok=: |
| 3469 | break |
| 3470 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3471 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3472 | rm -f conftest.err conftest.$ac_ext |
| 3473 | |
| 3474 | done |
| 3475 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3476 | rm -f conftest.err conftest.$ac_ext |
| 3477 | if $ac_preproc_ok; then |
| 3478 | break |
| 3479 | fi |
| 3480 | |
| 3481 | done |
| 3482 | ac_cv_prog_CPP=$CPP |
| 3483 | |
| 3484 | fi |
| 3485 | CPP=$ac_cv_prog_CPP |
| 3486 | else |
| 3487 | ac_cv_prog_CPP=$CPP |
| 3488 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3489 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3490 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3491 | ac_preproc_ok=false |
| 3492 | for ac_c_preproc_warn_flag in '' yes |
| 3493 | do |
| 3494 | # Use a header file that comes with gcc, so configuring glibc |
| 3495 | # with a fresh cross-compiler works. |
| 3496 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3497 | # <limits.h> exists even on freestanding compilers. |
| 3498 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3499 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3500 | cat >conftest.$ac_ext <<_ACEOF |
| 3501 | /* confdefs.h. */ |
| 3502 | _ACEOF |
| 3503 | cat confdefs.h >>conftest.$ac_ext |
| 3504 | cat >>conftest.$ac_ext <<_ACEOF |
| 3505 | /* end confdefs.h. */ |
| 3506 | #ifdef __STDC__ |
| 3507 | # include <limits.h> |
| 3508 | #else |
| 3509 | # include <assert.h> |
| 3510 | #endif |
| 3511 | Syntax error |
| 3512 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3513 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3514 | case "(($ac_try" in |
| 3515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3516 | *) ac_try_echo=$ac_try;; |
| 3517 | esac |
| 3518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3519 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3520 | ac_status=$? |
| 3521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3522 | rm -f conftest.er1 |
| 3523 | cat conftest.err >&5 |
| 3524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3525 | (exit $ac_status); } >/dev/null; then |
| 3526 | if test -s conftest.err; then |
| 3527 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3528 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3529 | else |
| 3530 | ac_cpp_err= |
| 3531 | fi |
| 3532 | else |
| 3533 | ac_cpp_err=yes |
| 3534 | fi |
| 3535 | if test -z "$ac_cpp_err"; then |
| 3536 | : |
| 3537 | else |
| 3538 | echo "$as_me: failed program was:" >&5 |
| 3539 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3540 | |
| 3541 | # Broken: fails on valid input. |
| 3542 | continue |
| 3543 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3544 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3545 | rm -f conftest.err conftest.$ac_ext |
| 3546 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3547 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3548 | # can be detected and how. |
| 3549 | cat >conftest.$ac_ext <<_ACEOF |
| 3550 | /* confdefs.h. */ |
| 3551 | _ACEOF |
| 3552 | cat confdefs.h >>conftest.$ac_ext |
| 3553 | cat >>conftest.$ac_ext <<_ACEOF |
| 3554 | /* end confdefs.h. */ |
| 3555 | #include <ac_nonexistent.h> |
| 3556 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3557 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3558 | case "(($ac_try" in |
| 3559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3560 | *) ac_try_echo=$ac_try;; |
| 3561 | esac |
| 3562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3563 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3564 | ac_status=$? |
| 3565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3566 | rm -f conftest.er1 |
| 3567 | cat conftest.err >&5 |
| 3568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3569 | (exit $ac_status); } >/dev/null; then |
| 3570 | if test -s conftest.err; then |
| 3571 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3572 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3573 | else |
| 3574 | ac_cpp_err= |
| 3575 | fi |
| 3576 | else |
| 3577 | ac_cpp_err=yes |
| 3578 | fi |
| 3579 | if test -z "$ac_cpp_err"; then |
| 3580 | # Broken: success on invalid input. |
| 3581 | continue |
| 3582 | else |
| 3583 | echo "$as_me: failed program was:" >&5 |
| 3584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3585 | |
| 3586 | # Passes both tests. |
| 3587 | ac_preproc_ok=: |
| 3588 | break |
| 3589 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3590 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3591 | rm -f conftest.err conftest.$ac_ext |
| 3592 | |
| 3593 | done |
| 3594 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3595 | rm -f conftest.err conftest.$ac_ext |
| 3596 | if $ac_preproc_ok; then |
| 3597 | : |
| 3598 | else |
| 3599 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3600 | See \`config.log' for more details." >&5 |
| 3601 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3602 | See \`config.log' for more details." >&2;} |
| 3603 | { (exit 1); exit 1; }; } |
| 3604 | fi |
| 3605 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3606 | ac_ext=c |
| 3607 | ac_cpp='$CPP $CPPFLAGS' |
| 3608 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3609 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3610 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3611 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3612 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3613 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3614 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3615 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3617 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3618 | # Extract the first word of "grep ggrep" to use in msg output |
| 3619 | if test -z "$GREP"; then |
| 3620 | set dummy grep ggrep; ac_prog_name=$2 |
| 3621 | if test "${ac_cv_path_GREP+set}" = set; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3623 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3624 | ac_path_GREP_found=false |
| 3625 | # Loop through the user's path and test for each of PROGNAME-LIST |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3627 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3628 | do |
| 3629 | IFS=$as_save_IFS |
| 3630 | test -z "$as_dir" && as_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3631 | for ac_prog in grep ggrep; do |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3632 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3633 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3634 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3635 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3636 | # Check for GNU $ac_path_GREP |
| 3637 | case `"$ac_path_GREP" --version 2>&1` in |
| 3638 | *GNU*) |
| 3639 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3640 | *) |
| 3641 | ac_count=0 |
| 3642 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3643 | while : |
| 3644 | do |
| 3645 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3646 | mv "conftest.tmp" "conftest.in" |
| 3647 | cp "conftest.in" "conftest.nl" |
| 3648 | echo 'GREP' >> "conftest.nl" |
| 3649 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3650 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3651 | ac_count=`expr $ac_count + 1` |
| 3652 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3653 | # Best one so far, save it but keep looking for a better one |
| 3654 | ac_cv_path_GREP="$ac_path_GREP" |
| 3655 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3656 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3657 | # 10*(2^10) chars as input seems more than enough |
| 3658 | test $ac_count -gt 10 && break |
| 3659 | done |
| 3660 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3661 | esac |
| 3662 | |
| 3663 | |
| 3664 | $ac_path_GREP_found && break 3 |
| 3665 | done |
| 3666 | done |
| 3667 | |
| 3668 | done |
| 3669 | IFS=$as_save_IFS |
| 3670 | |
| 3671 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3672 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3673 | |
| 3674 | GREP="$ac_cv_path_GREP" |
| 3675 | if test -z "$GREP"; then |
| 3676 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3677 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3678 | { (exit 1); exit 1; }; } |
| 3679 | fi |
| 3680 | |
| 3681 | else |
| 3682 | ac_cv_path_GREP=$GREP |
| 3683 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3684 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3685 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3686 | fi |
| 3687 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3688 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3689 | GREP="$ac_cv_path_GREP" |
| 3690 | |
| 3691 | |
| 3692 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3693 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3694 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3696 | else |
| 3697 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3698 | then ac_cv_path_EGREP="$GREP -E" |
| 3699 | else |
| 3700 | # Extract the first word of "egrep" to use in msg output |
| 3701 | if test -z "$EGREP"; then |
| 3702 | set dummy egrep; ac_prog_name=$2 |
| 3703 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3705 | else |
| 3706 | ac_path_EGREP_found=false |
| 3707 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3709 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3710 | do |
| 3711 | IFS=$as_save_IFS |
| 3712 | test -z "$as_dir" && as_dir=. |
| 3713 | for ac_prog in egrep; do |
| 3714 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3715 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3716 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 3717 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3718 | # Check for GNU $ac_path_EGREP |
| 3719 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3720 | *GNU*) |
| 3721 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3722 | *) |
| 3723 | ac_count=0 |
| 3724 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3725 | while : |
| 3726 | do |
| 3727 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3728 | mv "conftest.tmp" "conftest.in" |
| 3729 | cp "conftest.in" "conftest.nl" |
| 3730 | echo 'EGREP' >> "conftest.nl" |
| 3731 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3732 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3733 | ac_count=`expr $ac_count + 1` |
| 3734 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3735 | # Best one so far, save it but keep looking for a better one |
| 3736 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3737 | ac_path_EGREP_max=$ac_count |
| 3738 | fi |
| 3739 | # 10*(2^10) chars as input seems more than enough |
| 3740 | test $ac_count -gt 10 && break |
| 3741 | done |
| 3742 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3743 | esac |
| 3744 | |
| 3745 | |
| 3746 | $ac_path_EGREP_found && break 3 |
| 3747 | done |
| 3748 | done |
| 3749 | |
| 3750 | done |
| 3751 | IFS=$as_save_IFS |
| 3752 | |
| 3753 | |
| 3754 | fi |
| 3755 | |
| 3756 | EGREP="$ac_cv_path_EGREP" |
| 3757 | if test -z "$EGREP"; then |
| 3758 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3759 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3760 | { (exit 1); exit 1; }; } |
| 3761 | fi |
| 3762 | |
| 3763 | else |
| 3764 | ac_cv_path_EGREP=$EGREP |
| 3765 | fi |
| 3766 | |
| 3767 | |
| 3768 | fi |
| 3769 | fi |
| 3770 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3771 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3772 | EGREP="$ac_cv_path_EGREP" |
| 3773 | |
| 3774 | |
| 3775 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3776 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3777 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3779 | else |
| 3780 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3781 | /* confdefs.h. */ |
| 3782 | _ACEOF |
| 3783 | cat confdefs.h >>conftest.$ac_ext |
| 3784 | cat >>conftest.$ac_ext <<_ACEOF |
| 3785 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3786 | #include <stdlib.h> |
| 3787 | #include <stdarg.h> |
| 3788 | #include <string.h> |
| 3789 | #include <float.h> |
| 3790 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3791 | int |
| 3792 | main () |
| 3793 | { |
| 3794 | |
| 3795 | ; |
| 3796 | return 0; |
| 3797 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3798 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3799 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3800 | if { (ac_try="$ac_compile" |
| 3801 | case "(($ac_try" in |
| 3802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3803 | *) ac_try_echo=$ac_try;; |
| 3804 | esac |
| 3805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3806 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3807 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3809 | rm -f conftest.er1 |
| 3810 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3812 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3813 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3814 | { (case "(($ac_try" in |
| 3815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3816 | *) ac_try_echo=$ac_try;; |
| 3817 | esac |
| 3818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3819 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3820 | ac_status=$? |
| 3821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3822 | (exit $ac_status); }; } && |
| 3823 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3824 | { (case "(($ac_try" in |
| 3825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3826 | *) ac_try_echo=$ac_try;; |
| 3827 | esac |
| 3828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3829 | (eval "$ac_try") 2>&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3830 | ac_status=$? |
| 3831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3832 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3833 | ac_cv_header_stdc=yes |
| 3834 | else |
| 3835 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3837 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3838 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3839 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3840 | |
| 3841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3842 | |
| 3843 | if test $ac_cv_header_stdc = yes; then |
| 3844 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3845 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3846 | /* confdefs.h. */ |
| 3847 | _ACEOF |
| 3848 | cat confdefs.h >>conftest.$ac_ext |
| 3849 | cat >>conftest.$ac_ext <<_ACEOF |
| 3850 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3851 | #include <string.h> |
| 3852 | |
| 3853 | _ACEOF |
| 3854 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3855 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3856 | : |
| 3857 | else |
| 3858 | ac_cv_header_stdc=no |
| 3859 | fi |
| 3860 | rm -f conftest* |
| 3861 | |
| 3862 | fi |
| 3863 | |
| 3864 | if test $ac_cv_header_stdc = yes; then |
| 3865 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3866 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3867 | /* confdefs.h. */ |
| 3868 | _ACEOF |
| 3869 | cat confdefs.h >>conftest.$ac_ext |
| 3870 | cat >>conftest.$ac_ext <<_ACEOF |
| 3871 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3872 | #include <stdlib.h> |
| 3873 | |
| 3874 | _ACEOF |
| 3875 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3876 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3877 | : |
| 3878 | else |
| 3879 | ac_cv_header_stdc=no |
| 3880 | fi |
| 3881 | rm -f conftest* |
| 3882 | |
| 3883 | fi |
| 3884 | |
| 3885 | if test $ac_cv_header_stdc = yes; then |
| 3886 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3887 | if test "$cross_compiling" = yes; then |
| 3888 | : |
| 3889 | else |
| 3890 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3891 | /* confdefs.h. */ |
| 3892 | _ACEOF |
| 3893 | cat confdefs.h >>conftest.$ac_ext |
| 3894 | cat >>conftest.$ac_ext <<_ACEOF |
| 3895 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3896 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3897 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3898 | #if ((' ' & 0x0FF) == 0x020) |
| 3899 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3900 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3901 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3902 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3903 | (('a' <= (c) && (c) <= 'i') \ |
| 3904 | || ('j' <= (c) && (c) <= 'r') \ |
| 3905 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3906 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3907 | #endif |
| 3908 | |
| 3909 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3910 | int |
| 3911 | main () |
| 3912 | { |
| 3913 | int i; |
| 3914 | for (i = 0; i < 256; i++) |
| 3915 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3916 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3917 | return 2; |
| 3918 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3919 | } |
| 3920 | _ACEOF |
| 3921 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3922 | if { (ac_try="$ac_link" |
| 3923 | case "(($ac_try" in |
| 3924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3925 | *) ac_try_echo=$ac_try;; |
| 3926 | esac |
| 3927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3928 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3929 | ac_status=$? |
| 3930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3931 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3932 | { (case "(($ac_try" in |
| 3933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3934 | *) ac_try_echo=$ac_try;; |
| 3935 | esac |
| 3936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3937 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3938 | ac_status=$? |
| 3939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3940 | (exit $ac_status); }; }; then |
| 3941 | : |
| 3942 | else |
| 3943 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3944 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3946 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3947 | ( exit $ac_status ) |
| 3948 | ac_cv_header_stdc=no |
| 3949 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3950 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3951 | fi |
| 3952 | |
| 3953 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3954 | fi |
| 3955 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3956 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3957 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3958 | if test $ac_cv_header_stdc = yes; then |
| 3959 | |
| 3960 | cat >>confdefs.h <<\_ACEOF |
| 3961 | #define STDC_HEADERS 1 |
| 3962 | _ACEOF |
| 3963 | |
| 3964 | fi |
| 3965 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3966 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3967 | |
| 3968 | |
| 3969 | |
| 3970 | |
| 3971 | |
| 3972 | |
| 3973 | |
| 3974 | |
| 3975 | |
| 3976 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3977 | inttypes.h stdint.h unistd.h |
| 3978 | do |
| 3979 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3980 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3981 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 3982 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 3983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3984 | else |
| 3985 | cat >conftest.$ac_ext <<_ACEOF |
| 3986 | /* confdefs.h. */ |
| 3987 | _ACEOF |
| 3988 | cat confdefs.h >>conftest.$ac_ext |
| 3989 | cat >>conftest.$ac_ext <<_ACEOF |
| 3990 | /* end confdefs.h. */ |
| 3991 | $ac_includes_default |
| 3992 | |
| 3993 | #include <$ac_header> |
| 3994 | _ACEOF |
| 3995 | rm -f conftest.$ac_objext |
| 3996 | if { (ac_try="$ac_compile" |
| 3997 | case "(($ac_try" in |
| 3998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3999 | *) ac_try_echo=$ac_try;; |
| 4000 | esac |
| 4001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4002 | (eval "$ac_compile") 2>conftest.er1 |
| 4003 | ac_status=$? |
| 4004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4005 | rm -f conftest.er1 |
| 4006 | cat conftest.err >&5 |
| 4007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4008 | (exit $ac_status); } && |
| 4009 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4010 | { (case "(($ac_try" in |
| 4011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4012 | *) ac_try_echo=$ac_try;; |
| 4013 | esac |
| 4014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4015 | (eval "$ac_try") 2>&5 |
| 4016 | ac_status=$? |
| 4017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4018 | (exit $ac_status); }; } && |
| 4019 | { ac_try='test -s conftest.$ac_objext' |
| 4020 | { (case "(($ac_try" in |
| 4021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4022 | *) ac_try_echo=$ac_try;; |
| 4023 | esac |
| 4024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4025 | (eval "$ac_try") 2>&5 |
| 4026 | ac_status=$? |
| 4027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4028 | (exit $ac_status); }; }; then |
| 4029 | eval "$as_ac_Header=yes" |
| 4030 | else |
| 4031 | echo "$as_me: failed program was:" >&5 |
| 4032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4033 | |
| 4034 | eval "$as_ac_Header=no" |
| 4035 | fi |
| 4036 | |
| 4037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4038 | fi |
| 4039 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4040 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4041 | echo "${ECHO_T}$ac_res" >&6; } |
| 4042 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4043 | cat >>confdefs.h <<_ACEOF |
| 4044 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4045 | _ACEOF |
| 4046 | |
| 4047 | fi |
| 4048 | |
| 4049 | done |
| 4050 | |
| 4051 | |
| 4052 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4053 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4054 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4056 | else |
| 4057 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4058 | cat >conftest.$ac_ext <<_ACEOF |
| 4059 | /* confdefs.h. */ |
| 4060 | _ACEOF |
| 4061 | cat confdefs.h >>conftest.$ac_ext |
| 4062 | cat >>conftest.$ac_ext <<_ACEOF |
| 4063 | /* end confdefs.h. */ |
| 4064 | #include <sys/types.h> |
| 4065 | #include <sys/param.h> |
| 4066 | |
| 4067 | int |
| 4068 | main () |
| 4069 | { |
| 4070 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4071 | bogus endian macros |
| 4072 | #endif |
| 4073 | |
| 4074 | ; |
| 4075 | return 0; |
| 4076 | } |
| 4077 | _ACEOF |
| 4078 | rm -f conftest.$ac_objext |
| 4079 | if { (ac_try="$ac_compile" |
| 4080 | case "(($ac_try" in |
| 4081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4082 | *) ac_try_echo=$ac_try;; |
| 4083 | esac |
| 4084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4085 | (eval "$ac_compile") 2>conftest.er1 |
| 4086 | ac_status=$? |
| 4087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4088 | rm -f conftest.er1 |
| 4089 | cat conftest.err >&5 |
| 4090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4091 | (exit $ac_status); } && |
| 4092 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4093 | { (case "(($ac_try" in |
| 4094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4095 | *) ac_try_echo=$ac_try;; |
| 4096 | esac |
| 4097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4098 | (eval "$ac_try") 2>&5 |
| 4099 | ac_status=$? |
| 4100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4101 | (exit $ac_status); }; } && |
| 4102 | { ac_try='test -s conftest.$ac_objext' |
| 4103 | { (case "(($ac_try" in |
| 4104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4105 | *) ac_try_echo=$ac_try;; |
| 4106 | esac |
| 4107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4108 | (eval "$ac_try") 2>&5 |
| 4109 | ac_status=$? |
| 4110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4111 | (exit $ac_status); }; }; then |
| 4112 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 4113 | cat >conftest.$ac_ext <<_ACEOF |
| 4114 | /* confdefs.h. */ |
| 4115 | _ACEOF |
| 4116 | cat confdefs.h >>conftest.$ac_ext |
| 4117 | cat >>conftest.$ac_ext <<_ACEOF |
| 4118 | /* end confdefs.h. */ |
| 4119 | #include <sys/types.h> |
| 4120 | #include <sys/param.h> |
| 4121 | |
| 4122 | int |
| 4123 | main () |
| 4124 | { |
| 4125 | #if BYTE_ORDER != BIG_ENDIAN |
| 4126 | not big endian |
| 4127 | #endif |
| 4128 | |
| 4129 | ; |
| 4130 | return 0; |
| 4131 | } |
| 4132 | _ACEOF |
| 4133 | rm -f conftest.$ac_objext |
| 4134 | if { (ac_try="$ac_compile" |
| 4135 | case "(($ac_try" in |
| 4136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4137 | *) ac_try_echo=$ac_try;; |
| 4138 | esac |
| 4139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4140 | (eval "$ac_compile") 2>conftest.er1 |
| 4141 | ac_status=$? |
| 4142 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4143 | rm -f conftest.er1 |
| 4144 | cat conftest.err >&5 |
| 4145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4146 | (exit $ac_status); } && |
| 4147 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4148 | { (case "(($ac_try" in |
| 4149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4150 | *) ac_try_echo=$ac_try;; |
| 4151 | esac |
| 4152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4153 | (eval "$ac_try") 2>&5 |
| 4154 | ac_status=$? |
| 4155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4156 | (exit $ac_status); }; } && |
| 4157 | { ac_try='test -s conftest.$ac_objext' |
| 4158 | { (case "(($ac_try" in |
| 4159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4160 | *) ac_try_echo=$ac_try;; |
| 4161 | esac |
| 4162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4163 | (eval "$ac_try") 2>&5 |
| 4164 | ac_status=$? |
| 4165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4166 | (exit $ac_status); }; }; then |
| 4167 | ac_cv_c_bigendian=yes |
| 4168 | else |
| 4169 | echo "$as_me: failed program was:" >&5 |
| 4170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4171 | |
| 4172 | ac_cv_c_bigendian=no |
| 4173 | fi |
| 4174 | |
| 4175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4176 | else |
| 4177 | echo "$as_me: failed program was:" >&5 |
| 4178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4179 | |
| 4180 | # It does not; compile a test program. |
| 4181 | if test "$cross_compiling" = yes; then |
| 4182 | # try to guess the endianness by grepping values into an object file |
| 4183 | ac_cv_c_bigendian=unknown |
| 4184 | cat >conftest.$ac_ext <<_ACEOF |
| 4185 | /* confdefs.h. */ |
| 4186 | _ACEOF |
| 4187 | cat confdefs.h >>conftest.$ac_ext |
| 4188 | cat >>conftest.$ac_ext <<_ACEOF |
| 4189 | /* end confdefs.h. */ |
| 4190 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4191 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4192 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4193 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4194 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4195 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 4196 | int |
| 4197 | main () |
| 4198 | { |
| 4199 | _ascii (); _ebcdic (); |
| 4200 | ; |
| 4201 | return 0; |
| 4202 | } |
| 4203 | _ACEOF |
| 4204 | rm -f conftest.$ac_objext |
| 4205 | if { (ac_try="$ac_compile" |
| 4206 | case "(($ac_try" in |
| 4207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4208 | *) ac_try_echo=$ac_try;; |
| 4209 | esac |
| 4210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4211 | (eval "$ac_compile") 2>conftest.er1 |
| 4212 | ac_status=$? |
| 4213 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4214 | rm -f conftest.er1 |
| 4215 | cat conftest.err >&5 |
| 4216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4217 | (exit $ac_status); } && |
| 4218 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4219 | { (case "(($ac_try" in |
| 4220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4221 | *) ac_try_echo=$ac_try;; |
| 4222 | esac |
| 4223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4224 | (eval "$ac_try") 2>&5 |
| 4225 | ac_status=$? |
| 4226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4227 | (exit $ac_status); }; } && |
| 4228 | { ac_try='test -s conftest.$ac_objext' |
| 4229 | { (case "(($ac_try" in |
| 4230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4231 | *) ac_try_echo=$ac_try;; |
| 4232 | esac |
| 4233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4234 | (eval "$ac_try") 2>&5 |
| 4235 | ac_status=$? |
| 4236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4237 | (exit $ac_status); }; }; then |
| 4238 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 4239 | ac_cv_c_bigendian=yes |
| 4240 | fi |
| 4241 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4242 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4243 | ac_cv_c_bigendian=no |
| 4244 | else |
| 4245 | # finding both strings is unlikely to happen, but who knows? |
| 4246 | ac_cv_c_bigendian=unknown |
| 4247 | fi |
| 4248 | fi |
| 4249 | else |
| 4250 | echo "$as_me: failed program was:" >&5 |
| 4251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4252 | |
| 4253 | |
| 4254 | fi |
| 4255 | |
| 4256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4257 | else |
| 4258 | cat >conftest.$ac_ext <<_ACEOF |
| 4259 | /* confdefs.h. */ |
| 4260 | _ACEOF |
| 4261 | cat confdefs.h >>conftest.$ac_ext |
| 4262 | cat >>conftest.$ac_ext <<_ACEOF |
| 4263 | /* end confdefs.h. */ |
| 4264 | $ac_includes_default |
| 4265 | int |
| 4266 | main () |
| 4267 | { |
| 4268 | |
| 4269 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4270 | union |
| 4271 | { |
| 4272 | long int l; |
| 4273 | char c[sizeof (long int)]; |
| 4274 | } u; |
| 4275 | u.l = 1; |
| 4276 | return u.c[sizeof (long int) - 1] == 1; |
| 4277 | |
| 4278 | ; |
| 4279 | return 0; |
| 4280 | } |
| 4281 | _ACEOF |
| 4282 | rm -f conftest$ac_exeext |
| 4283 | if { (ac_try="$ac_link" |
| 4284 | case "(($ac_try" in |
| 4285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4286 | *) ac_try_echo=$ac_try;; |
| 4287 | esac |
| 4288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4289 | (eval "$ac_link") 2>&5 |
| 4290 | ac_status=$? |
| 4291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4292 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4293 | { (case "(($ac_try" in |
| 4294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4295 | *) ac_try_echo=$ac_try;; |
| 4296 | esac |
| 4297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4298 | (eval "$ac_try") 2>&5 |
| 4299 | ac_status=$? |
| 4300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4301 | (exit $ac_status); }; }; then |
| 4302 | ac_cv_c_bigendian=no |
| 4303 | else |
| 4304 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4305 | echo "$as_me: failed program was:" >&5 |
| 4306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4307 | |
| 4308 | ( exit $ac_status ) |
| 4309 | ac_cv_c_bigendian=yes |
| 4310 | fi |
| 4311 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4312 | fi |
| 4313 | |
| 4314 | |
| 4315 | fi |
| 4316 | |
| 4317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4318 | fi |
| 4319 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4320 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4321 | case $ac_cv_c_bigendian in |
| 4322 | yes) |
| 4323 | ENDIAN=big |
| 4324 | ;; |
| 4325 | no) |
| 4326 | ENDIAN=little |
| 4327 | ;; |
| 4328 | *) |
| 4329 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4330 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4331 | echo "$as_me: error: unknown endianness |
| 4332 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4333 | { (exit 1); exit 1; }; } ;; |
| 4334 | esac |
| 4335 | |
| 4336 | |
| 4337 | if test "$cross_compiling" = yes; then |
| 4338 | LLVM_CROSS_COMPILING=1 |
| 4339 | |
| 4340 | |
| 4341 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4342 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4343 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4345 | else |
| 4346 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4347 | ac_cv_build_exeext=.exe |
| 4348 | else |
| 4349 | ac_build_prefix=${build_alias}- |
| 4350 | |
| 4351 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4352 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
| 4353 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4354 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4355 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4357 | else |
| 4358 | if test -n "$BUILD_CC"; then |
| 4359 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4360 | else |
| 4361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4362 | for as_dir in $PATH |
| 4363 | do |
| 4364 | IFS=$as_save_IFS |
| 4365 | test -z "$as_dir" && as_dir=. |
| 4366 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4367 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4368 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
| 4369 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4370 | break 2 |
| 4371 | fi |
| 4372 | done |
| 4373 | done |
| 4374 | IFS=$as_save_IFS |
| 4375 | |
| 4376 | fi |
| 4377 | fi |
| 4378 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4379 | if test -n "$BUILD_CC"; then |
| 4380 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4381 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4382 | else |
| 4383 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4384 | echo "${ECHO_T}no" >&6; } |
| 4385 | fi |
| 4386 | |
| 4387 | |
| 4388 | if test -z "$BUILD_CC"; then |
| 4389 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4390 | set dummy gcc; ac_word=$2 |
| 4391 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4392 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4393 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4395 | else |
| 4396 | if test -n "$BUILD_CC"; then |
| 4397 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4398 | else |
| 4399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4400 | for as_dir in $PATH |
| 4401 | do |
| 4402 | IFS=$as_save_IFS |
| 4403 | test -z "$as_dir" && as_dir=. |
| 4404 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4405 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4406 | ac_cv_prog_BUILD_CC="gcc" |
| 4407 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4408 | break 2 |
| 4409 | fi |
| 4410 | done |
| 4411 | done |
| 4412 | IFS=$as_save_IFS |
| 4413 | |
| 4414 | fi |
| 4415 | fi |
| 4416 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4417 | if test -n "$BUILD_CC"; then |
| 4418 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4419 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4420 | else |
| 4421 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4422 | echo "${ECHO_T}no" >&6; } |
| 4423 | fi |
| 4424 | |
| 4425 | |
| 4426 | if test -z "$BUILD_CC"; then |
| 4427 | # Extract the first word of "cc", so it can be a program name with args. |
| 4428 | set dummy cc; ac_word=$2 |
| 4429 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4430 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4431 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4433 | else |
| 4434 | if test -n "$BUILD_CC"; then |
| 4435 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4436 | else |
| 4437 | ac_prog_rejected=no |
| 4438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4439 | for as_dir in $PATH |
| 4440 | do |
| 4441 | IFS=$as_save_IFS |
| 4442 | test -z "$as_dir" && as_dir=. |
| 4443 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4444 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4445 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4446 | ac_prog_rejected=yes |
| 4447 | continue |
| 4448 | fi |
| 4449 | ac_cv_prog_BUILD_CC="cc" |
| 4450 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4451 | break 2 |
| 4452 | fi |
| 4453 | done |
| 4454 | done |
| 4455 | IFS=$as_save_IFS |
| 4456 | |
| 4457 | if test $ac_prog_rejected = yes; then |
| 4458 | # We found a bogon in the path, so make sure we never use it. |
| 4459 | set dummy $ac_cv_prog_BUILD_CC |
| 4460 | shift |
| 4461 | if test $# != 0; then |
| 4462 | # We chose a different compiler from the bogus one. |
| 4463 | # However, it has the same basename, so the bogon will be chosen |
| 4464 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4465 | shift |
| 4466 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4467 | fi |
| 4468 | fi |
| 4469 | fi |
| 4470 | fi |
| 4471 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4472 | if test -n "$BUILD_CC"; then |
| 4473 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4474 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4475 | else |
| 4476 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4477 | echo "${ECHO_T}no" >&6; } |
| 4478 | fi |
| 4479 | |
| 4480 | |
| 4481 | fi |
| 4482 | fi |
| 4483 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4484 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4485 | { (exit 1); exit 1; }; } |
| 4486 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4487 | rm -f conftest* |
| 4488 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4489 | ac_cv_build_exeext= |
| 4490 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
| 4491 | (eval $ac_build_link) 2>&5 |
| 4492 | ac_status=$? |
| 4493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4494 | (exit $ac_status); }; then |
| 4495 | for file in conftest.*; do |
| 4496 | case $file in |
| 4497 | *.c | *.o | *.obj) ;; |
| 4498 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4499 | esac |
| 4500 | done |
| 4501 | else |
| 4502 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4503 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4504 | { (exit 1); exit 1; }; } |
| 4505 | fi |
| 4506 | rm -f conftest* |
| 4507 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4508 | fi |
| 4509 | fi |
| 4510 | |
| 4511 | BUILD_EXEEXT="" |
| 4512 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} |
| 4513 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4514 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
| 4515 | ac_build_exeext=$BUILD_EXEEXT |
| 4516 | |
| 4517 | else |
| 4518 | LLVM_CROSS_COMPILING=0 |
| 4519 | |
| 4520 | fi |
| 4521 | |
| 4522 | if test -d "CVS" -o -d "${srcdir}/CVS"; then |
| 4523 | cvsbuild="yes" |
| 4524 | optimize="no" |
| 4525 | CVSBUILD=CVSBUILD=1 |
| 4526 | |
| 4527 | else |
| 4528 | cvsbuild="no" |
| 4529 | optimize="yes" |
| 4530 | fi |
| 4531 | |
| 4532 | |
| 4533 | # Check whether --enable-optimized was given. |
| 4534 | if test "${enable_optimized+set}" = set; then |
| 4535 | enableval=$enable_optimized; |
| 4536 | else |
| 4537 | enableval=$optimize |
| 4538 | fi |
| 4539 | |
| 4540 | if test ${enableval} = "no" ; then |
| 4541 | ENABLE_OPTIMIZED= |
| 4542 | |
| 4543 | else |
| 4544 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4545 | |
| 4546 | fi |
| 4547 | |
| 4548 | # Check whether --enable-assertions was given. |
| 4549 | if test "${enable_assertions+set}" = set; then |
| 4550 | enableval=$enable_assertions; |
| 4551 | else |
| 4552 | enableval="yes" |
| 4553 | fi |
| 4554 | |
| 4555 | if test ${enableval} = "yes" ; then |
| 4556 | DISABLE_ASSERTIONS= |
| 4557 | |
| 4558 | else |
| 4559 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4560 | |
| 4561 | fi |
| 4562 | |
| 4563 | # Check whether --enable-debug-runtime was given. |
| 4564 | if test "${enable_debug_runtime+set}" = set; then |
| 4565 | enableval=$enable_debug_runtime; |
| 4566 | else |
| 4567 | enableval=no |
| 4568 | fi |
| 4569 | |
| 4570 | if test ${enableval} = "no" ; then |
| 4571 | DEBUG_RUNTIME= |
| 4572 | |
| 4573 | else |
| 4574 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4575 | |
| 4576 | fi |
| 4577 | |
| 4578 | # Check whether --enable-jit was given. |
| 4579 | if test "${enable_jit+set}" = set; then |
| 4580 | enableval=$enable_jit; |
| 4581 | else |
| 4582 | enableval=default |
| 4583 | fi |
| 4584 | |
| 4585 | if test ${enableval} = "no" |
| 4586 | then |
| 4587 | JIT= |
| 4588 | |
| 4589 | else |
| 4590 | case "$llvm_cv_target_arch" in |
| 4591 | x86) TARGET_HAS_JIT=1 |
| 4592 | ;; |
| 4593 | Sparc) TARGET_HAS_JIT=1 |
| 4594 | ;; |
| 4595 | PowerPC) TARGET_HAS_JIT=1 |
| 4596 | ;; |
| 4597 | x86_64) TARGET_HAS_JIT=0 |
| 4598 | ;; |
| 4599 | Alpha) TARGET_HAS_JIT=1 |
| 4600 | ;; |
| 4601 | IA64) TARGET_HAS_JIT=0 |
| 4602 | ;; |
| 4603 | *) TARGET_HAS_JIT=0 |
| 4604 | ;; |
| 4605 | esac |
| 4606 | fi |
| 4607 | |
| 4608 | # Check whether --enable-doxygen was given. |
| 4609 | if test "${enable_doxygen+set}" = set; then |
| 4610 | enableval=$enable_doxygen; |
| 4611 | else |
| 4612 | enableval=default |
| 4613 | fi |
| 4614 | |
| 4615 | case "$enableval" in |
| 4616 | yes) ENABLE_DOXYGEN=1 |
| 4617 | ;; |
| 4618 | no) ENABLE_DOXYGEN=0 |
| 4619 | ;; |
| 4620 | default) ENABLE_DOXYGEN=0 |
| 4621 | ;; |
| 4622 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4623 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4624 | { (exit 1); exit 1; }; } ;; |
| 4625 | esac |
| 4626 | |
| 4627 | # Check whether --enable-threads was given. |
| 4628 | if test "${enable_threads+set}" = set; then |
| 4629 | enableval=$enable_threads; |
| 4630 | else |
| 4631 | enableval=yes |
| 4632 | fi |
| 4633 | |
| 4634 | case "$enableval" in |
| 4635 | yes) ENABLE_THREADS=1 |
| 4636 | ;; |
| 4637 | no) ENABLE_THREADS=0 |
| 4638 | ;; |
| 4639 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4640 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4641 | { (exit 1); exit 1; }; } ;; |
| 4642 | esac |
| 4643 | |
| 4644 | cat >>confdefs.h <<_ACEOF |
| 4645 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4646 | _ACEOF |
| 4647 | |
| 4648 | |
| 4649 | TARGETS_TO_BUILD="" |
| 4650 | # Check whether --enable-targets was given. |
| 4651 | if test "${enable_targets+set}" = set; then |
| 4652 | enableval=$enable_targets; |
| 4653 | else |
| 4654 | enableval=all |
| 4655 | fi |
| 4656 | |
| 4657 | case "$enableval" in |
| 4658 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;; |
| 4659 | host-only) |
| 4660 | case "$llvm_cv_target_arch" in |
| 4661 | x86) TARGETS_TO_BUILD="X86" ;; |
| 4662 | x86_64) TARGETS_TO_BUILD="X86" ;; |
| 4663 | Sparc) TARGETS_TO_BUILD="Sparc" ;; |
| 4664 | PowerPC) TARGETS_TO_BUILD="PowerPC" ;; |
| 4665 | Alpha) TARGETS_TO_BUILD="Alpha" ;; |
| 4666 | IA64) TARGETS_TO_BUILD="IA64" ;; |
| 4667 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 4668 | echo "$as_me: error: Can not set target to build" >&2;} |
| 4669 | { (exit 1); exit 1; }; } ;; |
| 4670 | esac |
| 4671 | ;; |
| 4672 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4673 | case "$a_target" in |
| 4674 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4675 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4676 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4677 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4678 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4679 | ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;; |
| 4680 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 4681 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 4682 | { (exit 1); exit 1; }; } ;; |
| 4683 | esac |
| 4684 | done |
| 4685 | ;; |
| 4686 | esac |
| 4687 | TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" |
| 4688 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 4689 | |
| 4690 | |
| 4691 | |
| 4692 | # Check whether --with-llvmgccdir was given. |
| 4693 | if test "${with_llvmgccdir+set}" = set; then |
| 4694 | withval=$with_llvmgccdir; |
| 4695 | else |
| 4696 | withval=default |
| 4697 | fi |
| 4698 | |
| 4699 | case "$withval" in |
| 4700 | default) WITH_LLVMGCCDIR=default ;; |
| 4701 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
| 4702 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 4703 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 4704 | { (exit 1); exit 1; }; } ;; |
| 4705 | esac |
| 4706 | |
| 4707 | |
| 4708 | # Check whether --with-extra-options was given. |
| 4709 | if test "${with_extra_options+set}" = set; then |
| 4710 | withval=$with_extra_options; |
| 4711 | else |
| 4712 | withval=default |
| 4713 | fi |
| 4714 | |
| 4715 | case "$withval" in |
| 4716 | default) EXTRA_OPTIONS= ;; |
| 4717 | *) EXTRA_OPTIONS=$withval ;; |
| 4718 | esac |
| 4719 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 4720 | |
| 4721 | |
| 4722 | |
| 4723 | ac_ext=c |
| 4724 | ac_cpp='$CPP $CPPFLAGS' |
| 4725 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4726 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4727 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4728 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 4729 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 4730 | # On Suns, sometimes $CPP names a directory. |
| 4731 | if test -n "$CPP" && test -d "$CPP"; then |
| 4732 | CPP= |
| 4733 | fi |
| 4734 | if test -z "$CPP"; then |
| 4735 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 4736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4737 | else |
| 4738 | # Double quotes because CPP needs to be expanded |
| 4739 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4740 | do |
| 4741 | ac_preproc_ok=false |
| 4742 | for ac_c_preproc_warn_flag in '' yes |
| 4743 | do |
| 4744 | # Use a header file that comes with gcc, so configuring glibc |
| 4745 | # with a fresh cross-compiler works. |
| 4746 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4747 | # <limits.h> exists even on freestanding compilers. |
| 4748 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4749 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4750 | cat >conftest.$ac_ext <<_ACEOF |
| 4751 | /* confdefs.h. */ |
| 4752 | _ACEOF |
| 4753 | cat confdefs.h >>conftest.$ac_ext |
| 4754 | cat >>conftest.$ac_ext <<_ACEOF |
| 4755 | /* end confdefs.h. */ |
| 4756 | #ifdef __STDC__ |
| 4757 | # include <limits.h> |
| 4758 | #else |
| 4759 | # include <assert.h> |
| 4760 | #endif |
| 4761 | Syntax error |
| 4762 | _ACEOF |
| 4763 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4764 | case "(($ac_try" in |
| 4765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4766 | *) ac_try_echo=$ac_try;; |
| 4767 | esac |
| 4768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4769 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4770 | ac_status=$? |
| 4771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4772 | rm -f conftest.er1 |
| 4773 | cat conftest.err >&5 |
| 4774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4775 | (exit $ac_status); } >/dev/null; then |
| 4776 | if test -s conftest.err; then |
| 4777 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4778 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4779 | else |
| 4780 | ac_cpp_err= |
| 4781 | fi |
| 4782 | else |
| 4783 | ac_cpp_err=yes |
| 4784 | fi |
| 4785 | if test -z "$ac_cpp_err"; then |
| 4786 | : |
| 4787 | else |
| 4788 | echo "$as_me: failed program was:" >&5 |
| 4789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4790 | |
| 4791 | # Broken: fails on valid input. |
| 4792 | continue |
| 4793 | fi |
| 4794 | |
| 4795 | rm -f conftest.err conftest.$ac_ext |
| 4796 | |
| 4797 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4798 | # can be detected and how. |
| 4799 | cat >conftest.$ac_ext <<_ACEOF |
| 4800 | /* confdefs.h. */ |
| 4801 | _ACEOF |
| 4802 | cat confdefs.h >>conftest.$ac_ext |
| 4803 | cat >>conftest.$ac_ext <<_ACEOF |
| 4804 | /* end confdefs.h. */ |
| 4805 | #include <ac_nonexistent.h> |
| 4806 | _ACEOF |
| 4807 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4808 | case "(($ac_try" in |
| 4809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4810 | *) ac_try_echo=$ac_try;; |
| 4811 | esac |
| 4812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4813 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4814 | ac_status=$? |
| 4815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4816 | rm -f conftest.er1 |
| 4817 | cat conftest.err >&5 |
| 4818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4819 | (exit $ac_status); } >/dev/null; then |
| 4820 | if test -s conftest.err; then |
| 4821 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4822 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4823 | else |
| 4824 | ac_cpp_err= |
| 4825 | fi |
| 4826 | else |
| 4827 | ac_cpp_err=yes |
| 4828 | fi |
| 4829 | if test -z "$ac_cpp_err"; then |
| 4830 | # Broken: success on invalid input. |
| 4831 | continue |
| 4832 | else |
| 4833 | echo "$as_me: failed program was:" >&5 |
| 4834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4835 | |
| 4836 | # Passes both tests. |
| 4837 | ac_preproc_ok=: |
| 4838 | break |
| 4839 | fi |
| 4840 | |
| 4841 | rm -f conftest.err conftest.$ac_ext |
| 4842 | |
| 4843 | done |
| 4844 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4845 | rm -f conftest.err conftest.$ac_ext |
| 4846 | if $ac_preproc_ok; then |
| 4847 | break |
| 4848 | fi |
| 4849 | |
| 4850 | done |
| 4851 | ac_cv_prog_CPP=$CPP |
| 4852 | |
| 4853 | fi |
| 4854 | CPP=$ac_cv_prog_CPP |
| 4855 | else |
| 4856 | ac_cv_prog_CPP=$CPP |
| 4857 | fi |
| 4858 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4859 | echo "${ECHO_T}$CPP" >&6; } |
| 4860 | ac_preproc_ok=false |
| 4861 | for ac_c_preproc_warn_flag in '' yes |
| 4862 | do |
| 4863 | # Use a header file that comes with gcc, so configuring glibc |
| 4864 | # with a fresh cross-compiler works. |
| 4865 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4866 | # <limits.h> exists even on freestanding compilers. |
| 4867 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4868 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4869 | cat >conftest.$ac_ext <<_ACEOF |
| 4870 | /* confdefs.h. */ |
| 4871 | _ACEOF |
| 4872 | cat confdefs.h >>conftest.$ac_ext |
| 4873 | cat >>conftest.$ac_ext <<_ACEOF |
| 4874 | /* end confdefs.h. */ |
| 4875 | #ifdef __STDC__ |
| 4876 | # include <limits.h> |
| 4877 | #else |
| 4878 | # include <assert.h> |
| 4879 | #endif |
| 4880 | Syntax error |
| 4881 | _ACEOF |
| 4882 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4883 | case "(($ac_try" in |
| 4884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4885 | *) ac_try_echo=$ac_try;; |
| 4886 | esac |
| 4887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4888 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4889 | ac_status=$? |
| 4890 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4891 | rm -f conftest.er1 |
| 4892 | cat conftest.err >&5 |
| 4893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4894 | (exit $ac_status); } >/dev/null; then |
| 4895 | if test -s conftest.err; then |
| 4896 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4897 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4898 | else |
| 4899 | ac_cpp_err= |
| 4900 | fi |
| 4901 | else |
| 4902 | ac_cpp_err=yes |
| 4903 | fi |
| 4904 | if test -z "$ac_cpp_err"; then |
| 4905 | : |
| 4906 | else |
| 4907 | echo "$as_me: failed program was:" >&5 |
| 4908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4909 | |
| 4910 | # Broken: fails on valid input. |
| 4911 | continue |
| 4912 | fi |
| 4913 | |
| 4914 | rm -f conftest.err conftest.$ac_ext |
| 4915 | |
| 4916 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4917 | # can be detected and how. |
| 4918 | cat >conftest.$ac_ext <<_ACEOF |
| 4919 | /* confdefs.h. */ |
| 4920 | _ACEOF |
| 4921 | cat confdefs.h >>conftest.$ac_ext |
| 4922 | cat >>conftest.$ac_ext <<_ACEOF |
| 4923 | /* end confdefs.h. */ |
| 4924 | #include <ac_nonexistent.h> |
| 4925 | _ACEOF |
| 4926 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4927 | case "(($ac_try" in |
| 4928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4929 | *) ac_try_echo=$ac_try;; |
| 4930 | esac |
| 4931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4932 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4933 | ac_status=$? |
| 4934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4935 | rm -f conftest.er1 |
| 4936 | cat conftest.err >&5 |
| 4937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4938 | (exit $ac_status); } >/dev/null; then |
| 4939 | if test -s conftest.err; then |
| 4940 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4941 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4942 | else |
| 4943 | ac_cpp_err= |
| 4944 | fi |
| 4945 | else |
| 4946 | ac_cpp_err=yes |
| 4947 | fi |
| 4948 | if test -z "$ac_cpp_err"; then |
| 4949 | # Broken: success on invalid input. |
| 4950 | continue |
| 4951 | else |
| 4952 | echo "$as_me: failed program was:" >&5 |
| 4953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4954 | |
| 4955 | # Passes both tests. |
| 4956 | ac_preproc_ok=: |
| 4957 | break |
| 4958 | fi |
| 4959 | |
| 4960 | rm -f conftest.err conftest.$ac_ext |
| 4961 | |
| 4962 | done |
| 4963 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4964 | rm -f conftest.err conftest.$ac_ext |
| 4965 | if $ac_preproc_ok; then |
| 4966 | : |
| 4967 | else |
| 4968 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 4969 | See \`config.log' for more details." >&5 |
| 4970 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 4971 | See \`config.log' for more details." >&2;} |
| 4972 | { (exit 1); exit 1; }; } |
| 4973 | fi |
| 4974 | |
| 4975 | ac_ext=c |
| 4976 | ac_cpp='$CPP $CPPFLAGS' |
| 4977 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4978 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4979 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4980 | |
| 4981 | ac_ext=c |
| 4982 | ac_cpp='$CPP $CPPFLAGS' |
| 4983 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4984 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4985 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4986 | if test -n "$ac_tool_prefix"; then |
| 4987 | for ac_prog in gcc |
| 4988 | do |
| 4989 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4990 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4991 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4992 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4993 | if test "${ac_cv_prog_CC+set}" = set; then |
| 4994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4995 | else |
| 4996 | if test -n "$CC"; then |
| 4997 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4998 | else |
| 4999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5000 | for as_dir in $PATH |
| 5001 | do |
| 5002 | IFS=$as_save_IFS |
| 5003 | test -z "$as_dir" && as_dir=. |
| 5004 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5005 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5006 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 5007 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5008 | break 2 |
| 5009 | fi |
| 5010 | done |
| 5011 | done |
| 5012 | IFS=$as_save_IFS |
| 5013 | |
| 5014 | fi |
| 5015 | fi |
| 5016 | CC=$ac_cv_prog_CC |
| 5017 | if test -n "$CC"; then |
| 5018 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5019 | echo "${ECHO_T}$CC" >&6; } |
| 5020 | else |
| 5021 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5022 | echo "${ECHO_T}no" >&6; } |
| 5023 | fi |
| 5024 | |
| 5025 | |
| 5026 | test -n "$CC" && break |
| 5027 | done |
| 5028 | fi |
| 5029 | if test -z "$CC"; then |
| 5030 | ac_ct_CC=$CC |
| 5031 | for ac_prog in gcc |
| 5032 | do |
| 5033 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5034 | set dummy $ac_prog; ac_word=$2 |
| 5035 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5036 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5037 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5039 | else |
| 5040 | if test -n "$ac_ct_CC"; then |
| 5041 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5042 | else |
| 5043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5044 | for as_dir in $PATH |
| 5045 | do |
| 5046 | IFS=$as_save_IFS |
| 5047 | test -z "$as_dir" && as_dir=. |
| 5048 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5049 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5050 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 5051 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5052 | break 2 |
| 5053 | fi |
| 5054 | done |
| 5055 | done |
| 5056 | IFS=$as_save_IFS |
| 5057 | |
| 5058 | fi |
| 5059 | fi |
| 5060 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5061 | if test -n "$ac_ct_CC"; then |
| 5062 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5063 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 5064 | else |
| 5065 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5066 | echo "${ECHO_T}no" >&6; } |
| 5067 | fi |
| 5068 | |
| 5069 | |
| 5070 | test -n "$ac_ct_CC" && break |
| 5071 | done |
| 5072 | |
| 5073 | if test "x$ac_ct_CC" = x; then |
| 5074 | CC="" |
| 5075 | else |
| 5076 | case $cross_compiling:$ac_tool_warned in |
| 5077 | yes:) |
| 5078 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5079 | whose name does not start with the host triplet. If you think this |
| 5080 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5081 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5082 | whose name does not start with the host triplet. If you think this |
| 5083 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5084 | ac_tool_warned=yes ;; |
| 5085 | esac |
| 5086 | CC=$ac_ct_CC |
| 5087 | fi |
| 5088 | fi |
| 5089 | |
| 5090 | |
| 5091 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5092 | See \`config.log' for more details." >&5 |
| 5093 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5094 | See \`config.log' for more details." >&2;} |
| 5095 | { (exit 1); exit 1; }; } |
| 5096 | |
| 5097 | # Provide some information about the compiler. |
| 5098 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5099 | ac_compiler=`set X $ac_compile; echo $2` |
| 5100 | { (ac_try="$ac_compiler --version >&5" |
| 5101 | case "(($ac_try" in |
| 5102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5103 | *) ac_try_echo=$ac_try;; |
| 5104 | esac |
| 5105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5106 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5107 | ac_status=$? |
| 5108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5109 | (exit $ac_status); } |
| 5110 | { (ac_try="$ac_compiler -v >&5" |
| 5111 | case "(($ac_try" in |
| 5112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5113 | *) ac_try_echo=$ac_try;; |
| 5114 | esac |
| 5115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5116 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5117 | ac_status=$? |
| 5118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5119 | (exit $ac_status); } |
| 5120 | { (ac_try="$ac_compiler -V >&5" |
| 5121 | case "(($ac_try" in |
| 5122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5123 | *) ac_try_echo=$ac_try;; |
| 5124 | esac |
| 5125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5126 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5127 | ac_status=$? |
| 5128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5129 | (exit $ac_status); } |
| 5130 | |
| 5131 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5132 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5133 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5135 | else |
| 5136 | cat >conftest.$ac_ext <<_ACEOF |
| 5137 | /* confdefs.h. */ |
| 5138 | _ACEOF |
| 5139 | cat confdefs.h >>conftest.$ac_ext |
| 5140 | cat >>conftest.$ac_ext <<_ACEOF |
| 5141 | /* end confdefs.h. */ |
| 5142 | |
| 5143 | int |
| 5144 | main () |
| 5145 | { |
| 5146 | #ifndef __GNUC__ |
| 5147 | choke me |
| 5148 | #endif |
| 5149 | |
| 5150 | ; |
| 5151 | return 0; |
| 5152 | } |
| 5153 | _ACEOF |
| 5154 | rm -f conftest.$ac_objext |
| 5155 | if { (ac_try="$ac_compile" |
| 5156 | case "(($ac_try" in |
| 5157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5158 | *) ac_try_echo=$ac_try;; |
| 5159 | esac |
| 5160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5161 | (eval "$ac_compile") 2>conftest.er1 |
| 5162 | ac_status=$? |
| 5163 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5164 | rm -f conftest.er1 |
| 5165 | cat conftest.err >&5 |
| 5166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5167 | (exit $ac_status); } && |
| 5168 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5169 | { (case "(($ac_try" in |
| 5170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5171 | *) ac_try_echo=$ac_try;; |
| 5172 | esac |
| 5173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5174 | (eval "$ac_try") 2>&5 |
| 5175 | ac_status=$? |
| 5176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5177 | (exit $ac_status); }; } && |
| 5178 | { ac_try='test -s conftest.$ac_objext' |
| 5179 | { (case "(($ac_try" in |
| 5180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5181 | *) ac_try_echo=$ac_try;; |
| 5182 | esac |
| 5183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5184 | (eval "$ac_try") 2>&5 |
| 5185 | ac_status=$? |
| 5186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5187 | (exit $ac_status); }; }; then |
| 5188 | ac_compiler_gnu=yes |
| 5189 | else |
| 5190 | echo "$as_me: failed program was:" >&5 |
| 5191 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5192 | |
| 5193 | ac_compiler_gnu=no |
| 5194 | fi |
| 5195 | |
| 5196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5197 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5198 | |
| 5199 | fi |
| 5200 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5201 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5202 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 5203 | ac_test_CFLAGS=${CFLAGS+set} |
| 5204 | ac_save_CFLAGS=$CFLAGS |
| 5205 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5206 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5207 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5209 | else |
| 5210 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5211 | ac_c_werror_flag=yes |
| 5212 | ac_cv_prog_cc_g=no |
| 5213 | CFLAGS="-g" |
| 5214 | cat >conftest.$ac_ext <<_ACEOF |
| 5215 | /* confdefs.h. */ |
| 5216 | _ACEOF |
| 5217 | cat confdefs.h >>conftest.$ac_ext |
| 5218 | cat >>conftest.$ac_ext <<_ACEOF |
| 5219 | /* end confdefs.h. */ |
| 5220 | |
| 5221 | int |
| 5222 | main () |
| 5223 | { |
| 5224 | |
| 5225 | ; |
| 5226 | return 0; |
| 5227 | } |
| 5228 | _ACEOF |
| 5229 | rm -f conftest.$ac_objext |
| 5230 | if { (ac_try="$ac_compile" |
| 5231 | case "(($ac_try" in |
| 5232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5233 | *) ac_try_echo=$ac_try;; |
| 5234 | esac |
| 5235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5236 | (eval "$ac_compile") 2>conftest.er1 |
| 5237 | ac_status=$? |
| 5238 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5239 | rm -f conftest.er1 |
| 5240 | cat conftest.err >&5 |
| 5241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5242 | (exit $ac_status); } && |
| 5243 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5244 | { (case "(($ac_try" in |
| 5245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5246 | *) ac_try_echo=$ac_try;; |
| 5247 | esac |
| 5248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5249 | (eval "$ac_try") 2>&5 |
| 5250 | ac_status=$? |
| 5251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5252 | (exit $ac_status); }; } && |
| 5253 | { ac_try='test -s conftest.$ac_objext' |
| 5254 | { (case "(($ac_try" in |
| 5255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5256 | *) ac_try_echo=$ac_try;; |
| 5257 | esac |
| 5258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5259 | (eval "$ac_try") 2>&5 |
| 5260 | ac_status=$? |
| 5261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5262 | (exit $ac_status); }; }; then |
| 5263 | ac_cv_prog_cc_g=yes |
| 5264 | else |
| 5265 | echo "$as_me: failed program was:" >&5 |
| 5266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5267 | |
| 5268 | CFLAGS="" |
| 5269 | cat >conftest.$ac_ext <<_ACEOF |
| 5270 | /* confdefs.h. */ |
| 5271 | _ACEOF |
| 5272 | cat confdefs.h >>conftest.$ac_ext |
| 5273 | cat >>conftest.$ac_ext <<_ACEOF |
| 5274 | /* end confdefs.h. */ |
| 5275 | |
| 5276 | int |
| 5277 | main () |
| 5278 | { |
| 5279 | |
| 5280 | ; |
| 5281 | return 0; |
| 5282 | } |
| 5283 | _ACEOF |
| 5284 | rm -f conftest.$ac_objext |
| 5285 | if { (ac_try="$ac_compile" |
| 5286 | case "(($ac_try" in |
| 5287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5288 | *) ac_try_echo=$ac_try;; |
| 5289 | esac |
| 5290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5291 | (eval "$ac_compile") 2>conftest.er1 |
| 5292 | ac_status=$? |
| 5293 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5294 | rm -f conftest.er1 |
| 5295 | cat conftest.err >&5 |
| 5296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5297 | (exit $ac_status); } && |
| 5298 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5299 | { (case "(($ac_try" in |
| 5300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5301 | *) ac_try_echo=$ac_try;; |
| 5302 | esac |
| 5303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5304 | (eval "$ac_try") 2>&5 |
| 5305 | ac_status=$? |
| 5306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5307 | (exit $ac_status); }; } && |
| 5308 | { ac_try='test -s conftest.$ac_objext' |
| 5309 | { (case "(($ac_try" in |
| 5310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5311 | *) ac_try_echo=$ac_try;; |
| 5312 | esac |
| 5313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5314 | (eval "$ac_try") 2>&5 |
| 5315 | ac_status=$? |
| 5316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5317 | (exit $ac_status); }; }; then |
| 5318 | : |
| 5319 | else |
| 5320 | echo "$as_me: failed program was:" >&5 |
| 5321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5322 | |
| 5323 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5324 | CFLAGS="-g" |
| 5325 | cat >conftest.$ac_ext <<_ACEOF |
| 5326 | /* confdefs.h. */ |
| 5327 | _ACEOF |
| 5328 | cat confdefs.h >>conftest.$ac_ext |
| 5329 | cat >>conftest.$ac_ext <<_ACEOF |
| 5330 | /* end confdefs.h. */ |
| 5331 | |
| 5332 | int |
| 5333 | main () |
| 5334 | { |
| 5335 | |
| 5336 | ; |
| 5337 | return 0; |
| 5338 | } |
| 5339 | _ACEOF |
| 5340 | rm -f conftest.$ac_objext |
| 5341 | if { (ac_try="$ac_compile" |
| 5342 | case "(($ac_try" in |
| 5343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5344 | *) ac_try_echo=$ac_try;; |
| 5345 | esac |
| 5346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5347 | (eval "$ac_compile") 2>conftest.er1 |
| 5348 | ac_status=$? |
| 5349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5350 | rm -f conftest.er1 |
| 5351 | cat conftest.err >&5 |
| 5352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5353 | (exit $ac_status); } && |
| 5354 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5355 | { (case "(($ac_try" in |
| 5356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5357 | *) ac_try_echo=$ac_try;; |
| 5358 | esac |
| 5359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5360 | (eval "$ac_try") 2>&5 |
| 5361 | ac_status=$? |
| 5362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5363 | (exit $ac_status); }; } && |
| 5364 | { ac_try='test -s conftest.$ac_objext' |
| 5365 | { (case "(($ac_try" in |
| 5366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5367 | *) ac_try_echo=$ac_try;; |
| 5368 | esac |
| 5369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5370 | (eval "$ac_try") 2>&5 |
| 5371 | ac_status=$? |
| 5372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5373 | (exit $ac_status); }; }; then |
| 5374 | ac_cv_prog_cc_g=yes |
| 5375 | else |
| 5376 | echo "$as_me: failed program was:" >&5 |
| 5377 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5378 | |
| 5379 | |
| 5380 | fi |
| 5381 | |
| 5382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5383 | fi |
| 5384 | |
| 5385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5386 | fi |
| 5387 | |
| 5388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5389 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5390 | fi |
| 5391 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 5392 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
| 5393 | if test "$ac_test_CFLAGS" = set; then |
| 5394 | CFLAGS=$ac_save_CFLAGS |
| 5395 | elif test $ac_cv_prog_cc_g = yes; then |
| 5396 | if test "$GCC" = yes; then |
| 5397 | CFLAGS="-g -O2" |
| 5398 | else |
| 5399 | CFLAGS="-g" |
| 5400 | fi |
| 5401 | else |
| 5402 | if test "$GCC" = yes; then |
| 5403 | CFLAGS="-O2" |
| 5404 | else |
| 5405 | CFLAGS= |
| 5406 | fi |
| 5407 | fi |
| 5408 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 5409 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 5410 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 5411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5412 | else |
| 5413 | ac_cv_prog_cc_c89=no |
| 5414 | ac_save_CC=$CC |
| 5415 | cat >conftest.$ac_ext <<_ACEOF |
| 5416 | /* confdefs.h. */ |
| 5417 | _ACEOF |
| 5418 | cat confdefs.h >>conftest.$ac_ext |
| 5419 | cat >>conftest.$ac_ext <<_ACEOF |
| 5420 | /* end confdefs.h. */ |
| 5421 | #include <stdarg.h> |
| 5422 | #include <stdio.h> |
| 5423 | #include <sys/types.h> |
| 5424 | #include <sys/stat.h> |
| 5425 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5426 | struct buf { int x; }; |
| 5427 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5428 | static char *e (p, i) |
| 5429 | char **p; |
| 5430 | int i; |
| 5431 | { |
| 5432 | return p[i]; |
| 5433 | } |
| 5434 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5435 | { |
| 5436 | char *s; |
| 5437 | va_list v; |
| 5438 | va_start (v,p); |
| 5439 | s = g (p, va_arg (v,int)); |
| 5440 | va_end (v); |
| 5441 | return s; |
| 5442 | } |
| 5443 | |
| 5444 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5445 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5446 | These don't provoke an error unfortunately, instead are silently treated |
| 5447 | as 'x'. The following induces an error, until -std is added to get |
| 5448 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5449 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5450 | that's true only with -std. */ |
| 5451 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5452 | |
| 5453 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5454 | inside strings and character constants. */ |
| 5455 | #define FOO(x) 'x' |
| 5456 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5457 | |
| 5458 | int test (int i, double x); |
| 5459 | struct s1 {int (*f) (int a);}; |
| 5460 | struct s2 {int (*f) (double a);}; |
| 5461 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5462 | int argc; |
| 5463 | char **argv; |
| 5464 | int |
| 5465 | main () |
| 5466 | { |
| 5467 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5468 | ; |
| 5469 | return 0; |
| 5470 | } |
| 5471 | _ACEOF |
| 5472 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5473 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5474 | do |
| 5475 | CC="$ac_save_CC $ac_arg" |
| 5476 | rm -f conftest.$ac_objext |
| 5477 | if { (ac_try="$ac_compile" |
| 5478 | case "(($ac_try" in |
| 5479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5480 | *) ac_try_echo=$ac_try;; |
| 5481 | esac |
| 5482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5483 | (eval "$ac_compile") 2>conftest.er1 |
| 5484 | ac_status=$? |
| 5485 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5486 | rm -f conftest.er1 |
| 5487 | cat conftest.err >&5 |
| 5488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5489 | (exit $ac_status); } && |
| 5490 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5491 | { (case "(($ac_try" in |
| 5492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5493 | *) ac_try_echo=$ac_try;; |
| 5494 | esac |
| 5495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5496 | (eval "$ac_try") 2>&5 |
| 5497 | ac_status=$? |
| 5498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5499 | (exit $ac_status); }; } && |
| 5500 | { ac_try='test -s conftest.$ac_objext' |
| 5501 | { (case "(($ac_try" in |
| 5502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5503 | *) ac_try_echo=$ac_try;; |
| 5504 | esac |
| 5505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5506 | (eval "$ac_try") 2>&5 |
| 5507 | ac_status=$? |
| 5508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5509 | (exit $ac_status); }; }; then |
| 5510 | ac_cv_prog_cc_c89=$ac_arg |
| 5511 | else |
| 5512 | echo "$as_me: failed program was:" >&5 |
| 5513 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5514 | |
| 5515 | |
| 5516 | fi |
| 5517 | |
| 5518 | rm -f core conftest.err conftest.$ac_objext |
| 5519 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5520 | done |
| 5521 | rm -f conftest.$ac_ext |
| 5522 | CC=$ac_save_CC |
| 5523 | |
| 5524 | fi |
| 5525 | # AC_CACHE_VAL |
| 5526 | case "x$ac_cv_prog_cc_c89" in |
| 5527 | x) |
| 5528 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 5529 | echo "${ECHO_T}none needed" >&6; } ;; |
| 5530 | xno) |
| 5531 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 5532 | echo "${ECHO_T}unsupported" >&6; } ;; |
| 5533 | *) |
| 5534 | CC="$CC $ac_cv_prog_cc_c89" |
| 5535 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 5536 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
| 5537 | esac |
| 5538 | |
| 5539 | |
| 5540 | ac_ext=c |
| 5541 | ac_cpp='$CPP $CPPFLAGS' |
| 5542 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5543 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5544 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5545 | |
| 5546 | ac_ext=cpp |
| 5547 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5548 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5549 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5550 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5551 | if test -z "$CXX"; then |
| 5552 | if test -n "$CCC"; then |
| 5553 | CXX=$CCC |
| 5554 | else |
| 5555 | if test -n "$ac_tool_prefix"; then |
| 5556 | for ac_prog in g++ |
| 5557 | do |
| 5558 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5559 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5560 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5561 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5562 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 5563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5564 | else |
| 5565 | if test -n "$CXX"; then |
| 5566 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5567 | else |
| 5568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5569 | for as_dir in $PATH |
| 5570 | do |
| 5571 | IFS=$as_save_IFS |
| 5572 | test -z "$as_dir" && as_dir=. |
| 5573 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5574 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5575 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 5576 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5577 | break 2 |
| 5578 | fi |
| 5579 | done |
| 5580 | done |
| 5581 | IFS=$as_save_IFS |
| 5582 | |
| 5583 | fi |
| 5584 | fi |
| 5585 | CXX=$ac_cv_prog_CXX |
| 5586 | if test -n "$CXX"; then |
| 5587 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 5588 | echo "${ECHO_T}$CXX" >&6; } |
| 5589 | else |
| 5590 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5591 | echo "${ECHO_T}no" >&6; } |
| 5592 | fi |
| 5593 | |
| 5594 | |
| 5595 | test -n "$CXX" && break |
| 5596 | done |
| 5597 | fi |
| 5598 | if test -z "$CXX"; then |
| 5599 | ac_ct_CXX=$CXX |
| 5600 | for ac_prog in g++ |
| 5601 | do |
| 5602 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5603 | set dummy $ac_prog; ac_word=$2 |
| 5604 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5605 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5606 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 5607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5608 | else |
| 5609 | if test -n "$ac_ct_CXX"; then |
| 5610 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5611 | else |
| 5612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5613 | for as_dir in $PATH |
| 5614 | do |
| 5615 | IFS=$as_save_IFS |
| 5616 | test -z "$as_dir" && as_dir=. |
| 5617 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5618 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5619 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 5620 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5621 | break 2 |
| 5622 | fi |
| 5623 | done |
| 5624 | done |
| 5625 | IFS=$as_save_IFS |
| 5626 | |
| 5627 | fi |
| 5628 | fi |
| 5629 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5630 | if test -n "$ac_ct_CXX"; then |
| 5631 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 5632 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 5633 | else |
| 5634 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5635 | echo "${ECHO_T}no" >&6; } |
| 5636 | fi |
| 5637 | |
| 5638 | |
| 5639 | test -n "$ac_ct_CXX" && break |
| 5640 | done |
| 5641 | |
| 5642 | if test "x$ac_ct_CXX" = x; then |
| 5643 | CXX="g++" |
| 5644 | else |
| 5645 | case $cross_compiling:$ac_tool_warned in |
| 5646 | yes:) |
| 5647 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5648 | whose name does not start with the host triplet. If you think this |
| 5649 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5650 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5651 | whose name does not start with the host triplet. If you think this |
| 5652 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5653 | ac_tool_warned=yes ;; |
| 5654 | esac |
| 5655 | CXX=$ac_ct_CXX |
| 5656 | fi |
| 5657 | fi |
| 5658 | |
| 5659 | fi |
| 5660 | fi |
| 5661 | # Provide some information about the compiler. |
| 5662 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 5663 | ac_compiler=`set X $ac_compile; echo $2` |
| 5664 | { (ac_try="$ac_compiler --version >&5" |
| 5665 | case "(($ac_try" in |
| 5666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5667 | *) ac_try_echo=$ac_try;; |
| 5668 | esac |
| 5669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5670 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5671 | ac_status=$? |
| 5672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5673 | (exit $ac_status); } |
| 5674 | { (ac_try="$ac_compiler -v >&5" |
| 5675 | case "(($ac_try" in |
| 5676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5677 | *) ac_try_echo=$ac_try;; |
| 5678 | esac |
| 5679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5680 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5681 | ac_status=$? |
| 5682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5683 | (exit $ac_status); } |
| 5684 | { (ac_try="$ac_compiler -V >&5" |
| 5685 | case "(($ac_try" in |
| 5686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5687 | *) ac_try_echo=$ac_try;; |
| 5688 | esac |
| 5689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5690 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5691 | ac_status=$? |
| 5692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5693 | (exit $ac_status); } |
| 5694 | |
| 5695 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 5696 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 5697 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 5698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5699 | else |
| 5700 | cat >conftest.$ac_ext <<_ACEOF |
| 5701 | /* confdefs.h. */ |
| 5702 | _ACEOF |
| 5703 | cat confdefs.h >>conftest.$ac_ext |
| 5704 | cat >>conftest.$ac_ext <<_ACEOF |
| 5705 | /* end confdefs.h. */ |
| 5706 | |
| 5707 | int |
| 5708 | main () |
| 5709 | { |
| 5710 | #ifndef __GNUC__ |
| 5711 | choke me |
| 5712 | #endif |
| 5713 | |
| 5714 | ; |
| 5715 | return 0; |
| 5716 | } |
| 5717 | _ACEOF |
| 5718 | rm -f conftest.$ac_objext |
| 5719 | if { (ac_try="$ac_compile" |
| 5720 | case "(($ac_try" in |
| 5721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5722 | *) ac_try_echo=$ac_try;; |
| 5723 | esac |
| 5724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5725 | (eval "$ac_compile") 2>conftest.er1 |
| 5726 | ac_status=$? |
| 5727 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5728 | rm -f conftest.er1 |
| 5729 | cat conftest.err >&5 |
| 5730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5731 | (exit $ac_status); } && |
| 5732 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5733 | { (case "(($ac_try" in |
| 5734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5735 | *) ac_try_echo=$ac_try;; |
| 5736 | esac |
| 5737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5738 | (eval "$ac_try") 2>&5 |
| 5739 | ac_status=$? |
| 5740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5741 | (exit $ac_status); }; } && |
| 5742 | { ac_try='test -s conftest.$ac_objext' |
| 5743 | { (case "(($ac_try" in |
| 5744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5745 | *) ac_try_echo=$ac_try;; |
| 5746 | esac |
| 5747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5748 | (eval "$ac_try") 2>&5 |
| 5749 | ac_status=$? |
| 5750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5751 | (exit $ac_status); }; }; then |
| 5752 | ac_compiler_gnu=yes |
| 5753 | else |
| 5754 | echo "$as_me: failed program was:" >&5 |
| 5755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5756 | |
| 5757 | ac_compiler_gnu=no |
| 5758 | fi |
| 5759 | |
| 5760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5761 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 5762 | |
| 5763 | fi |
| 5764 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 5765 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 5766 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 5767 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 5768 | ac_save_CXXFLAGS=$CXXFLAGS |
| 5769 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 5770 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 5771 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 5772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5773 | else |
| 5774 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 5775 | ac_cxx_werror_flag=yes |
| 5776 | ac_cv_prog_cxx_g=no |
| 5777 | CXXFLAGS="-g" |
| 5778 | cat >conftest.$ac_ext <<_ACEOF |
| 5779 | /* confdefs.h. */ |
| 5780 | _ACEOF |
| 5781 | cat confdefs.h >>conftest.$ac_ext |
| 5782 | cat >>conftest.$ac_ext <<_ACEOF |
| 5783 | /* end confdefs.h. */ |
| 5784 | |
| 5785 | int |
| 5786 | main () |
| 5787 | { |
| 5788 | |
| 5789 | ; |
| 5790 | return 0; |
| 5791 | } |
| 5792 | _ACEOF |
| 5793 | rm -f conftest.$ac_objext |
| 5794 | if { (ac_try="$ac_compile" |
| 5795 | case "(($ac_try" in |
| 5796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5797 | *) ac_try_echo=$ac_try;; |
| 5798 | esac |
| 5799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5800 | (eval "$ac_compile") 2>conftest.er1 |
| 5801 | ac_status=$? |
| 5802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5803 | rm -f conftest.er1 |
| 5804 | cat conftest.err >&5 |
| 5805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5806 | (exit $ac_status); } && |
| 5807 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5808 | { (case "(($ac_try" in |
| 5809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5810 | *) ac_try_echo=$ac_try;; |
| 5811 | esac |
| 5812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5813 | (eval "$ac_try") 2>&5 |
| 5814 | ac_status=$? |
| 5815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5816 | (exit $ac_status); }; } && |
| 5817 | { ac_try='test -s conftest.$ac_objext' |
| 5818 | { (case "(($ac_try" in |
| 5819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5820 | *) ac_try_echo=$ac_try;; |
| 5821 | esac |
| 5822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5823 | (eval "$ac_try") 2>&5 |
| 5824 | ac_status=$? |
| 5825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5826 | (exit $ac_status); }; }; then |
| 5827 | ac_cv_prog_cxx_g=yes |
| 5828 | else |
| 5829 | echo "$as_me: failed program was:" >&5 |
| 5830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5831 | |
| 5832 | CXXFLAGS="" |
| 5833 | cat >conftest.$ac_ext <<_ACEOF |
| 5834 | /* confdefs.h. */ |
| 5835 | _ACEOF |
| 5836 | cat confdefs.h >>conftest.$ac_ext |
| 5837 | cat >>conftest.$ac_ext <<_ACEOF |
| 5838 | /* end confdefs.h. */ |
| 5839 | |
| 5840 | int |
| 5841 | main () |
| 5842 | { |
| 5843 | |
| 5844 | ; |
| 5845 | return 0; |
| 5846 | } |
| 5847 | _ACEOF |
| 5848 | rm -f conftest.$ac_objext |
| 5849 | if { (ac_try="$ac_compile" |
| 5850 | case "(($ac_try" in |
| 5851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5852 | *) ac_try_echo=$ac_try;; |
| 5853 | esac |
| 5854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5855 | (eval "$ac_compile") 2>conftest.er1 |
| 5856 | ac_status=$? |
| 5857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5858 | rm -f conftest.er1 |
| 5859 | cat conftest.err >&5 |
| 5860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5861 | (exit $ac_status); } && |
| 5862 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5863 | { (case "(($ac_try" in |
| 5864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5865 | *) ac_try_echo=$ac_try;; |
| 5866 | esac |
| 5867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5868 | (eval "$ac_try") 2>&5 |
| 5869 | ac_status=$? |
| 5870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5871 | (exit $ac_status); }; } && |
| 5872 | { ac_try='test -s conftest.$ac_objext' |
| 5873 | { (case "(($ac_try" in |
| 5874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5875 | *) ac_try_echo=$ac_try;; |
| 5876 | esac |
| 5877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5878 | (eval "$ac_try") 2>&5 |
| 5879 | ac_status=$? |
| 5880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5881 | (exit $ac_status); }; }; then |
| 5882 | : |
| 5883 | else |
| 5884 | echo "$as_me: failed program was:" >&5 |
| 5885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5886 | |
| 5887 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5888 | CXXFLAGS="-g" |
| 5889 | cat >conftest.$ac_ext <<_ACEOF |
| 5890 | /* confdefs.h. */ |
| 5891 | _ACEOF |
| 5892 | cat confdefs.h >>conftest.$ac_ext |
| 5893 | cat >>conftest.$ac_ext <<_ACEOF |
| 5894 | /* end confdefs.h. */ |
| 5895 | |
| 5896 | int |
| 5897 | main () |
| 5898 | { |
| 5899 | |
| 5900 | ; |
| 5901 | return 0; |
| 5902 | } |
| 5903 | _ACEOF |
| 5904 | rm -f conftest.$ac_objext |
| 5905 | if { (ac_try="$ac_compile" |
| 5906 | case "(($ac_try" in |
| 5907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5908 | *) ac_try_echo=$ac_try;; |
| 5909 | esac |
| 5910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5911 | (eval "$ac_compile") 2>conftest.er1 |
| 5912 | ac_status=$? |
| 5913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5914 | rm -f conftest.er1 |
| 5915 | cat conftest.err >&5 |
| 5916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5917 | (exit $ac_status); } && |
| 5918 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5919 | { (case "(($ac_try" in |
| 5920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5921 | *) ac_try_echo=$ac_try;; |
| 5922 | esac |
| 5923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5924 | (eval "$ac_try") 2>&5 |
| 5925 | ac_status=$? |
| 5926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5927 | (exit $ac_status); }; } && |
| 5928 | { ac_try='test -s conftest.$ac_objext' |
| 5929 | { (case "(($ac_try" in |
| 5930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5931 | *) ac_try_echo=$ac_try;; |
| 5932 | esac |
| 5933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5934 | (eval "$ac_try") 2>&5 |
| 5935 | ac_status=$? |
| 5936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5937 | (exit $ac_status); }; }; then |
| 5938 | ac_cv_prog_cxx_g=yes |
| 5939 | else |
| 5940 | echo "$as_me: failed program was:" >&5 |
| 5941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5942 | |
| 5943 | |
| 5944 | fi |
| 5945 | |
| 5946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5947 | fi |
| 5948 | |
| 5949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5950 | fi |
| 5951 | |
| 5952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5953 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5954 | fi |
| 5955 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 5956 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 5957 | if test "$ac_test_CXXFLAGS" = set; then |
| 5958 | CXXFLAGS=$ac_save_CXXFLAGS |
| 5959 | elif test $ac_cv_prog_cxx_g = yes; then |
| 5960 | if test "$GXX" = yes; then |
| 5961 | CXXFLAGS="-g -O2" |
| 5962 | else |
| 5963 | CXXFLAGS="-g" |
| 5964 | fi |
| 5965 | else |
| 5966 | if test "$GXX" = yes; then |
| 5967 | CXXFLAGS="-O2" |
| 5968 | else |
| 5969 | CXXFLAGS= |
| 5970 | fi |
| 5971 | fi |
| 5972 | ac_ext=c |
| 5973 | ac_cpp='$CPP $CPPFLAGS' |
| 5974 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5975 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5976 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5977 | |
| 5978 | { echo "$as_me:$LINENO: checking " >&5 |
| 5979 | echo $ECHO_N "checking ... $ECHO_C" >&6; } |
| 5980 | if test "${ac_cv_has_flex+set}" = set; then |
| 5981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5982 | else |
| 5983 | for ac_prog in flex lex |
| 5984 | do |
| 5985 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5986 | set dummy $ac_prog; ac_word=$2 |
| 5987 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5989 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 5990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5991 | else |
| 5992 | if test -n "$LEX"; then |
| 5993 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 5994 | else |
| 5995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5996 | for as_dir in $PATH |
| 5997 | do |
| 5998 | IFS=$as_save_IFS |
| 5999 | test -z "$as_dir" && as_dir=. |
| 6000 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6001 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6002 | ac_cv_prog_LEX="$ac_prog" |
| 6003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6004 | break 2 |
| 6005 | fi |
| 6006 | done |
| 6007 | done |
| 6008 | IFS=$as_save_IFS |
| 6009 | |
| 6010 | fi |
| 6011 | fi |
| 6012 | LEX=$ac_cv_prog_LEX |
| 6013 | if test -n "$LEX"; then |
| 6014 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
| 6015 | echo "${ECHO_T}$LEX" >&6; } |
| 6016 | else |
| 6017 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6018 | echo "${ECHO_T}no" >&6; } |
| 6019 | fi |
| 6020 | |
| 6021 | |
| 6022 | test -n "$LEX" && break |
| 6023 | done |
| 6024 | test -n "$LEX" || LEX=":" |
| 6025 | |
| 6026 | if test -z "$LEXLIB" |
| 6027 | then |
| 6028 | { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 6029 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; } |
| 6030 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 6031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6032 | else |
| 6033 | ac_check_lib_save_LIBS=$LIBS |
| 6034 | LIBS="-lfl $LIBS" |
| 6035 | cat >conftest.$ac_ext <<_ACEOF |
| 6036 | /* confdefs.h. */ |
| 6037 | _ACEOF |
| 6038 | cat confdefs.h >>conftest.$ac_ext |
| 6039 | cat >>conftest.$ac_ext <<_ACEOF |
| 6040 | /* end confdefs.h. */ |
| 6041 | |
| 6042 | /* Override any GCC internal prototype to avoid an error. |
| 6043 | Use char because int might match the return type of a GCC |
| 6044 | builtin and then its argument prototype would still apply. */ |
| 6045 | #ifdef __cplusplus |
| 6046 | extern "C" |
| 6047 | #endif |
| 6048 | char yywrap (); |
| 6049 | int |
| 6050 | main () |
| 6051 | { |
| 6052 | return yywrap (); |
| 6053 | ; |
| 6054 | return 0; |
| 6055 | } |
| 6056 | _ACEOF |
| 6057 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6058 | if { (ac_try="$ac_link" |
| 6059 | case "(($ac_try" in |
| 6060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6061 | *) ac_try_echo=$ac_try;; |
| 6062 | esac |
| 6063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6064 | (eval "$ac_link") 2>conftest.er1 |
| 6065 | ac_status=$? |
| 6066 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6067 | rm -f conftest.er1 |
| 6068 | cat conftest.err >&5 |
| 6069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6070 | (exit $ac_status); } && |
| 6071 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6072 | { (case "(($ac_try" in |
| 6073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6074 | *) ac_try_echo=$ac_try;; |
| 6075 | esac |
| 6076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6077 | (eval "$ac_try") 2>&5 |
| 6078 | ac_status=$? |
| 6079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6080 | (exit $ac_status); }; } && |
| 6081 | { ac_try='test -s conftest$ac_exeext' |
| 6082 | { (case "(($ac_try" in |
| 6083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6084 | *) ac_try_echo=$ac_try;; |
| 6085 | esac |
| 6086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6087 | (eval "$ac_try") 2>&5 |
| 6088 | ac_status=$? |
| 6089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6090 | (exit $ac_status); }; }; then |
| 6091 | ac_cv_lib_fl_yywrap=yes |
| 6092 | else |
| 6093 | echo "$as_me: failed program was:" >&5 |
| 6094 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6095 | |
| 6096 | ac_cv_lib_fl_yywrap=no |
| 6097 | fi |
| 6098 | |
| 6099 | rm -f core conftest.err conftest.$ac_objext \ |
| 6100 | conftest$ac_exeext conftest.$ac_ext |
| 6101 | LIBS=$ac_check_lib_save_LIBS |
| 6102 | fi |
| 6103 | { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 6104 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; } |
| 6105 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 6106 | LEXLIB="-lfl" |
| 6107 | else |
| 6108 | { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 6109 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; } |
| 6110 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 6111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6112 | else |
| 6113 | ac_check_lib_save_LIBS=$LIBS |
| 6114 | LIBS="-ll $LIBS" |
| 6115 | cat >conftest.$ac_ext <<_ACEOF |
| 6116 | /* confdefs.h. */ |
| 6117 | _ACEOF |
| 6118 | cat confdefs.h >>conftest.$ac_ext |
| 6119 | cat >>conftest.$ac_ext <<_ACEOF |
| 6120 | /* end confdefs.h. */ |
| 6121 | |
| 6122 | /* Override any GCC internal prototype to avoid an error. |
| 6123 | Use char because int might match the return type of a GCC |
| 6124 | builtin and then its argument prototype would still apply. */ |
| 6125 | #ifdef __cplusplus |
| 6126 | extern "C" |
| 6127 | #endif |
| 6128 | char yywrap (); |
| 6129 | int |
| 6130 | main () |
| 6131 | { |
| 6132 | return yywrap (); |
| 6133 | ; |
| 6134 | return 0; |
| 6135 | } |
| 6136 | _ACEOF |
| 6137 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6138 | if { (ac_try="$ac_link" |
| 6139 | case "(($ac_try" in |
| 6140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6141 | *) ac_try_echo=$ac_try;; |
| 6142 | esac |
| 6143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6144 | (eval "$ac_link") 2>conftest.er1 |
| 6145 | ac_status=$? |
| 6146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6147 | rm -f conftest.er1 |
| 6148 | cat conftest.err >&5 |
| 6149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6150 | (exit $ac_status); } && |
| 6151 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6152 | { (case "(($ac_try" in |
| 6153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6154 | *) ac_try_echo=$ac_try;; |
| 6155 | esac |
| 6156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6157 | (eval "$ac_try") 2>&5 |
| 6158 | ac_status=$? |
| 6159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6160 | (exit $ac_status); }; } && |
| 6161 | { ac_try='test -s conftest$ac_exeext' |
| 6162 | { (case "(($ac_try" in |
| 6163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6164 | *) ac_try_echo=$ac_try;; |
| 6165 | esac |
| 6166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6167 | (eval "$ac_try") 2>&5 |
| 6168 | ac_status=$? |
| 6169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6170 | (exit $ac_status); }; }; then |
| 6171 | ac_cv_lib_l_yywrap=yes |
| 6172 | else |
| 6173 | echo "$as_me: failed program was:" >&5 |
| 6174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6175 | |
| 6176 | ac_cv_lib_l_yywrap=no |
| 6177 | fi |
| 6178 | |
| 6179 | rm -f core conftest.err conftest.$ac_objext \ |
| 6180 | conftest$ac_exeext conftest.$ac_ext |
| 6181 | LIBS=$ac_check_lib_save_LIBS |
| 6182 | fi |
| 6183 | { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 6184 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; } |
| 6185 | if test $ac_cv_lib_l_yywrap = yes; then |
| 6186 | LEXLIB="-ll" |
| 6187 | fi |
| 6188 | |
| 6189 | fi |
| 6190 | |
| 6191 | fi |
| 6192 | |
| 6193 | if test "x$LEX" != "x:"; then |
| 6194 | { echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 6195 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } |
| 6196 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 6197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6198 | else |
| 6199 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 6200 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 6201 | cat >conftest.l <<_ACEOF |
| 6202 | %% |
| 6203 | %% |
| 6204 | _ACEOF |
| 6205 | { (ac_try="$LEX conftest.l" |
| 6206 | case "(($ac_try" in |
| 6207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6208 | *) ac_try_echo=$ac_try;; |
| 6209 | esac |
| 6210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6211 | (eval "$LEX conftest.l") 2>&5 |
| 6212 | ac_status=$? |
| 6213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6214 | (exit $ac_status); } |
| 6215 | if test -f lex.yy.c; then |
| 6216 | ac_cv_prog_lex_root=lex.yy |
| 6217 | elif test -f lexyy.c; then |
| 6218 | ac_cv_prog_lex_root=lexyy |
| 6219 | else |
| 6220 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 6221 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 6222 | { (exit 1); exit 1; }; } |
| 6223 | fi |
| 6224 | fi |
| 6225 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 6226 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } |
| 6227 | rm -f conftest.l |
| 6228 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 6229 | |
| 6230 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 6231 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } |
| 6232 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 6233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6234 | else |
| 6235 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 6236 | # default is implementation-dependent. Figure out which it is, since |
| 6237 | # not all implementations provide the %pointer and %array declarations. |
| 6238 | ac_cv_prog_lex_yytext_pointer=no |
| 6239 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 6240 | ac_save_LIBS=$LIBS |
| 6241 | LIBS="$LIBS $LEXLIB" |
| 6242 | cat >conftest.$ac_ext <<_ACEOF |
| 6243 | `cat $LEX_OUTPUT_ROOT.c` |
| 6244 | _ACEOF |
| 6245 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6246 | if { (ac_try="$ac_link" |
| 6247 | case "(($ac_try" in |
| 6248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6249 | *) ac_try_echo=$ac_try;; |
| 6250 | esac |
| 6251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6252 | (eval "$ac_link") 2>conftest.er1 |
| 6253 | ac_status=$? |
| 6254 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6255 | rm -f conftest.er1 |
| 6256 | cat conftest.err >&5 |
| 6257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6258 | (exit $ac_status); } && |
| 6259 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6260 | { (case "(($ac_try" in |
| 6261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6262 | *) ac_try_echo=$ac_try;; |
| 6263 | esac |
| 6264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6265 | (eval "$ac_try") 2>&5 |
| 6266 | ac_status=$? |
| 6267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6268 | (exit $ac_status); }; } && |
| 6269 | { ac_try='test -s conftest$ac_exeext' |
| 6270 | { (case "(($ac_try" in |
| 6271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6272 | *) ac_try_echo=$ac_try;; |
| 6273 | esac |
| 6274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6275 | (eval "$ac_try") 2>&5 |
| 6276 | ac_status=$? |
| 6277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6278 | (exit $ac_status); }; }; then |
| 6279 | ac_cv_prog_lex_yytext_pointer=yes |
| 6280 | else |
| 6281 | echo "$as_me: failed program was:" >&5 |
| 6282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6283 | |
| 6284 | |
| 6285 | fi |
| 6286 | |
| 6287 | rm -f core conftest.err conftest.$ac_objext \ |
| 6288 | conftest$ac_exeext conftest.$ac_ext |
| 6289 | LIBS=$ac_save_LIBS |
| 6290 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 6291 | |
| 6292 | fi |
| 6293 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 6294 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } |
| 6295 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 6296 | |
| 6297 | cat >>confdefs.h <<\_ACEOF |
| 6298 | #define YYTEXT_POINTER 1 |
| 6299 | _ACEOF |
| 6300 | |
| 6301 | fi |
| 6302 | |
| 6303 | fi |
| 6304 | |
| 6305 | fi |
| 6306 | { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 |
| 6307 | echo "${ECHO_T}$ac_cv_has_flex" >&6; } |
| 6308 | if test "$LEX" != "flex"; then |
| 6309 | { { echo "$as_me:$LINENO: error: flex not found but required" >&5 |
| 6310 | echo "$as_me: error: flex not found but required" >&2;} |
| 6311 | { (exit 1); exit 1; }; } |
| 6312 | else |
| 6313 | FLEX=flex |
| 6314 | |
| 6315 | fi |
| 6316 | |
| 6317 | { echo "$as_me:$LINENO: checking " >&5 |
| 6318 | echo $ECHO_N "checking ... $ECHO_C" >&6; } |
| 6319 | if test "${llvm_cv_has_bison+set}" = set; then |
| 6320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6321 | else |
| 6322 | for ac_prog in 'bison -y' byacc |
| 6323 | do |
| 6324 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6325 | set dummy $ac_prog; ac_word=$2 |
| 6326 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6327 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6328 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 6329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6330 | else |
| 6331 | if test -n "$YACC"; then |
| 6332 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 6333 | else |
| 6334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6335 | for as_dir in $PATH |
| 6336 | do |
| 6337 | IFS=$as_save_IFS |
| 6338 | test -z "$as_dir" && as_dir=. |
| 6339 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6340 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6341 | ac_cv_prog_YACC="$ac_prog" |
| 6342 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6343 | break 2 |
| 6344 | fi |
| 6345 | done |
| 6346 | done |
| 6347 | IFS=$as_save_IFS |
| 6348 | |
| 6349 | fi |
| 6350 | fi |
| 6351 | YACC=$ac_cv_prog_YACC |
| 6352 | if test -n "$YACC"; then |
| 6353 | { echo "$as_me:$LINENO: result: $YACC" >&5 |
| 6354 | echo "${ECHO_T}$YACC" >&6; } |
| 6355 | else |
| 6356 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6357 | echo "${ECHO_T}no" >&6; } |
| 6358 | fi |
| 6359 | |
| 6360 | |
| 6361 | test -n "$YACC" && break |
| 6362 | done |
| 6363 | test -n "$YACC" || YACC="yacc" |
| 6364 | |
| 6365 | fi |
| 6366 | { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5 |
| 6367 | echo "${ECHO_T}$llvm_cv_has_bison" >&6; } |
| 6368 | if test "$YACC" != "bison -y"; then |
Reid Spencer | 4869d7f | 2006-08-24 22:41:20 +0000 | [diff] [blame] | 6369 | |
| 6370 | { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5 |
| 6371 | echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6372 | else |
| 6373 | BISON=bison |
| 6374 | |
| 6375 | fi |
| 6376 | |
| 6377 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6378 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6379 | if test "${lt_cv_path_NM+set}" = set; then |
| 6380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6381 | else |
| 6382 | if test -n "$NM"; then |
| 6383 | # Let the user override the test. |
| 6384 | lt_cv_path_NM="$NM" |
| 6385 | else |
| 6386 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6387 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6388 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6389 | fi |
| 6390 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6391 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6392 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6393 | IFS="$lt_save_ifs" |
| 6394 | test -z "$ac_dir" && ac_dir=. |
| 6395 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6396 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6397 | # Check to see if the nm accepts a BSD-compat flag. |
| 6398 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6399 | # nm: unknown option "B" ignored |
| 6400 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6401 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6402 | */dev/null* | *'Invalid file or object type'*) |
| 6403 | lt_cv_path_NM="$tmp_nm -B" |
| 6404 | break |
| 6405 | ;; |
| 6406 | *) |
| 6407 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6408 | */dev/null*) |
| 6409 | lt_cv_path_NM="$tmp_nm -p" |
| 6410 | break |
| 6411 | ;; |
| 6412 | *) |
| 6413 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6414 | continue # so that we can try to find one that supports BSD flags |
| 6415 | ;; |
| 6416 | esac |
| 6417 | ;; |
| 6418 | esac |
| 6419 | fi |
| 6420 | done |
| 6421 | IFS="$lt_save_ifs" |
| 6422 | done |
| 6423 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6424 | fi |
| 6425 | fi |
| 6426 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6427 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
| 6428 | NM="$lt_cv_path_NM" |
| 6429 | |
| 6430 | |
| 6431 | |
| 6432 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6433 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6434 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6436 | else |
| 6437 | llvm_cv_gnu_make_command='' |
| 6438 | for a in "$MAKE" make gmake gnumake ; do |
| 6439 | if test -z "$a" ; then continue ; fi ; |
| 6440 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6441 | then |
| 6442 | llvm_cv_gnu_make_command=$a ; |
| 6443 | break; |
| 6444 | fi |
| 6445 | done |
| 6446 | fi |
| 6447 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6448 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
| 6449 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6450 | ifGNUmake='' ; |
| 6451 | else |
| 6452 | ifGNUmake='#' ; |
| 6453 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6454 | echo "${ECHO_T}\"Not found\"" >&6; }; |
| 6455 | fi |
| 6456 | |
| 6457 | |
| 6458 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6459 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
| 6460 | LN_S=$as_ln_s |
| 6461 | if test "$LN_S" = "ln -s"; then |
| 6462 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6463 | echo "${ECHO_T}yes" >&6; } |
| 6464 | else |
| 6465 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6466 | echo "${ECHO_T}no, using $LN_S" >&6; } |
| 6467 | fi |
| 6468 | |
| 6469 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6470 | set dummy cmp; ac_word=$2 |
| 6471 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6472 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6473 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6475 | else |
| 6476 | case $CMP in |
| 6477 | [\\/]* | ?:[\\/]*) |
| 6478 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6479 | ;; |
| 6480 | *) |
| 6481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6482 | for as_dir in $PATH |
| 6483 | do |
| 6484 | IFS=$as_save_IFS |
| 6485 | test -z "$as_dir" && as_dir=. |
| 6486 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6487 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6488 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
| 6489 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6490 | break 2 |
| 6491 | fi |
| 6492 | done |
| 6493 | done |
| 6494 | IFS=$as_save_IFS |
| 6495 | |
| 6496 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6497 | ;; |
| 6498 | esac |
| 6499 | fi |
| 6500 | CMP=$ac_cv_path_CMP |
| 6501 | if test -n "$CMP"; then |
| 6502 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6503 | echo "${ECHO_T}$CMP" >&6; } |
| 6504 | else |
| 6505 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6506 | echo "${ECHO_T}no" >&6; } |
| 6507 | fi |
| 6508 | |
| 6509 | |
| 6510 | # Extract the first word of "cp", so it can be a program name with args. |
| 6511 | set dummy cp; ac_word=$2 |
| 6512 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6513 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6514 | if test "${ac_cv_path_CP+set}" = set; then |
| 6515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6516 | else |
| 6517 | case $CP in |
| 6518 | [\\/]* | ?:[\\/]*) |
| 6519 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6520 | ;; |
| 6521 | *) |
| 6522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6523 | for as_dir in $PATH |
| 6524 | do |
| 6525 | IFS=$as_save_IFS |
| 6526 | test -z "$as_dir" && as_dir=. |
| 6527 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6528 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6529 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 6530 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6531 | break 2 |
| 6532 | fi |
| 6533 | done |
| 6534 | done |
| 6535 | IFS=$as_save_IFS |
| 6536 | |
| 6537 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6538 | ;; |
| 6539 | esac |
| 6540 | fi |
| 6541 | CP=$ac_cv_path_CP |
| 6542 | if test -n "$CP"; then |
| 6543 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6544 | echo "${ECHO_T}$CP" >&6; } |
| 6545 | else |
| 6546 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6547 | echo "${ECHO_T}no" >&6; } |
| 6548 | fi |
| 6549 | |
| 6550 | |
| 6551 | # Extract the first word of "date", so it can be a program name with args. |
| 6552 | set dummy date; ac_word=$2 |
| 6553 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6554 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6555 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6557 | else |
| 6558 | case $DATE in |
| 6559 | [\\/]* | ?:[\\/]*) |
| 6560 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6561 | ;; |
| 6562 | *) |
| 6563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6564 | for as_dir in $PATH |
| 6565 | do |
| 6566 | IFS=$as_save_IFS |
| 6567 | test -z "$as_dir" && as_dir=. |
| 6568 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6569 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6570 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 6571 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6572 | break 2 |
| 6573 | fi |
| 6574 | done |
| 6575 | done |
| 6576 | IFS=$as_save_IFS |
| 6577 | |
| 6578 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6579 | ;; |
| 6580 | esac |
| 6581 | fi |
| 6582 | DATE=$ac_cv_path_DATE |
| 6583 | if test -n "$DATE"; then |
| 6584 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6585 | echo "${ECHO_T}$DATE" >&6; } |
| 6586 | else |
| 6587 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6588 | echo "${ECHO_T}no" >&6; } |
| 6589 | fi |
| 6590 | |
| 6591 | |
| 6592 | # Extract the first word of "find", so it can be a program name with args. |
| 6593 | set dummy find; ac_word=$2 |
| 6594 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6595 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6596 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6598 | else |
| 6599 | case $FIND in |
| 6600 | [\\/]* | ?:[\\/]*) |
| 6601 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6602 | ;; |
| 6603 | *) |
| 6604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6605 | for as_dir in $PATH |
| 6606 | do |
| 6607 | IFS=$as_save_IFS |
| 6608 | test -z "$as_dir" && as_dir=. |
| 6609 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6610 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6611 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
| 6612 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6613 | break 2 |
| 6614 | fi |
| 6615 | done |
| 6616 | done |
| 6617 | IFS=$as_save_IFS |
| 6618 | |
| 6619 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6620 | ;; |
| 6621 | esac |
| 6622 | fi |
| 6623 | FIND=$ac_cv_path_FIND |
| 6624 | if test -n "$FIND"; then |
| 6625 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6626 | echo "${ECHO_T}$FIND" >&6; } |
| 6627 | else |
| 6628 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6629 | echo "${ECHO_T}no" >&6; } |
| 6630 | fi |
| 6631 | |
| 6632 | |
| 6633 | # Extract the first word of "grep", so it can be a program name with args. |
| 6634 | set dummy grep; ac_word=$2 |
| 6635 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6636 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6637 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6639 | else |
| 6640 | case $GREP in |
| 6641 | [\\/]* | ?:[\\/]*) |
| 6642 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6643 | ;; |
| 6644 | *) |
| 6645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6646 | for as_dir in $PATH |
| 6647 | do |
| 6648 | IFS=$as_save_IFS |
| 6649 | test -z "$as_dir" && as_dir=. |
| 6650 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6651 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6652 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
| 6653 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6654 | break 2 |
| 6655 | fi |
| 6656 | done |
| 6657 | done |
| 6658 | IFS=$as_save_IFS |
| 6659 | |
| 6660 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6661 | ;; |
| 6662 | esac |
| 6663 | fi |
| 6664 | GREP=$ac_cv_path_GREP |
| 6665 | if test -n "$GREP"; then |
| 6666 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6667 | echo "${ECHO_T}$GREP" >&6; } |
| 6668 | else |
| 6669 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6670 | echo "${ECHO_T}no" >&6; } |
| 6671 | fi |
| 6672 | |
| 6673 | |
| 6674 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6675 | set dummy mkdir; ac_word=$2 |
| 6676 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6678 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6680 | else |
| 6681 | case $MKDIR in |
| 6682 | [\\/]* | ?:[\\/]*) |
| 6683 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6684 | ;; |
| 6685 | *) |
| 6686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6687 | for as_dir in $PATH |
| 6688 | do |
| 6689 | IFS=$as_save_IFS |
| 6690 | test -z "$as_dir" && as_dir=. |
| 6691 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6692 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6693 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
| 6694 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6695 | break 2 |
| 6696 | fi |
| 6697 | done |
| 6698 | done |
| 6699 | IFS=$as_save_IFS |
| 6700 | |
| 6701 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6702 | ;; |
| 6703 | esac |
| 6704 | fi |
| 6705 | MKDIR=$ac_cv_path_MKDIR |
| 6706 | if test -n "$MKDIR"; then |
| 6707 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6708 | echo "${ECHO_T}$MKDIR" >&6; } |
| 6709 | else |
| 6710 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6711 | echo "${ECHO_T}no" >&6; } |
| 6712 | fi |
| 6713 | |
| 6714 | |
| 6715 | # Extract the first word of "mv", so it can be a program name with args. |
| 6716 | set dummy mv; ac_word=$2 |
| 6717 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6718 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6719 | if test "${ac_cv_path_MV+set}" = set; then |
| 6720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6721 | else |
| 6722 | case $MV in |
| 6723 | [\\/]* | ?:[\\/]*) |
| 6724 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6725 | ;; |
| 6726 | *) |
| 6727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6728 | for as_dir in $PATH |
| 6729 | do |
| 6730 | IFS=$as_save_IFS |
| 6731 | test -z "$as_dir" && as_dir=. |
| 6732 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6733 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6734 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 6735 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6736 | break 2 |
| 6737 | fi |
| 6738 | done |
| 6739 | done |
| 6740 | IFS=$as_save_IFS |
| 6741 | |
| 6742 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6743 | ;; |
| 6744 | esac |
| 6745 | fi |
| 6746 | MV=$ac_cv_path_MV |
| 6747 | if test -n "$MV"; then |
| 6748 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6749 | echo "${ECHO_T}$MV" >&6; } |
| 6750 | else |
| 6751 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6752 | echo "${ECHO_T}no" >&6; } |
| 6753 | fi |
| 6754 | |
| 6755 | |
| 6756 | if test -n "$ac_tool_prefix"; then |
| 6757 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6758 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6759 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6760 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6761 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6763 | else |
| 6764 | if test -n "$RANLIB"; then |
| 6765 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6766 | else |
| 6767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6768 | for as_dir in $PATH |
| 6769 | do |
| 6770 | IFS=$as_save_IFS |
| 6771 | test -z "$as_dir" && as_dir=. |
| 6772 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6773 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6774 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6775 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6776 | break 2 |
| 6777 | fi |
| 6778 | done |
| 6779 | done |
| 6780 | IFS=$as_save_IFS |
| 6781 | |
| 6782 | fi |
| 6783 | fi |
| 6784 | RANLIB=$ac_cv_prog_RANLIB |
| 6785 | if test -n "$RANLIB"; then |
| 6786 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6787 | echo "${ECHO_T}$RANLIB" >&6; } |
| 6788 | else |
| 6789 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6790 | echo "${ECHO_T}no" >&6; } |
| 6791 | fi |
| 6792 | |
| 6793 | |
| 6794 | fi |
| 6795 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6796 | ac_ct_RANLIB=$RANLIB |
| 6797 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6798 | set dummy ranlib; ac_word=$2 |
| 6799 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6800 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6801 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6803 | else |
| 6804 | if test -n "$ac_ct_RANLIB"; then |
| 6805 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6806 | else |
| 6807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6808 | for as_dir in $PATH |
| 6809 | do |
| 6810 | IFS=$as_save_IFS |
| 6811 | test -z "$as_dir" && as_dir=. |
| 6812 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6813 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6814 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6815 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6816 | break 2 |
| 6817 | fi |
| 6818 | done |
| 6819 | done |
| 6820 | IFS=$as_save_IFS |
| 6821 | |
| 6822 | fi |
| 6823 | fi |
| 6824 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6825 | if test -n "$ac_ct_RANLIB"; then |
| 6826 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6827 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
| 6828 | else |
| 6829 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6830 | echo "${ECHO_T}no" >&6; } |
| 6831 | fi |
| 6832 | |
| 6833 | if test "x$ac_ct_RANLIB" = x; then |
| 6834 | RANLIB=":" |
| 6835 | else |
| 6836 | case $cross_compiling:$ac_tool_warned in |
| 6837 | yes:) |
| 6838 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6839 | whose name does not start with the host triplet. If you think this |
| 6840 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6841 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6842 | whose name does not start with the host triplet. If you think this |
| 6843 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6844 | ac_tool_warned=yes ;; |
| 6845 | esac |
| 6846 | RANLIB=$ac_ct_RANLIB |
| 6847 | fi |
| 6848 | else |
| 6849 | RANLIB="$ac_cv_prog_RANLIB" |
| 6850 | fi |
| 6851 | |
| 6852 | # Extract the first word of "rm", so it can be a program name with args. |
| 6853 | set dummy rm; ac_word=$2 |
| 6854 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6855 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6856 | if test "${ac_cv_path_RM+set}" = set; then |
| 6857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6858 | else |
| 6859 | case $RM in |
| 6860 | [\\/]* | ?:[\\/]*) |
| 6861 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 6862 | ;; |
| 6863 | *) |
| 6864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6865 | for as_dir in $PATH |
| 6866 | do |
| 6867 | IFS=$as_save_IFS |
| 6868 | test -z "$as_dir" && as_dir=. |
| 6869 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6870 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6871 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 6872 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6873 | break 2 |
| 6874 | fi |
| 6875 | done |
| 6876 | done |
| 6877 | IFS=$as_save_IFS |
| 6878 | |
| 6879 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 6880 | ;; |
| 6881 | esac |
| 6882 | fi |
| 6883 | RM=$ac_cv_path_RM |
| 6884 | if test -n "$RM"; then |
| 6885 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 6886 | echo "${ECHO_T}$RM" >&6; } |
| 6887 | else |
| 6888 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6889 | echo "${ECHO_T}no" >&6; } |
| 6890 | fi |
| 6891 | |
| 6892 | |
| 6893 | # Extract the first word of "sed", so it can be a program name with args. |
| 6894 | set dummy sed; ac_word=$2 |
| 6895 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6896 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6897 | if test "${ac_cv_path_SED+set}" = set; then |
| 6898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6899 | else |
| 6900 | case $SED in |
| 6901 | [\\/]* | ?:[\\/]*) |
| 6902 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 6903 | ;; |
| 6904 | *) |
| 6905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6906 | for as_dir in $PATH |
| 6907 | do |
| 6908 | IFS=$as_save_IFS |
| 6909 | test -z "$as_dir" && as_dir=. |
| 6910 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6911 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6912 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 6913 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6914 | break 2 |
| 6915 | fi |
| 6916 | done |
| 6917 | done |
| 6918 | IFS=$as_save_IFS |
| 6919 | |
| 6920 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 6921 | ;; |
| 6922 | esac |
| 6923 | fi |
| 6924 | SED=$ac_cv_path_SED |
| 6925 | if test -n "$SED"; then |
| 6926 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 6927 | echo "${ECHO_T}$SED" >&6; } |
| 6928 | else |
| 6929 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6930 | echo "${ECHO_T}no" >&6; } |
| 6931 | fi |
| 6932 | |
| 6933 | |
| 6934 | # Extract the first word of "tar", so it can be a program name with args. |
| 6935 | set dummy tar; ac_word=$2 |
| 6936 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6937 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6938 | if test "${ac_cv_path_TAR+set}" = set; then |
| 6939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6940 | else |
| 6941 | case $TAR in |
| 6942 | [\\/]* | ?:[\\/]*) |
| 6943 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 6944 | ;; |
| 6945 | *) |
| 6946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6947 | for as_dir in $PATH |
| 6948 | do |
| 6949 | IFS=$as_save_IFS |
| 6950 | test -z "$as_dir" && as_dir=. |
| 6951 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6952 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6953 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
| 6954 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6955 | break 2 |
| 6956 | fi |
| 6957 | done |
| 6958 | done |
| 6959 | IFS=$as_save_IFS |
| 6960 | |
| 6961 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 6962 | ;; |
| 6963 | esac |
| 6964 | fi |
| 6965 | TAR=$ac_cv_path_TAR |
| 6966 | if test -n "$TAR"; then |
| 6967 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 6968 | echo "${ECHO_T}$TAR" >&6; } |
| 6969 | else |
| 6970 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6971 | echo "${ECHO_T}no" >&6; } |
| 6972 | fi |
| 6973 | |
| 6974 | |
| 6975 | # Extract the first word of "pwd", so it can be a program name with args. |
| 6976 | set dummy pwd; ac_word=$2 |
| 6977 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6978 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6979 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 6980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6981 | else |
| 6982 | case $BINPWD in |
| 6983 | [\\/]* | ?:[\\/]*) |
| 6984 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 6985 | ;; |
| 6986 | *) |
| 6987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6988 | for as_dir in $PATH |
| 6989 | do |
| 6990 | IFS=$as_save_IFS |
| 6991 | test -z "$as_dir" && as_dir=. |
| 6992 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6993 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6994 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
| 6995 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6996 | break 2 |
| 6997 | fi |
| 6998 | done |
| 6999 | done |
| 7000 | IFS=$as_save_IFS |
| 7001 | |
| 7002 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7003 | ;; |
| 7004 | esac |
| 7005 | fi |
| 7006 | BINPWD=$ac_cv_path_BINPWD |
| 7007 | if test -n "$BINPWD"; then |
| 7008 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7009 | echo "${ECHO_T}$BINPWD" >&6; } |
| 7010 | else |
| 7011 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7012 | echo "${ECHO_T}no" >&6; } |
| 7013 | fi |
| 7014 | |
| 7015 | |
| 7016 | |
| 7017 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7018 | set dummy Graphviz; ac_word=$2 |
| 7019 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7020 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7021 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7023 | else |
| 7024 | case $GRAPHVIZ in |
| 7025 | [\\/]* | ?:[\\/]*) |
| 7026 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7027 | ;; |
| 7028 | *) |
| 7029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7030 | for as_dir in $PATH |
| 7031 | do |
| 7032 | IFS=$as_save_IFS |
| 7033 | test -z "$as_dir" && as_dir=. |
| 7034 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7035 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7036 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
| 7037 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7038 | break 2 |
| 7039 | fi |
| 7040 | done |
| 7041 | done |
| 7042 | IFS=$as_save_IFS |
| 7043 | |
| 7044 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7045 | ;; |
| 7046 | esac |
| 7047 | fi |
| 7048 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7049 | if test -n "$GRAPHVIZ"; then |
| 7050 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7051 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
| 7052 | else |
| 7053 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7054 | echo "${ECHO_T}no" >&6; } |
| 7055 | fi |
| 7056 | |
| 7057 | |
| 7058 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7059 | |
| 7060 | cat >>confdefs.h <<\_ACEOF |
| 7061 | #define HAVE_GRAPHVIZ 1 |
| 7062 | _ACEOF |
| 7063 | |
| 7064 | if test "$llvm_cv_os_type" == "MingW" ; then |
| 7065 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7066 | fi |
| 7067 | |
| 7068 | cat >>confdefs.h <<_ACEOF |
| 7069 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7070 | _ACEOF |
| 7071 | |
| 7072 | fi |
| 7073 | # Extract the first word of "dot", so it can be a program name with args. |
| 7074 | set dummy dot; ac_word=$2 |
| 7075 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7076 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7077 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7079 | else |
| 7080 | case $DOT in |
| 7081 | [\\/]* | ?:[\\/]*) |
| 7082 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7083 | ;; |
| 7084 | *) |
| 7085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7086 | for as_dir in $PATH |
| 7087 | do |
| 7088 | IFS=$as_save_IFS |
| 7089 | test -z "$as_dir" && as_dir=. |
| 7090 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7091 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7092 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 7093 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7094 | break 2 |
| 7095 | fi |
| 7096 | done |
| 7097 | done |
| 7098 | IFS=$as_save_IFS |
| 7099 | |
| 7100 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7101 | ;; |
| 7102 | esac |
| 7103 | fi |
| 7104 | DOT=$ac_cv_path_DOT |
| 7105 | if test -n "$DOT"; then |
| 7106 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7107 | echo "${ECHO_T}$DOT" >&6; } |
| 7108 | else |
| 7109 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7110 | echo "${ECHO_T}no" >&6; } |
| 7111 | fi |
| 7112 | |
| 7113 | |
| 7114 | if test "$DOT" != "echo dot" ; then |
| 7115 | |
| 7116 | cat >>confdefs.h <<\_ACEOF |
| 7117 | #define HAVE_DOT 1 |
| 7118 | _ACEOF |
| 7119 | |
| 7120 | if test "$llvm_cv_os_type" == "MingW" ; then |
| 7121 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7122 | fi |
| 7123 | |
| 7124 | cat >>confdefs.h <<_ACEOF |
| 7125 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7126 | _ACEOF |
| 7127 | |
| 7128 | fi |
| 7129 | for ac_prog in gv gsview32 |
| 7130 | do |
| 7131 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7132 | set dummy $ac_prog; ac_word=$2 |
| 7133 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7134 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7135 | if test "${ac_cv_path_GV+set}" = set; then |
| 7136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7137 | else |
| 7138 | case $GV in |
| 7139 | [\\/]* | ?:[\\/]*) |
| 7140 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7141 | ;; |
| 7142 | *) |
| 7143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7144 | for as_dir in $PATH |
| 7145 | do |
| 7146 | IFS=$as_save_IFS |
| 7147 | test -z "$as_dir" && as_dir=. |
| 7148 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7149 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7150 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
| 7151 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7152 | break 2 |
| 7153 | fi |
| 7154 | done |
| 7155 | done |
| 7156 | IFS=$as_save_IFS |
| 7157 | |
| 7158 | ;; |
| 7159 | esac |
| 7160 | fi |
| 7161 | GV=$ac_cv_path_GV |
| 7162 | if test -n "$GV"; then |
| 7163 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7164 | echo "${ECHO_T}$GV" >&6; } |
| 7165 | else |
| 7166 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7167 | echo "${ECHO_T}no" >&6; } |
| 7168 | fi |
| 7169 | |
| 7170 | |
| 7171 | test -n "$GV" && break |
| 7172 | done |
| 7173 | test -n "$GV" || GV="echo gv" |
| 7174 | |
| 7175 | if test "$GV" != "echo gv" ; then |
| 7176 | |
| 7177 | cat >>confdefs.h <<\_ACEOF |
| 7178 | #define HAVE_GV 1 |
| 7179 | _ACEOF |
| 7180 | |
| 7181 | if test "$llvm_cv_os_type" == "MingW" ; then |
| 7182 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7183 | fi |
| 7184 | |
| 7185 | cat >>confdefs.h <<_ACEOF |
| 7186 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7187 | _ACEOF |
| 7188 | |
| 7189 | fi |
| 7190 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7191 | set dummy dotty; ac_word=$2 |
| 7192 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7193 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7194 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7196 | else |
| 7197 | case $DOTTY in |
| 7198 | [\\/]* | ?:[\\/]*) |
| 7199 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7200 | ;; |
| 7201 | *) |
| 7202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7203 | for as_dir in $PATH |
| 7204 | do |
| 7205 | IFS=$as_save_IFS |
| 7206 | test -z "$as_dir" && as_dir=. |
| 7207 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7208 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7209 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
| 7210 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7211 | break 2 |
| 7212 | fi |
| 7213 | done |
| 7214 | done |
| 7215 | IFS=$as_save_IFS |
| 7216 | |
| 7217 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7218 | ;; |
| 7219 | esac |
| 7220 | fi |
| 7221 | DOTTY=$ac_cv_path_DOTTY |
| 7222 | if test -n "$DOTTY"; then |
| 7223 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7224 | echo "${ECHO_T}$DOTTY" >&6; } |
| 7225 | else |
| 7226 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7227 | echo "${ECHO_T}no" >&6; } |
| 7228 | fi |
| 7229 | |
| 7230 | |
| 7231 | if test "$DOTTY" != "echo dotty" ; then |
| 7232 | |
| 7233 | cat >>confdefs.h <<\_ACEOF |
| 7234 | #define HAVE_DOTTY 1 |
| 7235 | _ACEOF |
| 7236 | |
| 7237 | if test "$llvm_cv_os_type" == "MingW" ; then |
| 7238 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7239 | fi |
| 7240 | |
| 7241 | cat >>confdefs.h <<_ACEOF |
| 7242 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7243 | _ACEOF |
| 7244 | |
| 7245 | fi |
| 7246 | |
| 7247 | |
| 7248 | # Extract the first word of "perl", so it can be a program name with args. |
| 7249 | set dummy perl; ac_word=$2 |
| 7250 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7251 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7252 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7254 | else |
| 7255 | case $PERL in |
| 7256 | [\\/]* | ?:[\\/]*) |
| 7257 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7258 | ;; |
| 7259 | *) |
| 7260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7261 | for as_dir in $PATH |
| 7262 | do |
| 7263 | IFS=$as_save_IFS |
| 7264 | test -z "$as_dir" && as_dir=. |
| 7265 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7266 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7267 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 7268 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7269 | break 2 |
| 7270 | fi |
| 7271 | done |
| 7272 | done |
| 7273 | IFS=$as_save_IFS |
| 7274 | |
| 7275 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7276 | ;; |
| 7277 | esac |
| 7278 | fi |
| 7279 | PERL=$ac_cv_path_PERL |
| 7280 | if test -n "$PERL"; then |
| 7281 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7282 | echo "${ECHO_T}$PERL" >&6; } |
| 7283 | else |
| 7284 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7285 | echo "${ECHO_T}no" >&6; } |
| 7286 | fi |
| 7287 | |
| 7288 | |
| 7289 | if test "$PERL" != "none"; then |
| 7290 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7291 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } |
| 7292 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
| 7293 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7294 | echo "${ECHO_T}yes" >&6; } |
| 7295 | else |
| 7296 | PERL=none |
| 7297 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7298 | echo "${ECHO_T}not found" >&6; } |
| 7299 | fi |
| 7300 | fi |
| 7301 | |
| 7302 | |
| 7303 | if test x"$PERL" = xnone; then |
| 7304 | HAVE_PERL=0 |
| 7305 | |
| 7306 | else |
| 7307 | HAVE_PERL=1 |
| 7308 | |
| 7309 | fi |
| 7310 | |
| 7311 | # Find a good install program. We prefer a C program (faster), |
| 7312 | # so one script is as good as another. But avoid the broken or |
| 7313 | # incompatible versions: |
| 7314 | # SysV /etc/install, /usr/sbin/install |
| 7315 | # SunOS /usr/etc/install |
| 7316 | # IRIX /sbin/install |
| 7317 | # AIX /bin/install |
| 7318 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7319 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7320 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7321 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7322 | # OS/2's system install, which has a completely different semantic |
| 7323 | # ./install, which can be erroneously created by make from ./install.sh. |
| 7324 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7325 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
| 7326 | if test -z "$INSTALL"; then |
| 7327 | if test "${ac_cv_path_install+set}" = set; then |
| 7328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7329 | else |
| 7330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7331 | for as_dir in $PATH |
| 7332 | do |
| 7333 | IFS=$as_save_IFS |
| 7334 | test -z "$as_dir" && as_dir=. |
| 7335 | # Account for people who put trailing slashes in PATH elements. |
| 7336 | case $as_dir/ in |
| 7337 | ./ | .// | /cC/* | \ |
| 7338 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 7339 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 7340 | /usr/ucb/* ) ;; |
| 7341 | *) |
| 7342 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7343 | # Don't use installbsd from OSF since it installs stuff as root |
| 7344 | # by default. |
| 7345 | for ac_prog in ginstall scoinst install; do |
| 7346 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7347 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 7348 | if test $ac_prog = install && |
| 7349 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7350 | # AIX install. It has an incompatible calling convention. |
| 7351 | : |
| 7352 | elif test $ac_prog = install && |
| 7353 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7354 | # program-specific install script used by HP pwplus--don't use. |
| 7355 | : |
| 7356 | else |
| 7357 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7358 | break 3 |
| 7359 | fi |
| 7360 | fi |
| 7361 | done |
| 7362 | done |
| 7363 | ;; |
| 7364 | esac |
| 7365 | done |
| 7366 | IFS=$as_save_IFS |
| 7367 | |
| 7368 | |
| 7369 | fi |
| 7370 | if test "${ac_cv_path_install+set}" = set; then |
| 7371 | INSTALL=$ac_cv_path_install |
| 7372 | else |
| 7373 | # As a last resort, use the slow shell script. Don't cache a |
| 7374 | # value for INSTALL within a source directory, because that will |
| 7375 | # break other packages using the cache if that directory is |
| 7376 | # removed, or if the value is a relative name. |
| 7377 | INSTALL=$ac_install_sh |
| 7378 | fi |
| 7379 | fi |
| 7380 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7381 | echo "${ECHO_T}$INSTALL" >&6; } |
| 7382 | |
| 7383 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7384 | # It thinks the first close brace ends the variable substitution. |
| 7385 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7386 | |
| 7387 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7388 | |
| 7389 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7390 | |
| 7391 | |
| 7392 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7393 | set dummy bzip2; ac_word=$2 |
| 7394 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7395 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7396 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7398 | else |
| 7399 | case $BZIP2 in |
| 7400 | [\\/]* | ?:[\\/]*) |
| 7401 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7402 | ;; |
| 7403 | *) |
| 7404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7405 | for as_dir in $PATH |
| 7406 | do |
| 7407 | IFS=$as_save_IFS |
| 7408 | test -z "$as_dir" && as_dir=. |
| 7409 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7410 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7411 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
| 7412 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7413 | break 2 |
| 7414 | fi |
| 7415 | done |
| 7416 | done |
| 7417 | IFS=$as_save_IFS |
| 7418 | |
| 7419 | test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found"" |
| 7420 | ;; |
| 7421 | esac |
| 7422 | fi |
| 7423 | BZIP2=$ac_cv_path_BZIP2 |
| 7424 | if test -n "$BZIP2"; then |
| 7425 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7426 | echo "${ECHO_T}$BZIP2" >&6; } |
| 7427 | else |
| 7428 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7429 | echo "${ECHO_T}no" >&6; } |
| 7430 | fi |
| 7431 | |
| 7432 | |
| 7433 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7434 | set dummy doxygen; ac_word=$2 |
| 7435 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7436 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7437 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7439 | else |
| 7440 | case $DOXYGEN in |
| 7441 | [\\/]* | ?:[\\/]*) |
| 7442 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7443 | ;; |
| 7444 | *) |
| 7445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7446 | for as_dir in $PATH |
| 7447 | do |
| 7448 | IFS=$as_save_IFS |
| 7449 | test -z "$as_dir" && as_dir=. |
| 7450 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7451 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7452 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 7453 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7454 | break 2 |
| 7455 | fi |
| 7456 | done |
| 7457 | done |
| 7458 | IFS=$as_save_IFS |
| 7459 | |
| 7460 | test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found"" |
| 7461 | ;; |
| 7462 | esac |
| 7463 | fi |
| 7464 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7465 | if test -n "$DOXYGEN"; then |
| 7466 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7467 | echo "${ECHO_T}$DOXYGEN" >&6; } |
| 7468 | else |
| 7469 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7470 | echo "${ECHO_T}no" >&6; } |
| 7471 | fi |
| 7472 | |
| 7473 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7474 | # Extract the first word of "groff", so it can be a program name with args. |
| 7475 | set dummy groff; ac_word=$2 |
| 7476 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7477 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7478 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 7479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7480 | else |
| 7481 | case $GROFF in |
| 7482 | [\\/]* | ?:[\\/]*) |
| 7483 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7484 | ;; |
| 7485 | *) |
| 7486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7487 | for as_dir in $PATH |
| 7488 | do |
| 7489 | IFS=$as_save_IFS |
| 7490 | test -z "$as_dir" && as_dir=. |
| 7491 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7492 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7493 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7494 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7495 | break 2 |
| 7496 | fi |
| 7497 | done |
| 7498 | done |
| 7499 | IFS=$as_save_IFS |
| 7500 | |
| 7501 | test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found"" |
| 7502 | ;; |
| 7503 | esac |
| 7504 | fi |
| 7505 | GROFF=$ac_cv_path_GROFF |
| 7506 | if test -n "$GROFF"; then |
| 7507 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 7508 | echo "${ECHO_T}$GROFF" >&6; } |
| 7509 | else |
| 7510 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7511 | echo "${ECHO_T}no" >&6; } |
| 7512 | fi |
| 7513 | |
| 7514 | |
| 7515 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7516 | set dummy gzip; ac_word=$2 |
| 7517 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7518 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7519 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 7520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7521 | else |
| 7522 | case $GZIP in |
| 7523 | [\\/]* | ?:[\\/]*) |
| 7524 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 7525 | ;; |
| 7526 | *) |
| 7527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7528 | for as_dir in $PATH |
| 7529 | do |
| 7530 | IFS=$as_save_IFS |
| 7531 | test -z "$as_dir" && as_dir=. |
| 7532 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7533 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7534 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7535 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7536 | break 2 |
| 7537 | fi |
| 7538 | done |
| 7539 | done |
| 7540 | IFS=$as_save_IFS |
| 7541 | |
| 7542 | test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found"" |
| 7543 | ;; |
| 7544 | esac |
| 7545 | fi |
| 7546 | GZIP=$ac_cv_path_GZIP |
| 7547 | if test -n "$GZIP"; then |
| 7548 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 7549 | echo "${ECHO_T}$GZIP" >&6; } |
| 7550 | else |
| 7551 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7552 | echo "${ECHO_T}no" >&6; } |
| 7553 | fi |
| 7554 | |
| 7555 | |
| 7556 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 7557 | set dummy pod2html; ac_word=$2 |
| 7558 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7559 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7560 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 7561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7562 | else |
| 7563 | case $POD2HTML in |
| 7564 | [\\/]* | ?:[\\/]*) |
| 7565 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 7566 | ;; |
| 7567 | *) |
| 7568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7569 | for as_dir in $PATH |
| 7570 | do |
| 7571 | IFS=$as_save_IFS |
| 7572 | test -z "$as_dir" && as_dir=. |
| 7573 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7574 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7575 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
| 7576 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7577 | break 2 |
| 7578 | fi |
| 7579 | done |
| 7580 | done |
| 7581 | IFS=$as_save_IFS |
| 7582 | |
| 7583 | test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found"" |
| 7584 | ;; |
| 7585 | esac |
| 7586 | fi |
| 7587 | POD2HTML=$ac_cv_path_POD2HTML |
| 7588 | if test -n "$POD2HTML"; then |
| 7589 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 7590 | echo "${ECHO_T}$POD2HTML" >&6; } |
| 7591 | else |
| 7592 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7593 | echo "${ECHO_T}no" >&6; } |
| 7594 | fi |
| 7595 | |
| 7596 | |
| 7597 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 7598 | set dummy pod2man; ac_word=$2 |
| 7599 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7601 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 7602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7603 | else |
| 7604 | case $POD2MAN in |
| 7605 | [\\/]* | ?:[\\/]*) |
| 7606 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 7607 | ;; |
| 7608 | *) |
| 7609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7610 | for as_dir in $PATH |
| 7611 | do |
| 7612 | IFS=$as_save_IFS |
| 7613 | test -z "$as_dir" && as_dir=. |
| 7614 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7615 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7616 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
| 7617 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7618 | break 2 |
| 7619 | fi |
| 7620 | done |
| 7621 | done |
| 7622 | IFS=$as_save_IFS |
| 7623 | |
| 7624 | test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found"" |
| 7625 | ;; |
| 7626 | esac |
| 7627 | fi |
| 7628 | POD2MAN=$ac_cv_path_POD2MAN |
| 7629 | if test -n "$POD2MAN"; then |
| 7630 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 7631 | echo "${ECHO_T}$POD2MAN" >&6; } |
| 7632 | else |
| 7633 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7634 | echo "${ECHO_T}no" >&6; } |
| 7635 | fi |
| 7636 | |
| 7637 | |
| 7638 | # Extract the first word of "runtest", so it can be a program name with args. |
| 7639 | set dummy runtest; ac_word=$2 |
| 7640 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7641 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7642 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 7643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7644 | else |
| 7645 | case $RUNTEST in |
| 7646 | [\\/]* | ?:[\\/]*) |
| 7647 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 7648 | ;; |
| 7649 | *) |
| 7650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7651 | for as_dir in $PATH |
| 7652 | do |
| 7653 | IFS=$as_save_IFS |
| 7654 | test -z "$as_dir" && as_dir=. |
| 7655 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7656 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7657 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
| 7658 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7659 | break 2 |
| 7660 | fi |
| 7661 | done |
| 7662 | done |
| 7663 | IFS=$as_save_IFS |
| 7664 | |
| 7665 | test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found"" |
| 7666 | ;; |
| 7667 | esac |
| 7668 | fi |
| 7669 | RUNTEST=$ac_cv_path_RUNTEST |
| 7670 | if test -n "$RUNTEST"; then |
| 7671 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 7672 | echo "${ECHO_T}$RUNTEST" >&6; } |
| 7673 | else |
| 7674 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7675 | echo "${ECHO_T}no" >&6; } |
| 7676 | fi |
| 7677 | |
| 7678 | |
| 7679 | |
| 7680 | no_itcl=true |
| 7681 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 7682 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } |
| 7683 | |
| 7684 | # Check whether --with-tclinclude was given. |
| 7685 | if test "${with_tclinclude+set}" = set; then |
| 7686 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 7687 | else |
| 7688 | with_tclinclude='' |
| 7689 | fi |
| 7690 | |
| 7691 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 7692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7693 | else |
| 7694 | |
| 7695 | if test x"${with_tclinclude}" != x ; then |
| 7696 | if test -f ${with_tclinclude}/tclsh ; then |
| 7697 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 7698 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 7699 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 7700 | else |
| 7701 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 7702 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 7703 | { (exit 1); exit 1; }; } |
| 7704 | fi |
| 7705 | fi |
| 7706 | |
| 7707 | if test x"${ac_cv_path_tclsh}" = x ; then |
| 7708 | { echo "$as_me:$LINENO: result: none" >&5 |
| 7709 | echo "${ECHO_T}none" >&6; } |
| 7710 | for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh |
| 7711 | do |
| 7712 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7713 | set dummy $ac_prog; ac_word=$2 |
| 7714 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7715 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7716 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 7717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7718 | else |
| 7719 | case $TCLSH in |
| 7720 | [\\/]* | ?:[\\/]*) |
| 7721 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 7722 | ;; |
| 7723 | *) |
| 7724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7725 | for as_dir in $PATH |
| 7726 | do |
| 7727 | IFS=$as_save_IFS |
| 7728 | test -z "$as_dir" && as_dir=. |
| 7729 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7730 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7731 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
| 7732 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7733 | break 2 |
| 7734 | fi |
| 7735 | done |
| 7736 | done |
| 7737 | IFS=$as_save_IFS |
| 7738 | |
| 7739 | ;; |
| 7740 | esac |
| 7741 | fi |
| 7742 | TCLSH=$ac_cv_path_TCLSH |
| 7743 | if test -n "$TCLSH"; then |
| 7744 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 7745 | echo "${ECHO_T}$TCLSH" >&6; } |
| 7746 | else |
| 7747 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7748 | echo "${ECHO_T}no" >&6; } |
| 7749 | fi |
| 7750 | |
| 7751 | |
| 7752 | test -n "$TCLSH" && break |
| 7753 | done |
| 7754 | |
| 7755 | if test x"${TCLSH}" = x ; then |
| 7756 | ac_cv_path_tclsh=''; |
| 7757 | else |
| 7758 | ac_cv_path_tclsh="${TCLSH}"; |
| 7759 | fi |
| 7760 | else |
| 7761 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 7762 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
| 7763 | TCLSH="${ac_cv_path_tclsh}" |
| 7764 | |
| 7765 | fi |
| 7766 | |
| 7767 | fi |
| 7768 | |
| 7769 | # Extract the first word of "zip", so it can be a program name with args. |
| 7770 | set dummy zip; ac_word=$2 |
| 7771 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7772 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7773 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 7774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7775 | else |
| 7776 | case $ZIP in |
| 7777 | [\\/]* | ?:[\\/]*) |
| 7778 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 7779 | ;; |
| 7780 | *) |
| 7781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7782 | for as_dir in $PATH |
| 7783 | do |
| 7784 | IFS=$as_save_IFS |
| 7785 | test -z "$as_dir" && as_dir=. |
| 7786 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7787 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7788 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7789 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7790 | break 2 |
| 7791 | fi |
| 7792 | done |
| 7793 | done |
| 7794 | IFS=$as_save_IFS |
| 7795 | |
| 7796 | test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found"" |
| 7797 | ;; |
| 7798 | esac |
| 7799 | fi |
| 7800 | ZIP=$ac_cv_path_ZIP |
| 7801 | if test -n "$ZIP"; then |
| 7802 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 7803 | echo "${ECHO_T}$ZIP" >&6; } |
| 7804 | else |
| 7805 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7806 | echo "${ECHO_T}no" >&6; } |
| 7807 | fi |
| 7808 | |
| 7809 | |
| 7810 | |
| 7811 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 7812 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 7813 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 7814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7815 | else |
| 7816 | ac_ext=c |
| 7817 | ac_cpp='$CPP $CPPFLAGS' |
| 7818 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7819 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7820 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7821 | |
| 7822 | oldcflags="$CFLAGS" |
| 7823 | CFLAGS="$CFLAGS -Wl,-R." |
| 7824 | cat >conftest.$ac_ext <<_ACEOF |
| 7825 | /* confdefs.h. */ |
| 7826 | _ACEOF |
| 7827 | cat confdefs.h >>conftest.$ac_ext |
| 7828 | cat >>conftest.$ac_ext <<_ACEOF |
| 7829 | /* end confdefs.h. */ |
| 7830 | |
| 7831 | int |
| 7832 | main () |
| 7833 | { |
| 7834 | int main() { return 0; } |
| 7835 | ; |
| 7836 | return 0; |
| 7837 | } |
| 7838 | _ACEOF |
| 7839 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7840 | if { (ac_try="$ac_link" |
| 7841 | case "(($ac_try" in |
| 7842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7843 | *) ac_try_echo=$ac_try;; |
| 7844 | esac |
| 7845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7846 | (eval "$ac_link") 2>conftest.er1 |
| 7847 | ac_status=$? |
| 7848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7849 | rm -f conftest.er1 |
| 7850 | cat conftest.err >&5 |
| 7851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7852 | (exit $ac_status); } && |
| 7853 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7854 | { (case "(($ac_try" in |
| 7855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7856 | *) ac_try_echo=$ac_try;; |
| 7857 | esac |
| 7858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7859 | (eval "$ac_try") 2>&5 |
| 7860 | ac_status=$? |
| 7861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7862 | (exit $ac_status); }; } && |
| 7863 | { ac_try='test -s conftest$ac_exeext' |
| 7864 | { (case "(($ac_try" in |
| 7865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7866 | *) ac_try_echo=$ac_try;; |
| 7867 | esac |
| 7868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7869 | (eval "$ac_try") 2>&5 |
| 7870 | ac_status=$? |
| 7871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7872 | (exit $ac_status); }; }; then |
| 7873 | llvm_cv_link_use_r=yes |
| 7874 | else |
| 7875 | echo "$as_me: failed program was:" >&5 |
| 7876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7877 | |
| 7878 | llvm_cv_link_use_r=no |
| 7879 | fi |
| 7880 | |
| 7881 | rm -f core conftest.err conftest.$ac_objext \ |
| 7882 | conftest$ac_exeext conftest.$ac_ext |
| 7883 | CFLAGS="$oldcflags" |
| 7884 | ac_ext=c |
| 7885 | ac_cpp='$CPP $CPPFLAGS' |
| 7886 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7887 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7888 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7889 | |
| 7890 | |
| 7891 | fi |
| 7892 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 7893 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
| 7894 | if test "$llvm_cv_link_use_r" = yes ; then |
| 7895 | |
| 7896 | cat >>confdefs.h <<\_ACEOF |
| 7897 | #define HAVE_LINK_R 1 |
| 7898 | _ACEOF |
| 7899 | |
| 7900 | fi |
| 7901 | |
| 7902 | |
| 7903 | |
| 7904 | |
| 7905 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 7906 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 7907 | if test "${ac_cv_c_const+set}" = set; then |
| 7908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7909 | else |
| 7910 | cat >conftest.$ac_ext <<_ACEOF |
| 7911 | /* confdefs.h. */ |
| 7912 | _ACEOF |
| 7913 | cat confdefs.h >>conftest.$ac_ext |
| 7914 | cat >>conftest.$ac_ext <<_ACEOF |
| 7915 | /* end confdefs.h. */ |
| 7916 | |
| 7917 | int |
| 7918 | main () |
| 7919 | { |
| 7920 | /* FIXME: Include the comments suggested by Paul. */ |
| 7921 | #ifndef __cplusplus |
| 7922 | /* Ultrix mips cc rejects this. */ |
| 7923 | typedef int charset[2]; |
| 7924 | const charset x; |
| 7925 | /* SunOS 4.1.1 cc rejects this. */ |
| 7926 | char const *const *ccp; |
| 7927 | char **p; |
| 7928 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 7929 | struct point {int x, y;}; |
| 7930 | static struct point const zero = {0,0}; |
| 7931 | /* AIX XL C 1.02.0.0 rejects this. |
| 7932 | It does not let you subtract one const X* pointer from another in |
| 7933 | an arm of an if-expression whose if-part is not a constant |
| 7934 | expression */ |
| 7935 | const char *g = "string"; |
| 7936 | ccp = &g + (g ? g-g : 0); |
| 7937 | /* HPUX 7.0 cc rejects these. */ |
| 7938 | ++ccp; |
| 7939 | p = (char**) ccp; |
| 7940 | ccp = (char const *const *) p; |
| 7941 | { /* SCO 3.2v4 cc rejects this. */ |
| 7942 | char *t; |
| 7943 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 7944 | |
| 7945 | *t++ = 0; |
| 7946 | if (s) return 0; |
| 7947 | } |
| 7948 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 7949 | int x[] = {25, 17}; |
| 7950 | const int *foo = &x[0]; |
| 7951 | ++foo; |
| 7952 | } |
| 7953 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 7954 | typedef const int *iptr; |
| 7955 | iptr p = 0; |
| 7956 | ++p; |
| 7957 | } |
| 7958 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 7959 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 7960 | struct s { int j; const int *ap[3]; }; |
| 7961 | struct s *b; b->j = 5; |
| 7962 | } |
| 7963 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 7964 | const int foo = 10; |
| 7965 | if (!foo) return 0; |
| 7966 | } |
| 7967 | return !x[0] && !zero.x; |
| 7968 | #endif |
| 7969 | |
| 7970 | ; |
| 7971 | return 0; |
| 7972 | } |
| 7973 | _ACEOF |
| 7974 | rm -f conftest.$ac_objext |
| 7975 | if { (ac_try="$ac_compile" |
| 7976 | case "(($ac_try" in |
| 7977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7978 | *) ac_try_echo=$ac_try;; |
| 7979 | esac |
| 7980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7981 | (eval "$ac_compile") 2>conftest.er1 |
| 7982 | ac_status=$? |
| 7983 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7984 | rm -f conftest.er1 |
| 7985 | cat conftest.err >&5 |
| 7986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7987 | (exit $ac_status); } && |
| 7988 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7989 | { (case "(($ac_try" in |
| 7990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7991 | *) ac_try_echo=$ac_try;; |
| 7992 | esac |
| 7993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7994 | (eval "$ac_try") 2>&5 |
| 7995 | ac_status=$? |
| 7996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7997 | (exit $ac_status); }; } && |
| 7998 | { ac_try='test -s conftest.$ac_objext' |
| 7999 | { (case "(($ac_try" in |
| 8000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8001 | *) ac_try_echo=$ac_try;; |
| 8002 | esac |
| 8003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8004 | (eval "$ac_try") 2>&5 |
| 8005 | ac_status=$? |
| 8006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8007 | (exit $ac_status); }; }; then |
| 8008 | ac_cv_c_const=yes |
| 8009 | else |
| 8010 | echo "$as_me: failed program was:" >&5 |
| 8011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8012 | |
| 8013 | ac_cv_c_const=no |
| 8014 | fi |
| 8015 | |
| 8016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8017 | fi |
| 8018 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8019 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
| 8020 | if test $ac_cv_c_const = no; then |
| 8021 | |
| 8022 | cat >>confdefs.h <<\_ACEOF |
| 8023 | #define const |
| 8024 | _ACEOF |
| 8025 | |
| 8026 | fi |
| 8027 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8028 | |
| 8029 | |
| 8030 | |
| 8031 | |
| 8032 | |
| 8033 | ac_header_dirent=no |
| 8034 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 8035 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8036 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8037 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8038 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8040 | else |
| 8041 | cat >conftest.$ac_ext <<_ACEOF |
| 8042 | /* confdefs.h. */ |
| 8043 | _ACEOF |
| 8044 | cat confdefs.h >>conftest.$ac_ext |
| 8045 | cat >>conftest.$ac_ext <<_ACEOF |
| 8046 | /* end confdefs.h. */ |
| 8047 | #include <sys/types.h> |
| 8048 | #include <$ac_hdr> |
| 8049 | |
| 8050 | int |
| 8051 | main () |
| 8052 | { |
| 8053 | if ((DIR *) 0) |
| 8054 | return 0; |
| 8055 | ; |
| 8056 | return 0; |
| 8057 | } |
| 8058 | _ACEOF |
| 8059 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8060 | if { (ac_try="$ac_compile" |
| 8061 | case "(($ac_try" in |
| 8062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8063 | *) ac_try_echo=$ac_try;; |
| 8064 | esac |
| 8065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8066 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8067 | ac_status=$? |
| 8068 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8069 | rm -f conftest.er1 |
| 8070 | cat conftest.err >&5 |
| 8071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8072 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8073 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8074 | { (case "(($ac_try" in |
| 8075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8076 | *) ac_try_echo=$ac_try;; |
| 8077 | esac |
| 8078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8079 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8080 | ac_status=$? |
| 8081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8082 | (exit $ac_status); }; } && |
| 8083 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8084 | { (case "(($ac_try" in |
| 8085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8086 | *) ac_try_echo=$ac_try;; |
| 8087 | esac |
| 8088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8089 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8090 | ac_status=$? |
| 8091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8092 | (exit $ac_status); }; }; then |
| 8093 | eval "$as_ac_Header=yes" |
| 8094 | else |
| 8095 | echo "$as_me: failed program was:" >&5 |
| 8096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8097 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8098 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8099 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8100 | |
| 8101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8102 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8103 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8104 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8105 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8106 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8107 | cat >>confdefs.h <<_ACEOF |
| 8108 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 8109 | _ACEOF |
| 8110 | |
| 8111 | ac_header_dirent=$ac_hdr; break |
| 8112 | fi |
| 8113 | |
| 8114 | done |
| 8115 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8116 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8117 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8118 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8119 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8121 | else |
| 8122 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8123 | cat >conftest.$ac_ext <<_ACEOF |
| 8124 | /* confdefs.h. */ |
| 8125 | _ACEOF |
| 8126 | cat confdefs.h >>conftest.$ac_ext |
| 8127 | cat >>conftest.$ac_ext <<_ACEOF |
| 8128 | /* end confdefs.h. */ |
| 8129 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8130 | /* Override any GCC internal prototype to avoid an error. |
| 8131 | Use char because int might match the return type of a GCC |
| 8132 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8133 | #ifdef __cplusplus |
| 8134 | extern "C" |
| 8135 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8136 | char opendir (); |
| 8137 | int |
| 8138 | main () |
| 8139 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8140 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8141 | ; |
| 8142 | return 0; |
| 8143 | } |
| 8144 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8145 | for ac_lib in '' dir; do |
| 8146 | if test -z "$ac_lib"; then |
| 8147 | ac_res="none required" |
| 8148 | else |
| 8149 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8150 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8151 | fi |
| 8152 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8153 | if { (ac_try="$ac_link" |
| 8154 | case "(($ac_try" in |
| 8155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8156 | *) ac_try_echo=$ac_try;; |
| 8157 | esac |
| 8158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8159 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8160 | ac_status=$? |
| 8161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8162 | rm -f conftest.er1 |
| 8163 | cat conftest.err >&5 |
| 8164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8165 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8166 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8167 | { (case "(($ac_try" in |
| 8168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8169 | *) ac_try_echo=$ac_try;; |
| 8170 | esac |
| 8171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8172 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8173 | ac_status=$? |
| 8174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8175 | (exit $ac_status); }; } && |
| 8176 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8177 | { (case "(($ac_try" in |
| 8178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8179 | *) ac_try_echo=$ac_try;; |
| 8180 | esac |
| 8181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8182 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8183 | ac_status=$? |
| 8184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8185 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8186 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8187 | else |
| 8188 | echo "$as_me: failed program was:" >&5 |
| 8189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8190 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8191 | |
| 8192 | fi |
| 8193 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8194 | rm -f core conftest.err conftest.$ac_objext \ |
| 8195 | conftest$ac_exeext |
| 8196 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8197 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8198 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8199 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8200 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8201 | : |
| 8202 | else |
| 8203 | ac_cv_search_opendir=no |
| 8204 | fi |
| 8205 | rm conftest.$ac_ext |
| 8206 | LIBS=$ac_func_search_save_LIBS |
| 8207 | fi |
| 8208 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8209 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8210 | ac_res=$ac_cv_search_opendir |
| 8211 | if test "$ac_res" != no; then |
| 8212 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8213 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8214 | fi |
| 8215 | |
| 8216 | else |
| 8217 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8218 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8219 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8221 | else |
| 8222 | ac_func_search_save_LIBS=$LIBS |
| 8223 | cat >conftest.$ac_ext <<_ACEOF |
| 8224 | /* confdefs.h. */ |
| 8225 | _ACEOF |
| 8226 | cat confdefs.h >>conftest.$ac_ext |
| 8227 | cat >>conftest.$ac_ext <<_ACEOF |
| 8228 | /* end confdefs.h. */ |
| 8229 | |
| 8230 | /* Override any GCC internal prototype to avoid an error. |
| 8231 | Use char because int might match the return type of a GCC |
| 8232 | builtin and then its argument prototype would still apply. */ |
| 8233 | #ifdef __cplusplus |
| 8234 | extern "C" |
| 8235 | #endif |
| 8236 | char opendir (); |
| 8237 | int |
| 8238 | main () |
| 8239 | { |
| 8240 | return opendir (); |
| 8241 | ; |
| 8242 | return 0; |
| 8243 | } |
| 8244 | _ACEOF |
| 8245 | for ac_lib in '' x; do |
| 8246 | if test -z "$ac_lib"; then |
| 8247 | ac_res="none required" |
| 8248 | else |
| 8249 | ac_res=-l$ac_lib |
| 8250 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8251 | fi |
| 8252 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8253 | if { (ac_try="$ac_link" |
| 8254 | case "(($ac_try" in |
| 8255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8256 | *) ac_try_echo=$ac_try;; |
| 8257 | esac |
| 8258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8259 | (eval "$ac_link") 2>conftest.er1 |
| 8260 | ac_status=$? |
| 8261 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8262 | rm -f conftest.er1 |
| 8263 | cat conftest.err >&5 |
| 8264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8265 | (exit $ac_status); } && |
| 8266 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8267 | { (case "(($ac_try" in |
| 8268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8269 | *) ac_try_echo=$ac_try;; |
| 8270 | esac |
| 8271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8272 | (eval "$ac_try") 2>&5 |
| 8273 | ac_status=$? |
| 8274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8275 | (exit $ac_status); }; } && |
| 8276 | { ac_try='test -s conftest$ac_exeext' |
| 8277 | { (case "(($ac_try" in |
| 8278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8279 | *) ac_try_echo=$ac_try;; |
| 8280 | esac |
| 8281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8282 | (eval "$ac_try") 2>&5 |
| 8283 | ac_status=$? |
| 8284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8285 | (exit $ac_status); }; }; then |
| 8286 | ac_cv_search_opendir=$ac_res |
| 8287 | else |
| 8288 | echo "$as_me: failed program was:" >&5 |
| 8289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8290 | |
| 8291 | |
| 8292 | fi |
| 8293 | |
| 8294 | rm -f core conftest.err conftest.$ac_objext \ |
| 8295 | conftest$ac_exeext |
| 8296 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8297 | break |
| 8298 | fi |
| 8299 | done |
| 8300 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8301 | : |
| 8302 | else |
| 8303 | ac_cv_search_opendir=no |
| 8304 | fi |
| 8305 | rm conftest.$ac_ext |
| 8306 | LIBS=$ac_func_search_save_LIBS |
| 8307 | fi |
| 8308 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8309 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8310 | ac_res=$ac_cv_search_opendir |
| 8311 | if test "$ac_res" != no; then |
| 8312 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8313 | |
| 8314 | fi |
| 8315 | |
| 8316 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8317 | |
| 8318 | |
| 8319 | for ac_header in dlfcn.h |
| 8320 | do |
| 8321 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8322 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8323 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8324 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8325 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8327 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8328 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8329 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8330 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8331 | else |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8332 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8333 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8334 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8335 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8336 | /* confdefs.h. */ |
| 8337 | _ACEOF |
| 8338 | cat confdefs.h >>conftest.$ac_ext |
| 8339 | cat >>conftest.$ac_ext <<_ACEOF |
| 8340 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8341 | $ac_includes_default |
| 8342 | #include <$ac_header> |
| 8343 | _ACEOF |
| 8344 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8345 | if { (ac_try="$ac_compile" |
| 8346 | case "(($ac_try" in |
| 8347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8348 | *) ac_try_echo=$ac_try;; |
| 8349 | esac |
| 8350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8351 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8352 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8354 | rm -f conftest.er1 |
| 8355 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8357 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8358 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8359 | { (case "(($ac_try" in |
| 8360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8361 | *) ac_try_echo=$ac_try;; |
| 8362 | esac |
| 8363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8364 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8365 | ac_status=$? |
| 8366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8367 | (exit $ac_status); }; } && |
| 8368 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8369 | { (case "(($ac_try" in |
| 8370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8371 | *) ac_try_echo=$ac_try;; |
| 8372 | esac |
| 8373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8374 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8375 | ac_status=$? |
| 8376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8377 | (exit $ac_status); }; }; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8378 | ac_header_compiler=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8379 | else |
| 8380 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8382 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8383 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8384 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8385 | |
| 8386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8387 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8388 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8389 | |
| 8390 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8391 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8392 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8393 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8394 | /* confdefs.h. */ |
| 8395 | _ACEOF |
| 8396 | cat confdefs.h >>conftest.$ac_ext |
| 8397 | cat >>conftest.$ac_ext <<_ACEOF |
| 8398 | /* end confdefs.h. */ |
| 8399 | #include <$ac_header> |
| 8400 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8401 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8402 | case "(($ac_try" in |
| 8403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8404 | *) ac_try_echo=$ac_try;; |
| 8405 | esac |
| 8406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8407 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8408 | ac_status=$? |
| 8409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8410 | rm -f conftest.er1 |
| 8411 | cat conftest.err >&5 |
| 8412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8413 | (exit $ac_status); } >/dev/null; then |
| 8414 | if test -s conftest.err; then |
| 8415 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8416 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8417 | else |
| 8418 | ac_cpp_err= |
| 8419 | fi |
| 8420 | else |
| 8421 | ac_cpp_err=yes |
| 8422 | fi |
| 8423 | if test -z "$ac_cpp_err"; then |
| 8424 | ac_header_preproc=yes |
| 8425 | else |
| 8426 | echo "$as_me: failed program was:" >&5 |
| 8427 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8428 | |
| 8429 | ac_header_preproc=no |
| 8430 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8431 | |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8432 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8433 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8434 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8435 | |
| 8436 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8437 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8438 | yes:no: ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8439 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8440 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8441 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8442 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8443 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8444 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8445 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8446 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8447 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8448 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8449 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8450 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8451 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8452 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8453 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8454 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8455 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8456 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8457 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8458 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8459 | ## ----------------------------------- ## |
| 8460 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 8461 | ## ----------------------------------- ## |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8462 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8463 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8464 | ;; |
| 8465 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8466 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8467 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8468 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8470 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8471 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8472 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8473 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8474 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8475 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8476 | |
| 8477 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8478 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8479 | cat >>confdefs.h <<_ACEOF |
| 8480 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8481 | _ACEOF |
| 8482 | |
| 8483 | fi |
| 8484 | |
| 8485 | done |
| 8486 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8487 | # Check whether --enable-ltdl-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8488 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8489 | enableval=$enable_ltdl_install; |
| 8490 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8491 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8492 | |
| 8493 | |
| 8494 | |
| 8495 | if test x"${enable_ltdl_install-no}" != xno; then |
| 8496 | INSTALL_LTDL_TRUE= |
| 8497 | INSTALL_LTDL_FALSE='#' |
| 8498 | else |
| 8499 | INSTALL_LTDL_TRUE='#' |
| 8500 | INSTALL_LTDL_FALSE= |
| 8501 | fi |
| 8502 | |
| 8503 | |
| 8504 | |
| 8505 | if test x"${enable_ltdl_convenience-no}" != xno; then |
| 8506 | CONVENIENCE_LTDL_TRUE= |
| 8507 | CONVENIENCE_LTDL_FALSE='#' |
| 8508 | else |
| 8509 | CONVENIENCE_LTDL_TRUE='#' |
| 8510 | CONVENIENCE_LTDL_FALSE= |
| 8511 | fi |
| 8512 | |
| 8513 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8514 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8515 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8516 | library_names_spec= |
| 8517 | libname_spec='lib$name' |
| 8518 | soname_spec= |
| 8519 | shrext_cmds=".so" |
| 8520 | postinstall_cmds= |
| 8521 | postuninstall_cmds= |
| 8522 | finish_cmds= |
| 8523 | finish_eval= |
| 8524 | shlibpath_var= |
| 8525 | shlibpath_overrides_runpath=unknown |
| 8526 | version_type=none |
| 8527 | dynamic_linker="$host_os ld.so" |
| 8528 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8529 | if test "$GCC" = yes; then |
| 8530 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8531 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8532 | # if the path contains ";" then we assume it to be the separator |
| 8533 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8534 | # assumed that no part of a normal pathname contains ";" but that should |
| 8535 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8536 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8537 | else |
| 8538 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8539 | fi |
| 8540 | else |
| 8541 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8542 | fi |
| 8543 | need_lib_prefix=unknown |
| 8544 | hardcode_into_libs=no |
| 8545 | |
| 8546 | # when you set need_version to no, make sure it does not cause -set_version |
| 8547 | # flags to be left without arguments |
| 8548 | need_version=unknown |
| 8549 | |
| 8550 | case $host_os in |
| 8551 | aix3*) |
| 8552 | version_type=linux |
| 8553 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8554 | shlibpath_var=LIBPATH |
| 8555 | |
| 8556 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8557 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8558 | ;; |
| 8559 | |
| 8560 | aix4* | aix5*) |
| 8561 | version_type=linux |
| 8562 | need_lib_prefix=no |
| 8563 | need_version=no |
| 8564 | hardcode_into_libs=yes |
| 8565 | if test "$host_cpu" = ia64; then |
| 8566 | # AIX 5 supports IA64 |
| 8567 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8568 | shlibpath_var=LD_LIBRARY_PATH |
| 8569 | else |
| 8570 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8571 | # for dependence libraries. The import file would start with |
| 8572 | # the line `#! .'. This would cause the generated library to |
| 8573 | # depend on `.', always an invalid library. This was fixed in |
| 8574 | # development snapshots of GCC prior to 3.0. |
| 8575 | case $host_os in |
| 8576 | aix4 | aix4.[01] | aix4.[01].*) |
| 8577 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8578 | echo ' yes ' |
| 8579 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8580 | : |
| 8581 | else |
| 8582 | can_build_shared=no |
| 8583 | fi |
| 8584 | ;; |
| 8585 | esac |
| 8586 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8587 | # soname into executable. Probably we can add versioning support to |
| 8588 | # collect2, so additional links can be useful in future. |
| 8589 | if test "$aix_use_runtimelinking" = yes; then |
| 8590 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8591 | # instead of lib<name>.a to let people know that these are not |
| 8592 | # typical AIX shared libraries. |
| 8593 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8594 | else |
| 8595 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8596 | # and later when we are not doing run time linking. |
| 8597 | library_names_spec='${libname}${release}.a $libname.a' |
| 8598 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8599 | fi |
| 8600 | shlibpath_var=LIBPATH |
| 8601 | fi |
| 8602 | ;; |
| 8603 | |
| 8604 | amigaos*) |
| 8605 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8606 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8607 | 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' |
| 8608 | ;; |
| 8609 | |
| 8610 | beos*) |
| 8611 | library_names_spec='${libname}${shared_ext}' |
| 8612 | dynamic_linker="$host_os ld.so" |
| 8613 | shlibpath_var=LIBRARY_PATH |
| 8614 | ;; |
| 8615 | |
| 8616 | bsdi[45]*) |
| 8617 | version_type=linux |
| 8618 | need_version=no |
| 8619 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8620 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8621 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8622 | shlibpath_var=LD_LIBRARY_PATH |
| 8623 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8624 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8625 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8626 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8627 | # libtool to hard-code these into programs |
| 8628 | ;; |
| 8629 | |
| 8630 | cygwin* | mingw* | pw32*) |
| 8631 | version_type=windows |
| 8632 | shrext_cmds=".dll" |
| 8633 | need_version=no |
| 8634 | need_lib_prefix=no |
| 8635 | |
| 8636 | case $GCC,$host_os in |
| 8637 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 8638 | library_names_spec='$libname.dll.a' |
| 8639 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8640 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8641 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 8642 | dldir=$destdir/`dirname \$dlpath`~ |
| 8643 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8644 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 8645 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8646 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8647 | dlpath=$dir/\$dldll~ |
| 8648 | $rm \$dlpath' |
| 8649 | shlibpath_overrides_runpath=yes |
| 8650 | |
| 8651 | case $host_os in |
| 8652 | cygwin*) |
| 8653 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8654 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8655 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8656 | ;; |
| 8657 | mingw*) |
| 8658 | # MinGW DLLs use traditional 'lib' prefix |
| 8659 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8660 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8661 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 8662 | # It is most probably a Windows format PATH printed by |
| 8663 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8664 | # path with ; separators, and with drive letters. We can handle the |
| 8665 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8666 | # especially as we might pass files found there to a mingw objdump, |
| 8667 | # which wouldn't understand a cygwinified path. Ahh. |
| 8668 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8669 | else |
| 8670 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8671 | fi |
| 8672 | ;; |
| 8673 | pw32*) |
| 8674 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8675 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8676 | ;; |
| 8677 | esac |
| 8678 | ;; |
| 8679 | |
| 8680 | *) |
| 8681 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 8682 | ;; |
| 8683 | esac |
| 8684 | dynamic_linker='Win32 ld.exe' |
| 8685 | # FIXME: first we should search . and the directory the executable is in |
| 8686 | shlibpath_var=PATH |
| 8687 | ;; |
| 8688 | |
| 8689 | darwin* | rhapsody*) |
| 8690 | dynamic_linker="$host_os dyld" |
| 8691 | version_type=darwin |
| 8692 | need_lib_prefix=no |
| 8693 | need_version=no |
| 8694 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 8695 | soname_spec='${libname}${release}${major}$shared_ext' |
| 8696 | shlibpath_overrides_runpath=yes |
| 8697 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8698 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8699 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 8700 | if test "$GCC" = yes; then |
| 8701 | 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"` |
| 8702 | else |
| 8703 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 8704 | fi |
| 8705 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8706 | ;; |
| 8707 | |
| 8708 | dgux*) |
| 8709 | version_type=linux |
| 8710 | need_lib_prefix=no |
| 8711 | need_version=no |
| 8712 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8713 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8714 | shlibpath_var=LD_LIBRARY_PATH |
| 8715 | ;; |
| 8716 | |
| 8717 | freebsd1*) |
| 8718 | dynamic_linker=no |
| 8719 | ;; |
| 8720 | |
| 8721 | kfreebsd*-gnu) |
| 8722 | version_type=linux |
| 8723 | need_lib_prefix=no |
| 8724 | need_version=no |
| 8725 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8726 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8727 | shlibpath_var=LD_LIBRARY_PATH |
| 8728 | shlibpath_overrides_runpath=no |
| 8729 | hardcode_into_libs=yes |
| 8730 | dynamic_linker='GNU ld.so' |
| 8731 | ;; |
| 8732 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8733 | freebsd* | dragonfly*) |
| 8734 | # DragonFly does not have aout. When/if they implement a new |
| 8735 | # versioning mechanism, adjust this. |
| 8736 | if test -x /usr/bin/objformat; then |
| 8737 | objformat=`/usr/bin/objformat` |
| 8738 | else |
| 8739 | case $host_os in |
| 8740 | freebsd[123]*) objformat=aout ;; |
| 8741 | *) objformat=elf ;; |
| 8742 | esac |
| 8743 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8744 | version_type=freebsd-$objformat |
| 8745 | case $version_type in |
| 8746 | freebsd-elf*) |
| 8747 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8748 | need_version=no |
| 8749 | need_lib_prefix=no |
| 8750 | ;; |
| 8751 | freebsd-*) |
| 8752 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 8753 | need_version=yes |
| 8754 | ;; |
| 8755 | esac |
| 8756 | shlibpath_var=LD_LIBRARY_PATH |
| 8757 | case $host_os in |
| 8758 | freebsd2*) |
| 8759 | shlibpath_overrides_runpath=yes |
| 8760 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8761 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8762 | shlibpath_overrides_runpath=yes |
| 8763 | hardcode_into_libs=yes |
| 8764 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8765 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 8766 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8767 | shlibpath_overrides_runpath=no |
| 8768 | hardcode_into_libs=yes |
| 8769 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8770 | freebsd*) # from 4.6 on |
| 8771 | shlibpath_overrides_runpath=yes |
| 8772 | hardcode_into_libs=yes |
| 8773 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8774 | esac |
| 8775 | ;; |
| 8776 | |
| 8777 | gnu*) |
| 8778 | version_type=linux |
| 8779 | need_lib_prefix=no |
| 8780 | need_version=no |
| 8781 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 8782 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8783 | shlibpath_var=LD_LIBRARY_PATH |
| 8784 | hardcode_into_libs=yes |
| 8785 | ;; |
| 8786 | |
| 8787 | hpux9* | hpux10* | hpux11*) |
| 8788 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 8789 | # link against other versions. |
| 8790 | version_type=sunos |
| 8791 | need_lib_prefix=no |
| 8792 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8793 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8794 | ia64*) |
| 8795 | shrext_cmds='.so' |
| 8796 | hardcode_into_libs=yes |
| 8797 | dynamic_linker="$host_os dld.so" |
| 8798 | shlibpath_var=LD_LIBRARY_PATH |
| 8799 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8800 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8801 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8802 | if test "X$HPUX_IA64_MODE" = X32; then |
| 8803 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 8804 | else |
| 8805 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 8806 | fi |
| 8807 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8808 | ;; |
| 8809 | hppa*64*) |
| 8810 | shrext_cmds='.sl' |
| 8811 | hardcode_into_libs=yes |
| 8812 | dynamic_linker="$host_os dld.sl" |
| 8813 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 8814 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8815 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8816 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8817 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 8818 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8819 | ;; |
| 8820 | *) |
| 8821 | shrext_cmds='.sl' |
| 8822 | dynamic_linker="$host_os dld.sl" |
| 8823 | shlibpath_var=SHLIB_PATH |
| 8824 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 8825 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8826 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8827 | ;; |
| 8828 | esac |
| 8829 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 8830 | postinstall_cmds='chmod 555 $lib' |
| 8831 | ;; |
| 8832 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8833 | interix3*) |
| 8834 | version_type=linux |
| 8835 | need_lib_prefix=no |
| 8836 | need_version=no |
| 8837 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8838 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8839 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 8840 | shlibpath_var=LD_LIBRARY_PATH |
| 8841 | shlibpath_overrides_runpath=no |
| 8842 | hardcode_into_libs=yes |
| 8843 | ;; |
| 8844 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8845 | irix5* | irix6* | nonstopux*) |
| 8846 | case $host_os in |
| 8847 | nonstopux*) version_type=nonstopux ;; |
| 8848 | *) |
| 8849 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 8850 | version_type=linux |
| 8851 | else |
| 8852 | version_type=irix |
| 8853 | fi ;; |
| 8854 | esac |
| 8855 | need_lib_prefix=no |
| 8856 | need_version=no |
| 8857 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8858 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8859 | case $host_os in |
| 8860 | irix5* | nonstopux*) |
| 8861 | libsuff= shlibsuff= |
| 8862 | ;; |
| 8863 | *) |
| 8864 | case $LD in # libtool.m4 will add one of these switches to LD |
| 8865 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 8866 | libsuff= shlibsuff= libmagic=32-bit;; |
| 8867 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 8868 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 8869 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 8870 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 8871 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 8872 | esac |
| 8873 | ;; |
| 8874 | esac |
| 8875 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 8876 | shlibpath_overrides_runpath=no |
| 8877 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 8878 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 8879 | hardcode_into_libs=yes |
| 8880 | ;; |
| 8881 | |
| 8882 | # No shared lib support for Linux oldld, aout, or coff. |
| 8883 | linux*oldld* | linux*aout* | linux*coff*) |
| 8884 | dynamic_linker=no |
| 8885 | ;; |
| 8886 | |
| 8887 | # This must be Linux ELF. |
| 8888 | linux*) |
| 8889 | version_type=linux |
| 8890 | need_lib_prefix=no |
| 8891 | need_version=no |
| 8892 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8893 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8894 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 8895 | shlibpath_var=LD_LIBRARY_PATH |
| 8896 | shlibpath_overrides_runpath=no |
| 8897 | # This implies no fast_install, which is unacceptable. |
| 8898 | # Some rework will be needed to allow for fast_install |
| 8899 | # before this can be enabled. |
| 8900 | hardcode_into_libs=yes |
| 8901 | |
| 8902 | # Append ld.so.conf contents to the search path |
| 8903 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8904 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8905 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 8906 | fi |
| 8907 | |
| 8908 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 8909 | # powerpc, because MkLinux only supported shared libraries with the |
| 8910 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 8911 | # most powerpc-linux boxes support dynamic linking these days and |
| 8912 | # people can always --disable-shared, the test was removed, and we |
| 8913 | # assume the GNU/Linux dynamic linker is in use. |
| 8914 | dynamic_linker='GNU/Linux ld.so' |
| 8915 | ;; |
| 8916 | |
| 8917 | knetbsd*-gnu) |
| 8918 | version_type=linux |
| 8919 | need_lib_prefix=no |
| 8920 | need_version=no |
| 8921 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8922 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8923 | shlibpath_var=LD_LIBRARY_PATH |
| 8924 | shlibpath_overrides_runpath=no |
| 8925 | hardcode_into_libs=yes |
| 8926 | dynamic_linker='GNU ld.so' |
| 8927 | ;; |
| 8928 | |
| 8929 | netbsd*) |
| 8930 | version_type=sunos |
| 8931 | need_lib_prefix=no |
| 8932 | need_version=no |
| 8933 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 8934 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 8935 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8936 | dynamic_linker='NetBSD (a.out) ld.so' |
| 8937 | else |
| 8938 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8939 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8940 | dynamic_linker='NetBSD ld.elf_so' |
| 8941 | fi |
| 8942 | shlibpath_var=LD_LIBRARY_PATH |
| 8943 | shlibpath_overrides_runpath=yes |
| 8944 | hardcode_into_libs=yes |
| 8945 | ;; |
| 8946 | |
| 8947 | newsos6) |
| 8948 | version_type=linux |
| 8949 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8950 | shlibpath_var=LD_LIBRARY_PATH |
| 8951 | shlibpath_overrides_runpath=yes |
| 8952 | ;; |
| 8953 | |
| 8954 | nto-qnx*) |
| 8955 | version_type=linux |
| 8956 | need_lib_prefix=no |
| 8957 | need_version=no |
| 8958 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8959 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8960 | shlibpath_var=LD_LIBRARY_PATH |
| 8961 | shlibpath_overrides_runpath=yes |
| 8962 | ;; |
| 8963 | |
| 8964 | openbsd*) |
| 8965 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8966 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8967 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8968 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 8969 | case $host_os in |
| 8970 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 8971 | *) need_version=no ;; |
| 8972 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8973 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 8974 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8975 | shlibpath_var=LD_LIBRARY_PATH |
| 8976 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 8977 | case $host_os in |
| 8978 | openbsd2.[89] | openbsd2.[89].*) |
| 8979 | shlibpath_overrides_runpath=no |
| 8980 | ;; |
| 8981 | *) |
| 8982 | shlibpath_overrides_runpath=yes |
| 8983 | ;; |
| 8984 | esac |
| 8985 | else |
| 8986 | shlibpath_overrides_runpath=yes |
| 8987 | fi |
| 8988 | ;; |
| 8989 | |
| 8990 | os2*) |
| 8991 | libname_spec='$name' |
| 8992 | shrext_cmds=".dll" |
| 8993 | need_lib_prefix=no |
| 8994 | library_names_spec='$libname${shared_ext} $libname.a' |
| 8995 | dynamic_linker='OS/2 ld.exe' |
| 8996 | shlibpath_var=LIBPATH |
| 8997 | ;; |
| 8998 | |
| 8999 | osf3* | osf4* | osf5*) |
| 9000 | version_type=osf |
| 9001 | need_lib_prefix=no |
| 9002 | need_version=no |
| 9003 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9004 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9005 | shlibpath_var=LD_LIBRARY_PATH |
| 9006 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9007 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9008 | ;; |
| 9009 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9010 | solaris*) |
| 9011 | version_type=linux |
| 9012 | need_lib_prefix=no |
| 9013 | need_version=no |
| 9014 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9015 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9016 | shlibpath_var=LD_LIBRARY_PATH |
| 9017 | shlibpath_overrides_runpath=yes |
| 9018 | hardcode_into_libs=yes |
| 9019 | # ldd complains unless libraries are executable |
| 9020 | postinstall_cmds='chmod +x $lib' |
| 9021 | ;; |
| 9022 | |
| 9023 | sunos4*) |
| 9024 | version_type=sunos |
| 9025 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9026 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9027 | shlibpath_var=LD_LIBRARY_PATH |
| 9028 | shlibpath_overrides_runpath=yes |
| 9029 | if test "$with_gnu_ld" = yes; then |
| 9030 | need_lib_prefix=no |
| 9031 | fi |
| 9032 | need_version=yes |
| 9033 | ;; |
| 9034 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9035 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9036 | version_type=linux |
| 9037 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9038 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9039 | shlibpath_var=LD_LIBRARY_PATH |
| 9040 | case $host_vendor in |
| 9041 | sni) |
| 9042 | shlibpath_overrides_runpath=no |
| 9043 | need_lib_prefix=no |
| 9044 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9045 | runpath_var=LD_RUN_PATH |
| 9046 | ;; |
| 9047 | siemens) |
| 9048 | need_lib_prefix=no |
| 9049 | ;; |
| 9050 | motorola) |
| 9051 | need_lib_prefix=no |
| 9052 | need_version=no |
| 9053 | shlibpath_overrides_runpath=no |
| 9054 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9055 | ;; |
| 9056 | esac |
| 9057 | ;; |
| 9058 | |
| 9059 | sysv4*MP*) |
| 9060 | if test -d /usr/nec ;then |
| 9061 | version_type=linux |
| 9062 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9063 | soname_spec='$libname${shared_ext}.$major' |
| 9064 | shlibpath_var=LD_LIBRARY_PATH |
| 9065 | fi |
| 9066 | ;; |
| 9067 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9068 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9069 | version_type=freebsd-elf |
| 9070 | need_lib_prefix=no |
| 9071 | need_version=no |
| 9072 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9073 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9074 | shlibpath_var=LD_LIBRARY_PATH |
| 9075 | hardcode_into_libs=yes |
| 9076 | if test "$with_gnu_ld" = yes; then |
| 9077 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9078 | shlibpath_overrides_runpath=no |
| 9079 | else |
| 9080 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9081 | shlibpath_overrides_runpath=yes |
| 9082 | case $host_os in |
| 9083 | sco3.2v5*) |
| 9084 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9085 | ;; |
| 9086 | esac |
| 9087 | fi |
| 9088 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9089 | ;; |
| 9090 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9091 | uts4*) |
| 9092 | version_type=linux |
| 9093 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9094 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9095 | shlibpath_var=LD_LIBRARY_PATH |
| 9096 | ;; |
| 9097 | |
| 9098 | *) |
| 9099 | dynamic_linker=no |
| 9100 | ;; |
| 9101 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9102 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9103 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9104 | test "$dynamic_linker" = no && can_build_shared=no |
| 9105 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9106 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9107 | if test "$GCC" = yes; then |
| 9108 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9109 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9110 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9111 | |
| 9112 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9113 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9114 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9116 | else |
| 9117 | |
| 9118 | module=yes |
| 9119 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9120 | |
| 9121 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9122 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9123 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9124 | if test -n "$libltdl_cv_shlibext"; then |
| 9125 | |
| 9126 | cat >>confdefs.h <<_ACEOF |
| 9127 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9128 | _ACEOF |
| 9129 | |
| 9130 | fi |
| 9131 | |
| 9132 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9133 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9134 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9135 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9137 | else |
| 9138 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9139 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9140 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9141 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9142 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9143 | |
| 9144 | cat >>confdefs.h <<_ACEOF |
| 9145 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9146 | _ACEOF |
| 9147 | |
| 9148 | fi |
| 9149 | |
| 9150 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9151 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9152 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9153 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9155 | else |
| 9156 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9157 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9158 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 9159 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9160 | if test -n "$libltdl_cv_sys_search_path"; then |
| 9161 | sys_search_path= |
| 9162 | for dir in $libltdl_cv_sys_search_path; do |
| 9163 | if test -z "$sys_search_path"; then |
| 9164 | sys_search_path="$dir" |
| 9165 | else |
| 9166 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 9167 | fi |
| 9168 | done |
| 9169 | |
| 9170 | cat >>confdefs.h <<_ACEOF |
| 9171 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 9172 | _ACEOF |
| 9173 | |
| 9174 | fi |
| 9175 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9176 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 9177 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9178 | if test "${libltdl_cv_objdir+set}" = set; then |
| 9179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9180 | else |
| 9181 | libltdl_cv_objdir="$objdir" |
| 9182 | if test -n "$objdir"; then |
| 9183 | : |
| 9184 | else |
| 9185 | rm -f .libs 2>/dev/null |
| 9186 | mkdir .libs 2>/dev/null |
| 9187 | if test -d .libs; then |
| 9188 | libltdl_cv_objdir=.libs |
| 9189 | else |
| 9190 | # MS-DOS does not allow filenames that begin with a dot. |
| 9191 | libltdl_cv_objdir=_libs |
| 9192 | fi |
| 9193 | rmdir .libs 2>/dev/null |
| 9194 | fi |
| 9195 | |
| 9196 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9197 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 9198 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9199 | |
| 9200 | cat >>confdefs.h <<_ACEOF |
| 9201 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 9202 | _ACEOF |
| 9203 | |
| 9204 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9205 | |
| 9206 | |
| 9207 | |
| 9208 | |
| 9209 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9210 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 9211 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9212 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 9213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9214 | else |
| 9215 | |
| 9216 | # These are sane defaults that work on at least a few old systems. |
| 9217 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9218 | |
| 9219 | # Character class describing NM global symbol codes. |
| 9220 | symcode='[BCDEGRST]' |
| 9221 | |
| 9222 | # Regexp to match symbols that can be accessed directly from C. |
| 9223 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9224 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9225 | # Transform an extracted symbol line into a proper C declaration |
| 9226 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 9227 | |
| 9228 | # Transform an extracted symbol line into symbol name and symbol address |
| 9229 | 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'" |
| 9230 | |
| 9231 | # Define system-specific variables. |
| 9232 | case $host_os in |
| 9233 | aix*) |
| 9234 | symcode='[BCDT]' |
| 9235 | ;; |
| 9236 | cygwin* | mingw* | pw32*) |
| 9237 | symcode='[ABCDGISTW]' |
| 9238 | ;; |
| 9239 | hpux*) # Its linker distinguishes data from code symbols |
| 9240 | if test "$host_cpu" = ia64; then |
| 9241 | symcode='[ABCDEGRST]' |
| 9242 | fi |
| 9243 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9244 | 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'" |
| 9245 | ;; |
| 9246 | linux*) |
| 9247 | if test "$host_cpu" = ia64; then |
| 9248 | symcode='[ABCDGIRSTW]' |
| 9249 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9250 | 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'" |
| 9251 | fi |
| 9252 | ;; |
| 9253 | irix* | nonstopux*) |
| 9254 | symcode='[BCDEGRST]' |
| 9255 | ;; |
| 9256 | osf*) |
| 9257 | symcode='[BCDEGQRST]' |
| 9258 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9259 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9260 | symcode='[BDRT]' |
| 9261 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9262 | sco3.2v5*) |
| 9263 | symcode='[DT]' |
| 9264 | ;; |
| 9265 | sysv4.2uw2*) |
| 9266 | symcode='[DT]' |
| 9267 | ;; |
| 9268 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9269 | symcode='[ABDT]' |
| 9270 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9271 | sysv4) |
| 9272 | symcode='[DFNSTU]' |
| 9273 | ;; |
| 9274 | esac |
| 9275 | |
| 9276 | # Handle CRLF in mingw tool chain |
| 9277 | opt_cr= |
| 9278 | case $build_os in |
| 9279 | mingw*) |
| 9280 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9281 | ;; |
| 9282 | esac |
| 9283 | |
| 9284 | # If we're using GNU nm, then use its standard symbol codes. |
| 9285 | case `$NM -V 2>&1` in |
| 9286 | *GNU* | *'with BFD'*) |
| 9287 | symcode='[ABCDGIRSTW]' ;; |
| 9288 | esac |
| 9289 | |
| 9290 | # Try without a prefix undercore, then with it. |
| 9291 | for ac_symprfx in "" "_"; do |
| 9292 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9293 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9294 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9295 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9296 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9297 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9298 | |
| 9299 | # Check to see that the pipe works correctly. |
| 9300 | pipe_works=no |
| 9301 | |
| 9302 | rm -f conftest* |
| 9303 | cat > conftest.$ac_ext <<EOF |
| 9304 | #ifdef __cplusplus |
| 9305 | extern "C" { |
| 9306 | #endif |
| 9307 | char nm_test_var; |
| 9308 | void nm_test_func(){} |
| 9309 | #ifdef __cplusplus |
| 9310 | } |
| 9311 | #endif |
| 9312 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9313 | EOF |
| 9314 | |
| 9315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9316 | (eval $ac_compile) 2>&5 |
| 9317 | ac_status=$? |
| 9318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9319 | (exit $ac_status); }; then |
| 9320 | # Now try to grab the symbols. |
| 9321 | nlist=conftest.nm |
| 9322 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 9323 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 9324 | ac_status=$? |
| 9325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9326 | (exit $ac_status); } && test -s "$nlist"; then |
| 9327 | # Try sorting and uniquifying the output. |
| 9328 | if sort "$nlist" | uniq > "$nlist"T; then |
| 9329 | mv -f "$nlist"T "$nlist" |
| 9330 | else |
| 9331 | rm -f "$nlist"T |
| 9332 | fi |
| 9333 | |
| 9334 | # Make sure that we snagged all the symbols we need. |
| 9335 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 9336 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 9337 | cat <<EOF > conftest.$ac_ext |
| 9338 | #ifdef __cplusplus |
| 9339 | extern "C" { |
| 9340 | #endif |
| 9341 | |
| 9342 | EOF |
| 9343 | # Now generate the symbol file. |
| 9344 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 9345 | |
| 9346 | cat <<EOF >> conftest.$ac_ext |
| 9347 | #if defined (__STDC__) && __STDC__ |
| 9348 | # define lt_ptr_t void * |
| 9349 | #else |
| 9350 | # define lt_ptr_t char * |
| 9351 | # define const |
| 9352 | #endif |
| 9353 | |
| 9354 | /* The mapping between symbol names and symbols. */ |
| 9355 | const struct { |
| 9356 | const char *name; |
| 9357 | lt_ptr_t address; |
| 9358 | } |
| 9359 | lt_preloaded_symbols[] = |
| 9360 | { |
| 9361 | EOF |
| 9362 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 9363 | cat <<\EOF >> conftest.$ac_ext |
| 9364 | {0, (lt_ptr_t) 0} |
| 9365 | }; |
| 9366 | |
| 9367 | #ifdef __cplusplus |
| 9368 | } |
| 9369 | #endif |
| 9370 | EOF |
| 9371 | # Now try linking the two files. |
| 9372 | mv conftest.$ac_objext conftstm.$ac_objext |
| 9373 | lt_save_LIBS="$LIBS" |
| 9374 | lt_save_CFLAGS="$CFLAGS" |
| 9375 | LIBS="conftstm.$ac_objext" |
| 9376 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 9377 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9378 | (eval $ac_link) 2>&5 |
| 9379 | ac_status=$? |
| 9380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9381 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 9382 | pipe_works=yes |
| 9383 | fi |
| 9384 | LIBS="$lt_save_LIBS" |
| 9385 | CFLAGS="$lt_save_CFLAGS" |
| 9386 | else |
| 9387 | echo "cannot find nm_test_func in $nlist" >&5 |
| 9388 | fi |
| 9389 | else |
| 9390 | echo "cannot find nm_test_var in $nlist" >&5 |
| 9391 | fi |
| 9392 | else |
| 9393 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 9394 | fi |
| 9395 | else |
| 9396 | echo "$progname: failed program was:" >&5 |
| 9397 | cat conftest.$ac_ext >&5 |
| 9398 | fi |
| 9399 | rm -f conftest* conftst* |
| 9400 | |
| 9401 | # Do not use the global_symbol_pipe unless it works. |
| 9402 | if test "$pipe_works" = yes; then |
| 9403 | break |
| 9404 | else |
| 9405 | lt_cv_sys_global_symbol_pipe= |
| 9406 | fi |
| 9407 | done |
| 9408 | |
| 9409 | fi |
| 9410 | |
| 9411 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 9412 | lt_cv_sys_global_symbol_to_cdecl= |
| 9413 | fi |
| 9414 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9415 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 9416 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9417 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9418 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 9419 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9420 | fi |
| 9421 | |
| 9422 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9423 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 9424 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9425 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 9426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9427 | else |
| 9428 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 9429 | libltdl_cv_preloaded_symbols=yes |
| 9430 | else |
| 9431 | libltdl_cv_preloaded_symbols=no |
| 9432 | fi |
| 9433 | |
| 9434 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9435 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 9436 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9437 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 9438 | |
| 9439 | cat >>confdefs.h <<\_ACEOF |
| 9440 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 9441 | _ACEOF |
| 9442 | |
| 9443 | fi |
| 9444 | |
| 9445 | LIBADD_DL= |
| 9446 | |
| 9447 | ac_ext=c |
| 9448 | ac_cpp='$CPP $CPPFLAGS' |
| 9449 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9450 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9451 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9452 | |
| 9453 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9454 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9455 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9456 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9458 | else |
| 9459 | cat >conftest.$ac_ext <<_ACEOF |
| 9460 | /* confdefs.h. */ |
| 9461 | _ACEOF |
| 9462 | cat confdefs.h >>conftest.$ac_ext |
| 9463 | cat >>conftest.$ac_ext <<_ACEOF |
| 9464 | /* end confdefs.h. */ |
| 9465 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9466 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9467 | #define shl_load innocuous_shl_load |
| 9468 | |
| 9469 | /* System header to define __stub macros and hopefully few prototypes, |
| 9470 | which can conflict with char shl_load (); below. |
| 9471 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9472 | <limits.h> exists even on freestanding compilers. */ |
| 9473 | |
| 9474 | #ifdef __STDC__ |
| 9475 | # include <limits.h> |
| 9476 | #else |
| 9477 | # include <assert.h> |
| 9478 | #endif |
| 9479 | |
| 9480 | #undef shl_load |
| 9481 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9482 | /* Override any GCC internal prototype to avoid an error. |
| 9483 | Use char because int might match the return type of a GCC |
| 9484 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9485 | #ifdef __cplusplus |
| 9486 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9487 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9488 | char shl_load (); |
| 9489 | /* The GNU C library defines this for functions which it implements |
| 9490 | to always fail with ENOSYS. Some functions are actually named |
| 9491 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9492 | #if defined __stub_shl_load || defined __stub___shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9493 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9494 | #endif |
| 9495 | |
| 9496 | int |
| 9497 | main () |
| 9498 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9499 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9500 | ; |
| 9501 | return 0; |
| 9502 | } |
| 9503 | _ACEOF |
| 9504 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9505 | if { (ac_try="$ac_link" |
| 9506 | case "(($ac_try" in |
| 9507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9508 | *) ac_try_echo=$ac_try;; |
| 9509 | esac |
| 9510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9511 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9512 | ac_status=$? |
| 9513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9514 | rm -f conftest.er1 |
| 9515 | cat conftest.err >&5 |
| 9516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9517 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9518 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9519 | { (case "(($ac_try" in |
| 9520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9521 | *) ac_try_echo=$ac_try;; |
| 9522 | esac |
| 9523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9524 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9525 | ac_status=$? |
| 9526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9527 | (exit $ac_status); }; } && |
| 9528 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9529 | { (case "(($ac_try" in |
| 9530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9531 | *) ac_try_echo=$ac_try;; |
| 9532 | esac |
| 9533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9534 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9535 | ac_status=$? |
| 9536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9537 | (exit $ac_status); }; }; then |
| 9538 | ac_cv_func_shl_load=yes |
| 9539 | else |
| 9540 | echo "$as_me: failed program was:" >&5 |
| 9541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9542 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9543 | ac_cv_func_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9544 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9545 | |
| 9546 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9547 | conftest$ac_exeext conftest.$ac_ext |
| 9548 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9549 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9550 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9551 | if test $ac_cv_func_shl_load = yes; then |
| 9552 | |
| 9553 | cat >>confdefs.h <<\_ACEOF |
| 9554 | #define HAVE_SHL_LOAD 1 |
| 9555 | _ACEOF |
| 9556 | |
| 9557 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9558 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9559 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9560 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9562 | else |
| 9563 | ac_check_lib_save_LIBS=$LIBS |
| 9564 | LIBS="-ldld $LIBS" |
| 9565 | cat >conftest.$ac_ext <<_ACEOF |
| 9566 | /* confdefs.h. */ |
| 9567 | _ACEOF |
| 9568 | cat confdefs.h >>conftest.$ac_ext |
| 9569 | cat >>conftest.$ac_ext <<_ACEOF |
| 9570 | /* end confdefs.h. */ |
| 9571 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9572 | /* Override any GCC internal prototype to avoid an error. |
| 9573 | Use char because int might match the return type of a GCC |
| 9574 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9575 | #ifdef __cplusplus |
| 9576 | extern "C" |
| 9577 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9578 | char shl_load (); |
| 9579 | int |
| 9580 | main () |
| 9581 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9582 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9583 | ; |
| 9584 | return 0; |
| 9585 | } |
| 9586 | _ACEOF |
| 9587 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9588 | if { (ac_try="$ac_link" |
| 9589 | case "(($ac_try" in |
| 9590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9591 | *) ac_try_echo=$ac_try;; |
| 9592 | esac |
| 9593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9594 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9595 | ac_status=$? |
| 9596 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9597 | rm -f conftest.er1 |
| 9598 | cat conftest.err >&5 |
| 9599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9600 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9601 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9602 | { (case "(($ac_try" in |
| 9603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9604 | *) ac_try_echo=$ac_try;; |
| 9605 | esac |
| 9606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9607 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9608 | ac_status=$? |
| 9609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9610 | (exit $ac_status); }; } && |
| 9611 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9612 | { (case "(($ac_try" in |
| 9613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9614 | *) ac_try_echo=$ac_try;; |
| 9615 | esac |
| 9616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9617 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9618 | ac_status=$? |
| 9619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9620 | (exit $ac_status); }; }; then |
| 9621 | ac_cv_lib_dld_shl_load=yes |
| 9622 | else |
| 9623 | echo "$as_me: failed program was:" >&5 |
| 9624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9625 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9626 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9627 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9628 | |
| 9629 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9630 | conftest$ac_exeext conftest.$ac_ext |
| 9631 | LIBS=$ac_check_lib_save_LIBS |
| 9632 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9633 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9634 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9635 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9636 | |
| 9637 | cat >>confdefs.h <<\_ACEOF |
| 9638 | #define HAVE_SHL_LOAD 1 |
| 9639 | _ACEOF |
| 9640 | |
| 9641 | LIBADD_DL="$LIBADD_DL -ldld" |
| 9642 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9643 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9644 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9645 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9647 | else |
| 9648 | ac_check_lib_save_LIBS=$LIBS |
| 9649 | LIBS="-ldl $LIBS" |
| 9650 | cat >conftest.$ac_ext <<_ACEOF |
| 9651 | /* confdefs.h. */ |
| 9652 | _ACEOF |
| 9653 | cat confdefs.h >>conftest.$ac_ext |
| 9654 | cat >>conftest.$ac_ext <<_ACEOF |
| 9655 | /* end confdefs.h. */ |
| 9656 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9657 | /* Override any GCC internal prototype to avoid an error. |
| 9658 | Use char because int might match the return type of a GCC |
| 9659 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9660 | #ifdef __cplusplus |
| 9661 | extern "C" |
| 9662 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9663 | char dlopen (); |
| 9664 | int |
| 9665 | main () |
| 9666 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9667 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9668 | ; |
| 9669 | return 0; |
| 9670 | } |
| 9671 | _ACEOF |
| 9672 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9673 | if { (ac_try="$ac_link" |
| 9674 | case "(($ac_try" in |
| 9675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9676 | *) ac_try_echo=$ac_try;; |
| 9677 | esac |
| 9678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9679 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9680 | ac_status=$? |
| 9681 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9682 | rm -f conftest.er1 |
| 9683 | cat conftest.err >&5 |
| 9684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9685 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9686 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9687 | { (case "(($ac_try" in |
| 9688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9689 | *) ac_try_echo=$ac_try;; |
| 9690 | esac |
| 9691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9692 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9693 | ac_status=$? |
| 9694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9695 | (exit $ac_status); }; } && |
| 9696 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9697 | { (case "(($ac_try" in |
| 9698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9699 | *) ac_try_echo=$ac_try;; |
| 9700 | esac |
| 9701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9702 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9703 | ac_status=$? |
| 9704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9705 | (exit $ac_status); }; }; then |
| 9706 | ac_cv_lib_dl_dlopen=yes |
| 9707 | else |
| 9708 | echo "$as_me: failed program was:" >&5 |
| 9709 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9710 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9711 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9712 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9713 | |
| 9714 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9715 | conftest$ac_exeext conftest.$ac_ext |
| 9716 | LIBS=$ac_check_lib_save_LIBS |
| 9717 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9718 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9719 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9720 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9721 | |
| 9722 | cat >>confdefs.h <<\_ACEOF |
| 9723 | #define HAVE_LIBDL 1 |
| 9724 | _ACEOF |
| 9725 | |
| 9726 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 9727 | else |
| 9728 | cat >conftest.$ac_ext <<_ACEOF |
| 9729 | /* confdefs.h. */ |
| 9730 | _ACEOF |
| 9731 | cat confdefs.h >>conftest.$ac_ext |
| 9732 | cat >>conftest.$ac_ext <<_ACEOF |
| 9733 | /* end confdefs.h. */ |
| 9734 | #if HAVE_DLFCN_H |
| 9735 | # include <dlfcn.h> |
| 9736 | #endif |
| 9737 | |
| 9738 | int |
| 9739 | main () |
| 9740 | { |
| 9741 | dlopen(0, 0); |
| 9742 | ; |
| 9743 | return 0; |
| 9744 | } |
| 9745 | _ACEOF |
| 9746 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9747 | if { (ac_try="$ac_link" |
| 9748 | case "(($ac_try" in |
| 9749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9750 | *) ac_try_echo=$ac_try;; |
| 9751 | esac |
| 9752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9753 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9754 | ac_status=$? |
| 9755 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9756 | rm -f conftest.er1 |
| 9757 | cat conftest.err >&5 |
| 9758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9759 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9760 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9761 | { (case "(($ac_try" in |
| 9762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9763 | *) ac_try_echo=$ac_try;; |
| 9764 | esac |
| 9765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9766 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9767 | ac_status=$? |
| 9768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9769 | (exit $ac_status); }; } && |
| 9770 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9771 | { (case "(($ac_try" in |
| 9772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9773 | *) ac_try_echo=$ac_try;; |
| 9774 | esac |
| 9775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9776 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9777 | ac_status=$? |
| 9778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9779 | (exit $ac_status); }; }; then |
| 9780 | |
| 9781 | cat >>confdefs.h <<\_ACEOF |
| 9782 | #define HAVE_LIBDL 1 |
| 9783 | _ACEOF |
| 9784 | libltdl_cv_func_dlopen="yes" |
| 9785 | else |
| 9786 | echo "$as_me: failed program was:" >&5 |
| 9787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9788 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9789 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 9790 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9791 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 9792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9793 | else |
| 9794 | ac_check_lib_save_LIBS=$LIBS |
| 9795 | LIBS="-lsvld $LIBS" |
| 9796 | cat >conftest.$ac_ext <<_ACEOF |
| 9797 | /* confdefs.h. */ |
| 9798 | _ACEOF |
| 9799 | cat confdefs.h >>conftest.$ac_ext |
| 9800 | cat >>conftest.$ac_ext <<_ACEOF |
| 9801 | /* end confdefs.h. */ |
| 9802 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9803 | /* Override any GCC internal prototype to avoid an error. |
| 9804 | Use char because int might match the return type of a GCC |
| 9805 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9806 | #ifdef __cplusplus |
| 9807 | extern "C" |
| 9808 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9809 | char dlopen (); |
| 9810 | int |
| 9811 | main () |
| 9812 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9813 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9814 | ; |
| 9815 | return 0; |
| 9816 | } |
| 9817 | _ACEOF |
| 9818 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9819 | if { (ac_try="$ac_link" |
| 9820 | case "(($ac_try" in |
| 9821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9822 | *) ac_try_echo=$ac_try;; |
| 9823 | esac |
| 9824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9825 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9826 | ac_status=$? |
| 9827 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9828 | rm -f conftest.er1 |
| 9829 | cat conftest.err >&5 |
| 9830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9831 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9832 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9833 | { (case "(($ac_try" in |
| 9834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9835 | *) ac_try_echo=$ac_try;; |
| 9836 | esac |
| 9837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9838 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9839 | ac_status=$? |
| 9840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9841 | (exit $ac_status); }; } && |
| 9842 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9843 | { (case "(($ac_try" in |
| 9844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9845 | *) ac_try_echo=$ac_try;; |
| 9846 | esac |
| 9847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9848 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9849 | ac_status=$? |
| 9850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9851 | (exit $ac_status); }; }; then |
| 9852 | ac_cv_lib_svld_dlopen=yes |
| 9853 | else |
| 9854 | echo "$as_me: failed program was:" >&5 |
| 9855 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9856 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9857 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9858 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9859 | |
| 9860 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9861 | conftest$ac_exeext conftest.$ac_ext |
| 9862 | LIBS=$ac_check_lib_save_LIBS |
| 9863 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9864 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 9865 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9866 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 9867 | |
| 9868 | cat >>confdefs.h <<\_ACEOF |
| 9869 | #define HAVE_LIBDL 1 |
| 9870 | _ACEOF |
| 9871 | |
| 9872 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 9873 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9874 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 9875 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9876 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 9877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9878 | else |
| 9879 | ac_check_lib_save_LIBS=$LIBS |
| 9880 | LIBS="-ldld $LIBS" |
| 9881 | cat >conftest.$ac_ext <<_ACEOF |
| 9882 | /* confdefs.h. */ |
| 9883 | _ACEOF |
| 9884 | cat confdefs.h >>conftest.$ac_ext |
| 9885 | cat >>conftest.$ac_ext <<_ACEOF |
| 9886 | /* end confdefs.h. */ |
| 9887 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9888 | /* Override any GCC internal prototype to avoid an error. |
| 9889 | Use char because int might match the return type of a GCC |
| 9890 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9891 | #ifdef __cplusplus |
| 9892 | extern "C" |
| 9893 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9894 | char dld_link (); |
| 9895 | int |
| 9896 | main () |
| 9897 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9898 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9899 | ; |
| 9900 | return 0; |
| 9901 | } |
| 9902 | _ACEOF |
| 9903 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9904 | if { (ac_try="$ac_link" |
| 9905 | case "(($ac_try" in |
| 9906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9907 | *) ac_try_echo=$ac_try;; |
| 9908 | esac |
| 9909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9910 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9911 | ac_status=$? |
| 9912 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9913 | rm -f conftest.er1 |
| 9914 | cat conftest.err >&5 |
| 9915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9916 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9917 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9918 | { (case "(($ac_try" in |
| 9919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9920 | *) ac_try_echo=$ac_try;; |
| 9921 | esac |
| 9922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9923 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9924 | ac_status=$? |
| 9925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9926 | (exit $ac_status); }; } && |
| 9927 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9928 | { (case "(($ac_try" in |
| 9929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9930 | *) ac_try_echo=$ac_try;; |
| 9931 | esac |
| 9932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9933 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9934 | ac_status=$? |
| 9935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9936 | (exit $ac_status); }; }; then |
| 9937 | ac_cv_lib_dld_dld_link=yes |
| 9938 | else |
| 9939 | echo "$as_me: failed program was:" >&5 |
| 9940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9941 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9942 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9943 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9944 | |
| 9945 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9946 | conftest$ac_exeext conftest.$ac_ext |
| 9947 | LIBS=$ac_check_lib_save_LIBS |
| 9948 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9949 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 9950 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9951 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 9952 | |
| 9953 | cat >>confdefs.h <<\_ACEOF |
| 9954 | #define HAVE_DLD 1 |
| 9955 | _ACEOF |
| 9956 | |
| 9957 | LIBADD_DL="$LIBADD_DL -ldld" |
| 9958 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9959 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 9960 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9961 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 9962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9963 | else |
| 9964 | cat >conftest.$ac_ext <<_ACEOF |
| 9965 | /* confdefs.h. */ |
| 9966 | _ACEOF |
| 9967 | cat confdefs.h >>conftest.$ac_ext |
| 9968 | cat >>conftest.$ac_ext <<_ACEOF |
| 9969 | /* end confdefs.h. */ |
| 9970 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 9971 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9972 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
| 9973 | |
| 9974 | /* System header to define __stub macros and hopefully few prototypes, |
| 9975 | which can conflict with char _dyld_func_lookup (); below. |
| 9976 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9977 | <limits.h> exists even on freestanding compilers. */ |
| 9978 | |
| 9979 | #ifdef __STDC__ |
| 9980 | # include <limits.h> |
| 9981 | #else |
| 9982 | # include <assert.h> |
| 9983 | #endif |
| 9984 | |
| 9985 | #undef _dyld_func_lookup |
| 9986 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9987 | /* Override any GCC internal prototype to avoid an error. |
| 9988 | Use char because int might match the return type of a GCC |
| 9989 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9990 | #ifdef __cplusplus |
| 9991 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9992 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9993 | char _dyld_func_lookup (); |
| 9994 | /* The GNU C library defines this for functions which it implements |
| 9995 | to always fail with ENOSYS. Some functions are actually named |
| 9996 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9997 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9998 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9999 | #endif |
| 10000 | |
| 10001 | int |
| 10002 | main () |
| 10003 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10004 | return _dyld_func_lookup (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10005 | ; |
| 10006 | return 0; |
| 10007 | } |
| 10008 | _ACEOF |
| 10009 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10010 | if { (ac_try="$ac_link" |
| 10011 | case "(($ac_try" in |
| 10012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10013 | *) ac_try_echo=$ac_try;; |
| 10014 | esac |
| 10015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10016 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10017 | ac_status=$? |
| 10018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10019 | rm -f conftest.er1 |
| 10020 | cat conftest.err >&5 |
| 10021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10022 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10023 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10024 | { (case "(($ac_try" in |
| 10025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10026 | *) ac_try_echo=$ac_try;; |
| 10027 | esac |
| 10028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10029 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10030 | ac_status=$? |
| 10031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10032 | (exit $ac_status); }; } && |
| 10033 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10034 | { (case "(($ac_try" in |
| 10035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10036 | *) ac_try_echo=$ac_try;; |
| 10037 | esac |
| 10038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10039 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10040 | ac_status=$? |
| 10041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10042 | (exit $ac_status); }; }; then |
| 10043 | ac_cv_func__dyld_func_lookup=yes |
| 10044 | else |
| 10045 | echo "$as_me: failed program was:" >&5 |
| 10046 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10047 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10048 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10049 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10050 | |
| 10051 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10052 | conftest$ac_exeext conftest.$ac_ext |
| 10053 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10054 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10055 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10056 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10057 | |
| 10058 | cat >>confdefs.h <<\_ACEOF |
| 10059 | #define HAVE_DYLD 1 |
| 10060 | _ACEOF |
| 10061 | |
| 10062 | fi |
| 10063 | |
| 10064 | |
| 10065 | fi |
| 10066 | |
| 10067 | |
| 10068 | fi |
| 10069 | |
| 10070 | |
| 10071 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10072 | |
| 10073 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10074 | conftest$ac_exeext conftest.$ac_ext |
| 10075 | |
| 10076 | fi |
| 10077 | |
| 10078 | |
| 10079 | fi |
| 10080 | |
| 10081 | |
| 10082 | fi |
| 10083 | |
| 10084 | |
| 10085 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10086 | then |
| 10087 | lt_save_LIBS="$LIBS" |
| 10088 | LIBS="$LIBS $LIBADD_DL" |
| 10089 | |
| 10090 | for ac_func in dlerror |
| 10091 | do |
| 10092 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10093 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10094 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10095 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10097 | else |
| 10098 | cat >conftest.$ac_ext <<_ACEOF |
| 10099 | /* confdefs.h. */ |
| 10100 | _ACEOF |
| 10101 | cat confdefs.h >>conftest.$ac_ext |
| 10102 | cat >>conftest.$ac_ext <<_ACEOF |
| 10103 | /* end confdefs.h. */ |
| 10104 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10105 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10106 | #define $ac_func innocuous_$ac_func |
| 10107 | |
| 10108 | /* System header to define __stub macros and hopefully few prototypes, |
| 10109 | which can conflict with char $ac_func (); below. |
| 10110 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10111 | <limits.h> exists even on freestanding compilers. */ |
| 10112 | |
| 10113 | #ifdef __STDC__ |
| 10114 | # include <limits.h> |
| 10115 | #else |
| 10116 | # include <assert.h> |
| 10117 | #endif |
| 10118 | |
| 10119 | #undef $ac_func |
| 10120 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10121 | /* Override any GCC internal prototype to avoid an error. |
| 10122 | Use char because int might match the return type of a GCC |
| 10123 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10124 | #ifdef __cplusplus |
| 10125 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10126 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10127 | char $ac_func (); |
| 10128 | /* The GNU C library defines this for functions which it implements |
| 10129 | to always fail with ENOSYS. Some functions are actually named |
| 10130 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10131 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10132 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10133 | #endif |
| 10134 | |
| 10135 | int |
| 10136 | main () |
| 10137 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10138 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10139 | ; |
| 10140 | return 0; |
| 10141 | } |
| 10142 | _ACEOF |
| 10143 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10144 | if { (ac_try="$ac_link" |
| 10145 | case "(($ac_try" in |
| 10146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10147 | *) ac_try_echo=$ac_try;; |
| 10148 | esac |
| 10149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10150 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10151 | ac_status=$? |
| 10152 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10153 | rm -f conftest.er1 |
| 10154 | cat conftest.err >&5 |
| 10155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10156 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10157 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10158 | { (case "(($ac_try" in |
| 10159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10160 | *) ac_try_echo=$ac_try;; |
| 10161 | esac |
| 10162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10163 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10164 | ac_status=$? |
| 10165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10166 | (exit $ac_status); }; } && |
| 10167 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10168 | { (case "(($ac_try" in |
| 10169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10170 | *) ac_try_echo=$ac_try;; |
| 10171 | esac |
| 10172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10173 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10174 | ac_status=$? |
| 10175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10176 | (exit $ac_status); }; }; then |
| 10177 | eval "$as_ac_var=yes" |
| 10178 | else |
| 10179 | echo "$as_me: failed program was:" >&5 |
| 10180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10181 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10182 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10183 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10184 | |
| 10185 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10186 | conftest$ac_exeext conftest.$ac_ext |
| 10187 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10188 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10189 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10190 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10191 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10192 | cat >>confdefs.h <<_ACEOF |
| 10193 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10194 | _ACEOF |
| 10195 | |
| 10196 | fi |
| 10197 | done |
| 10198 | |
| 10199 | LIBS="$lt_save_LIBS" |
| 10200 | fi |
| 10201 | ac_ext=c |
| 10202 | ac_cpp='$CPP $CPPFLAGS' |
| 10203 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10204 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10205 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10206 | |
| 10207 | |
| 10208 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10209 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 10210 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10211 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 10212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10213 | else |
| 10214 | ac_cv_sys_symbol_underscore=no |
| 10215 | cat > conftest.$ac_ext <<EOF |
| 10216 | void nm_test_func(){} |
| 10217 | int main(){nm_test_func;return 0;} |
| 10218 | EOF |
| 10219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10220 | (eval $ac_compile) 2>&5 |
| 10221 | ac_status=$? |
| 10222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10223 | (exit $ac_status); }; then |
| 10224 | # Now try to grab the symbols. |
| 10225 | ac_nlist=conftest.nm |
| 10226 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
| 10227 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 10228 | ac_status=$? |
| 10229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10230 | (exit $ac_status); } && test -s "$ac_nlist"; then |
| 10231 | # See whether the symbols have a leading underscore. |
| 10232 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 10233 | ac_cv_sys_symbol_underscore=yes |
| 10234 | else |
| 10235 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 10236 | : |
| 10237 | else |
| 10238 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 10239 | fi |
| 10240 | fi |
| 10241 | else |
| 10242 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10243 | fi |
| 10244 | else |
| 10245 | echo "configure: failed program was:" >&5 |
| 10246 | cat conftest.c >&5 |
| 10247 | fi |
| 10248 | rm -rf conftest* |
| 10249 | |
| 10250 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10251 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 10252 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10253 | |
| 10254 | |
| 10255 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 10256 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 10257 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10258 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 10259 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10260 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 10261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10262 | else |
| 10263 | libltdl_cv_need_uscore=unknown |
| 10264 | save_LIBS="$LIBS" |
| 10265 | LIBS="$LIBS $LIBADD_DL" |
| 10266 | if test "$cross_compiling" = yes; then : |
| 10267 | libltdl_cv_need_uscore=cross |
| 10268 | else |
| 10269 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10270 | lt_status=$lt_dlunknown |
| 10271 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 10272 | #line 10272 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10273 | #include "confdefs.h" |
| 10274 | |
| 10275 | #if HAVE_DLFCN_H |
| 10276 | #include <dlfcn.h> |
| 10277 | #endif |
| 10278 | |
| 10279 | #include <stdio.h> |
| 10280 | |
| 10281 | #ifdef RTLD_GLOBAL |
| 10282 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10283 | #else |
| 10284 | # ifdef DL_GLOBAL |
| 10285 | # define LT_DLGLOBAL DL_GLOBAL |
| 10286 | # else |
| 10287 | # define LT_DLGLOBAL 0 |
| 10288 | # endif |
| 10289 | #endif |
| 10290 | |
| 10291 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10292 | find out it does not work in some platform. */ |
| 10293 | #ifndef LT_DLLAZY_OR_NOW |
| 10294 | # ifdef RTLD_LAZY |
| 10295 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10296 | # else |
| 10297 | # ifdef DL_LAZY |
| 10298 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10299 | # else |
| 10300 | # ifdef RTLD_NOW |
| 10301 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10302 | # else |
| 10303 | # ifdef DL_NOW |
| 10304 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10305 | # else |
| 10306 | # define LT_DLLAZY_OR_NOW 0 |
| 10307 | # endif |
| 10308 | # endif |
| 10309 | # endif |
| 10310 | # endif |
| 10311 | #endif |
| 10312 | |
| 10313 | #ifdef __cplusplus |
| 10314 | extern "C" void exit (int); |
| 10315 | #endif |
| 10316 | |
| 10317 | void fnord() { int i=42;} |
| 10318 | int main () |
| 10319 | { |
| 10320 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10321 | int status = $lt_dlunknown; |
| 10322 | |
| 10323 | if (self) |
| 10324 | { |
| 10325 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10326 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10327 | /* dlclose (self); */ |
| 10328 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10329 | else |
| 10330 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10331 | |
| 10332 | exit (status); |
| 10333 | } |
| 10334 | EOF |
| 10335 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10336 | (eval $ac_link) 2>&5 |
| 10337 | ac_status=$? |
| 10338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10339 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10340 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10341 | lt_status=$? |
| 10342 | case x$lt_status in |
| 10343 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 10344 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10345 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10346 | esac |
| 10347 | else : |
| 10348 | # compilation failed |
| 10349 | |
| 10350 | fi |
| 10351 | fi |
| 10352 | rm -fr conftest* |
| 10353 | |
| 10354 | LIBS="$save_LIBS" |
| 10355 | |
| 10356 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10357 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 10358 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10359 | fi |
| 10360 | fi |
| 10361 | |
| 10362 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 10363 | |
| 10364 | cat >>confdefs.h <<\_ACEOF |
| 10365 | #define NEED_USCORE 1 |
| 10366 | _ACEOF |
| 10367 | |
| 10368 | fi |
| 10369 | |
| 10370 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10371 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 10372 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10373 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 10374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10375 | else |
| 10376 | # PORTME does your system automatically load deplibs for dlopen? |
| 10377 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 10378 | # For now, we just catch OSes we know something about -- in the |
| 10379 | # future, we'll try test this programmatically. |
| 10380 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10381 | case "$host_os" in |
| 10382 | aix3*|aix4.1.*|aix4.2.*) |
| 10383 | # Unknown whether this is true for these versions of AIX, but |
| 10384 | # we want this `case' here to explicitly catch those versions. |
| 10385 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10386 | ;; |
| 10387 | aix[45]*) |
| 10388 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10389 | ;; |
| 10390 | darwin*) |
| 10391 | # Assuming the user has installed a libdl from somewhere, this is true |
| 10392 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 10393 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10394 | ;; |
| 10395 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 10396 | # GNU and its variants, using gnu ld.so (Glibc) |
| 10397 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10398 | ;; |
| 10399 | hpux10*|hpux11*) |
| 10400 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10401 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10402 | interix*) |
| 10403 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10404 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10405 | irix[12345]*|irix6.[01]*) |
| 10406 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 10407 | # know how it worked for any of those versions. |
| 10408 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10409 | ;; |
| 10410 | irix*) |
| 10411 | # The case above catches anything before 6.2, and it's known that |
| 10412 | # at 6.2 and later dlopen does load deplibs. |
| 10413 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10414 | ;; |
| 10415 | netbsd*) |
| 10416 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10417 | ;; |
| 10418 | openbsd*) |
| 10419 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10420 | ;; |
| 10421 | osf[1234]*) |
| 10422 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 10423 | # it did *not* use an RPATH in a shared library to find objects the |
| 10424 | # library depends on, so we explictly say `no'. |
| 10425 | libltdl_cv_sys_dlopen_deplibs=no |
| 10426 | ;; |
| 10427 | osf5.0|osf5.0a|osf5.1) |
| 10428 | # dlopen *does* load deplibs and with the right loader patch applied |
| 10429 | # it even uses RPATH in a shared library to search for shared objects |
| 10430 | # that the library depends on, but there's no easy way to know if that |
| 10431 | # patch is installed. Since this is the case, all we can really |
| 10432 | # say is unknown -- it depends on the patch being installed. If |
| 10433 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 10434 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10435 | ;; |
| 10436 | osf*) |
| 10437 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 10438 | # the comments above for what we know about them. |
| 10439 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 10440 | # is used to find them so we can finally say `yes'. |
| 10441 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10442 | ;; |
| 10443 | solaris*) |
| 10444 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10445 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10446 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10447 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10448 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10449 | esac |
| 10450 | |
| 10451 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10452 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 10453 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10454 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 10455 | |
| 10456 | cat >>confdefs.h <<\_ACEOF |
| 10457 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 10458 | _ACEOF |
| 10459 | |
| 10460 | fi |
| 10461 | |
| 10462 | |
| 10463 | for ac_header in argz.h |
| 10464 | do |
| 10465 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10466 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10467 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10468 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10469 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10471 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10472 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10473 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10474 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10475 | else |
| 10476 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10477 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10478 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10479 | cat >conftest.$ac_ext <<_ACEOF |
| 10480 | /* confdefs.h. */ |
| 10481 | _ACEOF |
| 10482 | cat confdefs.h >>conftest.$ac_ext |
| 10483 | cat >>conftest.$ac_ext <<_ACEOF |
| 10484 | /* end confdefs.h. */ |
| 10485 | $ac_includes_default |
| 10486 | #include <$ac_header> |
| 10487 | _ACEOF |
| 10488 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10489 | if { (ac_try="$ac_compile" |
| 10490 | case "(($ac_try" in |
| 10491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10492 | *) ac_try_echo=$ac_try;; |
| 10493 | esac |
| 10494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10495 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10496 | ac_status=$? |
| 10497 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10498 | rm -f conftest.er1 |
| 10499 | cat conftest.err >&5 |
| 10500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10501 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10502 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10503 | { (case "(($ac_try" in |
| 10504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10505 | *) ac_try_echo=$ac_try;; |
| 10506 | esac |
| 10507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10508 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10509 | ac_status=$? |
| 10510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10511 | (exit $ac_status); }; } && |
| 10512 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10513 | { (case "(($ac_try" in |
| 10514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10515 | *) ac_try_echo=$ac_try;; |
| 10516 | esac |
| 10517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10518 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10519 | ac_status=$? |
| 10520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10521 | (exit $ac_status); }; }; then |
| 10522 | ac_header_compiler=yes |
| 10523 | else |
| 10524 | echo "$as_me: failed program was:" >&5 |
| 10525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10526 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10527 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10528 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10529 | |
| 10530 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10531 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10532 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10533 | |
| 10534 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10535 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10536 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10537 | cat >conftest.$ac_ext <<_ACEOF |
| 10538 | /* confdefs.h. */ |
| 10539 | _ACEOF |
| 10540 | cat confdefs.h >>conftest.$ac_ext |
| 10541 | cat >>conftest.$ac_ext <<_ACEOF |
| 10542 | /* end confdefs.h. */ |
| 10543 | #include <$ac_header> |
| 10544 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10545 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10546 | case "(($ac_try" in |
| 10547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10548 | *) ac_try_echo=$ac_try;; |
| 10549 | esac |
| 10550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10551 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10552 | ac_status=$? |
| 10553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10554 | rm -f conftest.er1 |
| 10555 | cat conftest.err >&5 |
| 10556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10557 | (exit $ac_status); } >/dev/null; then |
| 10558 | if test -s conftest.err; then |
| 10559 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10560 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10561 | else |
| 10562 | ac_cpp_err= |
| 10563 | fi |
| 10564 | else |
| 10565 | ac_cpp_err=yes |
| 10566 | fi |
| 10567 | if test -z "$ac_cpp_err"; then |
| 10568 | ac_header_preproc=yes |
| 10569 | else |
| 10570 | echo "$as_me: failed program was:" >&5 |
| 10571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10572 | |
| 10573 | ac_header_preproc=no |
| 10574 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10575 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10576 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10577 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10578 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10579 | |
| 10580 | # So? What about this header? |
| 10581 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10582 | yes:no: ) |
| 10583 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10584 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10585 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10586 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10587 | ac_header_preproc=yes |
| 10588 | ;; |
| 10589 | no:yes:* ) |
| 10590 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10591 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10592 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10593 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10594 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10595 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10596 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10597 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10598 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10599 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10600 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10601 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10602 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10603 | ## ----------------------------------- ## |
| 10604 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 10605 | ## ----------------------------------- ## |
| 10606 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10607 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10608 | ;; |
| 10609 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10610 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10611 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10612 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10614 | else |
| 10615 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10616 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10617 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10618 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10619 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10620 | |
| 10621 | fi |
| 10622 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10623 | cat >>confdefs.h <<_ACEOF |
| 10624 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10625 | _ACEOF |
| 10626 | |
| 10627 | fi |
| 10628 | |
| 10629 | done |
| 10630 | |
| 10631 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10632 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 10633 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10634 | if test "${ac_cv_type_error_t+set}" = set; then |
| 10635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10636 | else |
| 10637 | cat >conftest.$ac_ext <<_ACEOF |
| 10638 | /* confdefs.h. */ |
| 10639 | _ACEOF |
| 10640 | cat confdefs.h >>conftest.$ac_ext |
| 10641 | cat >>conftest.$ac_ext <<_ACEOF |
| 10642 | /* end confdefs.h. */ |
| 10643 | #if HAVE_ARGZ_H |
| 10644 | # include <argz.h> |
| 10645 | #endif |
| 10646 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10647 | typedef error_t ac__type_new_; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10648 | int |
| 10649 | main () |
| 10650 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10651 | if ((ac__type_new_ *) 0) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10652 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10653 | if (sizeof (ac__type_new_)) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10654 | return 0; |
| 10655 | ; |
| 10656 | return 0; |
| 10657 | } |
| 10658 | _ACEOF |
| 10659 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10660 | if { (ac_try="$ac_compile" |
| 10661 | case "(($ac_try" in |
| 10662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10663 | *) ac_try_echo=$ac_try;; |
| 10664 | esac |
| 10665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10666 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10667 | ac_status=$? |
| 10668 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10669 | rm -f conftest.er1 |
| 10670 | cat conftest.err >&5 |
| 10671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10672 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10673 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10674 | { (case "(($ac_try" in |
| 10675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10676 | *) ac_try_echo=$ac_try;; |
| 10677 | esac |
| 10678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10679 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10680 | ac_status=$? |
| 10681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10682 | (exit $ac_status); }; } && |
| 10683 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10684 | { (case "(($ac_try" in |
| 10685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10686 | *) ac_try_echo=$ac_try;; |
| 10687 | esac |
| 10688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10689 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10690 | ac_status=$? |
| 10691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10692 | (exit $ac_status); }; }; then |
| 10693 | ac_cv_type_error_t=yes |
| 10694 | else |
| 10695 | echo "$as_me: failed program was:" >&5 |
| 10696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10697 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10698 | ac_cv_type_error_t=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10699 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10700 | |
| 10701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10702 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10703 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 10704 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10705 | if test $ac_cv_type_error_t = yes; then |
| 10706 | |
| 10707 | cat >>confdefs.h <<_ACEOF |
| 10708 | #define HAVE_ERROR_T 1 |
| 10709 | _ACEOF |
| 10710 | |
| 10711 | |
| 10712 | else |
| 10713 | |
| 10714 | cat >>confdefs.h <<\_ACEOF |
| 10715 | #define error_t int |
| 10716 | _ACEOF |
| 10717 | |
| 10718 | fi |
| 10719 | |
| 10720 | |
| 10721 | |
| 10722 | |
| 10723 | |
| 10724 | |
| 10725 | |
| 10726 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
| 10727 | do |
| 10728 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10729 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10730 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10731 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10733 | else |
| 10734 | cat >conftest.$ac_ext <<_ACEOF |
| 10735 | /* confdefs.h. */ |
| 10736 | _ACEOF |
| 10737 | cat confdefs.h >>conftest.$ac_ext |
| 10738 | cat >>conftest.$ac_ext <<_ACEOF |
| 10739 | /* end confdefs.h. */ |
| 10740 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10741 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10742 | #define $ac_func innocuous_$ac_func |
| 10743 | |
| 10744 | /* System header to define __stub macros and hopefully few prototypes, |
| 10745 | which can conflict with char $ac_func (); below. |
| 10746 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10747 | <limits.h> exists even on freestanding compilers. */ |
| 10748 | |
| 10749 | #ifdef __STDC__ |
| 10750 | # include <limits.h> |
| 10751 | #else |
| 10752 | # include <assert.h> |
| 10753 | #endif |
| 10754 | |
| 10755 | #undef $ac_func |
| 10756 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10757 | /* Override any GCC internal prototype to avoid an error. |
| 10758 | Use char because int might match the return type of a GCC |
| 10759 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10760 | #ifdef __cplusplus |
| 10761 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10762 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10763 | char $ac_func (); |
| 10764 | /* The GNU C library defines this for functions which it implements |
| 10765 | to always fail with ENOSYS. Some functions are actually named |
| 10766 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10767 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10768 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10769 | #endif |
| 10770 | |
| 10771 | int |
| 10772 | main () |
| 10773 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10774 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10775 | ; |
| 10776 | return 0; |
| 10777 | } |
| 10778 | _ACEOF |
| 10779 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10780 | if { (ac_try="$ac_link" |
| 10781 | case "(($ac_try" in |
| 10782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10783 | *) ac_try_echo=$ac_try;; |
| 10784 | esac |
| 10785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10786 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10787 | ac_status=$? |
| 10788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10789 | rm -f conftest.er1 |
| 10790 | cat conftest.err >&5 |
| 10791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10792 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10793 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10794 | { (case "(($ac_try" in |
| 10795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10796 | *) ac_try_echo=$ac_try;; |
| 10797 | esac |
| 10798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10799 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10800 | ac_status=$? |
| 10801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10802 | (exit $ac_status); }; } && |
| 10803 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10804 | { (case "(($ac_try" in |
| 10805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10806 | *) ac_try_echo=$ac_try;; |
| 10807 | esac |
| 10808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10809 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10810 | ac_status=$? |
| 10811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10812 | (exit $ac_status); }; }; then |
| 10813 | eval "$as_ac_var=yes" |
| 10814 | else |
| 10815 | echo "$as_me: failed program was:" >&5 |
| 10816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10817 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10818 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10819 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10820 | |
| 10821 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10822 | conftest$ac_exeext conftest.$ac_ext |
| 10823 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10824 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10825 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10826 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10827 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10828 | cat >>confdefs.h <<_ACEOF |
| 10829 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10830 | _ACEOF |
| 10831 | |
| 10832 | fi |
| 10833 | done |
| 10834 | |
| 10835 | |
| 10836 | |
| 10837 | |
| 10838 | |
| 10839 | |
| 10840 | |
| 10841 | |
| 10842 | |
| 10843 | |
| 10844 | |
| 10845 | |
| 10846 | |
| 10847 | |
| 10848 | |
| 10849 | |
| 10850 | |
| 10851 | |
| 10852 | |
| 10853 | |
| 10854 | |
| 10855 | |
| 10856 | |
| 10857 | |
| 10858 | |
| 10859 | |
| 10860 | |
| 10861 | |
| 10862 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 10863 | stdio.h unistd.h |
| 10864 | do |
| 10865 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10866 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10867 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10868 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10869 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10871 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10872 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10873 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10874 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10875 | else |
| 10876 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10877 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10878 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10879 | cat >conftest.$ac_ext <<_ACEOF |
| 10880 | /* confdefs.h. */ |
| 10881 | _ACEOF |
| 10882 | cat confdefs.h >>conftest.$ac_ext |
| 10883 | cat >>conftest.$ac_ext <<_ACEOF |
| 10884 | /* end confdefs.h. */ |
| 10885 | $ac_includes_default |
| 10886 | #include <$ac_header> |
| 10887 | _ACEOF |
| 10888 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10889 | if { (ac_try="$ac_compile" |
| 10890 | case "(($ac_try" in |
| 10891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10892 | *) ac_try_echo=$ac_try;; |
| 10893 | esac |
| 10894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10895 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10896 | ac_status=$? |
| 10897 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10898 | rm -f conftest.er1 |
| 10899 | cat conftest.err >&5 |
| 10900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10901 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10902 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10903 | { (case "(($ac_try" in |
| 10904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10905 | *) ac_try_echo=$ac_try;; |
| 10906 | esac |
| 10907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10908 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10909 | ac_status=$? |
| 10910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10911 | (exit $ac_status); }; } && |
| 10912 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10913 | { (case "(($ac_try" in |
| 10914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10915 | *) ac_try_echo=$ac_try;; |
| 10916 | esac |
| 10917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10918 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10919 | ac_status=$? |
| 10920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10921 | (exit $ac_status); }; }; then |
| 10922 | ac_header_compiler=yes |
| 10923 | else |
| 10924 | echo "$as_me: failed program was:" >&5 |
| 10925 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10926 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10927 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10928 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10929 | |
| 10930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10931 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10932 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10933 | |
| 10934 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10935 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10936 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10937 | cat >conftest.$ac_ext <<_ACEOF |
| 10938 | /* confdefs.h. */ |
| 10939 | _ACEOF |
| 10940 | cat confdefs.h >>conftest.$ac_ext |
| 10941 | cat >>conftest.$ac_ext <<_ACEOF |
| 10942 | /* end confdefs.h. */ |
| 10943 | #include <$ac_header> |
| 10944 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10945 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10946 | case "(($ac_try" in |
| 10947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10948 | *) ac_try_echo=$ac_try;; |
| 10949 | esac |
| 10950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10951 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10952 | ac_status=$? |
| 10953 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10954 | rm -f conftest.er1 |
| 10955 | cat conftest.err >&5 |
| 10956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10957 | (exit $ac_status); } >/dev/null; then |
| 10958 | if test -s conftest.err; then |
| 10959 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10960 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10961 | else |
| 10962 | ac_cpp_err= |
| 10963 | fi |
| 10964 | else |
| 10965 | ac_cpp_err=yes |
| 10966 | fi |
| 10967 | if test -z "$ac_cpp_err"; then |
| 10968 | ac_header_preproc=yes |
| 10969 | else |
| 10970 | echo "$as_me: failed program was:" >&5 |
| 10971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10972 | |
| 10973 | ac_header_preproc=no |
| 10974 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10975 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10976 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10977 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10978 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10979 | |
| 10980 | # So? What about this header? |
| 10981 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10982 | yes:no: ) |
| 10983 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10984 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10985 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10986 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10987 | ac_header_preproc=yes |
| 10988 | ;; |
| 10989 | no:yes:* ) |
| 10990 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10991 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10992 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10993 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10994 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10995 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10996 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10997 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10998 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10999 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11000 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11001 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11002 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11003 | ## ----------------------------------- ## |
| 11004 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11005 | ## ----------------------------------- ## |
| 11006 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11007 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11008 | ;; |
| 11009 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11010 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11011 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11012 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11014 | else |
| 11015 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11016 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11017 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11018 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11019 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11020 | |
| 11021 | fi |
| 11022 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11023 | cat >>confdefs.h <<_ACEOF |
| 11024 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11025 | _ACEOF |
| 11026 | |
| 11027 | fi |
| 11028 | |
| 11029 | done |
| 11030 | |
| 11031 | |
| 11032 | |
| 11033 | |
| 11034 | |
| 11035 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
| 11036 | do |
| 11037 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11038 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11039 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11040 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11041 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11043 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11044 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11045 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11046 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11047 | else |
| 11048 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11049 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11050 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11051 | cat >conftest.$ac_ext <<_ACEOF |
| 11052 | /* confdefs.h. */ |
| 11053 | _ACEOF |
| 11054 | cat confdefs.h >>conftest.$ac_ext |
| 11055 | cat >>conftest.$ac_ext <<_ACEOF |
| 11056 | /* end confdefs.h. */ |
| 11057 | $ac_includes_default |
| 11058 | #include <$ac_header> |
| 11059 | _ACEOF |
| 11060 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11061 | if { (ac_try="$ac_compile" |
| 11062 | case "(($ac_try" in |
| 11063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11064 | *) ac_try_echo=$ac_try;; |
| 11065 | esac |
| 11066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11067 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11068 | ac_status=$? |
| 11069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11070 | rm -f conftest.er1 |
| 11071 | cat conftest.err >&5 |
| 11072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11073 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11074 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11075 | { (case "(($ac_try" in |
| 11076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11077 | *) ac_try_echo=$ac_try;; |
| 11078 | esac |
| 11079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11080 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11081 | ac_status=$? |
| 11082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11083 | (exit $ac_status); }; } && |
| 11084 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11085 | { (case "(($ac_try" in |
| 11086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11087 | *) ac_try_echo=$ac_try;; |
| 11088 | esac |
| 11089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11090 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11091 | ac_status=$? |
| 11092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11093 | (exit $ac_status); }; }; then |
| 11094 | ac_header_compiler=yes |
| 11095 | else |
| 11096 | echo "$as_me: failed program was:" >&5 |
| 11097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11098 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11099 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11100 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11101 | |
| 11102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11103 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11104 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11105 | |
| 11106 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11107 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11108 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11109 | cat >conftest.$ac_ext <<_ACEOF |
| 11110 | /* confdefs.h. */ |
| 11111 | _ACEOF |
| 11112 | cat confdefs.h >>conftest.$ac_ext |
| 11113 | cat >>conftest.$ac_ext <<_ACEOF |
| 11114 | /* end confdefs.h. */ |
| 11115 | #include <$ac_header> |
| 11116 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11117 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11118 | case "(($ac_try" in |
| 11119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11120 | *) ac_try_echo=$ac_try;; |
| 11121 | esac |
| 11122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11123 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11124 | ac_status=$? |
| 11125 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11126 | rm -f conftest.er1 |
| 11127 | cat conftest.err >&5 |
| 11128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11129 | (exit $ac_status); } >/dev/null; then |
| 11130 | if test -s conftest.err; then |
| 11131 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11132 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11133 | else |
| 11134 | ac_cpp_err= |
| 11135 | fi |
| 11136 | else |
| 11137 | ac_cpp_err=yes |
| 11138 | fi |
| 11139 | if test -z "$ac_cpp_err"; then |
| 11140 | ac_header_preproc=yes |
| 11141 | else |
| 11142 | echo "$as_me: failed program was:" >&5 |
| 11143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11144 | |
| 11145 | ac_header_preproc=no |
| 11146 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11147 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11148 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11149 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11150 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11151 | |
| 11152 | # So? What about this header? |
| 11153 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11154 | yes:no: ) |
| 11155 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11156 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11157 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11158 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11159 | ac_header_preproc=yes |
| 11160 | ;; |
| 11161 | no:yes:* ) |
| 11162 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11163 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11164 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11165 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11166 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11167 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11168 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11169 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11170 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11171 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11172 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11173 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11174 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11175 | ## ----------------------------------- ## |
| 11176 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11177 | ## ----------------------------------- ## |
| 11178 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11179 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11180 | ;; |
| 11181 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11182 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11183 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11184 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11186 | else |
| 11187 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11188 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11189 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11190 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11191 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11192 | |
| 11193 | fi |
| 11194 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11195 | cat >>confdefs.h <<_ACEOF |
| 11196 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11197 | _ACEOF |
| 11198 | |
| 11199 | fi |
| 11200 | |
| 11201 | done |
| 11202 | |
| 11203 | |
| 11204 | |
| 11205 | for ac_header in string.h strings.h |
| 11206 | do |
| 11207 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11208 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11209 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11210 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11211 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11213 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11214 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11215 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11216 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11217 | else |
| 11218 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11219 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11220 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11221 | cat >conftest.$ac_ext <<_ACEOF |
| 11222 | /* confdefs.h. */ |
| 11223 | _ACEOF |
| 11224 | cat confdefs.h >>conftest.$ac_ext |
| 11225 | cat >>conftest.$ac_ext <<_ACEOF |
| 11226 | /* end confdefs.h. */ |
| 11227 | $ac_includes_default |
| 11228 | #include <$ac_header> |
| 11229 | _ACEOF |
| 11230 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11231 | if { (ac_try="$ac_compile" |
| 11232 | case "(($ac_try" in |
| 11233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11234 | *) ac_try_echo=$ac_try;; |
| 11235 | esac |
| 11236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11237 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11238 | ac_status=$? |
| 11239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11240 | rm -f conftest.er1 |
| 11241 | cat conftest.err >&5 |
| 11242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11243 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11244 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11245 | { (case "(($ac_try" in |
| 11246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11247 | *) ac_try_echo=$ac_try;; |
| 11248 | esac |
| 11249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11250 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11251 | ac_status=$? |
| 11252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11253 | (exit $ac_status); }; } && |
| 11254 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11255 | { (case "(($ac_try" in |
| 11256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11257 | *) ac_try_echo=$ac_try;; |
| 11258 | esac |
| 11259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11260 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11261 | ac_status=$? |
| 11262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11263 | (exit $ac_status); }; }; then |
| 11264 | ac_header_compiler=yes |
| 11265 | else |
| 11266 | echo "$as_me: failed program was:" >&5 |
| 11267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11268 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11269 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11270 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11271 | |
| 11272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11273 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11274 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11275 | |
| 11276 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11277 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11278 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11279 | cat >conftest.$ac_ext <<_ACEOF |
| 11280 | /* confdefs.h. */ |
| 11281 | _ACEOF |
| 11282 | cat confdefs.h >>conftest.$ac_ext |
| 11283 | cat >>conftest.$ac_ext <<_ACEOF |
| 11284 | /* end confdefs.h. */ |
| 11285 | #include <$ac_header> |
| 11286 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11287 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11288 | case "(($ac_try" in |
| 11289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11290 | *) ac_try_echo=$ac_try;; |
| 11291 | esac |
| 11292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11293 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11294 | ac_status=$? |
| 11295 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11296 | rm -f conftest.er1 |
| 11297 | cat conftest.err >&5 |
| 11298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11299 | (exit $ac_status); } >/dev/null; then |
| 11300 | if test -s conftest.err; then |
| 11301 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11302 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11303 | else |
| 11304 | ac_cpp_err= |
| 11305 | fi |
| 11306 | else |
| 11307 | ac_cpp_err=yes |
| 11308 | fi |
| 11309 | if test -z "$ac_cpp_err"; then |
| 11310 | ac_header_preproc=yes |
| 11311 | else |
| 11312 | echo "$as_me: failed program was:" >&5 |
| 11313 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11314 | |
| 11315 | ac_header_preproc=no |
| 11316 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11317 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11318 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11319 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11320 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11321 | |
| 11322 | # So? What about this header? |
| 11323 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11324 | yes:no: ) |
| 11325 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11326 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11327 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11328 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11329 | ac_header_preproc=yes |
| 11330 | ;; |
| 11331 | no:yes:* ) |
| 11332 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11333 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11334 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11335 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11336 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11337 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11338 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11339 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11340 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11341 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11342 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11343 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11344 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11345 | ## ----------------------------------- ## |
| 11346 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11347 | ## ----------------------------------- ## |
| 11348 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11349 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11350 | ;; |
| 11351 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11352 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11353 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11354 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11356 | else |
| 11357 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11358 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11359 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11360 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11361 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11362 | |
| 11363 | fi |
| 11364 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11365 | cat >>confdefs.h <<_ACEOF |
| 11366 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11367 | _ACEOF |
| 11368 | break |
| 11369 | fi |
| 11370 | |
| 11371 | done |
| 11372 | |
| 11373 | |
| 11374 | |
| 11375 | |
| 11376 | for ac_func in strchr index |
| 11377 | do |
| 11378 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11379 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11380 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11381 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11383 | else |
| 11384 | cat >conftest.$ac_ext <<_ACEOF |
| 11385 | /* confdefs.h. */ |
| 11386 | _ACEOF |
| 11387 | cat confdefs.h >>conftest.$ac_ext |
| 11388 | cat >>conftest.$ac_ext <<_ACEOF |
| 11389 | /* end confdefs.h. */ |
| 11390 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11391 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11392 | #define $ac_func innocuous_$ac_func |
| 11393 | |
| 11394 | /* System header to define __stub macros and hopefully few prototypes, |
| 11395 | which can conflict with char $ac_func (); below. |
| 11396 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11397 | <limits.h> exists even on freestanding compilers. */ |
| 11398 | |
| 11399 | #ifdef __STDC__ |
| 11400 | # include <limits.h> |
| 11401 | #else |
| 11402 | # include <assert.h> |
| 11403 | #endif |
| 11404 | |
| 11405 | #undef $ac_func |
| 11406 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11407 | /* Override any GCC internal prototype to avoid an error. |
| 11408 | Use char because int might match the return type of a GCC |
| 11409 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11410 | #ifdef __cplusplus |
| 11411 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11412 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11413 | char $ac_func (); |
| 11414 | /* The GNU C library defines this for functions which it implements |
| 11415 | to always fail with ENOSYS. Some functions are actually named |
| 11416 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11417 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11418 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11419 | #endif |
| 11420 | |
| 11421 | int |
| 11422 | main () |
| 11423 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11424 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11425 | ; |
| 11426 | return 0; |
| 11427 | } |
| 11428 | _ACEOF |
| 11429 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11430 | if { (ac_try="$ac_link" |
| 11431 | case "(($ac_try" in |
| 11432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11433 | *) ac_try_echo=$ac_try;; |
| 11434 | esac |
| 11435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11436 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11437 | ac_status=$? |
| 11438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11439 | rm -f conftest.er1 |
| 11440 | cat conftest.err >&5 |
| 11441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11442 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11443 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11444 | { (case "(($ac_try" in |
| 11445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11446 | *) ac_try_echo=$ac_try;; |
| 11447 | esac |
| 11448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11449 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11450 | ac_status=$? |
| 11451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11452 | (exit $ac_status); }; } && |
| 11453 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11454 | { (case "(($ac_try" in |
| 11455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11456 | *) ac_try_echo=$ac_try;; |
| 11457 | esac |
| 11458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11459 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11460 | ac_status=$? |
| 11461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11462 | (exit $ac_status); }; }; then |
| 11463 | eval "$as_ac_var=yes" |
| 11464 | else |
| 11465 | echo "$as_me: failed program was:" >&5 |
| 11466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11467 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11468 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11469 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11470 | |
| 11471 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11472 | conftest$ac_exeext conftest.$ac_ext |
| 11473 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11474 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11475 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11476 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11477 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11478 | cat >>confdefs.h <<_ACEOF |
| 11479 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11480 | _ACEOF |
| 11481 | break |
| 11482 | fi |
| 11483 | done |
| 11484 | |
| 11485 | |
| 11486 | |
| 11487 | for ac_func in strrchr rindex |
| 11488 | do |
| 11489 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11490 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11491 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11492 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11494 | else |
| 11495 | cat >conftest.$ac_ext <<_ACEOF |
| 11496 | /* confdefs.h. */ |
| 11497 | _ACEOF |
| 11498 | cat confdefs.h >>conftest.$ac_ext |
| 11499 | cat >>conftest.$ac_ext <<_ACEOF |
| 11500 | /* end confdefs.h. */ |
| 11501 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11502 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11503 | #define $ac_func innocuous_$ac_func |
| 11504 | |
| 11505 | /* System header to define __stub macros and hopefully few prototypes, |
| 11506 | which can conflict with char $ac_func (); below. |
| 11507 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11508 | <limits.h> exists even on freestanding compilers. */ |
| 11509 | |
| 11510 | #ifdef __STDC__ |
| 11511 | # include <limits.h> |
| 11512 | #else |
| 11513 | # include <assert.h> |
| 11514 | #endif |
| 11515 | |
| 11516 | #undef $ac_func |
| 11517 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11518 | /* Override any GCC internal prototype to avoid an error. |
| 11519 | Use char because int might match the return type of a GCC |
| 11520 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11521 | #ifdef __cplusplus |
| 11522 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11523 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11524 | char $ac_func (); |
| 11525 | /* The GNU C library defines this for functions which it implements |
| 11526 | to always fail with ENOSYS. Some functions are actually named |
| 11527 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11528 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11529 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11530 | #endif |
| 11531 | |
| 11532 | int |
| 11533 | main () |
| 11534 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11535 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11536 | ; |
| 11537 | return 0; |
| 11538 | } |
| 11539 | _ACEOF |
| 11540 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11541 | if { (ac_try="$ac_link" |
| 11542 | case "(($ac_try" in |
| 11543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11544 | *) ac_try_echo=$ac_try;; |
| 11545 | esac |
| 11546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11547 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11548 | ac_status=$? |
| 11549 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11550 | rm -f conftest.er1 |
| 11551 | cat conftest.err >&5 |
| 11552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11553 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11554 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11555 | { (case "(($ac_try" in |
| 11556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11557 | *) ac_try_echo=$ac_try;; |
| 11558 | esac |
| 11559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11560 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11561 | ac_status=$? |
| 11562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11563 | (exit $ac_status); }; } && |
| 11564 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11565 | { (case "(($ac_try" in |
| 11566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11567 | *) ac_try_echo=$ac_try;; |
| 11568 | esac |
| 11569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11570 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11571 | ac_status=$? |
| 11572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11573 | (exit $ac_status); }; }; then |
| 11574 | eval "$as_ac_var=yes" |
| 11575 | else |
| 11576 | echo "$as_me: failed program was:" >&5 |
| 11577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11578 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11579 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11580 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11581 | |
| 11582 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11583 | conftest$ac_exeext conftest.$ac_ext |
| 11584 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11585 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11586 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11587 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11588 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11589 | cat >>confdefs.h <<_ACEOF |
| 11590 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11591 | _ACEOF |
| 11592 | break |
| 11593 | fi |
| 11594 | done |
| 11595 | |
| 11596 | |
| 11597 | |
| 11598 | for ac_func in memcpy bcopy |
| 11599 | do |
| 11600 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11601 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11602 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11603 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11605 | else |
| 11606 | cat >conftest.$ac_ext <<_ACEOF |
| 11607 | /* confdefs.h. */ |
| 11608 | _ACEOF |
| 11609 | cat confdefs.h >>conftest.$ac_ext |
| 11610 | cat >>conftest.$ac_ext <<_ACEOF |
| 11611 | /* end confdefs.h. */ |
| 11612 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11613 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11614 | #define $ac_func innocuous_$ac_func |
| 11615 | |
| 11616 | /* System header to define __stub macros and hopefully few prototypes, |
| 11617 | which can conflict with char $ac_func (); below. |
| 11618 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11619 | <limits.h> exists even on freestanding compilers. */ |
| 11620 | |
| 11621 | #ifdef __STDC__ |
| 11622 | # include <limits.h> |
| 11623 | #else |
| 11624 | # include <assert.h> |
| 11625 | #endif |
| 11626 | |
| 11627 | #undef $ac_func |
| 11628 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11629 | /* Override any GCC internal prototype to avoid an error. |
| 11630 | Use char because int might match the return type of a GCC |
| 11631 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11632 | #ifdef __cplusplus |
| 11633 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11634 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11635 | char $ac_func (); |
| 11636 | /* The GNU C library defines this for functions which it implements |
| 11637 | to always fail with ENOSYS. Some functions are actually named |
| 11638 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11639 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11640 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11641 | #endif |
| 11642 | |
| 11643 | int |
| 11644 | main () |
| 11645 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11646 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11647 | ; |
| 11648 | return 0; |
| 11649 | } |
| 11650 | _ACEOF |
| 11651 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11652 | if { (ac_try="$ac_link" |
| 11653 | case "(($ac_try" in |
| 11654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11655 | *) ac_try_echo=$ac_try;; |
| 11656 | esac |
| 11657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11658 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11659 | ac_status=$? |
| 11660 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11661 | rm -f conftest.er1 |
| 11662 | cat conftest.err >&5 |
| 11663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11664 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11665 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11666 | { (case "(($ac_try" in |
| 11667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11668 | *) ac_try_echo=$ac_try;; |
| 11669 | esac |
| 11670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11671 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11672 | ac_status=$? |
| 11673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11674 | (exit $ac_status); }; } && |
| 11675 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11676 | { (case "(($ac_try" in |
| 11677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11678 | *) ac_try_echo=$ac_try;; |
| 11679 | esac |
| 11680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11681 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11682 | ac_status=$? |
| 11683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11684 | (exit $ac_status); }; }; then |
| 11685 | eval "$as_ac_var=yes" |
| 11686 | else |
| 11687 | echo "$as_me: failed program was:" >&5 |
| 11688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11689 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11690 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11691 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11692 | |
| 11693 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11694 | conftest$ac_exeext conftest.$ac_ext |
| 11695 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11696 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11697 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11698 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11699 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11700 | cat >>confdefs.h <<_ACEOF |
| 11701 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11702 | _ACEOF |
| 11703 | break |
| 11704 | fi |
| 11705 | done |
| 11706 | |
| 11707 | |
| 11708 | |
| 11709 | for ac_func in memmove strcmp |
| 11710 | do |
| 11711 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11712 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11713 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11714 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11716 | else |
| 11717 | cat >conftest.$ac_ext <<_ACEOF |
| 11718 | /* confdefs.h. */ |
| 11719 | _ACEOF |
| 11720 | cat confdefs.h >>conftest.$ac_ext |
| 11721 | cat >>conftest.$ac_ext <<_ACEOF |
| 11722 | /* end confdefs.h. */ |
| 11723 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11724 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11725 | #define $ac_func innocuous_$ac_func |
| 11726 | |
| 11727 | /* System header to define __stub macros and hopefully few prototypes, |
| 11728 | which can conflict with char $ac_func (); below. |
| 11729 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11730 | <limits.h> exists even on freestanding compilers. */ |
| 11731 | |
| 11732 | #ifdef __STDC__ |
| 11733 | # include <limits.h> |
| 11734 | #else |
| 11735 | # include <assert.h> |
| 11736 | #endif |
| 11737 | |
| 11738 | #undef $ac_func |
| 11739 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11740 | /* Override any GCC internal prototype to avoid an error. |
| 11741 | Use char because int might match the return type of a GCC |
| 11742 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11743 | #ifdef __cplusplus |
| 11744 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11745 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11746 | char $ac_func (); |
| 11747 | /* The GNU C library defines this for functions which it implements |
| 11748 | to always fail with ENOSYS. Some functions are actually named |
| 11749 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11750 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11751 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11752 | #endif |
| 11753 | |
| 11754 | int |
| 11755 | main () |
| 11756 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11757 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11758 | ; |
| 11759 | return 0; |
| 11760 | } |
| 11761 | _ACEOF |
| 11762 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11763 | if { (ac_try="$ac_link" |
| 11764 | case "(($ac_try" in |
| 11765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11766 | *) ac_try_echo=$ac_try;; |
| 11767 | esac |
| 11768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11769 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11770 | ac_status=$? |
| 11771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11772 | rm -f conftest.er1 |
| 11773 | cat conftest.err >&5 |
| 11774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11775 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11776 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11777 | { (case "(($ac_try" in |
| 11778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11779 | *) ac_try_echo=$ac_try;; |
| 11780 | esac |
| 11781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11782 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11783 | ac_status=$? |
| 11784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11785 | (exit $ac_status); }; } && |
| 11786 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11787 | { (case "(($ac_try" in |
| 11788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11789 | *) ac_try_echo=$ac_try;; |
| 11790 | esac |
| 11791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11792 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11793 | ac_status=$? |
| 11794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11795 | (exit $ac_status); }; }; then |
| 11796 | eval "$as_ac_var=yes" |
| 11797 | else |
| 11798 | echo "$as_me: failed program was:" >&5 |
| 11799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11800 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11801 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11802 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11803 | |
| 11804 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11805 | conftest$ac_exeext conftest.$ac_ext |
| 11806 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11807 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11808 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11809 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11810 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11811 | cat >>confdefs.h <<_ACEOF |
| 11812 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11813 | _ACEOF |
| 11814 | |
| 11815 | fi |
| 11816 | done |
| 11817 | |
| 11818 | |
| 11819 | |
| 11820 | |
| 11821 | for ac_func in closedir opendir readdir |
| 11822 | do |
| 11823 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11824 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11825 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11826 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11828 | else |
| 11829 | cat >conftest.$ac_ext <<_ACEOF |
| 11830 | /* confdefs.h. */ |
| 11831 | _ACEOF |
| 11832 | cat confdefs.h >>conftest.$ac_ext |
| 11833 | cat >>conftest.$ac_ext <<_ACEOF |
| 11834 | /* end confdefs.h. */ |
| 11835 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11836 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11837 | #define $ac_func innocuous_$ac_func |
| 11838 | |
| 11839 | /* System header to define __stub macros and hopefully few prototypes, |
| 11840 | which can conflict with char $ac_func (); below. |
| 11841 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11842 | <limits.h> exists even on freestanding compilers. */ |
| 11843 | |
| 11844 | #ifdef __STDC__ |
| 11845 | # include <limits.h> |
| 11846 | #else |
| 11847 | # include <assert.h> |
| 11848 | #endif |
| 11849 | |
| 11850 | #undef $ac_func |
| 11851 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11852 | /* Override any GCC internal prototype to avoid an error. |
| 11853 | Use char because int might match the return type of a GCC |
| 11854 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11855 | #ifdef __cplusplus |
| 11856 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11857 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11858 | char $ac_func (); |
| 11859 | /* The GNU C library defines this for functions which it implements |
| 11860 | to always fail with ENOSYS. Some functions are actually named |
| 11861 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11862 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11863 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11864 | #endif |
| 11865 | |
| 11866 | int |
| 11867 | main () |
| 11868 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11869 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11870 | ; |
| 11871 | return 0; |
| 11872 | } |
| 11873 | _ACEOF |
| 11874 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11875 | if { (ac_try="$ac_link" |
| 11876 | case "(($ac_try" in |
| 11877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11878 | *) ac_try_echo=$ac_try;; |
| 11879 | esac |
| 11880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11881 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11882 | ac_status=$? |
| 11883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11884 | rm -f conftest.er1 |
| 11885 | cat conftest.err >&5 |
| 11886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11887 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11888 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11889 | { (case "(($ac_try" in |
| 11890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11891 | *) ac_try_echo=$ac_try;; |
| 11892 | esac |
| 11893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11894 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11895 | ac_status=$? |
| 11896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11897 | (exit $ac_status); }; } && |
| 11898 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11899 | { (case "(($ac_try" in |
| 11900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11901 | *) ac_try_echo=$ac_try;; |
| 11902 | esac |
| 11903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11904 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11905 | ac_status=$? |
| 11906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11907 | (exit $ac_status); }; }; then |
| 11908 | eval "$as_ac_var=yes" |
| 11909 | else |
| 11910 | echo "$as_me: failed program was:" >&5 |
| 11911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11912 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11913 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11914 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11915 | |
| 11916 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11917 | conftest$ac_exeext conftest.$ac_ext |
| 11918 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11919 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11920 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11921 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11922 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11923 | cat >>confdefs.h <<_ACEOF |
| 11924 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11925 | _ACEOF |
| 11926 | |
| 11927 | fi |
| 11928 | done |
| 11929 | |
| 11930 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11931 | # Check whether --enable-shared was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11932 | if test "${enable_shared+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11933 | enableval=$enable_shared; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11934 | case $enableval in |
| 11935 | yes) enable_shared=yes ;; |
| 11936 | no) enable_shared=no ;; |
| 11937 | *) |
| 11938 | enable_shared=no |
| 11939 | # Look at the argument we got. We use all the common list separators. |
| 11940 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 11941 | for pkg in $enableval; do |
| 11942 | IFS="$lt_save_ifs" |
| 11943 | if test "X$pkg" = "X$p"; then |
| 11944 | enable_shared=yes |
| 11945 | fi |
| 11946 | done |
| 11947 | IFS="$lt_save_ifs" |
| 11948 | ;; |
| 11949 | esac |
| 11950 | else |
| 11951 | enable_shared=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11952 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11953 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11954 | |
| 11955 | # Check whether --enable-static was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11956 | if test "${enable_static+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11957 | enableval=$enable_static; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11958 | case $enableval in |
| 11959 | yes) enable_static=yes ;; |
| 11960 | no) enable_static=no ;; |
| 11961 | *) |
| 11962 | enable_static=no |
| 11963 | # Look at the argument we got. We use all the common list separators. |
| 11964 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 11965 | for pkg in $enableval; do |
| 11966 | IFS="$lt_save_ifs" |
| 11967 | if test "X$pkg" = "X$p"; then |
| 11968 | enable_static=yes |
| 11969 | fi |
| 11970 | done |
| 11971 | IFS="$lt_save_ifs" |
| 11972 | ;; |
| 11973 | esac |
| 11974 | else |
| 11975 | enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11976 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11977 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11978 | |
| 11979 | # Check whether --enable-fast-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11980 | if test "${enable_fast_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11981 | enableval=$enable_fast_install; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11982 | case $enableval in |
| 11983 | yes) enable_fast_install=yes ;; |
| 11984 | no) enable_fast_install=no ;; |
| 11985 | *) |
| 11986 | enable_fast_install=no |
| 11987 | # Look at the argument we got. We use all the common list separators. |
| 11988 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 11989 | for pkg in $enableval; do |
| 11990 | IFS="$lt_save_ifs" |
| 11991 | if test "X$pkg" = "X$p"; then |
| 11992 | enable_fast_install=yes |
| 11993 | fi |
| 11994 | done |
| 11995 | IFS="$lt_save_ifs" |
| 11996 | ;; |
| 11997 | esac |
| 11998 | else |
| 11999 | enable_fast_install=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12000 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12001 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12002 | |
| 12003 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 12004 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12005 | if test "${lt_cv_path_SED+set}" = set; then |
| 12006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12007 | else |
| 12008 | # Loop through the user's path and test for sed and gsed. |
| 12009 | # Then use that list of sed's as ones to test for truncation. |
| 12010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12011 | for as_dir in $PATH |
| 12012 | do |
| 12013 | IFS=$as_save_IFS |
| 12014 | test -z "$as_dir" && as_dir=. |
| 12015 | for lt_ac_prog in sed gsed; do |
| 12016 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12017 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 12018 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 12019 | fi |
| 12020 | done |
| 12021 | done |
| 12022 | done |
| 12023 | lt_ac_max=0 |
| 12024 | lt_ac_count=0 |
| 12025 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 12026 | # along with /bin/sed that truncates output. |
| 12027 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12028 | test ! -f $lt_ac_sed && continue |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12029 | cat /dev/null > conftest.in |
| 12030 | lt_ac_count=0 |
| 12031 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 12032 | # Check for GNU sed and select it if it is found. |
| 12033 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 12034 | lt_cv_path_SED=$lt_ac_sed |
| 12035 | break |
| 12036 | fi |
| 12037 | while true; do |
| 12038 | cat conftest.in conftest.in >conftest.tmp |
| 12039 | mv conftest.tmp conftest.in |
| 12040 | cp conftest.in conftest.nl |
| 12041 | echo >>conftest.nl |
| 12042 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 12043 | cmp -s conftest.out conftest.nl || break |
| 12044 | # 10000 chars as input seems more than enough |
| 12045 | test $lt_ac_count -gt 10 && break |
| 12046 | lt_ac_count=`expr $lt_ac_count + 1` |
| 12047 | if test $lt_ac_count -gt $lt_ac_max; then |
| 12048 | lt_ac_max=$lt_ac_count |
| 12049 | lt_cv_path_SED=$lt_ac_sed |
| 12050 | fi |
| 12051 | done |
| 12052 | done |
| 12053 | |
| 12054 | fi |
| 12055 | |
| 12056 | SED=$lt_cv_path_SED |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12057 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 12058 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12059 | |
| 12060 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12061 | # Check whether --with-gnu-ld was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12062 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12063 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12064 | else |
| 12065 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12066 | fi |
| 12067 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12068 | ac_prog=ld |
| 12069 | if test "$GCC" = yes; then |
| 12070 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12071 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 12072 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12073 | case $host in |
| 12074 | *-*-mingw*) |
| 12075 | # gcc leaves a trailing carriage return which upsets mingw |
| 12076 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 12077 | *) |
| 12078 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 12079 | esac |
| 12080 | case $ac_prog in |
| 12081 | # Accept absolute paths. |
| 12082 | [\\/]* | ?:[\\/]*) |
| 12083 | re_direlt='/[^/][^/]*/\.\./' |
| 12084 | # Canonicalize the pathname of ld |
| 12085 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 12086 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 12087 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 12088 | done |
| 12089 | test -z "$LD" && LD="$ac_prog" |
| 12090 | ;; |
| 12091 | "") |
| 12092 | # If it fails, then pretend we aren't using GCC. |
| 12093 | ac_prog=ld |
| 12094 | ;; |
| 12095 | *) |
| 12096 | # If it is relative, then search for the first ld in PATH. |
| 12097 | with_gnu_ld=unknown |
| 12098 | ;; |
| 12099 | esac |
| 12100 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12101 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 12102 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12103 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12104 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 12105 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12106 | fi |
| 12107 | if test "${lt_cv_path_LD+set}" = set; then |
| 12108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12109 | else |
| 12110 | if test -z "$LD"; then |
| 12111 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12112 | for ac_dir in $PATH; do |
| 12113 | IFS="$lt_save_ifs" |
| 12114 | test -z "$ac_dir" && ac_dir=. |
| 12115 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 12116 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 12117 | # Check to see if the program is GNU ld. I'd rather use --version, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12118 | # but apparently some variants of GNU ld only accept -v. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12119 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 12120 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 12121 | *GNU* | *'with BFD'*) |
| 12122 | test "$with_gnu_ld" != no && break |
| 12123 | ;; |
| 12124 | *) |
| 12125 | test "$with_gnu_ld" != yes && break |
| 12126 | ;; |
| 12127 | esac |
| 12128 | fi |
| 12129 | done |
| 12130 | IFS="$lt_save_ifs" |
| 12131 | else |
| 12132 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 12133 | fi |
| 12134 | fi |
| 12135 | |
| 12136 | LD="$lt_cv_path_LD" |
| 12137 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12138 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 12139 | echo "${ECHO_T}$LD" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12140 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12141 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12142 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12143 | fi |
| 12144 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 12145 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 12146 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12147 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 12148 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12149 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 12150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12151 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12152 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12153 | case `$LD -v 2>&1 </dev/null` in |
| 12154 | *GNU* | *'with BFD'*) |
| 12155 | lt_cv_prog_gnu_ld=yes |
| 12156 | ;; |
| 12157 | *) |
| 12158 | lt_cv_prog_gnu_ld=no |
| 12159 | ;; |
| 12160 | esac |
| 12161 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12162 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 12163 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12164 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 12165 | |
| 12166 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12167 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 12168 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12169 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 12170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12171 | else |
| 12172 | lt_cv_ld_reload_flag='-r' |
| 12173 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12174 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 12175 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12176 | reload_flag=$lt_cv_ld_reload_flag |
| 12177 | case $reload_flag in |
| 12178 | "" | " "*) ;; |
| 12179 | *) reload_flag=" $reload_flag" ;; |
| 12180 | esac |
| 12181 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12182 | case $host_os in |
| 12183 | darwin*) |
| 12184 | if test "$GCC" = yes; then |
Evan Cheng | f4334c7 | 2006-08-09 05:40:14 +0000 | [diff] [blame] | 12185 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12186 | else |
| 12187 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12188 | fi |
| 12189 | ;; |
| 12190 | esac |
| 12191 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12192 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 12193 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12194 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 12195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12196 | else |
| 12197 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 12198 | lt_cv_file_magic_test_file= |
| 12199 | lt_cv_deplibs_check_method='unknown' |
| 12200 | # Need to set the preceding variable on all platforms that support |
| 12201 | # interlibrary dependencies. |
| 12202 | # 'none' -- dependencies not supported. |
| 12203 | # `unknown' -- same as none, but documents that we really don't know. |
| 12204 | # 'pass_all' -- all dependencies passed with no checks. |
| 12205 | # 'test_compile' -- check by making test program. |
| 12206 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 12207 | # which responds to the $file_magic_cmd with a given extended regex. |
| 12208 | # If you have `file' or equivalent on your system and you're not sure |
| 12209 | # whether `pass_all' will *always* work, you probably want this one. |
| 12210 | |
| 12211 | case $host_os in |
| 12212 | aix4* | aix5*) |
| 12213 | lt_cv_deplibs_check_method=pass_all |
| 12214 | ;; |
| 12215 | |
| 12216 | beos*) |
| 12217 | lt_cv_deplibs_check_method=pass_all |
| 12218 | ;; |
| 12219 | |
| 12220 | bsdi[45]*) |
| 12221 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 12222 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 12223 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 12224 | ;; |
| 12225 | |
| 12226 | cygwin*) |
| 12227 | # func_win32_libid is a shell function defined in ltmain.sh |
| 12228 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 12229 | lt_cv_file_magic_cmd='func_win32_libid' |
| 12230 | ;; |
| 12231 | |
| 12232 | mingw* | pw32*) |
| 12233 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 12234 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 12235 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 12236 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 12237 | ;; |
| 12238 | |
| 12239 | darwin* | rhapsody*) |
| 12240 | lt_cv_deplibs_check_method=pass_all |
| 12241 | ;; |
| 12242 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12243 | freebsd* | kfreebsd*-gnu | dragonfly*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12244 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12245 | case $host_cpu in |
| 12246 | i*86 ) |
| 12247 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 12248 | # Let's accept both of them until this is cleared up. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12249 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12250 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12251 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 12252 | ;; |
| 12253 | esac |
| 12254 | else |
| 12255 | lt_cv_deplibs_check_method=pass_all |
| 12256 | fi |
| 12257 | ;; |
| 12258 | |
| 12259 | gnu*) |
| 12260 | lt_cv_deplibs_check_method=pass_all |
| 12261 | ;; |
| 12262 | |
| 12263 | hpux10.20* | hpux11*) |
| 12264 | lt_cv_file_magic_cmd=/usr/bin/file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12265 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12266 | ia64*) |
| 12267 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 12268 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 12269 | ;; |
| 12270 | hppa*64*) |
| 12271 | 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]' |
| 12272 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 12273 | ;; |
| 12274 | *) |
| 12275 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 12276 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 12277 | ;; |
| 12278 | esac |
| 12279 | ;; |
| 12280 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12281 | interix3*) |
| 12282 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 12283 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 12284 | ;; |
| 12285 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12286 | irix5* | irix6* | nonstopux*) |
| 12287 | case $LD in |
| 12288 | *-32|*"-32 ") libmagic=32-bit;; |
| 12289 | *-n32|*"-n32 ") libmagic=N32;; |
| 12290 | *-64|*"-64 ") libmagic=64-bit;; |
| 12291 | *) libmagic=never-match;; |
| 12292 | esac |
| 12293 | lt_cv_deplibs_check_method=pass_all |
| 12294 | ;; |
| 12295 | |
| 12296 | # This must be Linux ELF. |
| 12297 | linux*) |
| 12298 | lt_cv_deplibs_check_method=pass_all |
| 12299 | ;; |
| 12300 | |
| 12301 | netbsd*) |
| 12302 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12303 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 12304 | else |
| 12305 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 12306 | fi |
| 12307 | ;; |
| 12308 | |
| 12309 | newos6*) |
| 12310 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 12311 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12312 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 12313 | ;; |
| 12314 | |
| 12315 | nto-qnx*) |
| 12316 | lt_cv_deplibs_check_method=unknown |
| 12317 | ;; |
| 12318 | |
| 12319 | openbsd*) |
| 12320 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12321 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 12322 | else |
| 12323 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 12324 | fi |
| 12325 | ;; |
| 12326 | |
| 12327 | osf3* | osf4* | osf5*) |
| 12328 | lt_cv_deplibs_check_method=pass_all |
| 12329 | ;; |
| 12330 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12331 | solaris*) |
| 12332 | lt_cv_deplibs_check_method=pass_all |
| 12333 | ;; |
| 12334 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12335 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12336 | case $host_vendor in |
| 12337 | motorola) |
| 12338 | 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]' |
| 12339 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 12340 | ;; |
| 12341 | ncr) |
| 12342 | lt_cv_deplibs_check_method=pass_all |
| 12343 | ;; |
| 12344 | sequent) |
| 12345 | lt_cv_file_magic_cmd='/bin/file' |
| 12346 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 12347 | ;; |
| 12348 | sni) |
| 12349 | lt_cv_file_magic_cmd='/bin/file' |
| 12350 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 12351 | lt_cv_file_magic_test_file=/lib/libc.so |
| 12352 | ;; |
| 12353 | siemens) |
| 12354 | lt_cv_deplibs_check_method=pass_all |
| 12355 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12356 | pc) |
| 12357 | lt_cv_deplibs_check_method=pass_all |
| 12358 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12359 | esac |
| 12360 | ;; |
| 12361 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12362 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12363 | lt_cv_deplibs_check_method=pass_all |
| 12364 | ;; |
| 12365 | esac |
| 12366 | |
| 12367 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12368 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 12369 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12370 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 12371 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 12372 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 12373 | |
| 12374 | |
| 12375 | |
| 12376 | # If no C compiler was specified, use CC. |
| 12377 | LTCC=${LTCC-"$CC"} |
| 12378 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12379 | # If no C compiler flags were specified, use CFLAGS. |
| 12380 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 12381 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12382 | # Allow CC to be a program name with arguments. |
| 12383 | compiler=$CC |
| 12384 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12385 | # Check whether --enable-libtool-lock was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12386 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12387 | enableval=$enable_libtool_lock; |
| 12388 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12389 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12390 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 12391 | |
| 12392 | # Some flags need to be propagated to the compiler or linker for good |
| 12393 | # libtool support. |
| 12394 | case $host in |
| 12395 | ia64-*-hpux*) |
| 12396 | # Find out which ABI we are using. |
| 12397 | echo 'int i;' > conftest.$ac_ext |
| 12398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12399 | (eval $ac_compile) 2>&5 |
| 12400 | ac_status=$? |
| 12401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12402 | (exit $ac_status); }; then |
| 12403 | case `/usr/bin/file conftest.$ac_objext` in |
| 12404 | *ELF-32*) |
| 12405 | HPUX_IA64_MODE="32" |
| 12406 | ;; |
| 12407 | *ELF-64*) |
| 12408 | HPUX_IA64_MODE="64" |
| 12409 | ;; |
| 12410 | esac |
| 12411 | fi |
| 12412 | rm -rf conftest* |
| 12413 | ;; |
| 12414 | *-*-irix6*) |
| 12415 | # Find out which ABI we are using. |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 12416 | echo '#line 12416 "configure"' > conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12418 | (eval $ac_compile) 2>&5 |
| 12419 | ac_status=$? |
| 12420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12421 | (exit $ac_status); }; then |
| 12422 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 12423 | case `/usr/bin/file conftest.$ac_objext` in |
| 12424 | *32-bit*) |
| 12425 | LD="${LD-ld} -melf32bsmip" |
| 12426 | ;; |
| 12427 | *N32*) |
| 12428 | LD="${LD-ld} -melf32bmipn32" |
| 12429 | ;; |
| 12430 | *64-bit*) |
| 12431 | LD="${LD-ld} -melf64bmip" |
| 12432 | ;; |
| 12433 | esac |
| 12434 | else |
| 12435 | case `/usr/bin/file conftest.$ac_objext` in |
| 12436 | *32-bit*) |
| 12437 | LD="${LD-ld} -32" |
| 12438 | ;; |
| 12439 | *N32*) |
| 12440 | LD="${LD-ld} -n32" |
| 12441 | ;; |
| 12442 | *64-bit*) |
| 12443 | LD="${LD-ld} -64" |
| 12444 | ;; |
| 12445 | esac |
| 12446 | fi |
| 12447 | fi |
| 12448 | rm -rf conftest* |
| 12449 | ;; |
| 12450 | |
| 12451 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 12452 | # Find out which ABI we are using. |
| 12453 | echo 'int i;' > conftest.$ac_ext |
| 12454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12455 | (eval $ac_compile) 2>&5 |
| 12456 | ac_status=$? |
| 12457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12458 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12459 | case `/usr/bin/file conftest.o` in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12460 | *32-bit*) |
| 12461 | case $host in |
| 12462 | x86_64-*linux*) |
| 12463 | LD="${LD-ld} -m elf_i386" |
| 12464 | ;; |
| 12465 | ppc64-*linux*|powerpc64-*linux*) |
| 12466 | LD="${LD-ld} -m elf32ppclinux" |
| 12467 | ;; |
| 12468 | s390x-*linux*) |
| 12469 | LD="${LD-ld} -m elf_s390" |
| 12470 | ;; |
| 12471 | sparc64-*linux*) |
| 12472 | LD="${LD-ld} -m elf32_sparc" |
| 12473 | ;; |
| 12474 | esac |
| 12475 | ;; |
| 12476 | *64-bit*) |
| 12477 | case $host in |
| 12478 | x86_64-*linux*) |
| 12479 | LD="${LD-ld} -m elf_x86_64" |
| 12480 | ;; |
| 12481 | ppc*-*linux*|powerpc*-*linux*) |
| 12482 | LD="${LD-ld} -m elf64ppc" |
| 12483 | ;; |
| 12484 | s390*-*linux*) |
| 12485 | LD="${LD-ld} -m elf64_s390" |
| 12486 | ;; |
| 12487 | sparc*-*linux*) |
| 12488 | LD="${LD-ld} -m elf64_sparc" |
| 12489 | ;; |
| 12490 | esac |
| 12491 | ;; |
| 12492 | esac |
| 12493 | fi |
| 12494 | rm -rf conftest* |
| 12495 | ;; |
| 12496 | |
| 12497 | *-*-sco3.2v5*) |
| 12498 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 12499 | SAVE_CFLAGS="$CFLAGS" |
| 12500 | CFLAGS="$CFLAGS -belf" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12501 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 12502 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12503 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 12504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12505 | else |
| 12506 | ac_ext=c |
| 12507 | ac_cpp='$CPP $CPPFLAGS' |
| 12508 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12509 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12510 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12511 | |
| 12512 | cat >conftest.$ac_ext <<_ACEOF |
| 12513 | /* confdefs.h. */ |
| 12514 | _ACEOF |
| 12515 | cat confdefs.h >>conftest.$ac_ext |
| 12516 | cat >>conftest.$ac_ext <<_ACEOF |
| 12517 | /* end confdefs.h. */ |
| 12518 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12519 | int |
| 12520 | main () |
| 12521 | { |
| 12522 | |
| 12523 | ; |
| 12524 | return 0; |
| 12525 | } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12526 | _ACEOF |
| 12527 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12528 | if { (ac_try="$ac_link" |
| 12529 | case "(($ac_try" in |
| 12530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12531 | *) ac_try_echo=$ac_try;; |
| 12532 | esac |
| 12533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12534 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12535 | ac_status=$? |
| 12536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12537 | rm -f conftest.er1 |
| 12538 | cat conftest.err >&5 |
| 12539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12540 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12541 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12542 | { (case "(($ac_try" in |
| 12543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12544 | *) ac_try_echo=$ac_try;; |
| 12545 | esac |
| 12546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12547 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12548 | ac_status=$? |
| 12549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12550 | (exit $ac_status); }; } && |
| 12551 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12552 | { (case "(($ac_try" in |
| 12553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12554 | *) ac_try_echo=$ac_try;; |
| 12555 | esac |
| 12556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12557 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12558 | ac_status=$? |
| 12559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12560 | (exit $ac_status); }; }; then |
| 12561 | lt_cv_cc_needs_belf=yes |
| 12562 | else |
| 12563 | echo "$as_me: failed program was:" >&5 |
| 12564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12565 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12566 | lt_cv_cc_needs_belf=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12567 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12568 | |
| 12569 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12570 | conftest$ac_exeext conftest.$ac_ext |
| 12571 | ac_ext=c |
| 12572 | ac_cpp='$CPP $CPPFLAGS' |
| 12573 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12574 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12575 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12576 | |
| 12577 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12578 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 12579 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12580 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 12581 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 12582 | CFLAGS="$SAVE_CFLAGS" |
| 12583 | fi |
| 12584 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12585 | sparc*-*solaris*) |
| 12586 | # Find out which ABI we are using. |
| 12587 | echo 'int i;' > conftest.$ac_ext |
| 12588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12589 | (eval $ac_compile) 2>&5 |
| 12590 | ac_status=$? |
| 12591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12592 | (exit $ac_status); }; then |
| 12593 | case `/usr/bin/file conftest.o` in |
| 12594 | *64-bit*) |
| 12595 | case $lt_cv_prog_gnu_ld in |
| 12596 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 12597 | *) LD="${LD-ld} -64" ;; |
| 12598 | esac |
| 12599 | ;; |
| 12600 | esac |
| 12601 | fi |
| 12602 | rm -rf conftest* |
| 12603 | ;; |
| 12604 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12605 | |
| 12606 | esac |
| 12607 | |
| 12608 | need_locks="$enable_libtool_lock" |
| 12609 | |
| 12610 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12611 | |
| 12612 | |
| 12613 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 12614 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 12615 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12616 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12617 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12618 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12619 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12620 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12621 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 12622 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12623 | if test -z "$CXXCPP"; then |
| 12624 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12626 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12627 | # Double quotes because CXXCPP needs to be expanded |
| 12628 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 12629 | do |
| 12630 | ac_preproc_ok=false |
| 12631 | for ac_cxx_preproc_warn_flag in '' yes |
| 12632 | do |
| 12633 | # Use a header file that comes with gcc, so configuring glibc |
| 12634 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12635 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12636 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12637 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12638 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12639 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12640 | /* confdefs.h. */ |
| 12641 | _ACEOF |
| 12642 | cat confdefs.h >>conftest.$ac_ext |
| 12643 | cat >>conftest.$ac_ext <<_ACEOF |
| 12644 | /* end confdefs.h. */ |
| 12645 | #ifdef __STDC__ |
| 12646 | # include <limits.h> |
| 12647 | #else |
| 12648 | # include <assert.h> |
| 12649 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12650 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12651 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12652 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12653 | case "(($ac_try" in |
| 12654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12655 | *) ac_try_echo=$ac_try;; |
| 12656 | esac |
| 12657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12658 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12659 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12660 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12661 | rm -f conftest.er1 |
| 12662 | cat conftest.err >&5 |
| 12663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12664 | (exit $ac_status); } >/dev/null; then |
| 12665 | if test -s conftest.err; then |
| 12666 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12667 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12668 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12669 | ac_cpp_err= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12670 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12671 | else |
| 12672 | ac_cpp_err=yes |
| 12673 | fi |
| 12674 | if test -z "$ac_cpp_err"; then |
| 12675 | : |
| 12676 | else |
| 12677 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12679 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12680 | # Broken: fails on valid input. |
| 12681 | continue |
| 12682 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12683 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12684 | rm -f conftest.err conftest.$ac_ext |
| 12685 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12686 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12687 | # can be detected and how. |
| 12688 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12689 | /* confdefs.h. */ |
| 12690 | _ACEOF |
| 12691 | cat confdefs.h >>conftest.$ac_ext |
| 12692 | cat >>conftest.$ac_ext <<_ACEOF |
| 12693 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12694 | #include <ac_nonexistent.h> |
| 12695 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12696 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12697 | case "(($ac_try" in |
| 12698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12699 | *) ac_try_echo=$ac_try;; |
| 12700 | esac |
| 12701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12702 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12703 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12704 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12705 | rm -f conftest.er1 |
| 12706 | cat conftest.err >&5 |
| 12707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12708 | (exit $ac_status); } >/dev/null; then |
| 12709 | if test -s conftest.err; then |
| 12710 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12711 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12712 | else |
| 12713 | ac_cpp_err= |
| 12714 | fi |
| 12715 | else |
| 12716 | ac_cpp_err=yes |
| 12717 | fi |
| 12718 | if test -z "$ac_cpp_err"; then |
| 12719 | # Broken: success on invalid input. |
| 12720 | continue |
| 12721 | else |
| 12722 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12724 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12725 | # Passes both tests. |
| 12726 | ac_preproc_ok=: |
| 12727 | break |
| 12728 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12729 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12730 | rm -f conftest.err conftest.$ac_ext |
| 12731 | |
| 12732 | done |
| 12733 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 12734 | rm -f conftest.err conftest.$ac_ext |
| 12735 | if $ac_preproc_ok; then |
| 12736 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12737 | fi |
| 12738 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12739 | done |
| 12740 | ac_cv_prog_CXXCPP=$CXXCPP |
| 12741 | |
| 12742 | fi |
| 12743 | CXXCPP=$ac_cv_prog_CXXCPP |
| 12744 | else |
| 12745 | ac_cv_prog_CXXCPP=$CXXCPP |
| 12746 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12747 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 12748 | echo "${ECHO_T}$CXXCPP" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12749 | ac_preproc_ok=false |
| 12750 | for ac_cxx_preproc_warn_flag in '' yes |
| 12751 | do |
| 12752 | # Use a header file that comes with gcc, so configuring glibc |
| 12753 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12754 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12755 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12756 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12757 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12758 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12759 | /* confdefs.h. */ |
| 12760 | _ACEOF |
| 12761 | cat confdefs.h >>conftest.$ac_ext |
| 12762 | cat >>conftest.$ac_ext <<_ACEOF |
| 12763 | /* end confdefs.h. */ |
| 12764 | #ifdef __STDC__ |
| 12765 | # include <limits.h> |
| 12766 | #else |
| 12767 | # include <assert.h> |
| 12768 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12769 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12770 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12771 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12772 | case "(($ac_try" in |
| 12773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12774 | *) ac_try_echo=$ac_try;; |
| 12775 | esac |
| 12776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12777 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12778 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12779 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12780 | rm -f conftest.er1 |
| 12781 | cat conftest.err >&5 |
| 12782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12783 | (exit $ac_status); } >/dev/null; then |
| 12784 | if test -s conftest.err; then |
| 12785 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12786 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12787 | else |
| 12788 | ac_cpp_err= |
| 12789 | fi |
| 12790 | else |
| 12791 | ac_cpp_err=yes |
| 12792 | fi |
| 12793 | if test -z "$ac_cpp_err"; then |
| 12794 | : |
| 12795 | else |
| 12796 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12798 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12799 | # Broken: fails on valid input. |
| 12800 | continue |
| 12801 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12802 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12803 | rm -f conftest.err conftest.$ac_ext |
| 12804 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12805 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12806 | # can be detected and how. |
| 12807 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12808 | /* confdefs.h. */ |
| 12809 | _ACEOF |
| 12810 | cat confdefs.h >>conftest.$ac_ext |
| 12811 | cat >>conftest.$ac_ext <<_ACEOF |
| 12812 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12813 | #include <ac_nonexistent.h> |
| 12814 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12815 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12816 | case "(($ac_try" in |
| 12817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12818 | *) ac_try_echo=$ac_try;; |
| 12819 | esac |
| 12820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12821 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12822 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12823 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12824 | rm -f conftest.er1 |
| 12825 | cat conftest.err >&5 |
| 12826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12827 | (exit $ac_status); } >/dev/null; then |
| 12828 | if test -s conftest.err; then |
| 12829 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12830 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12831 | else |
| 12832 | ac_cpp_err= |
| 12833 | fi |
| 12834 | else |
| 12835 | ac_cpp_err=yes |
| 12836 | fi |
| 12837 | if test -z "$ac_cpp_err"; then |
| 12838 | # Broken: success on invalid input. |
| 12839 | continue |
| 12840 | else |
| 12841 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12842 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12843 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12844 | # Passes both tests. |
| 12845 | ac_preproc_ok=: |
| 12846 | break |
| 12847 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12848 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12849 | rm -f conftest.err conftest.$ac_ext |
| 12850 | |
| 12851 | done |
| 12852 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 12853 | rm -f conftest.err conftest.$ac_ext |
| 12854 | if $ac_preproc_ok; then |
| 12855 | : |
| 12856 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12857 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 12858 | See \`config.log' for more details." >&5 |
| 12859 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 12860 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12861 | { (exit 1); exit 1; }; } |
| 12862 | fi |
| 12863 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12864 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12865 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12866 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12867 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12868 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12869 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12870 | fi |
| 12871 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12872 | |
| 12873 | ac_ext=f |
| 12874 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 12875 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12876 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 12877 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12878 | for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12879 | do |
| 12880 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 12881 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12882 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12883 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12884 | if test "${ac_cv_prog_F77+set}" = set; then |
| 12885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12886 | else |
| 12887 | if test -n "$F77"; then |
| 12888 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 12889 | else |
| 12890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12891 | for as_dir in $PATH |
| 12892 | do |
| 12893 | IFS=$as_save_IFS |
| 12894 | test -z "$as_dir" && as_dir=. |
| 12895 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12896 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12897 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 12898 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12899 | break 2 |
| 12900 | fi |
| 12901 | done |
| 12902 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12903 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12904 | |
| 12905 | fi |
| 12906 | fi |
| 12907 | F77=$ac_cv_prog_F77 |
| 12908 | if test -n "$F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12909 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 12910 | echo "${ECHO_T}$F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12911 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12912 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12913 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12914 | fi |
| 12915 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12916 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12917 | test -n "$F77" && break |
| 12918 | done |
| 12919 | fi |
| 12920 | if test -z "$F77"; then |
| 12921 | ac_ct_F77=$F77 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12922 | for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12923 | do |
| 12924 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12925 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12926 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12927 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12928 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 12929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12930 | else |
| 12931 | if test -n "$ac_ct_F77"; then |
| 12932 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 12933 | else |
| 12934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12935 | for as_dir in $PATH |
| 12936 | do |
| 12937 | IFS=$as_save_IFS |
| 12938 | test -z "$as_dir" && as_dir=. |
| 12939 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12940 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12941 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 12942 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12943 | break 2 |
| 12944 | fi |
| 12945 | done |
| 12946 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12947 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12948 | |
| 12949 | fi |
| 12950 | fi |
| 12951 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 12952 | if test -n "$ac_ct_F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12953 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 12954 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12955 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12956 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12957 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12958 | fi |
| 12959 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12960 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12961 | test -n "$ac_ct_F77" && break |
| 12962 | done |
| 12963 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12964 | if test "x$ac_ct_F77" = x; then |
| 12965 | F77="" |
| 12966 | else |
| 12967 | case $cross_compiling:$ac_tool_warned in |
| 12968 | yes:) |
| 12969 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 12970 | whose name does not start with the host triplet. If you think this |
| 12971 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 12972 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 12973 | whose name does not start with the host triplet. If you think this |
| 12974 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 12975 | ac_tool_warned=yes ;; |
| 12976 | esac |
| 12977 | F77=$ac_ct_F77 |
| 12978 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12979 | fi |
| 12980 | |
| 12981 | |
| 12982 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12983 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12984 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12985 | { (ac_try="$ac_compiler --version >&5" |
| 12986 | case "(($ac_try" in |
| 12987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12988 | *) ac_try_echo=$ac_try;; |
| 12989 | esac |
| 12990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12991 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12992 | ac_status=$? |
| 12993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12994 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12995 | { (ac_try="$ac_compiler -v >&5" |
| 12996 | case "(($ac_try" in |
| 12997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12998 | *) ac_try_echo=$ac_try;; |
| 12999 | esac |
| 13000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13001 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13002 | ac_status=$? |
| 13003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13004 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13005 | { (ac_try="$ac_compiler -V >&5" |
| 13006 | case "(($ac_try" in |
| 13007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13008 | *) ac_try_echo=$ac_try;; |
| 13009 | esac |
| 13010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13011 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13012 | ac_status=$? |
| 13013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13014 | (exit $ac_status); } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13015 | rm -f a.out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13016 | |
| 13017 | # If we don't use `.F' as extension, the preprocessor is not run on the |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13018 | # input file. (Note that this only needs to work for GNU compilers.) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13019 | ac_save_ext=$ac_ext |
| 13020 | ac_ext=F |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13021 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 13022 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13023 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 13024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13025 | else |
| 13026 | cat >conftest.$ac_ext <<_ACEOF |
| 13027 | program main |
| 13028 | #ifndef __GNUC__ |
| 13029 | choke me |
| 13030 | #endif |
| 13031 | |
| 13032 | end |
| 13033 | _ACEOF |
| 13034 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13035 | if { (ac_try="$ac_compile" |
| 13036 | case "(($ac_try" in |
| 13037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13038 | *) ac_try_echo=$ac_try;; |
| 13039 | esac |
| 13040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13041 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13042 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13043 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13044 | rm -f conftest.er1 |
| 13045 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13047 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13048 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13049 | { (case "(($ac_try" in |
| 13050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13051 | *) ac_try_echo=$ac_try;; |
| 13052 | esac |
| 13053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13054 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13055 | ac_status=$? |
| 13056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13057 | (exit $ac_status); }; } && |
| 13058 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13059 | { (case "(($ac_try" in |
| 13060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13061 | *) ac_try_echo=$ac_try;; |
| 13062 | esac |
| 13063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13064 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13065 | ac_status=$? |
| 13066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13067 | (exit $ac_status); }; }; then |
| 13068 | ac_compiler_gnu=yes |
| 13069 | else |
| 13070 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13072 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13073 | ac_compiler_gnu=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13074 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13075 | |
| 13076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13077 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 13078 | |
| 13079 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13080 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 13081 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13082 | ac_ext=$ac_save_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13083 | ac_test_FFLAGS=${FFLAGS+set} |
| 13084 | ac_save_FFLAGS=$FFLAGS |
| 13085 | FFLAGS= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13086 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 13087 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13088 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 13089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13090 | else |
| 13091 | FFLAGS=-g |
| 13092 | cat >conftest.$ac_ext <<_ACEOF |
| 13093 | program main |
| 13094 | |
| 13095 | end |
| 13096 | _ACEOF |
| 13097 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13098 | if { (ac_try="$ac_compile" |
| 13099 | case "(($ac_try" in |
| 13100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13101 | *) ac_try_echo=$ac_try;; |
| 13102 | esac |
| 13103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13104 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13105 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13106 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13107 | rm -f conftest.er1 |
| 13108 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13110 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13111 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13112 | { (case "(($ac_try" in |
| 13113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13114 | *) ac_try_echo=$ac_try;; |
| 13115 | esac |
| 13116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13117 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13118 | ac_status=$? |
| 13119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13120 | (exit $ac_status); }; } && |
| 13121 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13122 | { (case "(($ac_try" in |
| 13123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13124 | *) ac_try_echo=$ac_try;; |
| 13125 | esac |
| 13126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13127 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13128 | ac_status=$? |
| 13129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13130 | (exit $ac_status); }; }; then |
| 13131 | ac_cv_prog_f77_g=yes |
| 13132 | else |
| 13133 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13134 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13135 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13136 | ac_cv_prog_f77_g=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13137 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13138 | |
| 13139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13140 | |
| 13141 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13142 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 13143 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13144 | if test "$ac_test_FFLAGS" = set; then |
| 13145 | FFLAGS=$ac_save_FFLAGS |
| 13146 | elif test $ac_cv_prog_f77_g = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13147 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13148 | FFLAGS="-g -O2" |
| 13149 | else |
| 13150 | FFLAGS="-g" |
| 13151 | fi |
| 13152 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13153 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13154 | FFLAGS="-O2" |
| 13155 | else |
| 13156 | FFLAGS= |
| 13157 | fi |
| 13158 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13159 | |
| 13160 | G77=`test $ac_compiler_gnu = yes && echo yes` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13161 | ac_ext=c |
| 13162 | ac_cpp='$CPP $CPPFLAGS' |
| 13163 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13164 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13165 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13166 | |
| 13167 | |
| 13168 | |
| 13169 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 13170 | |
| 13171 | # find the maximum length of command line arguments |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13172 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 13173 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13174 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 13175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13176 | else |
| 13177 | i=0 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13178 | teststring="ABCD" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13179 | |
| 13180 | case $build_os in |
| 13181 | msdosdjgpp*) |
| 13182 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 13183 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 13184 | # during glob expansion). Even if it were fixed, the result of this |
| 13185 | # check would be larger than it should be. |
| 13186 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 13187 | ;; |
| 13188 | |
| 13189 | gnu*) |
| 13190 | # Under GNU Hurd, this test is not required because there is |
| 13191 | # no limit to the length of command line arguments. |
| 13192 | # Libtool will interpret -1 as no limit whatsoever |
| 13193 | lt_cv_sys_max_cmd_len=-1; |
| 13194 | ;; |
| 13195 | |
| 13196 | cygwin* | mingw*) |
| 13197 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 13198 | # about 5 minutes as the teststring grows exponentially. |
| 13199 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 13200 | # you end up with a "frozen" computer, even though with patience |
| 13201 | # the test eventually succeeds (with a max line length of 256k). |
| 13202 | # Instead, let's just punt: use the minimum linelength reported by |
| 13203 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 13204 | lt_cv_sys_max_cmd_len=8192; |
| 13205 | ;; |
| 13206 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13207 | amigaos*) |
| 13208 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 13209 | # So we just punt and use a minimum line length of 8192. |
| 13210 | lt_cv_sys_max_cmd_len=8192; |
| 13211 | ;; |
| 13212 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13213 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13214 | # This has been around since 386BSD, at least. Likely further. |
| 13215 | if test -x /sbin/sysctl; then |
| 13216 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 13217 | elif test -x /usr/sbin/sysctl; then |
| 13218 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 13219 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13220 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13221 | fi |
| 13222 | # And add a safety zone |
| 13223 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13224 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13225 | ;; |
| 13226 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13227 | interix*) |
| 13228 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 13229 | lt_cv_sys_max_cmd_len=196608 |
| 13230 | ;; |
| 13231 | |
| 13232 | osf*) |
| 13233 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 13234 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 13235 | # nice to cause kernel panics so lets avoid the loop below. |
| 13236 | # First set a reasonable default. |
| 13237 | lt_cv_sys_max_cmd_len=16384 |
| 13238 | # |
| 13239 | if test -x /sbin/sysconfig; then |
| 13240 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 13241 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 13242 | esac |
| 13243 | fi |
| 13244 | ;; |
| 13245 | sco3.2v5*) |
| 13246 | lt_cv_sys_max_cmd_len=102400 |
| 13247 | ;; |
| 13248 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 13249 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 13250 | if test -n "$kargmax"; then |
| 13251 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 13252 | else |
| 13253 | lt_cv_sys_max_cmd_len=32768 |
| 13254 | fi |
| 13255 | ;; |
| 13256 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13257 | # If test is not a shell built-in, we'll probably end up computing a |
| 13258 | # maximum length that is only half of the actual maximum length, but |
| 13259 | # we can't tell. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13260 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 13261 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 13262 | = "XX$teststring") >/dev/null 2>&1 && |
| 13263 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13264 | lt_cv_sys_max_cmd_len=$new_result && |
| 13265 | test $i != 17 # 1/2 MB should be enough |
| 13266 | do |
| 13267 | i=`expr $i + 1` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13268 | teststring=$teststring$teststring |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13269 | done |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13270 | teststring= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13271 | # Add a significant safety factor because C++ compilers can tack on massive |
| 13272 | # amounts of additional arguments before passing them to the linker. |
| 13273 | # It appears as though 1/2 is a usable value. |
| 13274 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 13275 | ;; |
| 13276 | esac |
| 13277 | |
| 13278 | fi |
| 13279 | |
| 13280 | if test -n $lt_cv_sys_max_cmd_len ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13281 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 13282 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13283 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13284 | { echo "$as_me:$LINENO: result: none" >&5 |
| 13285 | echo "${ECHO_T}none" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13286 | fi |
| 13287 | |
| 13288 | |
| 13289 | |
| 13290 | |
| 13291 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13292 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 13293 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13294 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 13295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13296 | else |
| 13297 | |
| 13298 | # These are sane defaults that work on at least a few old systems. |
| 13299 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 13300 | |
| 13301 | # Character class describing NM global symbol codes. |
| 13302 | symcode='[BCDEGRST]' |
| 13303 | |
| 13304 | # Regexp to match symbols that can be accessed directly from C. |
| 13305 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 13306 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13307 | # Transform an extracted symbol line into a proper C declaration |
| 13308 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 13309 | |
| 13310 | # Transform an extracted symbol line into symbol name and symbol address |
| 13311 | 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'" |
| 13312 | |
| 13313 | # Define system-specific variables. |
| 13314 | case $host_os in |
| 13315 | aix*) |
| 13316 | symcode='[BCDT]' |
| 13317 | ;; |
| 13318 | cygwin* | mingw* | pw32*) |
| 13319 | symcode='[ABCDGISTW]' |
| 13320 | ;; |
| 13321 | hpux*) # Its linker distinguishes data from code symbols |
| 13322 | if test "$host_cpu" = ia64; then |
| 13323 | symcode='[ABCDEGRST]' |
| 13324 | fi |
| 13325 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 13326 | 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'" |
| 13327 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13328 | linux*) |
| 13329 | if test "$host_cpu" = ia64; then |
| 13330 | symcode='[ABCDGIRSTW]' |
| 13331 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 13332 | 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'" |
| 13333 | fi |
| 13334 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13335 | irix* | nonstopux*) |
| 13336 | symcode='[BCDEGRST]' |
| 13337 | ;; |
| 13338 | osf*) |
| 13339 | symcode='[BCDEGQRST]' |
| 13340 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13341 | solaris*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13342 | symcode='[BDRT]' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13343 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13344 | sco3.2v5*) |
| 13345 | symcode='[DT]' |
| 13346 | ;; |
| 13347 | sysv4.2uw2*) |
| 13348 | symcode='[DT]' |
| 13349 | ;; |
| 13350 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 13351 | symcode='[ABDT]' |
| 13352 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13353 | sysv4) |
| 13354 | symcode='[DFNSTU]' |
| 13355 | ;; |
| 13356 | esac |
| 13357 | |
| 13358 | # Handle CRLF in mingw tool chain |
| 13359 | opt_cr= |
| 13360 | case $build_os in |
| 13361 | mingw*) |
| 13362 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 13363 | ;; |
| 13364 | esac |
| 13365 | |
| 13366 | # If we're using GNU nm, then use its standard symbol codes. |
| 13367 | case `$NM -V 2>&1` in |
| 13368 | *GNU* | *'with BFD'*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13369 | symcode='[ABCDGIRSTW]' ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13370 | esac |
| 13371 | |
| 13372 | # Try without a prefix undercore, then with it. |
| 13373 | for ac_symprfx in "" "_"; do |
| 13374 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13375 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 13376 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 13377 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13378 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13379 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13380 | |
| 13381 | # Check to see that the pipe works correctly. |
| 13382 | pipe_works=no |
| 13383 | |
| 13384 | rm -f conftest* |
| 13385 | cat > conftest.$ac_ext <<EOF |
| 13386 | #ifdef __cplusplus |
| 13387 | extern "C" { |
| 13388 | #endif |
| 13389 | char nm_test_var; |
| 13390 | void nm_test_func(){} |
| 13391 | #ifdef __cplusplus |
| 13392 | } |
| 13393 | #endif |
| 13394 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 13395 | EOF |
| 13396 | |
| 13397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13398 | (eval $ac_compile) 2>&5 |
| 13399 | ac_status=$? |
| 13400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13401 | (exit $ac_status); }; then |
| 13402 | # Now try to grab the symbols. |
| 13403 | nlist=conftest.nm |
| 13404 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 13405 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 13406 | ac_status=$? |
| 13407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13408 | (exit $ac_status); } && test -s "$nlist"; then |
| 13409 | # Try sorting and uniquifying the output. |
| 13410 | if sort "$nlist" | uniq > "$nlist"T; then |
| 13411 | mv -f "$nlist"T "$nlist" |
| 13412 | else |
| 13413 | rm -f "$nlist"T |
| 13414 | fi |
| 13415 | |
| 13416 | # Make sure that we snagged all the symbols we need. |
| 13417 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 13418 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 13419 | cat <<EOF > conftest.$ac_ext |
| 13420 | #ifdef __cplusplus |
| 13421 | extern "C" { |
| 13422 | #endif |
| 13423 | |
| 13424 | EOF |
| 13425 | # Now generate the symbol file. |
| 13426 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 13427 | |
| 13428 | cat <<EOF >> conftest.$ac_ext |
| 13429 | #if defined (__STDC__) && __STDC__ |
| 13430 | # define lt_ptr_t void * |
| 13431 | #else |
| 13432 | # define lt_ptr_t char * |
| 13433 | # define const |
| 13434 | #endif |
| 13435 | |
| 13436 | /* The mapping between symbol names and symbols. */ |
| 13437 | const struct { |
| 13438 | const char *name; |
| 13439 | lt_ptr_t address; |
| 13440 | } |
| 13441 | lt_preloaded_symbols[] = |
| 13442 | { |
| 13443 | EOF |
| 13444 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 13445 | cat <<\EOF >> conftest.$ac_ext |
| 13446 | {0, (lt_ptr_t) 0} |
| 13447 | }; |
| 13448 | |
| 13449 | #ifdef __cplusplus |
| 13450 | } |
| 13451 | #endif |
| 13452 | EOF |
| 13453 | # Now try linking the two files. |
| 13454 | mv conftest.$ac_objext conftstm.$ac_objext |
| 13455 | lt_save_LIBS="$LIBS" |
| 13456 | lt_save_CFLAGS="$CFLAGS" |
| 13457 | LIBS="conftstm.$ac_objext" |
| 13458 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 13459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13460 | (eval $ac_link) 2>&5 |
| 13461 | ac_status=$? |
| 13462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13463 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 13464 | pipe_works=yes |
| 13465 | fi |
| 13466 | LIBS="$lt_save_LIBS" |
| 13467 | CFLAGS="$lt_save_CFLAGS" |
| 13468 | else |
| 13469 | echo "cannot find nm_test_func in $nlist" >&5 |
| 13470 | fi |
| 13471 | else |
| 13472 | echo "cannot find nm_test_var in $nlist" >&5 |
| 13473 | fi |
| 13474 | else |
| 13475 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 13476 | fi |
| 13477 | else |
| 13478 | echo "$progname: failed program was:" >&5 |
| 13479 | cat conftest.$ac_ext >&5 |
| 13480 | fi |
| 13481 | rm -f conftest* conftst* |
| 13482 | |
| 13483 | # Do not use the global_symbol_pipe unless it works. |
| 13484 | if test "$pipe_works" = yes; then |
| 13485 | break |
| 13486 | else |
| 13487 | lt_cv_sys_global_symbol_pipe= |
| 13488 | fi |
| 13489 | done |
| 13490 | |
| 13491 | fi |
| 13492 | |
| 13493 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 13494 | lt_cv_sys_global_symbol_to_cdecl= |
| 13495 | fi |
| 13496 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13497 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 13498 | echo "${ECHO_T}failed" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13499 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13500 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 13501 | echo "${ECHO_T}ok" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13502 | fi |
| 13503 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13504 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 13505 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13506 | if test "${lt_cv_objdir+set}" = set; then |
| 13507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13508 | else |
| 13509 | rm -f .libs 2>/dev/null |
| 13510 | mkdir .libs 2>/dev/null |
| 13511 | if test -d .libs; then |
| 13512 | lt_cv_objdir=.libs |
| 13513 | else |
| 13514 | # MS-DOS does not allow filenames that begin with a dot. |
| 13515 | lt_cv_objdir=_libs |
| 13516 | fi |
| 13517 | rmdir .libs 2>/dev/null |
| 13518 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13519 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 13520 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13521 | objdir=$lt_cv_objdir |
| 13522 | |
| 13523 | |
| 13524 | |
| 13525 | |
| 13526 | |
| 13527 | case $host_os in |
| 13528 | aix3*) |
| 13529 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 13530 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 13531 | # vanish in a puff of smoke. |
| 13532 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 13533 | COLLECT_NAMES= |
| 13534 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13535 | fi |
| 13536 | ;; |
| 13537 | esac |
| 13538 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13539 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 13540 | # metacharacters that are still active within double-quoted strings. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13541 | Xsed='sed -e 1s/^X//' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13542 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 13543 | |
| 13544 | # Same as above, but do not quote variable references. |
| 13545 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 13546 | |
| 13547 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 13548 | # double_quote_subst'ed string. |
| 13549 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 13550 | |
| 13551 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 13552 | no_glob_subst='s/\*/\\\*/g' |
| 13553 | |
| 13554 | # Constants: |
| 13555 | rm="rm -f" |
| 13556 | |
| 13557 | # Global variables: |
Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 13558 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13559 | can_build_shared=yes |
| 13560 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13561 | # All known linkers require a `.a' archive for static linking (except MSVC, |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13562 | # which needs '.lib'). |
| 13563 | libext=a |
| 13564 | ltmain="$ac_aux_dir/ltmain.sh" |
| 13565 | ofile="$default_ofile" |
| 13566 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 13567 | |
| 13568 | if test -n "$ac_tool_prefix"; then |
| 13569 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 13570 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13571 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13572 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13573 | if test "${ac_cv_prog_AR+set}" = set; then |
| 13574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13575 | else |
| 13576 | if test -n "$AR"; then |
| 13577 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 13578 | else |
| 13579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13580 | for as_dir in $PATH |
| 13581 | do |
| 13582 | IFS=$as_save_IFS |
| 13583 | test -z "$as_dir" && as_dir=. |
| 13584 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13585 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13586 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 13587 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13588 | break 2 |
| 13589 | fi |
| 13590 | done |
| 13591 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13592 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13593 | |
| 13594 | fi |
| 13595 | fi |
| 13596 | AR=$ac_cv_prog_AR |
| 13597 | if test -n "$AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13598 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 13599 | echo "${ECHO_T}$AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13600 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13601 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13602 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13603 | fi |
| 13604 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13605 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13606 | fi |
| 13607 | if test -z "$ac_cv_prog_AR"; then |
| 13608 | ac_ct_AR=$AR |
| 13609 | # Extract the first word of "ar", so it can be a program name with args. |
| 13610 | set dummy ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13611 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13612 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13613 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 13614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13615 | else |
| 13616 | if test -n "$ac_ct_AR"; then |
| 13617 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 13618 | else |
| 13619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13620 | for as_dir in $PATH |
| 13621 | do |
| 13622 | IFS=$as_save_IFS |
| 13623 | test -z "$as_dir" && as_dir=. |
| 13624 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13625 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13626 | ac_cv_prog_ac_ct_AR="ar" |
| 13627 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13628 | break 2 |
| 13629 | fi |
| 13630 | done |
| 13631 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13632 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13633 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13634 | fi |
| 13635 | fi |
| 13636 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 13637 | if test -n "$ac_ct_AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13638 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 13639 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13640 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13641 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13642 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13643 | fi |
| 13644 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13645 | if test "x$ac_ct_AR" = x; then |
| 13646 | AR="false" |
| 13647 | else |
| 13648 | case $cross_compiling:$ac_tool_warned in |
| 13649 | yes:) |
| 13650 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13651 | whose name does not start with the host triplet. If you think this |
| 13652 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13653 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13654 | whose name does not start with the host triplet. If you think this |
| 13655 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13656 | ac_tool_warned=yes ;; |
| 13657 | esac |
| 13658 | AR=$ac_ct_AR |
| 13659 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13660 | else |
| 13661 | AR="$ac_cv_prog_AR" |
| 13662 | fi |
| 13663 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13664 | if test -n "$ac_tool_prefix"; then |
| 13665 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 13666 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13667 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13668 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13669 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 13670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13671 | else |
| 13672 | if test -n "$RANLIB"; then |
| 13673 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 13674 | else |
| 13675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13676 | for as_dir in $PATH |
| 13677 | do |
| 13678 | IFS=$as_save_IFS |
| 13679 | test -z "$as_dir" && as_dir=. |
| 13680 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13681 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13682 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 13683 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13684 | break 2 |
| 13685 | fi |
| 13686 | done |
| 13687 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13688 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13689 | |
| 13690 | fi |
| 13691 | fi |
| 13692 | RANLIB=$ac_cv_prog_RANLIB |
| 13693 | if test -n "$RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13694 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 13695 | echo "${ECHO_T}$RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13696 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13697 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13698 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13699 | fi |
| 13700 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13701 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13702 | fi |
| 13703 | if test -z "$ac_cv_prog_RANLIB"; then |
| 13704 | ac_ct_RANLIB=$RANLIB |
| 13705 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 13706 | set dummy ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13707 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13708 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13709 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 13710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13711 | else |
| 13712 | if test -n "$ac_ct_RANLIB"; then |
| 13713 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 13714 | else |
| 13715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13716 | for as_dir in $PATH |
| 13717 | do |
| 13718 | IFS=$as_save_IFS |
| 13719 | test -z "$as_dir" && as_dir=. |
| 13720 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13721 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13722 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 13723 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13724 | break 2 |
| 13725 | fi |
| 13726 | done |
| 13727 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13728 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13729 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13730 | fi |
| 13731 | fi |
| 13732 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 13733 | if test -n "$ac_ct_RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13734 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 13735 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13736 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13737 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13738 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13739 | fi |
| 13740 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13741 | if test "x$ac_ct_RANLIB" = x; then |
| 13742 | RANLIB=":" |
| 13743 | else |
| 13744 | case $cross_compiling:$ac_tool_warned in |
| 13745 | yes:) |
| 13746 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13747 | whose name does not start with the host triplet. If you think this |
| 13748 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13749 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13750 | whose name does not start with the host triplet. If you think this |
| 13751 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13752 | ac_tool_warned=yes ;; |
| 13753 | esac |
| 13754 | RANLIB=$ac_ct_RANLIB |
| 13755 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13756 | else |
| 13757 | RANLIB="$ac_cv_prog_RANLIB" |
| 13758 | fi |
| 13759 | |
| 13760 | if test -n "$ac_tool_prefix"; then |
| 13761 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 13762 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13763 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13764 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13765 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 13766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13767 | else |
| 13768 | if test -n "$STRIP"; then |
| 13769 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 13770 | else |
| 13771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13772 | for as_dir in $PATH |
| 13773 | do |
| 13774 | IFS=$as_save_IFS |
| 13775 | test -z "$as_dir" && as_dir=. |
| 13776 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13777 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13778 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 13779 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13780 | break 2 |
| 13781 | fi |
| 13782 | done |
| 13783 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13784 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13785 | |
| 13786 | fi |
| 13787 | fi |
| 13788 | STRIP=$ac_cv_prog_STRIP |
| 13789 | if test -n "$STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13790 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 13791 | echo "${ECHO_T}$STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13792 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13793 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13794 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13795 | fi |
| 13796 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13797 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13798 | fi |
| 13799 | if test -z "$ac_cv_prog_STRIP"; then |
| 13800 | ac_ct_STRIP=$STRIP |
| 13801 | # Extract the first word of "strip", so it can be a program name with args. |
| 13802 | set dummy strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13803 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13804 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13805 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 13806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13807 | else |
| 13808 | if test -n "$ac_ct_STRIP"; then |
| 13809 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 13810 | else |
| 13811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13812 | for as_dir in $PATH |
| 13813 | do |
| 13814 | IFS=$as_save_IFS |
| 13815 | test -z "$as_dir" && as_dir=. |
| 13816 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13817 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13818 | ac_cv_prog_ac_ct_STRIP="strip" |
| 13819 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13820 | break 2 |
| 13821 | fi |
| 13822 | done |
| 13823 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13824 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13825 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13826 | fi |
| 13827 | fi |
| 13828 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 13829 | if test -n "$ac_ct_STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13830 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 13831 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13832 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13833 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13834 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13835 | fi |
| 13836 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13837 | if test "x$ac_ct_STRIP" = x; then |
| 13838 | STRIP=":" |
| 13839 | else |
| 13840 | case $cross_compiling:$ac_tool_warned in |
| 13841 | yes:) |
| 13842 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13843 | whose name does not start with the host triplet. If you think this |
| 13844 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13845 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13846 | whose name does not start with the host triplet. If you think this |
| 13847 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13848 | ac_tool_warned=yes ;; |
| 13849 | esac |
| 13850 | STRIP=$ac_ct_STRIP |
| 13851 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13852 | else |
| 13853 | STRIP="$ac_cv_prog_STRIP" |
| 13854 | fi |
| 13855 | |
| 13856 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13857 | old_CC="$CC" |
| 13858 | old_CFLAGS="$CFLAGS" |
| 13859 | |
| 13860 | # Set sane defaults for various variables |
| 13861 | test -z "$AR" && AR=ar |
| 13862 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 13863 | test -z "$AS" && AS=as |
| 13864 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13865 | test -z "$LTCC" && LTCC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13866 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13867 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 13868 | test -z "$LD" && LD=ld |
| 13869 | test -z "$LN_S" && LN_S="ln -s" |
| 13870 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 13871 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13872 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13873 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 13874 | test -z "$RANLIB" && RANLIB=: |
| 13875 | test -z "$STRIP" && STRIP=: |
| 13876 | test -z "$ac_objext" && ac_objext=o |
| 13877 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13878 | # Determine commands to create old-style static archives. |
| 13879 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 13880 | old_postinstall_cmds='chmod 644 $oldlib' |
| 13881 | old_postuninstall_cmds= |
| 13882 | |
| 13883 | if test -n "$RANLIB"; then |
| 13884 | case $host_os in |
| 13885 | openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13886 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13887 | ;; |
| 13888 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13889 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13890 | ;; |
| 13891 | esac |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13892 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13893 | fi |
| 13894 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13895 | for cc_temp in $compiler""; do |
| 13896 | case $cc_temp in |
| 13897 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 13898 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 13899 | \-*) ;; |
| 13900 | *) break;; |
| 13901 | esac |
| 13902 | done |
| 13903 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 13904 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13905 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13906 | # Only perform the check for file, if the check method requires it |
| 13907 | case $deplibs_check_method in |
| 13908 | file_magic*) |
| 13909 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13910 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 13911 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13912 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 13913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13914 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13915 | case $MAGIC_CMD in |
| 13916 | [\\/*] | ?:[\\/]*) |
| 13917 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 13918 | ;; |
| 13919 | *) |
| 13920 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 13921 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 13922 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 13923 | for ac_dir in $ac_dummy; do |
| 13924 | IFS="$lt_save_ifs" |
| 13925 | test -z "$ac_dir" && ac_dir=. |
| 13926 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 13927 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 13928 | if test -n "$file_magic_test_file"; then |
| 13929 | case $deplibs_check_method in |
| 13930 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13931 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13932 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 13933 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 13934 | $EGREP "$file_magic_regex" > /dev/null; then |
| 13935 | : |
| 13936 | else |
| 13937 | cat <<EOF 1>&2 |
| 13938 | |
| 13939 | *** Warning: the command libtool uses to detect shared libraries, |
| 13940 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 13941 | *** The result is that libtool may fail to recognize shared libraries |
| 13942 | *** as such. This will affect the creation of libtool libraries that |
| 13943 | *** depend on shared libraries, but programs linked with such libtool |
| 13944 | *** libraries will work regardless of this problem. Nevertheless, you |
| 13945 | *** may want to report the problem to your system manager and/or to |
| 13946 | *** bug-libtool@gnu.org |
| 13947 | |
| 13948 | EOF |
| 13949 | fi ;; |
| 13950 | esac |
| 13951 | fi |
| 13952 | break |
| 13953 | fi |
| 13954 | done |
| 13955 | IFS="$lt_save_ifs" |
| 13956 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 13957 | ;; |
| 13958 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13959 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13960 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13961 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 13962 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13963 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 13964 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13965 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13966 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13967 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13968 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13969 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13970 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 13971 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13972 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 13973 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13974 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 13975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13976 | else |
| 13977 | case $MAGIC_CMD in |
| 13978 | [\\/*] | ?:[\\/]*) |
| 13979 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 13980 | ;; |
| 13981 | *) |
| 13982 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 13983 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 13984 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 13985 | for ac_dir in $ac_dummy; do |
| 13986 | IFS="$lt_save_ifs" |
| 13987 | test -z "$ac_dir" && ac_dir=. |
| 13988 | if test -f $ac_dir/file; then |
| 13989 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 13990 | if test -n "$file_magic_test_file"; then |
| 13991 | case $deplibs_check_method in |
| 13992 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13993 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13994 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 13995 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 13996 | $EGREP "$file_magic_regex" > /dev/null; then |
| 13997 | : |
| 13998 | else |
| 13999 | cat <<EOF 1>&2 |
| 14000 | |
| 14001 | *** Warning: the command libtool uses to detect shared libraries, |
| 14002 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14003 | *** The result is that libtool may fail to recognize shared libraries |
| 14004 | *** as such. This will affect the creation of libtool libraries that |
| 14005 | *** depend on shared libraries, but programs linked with such libtool |
| 14006 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14007 | *** may want to report the problem to your system manager and/or to |
| 14008 | *** bug-libtool@gnu.org |
| 14009 | |
| 14010 | EOF |
| 14011 | fi ;; |
| 14012 | esac |
| 14013 | fi |
| 14014 | break |
| 14015 | fi |
| 14016 | done |
| 14017 | IFS="$lt_save_ifs" |
| 14018 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14019 | ;; |
| 14020 | esac |
| 14021 | fi |
| 14022 | |
| 14023 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14024 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14025 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14026 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14027 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14028 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14029 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14030 | fi |
| 14031 | |
| 14032 | else |
| 14033 | MAGIC_CMD=: |
| 14034 | fi |
| 14035 | fi |
| 14036 | |
| 14037 | fi |
| 14038 | ;; |
| 14039 | esac |
| 14040 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 14041 | enable_dlopen=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14042 | enable_win32_dll=no |
| 14043 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14044 | # Check whether --enable-libtool-lock was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14045 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14046 | enableval=$enable_libtool_lock; |
| 14047 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14048 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14049 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 14050 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14051 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14052 | # Check whether --with-pic was given. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14053 | if test "${with_pic+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14054 | withval=$with_pic; pic_mode="$withval" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14055 | else |
| 14056 | pic_mode=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14057 | fi |
| 14058 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14059 | test -z "$pic_mode" && pic_mode=default |
| 14060 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14061 | # Use C for the default configuration in the libtool script |
| 14062 | tagname= |
| 14063 | lt_save_CC="$CC" |
| 14064 | ac_ext=c |
| 14065 | ac_cpp='$CPP $CPPFLAGS' |
| 14066 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14067 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14068 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14069 | |
| 14070 | |
| 14071 | # Source file extension for C test sources. |
| 14072 | ac_ext=c |
| 14073 | |
| 14074 | # Object file extension for compiled C test sources. |
| 14075 | objext=o |
| 14076 | objext=$objext |
| 14077 | |
| 14078 | # Code to be used in simple compile tests |
| 14079 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 14080 | |
| 14081 | # Code to be used in simple link tests |
| 14082 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 14083 | |
| 14084 | |
| 14085 | # If no C compiler was specified, use CC. |
| 14086 | LTCC=${LTCC-"$CC"} |
| 14087 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14088 | # If no C compiler flags were specified, use CFLAGS. |
| 14089 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14090 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14091 | # Allow CC to be a program name with arguments. |
| 14092 | compiler=$CC |
| 14093 | |
| 14094 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14095 | # save warnings/boilerplate of simple test code |
| 14096 | ac_outfile=conftest.$ac_objext |
| 14097 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14098 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14099 | _lt_compiler_boilerplate=`cat conftest.err` |
| 14100 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14101 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14102 | ac_outfile=conftest.$ac_objext |
| 14103 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14104 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14105 | _lt_linker_boilerplate=`cat conftest.err` |
| 14106 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14107 | |
| 14108 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14109 | |
| 14110 | lt_prog_compiler_no_builtin_flag= |
| 14111 | |
| 14112 | if test "$GCC" = yes; then |
| 14113 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 14114 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14115 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14116 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 14117 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14118 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 14119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14120 | else |
| 14121 | lt_cv_prog_compiler_rtti_exceptions=no |
| 14122 | ac_outfile=conftest.$ac_objext |
| 14123 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14124 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 14125 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14126 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14127 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14128 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14129 | # The option is referenced via a variable to avoid confusing sed. |
| 14130 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14131 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14132 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14133 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 14134 | (eval echo "\"\$as_me:14134: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14135 | (eval "$lt_compile" 2>conftest.err) |
| 14136 | ac_status=$? |
| 14137 | cat conftest.err >&5 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 14138 | echo "$as_me:14138: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14139 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14140 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14141 | # So say no if there are warnings other than the usual output. |
| 14142 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14143 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14144 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14145 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 14146 | fi |
| 14147 | fi |
| 14148 | $rm conftest* |
| 14149 | |
| 14150 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14151 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 14152 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14153 | |
| 14154 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 14155 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 14156 | else |
| 14157 | : |
| 14158 | fi |
| 14159 | |
| 14160 | fi |
| 14161 | |
| 14162 | lt_prog_compiler_wl= |
| 14163 | lt_prog_compiler_pic= |
| 14164 | lt_prog_compiler_static= |
| 14165 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14166 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14167 | 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] | 14168 | |
| 14169 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14170 | lt_prog_compiler_wl='-Wl,' |
| 14171 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14172 | |
| 14173 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14174 | aix*) |
| 14175 | # All AIX code is PIC. |
| 14176 | if test "$host_cpu" = ia64; then |
| 14177 | # AIX 5 now supports IA64 processor |
| 14178 | lt_prog_compiler_static='-Bstatic' |
| 14179 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14180 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14181 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14182 | amigaos*) |
| 14183 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14184 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14185 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14186 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14187 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14188 | |
| 14189 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14190 | # PIC is the default for these OSes. |
| 14191 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14192 | |
| 14193 | mingw* | pw32* | os2*) |
| 14194 | # This hack is so that the source file can tell whether it is being |
| 14195 | # built for inclusion in a dll (and should export symbols for example). |
| 14196 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14197 | ;; |
| 14198 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14199 | darwin* | rhapsody*) |
| 14200 | # PIC is the default on this platform |
| 14201 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14202 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14203 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14204 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14205 | interix3*) |
| 14206 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14207 | # Instead, we relocate shared libraries at runtime. |
| 14208 | ;; |
| 14209 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14210 | msdosdjgpp*) |
| 14211 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14212 | # on systems that don't support them. |
| 14213 | lt_prog_compiler_can_build_shared=no |
| 14214 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14215 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14216 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14217 | sysv4*MP*) |
| 14218 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14219 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14220 | fi |
| 14221 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14222 | |
| 14223 | hpux*) |
| 14224 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14225 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14226 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14227 | hppa*64*|ia64*) |
| 14228 | # +Z the default |
| 14229 | ;; |
| 14230 | *) |
| 14231 | lt_prog_compiler_pic='-fPIC' |
| 14232 | ;; |
| 14233 | esac |
| 14234 | ;; |
| 14235 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14236 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14237 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14238 | ;; |
| 14239 | esac |
| 14240 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14241 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14242 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14243 | aix*) |
| 14244 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14245 | if test "$host_cpu" = ia64; then |
| 14246 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14247 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14248 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14249 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14250 | fi |
| 14251 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14252 | darwin*) |
| 14253 | # PIC is the default on this platform |
| 14254 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14255 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14256 | xlc*) |
| 14257 | lt_prog_compiler_pic='-qnocommon' |
| 14258 | lt_prog_compiler_wl='-Wl,' |
| 14259 | ;; |
| 14260 | esac |
| 14261 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14262 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14263 | mingw* | pw32* | os2*) |
| 14264 | # This hack is so that the source file can tell whether it is being |
| 14265 | # built for inclusion in a dll (and should export symbols for example). |
| 14266 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14267 | ;; |
| 14268 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14269 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14270 | lt_prog_compiler_wl='-Wl,' |
| 14271 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14272 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14273 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14274 | hppa*64*|ia64*) |
| 14275 | # +Z the default |
| 14276 | ;; |
| 14277 | *) |
| 14278 | lt_prog_compiler_pic='+Z' |
| 14279 | ;; |
| 14280 | esac |
| 14281 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14282 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14283 | ;; |
| 14284 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14285 | irix5* | irix6* | nonstopux*) |
| 14286 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14287 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14288 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14289 | ;; |
| 14290 | |
| 14291 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14292 | lt_prog_compiler_pic='-KPIC' |
| 14293 | lt_prog_compiler_static='-Bstatic' |
| 14294 | ;; |
| 14295 | |
| 14296 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14297 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14298 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14299 | lt_prog_compiler_wl='-Wl,' |
| 14300 | lt_prog_compiler_pic='-KPIC' |
| 14301 | lt_prog_compiler_static='-static' |
| 14302 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14303 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 14304 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 14305 | # which looks to be a dead project) |
| 14306 | lt_prog_compiler_wl='-Wl,' |
| 14307 | lt_prog_compiler_pic='-fpic' |
| 14308 | lt_prog_compiler_static='-Bstatic' |
| 14309 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14310 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14311 | lt_prog_compiler_wl='-Wl,' |
| 14312 | # All Alpha code is PIC. |
| 14313 | lt_prog_compiler_static='-non_shared' |
| 14314 | ;; |
| 14315 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14316 | ;; |
| 14317 | |
| 14318 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14319 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14320 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14321 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14322 | ;; |
| 14323 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14324 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14325 | lt_prog_compiler_pic='-KPIC' |
| 14326 | lt_prog_compiler_static='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14327 | case $cc_basename in |
| 14328 | f77* | f90* | f95*) |
| 14329 | lt_prog_compiler_wl='-Qoption ld ';; |
| 14330 | *) |
| 14331 | lt_prog_compiler_wl='-Wl,';; |
| 14332 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14333 | ;; |
| 14334 | |
| 14335 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14336 | lt_prog_compiler_wl='-Qoption ld ' |
| 14337 | lt_prog_compiler_pic='-PIC' |
| 14338 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14339 | ;; |
| 14340 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14341 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14342 | lt_prog_compiler_wl='-Wl,' |
| 14343 | lt_prog_compiler_pic='-KPIC' |
| 14344 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14345 | ;; |
| 14346 | |
| 14347 | sysv4*MP*) |
| 14348 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14349 | lt_prog_compiler_pic='-Kconform_pic' |
| 14350 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14351 | fi |
| 14352 | ;; |
| 14353 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14354 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14355 | lt_prog_compiler_wl='-Wl,' |
| 14356 | lt_prog_compiler_pic='-KPIC' |
| 14357 | lt_prog_compiler_static='-Bstatic' |
| 14358 | ;; |
| 14359 | |
| 14360 | unicos*) |
| 14361 | lt_prog_compiler_wl='-Wl,' |
| 14362 | lt_prog_compiler_can_build_shared=no |
| 14363 | ;; |
| 14364 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14365 | uts4*) |
| 14366 | lt_prog_compiler_pic='-pic' |
| 14367 | lt_prog_compiler_static='-Bstatic' |
| 14368 | ;; |
| 14369 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14370 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14371 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14372 | ;; |
| 14373 | esac |
| 14374 | fi |
| 14375 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14376 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 14377 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14378 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14379 | # |
| 14380 | # Check to make sure the PIC flag actually works. |
| 14381 | # |
| 14382 | if test -n "$lt_prog_compiler_pic"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14383 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14384 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 14385 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14386 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14388 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14389 | lt_prog_compiler_pic_works=no |
| 14390 | ac_outfile=conftest.$ac_objext |
| 14391 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14392 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 14393 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14394 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14395 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14396 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14397 | # The option is referenced via a variable to avoid confusing sed. |
| 14398 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14399 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14400 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14401 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 14402 | (eval echo "\"\$as_me:14402: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14403 | (eval "$lt_compile" 2>conftest.err) |
| 14404 | ac_status=$? |
| 14405 | cat conftest.err >&5 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 14406 | echo "$as_me:14406: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14407 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14408 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14409 | # So say no if there are warnings other than the usual output. |
| 14410 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14411 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14412 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14413 | lt_prog_compiler_pic_works=yes |
| 14414 | fi |
| 14415 | fi |
| 14416 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14417 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14418 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14419 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 14420 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14421 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14422 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 14423 | case $lt_prog_compiler_pic in |
| 14424 | "" | " "*) ;; |
| 14425 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 14426 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14427 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14428 | lt_prog_compiler_pic= |
| 14429 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14430 | fi |
| 14431 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14432 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14433 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14434 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14435 | *djgpp*) |
| 14436 | lt_prog_compiler_pic= |
| 14437 | ;; |
| 14438 | *) |
| 14439 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 14440 | ;; |
| 14441 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14442 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14443 | # |
| 14444 | # Check to make sure the static flag actually works. |
| 14445 | # |
| 14446 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 14447 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 14448 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 14449 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 14450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14451 | else |
| 14452 | lt_prog_compiler_static_works=no |
| 14453 | save_LDFLAGS="$LDFLAGS" |
| 14454 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 14455 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14456 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14457 | # The linker can only warn and ignore the option if not recognized |
| 14458 | # So say no if there are warnings |
| 14459 | if test -s conftest.err; then |
| 14460 | # Append any errors to the config.log. |
| 14461 | cat conftest.err 1>&5 |
| 14462 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 14463 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14464 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 14465 | lt_prog_compiler_static_works=yes |
| 14466 | fi |
| 14467 | else |
| 14468 | lt_prog_compiler_static_works=yes |
| 14469 | fi |
| 14470 | fi |
| 14471 | $rm conftest* |
| 14472 | LDFLAGS="$save_LDFLAGS" |
| 14473 | |
| 14474 | fi |
| 14475 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 14476 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
| 14477 | |
| 14478 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 14479 | : |
| 14480 | else |
| 14481 | lt_prog_compiler_static= |
| 14482 | fi |
| 14483 | |
| 14484 | |
| 14485 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14486 | 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] | 14487 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14489 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14490 | lt_cv_prog_compiler_c_o=no |
| 14491 | $rm -r conftest 2>/dev/null |
| 14492 | mkdir conftest |
| 14493 | cd conftest |
| 14494 | mkdir out |
| 14495 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14496 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14497 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14498 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14499 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14500 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14501 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14502 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14503 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14504 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14505 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 14506 | (eval echo "\"\$as_me:14506: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14507 | (eval "$lt_compile" 2>out/conftest.err) |
| 14508 | ac_status=$? |
| 14509 | cat out/conftest.err >&5 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 14510 | echo "$as_me:14510: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14511 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14512 | then |
| 14513 | # The compiler can only warn and ignore the option if not recognized |
| 14514 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14515 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 14516 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14517 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14518 | lt_cv_prog_compiler_c_o=yes |
| 14519 | fi |
| 14520 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14521 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14522 | $rm conftest* |
| 14523 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14524 | # template instantiation |
| 14525 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 14526 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14527 | cd .. |
| 14528 | rmdir conftest |
| 14529 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14530 | |
| 14531 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14532 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 14533 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14534 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14535 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14536 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14537 | 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] | 14538 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14539 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 14540 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14541 | hard_links=yes |
| 14542 | $rm conftest* |
| 14543 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14544 | touch conftest.a |
| 14545 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14546 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14547 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 14548 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14549 | if test "$hard_links" = no; then |
| 14550 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 14551 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 14552 | need_locks=warn |
| 14553 | fi |
| 14554 | else |
| 14555 | need_locks=no |
| 14556 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14557 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14558 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14559 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14560 | |
| 14561 | runpath_var= |
| 14562 | allow_undefined_flag= |
| 14563 | enable_shared_with_static_runtimes=no |
| 14564 | archive_cmds= |
| 14565 | archive_expsym_cmds= |
| 14566 | old_archive_From_new_cmds= |
| 14567 | old_archive_from_expsyms_cmds= |
| 14568 | export_dynamic_flag_spec= |
| 14569 | whole_archive_flag_spec= |
| 14570 | thread_safe_flag_spec= |
| 14571 | hardcode_libdir_flag_spec= |
| 14572 | hardcode_libdir_flag_spec_ld= |
| 14573 | hardcode_libdir_separator= |
| 14574 | hardcode_direct=no |
| 14575 | hardcode_minus_L=no |
| 14576 | hardcode_shlibpath_var=unsupported |
| 14577 | link_all_deplibs=unknown |
| 14578 | hardcode_automatic=no |
| 14579 | module_cmds= |
| 14580 | module_expsym_cmds= |
| 14581 | always_export_symbols=no |
| 14582 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14583 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 14584 | # included in the symbol list |
| 14585 | include_expsyms= |
| 14586 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 14587 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 14588 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 14589 | # as well as any symbol that contains `d'. |
| 14590 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 14591 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 14592 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 14593 | # the symbol is explicitly referenced. Since portable code cannot |
| 14594 | # rely on this symbol name, it's probably fine to never include it in |
| 14595 | # preloaded symbol tables. |
| 14596 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14597 | # Just being paranoid about ensuring that cc_basename is set. |
| 14598 | for cc_temp in $compiler""; do |
| 14599 | case $cc_temp in |
| 14600 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14601 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14602 | \-*) ;; |
| 14603 | *) break;; |
| 14604 | esac |
| 14605 | done |
| 14606 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14607 | |
| 14608 | case $host_os in |
| 14609 | cygwin* | mingw* | pw32*) |
| 14610 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 14611 | # When not using gcc, we currently assume that we are using |
| 14612 | # Microsoft Visual C++. |
| 14613 | if test "$GCC" != yes; then |
| 14614 | with_gnu_ld=no |
| 14615 | fi |
| 14616 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14617 | interix*) |
| 14618 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 14619 | with_gnu_ld=yes |
| 14620 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14621 | openbsd*) |
| 14622 | with_gnu_ld=no |
| 14623 | ;; |
| 14624 | esac |
| 14625 | |
| 14626 | ld_shlibs=yes |
| 14627 | if test "$with_gnu_ld" = yes; then |
| 14628 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 14629 | wlarc='${wl}' |
| 14630 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14631 | # Set some defaults for GNU ld with shared library support. These |
| 14632 | # are reset later if shared libraries are not supported. Putting them |
| 14633 | # here allows them to be overridden if necessary. |
| 14634 | runpath_var=LD_RUN_PATH |
| 14635 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 14636 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 14637 | # ancient GNU ld didn't support --whole-archive et. al. |
| 14638 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 14639 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 14640 | else |
| 14641 | whole_archive_flag_spec= |
| 14642 | fi |
| 14643 | supports_anon_versioning=no |
| 14644 | case `$LD -v 2>/dev/null` in |
| 14645 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 14646 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 14647 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 14648 | *\ 2.11.*) ;; # other 2.11 versions |
| 14649 | *) supports_anon_versioning=yes ;; |
| 14650 | esac |
| 14651 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14652 | # See if GNU ld supports shared libraries. |
| 14653 | case $host_os in |
| 14654 | aix3* | aix4* | aix5*) |
| 14655 | # On AIX/PPC, the GNU linker is very broken |
| 14656 | if test "$host_cpu" != ia64; then |
| 14657 | ld_shlibs=no |
| 14658 | cat <<EOF 1>&2 |
| 14659 | |
| 14660 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 14661 | *** to be unable to reliably create shared libraries on AIX. |
| 14662 | *** Therefore, libtool is disabling shared libraries support. If you |
| 14663 | *** really care for shared libraries, you may want to modify your PATH |
| 14664 | *** so that a non-GNU linker is found, and then restart. |
| 14665 | |
| 14666 | EOF |
| 14667 | fi |
| 14668 | ;; |
| 14669 | |
| 14670 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14671 | 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)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14672 | hardcode_libdir_flag_spec='-L$libdir' |
| 14673 | hardcode_minus_L=yes |
| 14674 | |
| 14675 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 14676 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 14677 | # to version 4, is to share data among multiple programs linked |
| 14678 | # with the same dynamic library. Since this doesn't match the |
| 14679 | # behavior of shared libraries on other platforms, we can't use |
| 14680 | # them. |
| 14681 | ld_shlibs=no |
| 14682 | ;; |
| 14683 | |
| 14684 | beos*) |
| 14685 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14686 | allow_undefined_flag=unsupported |
| 14687 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 14688 | # support --undefined. This deserves some investigation. FIXME |
| 14689 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14690 | else |
| 14691 | ld_shlibs=no |
| 14692 | fi |
| 14693 | ;; |
| 14694 | |
| 14695 | cygwin* | mingw* | pw32*) |
| 14696 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 14697 | # as there is no search path for DLLs. |
| 14698 | hardcode_libdir_flag_spec='-L$libdir' |
| 14699 | allow_undefined_flag=unsupported |
| 14700 | always_export_symbols=no |
| 14701 | enable_shared_with_static_runtimes=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14702 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14703 | |
| 14704 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14705 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14706 | # If the export-symbols file already is a .def file (1st line |
| 14707 | # is EXPORTS), use it as is; otherwise, prepend... |
| 14708 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 14709 | cp $export_symbols $output_objdir/$soname.def; |
| 14710 | else |
| 14711 | echo EXPORTS > $output_objdir/$soname.def; |
| 14712 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14713 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14714 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 14715 | else |
| 14716 | ld_shlibs=no |
| 14717 | fi |
| 14718 | ;; |
| 14719 | |
| 14720 | interix3*) |
| 14721 | hardcode_direct=no |
| 14722 | hardcode_shlibpath_var=no |
| 14723 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 14724 | export_dynamic_flag_spec='${wl}-E' |
| 14725 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 14726 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 14727 | # default) and relocated if they conflict, which is a slow very memory |
| 14728 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 14729 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 14730 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 14731 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 14732 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 14733 | ;; |
| 14734 | |
| 14735 | linux*) |
| 14736 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14737 | tmp_addflag= |
| 14738 | case $cc_basename,$host_cpu in |
| 14739 | pgcc*) # Portland Group C compiler |
| 14740 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 14741 | tmp_addflag=' $pic_flag' |
| 14742 | ;; |
| 14743 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 14744 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 14745 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 14746 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 14747 | tmp_addflag=' -i_dynamic' ;; |
| 14748 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 14749 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 14750 | ifc* | ifort*) # Intel Fortran compiler |
| 14751 | tmp_addflag=' -nofor_main' ;; |
| 14752 | esac |
| 14753 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14754 | |
| 14755 | if test $supports_anon_versioning = yes; then |
| 14756 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 14757 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 14758 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 14759 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 14760 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14761 | else |
| 14762 | ld_shlibs=no |
| 14763 | fi |
| 14764 | ;; |
| 14765 | |
| 14766 | netbsd*) |
| 14767 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14768 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 14769 | wlarc= |
| 14770 | else |
| 14771 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14772 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14773 | fi |
| 14774 | ;; |
| 14775 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14776 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14777 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 14778 | ld_shlibs=no |
| 14779 | cat <<EOF 1>&2 |
| 14780 | |
| 14781 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 14782 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 14783 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14784 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 14785 | *** your PATH or compiler configuration so that the native linker is |
| 14786 | *** used, and then restart. |
| 14787 | |
| 14788 | EOF |
| 14789 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14790 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14791 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14792 | else |
| 14793 | ld_shlibs=no |
| 14794 | fi |
| 14795 | ;; |
| 14796 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14797 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 14798 | case `$LD -v 2>&1` in |
| 14799 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 14800 | ld_shlibs=no |
| 14801 | cat <<_LT_EOF 1>&2 |
| 14802 | |
| 14803 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 14804 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 14805 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14806 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 14807 | *** your PATH or compiler configuration so that the native linker is |
| 14808 | *** used, and then restart. |
| 14809 | |
| 14810 | _LT_EOF |
| 14811 | ;; |
| 14812 | *) |
| 14813 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14814 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 14815 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 14816 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 14817 | else |
| 14818 | ld_shlibs=no |
| 14819 | fi |
| 14820 | ;; |
| 14821 | esac |
| 14822 | ;; |
| 14823 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14824 | sunos4*) |
| 14825 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14826 | wlarc= |
| 14827 | hardcode_direct=yes |
| 14828 | hardcode_shlibpath_var=no |
| 14829 | ;; |
| 14830 | |
| 14831 | *) |
| 14832 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14833 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14834 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14835 | else |
| 14836 | ld_shlibs=no |
| 14837 | fi |
| 14838 | ;; |
| 14839 | esac |
| 14840 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14841 | if test "$ld_shlibs" = no; then |
| 14842 | runpath_var= |
| 14843 | hardcode_libdir_flag_spec= |
| 14844 | export_dynamic_flag_spec= |
| 14845 | whole_archive_flag_spec= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14846 | fi |
| 14847 | else |
| 14848 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 14849 | case $host_os in |
| 14850 | aix3*) |
| 14851 | allow_undefined_flag=unsupported |
| 14852 | always_export_symbols=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14853 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14854 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 14855 | # are no directories specified by -L. |
| 14856 | hardcode_minus_L=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14857 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14858 | # Neither direct hardcoding nor static linking is supported with a |
| 14859 | # broken collect2. |
| 14860 | hardcode_direct=unsupported |
| 14861 | fi |
| 14862 | ;; |
| 14863 | |
| 14864 | aix4* | aix5*) |
| 14865 | if test "$host_cpu" = ia64; then |
| 14866 | # On IA64, the linker does run time linking by default, so we don't |
| 14867 | # have to do anything special. |
| 14868 | aix_use_runtimelinking=no |
| 14869 | exp_sym_flag='-Bexport' |
| 14870 | no_entry_flag="" |
| 14871 | else |
| 14872 | # If we're using GNU nm, then we don't want the "-C" option. |
| 14873 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 14874 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 14875 | 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' |
| 14876 | else |
| 14877 | 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' |
| 14878 | fi |
| 14879 | aix_use_runtimelinking=no |
| 14880 | |
| 14881 | # Test if we are trying to use run time linking or normal |
| 14882 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 14883 | # need to do runtime linking. |
| 14884 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 14885 | for ld_flag in $LDFLAGS; do |
| 14886 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 14887 | aix_use_runtimelinking=yes |
| 14888 | break |
| 14889 | fi |
| 14890 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14891 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14892 | esac |
| 14893 | |
| 14894 | exp_sym_flag='-bexport' |
| 14895 | no_entry_flag='-bnoentry' |
| 14896 | fi |
| 14897 | |
| 14898 | # When large executables or shared objects are built, AIX ld can |
| 14899 | # have problems creating the table of contents. If linking a library |
| 14900 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 14901 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 14902 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 14903 | |
| 14904 | archive_cmds='' |
| 14905 | hardcode_direct=yes |
| 14906 | hardcode_libdir_separator=':' |
| 14907 | link_all_deplibs=yes |
| 14908 | |
| 14909 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14910 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14911 | # We only want to do this on AIX 4.2 and lower, the check |
| 14912 | # below for broken collect2 doesn't work under 4.3+ |
| 14913 | collect2name=`${CC} -print-prog-name=collect2` |
| 14914 | if test -f "$collect2name" && \ |
| 14915 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 14916 | then |
| 14917 | # We have reworked collect2 |
| 14918 | hardcode_direct=yes |
| 14919 | else |
| 14920 | # We have old collect2 |
| 14921 | hardcode_direct=unsupported |
| 14922 | # It fails to find uninstalled libraries when the uninstalled |
| 14923 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 14924 | # to unsupported forces relinking |
| 14925 | hardcode_minus_L=yes |
| 14926 | hardcode_libdir_flag_spec='-L$libdir' |
| 14927 | hardcode_libdir_separator= |
| 14928 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14929 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14930 | esac |
| 14931 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14932 | if test "$aix_use_runtimelinking" = yes; then |
| 14933 | shared_flag="$shared_flag "'${wl}-G' |
| 14934 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14935 | else |
| 14936 | # not using gcc |
| 14937 | if test "$host_cpu" = ia64; then |
| 14938 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 14939 | # chokes on -Wl,-G. The following line is correct: |
| 14940 | shared_flag='-G' |
| 14941 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14942 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14943 | shared_flag='${wl}-G' |
| 14944 | else |
| 14945 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14946 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14947 | fi |
| 14948 | fi |
| 14949 | |
| 14950 | # It seems that -bexpall does not export symbols beginning with |
| 14951 | # underscore (_), so it is better to generate a list of symbols to export. |
| 14952 | always_export_symbols=yes |
| 14953 | if test "$aix_use_runtimelinking" = yes; then |
| 14954 | # Warning - without using the other runtime loading flags (-brtl), |
| 14955 | # -berok will link without error, but may produce a broken library. |
| 14956 | allow_undefined_flag='-berok' |
| 14957 | # Determine the default libpath from the value encoded in an empty executable. |
| 14958 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14959 | /* confdefs.h. */ |
| 14960 | _ACEOF |
| 14961 | cat confdefs.h >>conftest.$ac_ext |
| 14962 | cat >>conftest.$ac_ext <<_ACEOF |
| 14963 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14964 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14965 | int |
| 14966 | main () |
| 14967 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14968 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14969 | ; |
| 14970 | return 0; |
| 14971 | } |
| 14972 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14973 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14974 | if { (ac_try="$ac_link" |
| 14975 | case "(($ac_try" in |
| 14976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14977 | *) ac_try_echo=$ac_try;; |
| 14978 | esac |
| 14979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14980 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14981 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14983 | rm -f conftest.er1 |
| 14984 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14986 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14987 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14988 | { (case "(($ac_try" in |
| 14989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14990 | *) ac_try_echo=$ac_try;; |
| 14991 | esac |
| 14992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14993 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14994 | ac_status=$? |
| 14995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14996 | (exit $ac_status); }; } && |
| 14997 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14998 | { (case "(($ac_try" in |
| 14999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15000 | *) ac_try_echo=$ac_try;; |
| 15001 | esac |
| 15002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15003 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15004 | ac_status=$? |
| 15005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15006 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15007 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15008 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15009 | }'` |
| 15010 | # Check for a 64-bit object if we didn't find anything. |
| 15011 | 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; } |
| 15012 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15013 | else |
| 15014 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15016 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15017 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15018 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15019 | |
| 15020 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15021 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15022 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15023 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15024 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15025 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15026 | else |
| 15027 | if test "$host_cpu" = ia64; then |
| 15028 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 15029 | allow_undefined_flag="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15030 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15031 | else |
| 15032 | # Determine the default libpath from the value encoded in an empty executable. |
| 15033 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15034 | /* confdefs.h. */ |
| 15035 | _ACEOF |
| 15036 | cat confdefs.h >>conftest.$ac_ext |
| 15037 | cat >>conftest.$ac_ext <<_ACEOF |
| 15038 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15039 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15040 | int |
| 15041 | main () |
| 15042 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15043 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15044 | ; |
| 15045 | return 0; |
| 15046 | } |
| 15047 | _ACEOF |
| 15048 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15049 | if { (ac_try="$ac_link" |
| 15050 | case "(($ac_try" in |
| 15051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15052 | *) ac_try_echo=$ac_try;; |
| 15053 | esac |
| 15054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15055 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15056 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15057 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15058 | rm -f conftest.er1 |
| 15059 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15061 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15062 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15063 | { (case "(($ac_try" in |
| 15064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15065 | *) ac_try_echo=$ac_try;; |
| 15066 | esac |
| 15067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15068 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15069 | ac_status=$? |
| 15070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15071 | (exit $ac_status); }; } && |
| 15072 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15073 | { (case "(($ac_try" in |
| 15074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15075 | *) ac_try_echo=$ac_try;; |
| 15076 | esac |
| 15077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15078 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15079 | ac_status=$? |
| 15080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15081 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15082 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15083 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15084 | }'` |
| 15085 | # Check for a 64-bit object if we didn't find anything. |
| 15086 | 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; } |
| 15087 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15088 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15089 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15091 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15092 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15093 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15094 | |
| 15095 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15096 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15097 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15098 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15099 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15100 | # Warning - without using the other run time loading flags, |
| 15101 | # -berok will link without error, but may produce a broken library. |
| 15102 | no_undefined_flag=' ${wl}-bernotok' |
| 15103 | allow_undefined_flag=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15104 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15105 | whole_archive_flag_spec='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15106 | archive_cmds_need_lc=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15107 | # This is similar to how AIX traditionally builds its shared libraries. |
| 15108 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${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] | 15109 | fi |
| 15110 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15111 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15112 | |
| 15113 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15114 | 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)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15115 | hardcode_libdir_flag_spec='-L$libdir' |
| 15116 | hardcode_minus_L=yes |
| 15117 | # see comment about different semantics on the GNU ld section |
| 15118 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15119 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15120 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15121 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15122 | export_dynamic_flag_spec=-rdynamic |
| 15123 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15124 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15125 | cygwin* | mingw* | pw32*) |
| 15126 | # When not using gcc, we currently assume that we are using |
| 15127 | # Microsoft Visual C++. |
| 15128 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15129 | # no search path for DLLs. |
| 15130 | hardcode_libdir_flag_spec=' ' |
| 15131 | allow_undefined_flag=unsupported |
| 15132 | # Tell ltmain to make .lib files, not .a files. |
| 15133 | libext=lib |
| 15134 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15135 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15136 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15137 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15138 | # The linker will automatically build a .lib file if we build a DLL. |
| 15139 | old_archive_From_new_cmds='true' |
| 15140 | # FIXME: Should let the user specify the lib program. |
| 15141 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 15142 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 15143 | enable_shared_with_static_runtimes=yes |
| 15144 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15145 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15146 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15147 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15148 | rhapsody* | darwin1.[012]) |
| 15149 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 15150 | ;; |
| 15151 | *) # Darwin 1.3 on |
| 15152 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15153 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15154 | else |
| 15155 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15156 | 10.[012]) |
| 15157 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15158 | ;; |
| 15159 | 10.*) |
| 15160 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 15161 | ;; |
| 15162 | esac |
| 15163 | fi |
| 15164 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15165 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15166 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15167 | hardcode_direct=no |
| 15168 | hardcode_automatic=yes |
| 15169 | hardcode_shlibpath_var=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15170 | whole_archive_flag_spec='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15171 | link_all_deplibs=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15172 | if test "$GCC" = yes ; then |
| 15173 | output_verbose_link_cmd='echo' |
| 15174 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15175 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15176 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15177 | 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}' |
| 15178 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15179 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15180 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15181 | xlc*) |
| 15182 | output_verbose_link_cmd='echo' |
| 15183 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 15184 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15185 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15186 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 15187 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15188 | ;; |
| 15189 | *) |
| 15190 | ld_shlibs=no |
| 15191 | ;; |
| 15192 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15193 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15194 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15195 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15196 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15197 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15198 | hardcode_libdir_flag_spec='-L$libdir' |
| 15199 | hardcode_shlibpath_var=no |
| 15200 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15201 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15202 | freebsd1*) |
| 15203 | ld_shlibs=no |
| 15204 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15205 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15206 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15207 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15208 | # does not break anything, and helps significantly (at the cost of a little |
| 15209 | # extra space). |
| 15210 | freebsd2.2*) |
| 15211 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15212 | hardcode_libdir_flag_spec='-R$libdir' |
| 15213 | hardcode_direct=yes |
| 15214 | hardcode_shlibpath_var=no |
| 15215 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15216 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15217 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15218 | freebsd2*) |
| 15219 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15220 | hardcode_direct=yes |
| 15221 | hardcode_minus_L=yes |
| 15222 | hardcode_shlibpath_var=no |
| 15223 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15224 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15225 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15226 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15227 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15228 | hardcode_libdir_flag_spec='-R$libdir' |
| 15229 | hardcode_direct=yes |
| 15230 | hardcode_shlibpath_var=no |
| 15231 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15232 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15233 | hpux9*) |
| 15234 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15235 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15236 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15237 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15238 | fi |
| 15239 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15240 | hardcode_libdir_separator=: |
| 15241 | hardcode_direct=yes |
| 15242 | |
| 15243 | # hardcode_minus_L: Not really in the search PATH, |
| 15244 | # but as the default location of the library. |
| 15245 | hardcode_minus_L=yes |
| 15246 | export_dynamic_flag_spec='${wl}-E' |
| 15247 | ;; |
| 15248 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15249 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15250 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15251 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15252 | else |
| 15253 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15254 | fi |
| 15255 | if test "$with_gnu_ld" = no; then |
| 15256 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15257 | hardcode_libdir_separator=: |
| 15258 | |
| 15259 | hardcode_direct=yes |
| 15260 | export_dynamic_flag_spec='${wl}-E' |
| 15261 | |
| 15262 | # hardcode_minus_L: Not really in the search PATH, |
| 15263 | # but as the default location of the library. |
| 15264 | hardcode_minus_L=yes |
| 15265 | fi |
| 15266 | ;; |
| 15267 | |
| 15268 | hpux11*) |
| 15269 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15270 | case $host_cpu in |
| 15271 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15272 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15273 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15274 | ia64*) |
| 15275 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 15276 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15277 | *) |
| 15278 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15279 | ;; |
| 15280 | esac |
| 15281 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15282 | case $host_cpu in |
| 15283 | hppa*64*) |
| 15284 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15285 | ;; |
| 15286 | ia64*) |
| 15287 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15288 | ;; |
| 15289 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15290 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15291 | ;; |
| 15292 | esac |
| 15293 | fi |
| 15294 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15295 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15296 | hardcode_libdir_separator=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15297 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15298 | case $host_cpu in |
| 15299 | hppa*64*|ia64*) |
| 15300 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 15301 | hardcode_direct=no |
| 15302 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15303 | ;; |
| 15304 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15305 | hardcode_direct=yes |
| 15306 | export_dynamic_flag_spec='${wl}-E' |
| 15307 | |
| 15308 | # hardcode_minus_L: Not really in the search PATH, |
| 15309 | # but as the default location of the library. |
| 15310 | hardcode_minus_L=yes |
| 15311 | ;; |
| 15312 | esac |
| 15313 | fi |
| 15314 | ;; |
| 15315 | |
| 15316 | irix5* | irix6* | nonstopux*) |
| 15317 | if test "$GCC" = yes; then |
| 15318 | 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' |
| 15319 | else |
| 15320 | 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' |
| 15321 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 15322 | fi |
| 15323 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15324 | hardcode_libdir_separator=: |
| 15325 | link_all_deplibs=yes |
| 15326 | ;; |
| 15327 | |
| 15328 | netbsd*) |
| 15329 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15330 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 15331 | else |
| 15332 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 15333 | fi |
| 15334 | hardcode_libdir_flag_spec='-R$libdir' |
| 15335 | hardcode_direct=yes |
| 15336 | hardcode_shlibpath_var=no |
| 15337 | ;; |
| 15338 | |
| 15339 | newsos6) |
| 15340 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15341 | hardcode_direct=yes |
| 15342 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15343 | hardcode_libdir_separator=: |
| 15344 | hardcode_shlibpath_var=no |
| 15345 | ;; |
| 15346 | |
| 15347 | openbsd*) |
| 15348 | hardcode_direct=yes |
| 15349 | hardcode_shlibpath_var=no |
| 15350 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15351 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15352 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15353 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15354 | export_dynamic_flag_spec='${wl}-E' |
| 15355 | else |
| 15356 | case $host_os in |
| 15357 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 15358 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15359 | hardcode_libdir_flag_spec='-R$libdir' |
| 15360 | ;; |
| 15361 | *) |
| 15362 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15363 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15364 | ;; |
| 15365 | esac |
| 15366 | fi |
| 15367 | ;; |
| 15368 | |
| 15369 | os2*) |
| 15370 | hardcode_libdir_flag_spec='-L$libdir' |
| 15371 | hardcode_minus_L=yes |
| 15372 | allow_undefined_flag=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15373 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15374 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 15375 | ;; |
| 15376 | |
| 15377 | osf3*) |
| 15378 | if test "$GCC" = yes; then |
| 15379 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 15380 | 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' |
| 15381 | else |
| 15382 | allow_undefined_flag=' -expect_unresolved \*' |
| 15383 | 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' |
| 15384 | fi |
| 15385 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15386 | hardcode_libdir_separator=: |
| 15387 | ;; |
| 15388 | |
| 15389 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 15390 | if test "$GCC" = yes; then |
| 15391 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 15392 | 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' |
| 15393 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15394 | else |
| 15395 | allow_undefined_flag=' -expect_unresolved \*' |
| 15396 | 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' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15397 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15398 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15399 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15400 | # Both c and cxx compiler support -rpath directly |
| 15401 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 15402 | fi |
| 15403 | hardcode_libdir_separator=: |
| 15404 | ;; |
| 15405 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15406 | solaris*) |
| 15407 | no_undefined_flag=' -z text' |
| 15408 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15409 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15410 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15411 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15412 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15413 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15414 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15415 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15416 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15417 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15418 | fi |
| 15419 | hardcode_libdir_flag_spec='-R$libdir' |
| 15420 | hardcode_shlibpath_var=no |
| 15421 | case $host_os in |
| 15422 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15423 | *) |
| 15424 | # The compiler driver will combine linker options so we |
| 15425 | # cannot just pass the convience library names through |
| 15426 | # without $wl, iff we do not link with $LD. |
| 15427 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 15428 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15429 | case $wlarc in |
| 15430 | '') |
| 15431 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 15432 | *) |
| 15433 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
| 15434 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15435 | esac |
| 15436 | link_all_deplibs=yes |
| 15437 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15438 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15439 | sunos4*) |
| 15440 | if test "x$host_vendor" = xsequent; then |
| 15441 | # Use $CC to link under sequent, because it throws in some extra .o |
| 15442 | # files that make .init and .fini sections work. |
| 15443 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15444 | else |
| 15445 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 15446 | fi |
| 15447 | hardcode_libdir_flag_spec='-L$libdir' |
| 15448 | hardcode_direct=yes |
| 15449 | hardcode_minus_L=yes |
| 15450 | hardcode_shlibpath_var=no |
| 15451 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15452 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15453 | sysv4) |
| 15454 | case $host_vendor in |
| 15455 | sni) |
| 15456 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15457 | hardcode_direct=yes # is this really true??? |
| 15458 | ;; |
| 15459 | siemens) |
| 15460 | ## LD is ld it makes a PLAMLIB |
| 15461 | ## CC just makes a GrossModule. |
| 15462 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15463 | reload_cmds='$CC -r -o $output$reload_objs' |
| 15464 | hardcode_direct=no |
| 15465 | ;; |
| 15466 | motorola) |
| 15467 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15468 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 15469 | ;; |
| 15470 | esac |
| 15471 | runpath_var='LD_RUN_PATH' |
| 15472 | hardcode_shlibpath_var=no |
| 15473 | ;; |
| 15474 | |
| 15475 | sysv4.3*) |
| 15476 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15477 | hardcode_shlibpath_var=no |
| 15478 | export_dynamic_flag_spec='-Bexport' |
| 15479 | ;; |
| 15480 | |
| 15481 | sysv4*MP*) |
| 15482 | if test -d /usr/nec; then |
| 15483 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15484 | hardcode_shlibpath_var=no |
| 15485 | runpath_var=LD_RUN_PATH |
| 15486 | hardcode_runpath_var=yes |
| 15487 | ld_shlibs=yes |
| 15488 | fi |
| 15489 | ;; |
| 15490 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15491 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 15492 | no_undefined_flag='${wl}-z,text' |
| 15493 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15494 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15495 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15496 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15497 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15498 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15499 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15500 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15501 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15502 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15503 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15504 | ;; |
| 15505 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15506 | sysv5* | sco3.2v5* | sco5v6*) |
| 15507 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 15508 | # link with -lc, and that would cause any symbols used from libc to |
| 15509 | # always be unresolved, which means just about no library would |
| 15510 | # ever link correctly. If we're not using GNU ld we use -z text |
| 15511 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 15512 | # as -z defs. |
| 15513 | no_undefined_flag='${wl}-z,text' |
| 15514 | allow_undefined_flag='${wl}-z,nodefs' |
| 15515 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15516 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15517 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 15518 | hardcode_libdir_separator=':' |
| 15519 | link_all_deplibs=yes |
| 15520 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15521 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15522 | |
| 15523 | if test "$GCC" = yes; then |
| 15524 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15525 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15526 | else |
| 15527 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15528 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15529 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15530 | ;; |
| 15531 | |
| 15532 | uts4*) |
| 15533 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15534 | hardcode_libdir_flag_spec='-L$libdir' |
| 15535 | hardcode_shlibpath_var=no |
| 15536 | ;; |
| 15537 | |
| 15538 | *) |
| 15539 | ld_shlibs=no |
| 15540 | ;; |
| 15541 | esac |
| 15542 | fi |
| 15543 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15544 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 15545 | echo "${ECHO_T}$ld_shlibs" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15546 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15547 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15548 | # |
| 15549 | # Do we need to explicitly link libc? |
| 15550 | # |
| 15551 | case "x$archive_cmds_need_lc" in |
| 15552 | x|xyes) |
| 15553 | # Assume -lc should be added |
| 15554 | archive_cmds_need_lc=yes |
| 15555 | |
| 15556 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 15557 | case $archive_cmds in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15558 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15559 | # FIXME: we may have to deal with multi-command sequences. |
| 15560 | ;; |
| 15561 | '$CC '*) |
| 15562 | # Test whether the compiler implicitly links with -lc since on some |
| 15563 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 15564 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15565 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 15566 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15567 | $rm conftest* |
| 15568 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15569 | |
| 15570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15571 | (eval $ac_compile) 2>&5 |
| 15572 | ac_status=$? |
| 15573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15574 | (exit $ac_status); } 2>conftest.err; then |
| 15575 | soname=conftest |
| 15576 | lib=conftest |
| 15577 | libobjs=conftest.$ac_objext |
| 15578 | deplibs= |
| 15579 | wl=$lt_prog_compiler_wl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15580 | pic_flag=$lt_prog_compiler_pic |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15581 | compiler_flags=-v |
| 15582 | linker_flags=-v |
| 15583 | verstring= |
| 15584 | output_objdir=. |
| 15585 | libname=conftest |
| 15586 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 15587 | allow_undefined_flag= |
| 15588 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 15589 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 15590 | ac_status=$? |
| 15591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15592 | (exit $ac_status); } |
| 15593 | then |
| 15594 | archive_cmds_need_lc=no |
| 15595 | else |
| 15596 | archive_cmds_need_lc=yes |
| 15597 | fi |
| 15598 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 15599 | else |
| 15600 | cat conftest.err 1>&5 |
| 15601 | fi |
| 15602 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15603 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 15604 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15605 | ;; |
| 15606 | esac |
| 15607 | fi |
| 15608 | ;; |
| 15609 | esac |
| 15610 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15611 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 15612 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15613 | library_names_spec= |
| 15614 | libname_spec='lib$name' |
| 15615 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15616 | shrext_cmds=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15617 | postinstall_cmds= |
| 15618 | postuninstall_cmds= |
| 15619 | finish_cmds= |
| 15620 | finish_eval= |
| 15621 | shlibpath_var= |
| 15622 | shlibpath_overrides_runpath=unknown |
| 15623 | version_type=none |
| 15624 | dynamic_linker="$host_os ld.so" |
| 15625 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15626 | if test "$GCC" = yes; then |
| 15627 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15628 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 15629 | # if the path contains ";" then we assume it to be the separator |
| 15630 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 15631 | # assumed that no part of a normal pathname contains ";" but that should |
| 15632 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 15633 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15634 | else |
| 15635 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15636 | fi |
| 15637 | else |
| 15638 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 15639 | fi |
| 15640 | need_lib_prefix=unknown |
| 15641 | hardcode_into_libs=no |
| 15642 | |
| 15643 | # when you set need_version to no, make sure it does not cause -set_version |
| 15644 | # flags to be left without arguments |
| 15645 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15646 | |
| 15647 | case $host_os in |
| 15648 | aix3*) |
| 15649 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15650 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15651 | shlibpath_var=LIBPATH |
| 15652 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15653 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 15654 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15655 | ;; |
| 15656 | |
| 15657 | aix4* | aix5*) |
| 15658 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15659 | need_lib_prefix=no |
| 15660 | need_version=no |
| 15661 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15662 | if test "$host_cpu" = ia64; then |
| 15663 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15664 | 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] | 15665 | shlibpath_var=LD_LIBRARY_PATH |
| 15666 | else |
| 15667 | # With GCC up to 2.95.x, collect2 would create an import file |
| 15668 | # for dependence libraries. The import file would start with |
| 15669 | # the line `#! .'. This would cause the generated library to |
| 15670 | # depend on `.', always an invalid library. This was fixed in |
| 15671 | # development snapshots of GCC prior to 3.0. |
| 15672 | case $host_os in |
| 15673 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15674 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 15675 | echo ' yes ' |
| 15676 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 15677 | : |
| 15678 | else |
| 15679 | can_build_shared=no |
| 15680 | fi |
| 15681 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15682 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15683 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 15684 | # soname into executable. Probably we can add versioning support to |
| 15685 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15686 | if test "$aix_use_runtimelinking" = yes; then |
| 15687 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 15688 | # instead of lib<name>.a to let people know that these are not |
| 15689 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15690 | 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] | 15691 | else |
| 15692 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 15693 | # and later when we are not doing run time linking. |
| 15694 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15695 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15696 | fi |
| 15697 | shlibpath_var=LIBPATH |
| 15698 | fi |
| 15699 | ;; |
| 15700 | |
| 15701 | amigaos*) |
| 15702 | library_names_spec='$libname.ixlibrary $libname.a' |
| 15703 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15704 | 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' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15705 | ;; |
| 15706 | |
| 15707 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15708 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15709 | dynamic_linker="$host_os ld.so" |
| 15710 | shlibpath_var=LIBRARY_PATH |
| 15711 | ;; |
| 15712 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15713 | bsdi[45]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15714 | version_type=linux |
| 15715 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15716 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15717 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15718 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 15719 | shlibpath_var=LD_LIBRARY_PATH |
| 15720 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 15721 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15722 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 15723 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 15724 | # libtool to hard-code these into programs |
| 15725 | ;; |
| 15726 | |
| 15727 | cygwin* | mingw* | pw32*) |
| 15728 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15729 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15730 | need_version=no |
| 15731 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15732 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15733 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15734 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15735 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15736 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15737 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15738 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 15739 | dldir=$destdir/`dirname \$dlpath`~ |
| 15740 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15741 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 15742 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15743 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15744 | dlpath=$dir/\$dldll~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15745 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15746 | shlibpath_overrides_runpath=yes |
| 15747 | |
| 15748 | case $host_os in |
| 15749 | cygwin*) |
| 15750 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 15751 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15752 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15753 | ;; |
| 15754 | mingw*) |
| 15755 | # MinGW DLLs use traditional 'lib' prefix |
| 15756 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15757 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15758 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 15759 | # It is most probably a Windows format PATH printed by |
| 15760 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 15761 | # path with ; separators, and with drive letters. We can handle the |
| 15762 | # drive letters (cygwin fileutils understands them), so leave them, |
| 15763 | # especially as we might pass files found there to a mingw objdump, |
| 15764 | # which wouldn't understand a cygwinified path. Ahh. |
| 15765 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15766 | else |
| 15767 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15768 | fi |
| 15769 | ;; |
| 15770 | pw32*) |
| 15771 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15772 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15773 | ;; |
| 15774 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15775 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15776 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15777 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15778 | 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] | 15779 | ;; |
| 15780 | esac |
| 15781 | dynamic_linker='Win32 ld.exe' |
| 15782 | # FIXME: first we should search . and the directory the executable is in |
| 15783 | shlibpath_var=PATH |
| 15784 | ;; |
| 15785 | |
| 15786 | darwin* | rhapsody*) |
| 15787 | dynamic_linker="$host_os dyld" |
| 15788 | version_type=darwin |
| 15789 | need_lib_prefix=no |
| 15790 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15791 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15792 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15793 | shlibpath_overrides_runpath=yes |
| 15794 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15795 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15796 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15797 | if test "$GCC" = yes; then |
| 15798 | 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"` |
| 15799 | else |
| 15800 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15801 | fi |
| 15802 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 15803 | ;; |
| 15804 | |
| 15805 | dgux*) |
| 15806 | version_type=linux |
| 15807 | need_lib_prefix=no |
| 15808 | need_version=no |
| 15809 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 15810 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15811 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15812 | ;; |
| 15813 | |
| 15814 | freebsd1*) |
| 15815 | dynamic_linker=no |
| 15816 | ;; |
| 15817 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15818 | kfreebsd*-gnu) |
| 15819 | version_type=linux |
| 15820 | need_lib_prefix=no |
| 15821 | need_version=no |
| 15822 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15823 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15824 | shlibpath_var=LD_LIBRARY_PATH |
| 15825 | shlibpath_overrides_runpath=no |
| 15826 | hardcode_into_libs=yes |
| 15827 | dynamic_linker='GNU ld.so' |
| 15828 | ;; |
| 15829 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15830 | freebsd* | dragonfly*) |
| 15831 | # DragonFly does not have aout. When/if they implement a new |
| 15832 | # versioning mechanism, adjust this. |
| 15833 | if test -x /usr/bin/objformat; then |
| 15834 | objformat=`/usr/bin/objformat` |
| 15835 | else |
| 15836 | case $host_os in |
| 15837 | freebsd[123]*) objformat=aout ;; |
| 15838 | *) objformat=elf ;; |
| 15839 | esac |
| 15840 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15841 | version_type=freebsd-$objformat |
| 15842 | case $version_type in |
| 15843 | freebsd-elf*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15844 | 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] | 15845 | need_version=no |
| 15846 | need_lib_prefix=no |
| 15847 | ;; |
| 15848 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15849 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15850 | need_version=yes |
| 15851 | ;; |
| 15852 | esac |
| 15853 | shlibpath_var=LD_LIBRARY_PATH |
| 15854 | case $host_os in |
| 15855 | freebsd2*) |
| 15856 | shlibpath_overrides_runpath=yes |
| 15857 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15858 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15859 | shlibpath_overrides_runpath=yes |
| 15860 | hardcode_into_libs=yes |
| 15861 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15862 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 15863 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15864 | shlibpath_overrides_runpath=no |
| 15865 | hardcode_into_libs=yes |
| 15866 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15867 | freebsd*) # from 4.6 on |
| 15868 | shlibpath_overrides_runpath=yes |
| 15869 | hardcode_into_libs=yes |
| 15870 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15871 | esac |
| 15872 | ;; |
| 15873 | |
| 15874 | gnu*) |
| 15875 | version_type=linux |
| 15876 | need_lib_prefix=no |
| 15877 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15878 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15879 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15880 | shlibpath_var=LD_LIBRARY_PATH |
| 15881 | hardcode_into_libs=yes |
| 15882 | ;; |
| 15883 | |
| 15884 | hpux9* | hpux10* | hpux11*) |
| 15885 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 15886 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15887 | version_type=sunos |
| 15888 | need_lib_prefix=no |
| 15889 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15890 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15891 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15892 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15893 | hardcode_into_libs=yes |
| 15894 | dynamic_linker="$host_os dld.so" |
| 15895 | shlibpath_var=LD_LIBRARY_PATH |
| 15896 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15897 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15898 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15899 | if test "X$HPUX_IA64_MODE" = X32; then |
| 15900 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 15901 | else |
| 15902 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 15903 | fi |
| 15904 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15905 | ;; |
| 15906 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15907 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15908 | hardcode_into_libs=yes |
| 15909 | dynamic_linker="$host_os dld.sl" |
| 15910 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 15911 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15912 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15913 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15914 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 15915 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15916 | ;; |
| 15917 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15918 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15919 | dynamic_linker="$host_os dld.sl" |
| 15920 | shlibpath_var=SHLIB_PATH |
| 15921 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 15922 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15923 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15924 | ;; |
| 15925 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15926 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 15927 | postinstall_cmds='chmod 555 $lib' |
| 15928 | ;; |
| 15929 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15930 | interix3*) |
| 15931 | version_type=linux |
| 15932 | need_lib_prefix=no |
| 15933 | need_version=no |
| 15934 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15935 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15936 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 15937 | shlibpath_var=LD_LIBRARY_PATH |
| 15938 | shlibpath_overrides_runpath=no |
| 15939 | hardcode_into_libs=yes |
| 15940 | ;; |
| 15941 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15942 | irix5* | irix6* | nonstopux*) |
| 15943 | case $host_os in |
| 15944 | nonstopux*) version_type=nonstopux ;; |
| 15945 | *) |
| 15946 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 15947 | version_type=linux |
| 15948 | else |
| 15949 | version_type=irix |
| 15950 | fi ;; |
| 15951 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15952 | need_lib_prefix=no |
| 15953 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15954 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15955 | 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] | 15956 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15957 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15958 | libsuff= shlibsuff= |
| 15959 | ;; |
| 15960 | *) |
| 15961 | 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] | 15962 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 15963 | libsuff= shlibsuff= libmagic=32-bit;; |
| 15964 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 15965 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 15966 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 15967 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15968 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 15969 | esac |
| 15970 | ;; |
| 15971 | esac |
| 15972 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 15973 | shlibpath_overrides_runpath=no |
| 15974 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 15975 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15976 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15977 | ;; |
| 15978 | |
| 15979 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15980 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15981 | dynamic_linker=no |
| 15982 | ;; |
| 15983 | |
| 15984 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15985 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15986 | version_type=linux |
| 15987 | need_lib_prefix=no |
| 15988 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15989 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15990 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15991 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 15992 | shlibpath_var=LD_LIBRARY_PATH |
| 15993 | shlibpath_overrides_runpath=no |
| 15994 | # This implies no fast_install, which is unacceptable. |
| 15995 | # Some rework will be needed to allow for fast_install |
| 15996 | # before this can be enabled. |
| 15997 | hardcode_into_libs=yes |
| 15998 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15999 | # Append ld.so.conf contents to the search path |
| 16000 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16001 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16002 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 16003 | fi |
| 16004 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16005 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16006 | # powerpc, because MkLinux only supported shared libraries with the |
| 16007 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16008 | # most powerpc-linux boxes support dynamic linking these days and |
| 16009 | # people can always --disable-shared, the test was removed, and we |
| 16010 | # assume the GNU/Linux dynamic linker is in use. |
| 16011 | dynamic_linker='GNU/Linux ld.so' |
| 16012 | ;; |
| 16013 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16014 | knetbsd*-gnu) |
| 16015 | version_type=linux |
| 16016 | need_lib_prefix=no |
| 16017 | need_version=no |
| 16018 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16019 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16020 | shlibpath_var=LD_LIBRARY_PATH |
| 16021 | shlibpath_overrides_runpath=no |
| 16022 | hardcode_into_libs=yes |
| 16023 | dynamic_linker='GNU ld.so' |
| 16024 | ;; |
| 16025 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16026 | netbsd*) |
| 16027 | version_type=sunos |
| 16028 | need_lib_prefix=no |
| 16029 | need_version=no |
| 16030 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16031 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16032 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16033 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16034 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16035 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16036 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16037 | dynamic_linker='NetBSD ld.elf_so' |
| 16038 | fi |
| 16039 | shlibpath_var=LD_LIBRARY_PATH |
| 16040 | shlibpath_overrides_runpath=yes |
| 16041 | hardcode_into_libs=yes |
| 16042 | ;; |
| 16043 | |
| 16044 | newsos6) |
| 16045 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16046 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16047 | shlibpath_var=LD_LIBRARY_PATH |
| 16048 | shlibpath_overrides_runpath=yes |
| 16049 | ;; |
| 16050 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16051 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16052 | version_type=linux |
| 16053 | need_lib_prefix=no |
| 16054 | need_version=no |
| 16055 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16056 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16057 | shlibpath_var=LD_LIBRARY_PATH |
| 16058 | shlibpath_overrides_runpath=yes |
| 16059 | ;; |
| 16060 | |
| 16061 | openbsd*) |
| 16062 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16063 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16064 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16065 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 16066 | case $host_os in |
| 16067 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 16068 | *) need_version=no ;; |
| 16069 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16070 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16071 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16072 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16073 | 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] | 16074 | case $host_os in |
| 16075 | openbsd2.[89] | openbsd2.[89].*) |
| 16076 | shlibpath_overrides_runpath=no |
| 16077 | ;; |
| 16078 | *) |
| 16079 | shlibpath_overrides_runpath=yes |
| 16080 | ;; |
| 16081 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16082 | else |
| 16083 | shlibpath_overrides_runpath=yes |
| 16084 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16085 | ;; |
| 16086 | |
| 16087 | os2*) |
| 16088 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16089 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16090 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16091 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16092 | dynamic_linker='OS/2 ld.exe' |
| 16093 | shlibpath_var=LIBPATH |
| 16094 | ;; |
| 16095 | |
| 16096 | osf3* | osf4* | osf5*) |
| 16097 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16098 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16099 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16100 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16101 | 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] | 16102 | shlibpath_var=LD_LIBRARY_PATH |
| 16103 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16104 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16105 | ;; |
| 16106 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16107 | solaris*) |
| 16108 | version_type=linux |
| 16109 | need_lib_prefix=no |
| 16110 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16111 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16112 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16113 | shlibpath_var=LD_LIBRARY_PATH |
| 16114 | shlibpath_overrides_runpath=yes |
| 16115 | hardcode_into_libs=yes |
| 16116 | # ldd complains unless libraries are executable |
| 16117 | postinstall_cmds='chmod +x $lib' |
| 16118 | ;; |
| 16119 | |
| 16120 | sunos4*) |
| 16121 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16122 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16123 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16124 | shlibpath_var=LD_LIBRARY_PATH |
| 16125 | shlibpath_overrides_runpath=yes |
| 16126 | if test "$with_gnu_ld" = yes; then |
| 16127 | need_lib_prefix=no |
| 16128 | fi |
| 16129 | need_version=yes |
| 16130 | ;; |
| 16131 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16132 | sysv4 | sysv4.3*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16133 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16134 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16135 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16136 | shlibpath_var=LD_LIBRARY_PATH |
| 16137 | case $host_vendor in |
| 16138 | sni) |
| 16139 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16140 | need_lib_prefix=no |
| 16141 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16142 | runpath_var=LD_RUN_PATH |
| 16143 | ;; |
| 16144 | siemens) |
| 16145 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16146 | ;; |
| 16147 | motorola) |
| 16148 | need_lib_prefix=no |
| 16149 | need_version=no |
| 16150 | shlibpath_overrides_runpath=no |
| 16151 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16152 | ;; |
| 16153 | esac |
| 16154 | ;; |
| 16155 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16156 | sysv4*MP*) |
| 16157 | if test -d /usr/nec ;then |
| 16158 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16159 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16160 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16161 | shlibpath_var=LD_LIBRARY_PATH |
| 16162 | fi |
| 16163 | ;; |
| 16164 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16165 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 16166 | version_type=freebsd-elf |
| 16167 | need_lib_prefix=no |
| 16168 | need_version=no |
| 16169 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16170 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16171 | shlibpath_var=LD_LIBRARY_PATH |
| 16172 | hardcode_into_libs=yes |
| 16173 | if test "$with_gnu_ld" = yes; then |
| 16174 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 16175 | shlibpath_overrides_runpath=no |
| 16176 | else |
| 16177 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 16178 | shlibpath_overrides_runpath=yes |
| 16179 | case $host_os in |
| 16180 | sco3.2v5*) |
| 16181 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 16182 | ;; |
| 16183 | esac |
| 16184 | fi |
| 16185 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 16186 | ;; |
| 16187 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16188 | uts4*) |
| 16189 | version_type=linux |
| 16190 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16191 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16192 | shlibpath_var=LD_LIBRARY_PATH |
| 16193 | ;; |
| 16194 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16195 | *) |
| 16196 | dynamic_linker=no |
| 16197 | ;; |
| 16198 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16199 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16200 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16201 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16202 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16203 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16204 | if test "$GCC" = yes; then |
| 16205 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16206 | fi |
| 16207 | |
| 16208 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 16209 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16210 | hardcode_action= |
| 16211 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 16212 | test -n "$runpath_var" || \ |
| 16213 | test "X$hardcode_automatic" = "Xyes" ; then |
| 16214 | |
| 16215 | # We can hardcode non-existant directories. |
| 16216 | if test "$hardcode_direct" != no && |
| 16217 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16218 | # have to relink, otherwise we might link with an installed library |
| 16219 | # when we should be linking with a yet-to-be-installed one |
| 16220 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 16221 | test "$hardcode_minus_L" != no; then |
| 16222 | # Linking always hardcodes the temporary library directory. |
| 16223 | hardcode_action=relink |
| 16224 | else |
| 16225 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16226 | hardcode_action=immediate |
| 16227 | fi |
| 16228 | else |
| 16229 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16230 | # directories. |
| 16231 | hardcode_action=unsupported |
| 16232 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16233 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 16234 | echo "${ECHO_T}$hardcode_action" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16235 | |
| 16236 | if test "$hardcode_action" = relink; then |
| 16237 | # Fast installation is not supported |
| 16238 | enable_fast_install=no |
| 16239 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16240 | test "$enable_shared" = no; then |
| 16241 | # Fast installation is not necessary |
| 16242 | enable_fast_install=needless |
| 16243 | fi |
| 16244 | |
| 16245 | striplib= |
| 16246 | old_striplib= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16247 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 16248 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16249 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 16250 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 16251 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16252 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16253 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16254 | else |
| 16255 | # FIXME - insert some real tests, host_os isn't really good enough |
| 16256 | case $host_os in |
| 16257 | darwin*) |
| 16258 | if test -n "$STRIP" ; then |
| 16259 | striplib="$STRIP -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16260 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16261 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16262 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16263 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16264 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16265 | fi |
| 16266 | ;; |
| 16267 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16268 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16269 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16270 | ;; |
| 16271 | esac |
| 16272 | fi |
| 16273 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16274 | if test "x$enable_dlopen" != xyes; then |
| 16275 | enable_dlopen=unknown |
| 16276 | enable_dlopen_self=unknown |
| 16277 | enable_dlopen_self_static=unknown |
| 16278 | else |
| 16279 | lt_cv_dlopen=no |
| 16280 | lt_cv_dlopen_libs= |
| 16281 | |
| 16282 | case $host_os in |
| 16283 | beos*) |
| 16284 | lt_cv_dlopen="load_add_on" |
| 16285 | lt_cv_dlopen_libs= |
| 16286 | lt_cv_dlopen_self=yes |
| 16287 | ;; |
| 16288 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16289 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16290 | lt_cv_dlopen="LoadLibrary" |
| 16291 | lt_cv_dlopen_libs= |
| 16292 | ;; |
| 16293 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16294 | cygwin*) |
| 16295 | lt_cv_dlopen="dlopen" |
| 16296 | lt_cv_dlopen_libs= |
| 16297 | ;; |
| 16298 | |
| 16299 | darwin*) |
| 16300 | # if libdl is installed we need to link against it |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16301 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16302 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16303 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16305 | else |
| 16306 | ac_check_lib_save_LIBS=$LIBS |
| 16307 | LIBS="-ldl $LIBS" |
| 16308 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16309 | /* confdefs.h. */ |
| 16310 | _ACEOF |
| 16311 | cat confdefs.h >>conftest.$ac_ext |
| 16312 | cat >>conftest.$ac_ext <<_ACEOF |
| 16313 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16314 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16315 | /* Override any GCC internal prototype to avoid an error. |
| 16316 | Use char because int might match the return type of a GCC |
| 16317 | builtin and then its argument prototype would still apply. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16318 | #ifdef __cplusplus |
| 16319 | extern "C" |
| 16320 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16321 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16322 | int |
| 16323 | main () |
| 16324 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16325 | return dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16326 | ; |
| 16327 | return 0; |
| 16328 | } |
| 16329 | _ACEOF |
| 16330 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16331 | if { (ac_try="$ac_link" |
| 16332 | case "(($ac_try" in |
| 16333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16334 | *) ac_try_echo=$ac_try;; |
| 16335 | esac |
| 16336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16337 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16338 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16339 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16340 | rm -f conftest.er1 |
| 16341 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16343 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16344 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16345 | { (case "(($ac_try" in |
| 16346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16347 | *) ac_try_echo=$ac_try;; |
| 16348 | esac |
| 16349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16350 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16351 | ac_status=$? |
| 16352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16353 | (exit $ac_status); }; } && |
| 16354 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16355 | { (case "(($ac_try" in |
| 16356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16357 | *) ac_try_echo=$ac_try;; |
| 16358 | esac |
| 16359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16360 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16361 | ac_status=$? |
| 16362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16363 | (exit $ac_status); }; }; then |
| 16364 | ac_cv_lib_dl_dlopen=yes |
| 16365 | else |
| 16366 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16367 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16368 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16369 | ac_cv_lib_dl_dlopen=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16370 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16371 | |
| 16372 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16373 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16374 | LIBS=$ac_check_lib_save_LIBS |
| 16375 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16376 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16377 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16378 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 16379 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16380 | else |
| 16381 | |
| 16382 | lt_cv_dlopen="dyld" |
| 16383 | lt_cv_dlopen_libs= |
| 16384 | lt_cv_dlopen_self=yes |
| 16385 | |
| 16386 | fi |
| 16387 | |
| 16388 | ;; |
| 16389 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16390 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16391 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 16392 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16393 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 16394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16395 | else |
| 16396 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16397 | /* confdefs.h. */ |
| 16398 | _ACEOF |
| 16399 | cat confdefs.h >>conftest.$ac_ext |
| 16400 | cat >>conftest.$ac_ext <<_ACEOF |
| 16401 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16402 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 16403 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16404 | #define shl_load innocuous_shl_load |
| 16405 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16406 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16407 | which can conflict with char shl_load (); below. |
| 16408 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16409 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16410 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16411 | #ifdef __STDC__ |
| 16412 | # include <limits.h> |
| 16413 | #else |
| 16414 | # include <assert.h> |
| 16415 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16416 | |
| 16417 | #undef shl_load |
| 16418 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16419 | /* Override any GCC internal prototype to avoid an error. |
| 16420 | Use char because int might match the return type of a GCC |
| 16421 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16422 | #ifdef __cplusplus |
| 16423 | extern "C" |
| 16424 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16425 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16426 | /* The GNU C library defines this for functions which it implements |
| 16427 | to always fail with ENOSYS. Some functions are actually named |
| 16428 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16429 | #if defined __stub_shl_load || defined __stub___shl_load |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16430 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16431 | #endif |
| 16432 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16433 | int |
| 16434 | main () |
| 16435 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16436 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16437 | ; |
| 16438 | return 0; |
| 16439 | } |
| 16440 | _ACEOF |
| 16441 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16442 | if { (ac_try="$ac_link" |
| 16443 | case "(($ac_try" in |
| 16444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16445 | *) ac_try_echo=$ac_try;; |
| 16446 | esac |
| 16447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16448 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16449 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16450 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16451 | rm -f conftest.er1 |
| 16452 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16454 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16455 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16456 | { (case "(($ac_try" in |
| 16457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16458 | *) ac_try_echo=$ac_try;; |
| 16459 | esac |
| 16460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16461 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16462 | ac_status=$? |
| 16463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16464 | (exit $ac_status); }; } && |
| 16465 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16466 | { (case "(($ac_try" in |
| 16467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16468 | *) ac_try_echo=$ac_try;; |
| 16469 | esac |
| 16470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16471 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16472 | ac_status=$? |
| 16473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16474 | (exit $ac_status); }; }; then |
| 16475 | ac_cv_func_shl_load=yes |
| 16476 | else |
| 16477 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16478 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16479 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16480 | ac_cv_func_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16481 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16482 | |
| 16483 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16484 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16485 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16486 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 16487 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16488 | if test $ac_cv_func_shl_load = yes; then |
| 16489 | lt_cv_dlopen="shl_load" |
| 16490 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16491 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 16492 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16493 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 16494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16495 | else |
| 16496 | ac_check_lib_save_LIBS=$LIBS |
| 16497 | LIBS="-ldld $LIBS" |
| 16498 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16499 | /* confdefs.h. */ |
| 16500 | _ACEOF |
| 16501 | cat confdefs.h >>conftest.$ac_ext |
| 16502 | cat >>conftest.$ac_ext <<_ACEOF |
| 16503 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16504 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16505 | /* Override any GCC internal prototype to avoid an error. |
| 16506 | Use char because int might match the return type of a GCC |
| 16507 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16508 | #ifdef __cplusplus |
| 16509 | extern "C" |
| 16510 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16511 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16512 | int |
| 16513 | main () |
| 16514 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16515 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16516 | ; |
| 16517 | return 0; |
| 16518 | } |
| 16519 | _ACEOF |
| 16520 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16521 | if { (ac_try="$ac_link" |
| 16522 | case "(($ac_try" in |
| 16523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16524 | *) ac_try_echo=$ac_try;; |
| 16525 | esac |
| 16526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16527 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16528 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16529 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16530 | rm -f conftest.er1 |
| 16531 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16533 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16534 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16535 | { (case "(($ac_try" in |
| 16536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16537 | *) ac_try_echo=$ac_try;; |
| 16538 | esac |
| 16539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16540 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16541 | ac_status=$? |
| 16542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16543 | (exit $ac_status); }; } && |
| 16544 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16545 | { (case "(($ac_try" in |
| 16546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16547 | *) ac_try_echo=$ac_try;; |
| 16548 | esac |
| 16549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16550 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16551 | ac_status=$? |
| 16552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16553 | (exit $ac_status); }; }; then |
| 16554 | ac_cv_lib_dld_shl_load=yes |
| 16555 | else |
| 16556 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16558 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16559 | ac_cv_lib_dld_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16560 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16561 | |
| 16562 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16563 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16564 | LIBS=$ac_check_lib_save_LIBS |
| 16565 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16566 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 16567 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16568 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 16569 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 16570 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16571 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 16572 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16573 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 16574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16575 | else |
| 16576 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16577 | /* confdefs.h. */ |
| 16578 | _ACEOF |
| 16579 | cat confdefs.h >>conftest.$ac_ext |
| 16580 | cat >>conftest.$ac_ext <<_ACEOF |
| 16581 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16582 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 16583 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16584 | #define dlopen innocuous_dlopen |
| 16585 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16586 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16587 | which can conflict with char dlopen (); below. |
| 16588 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16589 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16590 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16591 | #ifdef __STDC__ |
| 16592 | # include <limits.h> |
| 16593 | #else |
| 16594 | # include <assert.h> |
| 16595 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16596 | |
| 16597 | #undef dlopen |
| 16598 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16599 | /* Override any GCC internal prototype to avoid an error. |
| 16600 | Use char because int might match the return type of a GCC |
| 16601 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16602 | #ifdef __cplusplus |
| 16603 | extern "C" |
| 16604 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16605 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16606 | /* The GNU C library defines this for functions which it implements |
| 16607 | to always fail with ENOSYS. Some functions are actually named |
| 16608 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16609 | #if defined __stub_dlopen || defined __stub___dlopen |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16610 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16611 | #endif |
| 16612 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16613 | int |
| 16614 | main () |
| 16615 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16616 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16617 | ; |
| 16618 | return 0; |
| 16619 | } |
| 16620 | _ACEOF |
| 16621 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16622 | if { (ac_try="$ac_link" |
| 16623 | case "(($ac_try" in |
| 16624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16625 | *) ac_try_echo=$ac_try;; |
| 16626 | esac |
| 16627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16628 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16629 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16631 | rm -f conftest.er1 |
| 16632 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16634 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16635 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16636 | { (case "(($ac_try" in |
| 16637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16638 | *) ac_try_echo=$ac_try;; |
| 16639 | esac |
| 16640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16641 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16642 | ac_status=$? |
| 16643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16644 | (exit $ac_status); }; } && |
| 16645 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16646 | { (case "(($ac_try" in |
| 16647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16648 | *) ac_try_echo=$ac_try;; |
| 16649 | esac |
| 16650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16651 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16652 | ac_status=$? |
| 16653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16654 | (exit $ac_status); }; }; then |
| 16655 | ac_cv_func_dlopen=yes |
| 16656 | else |
| 16657 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16658 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16659 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16660 | ac_cv_func_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16661 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16662 | |
| 16663 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16664 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16665 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16666 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 16667 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16668 | if test $ac_cv_func_dlopen = yes; then |
| 16669 | lt_cv_dlopen="dlopen" |
| 16670 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16671 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16672 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16673 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16675 | else |
| 16676 | ac_check_lib_save_LIBS=$LIBS |
| 16677 | LIBS="-ldl $LIBS" |
| 16678 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16679 | /* confdefs.h. */ |
| 16680 | _ACEOF |
| 16681 | cat confdefs.h >>conftest.$ac_ext |
| 16682 | cat >>conftest.$ac_ext <<_ACEOF |
| 16683 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16684 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16685 | /* Override any GCC internal prototype to avoid an error. |
| 16686 | Use char because int might match the return type of a GCC |
| 16687 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16688 | #ifdef __cplusplus |
| 16689 | extern "C" |
| 16690 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16691 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16692 | int |
| 16693 | main () |
| 16694 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16695 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16696 | ; |
| 16697 | return 0; |
| 16698 | } |
| 16699 | _ACEOF |
| 16700 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16701 | if { (ac_try="$ac_link" |
| 16702 | case "(($ac_try" in |
| 16703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16704 | *) ac_try_echo=$ac_try;; |
| 16705 | esac |
| 16706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16707 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16708 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16709 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16710 | rm -f conftest.er1 |
| 16711 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16713 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16714 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16715 | { (case "(($ac_try" in |
| 16716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16717 | *) ac_try_echo=$ac_try;; |
| 16718 | esac |
| 16719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16720 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16721 | ac_status=$? |
| 16722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16723 | (exit $ac_status); }; } && |
| 16724 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16725 | { (case "(($ac_try" in |
| 16726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16727 | *) ac_try_echo=$ac_try;; |
| 16728 | esac |
| 16729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16730 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16731 | ac_status=$? |
| 16732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16733 | (exit $ac_status); }; }; then |
| 16734 | ac_cv_lib_dl_dlopen=yes |
| 16735 | else |
| 16736 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16738 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16739 | ac_cv_lib_dl_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16740 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16741 | |
| 16742 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16743 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16744 | LIBS=$ac_check_lib_save_LIBS |
| 16745 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16746 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16747 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16748 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 16749 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16750 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16751 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 16752 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16753 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 16754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16755 | else |
| 16756 | ac_check_lib_save_LIBS=$LIBS |
| 16757 | LIBS="-lsvld $LIBS" |
| 16758 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16759 | /* confdefs.h. */ |
| 16760 | _ACEOF |
| 16761 | cat confdefs.h >>conftest.$ac_ext |
| 16762 | cat >>conftest.$ac_ext <<_ACEOF |
| 16763 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16764 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16765 | /* Override any GCC internal prototype to avoid an error. |
| 16766 | Use char because int might match the return type of a GCC |
| 16767 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16768 | #ifdef __cplusplus |
| 16769 | extern "C" |
| 16770 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16771 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16772 | int |
| 16773 | main () |
| 16774 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16775 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16776 | ; |
| 16777 | return 0; |
| 16778 | } |
| 16779 | _ACEOF |
| 16780 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16781 | if { (ac_try="$ac_link" |
| 16782 | case "(($ac_try" in |
| 16783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16784 | *) ac_try_echo=$ac_try;; |
| 16785 | esac |
| 16786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16787 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16788 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16789 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16790 | rm -f conftest.er1 |
| 16791 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16793 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16794 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16795 | { (case "(($ac_try" in |
| 16796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16797 | *) ac_try_echo=$ac_try;; |
| 16798 | esac |
| 16799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16800 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16801 | ac_status=$? |
| 16802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16803 | (exit $ac_status); }; } && |
| 16804 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16805 | { (case "(($ac_try" in |
| 16806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16807 | *) ac_try_echo=$ac_try;; |
| 16808 | esac |
| 16809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16810 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16811 | ac_status=$? |
| 16812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16813 | (exit $ac_status); }; }; then |
| 16814 | ac_cv_lib_svld_dlopen=yes |
| 16815 | else |
| 16816 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16817 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16818 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16819 | ac_cv_lib_svld_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16820 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16821 | |
| 16822 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16823 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16824 | LIBS=$ac_check_lib_save_LIBS |
| 16825 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16826 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 16827 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16828 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 16829 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 16830 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16831 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 16832 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16833 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 16834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16835 | else |
| 16836 | ac_check_lib_save_LIBS=$LIBS |
| 16837 | LIBS="-ldld $LIBS" |
| 16838 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16839 | /* confdefs.h. */ |
| 16840 | _ACEOF |
| 16841 | cat confdefs.h >>conftest.$ac_ext |
| 16842 | cat >>conftest.$ac_ext <<_ACEOF |
| 16843 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16844 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16845 | /* Override any GCC internal prototype to avoid an error. |
| 16846 | Use char because int might match the return type of a GCC |
| 16847 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16848 | #ifdef __cplusplus |
| 16849 | extern "C" |
| 16850 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16851 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16852 | int |
| 16853 | main () |
| 16854 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16855 | return dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16856 | ; |
| 16857 | return 0; |
| 16858 | } |
| 16859 | _ACEOF |
| 16860 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16861 | if { (ac_try="$ac_link" |
| 16862 | case "(($ac_try" in |
| 16863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16864 | *) ac_try_echo=$ac_try;; |
| 16865 | esac |
| 16866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16867 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16868 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16869 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16870 | rm -f conftest.er1 |
| 16871 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16873 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16874 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16875 | { (case "(($ac_try" in |
| 16876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16877 | *) ac_try_echo=$ac_try;; |
| 16878 | esac |
| 16879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16880 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16881 | ac_status=$? |
| 16882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16883 | (exit $ac_status); }; } && |
| 16884 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16885 | { (case "(($ac_try" in |
| 16886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16887 | *) ac_try_echo=$ac_try;; |
| 16888 | esac |
| 16889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16890 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16891 | ac_status=$? |
| 16892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16893 | (exit $ac_status); }; }; then |
| 16894 | ac_cv_lib_dld_dld_link=yes |
| 16895 | else |
| 16896 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16897 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16898 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16899 | ac_cv_lib_dld_dld_link=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16900 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16901 | |
| 16902 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16903 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16904 | LIBS=$ac_check_lib_save_LIBS |
| 16905 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16906 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 16907 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16908 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 16909 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 16910 | fi |
| 16911 | |
| 16912 | |
| 16913 | fi |
| 16914 | |
| 16915 | |
| 16916 | fi |
| 16917 | |
| 16918 | |
| 16919 | fi |
| 16920 | |
| 16921 | |
| 16922 | fi |
| 16923 | |
| 16924 | |
| 16925 | fi |
| 16926 | |
| 16927 | ;; |
| 16928 | esac |
| 16929 | |
| 16930 | if test "x$lt_cv_dlopen" != xno; then |
| 16931 | enable_dlopen=yes |
| 16932 | else |
| 16933 | enable_dlopen=no |
| 16934 | fi |
| 16935 | |
| 16936 | case $lt_cv_dlopen in |
| 16937 | dlopen) |
| 16938 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16939 | 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] | 16940 | |
| 16941 | save_LDFLAGS="$LDFLAGS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16942 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16943 | |
| 16944 | save_LIBS="$LIBS" |
| 16945 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 16946 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16947 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 16948 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16949 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 16950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16951 | else |
| 16952 | if test "$cross_compiling" = yes; then : |
| 16953 | lt_cv_dlopen_self=cross |
| 16954 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16955 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16956 | lt_status=$lt_dlunknown |
| 16957 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 16958 | #line 16958 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16959 | #include "confdefs.h" |
| 16960 | |
| 16961 | #if HAVE_DLFCN_H |
| 16962 | #include <dlfcn.h> |
| 16963 | #endif |
| 16964 | |
| 16965 | #include <stdio.h> |
| 16966 | |
| 16967 | #ifdef RTLD_GLOBAL |
| 16968 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 16969 | #else |
| 16970 | # ifdef DL_GLOBAL |
| 16971 | # define LT_DLGLOBAL DL_GLOBAL |
| 16972 | # else |
| 16973 | # define LT_DLGLOBAL 0 |
| 16974 | # endif |
| 16975 | #endif |
| 16976 | |
| 16977 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 16978 | find out it does not work in some platform. */ |
| 16979 | #ifndef LT_DLLAZY_OR_NOW |
| 16980 | # ifdef RTLD_LAZY |
| 16981 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 16982 | # else |
| 16983 | # ifdef DL_LAZY |
| 16984 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 16985 | # else |
| 16986 | # ifdef RTLD_NOW |
| 16987 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 16988 | # else |
| 16989 | # ifdef DL_NOW |
| 16990 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 16991 | # else |
| 16992 | # define LT_DLLAZY_OR_NOW 0 |
| 16993 | # endif |
| 16994 | # endif |
| 16995 | # endif |
| 16996 | # endif |
| 16997 | #endif |
| 16998 | |
| 16999 | #ifdef __cplusplus |
| 17000 | extern "C" void exit (int); |
| 17001 | #endif |
| 17002 | |
| 17003 | void fnord() { int i=42;} |
| 17004 | int main () |
| 17005 | { |
| 17006 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17007 | int status = $lt_dlunknown; |
| 17008 | |
| 17009 | if (self) |
| 17010 | { |
| 17011 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17012 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17013 | /* dlclose (self); */ |
| 17014 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17015 | else |
| 17016 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17017 | |
| 17018 | exit (status); |
| 17019 | } |
| 17020 | EOF |
| 17021 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17022 | (eval $ac_link) 2>&5 |
| 17023 | ac_status=$? |
| 17024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17025 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17026 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17027 | lt_status=$? |
| 17028 | case x$lt_status in |
| 17029 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 17030 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17031 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17032 | esac |
| 17033 | else : |
| 17034 | # compilation failed |
| 17035 | lt_cv_dlopen_self=no |
| 17036 | fi |
| 17037 | fi |
| 17038 | rm -fr conftest* |
| 17039 | |
| 17040 | |
| 17041 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17042 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 17043 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17044 | |
| 17045 | if test "x$lt_cv_dlopen_self" = xyes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17046 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 17047 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 17048 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17049 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 17050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17051 | else |
| 17052 | if test "$cross_compiling" = yes; then : |
| 17053 | lt_cv_dlopen_self_static=cross |
| 17054 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17055 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17056 | lt_status=$lt_dlunknown |
| 17057 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 17058 | #line 17058 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17059 | #include "confdefs.h" |
| 17060 | |
| 17061 | #if HAVE_DLFCN_H |
| 17062 | #include <dlfcn.h> |
| 17063 | #endif |
| 17064 | |
| 17065 | #include <stdio.h> |
| 17066 | |
| 17067 | #ifdef RTLD_GLOBAL |
| 17068 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17069 | #else |
| 17070 | # ifdef DL_GLOBAL |
| 17071 | # define LT_DLGLOBAL DL_GLOBAL |
| 17072 | # else |
| 17073 | # define LT_DLGLOBAL 0 |
| 17074 | # endif |
| 17075 | #endif |
| 17076 | |
| 17077 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17078 | find out it does not work in some platform. */ |
| 17079 | #ifndef LT_DLLAZY_OR_NOW |
| 17080 | # ifdef RTLD_LAZY |
| 17081 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17082 | # else |
| 17083 | # ifdef DL_LAZY |
| 17084 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17085 | # else |
| 17086 | # ifdef RTLD_NOW |
| 17087 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17088 | # else |
| 17089 | # ifdef DL_NOW |
| 17090 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17091 | # else |
| 17092 | # define LT_DLLAZY_OR_NOW 0 |
| 17093 | # endif |
| 17094 | # endif |
| 17095 | # endif |
| 17096 | # endif |
| 17097 | #endif |
| 17098 | |
| 17099 | #ifdef __cplusplus |
| 17100 | extern "C" void exit (int); |
| 17101 | #endif |
| 17102 | |
| 17103 | void fnord() { int i=42;} |
| 17104 | int main () |
| 17105 | { |
| 17106 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17107 | int status = $lt_dlunknown; |
| 17108 | |
| 17109 | if (self) |
| 17110 | { |
| 17111 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17112 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17113 | /* dlclose (self); */ |
| 17114 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17115 | else |
| 17116 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17117 | |
| 17118 | exit (status); |
| 17119 | } |
| 17120 | EOF |
| 17121 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17122 | (eval $ac_link) 2>&5 |
| 17123 | ac_status=$? |
| 17124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17125 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17126 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17127 | lt_status=$? |
| 17128 | case x$lt_status in |
| 17129 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17130 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17131 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17132 | esac |
| 17133 | else : |
| 17134 | # compilation failed |
| 17135 | lt_cv_dlopen_self_static=no |
| 17136 | fi |
| 17137 | fi |
| 17138 | rm -fr conftest* |
| 17139 | |
| 17140 | |
| 17141 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17142 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 17143 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17144 | fi |
| 17145 | |
| 17146 | CPPFLAGS="$save_CPPFLAGS" |
| 17147 | LDFLAGS="$save_LDFLAGS" |
| 17148 | LIBS="$save_LIBS" |
| 17149 | ;; |
| 17150 | esac |
| 17151 | |
| 17152 | case $lt_cv_dlopen_self in |
| 17153 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 17154 | *) enable_dlopen_self=unknown ;; |
| 17155 | esac |
| 17156 | |
| 17157 | case $lt_cv_dlopen_self_static in |
| 17158 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 17159 | *) enable_dlopen_self_static=unknown ;; |
| 17160 | esac |
| 17161 | fi |
| 17162 | |
| 17163 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17164 | # Report which library types will actually be built |
| 17165 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 17166 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 17167 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 17168 | echo "${ECHO_T}$can_build_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17169 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17170 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 17171 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17172 | test "$can_build_shared" = "no" && enable_shared=no |
| 17173 | |
| 17174 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 17175 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17176 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17177 | aix3*) |
| 17178 | test "$enable_shared" = yes && enable_static=no |
| 17179 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17180 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17181 | postinstall_cmds='$RANLIB $lib' |
| 17182 | fi |
| 17183 | ;; |
| 17184 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17185 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17186 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 17187 | test "$enable_shared" = yes && enable_static=no |
| 17188 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17189 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17190 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17191 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 17192 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17193 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17194 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 17195 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17196 | # Make sure either enable_shared or enable_static is yes. |
| 17197 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17198 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 17199 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17200 | |
| 17201 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17202 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17203 | # with your package, and you will get complaints that there are |
| 17204 | # no rules to generate ltmain.sh. |
| 17205 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17206 | # See if we are running on zsh, and set the options which allow our commands through |
| 17207 | # without removal of \ escapes. |
| 17208 | if test -n "${ZSH_VERSION+set}" ; then |
| 17209 | setopt NO_GLOB_SUBST |
| 17210 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17211 | # Now quote all the things that may contain metacharacters while being |
| 17212 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17213 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17214 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17215 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17216 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17217 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17218 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17219 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17220 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17221 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17222 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17223 | compiler \ |
| 17224 | CC \ |
| 17225 | LD \ |
| 17226 | lt_prog_compiler_wl \ |
| 17227 | lt_prog_compiler_pic \ |
| 17228 | lt_prog_compiler_static \ |
| 17229 | lt_prog_compiler_no_builtin_flag \ |
| 17230 | export_dynamic_flag_spec \ |
| 17231 | thread_safe_flag_spec \ |
| 17232 | whole_archive_flag_spec \ |
| 17233 | enable_shared_with_static_runtimes \ |
| 17234 | old_archive_cmds \ |
| 17235 | old_archive_from_new_cmds \ |
| 17236 | predep_objects \ |
| 17237 | postdep_objects \ |
| 17238 | predeps \ |
| 17239 | postdeps \ |
| 17240 | compiler_lib_search_path \ |
| 17241 | archive_cmds \ |
| 17242 | archive_expsym_cmds \ |
| 17243 | postinstall_cmds \ |
| 17244 | postuninstall_cmds \ |
| 17245 | old_archive_from_expsyms_cmds \ |
| 17246 | allow_undefined_flag \ |
| 17247 | no_undefined_flag \ |
| 17248 | export_symbols_cmds \ |
| 17249 | hardcode_libdir_flag_spec \ |
| 17250 | hardcode_libdir_flag_spec_ld \ |
| 17251 | hardcode_libdir_separator \ |
| 17252 | hardcode_automatic \ |
| 17253 | module_cmds \ |
| 17254 | module_expsym_cmds \ |
| 17255 | lt_cv_prog_compiler_c_o \ |
| 17256 | exclude_expsyms \ |
| 17257 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17258 | |
| 17259 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17260 | old_archive_cmds | \ |
| 17261 | old_archive_from_new_cmds | \ |
| 17262 | archive_cmds | \ |
| 17263 | archive_expsym_cmds | \ |
| 17264 | module_cmds | \ |
| 17265 | module_expsym_cmds | \ |
| 17266 | old_archive_from_expsyms_cmds | \ |
| 17267 | export_symbols_cmds | \ |
| 17268 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17269 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17270 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17271 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17272 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17273 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17274 | ;; |
| 17275 | *) |
| 17276 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17277 | ;; |
| 17278 | esac |
| 17279 | done |
| 17280 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17281 | case $lt_echo in |
| 17282 | *'\$0 --fallback-echo"') |
| 17283 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17284 | ;; |
| 17285 | esac |
| 17286 | |
| 17287 | cfgfile="${ofile}T" |
| 17288 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 17289 | $rm -f "$cfgfile" |
| 17290 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 17291 | echo "$as_me: creating $ofile" >&6;} |
| 17292 | |
| 17293 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17294 | #! $SHELL |
| 17295 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17296 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17297 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 17298 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 17299 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17300 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 17301 | # Free Software Foundation, Inc. |
| 17302 | # |
| 17303 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17304 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 17305 | # |
| 17306 | # This program is free software; you can redistribute it and/or modify |
| 17307 | # it under the terms of the GNU General Public License as published by |
| 17308 | # the Free Software Foundation; either version 2 of the License, or |
| 17309 | # (at your option) any later version. |
| 17310 | # |
| 17311 | # This program is distributed in the hope that it will be useful, but |
| 17312 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17313 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17314 | # General Public License for more details. |
| 17315 | # |
| 17316 | # You should have received a copy of the GNU General Public License |
| 17317 | # along with this program; if not, write to the Free Software |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17318 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17319 | # |
| 17320 | # As a special exception to the GNU General Public License, if you |
| 17321 | # distribute this file as part of a program that contains a |
| 17322 | # configuration script generated by Autoconf, you may include it under |
| 17323 | # the same distribution terms that you use for the rest of that program. |
| 17324 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17325 | # A sed program that does not truncate output. |
| 17326 | SED=$lt_SED |
| 17327 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17328 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17329 | Xsed="$SED -e 1s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17330 | |
| 17331 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 17332 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17333 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17334 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17335 | # The names of the tagged configurations supported by this script. |
| 17336 | available_tags= |
| 17337 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17338 | # ### BEGIN LIBTOOL CONFIG |
| 17339 | |
| 17340 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 17341 | |
| 17342 | # Shell to use when invoking shell scripts. |
| 17343 | SHELL=$lt_SHELL |
| 17344 | |
| 17345 | # Whether or not to build shared libraries. |
| 17346 | build_libtool_libs=$enable_shared |
| 17347 | |
| 17348 | # Whether or not to build static libraries. |
| 17349 | build_old_libs=$enable_static |
| 17350 | |
| 17351 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17352 | build_libtool_need_lc=$archive_cmds_need_lc |
| 17353 | |
| 17354 | # Whether or not to disallow shared libs when runtime libs are static |
| 17355 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17356 | |
| 17357 | # Whether or not to optimize for fast installation. |
| 17358 | fast_install=$enable_fast_install |
| 17359 | |
| 17360 | # The host system. |
| 17361 | host_alias=$host_alias |
| 17362 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17363 | host_os=$host_os |
| 17364 | |
| 17365 | # The build system. |
| 17366 | build_alias=$build_alias |
| 17367 | build=$build |
| 17368 | build_os=$build_os |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17369 | |
| 17370 | # An echo program that does not interpret backslashes. |
| 17371 | echo=$lt_echo |
| 17372 | |
| 17373 | # The archiver. |
| 17374 | AR=$lt_AR |
| 17375 | AR_FLAGS=$lt_AR_FLAGS |
| 17376 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17377 | # A C compiler. |
| 17378 | LTCC=$lt_LTCC |
| 17379 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17380 | # LTCC compiler flags. |
| 17381 | LTCFLAGS=$lt_LTCFLAGS |
| 17382 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17383 | # A language-specific compiler. |
| 17384 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17385 | |
| 17386 | # Is the compiler the GNU C compiler? |
| 17387 | with_gcc=$GCC |
| 17388 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17389 | # An ERE matcher. |
| 17390 | EGREP=$lt_EGREP |
| 17391 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17392 | # The linker used to build libraries. |
| 17393 | LD=$lt_LD |
| 17394 | |
| 17395 | # Whether we need hard or soft links. |
| 17396 | LN_S=$lt_LN_S |
| 17397 | |
| 17398 | # A BSD-compatible nm program. |
| 17399 | NM=$lt_NM |
| 17400 | |
| 17401 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17402 | STRIP=$lt_STRIP |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17403 | |
| 17404 | # Used to examine libraries when file_magic_cmd begins "file" |
| 17405 | MAGIC_CMD=$MAGIC_CMD |
| 17406 | |
| 17407 | # Used on cygwin: DLL creation program. |
| 17408 | DLLTOOL="$DLLTOOL" |
| 17409 | |
| 17410 | # Used on cygwin: object dumper. |
| 17411 | OBJDUMP="$OBJDUMP" |
| 17412 | |
| 17413 | # Used on cygwin: assembler. |
| 17414 | AS="$AS" |
| 17415 | |
| 17416 | # The name of the directory that contains temporary libtool files. |
| 17417 | objdir=$objdir |
| 17418 | |
| 17419 | # How to create reloadable object files. |
| 17420 | reload_flag=$lt_reload_flag |
| 17421 | reload_cmds=$lt_reload_cmds |
| 17422 | |
| 17423 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17424 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17425 | |
| 17426 | # Object file suffix (normally "o"). |
| 17427 | objext="$ac_objext" |
| 17428 | |
| 17429 | # Old archive suffix (normally "a"). |
| 17430 | libext="$libext" |
| 17431 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17432 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17433 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17434 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17435 | # Executable file suffix (normally ""). |
| 17436 | exeext="$exeext" |
| 17437 | |
| 17438 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17439 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17440 | pic_mode=$pic_mode |
| 17441 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17442 | # What is the maximum length of a command? |
| 17443 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17444 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17445 | # Does compiler simultaneously support -c and -o options? |
| 17446 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17447 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17448 | # Must we lock files when doing compilation? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17449 | need_locks=$lt_need_locks |
| 17450 | |
| 17451 | # Do we need the lib prefix for modules? |
| 17452 | need_lib_prefix=$need_lib_prefix |
| 17453 | |
| 17454 | # Do we need a version for libraries? |
| 17455 | need_version=$need_version |
| 17456 | |
| 17457 | # Whether dlopen is supported. |
| 17458 | dlopen_support=$enable_dlopen |
| 17459 | |
| 17460 | # Whether dlopen of programs is supported. |
| 17461 | dlopen_self=$enable_dlopen_self |
| 17462 | |
| 17463 | # Whether dlopen of statically linked programs is supported. |
| 17464 | dlopen_self_static=$enable_dlopen_self_static |
| 17465 | |
| 17466 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17467 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17468 | |
| 17469 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17470 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17471 | |
| 17472 | # Compiler flag to allow reflexive dlopens. |
| 17473 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 17474 | |
| 17475 | # Compiler flag to generate shared objects directly from archives. |
| 17476 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 17477 | |
| 17478 | # Compiler flag to generate thread-safe objects. |
| 17479 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 17480 | |
| 17481 | # Library versioning type. |
| 17482 | version_type=$version_type |
| 17483 | |
| 17484 | # Format of library name prefix. |
| 17485 | libname_spec=$lt_libname_spec |
| 17486 | |
| 17487 | # List of archive names. First name is the real one, the rest are links. |
| 17488 | # The last name is the one that the linker finds with -lNAME. |
| 17489 | library_names_spec=$lt_library_names_spec |
| 17490 | |
| 17491 | # The coded name of the library, if different from the real name. |
| 17492 | soname_spec=$lt_soname_spec |
| 17493 | |
| 17494 | # Commands used to build and install an old-style archive. |
| 17495 | RANLIB=$lt_RANLIB |
| 17496 | old_archive_cmds=$lt_old_archive_cmds |
| 17497 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 17498 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 17499 | |
| 17500 | # Create an old-style archive from a shared archive. |
| 17501 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 17502 | |
| 17503 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17504 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 17505 | |
| 17506 | # Commands used to build and install a shared archive. |
| 17507 | archive_cmds=$lt_archive_cmds |
| 17508 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 17509 | postinstall_cmds=$lt_postinstall_cmds |
| 17510 | postuninstall_cmds=$lt_postuninstall_cmds |
| 17511 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17512 | # Commands used to build a loadable module (assumed same as above if empty) |
| 17513 | module_cmds=$lt_module_cmds |
| 17514 | module_expsym_cmds=$lt_module_expsym_cmds |
| 17515 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17516 | # Commands to strip libraries. |
| 17517 | old_striplib=$lt_old_striplib |
| 17518 | striplib=$lt_striplib |
| 17519 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17520 | # Dependencies to place before the objects being linked to create a |
| 17521 | # shared library. |
| 17522 | predep_objects=$lt_predep_objects |
| 17523 | |
| 17524 | # Dependencies to place after the objects being linked to create a |
| 17525 | # shared library. |
| 17526 | postdep_objects=$lt_postdep_objects |
| 17527 | |
| 17528 | # Dependencies to place before the objects being linked to create a |
| 17529 | # shared library. |
| 17530 | predeps=$lt_predeps |
| 17531 | |
| 17532 | # Dependencies to place after the objects being linked to create a |
| 17533 | # shared library. |
| 17534 | postdeps=$lt_postdeps |
| 17535 | |
| 17536 | # The library search path used internally by the compiler when linking |
| 17537 | # a shared library. |
| 17538 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 17539 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17540 | # Method to check whether dependent libraries are shared objects. |
| 17541 | deplibs_check_method=$lt_deplibs_check_method |
| 17542 | |
| 17543 | # Command to use when deplibs_check_method == file_magic. |
| 17544 | file_magic_cmd=$lt_file_magic_cmd |
| 17545 | |
| 17546 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17547 | allow_undefined_flag=$lt_allow_undefined_flag |
| 17548 | |
| 17549 | # Flag that forces no undefined symbols. |
| 17550 | no_undefined_flag=$lt_no_undefined_flag |
| 17551 | |
| 17552 | # Commands used to finish a libtool library installation in a directory. |
| 17553 | finish_cmds=$lt_finish_cmds |
| 17554 | |
| 17555 | # Same as above, but a single script fragment to be evaled but not shown. |
| 17556 | finish_eval=$lt_finish_eval |
| 17557 | |
| 17558 | # 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] | 17559 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17560 | |
| 17561 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17562 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17563 | |
| 17564 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17565 | 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] | 17566 | |
| 17567 | # This is the shared library runtime path variable. |
| 17568 | runpath_var=$runpath_var |
| 17569 | |
| 17570 | # This is the shared library path variable. |
| 17571 | shlibpath_var=$shlibpath_var |
| 17572 | |
| 17573 | # Is shlibpath searched before the hard-coded library search path? |
| 17574 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 17575 | |
| 17576 | # How to hardcode a shared library path into an executable. |
| 17577 | hardcode_action=$hardcode_action |
| 17578 | |
| 17579 | # Whether we should hardcode library paths into libraries. |
| 17580 | hardcode_into_libs=$hardcode_into_libs |
| 17581 | |
| 17582 | # Flag to hardcode \$libdir into a binary during linking. |
| 17583 | # This must work even if \$libdir does not exist. |
| 17584 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 17585 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17586 | # If ld is used when linking, flag to hardcode \$libdir into |
| 17587 | # a binary during linking. This must work even if \$libdir does |
| 17588 | # not exist. |
| 17589 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 17590 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17591 | # Whether we need a single -rpath flag with a separated argument. |
| 17592 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 17593 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17594 | # 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] | 17595 | # resulting binary. |
| 17596 | hardcode_direct=$hardcode_direct |
| 17597 | |
| 17598 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 17599 | # resulting binary. |
| 17600 | hardcode_minus_L=$hardcode_minus_L |
| 17601 | |
| 17602 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 17603 | # the resulting binary. |
| 17604 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 17605 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17606 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 17607 | # and all subsequent libraries and executables linked against it. |
| 17608 | hardcode_automatic=$hardcode_automatic |
| 17609 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17610 | # Variables whose values should be saved in libtool wrapper scripts and |
| 17611 | # restored at relink time. |
| 17612 | variables_saved_for_relink="$variables_saved_for_relink" |
| 17613 | |
| 17614 | # Whether libtool must link a program against all its dependency libraries. |
| 17615 | link_all_deplibs=$link_all_deplibs |
| 17616 | |
| 17617 | # Compile-time system search path for libraries |
| 17618 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 17619 | |
| 17620 | # Run-time system search path for libraries |
| 17621 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 17622 | |
| 17623 | # Fix the shell variable \$srcfile for the compiler. |
| 17624 | fix_srcfile_path="$fix_srcfile_path" |
| 17625 | |
| 17626 | # Set to yes if exported symbols are required. |
| 17627 | always_export_symbols=$always_export_symbols |
| 17628 | |
| 17629 | # The commands to list exported symbols. |
| 17630 | export_symbols_cmds=$lt_export_symbols_cmds |
| 17631 | |
| 17632 | # The commands to extract the exported symbol list from a shared archive. |
| 17633 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 17634 | |
| 17635 | # Symbols that should not be listed in the preloaded symbols. |
| 17636 | exclude_expsyms=$lt_exclude_expsyms |
| 17637 | |
| 17638 | # Symbols that must always be exported. |
| 17639 | include_expsyms=$lt_include_expsyms |
| 17640 | |
| 17641 | # ### END LIBTOOL CONFIG |
| 17642 | |
| 17643 | __EOF__ |
| 17644 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17645 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17646 | case $host_os in |
| 17647 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17648 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17649 | |
| 17650 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 17651 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 17652 | # vanish in a puff of smoke. |
| 17653 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 17654 | COLLECT_NAMES= |
| 17655 | export COLLECT_NAMES |
| 17656 | fi |
| 17657 | EOF |
| 17658 | ;; |
| 17659 | esac |
| 17660 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17661 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 17662 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 17663 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 17664 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17665 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17666 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17667 | mv -f "$cfgfile" "$ofile" || \ |
| 17668 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17669 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17670 | |
| 17671 | else |
| 17672 | # If there is no Makefile yet, we rely on a make rule to execute |
| 17673 | # `config.status --recheck' to rerun these tests and create the |
| 17674 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17675 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 17676 | if test -f "$ltmain_in"; then |
| 17677 | test -f Makefile && make "$ltmain" |
| 17678 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17679 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17680 | |
| 17681 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17682 | ac_ext=c |
| 17683 | ac_cpp='$CPP $CPPFLAGS' |
| 17684 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17685 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17686 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17687 | |
| 17688 | CC="$lt_save_CC" |
| 17689 | |
| 17690 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17691 | # Check whether --with-tags was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17692 | if test "${with_tags+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17693 | withval=$with_tags; tagnames="$withval" |
| 17694 | fi |
| 17695 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17696 | |
| 17697 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 17698 | if test ! -f "${ofile}"; then |
| 17699 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 17700 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 17701 | fi |
| 17702 | |
| 17703 | if test -z "$LTCC"; then |
| 17704 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 17705 | if test -z "$LTCC"; then |
| 17706 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 17707 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 17708 | else |
| 17709 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 17710 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 17711 | fi |
| 17712 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17713 | if test -z "$LTCFLAGS"; then |
| 17714 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 17715 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17716 | |
| 17717 | # Extract list of available tagged configurations in $ofile. |
| 17718 | # Note that this assumes the entire list is on one line. |
| 17719 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 17720 | |
| 17721 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 17722 | for tagname in $tagnames; do |
| 17723 | IFS="$lt_save_ifs" |
| 17724 | # Check whether tagname contains only valid characters |
| 17725 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 17726 | "") ;; |
| 17727 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 17728 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 17729 | { (exit 1); exit 1; }; } |
| 17730 | ;; |
| 17731 | esac |
| 17732 | |
| 17733 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 17734 | then |
| 17735 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 17736 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 17737 | { (exit 1); exit 1; }; } |
| 17738 | fi |
| 17739 | |
| 17740 | # Update the list of available tags. |
| 17741 | if test -n "$tagname"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17742 | echo appending configuration tag \"$tagname\" to $ofile |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17743 | |
| 17744 | case $tagname in |
| 17745 | CXX) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17746 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 17747 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 17748 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17749 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17750 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17751 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17752 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17753 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 17754 | |
| 17755 | |
| 17756 | |
| 17757 | |
| 17758 | archive_cmds_need_lc_CXX=no |
| 17759 | allow_undefined_flag_CXX= |
| 17760 | always_export_symbols_CXX=no |
| 17761 | archive_expsym_cmds_CXX= |
| 17762 | export_dynamic_flag_spec_CXX= |
| 17763 | hardcode_direct_CXX=no |
| 17764 | hardcode_libdir_flag_spec_CXX= |
| 17765 | hardcode_libdir_flag_spec_ld_CXX= |
| 17766 | hardcode_libdir_separator_CXX= |
| 17767 | hardcode_minus_L_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17768 | hardcode_shlibpath_var_CXX=unsupported |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17769 | hardcode_automatic_CXX=no |
| 17770 | module_cmds_CXX= |
| 17771 | module_expsym_cmds_CXX= |
| 17772 | link_all_deplibs_CXX=unknown |
| 17773 | old_archive_cmds_CXX=$old_archive_cmds |
| 17774 | no_undefined_flag_CXX= |
| 17775 | whole_archive_flag_spec_CXX= |
| 17776 | enable_shared_with_static_runtimes_CXX=no |
| 17777 | |
| 17778 | # Dependencies to place before and after the object being linked: |
| 17779 | predep_objects_CXX= |
| 17780 | postdep_objects_CXX= |
| 17781 | predeps_CXX= |
| 17782 | postdeps_CXX= |
| 17783 | compiler_lib_search_path_CXX= |
| 17784 | |
| 17785 | # Source file extension for C++ test sources. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17786 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17787 | |
| 17788 | # Object file extension for compiled C++ test sources. |
| 17789 | objext=o |
| 17790 | objext_CXX=$objext |
| 17791 | |
| 17792 | # Code to be used in simple compile tests |
| 17793 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 17794 | |
| 17795 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17796 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17797 | |
| 17798 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 17799 | |
| 17800 | # If no C compiler was specified, use CC. |
| 17801 | LTCC=${LTCC-"$CC"} |
| 17802 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17803 | # If no C compiler flags were specified, use CFLAGS. |
| 17804 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 17805 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17806 | # Allow CC to be a program name with arguments. |
| 17807 | compiler=$CC |
| 17808 | |
| 17809 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17810 | # save warnings/boilerplate of simple test code |
| 17811 | ac_outfile=conftest.$ac_objext |
| 17812 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 17813 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 17814 | _lt_compiler_boilerplate=`cat conftest.err` |
| 17815 | $rm conftest* |
| 17816 | |
| 17817 | ac_outfile=conftest.$ac_objext |
| 17818 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 17819 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 17820 | _lt_linker_boilerplate=`cat conftest.err` |
| 17821 | $rm conftest* |
| 17822 | |
| 17823 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17824 | # Allow CC to be a program name with arguments. |
| 17825 | lt_save_CC=$CC |
| 17826 | lt_save_LD=$LD |
| 17827 | lt_save_GCC=$GCC |
| 17828 | GCC=$GXX |
| 17829 | lt_save_with_gnu_ld=$with_gnu_ld |
| 17830 | lt_save_path_LD=$lt_cv_path_LD |
| 17831 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 17832 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 17833 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17834 | $as_unset lt_cv_prog_gnu_ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17835 | fi |
| 17836 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 17837 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 17838 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17839 | $as_unset lt_cv_path_LD |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17840 | fi |
| 17841 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 17842 | CC=${CXX-"c++"} |
| 17843 | compiler=$CC |
| 17844 | compiler_CXX=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17845 | for cc_temp in $compiler""; do |
| 17846 | case $cc_temp in |
| 17847 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 17848 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 17849 | \-*) ;; |
| 17850 | *) break;; |
| 17851 | esac |
| 17852 | done |
| 17853 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 17854 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17855 | |
| 17856 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 17857 | # no_builtin_flag separately |
| 17858 | if test "$GXX" = yes; then |
| 17859 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 17860 | else |
| 17861 | lt_prog_compiler_no_builtin_flag_CXX= |
| 17862 | fi |
| 17863 | |
| 17864 | if test "$GXX" = yes; then |
| 17865 | # Set up default GNU C++ configuration |
| 17866 | |
| 17867 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17868 | # Check whether --with-gnu-ld was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17869 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17870 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17871 | else |
| 17872 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17873 | fi |
| 17874 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17875 | ac_prog=ld |
| 17876 | if test "$GCC" = yes; then |
| 17877 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17878 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 17879 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17880 | case $host in |
| 17881 | *-*-mingw*) |
| 17882 | # gcc leaves a trailing carriage return which upsets mingw |
| 17883 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 17884 | *) |
| 17885 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 17886 | esac |
| 17887 | case $ac_prog in |
| 17888 | # Accept absolute paths. |
| 17889 | [\\/]* | ?:[\\/]*) |
| 17890 | re_direlt='/[^/][^/]*/\.\./' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17891 | # Canonicalize the pathname of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17892 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 17893 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 17894 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 17895 | done |
| 17896 | test -z "$LD" && LD="$ac_prog" |
| 17897 | ;; |
| 17898 | "") |
| 17899 | # If it fails, then pretend we aren't using GCC. |
| 17900 | ac_prog=ld |
| 17901 | ;; |
| 17902 | *) |
| 17903 | # If it is relative, then search for the first ld in PATH. |
| 17904 | with_gnu_ld=unknown |
| 17905 | ;; |
| 17906 | esac |
| 17907 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17908 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 17909 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17910 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17911 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 17912 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17913 | fi |
| 17914 | if test "${lt_cv_path_LD+set}" = set; then |
| 17915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17916 | else |
| 17917 | if test -z "$LD"; then |
| 17918 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 17919 | for ac_dir in $PATH; do |
| 17920 | IFS="$lt_save_ifs" |
| 17921 | test -z "$ac_dir" && ac_dir=. |
| 17922 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 17923 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 17924 | # Check to see if the program is GNU ld. I'd rather use --version, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17925 | # but apparently some variants of GNU ld only accept -v. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17926 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 17927 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 17928 | *GNU* | *'with BFD'*) |
| 17929 | test "$with_gnu_ld" != no && break |
| 17930 | ;; |
| 17931 | *) |
| 17932 | test "$with_gnu_ld" != yes && break |
| 17933 | ;; |
| 17934 | esac |
| 17935 | fi |
| 17936 | done |
| 17937 | IFS="$lt_save_ifs" |
| 17938 | else |
| 17939 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 17940 | fi |
| 17941 | fi |
| 17942 | |
| 17943 | LD="$lt_cv_path_LD" |
| 17944 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17945 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 17946 | echo "${ECHO_T}$LD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17947 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17948 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17949 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17950 | fi |
| 17951 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 17952 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 17953 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17954 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 17955 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17956 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 17957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17958 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17959 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17960 | case `$LD -v 2>&1 </dev/null` in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17961 | *GNU* | *'with BFD'*) |
| 17962 | lt_cv_prog_gnu_ld=yes |
| 17963 | ;; |
| 17964 | *) |
| 17965 | lt_cv_prog_gnu_ld=no |
| 17966 | ;; |
| 17967 | esac |
| 17968 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17969 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 17970 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17971 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 17972 | |
| 17973 | |
| 17974 | |
| 17975 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 17976 | # archiving commands below assume that GNU ld is being used. |
| 17977 | if test "$with_gnu_ld" = yes; then |
| 17978 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17979 | 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' |
| 17980 | |
| 17981 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 17982 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 17983 | |
| 17984 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 17985 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 17986 | # investigate it a little bit more. (MM) |
| 17987 | wlarc='${wl}' |
| 17988 | |
| 17989 | # ancient GNU ld didn't support --whole-archive et. al. |
| 17990 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 17991 | grep 'no-whole-archive' > /dev/null; then |
| 17992 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 17993 | else |
| 17994 | whole_archive_flag_spec_CXX= |
| 17995 | fi |
| 17996 | else |
| 17997 | with_gnu_ld=no |
| 17998 | wlarc= |
| 17999 | |
| 18000 | # A generic and very simple default shared library creation |
| 18001 | # command for GNU C++ for the case where it uses the native |
| 18002 | # linker, instead of GNU ld. If possible, this setting should |
| 18003 | # overridden to take advantage of the native linker features on |
| 18004 | # the platform it is being used on. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18005 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18006 | fi |
| 18007 | |
| 18008 | # Commands to make compiler produce verbose output that lists |
| 18009 | # what "hidden" libraries, object files and flags are used when |
| 18010 | # linking a shared library. |
| 18011 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18012 | |
| 18013 | else |
| 18014 | GXX=no |
| 18015 | with_gnu_ld=no |
| 18016 | wlarc= |
| 18017 | fi |
| 18018 | |
| 18019 | # PORTME: fill in a description of your system's C++ link characteristics |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18020 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 18021 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18022 | ld_shlibs_CXX=yes |
| 18023 | case $host_os in |
| 18024 | aix3*) |
| 18025 | # FIXME: insert proper C++ library support |
| 18026 | ld_shlibs_CXX=no |
| 18027 | ;; |
| 18028 | aix4* | aix5*) |
| 18029 | if test "$host_cpu" = ia64; then |
| 18030 | # On IA64, the linker does run time linking by default, so we don't |
| 18031 | # have to do anything special. |
| 18032 | aix_use_runtimelinking=no |
| 18033 | exp_sym_flag='-Bexport' |
| 18034 | no_entry_flag="" |
| 18035 | else |
| 18036 | aix_use_runtimelinking=no |
| 18037 | |
| 18038 | # Test if we are trying to use run time linking or normal |
| 18039 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 18040 | # need to do runtime linking. |
| 18041 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 18042 | for ld_flag in $LDFLAGS; do |
| 18043 | case $ld_flag in |
| 18044 | *-brtl*) |
| 18045 | aix_use_runtimelinking=yes |
| 18046 | break |
| 18047 | ;; |
| 18048 | esac |
| 18049 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18050 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18051 | esac |
| 18052 | |
| 18053 | exp_sym_flag='-bexport' |
| 18054 | no_entry_flag='-bnoentry' |
| 18055 | fi |
| 18056 | |
| 18057 | # When large executables or shared objects are built, AIX ld can |
| 18058 | # have problems creating the table of contents. If linking a library |
| 18059 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 18060 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 18061 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 18062 | |
| 18063 | archive_cmds_CXX='' |
| 18064 | hardcode_direct_CXX=yes |
| 18065 | hardcode_libdir_separator_CXX=':' |
| 18066 | link_all_deplibs_CXX=yes |
| 18067 | |
| 18068 | if test "$GXX" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18069 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18070 | # We only want to do this on AIX 4.2 and lower, the check |
| 18071 | # below for broken collect2 doesn't work under 4.3+ |
| 18072 | collect2name=`${CC} -print-prog-name=collect2` |
| 18073 | if test -f "$collect2name" && \ |
| 18074 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 18075 | then |
| 18076 | # We have reworked collect2 |
| 18077 | hardcode_direct_CXX=yes |
| 18078 | else |
| 18079 | # We have old collect2 |
| 18080 | hardcode_direct_CXX=unsupported |
| 18081 | # It fails to find uninstalled libraries when the uninstalled |
| 18082 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 18083 | # to unsupported forces relinking |
| 18084 | hardcode_minus_L_CXX=yes |
| 18085 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18086 | hardcode_libdir_separator_CXX= |
| 18087 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18088 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18089 | esac |
| 18090 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18091 | if test "$aix_use_runtimelinking" = yes; then |
| 18092 | shared_flag="$shared_flag "'${wl}-G' |
| 18093 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18094 | else |
| 18095 | # not using gcc |
| 18096 | if test "$host_cpu" = ia64; then |
| 18097 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 18098 | # chokes on -Wl,-G. The following line is correct: |
| 18099 | shared_flag='-G' |
| 18100 | else |
| 18101 | if test "$aix_use_runtimelinking" = yes; then |
| 18102 | shared_flag='${wl}-G' |
| 18103 | else |
| 18104 | shared_flag='${wl}-bM:SRE' |
| 18105 | fi |
| 18106 | fi |
| 18107 | fi |
| 18108 | |
| 18109 | # It seems that -bexpall does not export symbols beginning with |
| 18110 | # underscore (_), so it is better to generate a list of symbols to export. |
| 18111 | always_export_symbols_CXX=yes |
| 18112 | if test "$aix_use_runtimelinking" = yes; then |
| 18113 | # Warning - without using the other runtime loading flags (-brtl), |
| 18114 | # -berok will link without error, but may produce a broken library. |
| 18115 | allow_undefined_flag_CXX='-berok' |
| 18116 | # Determine the default libpath from the value encoded in an empty executable. |
| 18117 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18118 | /* confdefs.h. */ |
| 18119 | _ACEOF |
| 18120 | cat confdefs.h >>conftest.$ac_ext |
| 18121 | cat >>conftest.$ac_ext <<_ACEOF |
| 18122 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18123 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18124 | int |
| 18125 | main () |
| 18126 | { |
| 18127 | |
| 18128 | ; |
| 18129 | return 0; |
| 18130 | } |
| 18131 | _ACEOF |
| 18132 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18133 | if { (ac_try="$ac_link" |
| 18134 | case "(($ac_try" in |
| 18135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18136 | *) ac_try_echo=$ac_try;; |
| 18137 | esac |
| 18138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18139 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18140 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18142 | rm -f conftest.er1 |
| 18143 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18145 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18146 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18147 | { (case "(($ac_try" in |
| 18148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18149 | *) ac_try_echo=$ac_try;; |
| 18150 | esac |
| 18151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18152 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18153 | ac_status=$? |
| 18154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18155 | (exit $ac_status); }; } && |
| 18156 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18157 | { (case "(($ac_try" in |
| 18158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18159 | *) ac_try_echo=$ac_try;; |
| 18160 | esac |
| 18161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18162 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18163 | ac_status=$? |
| 18164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18165 | (exit $ac_status); }; }; then |
| 18166 | |
| 18167 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18168 | }'` |
| 18169 | # Check for a 64-bit object if we didn't find anything. |
| 18170 | 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; } |
| 18171 | }'`; fi |
| 18172 | else |
| 18173 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18175 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18176 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18177 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18178 | |
| 18179 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18180 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18181 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18182 | |
| 18183 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18184 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18185 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18186 | else |
| 18187 | if test "$host_cpu" = ia64; then |
| 18188 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 18189 | allow_undefined_flag_CXX="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18190 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18191 | else |
| 18192 | # Determine the default libpath from the value encoded in an empty executable. |
| 18193 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18194 | /* confdefs.h. */ |
| 18195 | _ACEOF |
| 18196 | cat confdefs.h >>conftest.$ac_ext |
| 18197 | cat >>conftest.$ac_ext <<_ACEOF |
| 18198 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18199 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18200 | int |
| 18201 | main () |
| 18202 | { |
| 18203 | |
| 18204 | ; |
| 18205 | return 0; |
| 18206 | } |
| 18207 | _ACEOF |
| 18208 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18209 | if { (ac_try="$ac_link" |
| 18210 | case "(($ac_try" in |
| 18211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18212 | *) ac_try_echo=$ac_try;; |
| 18213 | esac |
| 18214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18215 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18216 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18218 | rm -f conftest.er1 |
| 18219 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18221 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18222 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18223 | { (case "(($ac_try" in |
| 18224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18225 | *) ac_try_echo=$ac_try;; |
| 18226 | esac |
| 18227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18228 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18229 | ac_status=$? |
| 18230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18231 | (exit $ac_status); }; } && |
| 18232 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18233 | { (case "(($ac_try" in |
| 18234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18235 | *) ac_try_echo=$ac_try;; |
| 18236 | esac |
| 18237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18238 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18239 | ac_status=$? |
| 18240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18241 | (exit $ac_status); }; }; then |
| 18242 | |
| 18243 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18244 | }'` |
| 18245 | # Check for a 64-bit object if we didn't find anything. |
| 18246 | 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; } |
| 18247 | }'`; fi |
| 18248 | else |
| 18249 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18251 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18252 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18253 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18254 | |
| 18255 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18256 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18257 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18258 | |
| 18259 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18260 | # Warning - without using the other run time loading flags, |
| 18261 | # -berok will link without error, but may produce a broken library. |
| 18262 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 18263 | allow_undefined_flag_CXX=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18264 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18265 | whole_archive_flag_spec_CXX='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18266 | archive_cmds_need_lc_CXX=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18267 | # This is similar to how AIX traditionally builds its shared libraries. |
| 18268 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18269 | fi |
| 18270 | fi |
| 18271 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18272 | |
| 18273 | beos*) |
| 18274 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 18275 | allow_undefined_flag_CXX=unsupported |
| 18276 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 18277 | # support --undefined. This deserves some investigation. FIXME |
| 18278 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18279 | else |
| 18280 | ld_shlibs_CXX=no |
| 18281 | fi |
| 18282 | ;; |
| 18283 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18284 | chorus*) |
| 18285 | case $cc_basename in |
| 18286 | *) |
| 18287 | # FIXME: insert proper C++ library support |
| 18288 | ld_shlibs_CXX=no |
| 18289 | ;; |
| 18290 | esac |
| 18291 | ;; |
| 18292 | |
| 18293 | cygwin* | mingw* | pw32*) |
| 18294 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 18295 | # as there is no search path for DLLs. |
| 18296 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18297 | allow_undefined_flag_CXX=unsupported |
| 18298 | always_export_symbols_CXX=no |
| 18299 | enable_shared_with_static_runtimes_CXX=yes |
| 18300 | |
| 18301 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18302 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18303 | # If the export-symbols file already is a .def file (1st line |
| 18304 | # is EXPORTS), use it as is; otherwise, prepend... |
| 18305 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 18306 | cp $export_symbols $output_objdir/$soname.def; |
| 18307 | else |
| 18308 | echo EXPORTS > $output_objdir/$soname.def; |
| 18309 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18310 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18311 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18312 | else |
| 18313 | ld_shlibs_CXX=no |
| 18314 | fi |
| 18315 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18316 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18317 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18318 | rhapsody* | darwin1.[012]) |
| 18319 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 18320 | ;; |
| 18321 | *) # Darwin 1.3 on |
| 18322 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 18323 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18324 | else |
| 18325 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 18326 | 10.[012]) |
| 18327 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18328 | ;; |
| 18329 | 10.*) |
| 18330 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 18331 | ;; |
| 18332 | esac |
| 18333 | fi |
| 18334 | ;; |
| 18335 | esac |
| 18336 | archive_cmds_need_lc_CXX=no |
| 18337 | hardcode_direct_CXX=no |
| 18338 | hardcode_automatic_CXX=yes |
| 18339 | hardcode_shlibpath_var_CXX=unsupported |
| 18340 | whole_archive_flag_spec_CXX='' |
| 18341 | link_all_deplibs_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18342 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18343 | if test "$GXX" = yes ; then |
| 18344 | lt_int_apple_cc_single_mod=no |
| 18345 | output_verbose_link_cmd='echo' |
| 18346 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 18347 | lt_int_apple_cc_single_mod=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18348 | fi |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18349 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18350 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18351 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18352 | archive_cmds_CXX='$CC -r -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' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18353 | fi |
| 18354 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18355 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18356 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18357 | 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}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18358 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18359 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18360 | fi |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18361 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18362 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18363 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18364 | xlc*) |
| 18365 | output_verbose_link_cmd='echo' |
| 18366 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 18367 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18368 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18369 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 18370 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18371 | ;; |
| 18372 | *) |
| 18373 | ld_shlibs_CXX=no |
| 18374 | ;; |
| 18375 | esac |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18376 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18377 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18378 | |
| 18379 | dgux*) |
| 18380 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18381 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18382 | # FIXME: insert proper C++ library support |
| 18383 | ld_shlibs_CXX=no |
| 18384 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18385 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18386 | # Green Hills C++ Compiler |
| 18387 | # FIXME: insert proper C++ library support |
| 18388 | ld_shlibs_CXX=no |
| 18389 | ;; |
| 18390 | *) |
| 18391 | # FIXME: insert proper C++ library support |
| 18392 | ld_shlibs_CXX=no |
| 18393 | ;; |
| 18394 | esac |
| 18395 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18396 | freebsd[12]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18397 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 18398 | ld_shlibs_CXX=no |
| 18399 | ;; |
| 18400 | freebsd-elf*) |
| 18401 | archive_cmds_need_lc_CXX=no |
| 18402 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18403 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18404 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 18405 | # conventions |
| 18406 | ld_shlibs_CXX=yes |
| 18407 | ;; |
| 18408 | gnu*) |
| 18409 | ;; |
| 18410 | hpux9*) |
| 18411 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 18412 | hardcode_libdir_separator_CXX=: |
| 18413 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18414 | hardcode_direct_CXX=yes |
| 18415 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 18416 | # but as the default |
| 18417 | # location of the library. |
| 18418 | |
| 18419 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18420 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18421 | # FIXME: insert proper C++ library support |
| 18422 | ld_shlibs_CXX=no |
| 18423 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18424 | aCC*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18425 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18426 | # Commands to make compiler produce verbose output that lists |
| 18427 | # what "hidden" libraries, object files and flags are used when |
| 18428 | # linking a shared library. |
| 18429 | # |
| 18430 | # There doesn't appear to be a way to prevent this compiler from |
| 18431 | # explicitly linking system object files so we need to strip them |
| 18432 | # from the output so that they don't get included in the library |
| 18433 | # dependencies. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18434 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18435 | ;; |
| 18436 | *) |
| 18437 | if test "$GXX" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18438 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18439 | else |
| 18440 | # FIXME: insert proper C++ library support |
| 18441 | ld_shlibs_CXX=no |
| 18442 | fi |
| 18443 | ;; |
| 18444 | esac |
| 18445 | ;; |
| 18446 | hpux10*|hpux11*) |
| 18447 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18448 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 18449 | hardcode_libdir_separator_CXX=: |
| 18450 | |
| 18451 | case $host_cpu in |
| 18452 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18453 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18454 | ;; |
| 18455 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18456 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18457 | ;; |
| 18458 | esac |
| 18459 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18460 | case $host_cpu in |
| 18461 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18462 | hardcode_direct_CXX=no |
| 18463 | hardcode_shlibpath_var_CXX=no |
| 18464 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18465 | *) |
| 18466 | hardcode_direct_CXX=yes |
| 18467 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 18468 | # but as the default |
| 18469 | # location of the library. |
| 18470 | ;; |
| 18471 | esac |
| 18472 | |
| 18473 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18474 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18475 | # FIXME: insert proper C++ library support |
| 18476 | ld_shlibs_CXX=no |
| 18477 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18478 | aCC*) |
| 18479 | case $host_cpu in |
| 18480 | hppa*64*) |
| 18481 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18482 | ;; |
| 18483 | ia64*) |
| 18484 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18485 | ;; |
| 18486 | *) |
| 18487 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18488 | ;; |
| 18489 | esac |
| 18490 | # Commands to make compiler produce verbose output that lists |
| 18491 | # what "hidden" libraries, object files and flags are used when |
| 18492 | # linking a shared library. |
| 18493 | # |
| 18494 | # There doesn't appear to be a way to prevent this compiler from |
| 18495 | # explicitly linking system object files so we need to strip them |
| 18496 | # from the output so that they don't get included in the library |
| 18497 | # dependencies. |
| 18498 | 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' |
| 18499 | ;; |
| 18500 | *) |
| 18501 | if test "$GXX" = yes; then |
| 18502 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18503 | case $host_cpu in |
| 18504 | hppa*64*) |
| 18505 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18506 | ;; |
| 18507 | ia64*) |
| 18508 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18509 | ;; |
| 18510 | *) |
| 18511 | 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' |
| 18512 | ;; |
| 18513 | esac |
| 18514 | fi |
| 18515 | else |
| 18516 | # FIXME: insert proper C++ library support |
| 18517 | ld_shlibs_CXX=no |
| 18518 | fi |
| 18519 | ;; |
| 18520 | esac |
| 18521 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18522 | interix3*) |
| 18523 | hardcode_direct_CXX=no |
| 18524 | hardcode_shlibpath_var_CXX=no |
| 18525 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18526 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18527 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 18528 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 18529 | # default) and relocated if they conflict, which is a slow very memory |
| 18530 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 18531 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 18532 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 18533 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 18534 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 18535 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18536 | irix5* | irix6*) |
| 18537 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18538 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18539 | # SGI C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18540 | 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 ${output_objdir}/so_locations -o $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18541 | |
| 18542 | # Archives containing C++ object files must be created using |
| 18543 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 18544 | # necessary to make sure instantiated templates are included |
| 18545 | # in the archive. |
| 18546 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 18547 | ;; |
| 18548 | *) |
| 18549 | if test "$GXX" = yes; then |
| 18550 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18551 | 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}${output_objdir}/so_locations -o $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18552 | else |
| 18553 | 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' |
| 18554 | fi |
| 18555 | fi |
| 18556 | link_all_deplibs_CXX=yes |
| 18557 | ;; |
| 18558 | esac |
| 18559 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18560 | hardcode_libdir_separator_CXX=: |
| 18561 | ;; |
| 18562 | linux*) |
| 18563 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18564 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18565 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18566 | |
| 18567 | # KCC will only create a shared library if the output file |
| 18568 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18569 | # to its proper name (with version) after linking. |
| 18570 | 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' |
| 18571 | 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' |
| 18572 | # Commands to make compiler produce verbose output that lists |
| 18573 | # what "hidden" libraries, object files and flags are used when |
| 18574 | # linking a shared library. |
| 18575 | # |
| 18576 | # There doesn't appear to be a way to prevent this compiler from |
| 18577 | # explicitly linking system object files so we need to strip them |
| 18578 | # from the output so that they don't get included in the library |
| 18579 | # dependencies. |
| 18580 | 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' |
| 18581 | |
| 18582 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 18583 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18584 | |
| 18585 | # Archives containing C++ object files must be created using |
| 18586 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 18587 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 18588 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18589 | icpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18590 | # Intel C++ |
| 18591 | with_gnu_ld=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18592 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 18593 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 18594 | # earlier do not add the objects themselves. |
| 18595 | case `$CC -V 2>&1` in |
| 18596 | *"Version 7."*) |
| 18597 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18598 | 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' |
| 18599 | ;; |
| 18600 | *) # Version 8.0 or newer |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18601 | tmp_idyn= |
| 18602 | case $host_cpu in |
| 18603 | ia64*) tmp_idyn=' -i_dynamic';; |
| 18604 | esac |
| 18605 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18606 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18607 | ;; |
| 18608 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18609 | archive_cmds_need_lc_CXX=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18610 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18611 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18612 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 18613 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18614 | pgCC*) |
| 18615 | # Portland Group C++ compiler |
| 18616 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 18617 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
| 18618 | |
| 18619 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 18620 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18621 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 18622 | ;; |
| 18623 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18624 | # Compaq C++ |
| 18625 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18626 | 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' |
| 18627 | |
| 18628 | runpath_var=LD_RUN_PATH |
| 18629 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 18630 | hardcode_libdir_separator_CXX=: |
| 18631 | |
| 18632 | # Commands to make compiler produce verbose output that lists |
| 18633 | # what "hidden" libraries, object files and flags are used when |
| 18634 | # linking a shared library. |
| 18635 | # |
| 18636 | # There doesn't appear to be a way to prevent this compiler from |
| 18637 | # explicitly linking system object files so we need to strip them |
| 18638 | # from the output so that they don't get included in the library |
| 18639 | # dependencies. |
| 18640 | 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' |
| 18641 | ;; |
| 18642 | esac |
| 18643 | ;; |
| 18644 | lynxos*) |
| 18645 | # FIXME: insert proper C++ library support |
| 18646 | ld_shlibs_CXX=no |
| 18647 | ;; |
| 18648 | m88k*) |
| 18649 | # FIXME: insert proper C++ library support |
| 18650 | ld_shlibs_CXX=no |
| 18651 | ;; |
| 18652 | mvs*) |
| 18653 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18654 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18655 | # FIXME: insert proper C++ library support |
| 18656 | ld_shlibs_CXX=no |
| 18657 | ;; |
| 18658 | *) |
| 18659 | # FIXME: insert proper C++ library support |
| 18660 | ld_shlibs_CXX=no |
| 18661 | ;; |
| 18662 | esac |
| 18663 | ;; |
| 18664 | netbsd*) |
| 18665 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 18666 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 18667 | wlarc= |
| 18668 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 18669 | hardcode_direct_CXX=yes |
| 18670 | hardcode_shlibpath_var_CXX=no |
| 18671 | fi |
| 18672 | # Workaround some broken pre-1.5 toolchains |
| 18673 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 18674 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18675 | openbsd2*) |
| 18676 | # C++ shared libraries are fairly broken |
| 18677 | ld_shlibs_CXX=no |
| 18678 | ;; |
| 18679 | openbsd*) |
| 18680 | hardcode_direct_CXX=yes |
| 18681 | hardcode_shlibpath_var_CXX=no |
| 18682 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 18683 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18684 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 18685 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 18686 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18687 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18688 | fi |
| 18689 | output_verbose_link_cmd='echo' |
| 18690 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18691 | osf3*) |
| 18692 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18693 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18694 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18695 | |
| 18696 | # KCC will only create a shared library if the output file |
| 18697 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18698 | # to its proper name (with version) after linking. |
| 18699 | 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' |
| 18700 | |
| 18701 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18702 | hardcode_libdir_separator_CXX=: |
| 18703 | |
| 18704 | # Archives containing C++ object files must be created using |
| 18705 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 18706 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 18707 | |
| 18708 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18709 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18710 | # Rational C++ 2.4.1 |
| 18711 | # FIXME: insert proper C++ library support |
| 18712 | ld_shlibs_CXX=no |
| 18713 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18714 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18715 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18716 | 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 ${output_objdir}/so_locations -o $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18717 | |
| 18718 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18719 | hardcode_libdir_separator_CXX=: |
| 18720 | |
| 18721 | # Commands to make compiler produce verbose output that lists |
| 18722 | # what "hidden" libraries, object files and flags are used when |
| 18723 | # linking a shared library. |
| 18724 | # |
| 18725 | # There doesn't appear to be a way to prevent this compiler from |
| 18726 | # explicitly linking system object files so we need to strip them |
| 18727 | # from the output so that they don't get included in the library |
| 18728 | # dependencies. |
| 18729 | 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' |
| 18730 | ;; |
| 18731 | *) |
| 18732 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 18733 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18734 | 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}${output_objdir}/so_locations -o $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18735 | |
| 18736 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18737 | hardcode_libdir_separator_CXX=: |
| 18738 | |
| 18739 | # Commands to make compiler produce verbose output that lists |
| 18740 | # what "hidden" libraries, object files and flags are used when |
| 18741 | # linking a shared library. |
| 18742 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18743 | |
| 18744 | else |
| 18745 | # FIXME: insert proper C++ library support |
| 18746 | ld_shlibs_CXX=no |
| 18747 | fi |
| 18748 | ;; |
| 18749 | esac |
| 18750 | ;; |
| 18751 | osf4* | osf5*) |
| 18752 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18753 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18754 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18755 | |
| 18756 | # KCC will only create a shared library if the output file |
| 18757 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18758 | # to its proper name (with version) after linking. |
| 18759 | 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' |
| 18760 | |
| 18761 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18762 | hardcode_libdir_separator_CXX=: |
| 18763 | |
| 18764 | # Archives containing C++ object files must be created using |
| 18765 | # the KAI C++ compiler. |
| 18766 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 18767 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18768 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18769 | # Rational C++ 2.4.1 |
| 18770 | # FIXME: insert proper C++ library support |
| 18771 | ld_shlibs_CXX=no |
| 18772 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18773 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18774 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18775 | 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 ${output_objdir}/so_locations -o $lib' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18776 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 18777 | echo "-hidden">> $lib.exp~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18778 | $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 ${output_objdir}/so_locations -o $lib~ |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18779 | $rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18780 | |
| 18781 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 18782 | hardcode_libdir_separator_CXX=: |
| 18783 | |
| 18784 | # Commands to make compiler produce verbose output that lists |
| 18785 | # what "hidden" libraries, object files and flags are used when |
| 18786 | # linking a shared library. |
| 18787 | # |
| 18788 | # There doesn't appear to be a way to prevent this compiler from |
| 18789 | # explicitly linking system object files so we need to strip them |
| 18790 | # from the output so that they don't get included in the library |
| 18791 | # dependencies. |
| 18792 | 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' |
| 18793 | ;; |
| 18794 | *) |
| 18795 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 18796 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18797 | 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}${output_objdir}/so_locations -o $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18798 | |
| 18799 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18800 | hardcode_libdir_separator_CXX=: |
| 18801 | |
| 18802 | # Commands to make compiler produce verbose output that lists |
| 18803 | # what "hidden" libraries, object files and flags are used when |
| 18804 | # linking a shared library. |
| 18805 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18806 | |
| 18807 | else |
| 18808 | # FIXME: insert proper C++ library support |
| 18809 | ld_shlibs_CXX=no |
| 18810 | fi |
| 18811 | ;; |
| 18812 | esac |
| 18813 | ;; |
| 18814 | psos*) |
| 18815 | # FIXME: insert proper C++ library support |
| 18816 | ld_shlibs_CXX=no |
| 18817 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18818 | sunos4*) |
| 18819 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18820 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18821 | # Sun C++ 4.x |
| 18822 | # FIXME: insert proper C++ library support |
| 18823 | ld_shlibs_CXX=no |
| 18824 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18825 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18826 | # Lucid |
| 18827 | # FIXME: insert proper C++ library support |
| 18828 | ld_shlibs_CXX=no |
| 18829 | ;; |
| 18830 | *) |
| 18831 | # FIXME: insert proper C++ library support |
| 18832 | ld_shlibs_CXX=no |
| 18833 | ;; |
| 18834 | esac |
| 18835 | ;; |
| 18836 | solaris*) |
| 18837 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18838 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18839 | # Sun C++ 4.2, 5.x and Centerline C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18840 | archive_cmds_need_lc_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18841 | no_undefined_flag_CXX=' -zdefs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18842 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18843 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18844 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18845 | |
| 18846 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 18847 | hardcode_shlibpath_var_CXX=no |
| 18848 | case $host_os in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18849 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18850 | *) |
| 18851 | # The C++ compiler is used as linker so we must use $wl |
| 18852 | # flag to pass the commands to the underlying system |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18853 | # linker. We must also pass each convience library through |
| 18854 | # to the system linker between allextract/defaultextract. |
| 18855 | # The C++ compiler will combine linker options so we |
| 18856 | # cannot just pass the convience library names through |
| 18857 | # without $wl. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18858 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18859 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18860 | ;; |
| 18861 | esac |
| 18862 | link_all_deplibs_CXX=yes |
| 18863 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18864 | output_verbose_link_cmd='echo' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18865 | |
| 18866 | # Archives containing C++ object files must be created using |
| 18867 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 18868 | # necessary to make sure instantiated templates are included |
| 18869 | # in the archive. |
| 18870 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 18871 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18872 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18873 | # Green Hills C++ Compiler |
| 18874 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 18875 | |
| 18876 | # The C++ compiler must be used to create the archive. |
| 18877 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 18878 | ;; |
| 18879 | *) |
| 18880 | # GNU C++ compiler with Solaris linker |
| 18881 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 18882 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 18883 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 18884 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18885 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 18886 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 18887 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18888 | # Commands to make compiler produce verbose output that lists |
| 18889 | # what "hidden" libraries, object files and flags are used when |
| 18890 | # linking a shared library. |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 18891 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18892 | else |
| 18893 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 18894 | # platform. |
| 18895 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18896 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 18897 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18898 | |
| 18899 | # Commands to make compiler produce verbose output that lists |
| 18900 | # what "hidden" libraries, object files and flags are used when |
| 18901 | # linking a shared library. |
| 18902 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 18903 | fi |
| 18904 | |
| 18905 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 18906 | fi |
| 18907 | ;; |
| 18908 | esac |
| 18909 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18910 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 18911 | no_undefined_flag_CXX='${wl}-z,text' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18912 | archive_cmds_need_lc_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18913 | hardcode_shlibpath_var_CXX=no |
| 18914 | runpath_var='LD_RUN_PATH' |
| 18915 | |
| 18916 | case $cc_basename in |
| 18917 | CC*) |
| 18918 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18919 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18920 | ;; |
| 18921 | *) |
| 18922 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18923 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18924 | ;; |
| 18925 | esac |
| 18926 | ;; |
| 18927 | sysv5* | sco3.2v5* | sco5v6*) |
| 18928 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 18929 | # link with -lc, and that would cause any symbols used from libc to |
| 18930 | # always be unresolved, which means just about no library would |
| 18931 | # ever link correctly. If we're not using GNU ld we use -z text |
| 18932 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 18933 | # as -z defs. |
| 18934 | # For security reasons, it is highly recommended that you always |
| 18935 | # use absolute paths for naming shared libraries, and exclude the |
| 18936 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 18937 | # requires that you compile everything twice, which is a pain. |
| 18938 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| 18939 | # non-empty value in the environment. Most likely only useful for |
| 18940 | # creating official distributions of packages. |
| 18941 | # This is a hack until libtool officially supports absolute path |
| 18942 | # names for shared libraries. |
| 18943 | no_undefined_flag_CXX='${wl}-z,text' |
| 18944 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 18945 | archive_cmds_need_lc_CXX=no |
| 18946 | hardcode_shlibpath_var_CXX=no |
| 18947 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 18948 | hardcode_libdir_separator_CXX=':' |
| 18949 | link_all_deplibs_CXX=yes |
| 18950 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 18951 | runpath_var='LD_RUN_PATH' |
| 18952 | |
| 18953 | case $cc_basename in |
| 18954 | CC*) |
| 18955 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18956 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18957 | ;; |
| 18958 | *) |
| 18959 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18960 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18961 | ;; |
| 18962 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18963 | ;; |
| 18964 | tandem*) |
| 18965 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18966 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18967 | # NonStop-UX NCC 3.20 |
| 18968 | # FIXME: insert proper C++ library support |
| 18969 | ld_shlibs_CXX=no |
| 18970 | ;; |
| 18971 | *) |
| 18972 | # FIXME: insert proper C++ library support |
| 18973 | ld_shlibs_CXX=no |
| 18974 | ;; |
| 18975 | esac |
| 18976 | ;; |
| 18977 | vxworks*) |
| 18978 | # FIXME: insert proper C++ library support |
| 18979 | ld_shlibs_CXX=no |
| 18980 | ;; |
| 18981 | *) |
| 18982 | # FIXME: insert proper C++ library support |
| 18983 | ld_shlibs_CXX=no |
| 18984 | ;; |
| 18985 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18986 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 18987 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18988 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 18989 | |
| 18990 | GCC_CXX="$GXX" |
| 18991 | LD_CXX="$LD" |
| 18992 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18993 | |
| 18994 | cat > conftest.$ac_ext <<EOF |
| 18995 | class Foo |
| 18996 | { |
| 18997 | public: |
| 18998 | Foo (void) { a = 0; } |
| 18999 | private: |
| 19000 | int a; |
| 19001 | }; |
| 19002 | EOF |
| 19003 | |
| 19004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19005 | (eval $ac_compile) 2>&5 |
| 19006 | ac_status=$? |
| 19007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19008 | (exit $ac_status); }; then |
| 19009 | # Parse the compiler output and extract the necessary |
| 19010 | # objects, libraries and library flags. |
| 19011 | |
| 19012 | # Sentinel used to keep track of whether or not we are before |
| 19013 | # the conftest object file. |
| 19014 | pre_test_object_deps_done=no |
| 19015 | |
| 19016 | # The `*' in the case matches for architectures that use `case' in |
| 19017 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 19018 | # eval without this substitution. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19019 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19020 | |
| 19021 | for p in `eval $output_verbose_link_cmd`; do |
| 19022 | case $p in |
| 19023 | |
| 19024 | -L* | -R* | -l*) |
| 19025 | # Some compilers place space between "-{L,R}" and the path. |
| 19026 | # Remove the space. |
| 19027 | if test $p = "-L" \ |
| 19028 | || test $p = "-R"; then |
| 19029 | prev=$p |
| 19030 | continue |
| 19031 | else |
| 19032 | prev= |
| 19033 | fi |
| 19034 | |
| 19035 | if test "$pre_test_object_deps_done" = no; then |
| 19036 | case $p in |
| 19037 | -L* | -R*) |
| 19038 | # Internal compiler library paths should come after those |
| 19039 | # provided the user. The postdeps already come after the |
| 19040 | # user supplied libs so there is no need to process them. |
| 19041 | if test -z "$compiler_lib_search_path_CXX"; then |
| 19042 | compiler_lib_search_path_CXX="${prev}${p}" |
| 19043 | else |
| 19044 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 19045 | fi |
| 19046 | ;; |
| 19047 | # The "-l" case would never come before the object being |
| 19048 | # linked, so don't bother handling this case. |
| 19049 | esac |
| 19050 | else |
| 19051 | if test -z "$postdeps_CXX"; then |
| 19052 | postdeps_CXX="${prev}${p}" |
| 19053 | else |
| 19054 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 19055 | fi |
| 19056 | fi |
| 19057 | ;; |
| 19058 | |
| 19059 | *.$objext) |
| 19060 | # This assumes that the test object file only shows up |
| 19061 | # once in the compiler output. |
| 19062 | if test "$p" = "conftest.$objext"; then |
| 19063 | pre_test_object_deps_done=yes |
| 19064 | continue |
| 19065 | fi |
| 19066 | |
| 19067 | if test "$pre_test_object_deps_done" = no; then |
| 19068 | if test -z "$predep_objects_CXX"; then |
| 19069 | predep_objects_CXX="$p" |
| 19070 | else |
| 19071 | predep_objects_CXX="$predep_objects_CXX $p" |
| 19072 | fi |
| 19073 | else |
| 19074 | if test -z "$postdep_objects_CXX"; then |
| 19075 | postdep_objects_CXX="$p" |
| 19076 | else |
| 19077 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 19078 | fi |
| 19079 | fi |
| 19080 | ;; |
| 19081 | |
| 19082 | *) ;; # Ignore the rest. |
| 19083 | |
| 19084 | esac |
| 19085 | done |
| 19086 | |
| 19087 | # Clean up. |
| 19088 | rm -f a.out a.exe |
| 19089 | else |
| 19090 | echo "libtool.m4: error: problem compiling CXX test program" |
| 19091 | fi |
| 19092 | |
| 19093 | $rm -f confest.$objext |
| 19094 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19095 | # PORTME: override above test on systems where it is broken |
| 19096 | case $host_os in |
| 19097 | interix3*) |
| 19098 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 19099 | # hack all around it, let's just trust "g++" to DTRT. |
| 19100 | predep_objects_CXX= |
| 19101 | postdep_objects_CXX= |
| 19102 | postdeps_CXX= |
| 19103 | ;; |
| 19104 | |
| 19105 | solaris*) |
| 19106 | case $cc_basename in |
| 19107 | CC*) |
| 19108 | # Adding this requires a known-good setup of shared libraries for |
| 19109 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 19110 | # archive will be linked into the output, leading to subtle bugs. |
| 19111 | postdeps_CXX='-lCstd -lCrun' |
| 19112 | ;; |
| 19113 | esac |
| 19114 | ;; |
| 19115 | esac |
| 19116 | |
| 19117 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19118 | case " $postdeps_CXX " in |
| 19119 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 19120 | esac |
| 19121 | |
| 19122 | lt_prog_compiler_wl_CXX= |
| 19123 | lt_prog_compiler_pic_CXX= |
| 19124 | lt_prog_compiler_static_CXX= |
| 19125 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19126 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 19127 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19128 | |
| 19129 | # C++ specific cases for pic, static, wl, etc. |
| 19130 | if test "$GXX" = yes; then |
| 19131 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19132 | lt_prog_compiler_static_CXX='-static' |
| 19133 | |
| 19134 | case $host_os in |
| 19135 | aix*) |
| 19136 | # All AIX code is PIC. |
| 19137 | if test "$host_cpu" = ia64; then |
| 19138 | # AIX 5 now supports IA64 processor |
| 19139 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19140 | fi |
| 19141 | ;; |
| 19142 | amigaos*) |
| 19143 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 19144 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 19145 | # like `-m68040'. |
| 19146 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 19147 | ;; |
| 19148 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 19149 | # PIC is the default for these OSes. |
| 19150 | ;; |
| 19151 | mingw* | os2* | pw32*) |
| 19152 | # This hack is so that the source file can tell whether it is being |
| 19153 | # built for inclusion in a dll (and should export symbols for example). |
| 19154 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 19155 | ;; |
| 19156 | darwin* | rhapsody*) |
| 19157 | # PIC is the default on this platform |
| 19158 | # Common symbols not allowed in MH_DYLIB files |
| 19159 | lt_prog_compiler_pic_CXX='-fno-common' |
| 19160 | ;; |
| 19161 | *djgpp*) |
| 19162 | # DJGPP does not support shared libraries at all |
| 19163 | lt_prog_compiler_pic_CXX= |
| 19164 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19165 | interix3*) |
| 19166 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 19167 | # Instead, we relocate shared libraries at runtime. |
| 19168 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19169 | sysv4*MP*) |
| 19170 | if test -d /usr/nec; then |
| 19171 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 19172 | fi |
| 19173 | ;; |
| 19174 | hpux*) |
| 19175 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 19176 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19177 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19178 | hppa*64*|ia64*) |
| 19179 | ;; |
| 19180 | *) |
| 19181 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19182 | ;; |
| 19183 | esac |
| 19184 | ;; |
| 19185 | *) |
| 19186 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19187 | ;; |
| 19188 | esac |
| 19189 | else |
| 19190 | case $host_os in |
| 19191 | aix4* | aix5*) |
| 19192 | # All AIX code is PIC. |
| 19193 | if test "$host_cpu" = ia64; then |
| 19194 | # AIX 5 now supports IA64 processor |
| 19195 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19196 | else |
| 19197 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 19198 | fi |
| 19199 | ;; |
| 19200 | chorus*) |
| 19201 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19202 | cxch68*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19203 | # Green Hills C++ Compiler |
| 19204 | # _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" |
| 19205 | ;; |
| 19206 | esac |
| 19207 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19208 | darwin*) |
| 19209 | # PIC is the default on this platform |
| 19210 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19211 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19212 | xlc*) |
| 19213 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 19214 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19215 | ;; |
| 19216 | esac |
| 19217 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19218 | dgux*) |
| 19219 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19220 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19221 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19222 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19223 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19224 | # Green Hills C++ Compiler |
| 19225 | lt_prog_compiler_pic_CXX='-pic' |
| 19226 | ;; |
| 19227 | *) |
| 19228 | ;; |
| 19229 | esac |
| 19230 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19231 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19232 | # FreeBSD uses GNU C++ |
| 19233 | ;; |
| 19234 | hpux9* | hpux10* | hpux11*) |
| 19235 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19236 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19237 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19238 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19239 | if test "$host_cpu" != ia64; then |
| 19240 | lt_prog_compiler_pic_CXX='+Z' |
| 19241 | fi |
| 19242 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19243 | aCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19244 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19245 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 19246 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19247 | hppa*64*|ia64*) |
| 19248 | # +Z the default |
| 19249 | ;; |
| 19250 | *) |
| 19251 | lt_prog_compiler_pic_CXX='+Z' |
| 19252 | ;; |
| 19253 | esac |
| 19254 | ;; |
| 19255 | *) |
| 19256 | ;; |
| 19257 | esac |
| 19258 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19259 | interix*) |
| 19260 | # This is c89, which is MS Visual C++ (no shared libs) |
| 19261 | # Anyone wants to do a port? |
| 19262 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19263 | irix5* | irix6* | nonstopux*) |
| 19264 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19265 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19266 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19267 | lt_prog_compiler_static_CXX='-non_shared' |
| 19268 | # CC pic flag -KPIC is the default. |
| 19269 | ;; |
| 19270 | *) |
| 19271 | ;; |
| 19272 | esac |
| 19273 | ;; |
| 19274 | linux*) |
| 19275 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19276 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19277 | # KAI C++ Compiler |
| 19278 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19279 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19280 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19281 | icpc* | ecpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19282 | # Intel C++ |
| 19283 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19284 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19285 | lt_prog_compiler_static_CXX='-static' |
| 19286 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19287 | pgCC*) |
| 19288 | # Portland Group C++ compiler. |
| 19289 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19290 | lt_prog_compiler_pic_CXX='-fpic' |
| 19291 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19292 | ;; |
| 19293 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19294 | # Compaq C++ |
| 19295 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19296 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19297 | lt_prog_compiler_pic_CXX= |
| 19298 | lt_prog_compiler_static_CXX='-non_shared' |
| 19299 | ;; |
| 19300 | *) |
| 19301 | ;; |
| 19302 | esac |
| 19303 | ;; |
| 19304 | lynxos*) |
| 19305 | ;; |
| 19306 | m88k*) |
| 19307 | ;; |
| 19308 | mvs*) |
| 19309 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19310 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19311 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 19312 | ;; |
| 19313 | *) |
| 19314 | ;; |
| 19315 | esac |
| 19316 | ;; |
| 19317 | netbsd*) |
| 19318 | ;; |
| 19319 | osf3* | osf4* | osf5*) |
| 19320 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19321 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19322 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19323 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19324 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19325 | # Rational C++ 2.4.1 |
| 19326 | lt_prog_compiler_pic_CXX='-pic' |
| 19327 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19328 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19329 | # Digital/Compaq C++ |
| 19330 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19331 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19332 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19333 | lt_prog_compiler_pic_CXX= |
| 19334 | lt_prog_compiler_static_CXX='-non_shared' |
| 19335 | ;; |
| 19336 | *) |
| 19337 | ;; |
| 19338 | esac |
| 19339 | ;; |
| 19340 | psos*) |
| 19341 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19342 | solaris*) |
| 19343 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19344 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19345 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 19346 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19347 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19348 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 19349 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19350 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19351 | # Green Hills C++ Compiler |
| 19352 | lt_prog_compiler_pic_CXX='-PIC' |
| 19353 | ;; |
| 19354 | *) |
| 19355 | ;; |
| 19356 | esac |
| 19357 | ;; |
| 19358 | sunos4*) |
| 19359 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19360 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19361 | # Sun C++ 4.x |
| 19362 | lt_prog_compiler_pic_CXX='-pic' |
| 19363 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19364 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19365 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19366 | # Lucid |
| 19367 | lt_prog_compiler_pic_CXX='-pic' |
| 19368 | ;; |
| 19369 | *) |
| 19370 | ;; |
| 19371 | esac |
| 19372 | ;; |
| 19373 | tandem*) |
| 19374 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19375 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19376 | # NonStop-UX NCC 3.20 |
| 19377 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19378 | ;; |
| 19379 | *) |
| 19380 | ;; |
| 19381 | esac |
| 19382 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19383 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 19384 | case $cc_basename in |
| 19385 | CC*) |
| 19386 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19387 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19388 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19389 | ;; |
| 19390 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19391 | ;; |
| 19392 | vxworks*) |
| 19393 | ;; |
| 19394 | *) |
| 19395 | lt_prog_compiler_can_build_shared_CXX=no |
| 19396 | ;; |
| 19397 | esac |
| 19398 | fi |
| 19399 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19400 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 19401 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19402 | |
| 19403 | # |
| 19404 | # Check to make sure the PIC flag actually works. |
| 19405 | # |
| 19406 | if test -n "$lt_prog_compiler_pic_CXX"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19407 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19408 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 19409 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19410 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 19411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19412 | else |
| 19413 | lt_prog_compiler_pic_works_CXX=no |
| 19414 | ac_outfile=conftest.$ac_objext |
| 19415 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19416 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 19417 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19418 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19419 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19420 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19421 | # The option is referenced via a variable to avoid confusing sed. |
| 19422 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19423 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19424 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19425 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 19426 | (eval echo "\"\$as_me:19426: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19427 | (eval "$lt_compile" 2>conftest.err) |
| 19428 | ac_status=$? |
| 19429 | cat conftest.err >&5 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 19430 | echo "$as_me:19430: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19431 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 19432 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19433 | # So say no if there are warnings other than the usual output. |
| 19434 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 19435 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 19436 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19437 | lt_prog_compiler_pic_works_CXX=yes |
| 19438 | fi |
| 19439 | fi |
| 19440 | $rm conftest* |
| 19441 | |
| 19442 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19443 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 19444 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19445 | |
| 19446 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 19447 | case $lt_prog_compiler_pic_CXX in |
| 19448 | "" | " "*) ;; |
| 19449 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 19450 | esac |
| 19451 | else |
| 19452 | lt_prog_compiler_pic_CXX= |
| 19453 | lt_prog_compiler_can_build_shared_CXX=no |
| 19454 | fi |
| 19455 | |
| 19456 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19457 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19458 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 19459 | *djgpp*) |
| 19460 | lt_prog_compiler_pic_CXX= |
| 19461 | ;; |
| 19462 | *) |
| 19463 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 19464 | ;; |
| 19465 | esac |
| 19466 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19467 | # |
| 19468 | # Check to make sure the static flag actually works. |
| 19469 | # |
| 19470 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 19471 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 19472 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 19473 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 19474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19475 | else |
| 19476 | lt_prog_compiler_static_works_CXX=no |
| 19477 | save_LDFLAGS="$LDFLAGS" |
| 19478 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 19479 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 19480 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 19481 | # The linker can only warn and ignore the option if not recognized |
| 19482 | # So say no if there are warnings |
| 19483 | if test -s conftest.err; then |
| 19484 | # Append any errors to the config.log. |
| 19485 | cat conftest.err 1>&5 |
| 19486 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 19487 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 19488 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 19489 | lt_prog_compiler_static_works_CXX=yes |
| 19490 | fi |
| 19491 | else |
| 19492 | lt_prog_compiler_static_works_CXX=yes |
| 19493 | fi |
| 19494 | fi |
| 19495 | $rm conftest* |
| 19496 | LDFLAGS="$save_LDFLAGS" |
| 19497 | |
| 19498 | fi |
| 19499 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 19500 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
| 19501 | |
| 19502 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 19503 | : |
| 19504 | else |
| 19505 | lt_prog_compiler_static_CXX= |
| 19506 | fi |
| 19507 | |
| 19508 | |
| 19509 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 19510 | 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] | 19511 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 19512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19513 | else |
| 19514 | lt_cv_prog_compiler_c_o_CXX=no |
| 19515 | $rm -r conftest 2>/dev/null |
| 19516 | mkdir conftest |
| 19517 | cd conftest |
| 19518 | mkdir out |
| 19519 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19520 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19521 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 19522 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19523 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19524 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19525 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19526 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19527 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19528 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19529 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 19530 | (eval echo "\"\$as_me:19530: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19531 | (eval "$lt_compile" 2>out/conftest.err) |
| 19532 | ac_status=$? |
| 19533 | cat out/conftest.err >&5 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 19534 | echo "$as_me:19534: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19535 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 19536 | then |
| 19537 | # The compiler can only warn and ignore the option if not recognized |
| 19538 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19539 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 19540 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 19541 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19542 | lt_cv_prog_compiler_c_o_CXX=yes |
| 19543 | fi |
| 19544 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19545 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19546 | $rm conftest* |
| 19547 | # SGI C++ compiler will create directory out/ii_files/ for |
| 19548 | # template instantiation |
| 19549 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 19550 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19551 | cd .. |
| 19552 | rmdir conftest |
| 19553 | $rm conftest* |
| 19554 | |
| 19555 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19556 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 19557 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19558 | |
| 19559 | |
| 19560 | hard_links="nottested" |
| 19561 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 19562 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19563 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 19564 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19565 | hard_links=yes |
| 19566 | $rm conftest* |
| 19567 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 19568 | touch conftest.a |
| 19569 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 19570 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19571 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 19572 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19573 | if test "$hard_links" = no; then |
| 19574 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 19575 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 19576 | need_locks=warn |
| 19577 | fi |
| 19578 | else |
| 19579 | need_locks=no |
| 19580 | fi |
| 19581 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19582 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 19583 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19584 | |
| 19585 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 19586 | case $host_os in |
| 19587 | aix4* | aix5*) |
| 19588 | # If we're using GNU nm, then we don't want the "-C" option. |
| 19589 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 19590 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 19591 | 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' |
| 19592 | else |
| 19593 | 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' |
| 19594 | fi |
| 19595 | ;; |
| 19596 | pw32*) |
| 19597 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 19598 | ;; |
| 19599 | cygwin* | mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19600 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19601 | ;; |
| 19602 | *) |
| 19603 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 19604 | ;; |
| 19605 | esac |
| 19606 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19607 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 19608 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19609 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19610 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19611 | # |
| 19612 | # Do we need to explicitly link libc? |
| 19613 | # |
| 19614 | case "x$archive_cmds_need_lc_CXX" in |
| 19615 | x|xyes) |
| 19616 | # Assume -lc should be added |
| 19617 | archive_cmds_need_lc_CXX=yes |
| 19618 | |
| 19619 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 19620 | case $archive_cmds_CXX in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19621 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19622 | # FIXME: we may have to deal with multi-command sequences. |
| 19623 | ;; |
| 19624 | '$CC '*) |
| 19625 | # Test whether the compiler implicitly links with -lc since on some |
| 19626 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 19627 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19628 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 19629 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19630 | $rm conftest* |
| 19631 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19632 | |
| 19633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19634 | (eval $ac_compile) 2>&5 |
| 19635 | ac_status=$? |
| 19636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19637 | (exit $ac_status); } 2>conftest.err; then |
| 19638 | soname=conftest |
| 19639 | lib=conftest |
| 19640 | libobjs=conftest.$ac_objext |
| 19641 | deplibs= |
| 19642 | wl=$lt_prog_compiler_wl_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19643 | pic_flag=$lt_prog_compiler_pic_CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19644 | compiler_flags=-v |
| 19645 | linker_flags=-v |
| 19646 | verstring= |
| 19647 | output_objdir=. |
| 19648 | libname=conftest |
| 19649 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 19650 | allow_undefined_flag_CXX= |
| 19651 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 19652 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 19653 | ac_status=$? |
| 19654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19655 | (exit $ac_status); } |
| 19656 | then |
| 19657 | archive_cmds_need_lc_CXX=no |
| 19658 | else |
| 19659 | archive_cmds_need_lc_CXX=yes |
| 19660 | fi |
| 19661 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 19662 | else |
| 19663 | cat conftest.err 1>&5 |
| 19664 | fi |
| 19665 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19666 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 19667 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19668 | ;; |
| 19669 | esac |
| 19670 | fi |
| 19671 | ;; |
| 19672 | esac |
| 19673 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19674 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 19675 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19676 | library_names_spec= |
| 19677 | libname_spec='lib$name' |
| 19678 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19679 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19680 | postinstall_cmds= |
| 19681 | postuninstall_cmds= |
| 19682 | finish_cmds= |
| 19683 | finish_eval= |
| 19684 | shlibpath_var= |
| 19685 | shlibpath_overrides_runpath=unknown |
| 19686 | version_type=none |
| 19687 | dynamic_linker="$host_os ld.so" |
| 19688 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 19689 | if test "$GCC" = yes; then |
| 19690 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 19691 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 19692 | # if the path contains ";" then we assume it to be the separator |
| 19693 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 19694 | # assumed that no part of a normal pathname contains ";" but that should |
| 19695 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 19696 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 19697 | else |
| 19698 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 19699 | fi |
| 19700 | else |
| 19701 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 19702 | fi |
| 19703 | need_lib_prefix=unknown |
| 19704 | hardcode_into_libs=no |
| 19705 | |
| 19706 | # when you set need_version to no, make sure it does not cause -set_version |
| 19707 | # flags to be left without arguments |
| 19708 | need_version=unknown |
| 19709 | |
| 19710 | case $host_os in |
| 19711 | aix3*) |
| 19712 | version_type=linux |
| 19713 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 19714 | shlibpath_var=LIBPATH |
| 19715 | |
| 19716 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 19717 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19718 | ;; |
| 19719 | |
| 19720 | aix4* | aix5*) |
| 19721 | version_type=linux |
| 19722 | need_lib_prefix=no |
| 19723 | need_version=no |
| 19724 | hardcode_into_libs=yes |
| 19725 | if test "$host_cpu" = ia64; then |
| 19726 | # AIX 5 supports IA64 |
| 19727 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 19728 | shlibpath_var=LD_LIBRARY_PATH |
| 19729 | else |
| 19730 | # With GCC up to 2.95.x, collect2 would create an import file |
| 19731 | # for dependence libraries. The import file would start with |
| 19732 | # the line `#! .'. This would cause the generated library to |
| 19733 | # depend on `.', always an invalid library. This was fixed in |
| 19734 | # development snapshots of GCC prior to 3.0. |
| 19735 | case $host_os in |
| 19736 | aix4 | aix4.[01] | aix4.[01].*) |
| 19737 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 19738 | echo ' yes ' |
| 19739 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 19740 | : |
| 19741 | else |
| 19742 | can_build_shared=no |
| 19743 | fi |
| 19744 | ;; |
| 19745 | esac |
| 19746 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 19747 | # soname into executable. Probably we can add versioning support to |
| 19748 | # collect2, so additional links can be useful in future. |
| 19749 | if test "$aix_use_runtimelinking" = yes; then |
| 19750 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 19751 | # instead of lib<name>.a to let people know that these are not |
| 19752 | # typical AIX shared libraries. |
| 19753 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19754 | else |
| 19755 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 19756 | # and later when we are not doing run time linking. |
| 19757 | library_names_spec='${libname}${release}.a $libname.a' |
| 19758 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19759 | fi |
| 19760 | shlibpath_var=LIBPATH |
| 19761 | fi |
| 19762 | ;; |
| 19763 | |
| 19764 | amigaos*) |
| 19765 | library_names_spec='$libname.ixlibrary $libname.a' |
| 19766 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19767 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19768 | ;; |
| 19769 | |
| 19770 | beos*) |
| 19771 | library_names_spec='${libname}${shared_ext}' |
| 19772 | dynamic_linker="$host_os ld.so" |
| 19773 | shlibpath_var=LIBRARY_PATH |
| 19774 | ;; |
| 19775 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19776 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19777 | version_type=linux |
| 19778 | need_version=no |
| 19779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19780 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19781 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 19782 | shlibpath_var=LD_LIBRARY_PATH |
| 19783 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 19784 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 19785 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 19786 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 19787 | # libtool to hard-code these into programs |
| 19788 | ;; |
| 19789 | |
| 19790 | cygwin* | mingw* | pw32*) |
| 19791 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19792 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19793 | need_version=no |
| 19794 | need_lib_prefix=no |
| 19795 | |
| 19796 | case $GCC,$host_os in |
| 19797 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 19798 | library_names_spec='$libname.dll.a' |
| 19799 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19800 | postinstall_cmds='base_file=`basename \${file}`~ |
| 19801 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 19802 | dldir=$destdir/`dirname \$dlpath`~ |
| 19803 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19804 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 19805 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19806 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 19807 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19808 | $rm \$dlpath' |
| 19809 | shlibpath_overrides_runpath=yes |
| 19810 | |
| 19811 | case $host_os in |
| 19812 | cygwin*) |
| 19813 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 19814 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19815 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19816 | ;; |
| 19817 | mingw*) |
| 19818 | # MinGW DLLs use traditional 'lib' prefix |
| 19819 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 19820 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 19821 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 19822 | # It is most probably a Windows format PATH printed by |
| 19823 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 19824 | # path with ; separators, and with drive letters. We can handle the |
| 19825 | # drive letters (cygwin fileutils understands them), so leave them, |
| 19826 | # especially as we might pass files found there to a mingw objdump, |
| 19827 | # which wouldn't understand a cygwinified path. Ahh. |
| 19828 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 19829 | else |
| 19830 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 19831 | fi |
| 19832 | ;; |
| 19833 | pw32*) |
| 19834 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19835 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19836 | ;; |
| 19837 | esac |
| 19838 | ;; |
| 19839 | |
| 19840 | *) |
| 19841 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 19842 | ;; |
| 19843 | esac |
| 19844 | dynamic_linker='Win32 ld.exe' |
| 19845 | # FIXME: first we should search . and the directory the executable is in |
| 19846 | shlibpath_var=PATH |
| 19847 | ;; |
| 19848 | |
| 19849 | darwin* | rhapsody*) |
| 19850 | dynamic_linker="$host_os dyld" |
| 19851 | version_type=darwin |
| 19852 | need_lib_prefix=no |
| 19853 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19854 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19855 | soname_spec='${libname}${release}${major}$shared_ext' |
| 19856 | shlibpath_overrides_runpath=yes |
| 19857 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19858 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19859 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19860 | if test "$GCC" = yes; then |
| 19861 | 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"` |
| 19862 | else |
| 19863 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19864 | fi |
| 19865 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 19866 | ;; |
| 19867 | |
| 19868 | dgux*) |
| 19869 | version_type=linux |
| 19870 | need_lib_prefix=no |
| 19871 | need_version=no |
| 19872 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 19873 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19874 | shlibpath_var=LD_LIBRARY_PATH |
| 19875 | ;; |
| 19876 | |
| 19877 | freebsd1*) |
| 19878 | dynamic_linker=no |
| 19879 | ;; |
| 19880 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19881 | kfreebsd*-gnu) |
| 19882 | version_type=linux |
| 19883 | need_lib_prefix=no |
| 19884 | need_version=no |
| 19885 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 19886 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19887 | shlibpath_var=LD_LIBRARY_PATH |
| 19888 | shlibpath_overrides_runpath=no |
| 19889 | hardcode_into_libs=yes |
| 19890 | dynamic_linker='GNU ld.so' |
| 19891 | ;; |
| 19892 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19893 | freebsd* | dragonfly*) |
| 19894 | # DragonFly does not have aout. When/if they implement a new |
| 19895 | # versioning mechanism, adjust this. |
| 19896 | if test -x /usr/bin/objformat; then |
| 19897 | objformat=`/usr/bin/objformat` |
| 19898 | else |
| 19899 | case $host_os in |
| 19900 | freebsd[123]*) objformat=aout ;; |
| 19901 | *) objformat=elf ;; |
| 19902 | esac |
| 19903 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19904 | version_type=freebsd-$objformat |
| 19905 | case $version_type in |
| 19906 | freebsd-elf*) |
| 19907 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 19908 | need_version=no |
| 19909 | need_lib_prefix=no |
| 19910 | ;; |
| 19911 | freebsd-*) |
| 19912 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 19913 | need_version=yes |
| 19914 | ;; |
| 19915 | esac |
| 19916 | shlibpath_var=LD_LIBRARY_PATH |
| 19917 | case $host_os in |
| 19918 | freebsd2*) |
| 19919 | shlibpath_overrides_runpath=yes |
| 19920 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19921 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19922 | shlibpath_overrides_runpath=yes |
| 19923 | hardcode_into_libs=yes |
| 19924 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19925 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 19926 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19927 | shlibpath_overrides_runpath=no |
| 19928 | hardcode_into_libs=yes |
| 19929 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19930 | freebsd*) # from 4.6 on |
| 19931 | shlibpath_overrides_runpath=yes |
| 19932 | hardcode_into_libs=yes |
| 19933 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19934 | esac |
| 19935 | ;; |
| 19936 | |
| 19937 | gnu*) |
| 19938 | version_type=linux |
| 19939 | need_lib_prefix=no |
| 19940 | need_version=no |
| 19941 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 19942 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19943 | shlibpath_var=LD_LIBRARY_PATH |
| 19944 | hardcode_into_libs=yes |
| 19945 | ;; |
| 19946 | |
| 19947 | hpux9* | hpux10* | hpux11*) |
| 19948 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 19949 | # link against other versions. |
| 19950 | version_type=sunos |
| 19951 | need_lib_prefix=no |
| 19952 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19953 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19954 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19955 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19956 | hardcode_into_libs=yes |
| 19957 | dynamic_linker="$host_os dld.so" |
| 19958 | shlibpath_var=LD_LIBRARY_PATH |
| 19959 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 19960 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19961 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19962 | if test "X$HPUX_IA64_MODE" = X32; then |
| 19963 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 19964 | else |
| 19965 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 19966 | fi |
| 19967 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 19968 | ;; |
| 19969 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19970 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19971 | hardcode_into_libs=yes |
| 19972 | dynamic_linker="$host_os dld.sl" |
| 19973 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 19974 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 19975 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19976 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19977 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 19978 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 19979 | ;; |
| 19980 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19981 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19982 | dynamic_linker="$host_os dld.sl" |
| 19983 | shlibpath_var=SHLIB_PATH |
| 19984 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 19985 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19986 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19987 | ;; |
| 19988 | esac |
| 19989 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 19990 | postinstall_cmds='chmod 555 $lib' |
| 19991 | ;; |
| 19992 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19993 | interix3*) |
| 19994 | version_type=linux |
| 19995 | need_lib_prefix=no |
| 19996 | need_version=no |
| 19997 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 19998 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19999 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 20000 | shlibpath_var=LD_LIBRARY_PATH |
| 20001 | shlibpath_overrides_runpath=no |
| 20002 | hardcode_into_libs=yes |
| 20003 | ;; |
| 20004 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20005 | irix5* | irix6* | nonstopux*) |
| 20006 | case $host_os in |
| 20007 | nonstopux*) version_type=nonstopux ;; |
| 20008 | *) |
| 20009 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 20010 | version_type=linux |
| 20011 | else |
| 20012 | version_type=irix |
| 20013 | fi ;; |
| 20014 | esac |
| 20015 | need_lib_prefix=no |
| 20016 | need_version=no |
| 20017 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20018 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20019 | case $host_os in |
| 20020 | irix5* | nonstopux*) |
| 20021 | libsuff= shlibsuff= |
| 20022 | ;; |
| 20023 | *) |
| 20024 | case $LD in # libtool.m4 will add one of these switches to LD |
| 20025 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 20026 | libsuff= shlibsuff= libmagic=32-bit;; |
| 20027 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 20028 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 20029 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 20030 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 20031 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 20032 | esac |
| 20033 | ;; |
| 20034 | esac |
| 20035 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 20036 | shlibpath_overrides_runpath=no |
| 20037 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 20038 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 20039 | hardcode_into_libs=yes |
| 20040 | ;; |
| 20041 | |
| 20042 | # No shared lib support for Linux oldld, aout, or coff. |
| 20043 | linux*oldld* | linux*aout* | linux*coff*) |
| 20044 | dynamic_linker=no |
| 20045 | ;; |
| 20046 | |
| 20047 | # This must be Linux ELF. |
| 20048 | linux*) |
| 20049 | version_type=linux |
| 20050 | need_lib_prefix=no |
| 20051 | need_version=no |
| 20052 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20053 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20054 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 20055 | shlibpath_var=LD_LIBRARY_PATH |
| 20056 | shlibpath_overrides_runpath=no |
| 20057 | # This implies no fast_install, which is unacceptable. |
| 20058 | # Some rework will be needed to allow for fast_install |
| 20059 | # before this can be enabled. |
| 20060 | hardcode_into_libs=yes |
| 20061 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20062 | # Append ld.so.conf contents to the search path |
| 20063 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20064 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20065 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 20066 | fi |
| 20067 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20068 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 20069 | # powerpc, because MkLinux only supported shared libraries with the |
| 20070 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 20071 | # most powerpc-linux boxes support dynamic linking these days and |
| 20072 | # people can always --disable-shared, the test was removed, and we |
| 20073 | # assume the GNU/Linux dynamic linker is in use. |
| 20074 | dynamic_linker='GNU/Linux ld.so' |
| 20075 | ;; |
| 20076 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20077 | knetbsd*-gnu) |
| 20078 | version_type=linux |
| 20079 | need_lib_prefix=no |
| 20080 | need_version=no |
| 20081 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20082 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20083 | shlibpath_var=LD_LIBRARY_PATH |
| 20084 | shlibpath_overrides_runpath=no |
| 20085 | hardcode_into_libs=yes |
| 20086 | dynamic_linker='GNU ld.so' |
| 20087 | ;; |
| 20088 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20089 | netbsd*) |
| 20090 | version_type=sunos |
| 20091 | need_lib_prefix=no |
| 20092 | need_version=no |
| 20093 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 20094 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20095 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20096 | dynamic_linker='NetBSD (a.out) ld.so' |
| 20097 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20098 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20099 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20100 | dynamic_linker='NetBSD ld.elf_so' |
| 20101 | fi |
| 20102 | shlibpath_var=LD_LIBRARY_PATH |
| 20103 | shlibpath_overrides_runpath=yes |
| 20104 | hardcode_into_libs=yes |
| 20105 | ;; |
| 20106 | |
| 20107 | newsos6) |
| 20108 | version_type=linux |
| 20109 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20110 | shlibpath_var=LD_LIBRARY_PATH |
| 20111 | shlibpath_overrides_runpath=yes |
| 20112 | ;; |
| 20113 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20114 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20115 | version_type=linux |
| 20116 | need_lib_prefix=no |
| 20117 | need_version=no |
| 20118 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20119 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20120 | shlibpath_var=LD_LIBRARY_PATH |
| 20121 | shlibpath_overrides_runpath=yes |
| 20122 | ;; |
| 20123 | |
| 20124 | openbsd*) |
| 20125 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20126 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20127 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20128 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 20129 | case $host_os in |
| 20130 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 20131 | *) need_version=no ;; |
| 20132 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20133 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20134 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20135 | shlibpath_var=LD_LIBRARY_PATH |
| 20136 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 20137 | case $host_os in |
| 20138 | openbsd2.[89] | openbsd2.[89].*) |
| 20139 | shlibpath_overrides_runpath=no |
| 20140 | ;; |
| 20141 | *) |
| 20142 | shlibpath_overrides_runpath=yes |
| 20143 | ;; |
| 20144 | esac |
| 20145 | else |
| 20146 | shlibpath_overrides_runpath=yes |
| 20147 | fi |
| 20148 | ;; |
| 20149 | |
| 20150 | os2*) |
| 20151 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20152 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20153 | need_lib_prefix=no |
| 20154 | library_names_spec='$libname${shared_ext} $libname.a' |
| 20155 | dynamic_linker='OS/2 ld.exe' |
| 20156 | shlibpath_var=LIBPATH |
| 20157 | ;; |
| 20158 | |
| 20159 | osf3* | osf4* | osf5*) |
| 20160 | version_type=osf |
| 20161 | need_lib_prefix=no |
| 20162 | need_version=no |
| 20163 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20164 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20165 | shlibpath_var=LD_LIBRARY_PATH |
| 20166 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 20167 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 20168 | ;; |
| 20169 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20170 | solaris*) |
| 20171 | version_type=linux |
| 20172 | need_lib_prefix=no |
| 20173 | need_version=no |
| 20174 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20175 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20176 | shlibpath_var=LD_LIBRARY_PATH |
| 20177 | shlibpath_overrides_runpath=yes |
| 20178 | hardcode_into_libs=yes |
| 20179 | # ldd complains unless libraries are executable |
| 20180 | postinstall_cmds='chmod +x $lib' |
| 20181 | ;; |
| 20182 | |
| 20183 | sunos4*) |
| 20184 | version_type=sunos |
| 20185 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20186 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 20187 | shlibpath_var=LD_LIBRARY_PATH |
| 20188 | shlibpath_overrides_runpath=yes |
| 20189 | if test "$with_gnu_ld" = yes; then |
| 20190 | need_lib_prefix=no |
| 20191 | fi |
| 20192 | need_version=yes |
| 20193 | ;; |
| 20194 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20195 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20196 | version_type=linux |
| 20197 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20198 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20199 | shlibpath_var=LD_LIBRARY_PATH |
| 20200 | case $host_vendor in |
| 20201 | sni) |
| 20202 | shlibpath_overrides_runpath=no |
| 20203 | need_lib_prefix=no |
| 20204 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 20205 | runpath_var=LD_RUN_PATH |
| 20206 | ;; |
| 20207 | siemens) |
| 20208 | need_lib_prefix=no |
| 20209 | ;; |
| 20210 | motorola) |
| 20211 | need_lib_prefix=no |
| 20212 | need_version=no |
| 20213 | shlibpath_overrides_runpath=no |
| 20214 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 20215 | ;; |
| 20216 | esac |
| 20217 | ;; |
| 20218 | |
| 20219 | sysv4*MP*) |
| 20220 | if test -d /usr/nec ;then |
| 20221 | version_type=linux |
| 20222 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 20223 | soname_spec='$libname${shared_ext}.$major' |
| 20224 | shlibpath_var=LD_LIBRARY_PATH |
| 20225 | fi |
| 20226 | ;; |
| 20227 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20228 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 20229 | version_type=freebsd-elf |
| 20230 | need_lib_prefix=no |
| 20231 | need_version=no |
| 20232 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20233 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20234 | shlibpath_var=LD_LIBRARY_PATH |
| 20235 | hardcode_into_libs=yes |
| 20236 | if test "$with_gnu_ld" = yes; then |
| 20237 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 20238 | shlibpath_overrides_runpath=no |
| 20239 | else |
| 20240 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 20241 | shlibpath_overrides_runpath=yes |
| 20242 | case $host_os in |
| 20243 | sco3.2v5*) |
| 20244 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 20245 | ;; |
| 20246 | esac |
| 20247 | fi |
| 20248 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 20249 | ;; |
| 20250 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20251 | uts4*) |
| 20252 | version_type=linux |
| 20253 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20254 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20255 | shlibpath_var=LD_LIBRARY_PATH |
| 20256 | ;; |
| 20257 | |
| 20258 | *) |
| 20259 | dynamic_linker=no |
| 20260 | ;; |
| 20261 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20262 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 20263 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20264 | test "$dynamic_linker" = no && can_build_shared=no |
| 20265 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20266 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 20267 | if test "$GCC" = yes; then |
| 20268 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 20269 | fi |
| 20270 | |
| 20271 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 20272 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20273 | hardcode_action_CXX= |
| 20274 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 20275 | test -n "$runpath_var_CXX" || \ |
| 20276 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 20277 | |
| 20278 | # We can hardcode non-existant directories. |
| 20279 | if test "$hardcode_direct_CXX" != no && |
| 20280 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 20281 | # have to relink, otherwise we might link with an installed library |
| 20282 | # when we should be linking with a yet-to-be-installed one |
| 20283 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 20284 | test "$hardcode_minus_L_CXX" != no; then |
| 20285 | # Linking always hardcodes the temporary library directory. |
| 20286 | hardcode_action_CXX=relink |
| 20287 | else |
| 20288 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 20289 | hardcode_action_CXX=immediate |
| 20290 | fi |
| 20291 | else |
| 20292 | # We cannot hardcode anything, or else we can only hardcode existing |
| 20293 | # directories. |
| 20294 | hardcode_action_CXX=unsupported |
| 20295 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20296 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 20297 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20298 | |
| 20299 | if test "$hardcode_action_CXX" = relink; then |
| 20300 | # Fast installation is not supported |
| 20301 | enable_fast_install=no |
| 20302 | elif test "$shlibpath_overrides_runpath" = yes || |
| 20303 | test "$enable_shared" = no; then |
| 20304 | # Fast installation is not necessary |
| 20305 | enable_fast_install=needless |
| 20306 | fi |
| 20307 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20308 | |
| 20309 | # The else clause should only fire when bootstrapping the |
| 20310 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 20311 | # with your package, and you will get complaints that there are |
| 20312 | # no rules to generate ltmain.sh. |
| 20313 | if test -f "$ltmain"; then |
| 20314 | # See if we are running on zsh, and set the options which allow our commands through |
| 20315 | # without removal of \ escapes. |
| 20316 | if test -n "${ZSH_VERSION+set}" ; then |
| 20317 | setopt NO_GLOB_SUBST |
| 20318 | fi |
| 20319 | # Now quote all the things that may contain metacharacters while being |
| 20320 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 20321 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20322 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20323 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20324 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 20325 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 20326 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 20327 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 20328 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 20329 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 20330 | old_postinstall_cmds old_postuninstall_cmds \ |
| 20331 | compiler_CXX \ |
| 20332 | CC_CXX \ |
| 20333 | LD_CXX \ |
| 20334 | lt_prog_compiler_wl_CXX \ |
| 20335 | lt_prog_compiler_pic_CXX \ |
| 20336 | lt_prog_compiler_static_CXX \ |
| 20337 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 20338 | export_dynamic_flag_spec_CXX \ |
| 20339 | thread_safe_flag_spec_CXX \ |
| 20340 | whole_archive_flag_spec_CXX \ |
| 20341 | enable_shared_with_static_runtimes_CXX \ |
| 20342 | old_archive_cmds_CXX \ |
| 20343 | old_archive_from_new_cmds_CXX \ |
| 20344 | predep_objects_CXX \ |
| 20345 | postdep_objects_CXX \ |
| 20346 | predeps_CXX \ |
| 20347 | postdeps_CXX \ |
| 20348 | compiler_lib_search_path_CXX \ |
| 20349 | archive_cmds_CXX \ |
| 20350 | archive_expsym_cmds_CXX \ |
| 20351 | postinstall_cmds_CXX \ |
| 20352 | postuninstall_cmds_CXX \ |
| 20353 | old_archive_from_expsyms_cmds_CXX \ |
| 20354 | allow_undefined_flag_CXX \ |
| 20355 | no_undefined_flag_CXX \ |
| 20356 | export_symbols_cmds_CXX \ |
| 20357 | hardcode_libdir_flag_spec_CXX \ |
| 20358 | hardcode_libdir_flag_spec_ld_CXX \ |
| 20359 | hardcode_libdir_separator_CXX \ |
| 20360 | hardcode_automatic_CXX \ |
| 20361 | module_cmds_CXX \ |
| 20362 | module_expsym_cmds_CXX \ |
| 20363 | lt_cv_prog_compiler_c_o_CXX \ |
| 20364 | exclude_expsyms_CXX \ |
| 20365 | include_expsyms_CXX; do |
| 20366 | |
| 20367 | case $var in |
| 20368 | old_archive_cmds_CXX | \ |
| 20369 | old_archive_from_new_cmds_CXX | \ |
| 20370 | archive_cmds_CXX | \ |
| 20371 | archive_expsym_cmds_CXX | \ |
| 20372 | module_cmds_CXX | \ |
| 20373 | module_expsym_cmds_CXX | \ |
| 20374 | old_archive_from_expsyms_cmds_CXX | \ |
| 20375 | export_symbols_cmds_CXX | \ |
| 20376 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 20377 | postinstall_cmds | postuninstall_cmds | \ |
| 20378 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 20379 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 20380 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20381 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20382 | ;; |
| 20383 | *) |
| 20384 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 20385 | ;; |
| 20386 | esac |
| 20387 | done |
| 20388 | |
| 20389 | case $lt_echo in |
| 20390 | *'\$0 --fallback-echo"') |
| 20391 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 20392 | ;; |
| 20393 | esac |
| 20394 | |
| 20395 | cfgfile="$ofile" |
| 20396 | |
| 20397 | cat <<__EOF__ >> "$cfgfile" |
| 20398 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 20399 | |
| 20400 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 20401 | |
| 20402 | # Shell to use when invoking shell scripts. |
| 20403 | SHELL=$lt_SHELL |
| 20404 | |
| 20405 | # Whether or not to build shared libraries. |
| 20406 | build_libtool_libs=$enable_shared |
| 20407 | |
| 20408 | # Whether or not to build static libraries. |
| 20409 | build_old_libs=$enable_static |
| 20410 | |
| 20411 | # Whether or not to add -lc for building shared libraries. |
| 20412 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 20413 | |
| 20414 | # Whether or not to disallow shared libs when runtime libs are static |
| 20415 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 20416 | |
| 20417 | # Whether or not to optimize for fast installation. |
| 20418 | fast_install=$enable_fast_install |
| 20419 | |
| 20420 | # The host system. |
| 20421 | host_alias=$host_alias |
| 20422 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20423 | host_os=$host_os |
| 20424 | |
| 20425 | # The build system. |
| 20426 | build_alias=$build_alias |
| 20427 | build=$build |
| 20428 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20429 | |
| 20430 | # An echo program that does not interpret backslashes. |
| 20431 | echo=$lt_echo |
| 20432 | |
| 20433 | # The archiver. |
| 20434 | AR=$lt_AR |
| 20435 | AR_FLAGS=$lt_AR_FLAGS |
| 20436 | |
| 20437 | # A C compiler. |
| 20438 | LTCC=$lt_LTCC |
| 20439 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20440 | # LTCC compiler flags. |
| 20441 | LTCFLAGS=$lt_LTCFLAGS |
| 20442 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20443 | # A language-specific compiler. |
| 20444 | CC=$lt_compiler_CXX |
| 20445 | |
| 20446 | # Is the compiler the GNU C compiler? |
| 20447 | with_gcc=$GCC_CXX |
| 20448 | |
| 20449 | # An ERE matcher. |
| 20450 | EGREP=$lt_EGREP |
| 20451 | |
| 20452 | # The linker used to build libraries. |
| 20453 | LD=$lt_LD_CXX |
| 20454 | |
| 20455 | # Whether we need hard or soft links. |
| 20456 | LN_S=$lt_LN_S |
| 20457 | |
| 20458 | # A BSD-compatible nm program. |
| 20459 | NM=$lt_NM |
| 20460 | |
| 20461 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20462 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20463 | |
| 20464 | # Used to examine libraries when file_magic_cmd begins "file" |
| 20465 | MAGIC_CMD=$MAGIC_CMD |
| 20466 | |
| 20467 | # Used on cygwin: DLL creation program. |
| 20468 | DLLTOOL="$DLLTOOL" |
| 20469 | |
| 20470 | # Used on cygwin: object dumper. |
| 20471 | OBJDUMP="$OBJDUMP" |
| 20472 | |
| 20473 | # Used on cygwin: assembler. |
| 20474 | AS="$AS" |
| 20475 | |
| 20476 | # The name of the directory that contains temporary libtool files. |
| 20477 | objdir=$objdir |
| 20478 | |
| 20479 | # How to create reloadable object files. |
| 20480 | reload_flag=$lt_reload_flag |
| 20481 | reload_cmds=$lt_reload_cmds |
| 20482 | |
| 20483 | # How to pass a linker flag through the compiler. |
| 20484 | wl=$lt_lt_prog_compiler_wl_CXX |
| 20485 | |
| 20486 | # Object file suffix (normally "o"). |
| 20487 | objext="$ac_objext" |
| 20488 | |
| 20489 | # Old archive suffix (normally "a"). |
| 20490 | libext="$libext" |
| 20491 | |
| 20492 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20493 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20494 | |
| 20495 | # Executable file suffix (normally ""). |
| 20496 | exeext="$exeext" |
| 20497 | |
| 20498 | # Additional compiler flags for building library objects. |
| 20499 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 20500 | pic_mode=$pic_mode |
| 20501 | |
| 20502 | # What is the maximum length of a command? |
| 20503 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 20504 | |
| 20505 | # Does compiler simultaneously support -c and -o options? |
| 20506 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 20507 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20508 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20509 | need_locks=$lt_need_locks |
| 20510 | |
| 20511 | # Do we need the lib prefix for modules? |
| 20512 | need_lib_prefix=$need_lib_prefix |
| 20513 | |
| 20514 | # Do we need a version for libraries? |
| 20515 | need_version=$need_version |
| 20516 | |
| 20517 | # Whether dlopen is supported. |
| 20518 | dlopen_support=$enable_dlopen |
| 20519 | |
| 20520 | # Whether dlopen of programs is supported. |
| 20521 | dlopen_self=$enable_dlopen_self |
| 20522 | |
| 20523 | # Whether dlopen of statically linked programs is supported. |
| 20524 | dlopen_self_static=$enable_dlopen_self_static |
| 20525 | |
| 20526 | # Compiler flag to prevent dynamic linking. |
| 20527 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 20528 | |
| 20529 | # Compiler flag to turn off builtin functions. |
| 20530 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 20531 | |
| 20532 | # Compiler flag to allow reflexive dlopens. |
| 20533 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 20534 | |
| 20535 | # Compiler flag to generate shared objects directly from archives. |
| 20536 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 20537 | |
| 20538 | # Compiler flag to generate thread-safe objects. |
| 20539 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 20540 | |
| 20541 | # Library versioning type. |
| 20542 | version_type=$version_type |
| 20543 | |
| 20544 | # Format of library name prefix. |
| 20545 | libname_spec=$lt_libname_spec |
| 20546 | |
| 20547 | # List of archive names. First name is the real one, the rest are links. |
| 20548 | # The last name is the one that the linker finds with -lNAME. |
| 20549 | library_names_spec=$lt_library_names_spec |
| 20550 | |
| 20551 | # The coded name of the library, if different from the real name. |
| 20552 | soname_spec=$lt_soname_spec |
| 20553 | |
| 20554 | # Commands used to build and install an old-style archive. |
| 20555 | RANLIB=$lt_RANLIB |
| 20556 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 20557 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 20558 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 20559 | |
| 20560 | # Create an old-style archive from a shared archive. |
| 20561 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 20562 | |
| 20563 | # Create a temporary old-style archive to link instead of a shared archive. |
| 20564 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 20565 | |
| 20566 | # Commands used to build and install a shared archive. |
| 20567 | archive_cmds=$lt_archive_cmds_CXX |
| 20568 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 20569 | postinstall_cmds=$lt_postinstall_cmds |
| 20570 | postuninstall_cmds=$lt_postuninstall_cmds |
| 20571 | |
| 20572 | # Commands used to build a loadable module (assumed same as above if empty) |
| 20573 | module_cmds=$lt_module_cmds_CXX |
| 20574 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 20575 | |
| 20576 | # Commands to strip libraries. |
| 20577 | old_striplib=$lt_old_striplib |
| 20578 | striplib=$lt_striplib |
| 20579 | |
| 20580 | # Dependencies to place before the objects being linked to create a |
| 20581 | # shared library. |
| 20582 | predep_objects=$lt_predep_objects_CXX |
| 20583 | |
| 20584 | # Dependencies to place after the objects being linked to create a |
| 20585 | # shared library. |
| 20586 | postdep_objects=$lt_postdep_objects_CXX |
| 20587 | |
| 20588 | # Dependencies to place before the objects being linked to create a |
| 20589 | # shared library. |
| 20590 | predeps=$lt_predeps_CXX |
| 20591 | |
| 20592 | # Dependencies to place after the objects being linked to create a |
| 20593 | # shared library. |
| 20594 | postdeps=$lt_postdeps_CXX |
| 20595 | |
| 20596 | # The library search path used internally by the compiler when linking |
| 20597 | # a shared library. |
| 20598 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 20599 | |
| 20600 | # Method to check whether dependent libraries are shared objects. |
| 20601 | deplibs_check_method=$lt_deplibs_check_method |
| 20602 | |
| 20603 | # Command to use when deplibs_check_method == file_magic. |
| 20604 | file_magic_cmd=$lt_file_magic_cmd |
| 20605 | |
| 20606 | # Flag that allows shared libraries with undefined symbols to be built. |
| 20607 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 20608 | |
| 20609 | # Flag that forces no undefined symbols. |
| 20610 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 20611 | |
| 20612 | # Commands used to finish a libtool library installation in a directory. |
| 20613 | finish_cmds=$lt_finish_cmds |
| 20614 | |
| 20615 | # Same as above, but a single script fragment to be evaled but not shown. |
| 20616 | finish_eval=$lt_finish_eval |
| 20617 | |
| 20618 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 20619 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 20620 | |
| 20621 | # Transform the output of nm in a proper C declaration |
| 20622 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 20623 | |
| 20624 | # Transform the output of nm in a C name address pair |
| 20625 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 20626 | |
| 20627 | # This is the shared library runtime path variable. |
| 20628 | runpath_var=$runpath_var |
| 20629 | |
| 20630 | # This is the shared library path variable. |
| 20631 | shlibpath_var=$shlibpath_var |
| 20632 | |
| 20633 | # Is shlibpath searched before the hard-coded library search path? |
| 20634 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 20635 | |
| 20636 | # How to hardcode a shared library path into an executable. |
| 20637 | hardcode_action=$hardcode_action_CXX |
| 20638 | |
| 20639 | # Whether we should hardcode library paths into libraries. |
| 20640 | hardcode_into_libs=$hardcode_into_libs |
| 20641 | |
| 20642 | # Flag to hardcode \$libdir into a binary during linking. |
| 20643 | # This must work even if \$libdir does not exist. |
| 20644 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 20645 | |
| 20646 | # If ld is used when linking, flag to hardcode \$libdir into |
| 20647 | # a binary during linking. This must work even if \$libdir does |
| 20648 | # not exist. |
| 20649 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 20650 | |
| 20651 | # Whether we need a single -rpath flag with a separated argument. |
| 20652 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 20653 | |
| 20654 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 20655 | # resulting binary. |
| 20656 | hardcode_direct=$hardcode_direct_CXX |
| 20657 | |
| 20658 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 20659 | # resulting binary. |
| 20660 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 20661 | |
| 20662 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 20663 | # the resulting binary. |
| 20664 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 20665 | |
| 20666 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 20667 | # and all subsequent libraries and executables linked against it. |
| 20668 | hardcode_automatic=$hardcode_automatic_CXX |
| 20669 | |
| 20670 | # Variables whose values should be saved in libtool wrapper scripts and |
| 20671 | # restored at relink time. |
| 20672 | variables_saved_for_relink="$variables_saved_for_relink" |
| 20673 | |
| 20674 | # Whether libtool must link a program against all its dependency libraries. |
| 20675 | link_all_deplibs=$link_all_deplibs_CXX |
| 20676 | |
| 20677 | # Compile-time system search path for libraries |
| 20678 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 20679 | |
| 20680 | # Run-time system search path for libraries |
| 20681 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 20682 | |
| 20683 | # Fix the shell variable \$srcfile for the compiler. |
| 20684 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 20685 | |
| 20686 | # Set to yes if exported symbols are required. |
| 20687 | always_export_symbols=$always_export_symbols_CXX |
| 20688 | |
| 20689 | # The commands to list exported symbols. |
| 20690 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 20691 | |
| 20692 | # The commands to extract the exported symbol list from a shared archive. |
| 20693 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 20694 | |
| 20695 | # Symbols that should not be listed in the preloaded symbols. |
| 20696 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 20697 | |
| 20698 | # Symbols that must always be exported. |
| 20699 | include_expsyms=$lt_include_expsyms_CXX |
| 20700 | |
| 20701 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 20702 | |
| 20703 | __EOF__ |
| 20704 | |
| 20705 | |
| 20706 | else |
| 20707 | # If there is no Makefile yet, we rely on a make rule to execute |
| 20708 | # `config.status --recheck' to rerun these tests and create the |
| 20709 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20710 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 20711 | if test -f "$ltmain_in"; then |
| 20712 | test -f Makefile && make "$ltmain" |
| 20713 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20714 | fi |
| 20715 | |
| 20716 | |
| 20717 | ac_ext=c |
| 20718 | ac_cpp='$CPP $CPPFLAGS' |
| 20719 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20720 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20721 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20722 | |
| 20723 | CC=$lt_save_CC |
| 20724 | LDCXX=$LD |
| 20725 | LD=$lt_save_LD |
| 20726 | GCC=$lt_save_GCC |
| 20727 | with_gnu_ldcxx=$with_gnu_ld |
| 20728 | with_gnu_ld=$lt_save_with_gnu_ld |
| 20729 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 20730 | lt_cv_path_LD=$lt_save_path_LD |
| 20731 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 20732 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 20733 | |
| 20734 | else |
| 20735 | tagname="" |
| 20736 | fi |
| 20737 | ;; |
| 20738 | |
| 20739 | F77) |
| 20740 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 20741 | |
| 20742 | ac_ext=f |
| 20743 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 20744 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20745 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 20746 | |
| 20747 | |
| 20748 | archive_cmds_need_lc_F77=no |
| 20749 | allow_undefined_flag_F77= |
| 20750 | always_export_symbols_F77=no |
| 20751 | archive_expsym_cmds_F77= |
| 20752 | export_dynamic_flag_spec_F77= |
| 20753 | hardcode_direct_F77=no |
| 20754 | hardcode_libdir_flag_spec_F77= |
| 20755 | hardcode_libdir_flag_spec_ld_F77= |
| 20756 | hardcode_libdir_separator_F77= |
| 20757 | hardcode_minus_L_F77=no |
| 20758 | hardcode_automatic_F77=no |
| 20759 | module_cmds_F77= |
| 20760 | module_expsym_cmds_F77= |
| 20761 | link_all_deplibs_F77=unknown |
| 20762 | old_archive_cmds_F77=$old_archive_cmds |
| 20763 | no_undefined_flag_F77= |
| 20764 | whole_archive_flag_spec_F77= |
| 20765 | enable_shared_with_static_runtimes_F77=no |
| 20766 | |
| 20767 | # Source file extension for f77 test sources. |
| 20768 | ac_ext=f |
| 20769 | |
| 20770 | # Object file extension for compiled f77 test sources. |
| 20771 | objext=o |
| 20772 | objext_F77=$objext |
| 20773 | |
| 20774 | # Code to be used in simple compile tests |
| 20775 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 20776 | |
| 20777 | # Code to be used in simple link tests |
| 20778 | lt_simple_link_test_code=" program t\n end\n" |
| 20779 | |
| 20780 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 20781 | |
| 20782 | # If no C compiler was specified, use CC. |
| 20783 | LTCC=${LTCC-"$CC"} |
| 20784 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20785 | # If no C compiler flags were specified, use CFLAGS. |
| 20786 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 20787 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20788 | # Allow CC to be a program name with arguments. |
| 20789 | compiler=$CC |
| 20790 | |
| 20791 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20792 | # save warnings/boilerplate of simple test code |
| 20793 | ac_outfile=conftest.$ac_objext |
| 20794 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 20795 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 20796 | _lt_compiler_boilerplate=`cat conftest.err` |
| 20797 | $rm conftest* |
| 20798 | |
| 20799 | ac_outfile=conftest.$ac_objext |
| 20800 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 20801 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 20802 | _lt_linker_boilerplate=`cat conftest.err` |
| 20803 | $rm conftest* |
| 20804 | |
| 20805 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20806 | # Allow CC to be a program name with arguments. |
| 20807 | lt_save_CC="$CC" |
| 20808 | CC=${F77-"f77"} |
| 20809 | compiler=$CC |
| 20810 | compiler_F77=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20811 | for cc_temp in $compiler""; do |
| 20812 | case $cc_temp in |
| 20813 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 20814 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 20815 | \-*) ;; |
| 20816 | *) break;; |
| 20817 | esac |
| 20818 | done |
| 20819 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20820 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20821 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20822 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 20823 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 20824 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 20825 | echo "${ECHO_T}$can_build_shared" >&6; } |
| 20826 | |
| 20827 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 20828 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20829 | test "$can_build_shared" = "no" && enable_shared=no |
| 20830 | |
| 20831 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 20832 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20833 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20834 | aix3*) |
| 20835 | test "$enable_shared" = yes && enable_static=no |
| 20836 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20837 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20838 | postinstall_cmds='$RANLIB $lib' |
| 20839 | fi |
| 20840 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20841 | aix4* | aix5*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20842 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 20843 | test "$enable_shared" = yes && enable_static=no |
| 20844 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20845 | ;; |
| 20846 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20847 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 20848 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20849 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20850 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 20851 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20852 | # Make sure either enable_shared or enable_static is yes. |
| 20853 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20854 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 20855 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20856 | |
| 20857 | GCC_F77="$G77" |
| 20858 | LD_F77="$LD" |
| 20859 | |
| 20860 | lt_prog_compiler_wl_F77= |
| 20861 | lt_prog_compiler_pic_F77= |
| 20862 | lt_prog_compiler_static_F77= |
| 20863 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20864 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 20865 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20866 | |
| 20867 | if test "$GCC" = yes; then |
| 20868 | lt_prog_compiler_wl_F77='-Wl,' |
| 20869 | lt_prog_compiler_static_F77='-static' |
| 20870 | |
| 20871 | case $host_os in |
| 20872 | aix*) |
| 20873 | # All AIX code is PIC. |
| 20874 | if test "$host_cpu" = ia64; then |
| 20875 | # AIX 5 now supports IA64 processor |
| 20876 | lt_prog_compiler_static_F77='-Bstatic' |
| 20877 | fi |
| 20878 | ;; |
| 20879 | |
| 20880 | amigaos*) |
| 20881 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 20882 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 20883 | # like `-m68040'. |
| 20884 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 20885 | ;; |
| 20886 | |
| 20887 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 20888 | # PIC is the default for these OSes. |
| 20889 | ;; |
| 20890 | |
| 20891 | mingw* | pw32* | os2*) |
| 20892 | # This hack is so that the source file can tell whether it is being |
| 20893 | # built for inclusion in a dll (and should export symbols for example). |
| 20894 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 20895 | ;; |
| 20896 | |
| 20897 | darwin* | rhapsody*) |
| 20898 | # PIC is the default on this platform |
| 20899 | # Common symbols not allowed in MH_DYLIB files |
| 20900 | lt_prog_compiler_pic_F77='-fno-common' |
| 20901 | ;; |
| 20902 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20903 | interix3*) |
| 20904 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 20905 | # Instead, we relocate shared libraries at runtime. |
| 20906 | ;; |
| 20907 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20908 | msdosdjgpp*) |
| 20909 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 20910 | # on systems that don't support them. |
| 20911 | lt_prog_compiler_can_build_shared_F77=no |
| 20912 | enable_shared=no |
| 20913 | ;; |
| 20914 | |
| 20915 | sysv4*MP*) |
| 20916 | if test -d /usr/nec; then |
| 20917 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 20918 | fi |
| 20919 | ;; |
| 20920 | |
| 20921 | hpux*) |
| 20922 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 20923 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20924 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20925 | hppa*64*|ia64*) |
| 20926 | # +Z the default |
| 20927 | ;; |
| 20928 | *) |
| 20929 | lt_prog_compiler_pic_F77='-fPIC' |
| 20930 | ;; |
| 20931 | esac |
| 20932 | ;; |
| 20933 | |
| 20934 | *) |
| 20935 | lt_prog_compiler_pic_F77='-fPIC' |
| 20936 | ;; |
| 20937 | esac |
| 20938 | else |
| 20939 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 20940 | case $host_os in |
| 20941 | aix*) |
| 20942 | lt_prog_compiler_wl_F77='-Wl,' |
| 20943 | if test "$host_cpu" = ia64; then |
| 20944 | # AIX 5 now supports IA64 processor |
| 20945 | lt_prog_compiler_static_F77='-Bstatic' |
| 20946 | else |
| 20947 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 20948 | fi |
| 20949 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20950 | darwin*) |
| 20951 | # PIC is the default on this platform |
| 20952 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20953 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20954 | xlc*) |
| 20955 | lt_prog_compiler_pic_F77='-qnocommon' |
| 20956 | lt_prog_compiler_wl_F77='-Wl,' |
| 20957 | ;; |
| 20958 | esac |
| 20959 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20960 | |
| 20961 | mingw* | pw32* | os2*) |
| 20962 | # This hack is so that the source file can tell whether it is being |
| 20963 | # built for inclusion in a dll (and should export symbols for example). |
| 20964 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 20965 | ;; |
| 20966 | |
| 20967 | hpux9* | hpux10* | hpux11*) |
| 20968 | lt_prog_compiler_wl_F77='-Wl,' |
| 20969 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 20970 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20971 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20972 | hppa*64*|ia64*) |
| 20973 | # +Z the default |
| 20974 | ;; |
| 20975 | *) |
| 20976 | lt_prog_compiler_pic_F77='+Z' |
| 20977 | ;; |
| 20978 | esac |
| 20979 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 20980 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 20981 | ;; |
| 20982 | |
| 20983 | irix5* | irix6* | nonstopux*) |
| 20984 | lt_prog_compiler_wl_F77='-Wl,' |
| 20985 | # PIC (with -KPIC) is the default. |
| 20986 | lt_prog_compiler_static_F77='-non_shared' |
| 20987 | ;; |
| 20988 | |
| 20989 | newsos6) |
| 20990 | lt_prog_compiler_pic_F77='-KPIC' |
| 20991 | lt_prog_compiler_static_F77='-Bstatic' |
| 20992 | ;; |
| 20993 | |
| 20994 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20995 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20996 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20997 | lt_prog_compiler_wl_F77='-Wl,' |
| 20998 | lt_prog_compiler_pic_F77='-KPIC' |
| 20999 | lt_prog_compiler_static_F77='-static' |
| 21000 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21001 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 21002 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 21003 | # which looks to be a dead project) |
| 21004 | lt_prog_compiler_wl_F77='-Wl,' |
| 21005 | lt_prog_compiler_pic_F77='-fpic' |
| 21006 | lt_prog_compiler_static_F77='-Bstatic' |
| 21007 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21008 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21009 | lt_prog_compiler_wl_F77='-Wl,' |
| 21010 | # All Alpha code is PIC. |
| 21011 | lt_prog_compiler_static_F77='-non_shared' |
| 21012 | ;; |
| 21013 | esac |
| 21014 | ;; |
| 21015 | |
| 21016 | osf3* | osf4* | osf5*) |
| 21017 | lt_prog_compiler_wl_F77='-Wl,' |
| 21018 | # All OSF/1 code is PIC. |
| 21019 | lt_prog_compiler_static_F77='-non_shared' |
| 21020 | ;; |
| 21021 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21022 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21023 | lt_prog_compiler_pic_F77='-KPIC' |
| 21024 | lt_prog_compiler_static_F77='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21025 | case $cc_basename in |
| 21026 | f77* | f90* | f95*) |
| 21027 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 21028 | *) |
| 21029 | lt_prog_compiler_wl_F77='-Wl,';; |
| 21030 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21031 | ;; |
| 21032 | |
| 21033 | sunos4*) |
| 21034 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 21035 | lt_prog_compiler_pic_F77='-PIC' |
| 21036 | lt_prog_compiler_static_F77='-Bstatic' |
| 21037 | ;; |
| 21038 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21039 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21040 | lt_prog_compiler_wl_F77='-Wl,' |
| 21041 | lt_prog_compiler_pic_F77='-KPIC' |
| 21042 | lt_prog_compiler_static_F77='-Bstatic' |
| 21043 | ;; |
| 21044 | |
| 21045 | sysv4*MP*) |
| 21046 | if test -d /usr/nec ;then |
| 21047 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 21048 | lt_prog_compiler_static_F77='-Bstatic' |
| 21049 | fi |
| 21050 | ;; |
| 21051 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21052 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 21053 | lt_prog_compiler_wl_F77='-Wl,' |
| 21054 | lt_prog_compiler_pic_F77='-KPIC' |
| 21055 | lt_prog_compiler_static_F77='-Bstatic' |
| 21056 | ;; |
| 21057 | |
| 21058 | unicos*) |
| 21059 | lt_prog_compiler_wl_F77='-Wl,' |
| 21060 | lt_prog_compiler_can_build_shared_F77=no |
| 21061 | ;; |
| 21062 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21063 | uts4*) |
| 21064 | lt_prog_compiler_pic_F77='-pic' |
| 21065 | lt_prog_compiler_static_F77='-Bstatic' |
| 21066 | ;; |
| 21067 | |
| 21068 | *) |
| 21069 | lt_prog_compiler_can_build_shared_F77=no |
| 21070 | ;; |
| 21071 | esac |
| 21072 | fi |
| 21073 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21074 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 21075 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21076 | |
| 21077 | # |
| 21078 | # Check to make sure the PIC flag actually works. |
| 21079 | # |
| 21080 | if test -n "$lt_prog_compiler_pic_F77"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21081 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21082 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 21083 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21084 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 21085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21086 | else |
| 21087 | lt_prog_compiler_pic_works_F77=no |
| 21088 | ac_outfile=conftest.$ac_objext |
| 21089 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21090 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 21091 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21092 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21093 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21094 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21095 | # The option is referenced via a variable to avoid confusing sed. |
| 21096 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21097 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21098 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21099 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 21100 | (eval echo "\"\$as_me:21100: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21101 | (eval "$lt_compile" 2>conftest.err) |
| 21102 | ac_status=$? |
| 21103 | cat conftest.err >&5 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 21104 | echo "$as_me:21104: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21105 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 21106 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21107 | # So say no if there are warnings other than the usual output. |
| 21108 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 21109 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21110 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21111 | lt_prog_compiler_pic_works_F77=yes |
| 21112 | fi |
| 21113 | fi |
| 21114 | $rm conftest* |
| 21115 | |
| 21116 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21117 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 21118 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21119 | |
| 21120 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 21121 | case $lt_prog_compiler_pic_F77 in |
| 21122 | "" | " "*) ;; |
| 21123 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 21124 | esac |
| 21125 | else |
| 21126 | lt_prog_compiler_pic_F77= |
| 21127 | lt_prog_compiler_can_build_shared_F77=no |
| 21128 | fi |
| 21129 | |
| 21130 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21131 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21132 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 21133 | *djgpp*) |
| 21134 | lt_prog_compiler_pic_F77= |
| 21135 | ;; |
| 21136 | *) |
| 21137 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 21138 | ;; |
| 21139 | esac |
| 21140 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21141 | # |
| 21142 | # Check to make sure the static flag actually works. |
| 21143 | # |
| 21144 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| 21145 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 21146 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 21147 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 21148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21149 | else |
| 21150 | lt_prog_compiler_static_works_F77=no |
| 21151 | save_LDFLAGS="$LDFLAGS" |
| 21152 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 21153 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 21154 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 21155 | # The linker can only warn and ignore the option if not recognized |
| 21156 | # So say no if there are warnings |
| 21157 | if test -s conftest.err; then |
| 21158 | # Append any errors to the config.log. |
| 21159 | cat conftest.err 1>&5 |
| 21160 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 21161 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21162 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 21163 | lt_prog_compiler_static_works_F77=yes |
| 21164 | fi |
| 21165 | else |
| 21166 | lt_prog_compiler_static_works_F77=yes |
| 21167 | fi |
| 21168 | fi |
| 21169 | $rm conftest* |
| 21170 | LDFLAGS="$save_LDFLAGS" |
| 21171 | |
| 21172 | fi |
| 21173 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 21174 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
| 21175 | |
| 21176 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 21177 | : |
| 21178 | else |
| 21179 | lt_prog_compiler_static_F77= |
| 21180 | fi |
| 21181 | |
| 21182 | |
| 21183 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 21184 | 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] | 21185 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 21186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21187 | else |
| 21188 | lt_cv_prog_compiler_c_o_F77=no |
| 21189 | $rm -r conftest 2>/dev/null |
| 21190 | mkdir conftest |
| 21191 | cd conftest |
| 21192 | mkdir out |
| 21193 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21194 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21195 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 21196 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21197 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21198 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21199 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21200 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21201 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21202 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21203 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 21204 | (eval echo "\"\$as_me:21204: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21205 | (eval "$lt_compile" 2>out/conftest.err) |
| 21206 | ac_status=$? |
| 21207 | cat out/conftest.err >&5 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 21208 | echo "$as_me:21208: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21209 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 21210 | then |
| 21211 | # The compiler can only warn and ignore the option if not recognized |
| 21212 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21213 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 21214 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 21215 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21216 | lt_cv_prog_compiler_c_o_F77=yes |
| 21217 | fi |
| 21218 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21219 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21220 | $rm conftest* |
| 21221 | # SGI C++ compiler will create directory out/ii_files/ for |
| 21222 | # template instantiation |
| 21223 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 21224 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21225 | cd .. |
| 21226 | rmdir conftest |
| 21227 | $rm conftest* |
| 21228 | |
| 21229 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21230 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 21231 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21232 | |
| 21233 | |
| 21234 | hard_links="nottested" |
| 21235 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 21236 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21237 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 21238 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21239 | hard_links=yes |
| 21240 | $rm conftest* |
| 21241 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 21242 | touch conftest.a |
| 21243 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 21244 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21245 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 21246 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21247 | if test "$hard_links" = no; then |
| 21248 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 21249 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 21250 | need_locks=warn |
| 21251 | fi |
| 21252 | else |
| 21253 | need_locks=no |
| 21254 | fi |
| 21255 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21256 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 21257 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21258 | |
| 21259 | runpath_var= |
| 21260 | allow_undefined_flag_F77= |
| 21261 | enable_shared_with_static_runtimes_F77=no |
| 21262 | archive_cmds_F77= |
| 21263 | archive_expsym_cmds_F77= |
| 21264 | old_archive_From_new_cmds_F77= |
| 21265 | old_archive_from_expsyms_cmds_F77= |
| 21266 | export_dynamic_flag_spec_F77= |
| 21267 | whole_archive_flag_spec_F77= |
| 21268 | thread_safe_flag_spec_F77= |
| 21269 | hardcode_libdir_flag_spec_F77= |
| 21270 | hardcode_libdir_flag_spec_ld_F77= |
| 21271 | hardcode_libdir_separator_F77= |
| 21272 | hardcode_direct_F77=no |
| 21273 | hardcode_minus_L_F77=no |
| 21274 | hardcode_shlibpath_var_F77=unsupported |
| 21275 | link_all_deplibs_F77=unknown |
| 21276 | hardcode_automatic_F77=no |
| 21277 | module_cmds_F77= |
| 21278 | module_expsym_cmds_F77= |
| 21279 | always_export_symbols_F77=no |
| 21280 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 21281 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 21282 | # included in the symbol list |
| 21283 | include_expsyms_F77= |
| 21284 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 21285 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 21286 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 21287 | # as well as any symbol that contains `d'. |
| 21288 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 21289 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 21290 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 21291 | # the symbol is explicitly referenced. Since portable code cannot |
| 21292 | # rely on this symbol name, it's probably fine to never include it in |
| 21293 | # preloaded symbol tables. |
| 21294 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21295 | # Just being paranoid about ensuring that cc_basename is set. |
| 21296 | for cc_temp in $compiler""; do |
| 21297 | case $cc_temp in |
| 21298 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 21299 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 21300 | \-*) ;; |
| 21301 | *) break;; |
| 21302 | esac |
| 21303 | done |
| 21304 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21305 | |
| 21306 | case $host_os in |
| 21307 | cygwin* | mingw* | pw32*) |
| 21308 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 21309 | # When not using gcc, we currently assume that we are using |
| 21310 | # Microsoft Visual C++. |
| 21311 | if test "$GCC" != yes; then |
| 21312 | with_gnu_ld=no |
| 21313 | fi |
| 21314 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21315 | interix*) |
| 21316 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 21317 | with_gnu_ld=yes |
| 21318 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21319 | openbsd*) |
| 21320 | with_gnu_ld=no |
| 21321 | ;; |
| 21322 | esac |
| 21323 | |
| 21324 | ld_shlibs_F77=yes |
| 21325 | if test "$with_gnu_ld" = yes; then |
| 21326 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 21327 | wlarc='${wl}' |
| 21328 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21329 | # Set some defaults for GNU ld with shared library support. These |
| 21330 | # are reset later if shared libraries are not supported. Putting them |
| 21331 | # here allows them to be overridden if necessary. |
| 21332 | runpath_var=LD_RUN_PATH |
| 21333 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 21334 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 21335 | # ancient GNU ld didn't support --whole-archive et. al. |
| 21336 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 21337 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 21338 | else |
| 21339 | whole_archive_flag_spec_F77= |
| 21340 | fi |
| 21341 | supports_anon_versioning=no |
| 21342 | case `$LD -v 2>/dev/null` in |
| 21343 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 21344 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 21345 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 21346 | *\ 2.11.*) ;; # other 2.11 versions |
| 21347 | *) supports_anon_versioning=yes ;; |
| 21348 | esac |
| 21349 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21350 | # See if GNU ld supports shared libraries. |
| 21351 | case $host_os in |
| 21352 | aix3* | aix4* | aix5*) |
| 21353 | # On AIX/PPC, the GNU linker is very broken |
| 21354 | if test "$host_cpu" != ia64; then |
| 21355 | ld_shlibs_F77=no |
| 21356 | cat <<EOF 1>&2 |
| 21357 | |
| 21358 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 21359 | *** to be unable to reliably create shared libraries on AIX. |
| 21360 | *** Therefore, libtool is disabling shared libraries support. If you |
| 21361 | *** really care for shared libraries, you may want to modify your PATH |
| 21362 | *** so that a non-GNU linker is found, and then restart. |
| 21363 | |
| 21364 | EOF |
| 21365 | fi |
| 21366 | ;; |
| 21367 | |
| 21368 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21369 | 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)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21370 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21371 | hardcode_minus_L_F77=yes |
| 21372 | |
| 21373 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 21374 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 21375 | # to version 4, is to share data among multiple programs linked |
| 21376 | # with the same dynamic library. Since this doesn't match the |
| 21377 | # behavior of shared libraries on other platforms, we can't use |
| 21378 | # them. |
| 21379 | ld_shlibs_F77=no |
| 21380 | ;; |
| 21381 | |
| 21382 | beos*) |
| 21383 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21384 | allow_undefined_flag_F77=unsupported |
| 21385 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 21386 | # support --undefined. This deserves some investigation. FIXME |
| 21387 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21388 | else |
| 21389 | ld_shlibs_F77=no |
| 21390 | fi |
| 21391 | ;; |
| 21392 | |
| 21393 | cygwin* | mingw* | pw32*) |
| 21394 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 21395 | # as there is no search path for DLLs. |
| 21396 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21397 | allow_undefined_flag_F77=unsupported |
| 21398 | always_export_symbols_F77=no |
| 21399 | enable_shared_with_static_runtimes_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21400 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21401 | |
| 21402 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21403 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21404 | # If the export-symbols file already is a .def file (1st line |
| 21405 | # is EXPORTS), use it as is; otherwise, prepend... |
| 21406 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 21407 | cp $export_symbols $output_objdir/$soname.def; |
| 21408 | else |
| 21409 | echo EXPORTS > $output_objdir/$soname.def; |
| 21410 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21411 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21412 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21413 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21414 | ld_shlibs_F77=no |
| 21415 | fi |
| 21416 | ;; |
| 21417 | |
| 21418 | interix3*) |
| 21419 | hardcode_direct_F77=no |
| 21420 | hardcode_shlibpath_var_F77=no |
| 21421 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 21422 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21423 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 21424 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 21425 | # default) and relocated if they conflict, which is a slow very memory |
| 21426 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 21427 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 21428 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 21429 | archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 21430 | archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 21431 | ;; |
| 21432 | |
| 21433 | linux*) |
| 21434 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21435 | tmp_addflag= |
| 21436 | case $cc_basename,$host_cpu in |
| 21437 | pgcc*) # Portland Group C compiler |
| 21438 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 21439 | tmp_addflag=' $pic_flag' |
| 21440 | ;; |
| 21441 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 21442 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 21443 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 21444 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 21445 | tmp_addflag=' -i_dynamic' ;; |
| 21446 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 21447 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 21448 | ifc* | ifort*) # Intel Fortran compiler |
| 21449 | tmp_addflag=' -nofor_main' ;; |
| 21450 | esac |
| 21451 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21452 | |
| 21453 | if test $supports_anon_versioning = yes; then |
| 21454 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 21455 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 21456 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 21457 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 21458 | fi |
| 21459 | else |
| 21460 | ld_shlibs_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21461 | fi |
| 21462 | ;; |
| 21463 | |
| 21464 | netbsd*) |
| 21465 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 21466 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 21467 | wlarc= |
| 21468 | else |
| 21469 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21470 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21471 | fi |
| 21472 | ;; |
| 21473 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21474 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21475 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 21476 | ld_shlibs_F77=no |
| 21477 | cat <<EOF 1>&2 |
| 21478 | |
| 21479 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 21480 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 21481 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 21482 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 21483 | *** your PATH or compiler configuration so that the native linker is |
| 21484 | *** used, and then restart. |
| 21485 | |
| 21486 | EOF |
| 21487 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21488 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21489 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21490 | else |
| 21491 | ld_shlibs_F77=no |
| 21492 | fi |
| 21493 | ;; |
| 21494 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21495 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 21496 | case `$LD -v 2>&1` in |
| 21497 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 21498 | ld_shlibs_F77=no |
| 21499 | cat <<_LT_EOF 1>&2 |
| 21500 | |
| 21501 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 21502 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 21503 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 21504 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 21505 | *** your PATH or compiler configuration so that the native linker is |
| 21506 | *** used, and then restart. |
| 21507 | |
| 21508 | _LT_EOF |
| 21509 | ;; |
| 21510 | *) |
| 21511 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21512 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 21513 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 21514 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 21515 | else |
| 21516 | ld_shlibs_F77=no |
| 21517 | fi |
| 21518 | ;; |
| 21519 | esac |
| 21520 | ;; |
| 21521 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21522 | sunos4*) |
| 21523 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 21524 | wlarc= |
| 21525 | hardcode_direct_F77=yes |
| 21526 | hardcode_shlibpath_var_F77=no |
| 21527 | ;; |
| 21528 | |
| 21529 | *) |
| 21530 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21531 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21532 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21533 | else |
| 21534 | ld_shlibs_F77=no |
| 21535 | fi |
| 21536 | ;; |
| 21537 | esac |
| 21538 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21539 | if test "$ld_shlibs_F77" = no; then |
| 21540 | runpath_var= |
| 21541 | hardcode_libdir_flag_spec_F77= |
| 21542 | export_dynamic_flag_spec_F77= |
| 21543 | whole_archive_flag_spec_F77= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21544 | fi |
| 21545 | else |
| 21546 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 21547 | case $host_os in |
| 21548 | aix3*) |
| 21549 | allow_undefined_flag_F77=unsupported |
| 21550 | always_export_symbols_F77=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21551 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21552 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 21553 | # are no directories specified by -L. |
| 21554 | hardcode_minus_L_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21555 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21556 | # Neither direct hardcoding nor static linking is supported with a |
| 21557 | # broken collect2. |
| 21558 | hardcode_direct_F77=unsupported |
| 21559 | fi |
| 21560 | ;; |
| 21561 | |
| 21562 | aix4* | aix5*) |
| 21563 | if test "$host_cpu" = ia64; then |
| 21564 | # On IA64, the linker does run time linking by default, so we don't |
| 21565 | # have to do anything special. |
| 21566 | aix_use_runtimelinking=no |
| 21567 | exp_sym_flag='-Bexport' |
| 21568 | no_entry_flag="" |
| 21569 | else |
| 21570 | # If we're using GNU nm, then we don't want the "-C" option. |
| 21571 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 21572 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 21573 | 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' |
| 21574 | else |
| 21575 | 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' |
| 21576 | fi |
| 21577 | aix_use_runtimelinking=no |
| 21578 | |
| 21579 | # Test if we are trying to use run time linking or normal |
| 21580 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 21581 | # need to do runtime linking. |
| 21582 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 21583 | for ld_flag in $LDFLAGS; do |
| 21584 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 21585 | aix_use_runtimelinking=yes |
| 21586 | break |
| 21587 | fi |
| 21588 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21589 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21590 | esac |
| 21591 | |
| 21592 | exp_sym_flag='-bexport' |
| 21593 | no_entry_flag='-bnoentry' |
| 21594 | fi |
| 21595 | |
| 21596 | # When large executables or shared objects are built, AIX ld can |
| 21597 | # have problems creating the table of contents. If linking a library |
| 21598 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 21599 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 21600 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 21601 | |
| 21602 | archive_cmds_F77='' |
| 21603 | hardcode_direct_F77=yes |
| 21604 | hardcode_libdir_separator_F77=':' |
| 21605 | link_all_deplibs_F77=yes |
| 21606 | |
| 21607 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21608 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21609 | # We only want to do this on AIX 4.2 and lower, the check |
| 21610 | # below for broken collect2 doesn't work under 4.3+ |
| 21611 | collect2name=`${CC} -print-prog-name=collect2` |
| 21612 | if test -f "$collect2name" && \ |
| 21613 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 21614 | then |
| 21615 | # We have reworked collect2 |
| 21616 | hardcode_direct_F77=yes |
| 21617 | else |
| 21618 | # We have old collect2 |
| 21619 | hardcode_direct_F77=unsupported |
| 21620 | # It fails to find uninstalled libraries when the uninstalled |
| 21621 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 21622 | # to unsupported forces relinking |
| 21623 | hardcode_minus_L_F77=yes |
| 21624 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21625 | hardcode_libdir_separator_F77= |
| 21626 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21627 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21628 | esac |
| 21629 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21630 | if test "$aix_use_runtimelinking" = yes; then |
| 21631 | shared_flag="$shared_flag "'${wl}-G' |
| 21632 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21633 | else |
| 21634 | # not using gcc |
| 21635 | if test "$host_cpu" = ia64; then |
| 21636 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 21637 | # chokes on -Wl,-G. The following line is correct: |
| 21638 | shared_flag='-G' |
| 21639 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21640 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21641 | shared_flag='${wl}-G' |
| 21642 | else |
| 21643 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21644 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21645 | fi |
| 21646 | fi |
| 21647 | |
| 21648 | # It seems that -bexpall does not export symbols beginning with |
| 21649 | # underscore (_), so it is better to generate a list of symbols to export. |
| 21650 | always_export_symbols_F77=yes |
| 21651 | if test "$aix_use_runtimelinking" = yes; then |
| 21652 | # Warning - without using the other runtime loading flags (-brtl), |
| 21653 | # -berok will link without error, but may produce a broken library. |
| 21654 | allow_undefined_flag_F77='-berok' |
| 21655 | # Determine the default libpath from the value encoded in an empty executable. |
| 21656 | cat >conftest.$ac_ext <<_ACEOF |
| 21657 | program main |
| 21658 | |
| 21659 | end |
| 21660 | _ACEOF |
| 21661 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21662 | if { (ac_try="$ac_link" |
| 21663 | case "(($ac_try" in |
| 21664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21665 | *) ac_try_echo=$ac_try;; |
| 21666 | esac |
| 21667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21668 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21669 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21670 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21671 | rm -f conftest.er1 |
| 21672 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21674 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21675 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 21676 | { (case "(($ac_try" in |
| 21677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21678 | *) ac_try_echo=$ac_try;; |
| 21679 | esac |
| 21680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21681 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21682 | ac_status=$? |
| 21683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21684 | (exit $ac_status); }; } && |
| 21685 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21686 | { (case "(($ac_try" in |
| 21687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21688 | *) ac_try_echo=$ac_try;; |
| 21689 | esac |
| 21690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21691 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21692 | ac_status=$? |
| 21693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21694 | (exit $ac_status); }; }; then |
| 21695 | |
| 21696 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 21697 | }'` |
| 21698 | # Check for a 64-bit object if we didn't find anything. |
| 21699 | 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; } |
| 21700 | }'`; fi |
| 21701 | else |
| 21702 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21704 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21705 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21706 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21707 | |
| 21708 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21709 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21710 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 21711 | |
| 21712 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21713 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21714 | else |
| 21715 | if test "$host_cpu" = ia64; then |
| 21716 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 21717 | allow_undefined_flag_F77="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21718 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21719 | else |
| 21720 | # Determine the default libpath from the value encoded in an empty executable. |
| 21721 | cat >conftest.$ac_ext <<_ACEOF |
| 21722 | program main |
| 21723 | |
| 21724 | end |
| 21725 | _ACEOF |
| 21726 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21727 | if { (ac_try="$ac_link" |
| 21728 | case "(($ac_try" in |
| 21729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21730 | *) ac_try_echo=$ac_try;; |
| 21731 | esac |
| 21732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21733 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21734 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21735 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21736 | rm -f conftest.er1 |
| 21737 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21739 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21740 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 21741 | { (case "(($ac_try" in |
| 21742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21743 | *) ac_try_echo=$ac_try;; |
| 21744 | esac |
| 21745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21746 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21747 | ac_status=$? |
| 21748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21749 | (exit $ac_status); }; } && |
| 21750 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21751 | { (case "(($ac_try" in |
| 21752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21753 | *) ac_try_echo=$ac_try;; |
| 21754 | esac |
| 21755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21756 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21757 | ac_status=$? |
| 21758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21759 | (exit $ac_status); }; }; then |
| 21760 | |
| 21761 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 21762 | }'` |
| 21763 | # Check for a 64-bit object if we didn't find anything. |
| 21764 | 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; } |
| 21765 | }'`; fi |
| 21766 | else |
| 21767 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21769 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21770 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21771 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21772 | |
| 21773 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21774 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21775 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 21776 | |
| 21777 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 21778 | # Warning - without using the other run time loading flags, |
| 21779 | # -berok will link without error, but may produce a broken library. |
| 21780 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 21781 | allow_undefined_flag_F77=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21782 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21783 | whole_archive_flag_spec_F77='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21784 | archive_cmds_need_lc_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21785 | # This is similar to how AIX traditionally builds its shared libraries. |
| 21786 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21787 | fi |
| 21788 | fi |
| 21789 | ;; |
| 21790 | |
| 21791 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21792 | 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)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21793 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21794 | hardcode_minus_L_F77=yes |
| 21795 | # see comment about different semantics on the GNU ld section |
| 21796 | ld_shlibs_F77=no |
| 21797 | ;; |
| 21798 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21799 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21800 | export_dynamic_flag_spec_F77=-rdynamic |
| 21801 | ;; |
| 21802 | |
| 21803 | cygwin* | mingw* | pw32*) |
| 21804 | # When not using gcc, we currently assume that we are using |
| 21805 | # Microsoft Visual C++. |
| 21806 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 21807 | # no search path for DLLs. |
| 21808 | hardcode_libdir_flag_spec_F77=' ' |
| 21809 | allow_undefined_flag_F77=unsupported |
| 21810 | # Tell ltmain to make .lib files, not .a files. |
| 21811 | libext=lib |
| 21812 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21813 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21814 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21815 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21816 | # The linker will automatically build a .lib file if we build a DLL. |
| 21817 | old_archive_From_new_cmds_F77='true' |
| 21818 | # FIXME: Should let the user specify the lib program. |
| 21819 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21820 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21821 | enable_shared_with_static_runtimes_F77=yes |
| 21822 | ;; |
| 21823 | |
| 21824 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21825 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21826 | rhapsody* | darwin1.[012]) |
| 21827 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 21828 | ;; |
| 21829 | *) # Darwin 1.3 on |
| 21830 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 21831 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 21832 | else |
| 21833 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 21834 | 10.[012]) |
| 21835 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 21836 | ;; |
| 21837 | 10.*) |
| 21838 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 21839 | ;; |
| 21840 | esac |
| 21841 | fi |
| 21842 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21843 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21844 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21845 | hardcode_direct_F77=no |
| 21846 | hardcode_automatic_F77=yes |
| 21847 | hardcode_shlibpath_var_F77=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21848 | whole_archive_flag_spec_F77='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21849 | link_all_deplibs_F77=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21850 | if test "$GCC" = yes ; then |
| 21851 | output_verbose_link_cmd='echo' |
| 21852 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 21853 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21854 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21855 | archive_expsym_cmds_F77='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}' |
| 21856 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21857 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21858 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21859 | xlc*) |
| 21860 | output_verbose_link_cmd='echo' |
| 21861 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 21862 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21863 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21864 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 21865 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21866 | ;; |
| 21867 | *) |
| 21868 | ld_shlibs_F77=no |
| 21869 | ;; |
| 21870 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21871 | fi |
| 21872 | ;; |
| 21873 | |
| 21874 | dgux*) |
| 21875 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 21876 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21877 | hardcode_shlibpath_var_F77=no |
| 21878 | ;; |
| 21879 | |
| 21880 | freebsd1*) |
| 21881 | ld_shlibs_F77=no |
| 21882 | ;; |
| 21883 | |
| 21884 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 21885 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 21886 | # does not break anything, and helps significantly (at the cost of a little |
| 21887 | # extra space). |
| 21888 | freebsd2.2*) |
| 21889 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 21890 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 21891 | hardcode_direct_F77=yes |
| 21892 | hardcode_shlibpath_var_F77=no |
| 21893 | ;; |
| 21894 | |
| 21895 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 21896 | freebsd2*) |
| 21897 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 21898 | hardcode_direct_F77=yes |
| 21899 | hardcode_minus_L_F77=yes |
| 21900 | hardcode_shlibpath_var_F77=no |
| 21901 | ;; |
| 21902 | |
| 21903 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21904 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21905 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 21906 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 21907 | hardcode_direct_F77=yes |
| 21908 | hardcode_shlibpath_var_F77=no |
| 21909 | ;; |
| 21910 | |
| 21911 | hpux9*) |
| 21912 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21913 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21914 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21915 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21916 | fi |
| 21917 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 21918 | hardcode_libdir_separator_F77=: |
| 21919 | hardcode_direct_F77=yes |
| 21920 | |
| 21921 | # hardcode_minus_L: Not really in the search PATH, |
| 21922 | # but as the default location of the library. |
| 21923 | hardcode_minus_L_F77=yes |
| 21924 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21925 | ;; |
| 21926 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21927 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21928 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21929 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 21930 | else |
| 21931 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 21932 | fi |
| 21933 | if test "$with_gnu_ld" = no; then |
| 21934 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 21935 | hardcode_libdir_separator_F77=: |
| 21936 | |
| 21937 | hardcode_direct_F77=yes |
| 21938 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21939 | |
| 21940 | # hardcode_minus_L: Not really in the search PATH, |
| 21941 | # but as the default location of the library. |
| 21942 | hardcode_minus_L_F77=yes |
| 21943 | fi |
| 21944 | ;; |
| 21945 | |
| 21946 | hpux11*) |
| 21947 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 21948 | case $host_cpu in |
| 21949 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21950 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 21951 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21952 | ia64*) |
| 21953 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 21954 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21955 | *) |
| 21956 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 21957 | ;; |
| 21958 | esac |
| 21959 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21960 | case $host_cpu in |
| 21961 | hppa*64*) |
| 21962 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 21963 | ;; |
| 21964 | ia64*) |
| 21965 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21966 | ;; |
| 21967 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21968 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21969 | ;; |
| 21970 | esac |
| 21971 | fi |
| 21972 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21973 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 21974 | hardcode_libdir_separator_F77=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21975 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21976 | case $host_cpu in |
| 21977 | hppa*64*|ia64*) |
| 21978 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 21979 | hardcode_direct_F77=no |
| 21980 | hardcode_shlibpath_var_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21981 | ;; |
| 21982 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21983 | hardcode_direct_F77=yes |
| 21984 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21985 | |
| 21986 | # hardcode_minus_L: Not really in the search PATH, |
| 21987 | # but as the default location of the library. |
| 21988 | hardcode_minus_L_F77=yes |
| 21989 | ;; |
| 21990 | esac |
| 21991 | fi |
| 21992 | ;; |
| 21993 | |
| 21994 | irix5* | irix6* | nonstopux*) |
| 21995 | if test "$GCC" = yes; then |
| 21996 | 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' |
| 21997 | else |
| 21998 | 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' |
| 21999 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 22000 | fi |
| 22001 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22002 | hardcode_libdir_separator_F77=: |
| 22003 | link_all_deplibs_F77=yes |
| 22004 | ;; |
| 22005 | |
| 22006 | netbsd*) |
| 22007 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22008 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 22009 | else |
| 22010 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 22011 | fi |
| 22012 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22013 | hardcode_direct_F77=yes |
| 22014 | hardcode_shlibpath_var_F77=no |
| 22015 | ;; |
| 22016 | |
| 22017 | newsos6) |
| 22018 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22019 | hardcode_direct_F77=yes |
| 22020 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22021 | hardcode_libdir_separator_F77=: |
| 22022 | hardcode_shlibpath_var_F77=no |
| 22023 | ;; |
| 22024 | |
| 22025 | openbsd*) |
| 22026 | hardcode_direct_F77=yes |
| 22027 | hardcode_shlibpath_var_F77=no |
| 22028 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22029 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22030 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22031 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22032 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22033 | else |
| 22034 | case $host_os in |
| 22035 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 22036 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22037 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22038 | ;; |
| 22039 | *) |
| 22040 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 22041 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22042 | ;; |
| 22043 | esac |
| 22044 | fi |
| 22045 | ;; |
| 22046 | |
| 22047 | os2*) |
| 22048 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22049 | hardcode_minus_L_F77=yes |
| 22050 | allow_undefined_flag_F77=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22051 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22052 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 22053 | ;; |
| 22054 | |
| 22055 | osf3*) |
| 22056 | if test "$GCC" = yes; then |
| 22057 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22058 | 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' |
| 22059 | else |
| 22060 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22061 | 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' |
| 22062 | fi |
| 22063 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22064 | hardcode_libdir_separator_F77=: |
| 22065 | ;; |
| 22066 | |
| 22067 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 22068 | if test "$GCC" = yes; then |
| 22069 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22070 | 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' |
| 22071 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22072 | else |
| 22073 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22074 | 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' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22075 | 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~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22076 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22077 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22078 | # Both c and cxx compiler support -rpath directly |
| 22079 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 22080 | fi |
| 22081 | hardcode_libdir_separator_F77=: |
| 22082 | ;; |
| 22083 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22084 | solaris*) |
| 22085 | no_undefined_flag_F77=' -z text' |
| 22086 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22087 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22088 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22089 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22090 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22091 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22092 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22093 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22094 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22095 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22096 | fi |
| 22097 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22098 | hardcode_shlibpath_var_F77=no |
| 22099 | case $host_os in |
| 22100 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22101 | *) |
| 22102 | # The compiler driver will combine linker options so we |
| 22103 | # cannot just pass the convience library names through |
| 22104 | # without $wl, iff we do not link with $LD. |
| 22105 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 22106 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 22107 | case $wlarc in |
| 22108 | '') |
| 22109 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 22110 | *) |
| 22111 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
| 22112 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22113 | esac |
| 22114 | link_all_deplibs_F77=yes |
| 22115 | ;; |
| 22116 | |
| 22117 | sunos4*) |
| 22118 | if test "x$host_vendor" = xsequent; then |
| 22119 | # Use $CC to link under sequent, because it throws in some extra .o |
| 22120 | # files that make .init and .fini sections work. |
| 22121 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22122 | else |
| 22123 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 22124 | fi |
| 22125 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22126 | hardcode_direct_F77=yes |
| 22127 | hardcode_minus_L_F77=yes |
| 22128 | hardcode_shlibpath_var_F77=no |
| 22129 | ;; |
| 22130 | |
| 22131 | sysv4) |
| 22132 | case $host_vendor in |
| 22133 | sni) |
| 22134 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22135 | hardcode_direct_F77=yes # is this really true??? |
| 22136 | ;; |
| 22137 | siemens) |
| 22138 | ## LD is ld it makes a PLAMLIB |
| 22139 | ## CC just makes a GrossModule. |
| 22140 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 22141 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 22142 | hardcode_direct_F77=no |
| 22143 | ;; |
| 22144 | motorola) |
| 22145 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22146 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 22147 | ;; |
| 22148 | esac |
| 22149 | runpath_var='LD_RUN_PATH' |
| 22150 | hardcode_shlibpath_var_F77=no |
| 22151 | ;; |
| 22152 | |
| 22153 | sysv4.3*) |
| 22154 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22155 | hardcode_shlibpath_var_F77=no |
| 22156 | export_dynamic_flag_spec_F77='-Bexport' |
| 22157 | ;; |
| 22158 | |
| 22159 | sysv4*MP*) |
| 22160 | if test -d /usr/nec; then |
| 22161 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22162 | hardcode_shlibpath_var_F77=no |
| 22163 | runpath_var=LD_RUN_PATH |
| 22164 | hardcode_runpath_var=yes |
| 22165 | ld_shlibs_F77=yes |
| 22166 | fi |
| 22167 | ;; |
| 22168 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22169 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 22170 | no_undefined_flag_F77='${wl}-z,text' |
| 22171 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22172 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22173 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22174 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22175 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22176 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22177 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22178 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22179 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22180 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22181 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22182 | ;; |
| 22183 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22184 | sysv5* | sco3.2v5* | sco5v6*) |
| 22185 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 22186 | # link with -lc, and that would cause any symbols used from libc to |
| 22187 | # always be unresolved, which means just about no library would |
| 22188 | # ever link correctly. If we're not using GNU ld we use -z text |
| 22189 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 22190 | # as -z defs. |
| 22191 | no_undefined_flag_F77='${wl}-z,text' |
| 22192 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| 22193 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22194 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22195 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 22196 | hardcode_libdir_separator_F77=':' |
| 22197 | link_all_deplibs_F77=yes |
| 22198 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22199 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22200 | |
| 22201 | if test "$GCC" = yes; then |
| 22202 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22203 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22204 | else |
| 22205 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22206 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22207 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22208 | ;; |
| 22209 | |
| 22210 | uts4*) |
| 22211 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22212 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22213 | hardcode_shlibpath_var_F77=no |
| 22214 | ;; |
| 22215 | |
| 22216 | *) |
| 22217 | ld_shlibs_F77=no |
| 22218 | ;; |
| 22219 | esac |
| 22220 | fi |
| 22221 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22222 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 22223 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22224 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 22225 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22226 | # |
| 22227 | # Do we need to explicitly link libc? |
| 22228 | # |
| 22229 | case "x$archive_cmds_need_lc_F77" in |
| 22230 | x|xyes) |
| 22231 | # Assume -lc should be added |
| 22232 | archive_cmds_need_lc_F77=yes |
| 22233 | |
| 22234 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 22235 | case $archive_cmds_F77 in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22236 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22237 | # FIXME: we may have to deal with multi-command sequences. |
| 22238 | ;; |
| 22239 | '$CC '*) |
| 22240 | # Test whether the compiler implicitly links with -lc since on some |
| 22241 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 22242 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22243 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 22244 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22245 | $rm conftest* |
| 22246 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 22247 | |
| 22248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22249 | (eval $ac_compile) 2>&5 |
| 22250 | ac_status=$? |
| 22251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22252 | (exit $ac_status); } 2>conftest.err; then |
| 22253 | soname=conftest |
| 22254 | lib=conftest |
| 22255 | libobjs=conftest.$ac_objext |
| 22256 | deplibs= |
| 22257 | wl=$lt_prog_compiler_wl_F77 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22258 | pic_flag=$lt_prog_compiler_pic_F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22259 | compiler_flags=-v |
| 22260 | linker_flags=-v |
| 22261 | verstring= |
| 22262 | output_objdir=. |
| 22263 | libname=conftest |
| 22264 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 22265 | allow_undefined_flag_F77= |
| 22266 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 22267 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 22268 | ac_status=$? |
| 22269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22270 | (exit $ac_status); } |
| 22271 | then |
| 22272 | archive_cmds_need_lc_F77=no |
| 22273 | else |
| 22274 | archive_cmds_need_lc_F77=yes |
| 22275 | fi |
| 22276 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 22277 | else |
| 22278 | cat conftest.err 1>&5 |
| 22279 | fi |
| 22280 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22281 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 22282 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22283 | ;; |
| 22284 | esac |
| 22285 | fi |
| 22286 | ;; |
| 22287 | esac |
| 22288 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22289 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 22290 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22291 | library_names_spec= |
| 22292 | libname_spec='lib$name' |
| 22293 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22294 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22295 | postinstall_cmds= |
| 22296 | postuninstall_cmds= |
| 22297 | finish_cmds= |
| 22298 | finish_eval= |
| 22299 | shlibpath_var= |
| 22300 | shlibpath_overrides_runpath=unknown |
| 22301 | version_type=none |
| 22302 | dynamic_linker="$host_os ld.so" |
| 22303 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 22304 | if test "$GCC" = yes; then |
| 22305 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22306 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 22307 | # if the path contains ";" then we assume it to be the separator |
| 22308 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 22309 | # assumed that no part of a normal pathname contains ";" but that should |
| 22310 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 22311 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22312 | else |
| 22313 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22314 | fi |
| 22315 | else |
| 22316 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 22317 | fi |
| 22318 | need_lib_prefix=unknown |
| 22319 | hardcode_into_libs=no |
| 22320 | |
| 22321 | # when you set need_version to no, make sure it does not cause -set_version |
| 22322 | # flags to be left without arguments |
| 22323 | need_version=unknown |
| 22324 | |
| 22325 | case $host_os in |
| 22326 | aix3*) |
| 22327 | version_type=linux |
| 22328 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 22329 | shlibpath_var=LIBPATH |
| 22330 | |
| 22331 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 22332 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22333 | ;; |
| 22334 | |
| 22335 | aix4* | aix5*) |
| 22336 | version_type=linux |
| 22337 | need_lib_prefix=no |
| 22338 | need_version=no |
| 22339 | hardcode_into_libs=yes |
| 22340 | if test "$host_cpu" = ia64; then |
| 22341 | # AIX 5 supports IA64 |
| 22342 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 22343 | shlibpath_var=LD_LIBRARY_PATH |
| 22344 | else |
| 22345 | # With GCC up to 2.95.x, collect2 would create an import file |
| 22346 | # for dependence libraries. The import file would start with |
| 22347 | # the line `#! .'. This would cause the generated library to |
| 22348 | # depend on `.', always an invalid library. This was fixed in |
| 22349 | # development snapshots of GCC prior to 3.0. |
| 22350 | case $host_os in |
| 22351 | aix4 | aix4.[01] | aix4.[01].*) |
| 22352 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 22353 | echo ' yes ' |
| 22354 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 22355 | : |
| 22356 | else |
| 22357 | can_build_shared=no |
| 22358 | fi |
| 22359 | ;; |
| 22360 | esac |
| 22361 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 22362 | # soname into executable. Probably we can add versioning support to |
| 22363 | # collect2, so additional links can be useful in future. |
| 22364 | if test "$aix_use_runtimelinking" = yes; then |
| 22365 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 22366 | # instead of lib<name>.a to let people know that these are not |
| 22367 | # typical AIX shared libraries. |
| 22368 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22369 | else |
| 22370 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 22371 | # and later when we are not doing run time linking. |
| 22372 | library_names_spec='${libname}${release}.a $libname.a' |
| 22373 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22374 | fi |
| 22375 | shlibpath_var=LIBPATH |
| 22376 | fi |
| 22377 | ;; |
| 22378 | |
| 22379 | amigaos*) |
| 22380 | library_names_spec='$libname.ixlibrary $libname.a' |
| 22381 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22382 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22383 | ;; |
| 22384 | |
| 22385 | beos*) |
| 22386 | library_names_spec='${libname}${shared_ext}' |
| 22387 | dynamic_linker="$host_os ld.so" |
| 22388 | shlibpath_var=LIBRARY_PATH |
| 22389 | ;; |
| 22390 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22391 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22392 | version_type=linux |
| 22393 | need_version=no |
| 22394 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22395 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22396 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 22397 | shlibpath_var=LD_LIBRARY_PATH |
| 22398 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 22399 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 22400 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 22401 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 22402 | # libtool to hard-code these into programs |
| 22403 | ;; |
| 22404 | |
| 22405 | cygwin* | mingw* | pw32*) |
| 22406 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22407 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22408 | need_version=no |
| 22409 | need_lib_prefix=no |
| 22410 | |
| 22411 | case $GCC,$host_os in |
| 22412 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 22413 | library_names_spec='$libname.dll.a' |
| 22414 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22415 | postinstall_cmds='base_file=`basename \${file}`~ |
| 22416 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 22417 | dldir=$destdir/`dirname \$dlpath`~ |
| 22418 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22419 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 22420 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22421 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 22422 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22423 | $rm \$dlpath' |
| 22424 | shlibpath_overrides_runpath=yes |
| 22425 | |
| 22426 | case $host_os in |
| 22427 | cygwin*) |
| 22428 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 22429 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22430 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22431 | ;; |
| 22432 | mingw*) |
| 22433 | # MinGW DLLs use traditional 'lib' prefix |
| 22434 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 22435 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22436 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 22437 | # It is most probably a Windows format PATH printed by |
| 22438 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 22439 | # path with ; separators, and with drive letters. We can handle the |
| 22440 | # drive letters (cygwin fileutils understands them), so leave them, |
| 22441 | # especially as we might pass files found there to a mingw objdump, |
| 22442 | # which wouldn't understand a cygwinified path. Ahh. |
| 22443 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22444 | else |
| 22445 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22446 | fi |
| 22447 | ;; |
| 22448 | pw32*) |
| 22449 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22450 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22451 | ;; |
| 22452 | esac |
| 22453 | ;; |
| 22454 | |
| 22455 | *) |
| 22456 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 22457 | ;; |
| 22458 | esac |
| 22459 | dynamic_linker='Win32 ld.exe' |
| 22460 | # FIXME: first we should search . and the directory the executable is in |
| 22461 | shlibpath_var=PATH |
| 22462 | ;; |
| 22463 | |
| 22464 | darwin* | rhapsody*) |
| 22465 | dynamic_linker="$host_os dyld" |
| 22466 | version_type=darwin |
| 22467 | need_lib_prefix=no |
| 22468 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22469 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22470 | soname_spec='${libname}${release}${major}$shared_ext' |
| 22471 | shlibpath_overrides_runpath=yes |
| 22472 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22473 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22474 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22475 | if test "$GCC" = yes; then |
| 22476 | 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"` |
| 22477 | else |
| 22478 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22479 | fi |
| 22480 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 22481 | ;; |
| 22482 | |
| 22483 | dgux*) |
| 22484 | version_type=linux |
| 22485 | need_lib_prefix=no |
| 22486 | need_version=no |
| 22487 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 22488 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22489 | shlibpath_var=LD_LIBRARY_PATH |
| 22490 | ;; |
| 22491 | |
| 22492 | freebsd1*) |
| 22493 | dynamic_linker=no |
| 22494 | ;; |
| 22495 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22496 | kfreebsd*-gnu) |
| 22497 | version_type=linux |
| 22498 | need_lib_prefix=no |
| 22499 | need_version=no |
| 22500 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22501 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22502 | shlibpath_var=LD_LIBRARY_PATH |
| 22503 | shlibpath_overrides_runpath=no |
| 22504 | hardcode_into_libs=yes |
| 22505 | dynamic_linker='GNU ld.so' |
| 22506 | ;; |
| 22507 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22508 | freebsd* | dragonfly*) |
| 22509 | # DragonFly does not have aout. When/if they implement a new |
| 22510 | # versioning mechanism, adjust this. |
| 22511 | if test -x /usr/bin/objformat; then |
| 22512 | objformat=`/usr/bin/objformat` |
| 22513 | else |
| 22514 | case $host_os in |
| 22515 | freebsd[123]*) objformat=aout ;; |
| 22516 | *) objformat=elf ;; |
| 22517 | esac |
| 22518 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22519 | version_type=freebsd-$objformat |
| 22520 | case $version_type in |
| 22521 | freebsd-elf*) |
| 22522 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22523 | need_version=no |
| 22524 | need_lib_prefix=no |
| 22525 | ;; |
| 22526 | freebsd-*) |
| 22527 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 22528 | need_version=yes |
| 22529 | ;; |
| 22530 | esac |
| 22531 | shlibpath_var=LD_LIBRARY_PATH |
| 22532 | case $host_os in |
| 22533 | freebsd2*) |
| 22534 | shlibpath_overrides_runpath=yes |
| 22535 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22536 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22537 | shlibpath_overrides_runpath=yes |
| 22538 | hardcode_into_libs=yes |
| 22539 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22540 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 22541 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22542 | shlibpath_overrides_runpath=no |
| 22543 | hardcode_into_libs=yes |
| 22544 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22545 | freebsd*) # from 4.6 on |
| 22546 | shlibpath_overrides_runpath=yes |
| 22547 | hardcode_into_libs=yes |
| 22548 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22549 | esac |
| 22550 | ;; |
| 22551 | |
| 22552 | gnu*) |
| 22553 | version_type=linux |
| 22554 | need_lib_prefix=no |
| 22555 | need_version=no |
| 22556 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 22557 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22558 | shlibpath_var=LD_LIBRARY_PATH |
| 22559 | hardcode_into_libs=yes |
| 22560 | ;; |
| 22561 | |
| 22562 | hpux9* | hpux10* | hpux11*) |
| 22563 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 22564 | # link against other versions. |
| 22565 | version_type=sunos |
| 22566 | need_lib_prefix=no |
| 22567 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22568 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22569 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22570 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22571 | hardcode_into_libs=yes |
| 22572 | dynamic_linker="$host_os dld.so" |
| 22573 | shlibpath_var=LD_LIBRARY_PATH |
| 22574 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 22575 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22576 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22577 | if test "X$HPUX_IA64_MODE" = X32; then |
| 22578 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 22579 | else |
| 22580 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 22581 | fi |
| 22582 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 22583 | ;; |
| 22584 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22585 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22586 | hardcode_into_libs=yes |
| 22587 | dynamic_linker="$host_os dld.sl" |
| 22588 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 22589 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 22590 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22591 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22592 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 22593 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 22594 | ;; |
| 22595 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22596 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22597 | dynamic_linker="$host_os dld.sl" |
| 22598 | shlibpath_var=SHLIB_PATH |
| 22599 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 22600 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22601 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22602 | ;; |
| 22603 | esac |
| 22604 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 22605 | postinstall_cmds='chmod 555 $lib' |
| 22606 | ;; |
| 22607 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22608 | interix3*) |
| 22609 | version_type=linux |
| 22610 | need_lib_prefix=no |
| 22611 | need_version=no |
| 22612 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22613 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22614 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 22615 | shlibpath_var=LD_LIBRARY_PATH |
| 22616 | shlibpath_overrides_runpath=no |
| 22617 | hardcode_into_libs=yes |
| 22618 | ;; |
| 22619 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22620 | irix5* | irix6* | nonstopux*) |
| 22621 | case $host_os in |
| 22622 | nonstopux*) version_type=nonstopux ;; |
| 22623 | *) |
| 22624 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 22625 | version_type=linux |
| 22626 | else |
| 22627 | version_type=irix |
| 22628 | fi ;; |
| 22629 | esac |
| 22630 | need_lib_prefix=no |
| 22631 | need_version=no |
| 22632 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22633 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22634 | case $host_os in |
| 22635 | irix5* | nonstopux*) |
| 22636 | libsuff= shlibsuff= |
| 22637 | ;; |
| 22638 | *) |
| 22639 | case $LD in # libtool.m4 will add one of these switches to LD |
| 22640 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 22641 | libsuff= shlibsuff= libmagic=32-bit;; |
| 22642 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 22643 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 22644 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 22645 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 22646 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 22647 | esac |
| 22648 | ;; |
| 22649 | esac |
| 22650 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 22651 | shlibpath_overrides_runpath=no |
| 22652 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 22653 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 22654 | hardcode_into_libs=yes |
| 22655 | ;; |
| 22656 | |
| 22657 | # No shared lib support for Linux oldld, aout, or coff. |
| 22658 | linux*oldld* | linux*aout* | linux*coff*) |
| 22659 | dynamic_linker=no |
| 22660 | ;; |
| 22661 | |
| 22662 | # This must be Linux ELF. |
| 22663 | linux*) |
| 22664 | version_type=linux |
| 22665 | need_lib_prefix=no |
| 22666 | need_version=no |
| 22667 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22668 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22669 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 22670 | shlibpath_var=LD_LIBRARY_PATH |
| 22671 | shlibpath_overrides_runpath=no |
| 22672 | # This implies no fast_install, which is unacceptable. |
| 22673 | # Some rework will be needed to allow for fast_install |
| 22674 | # before this can be enabled. |
| 22675 | hardcode_into_libs=yes |
| 22676 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22677 | # Append ld.so.conf contents to the search path |
| 22678 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22679 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22680 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 22681 | fi |
| 22682 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22683 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 22684 | # powerpc, because MkLinux only supported shared libraries with the |
| 22685 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 22686 | # most powerpc-linux boxes support dynamic linking these days and |
| 22687 | # people can always --disable-shared, the test was removed, and we |
| 22688 | # assume the GNU/Linux dynamic linker is in use. |
| 22689 | dynamic_linker='GNU/Linux ld.so' |
| 22690 | ;; |
| 22691 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22692 | knetbsd*-gnu) |
| 22693 | version_type=linux |
| 22694 | need_lib_prefix=no |
| 22695 | need_version=no |
| 22696 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22697 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22698 | shlibpath_var=LD_LIBRARY_PATH |
| 22699 | shlibpath_overrides_runpath=no |
| 22700 | hardcode_into_libs=yes |
| 22701 | dynamic_linker='GNU ld.so' |
| 22702 | ;; |
| 22703 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22704 | netbsd*) |
| 22705 | version_type=sunos |
| 22706 | need_lib_prefix=no |
| 22707 | need_version=no |
| 22708 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22709 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22710 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 22711 | dynamic_linker='NetBSD (a.out) ld.so' |
| 22712 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22713 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22714 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22715 | dynamic_linker='NetBSD ld.elf_so' |
| 22716 | fi |
| 22717 | shlibpath_var=LD_LIBRARY_PATH |
| 22718 | shlibpath_overrides_runpath=yes |
| 22719 | hardcode_into_libs=yes |
| 22720 | ;; |
| 22721 | |
| 22722 | newsos6) |
| 22723 | version_type=linux |
| 22724 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22725 | shlibpath_var=LD_LIBRARY_PATH |
| 22726 | shlibpath_overrides_runpath=yes |
| 22727 | ;; |
| 22728 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22729 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22730 | version_type=linux |
| 22731 | need_lib_prefix=no |
| 22732 | need_version=no |
| 22733 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22734 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22735 | shlibpath_var=LD_LIBRARY_PATH |
| 22736 | shlibpath_overrides_runpath=yes |
| 22737 | ;; |
| 22738 | |
| 22739 | openbsd*) |
| 22740 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22741 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22742 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22743 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 22744 | case $host_os in |
| 22745 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 22746 | *) need_version=no ;; |
| 22747 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22748 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22749 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 22750 | shlibpath_var=LD_LIBRARY_PATH |
| 22751 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22752 | case $host_os in |
| 22753 | openbsd2.[89] | openbsd2.[89].*) |
| 22754 | shlibpath_overrides_runpath=no |
| 22755 | ;; |
| 22756 | *) |
| 22757 | shlibpath_overrides_runpath=yes |
| 22758 | ;; |
| 22759 | esac |
| 22760 | else |
| 22761 | shlibpath_overrides_runpath=yes |
| 22762 | fi |
| 22763 | ;; |
| 22764 | |
| 22765 | os2*) |
| 22766 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22767 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22768 | need_lib_prefix=no |
| 22769 | library_names_spec='$libname${shared_ext} $libname.a' |
| 22770 | dynamic_linker='OS/2 ld.exe' |
| 22771 | shlibpath_var=LIBPATH |
| 22772 | ;; |
| 22773 | |
| 22774 | osf3* | osf4* | osf5*) |
| 22775 | version_type=osf |
| 22776 | need_lib_prefix=no |
| 22777 | need_version=no |
| 22778 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22780 | shlibpath_var=LD_LIBRARY_PATH |
| 22781 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 22782 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 22783 | ;; |
| 22784 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22785 | solaris*) |
| 22786 | version_type=linux |
| 22787 | need_lib_prefix=no |
| 22788 | need_version=no |
| 22789 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22790 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22791 | shlibpath_var=LD_LIBRARY_PATH |
| 22792 | shlibpath_overrides_runpath=yes |
| 22793 | hardcode_into_libs=yes |
| 22794 | # ldd complains unless libraries are executable |
| 22795 | postinstall_cmds='chmod +x $lib' |
| 22796 | ;; |
| 22797 | |
| 22798 | sunos4*) |
| 22799 | version_type=sunos |
| 22800 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22801 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 22802 | shlibpath_var=LD_LIBRARY_PATH |
| 22803 | shlibpath_overrides_runpath=yes |
| 22804 | if test "$with_gnu_ld" = yes; then |
| 22805 | need_lib_prefix=no |
| 22806 | fi |
| 22807 | need_version=yes |
| 22808 | ;; |
| 22809 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22810 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22811 | version_type=linux |
| 22812 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22813 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22814 | shlibpath_var=LD_LIBRARY_PATH |
| 22815 | case $host_vendor in |
| 22816 | sni) |
| 22817 | shlibpath_overrides_runpath=no |
| 22818 | need_lib_prefix=no |
| 22819 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 22820 | runpath_var=LD_RUN_PATH |
| 22821 | ;; |
| 22822 | siemens) |
| 22823 | need_lib_prefix=no |
| 22824 | ;; |
| 22825 | motorola) |
| 22826 | need_lib_prefix=no |
| 22827 | need_version=no |
| 22828 | shlibpath_overrides_runpath=no |
| 22829 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 22830 | ;; |
| 22831 | esac |
| 22832 | ;; |
| 22833 | |
| 22834 | sysv4*MP*) |
| 22835 | if test -d /usr/nec ;then |
| 22836 | version_type=linux |
| 22837 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 22838 | soname_spec='$libname${shared_ext}.$major' |
| 22839 | shlibpath_var=LD_LIBRARY_PATH |
| 22840 | fi |
| 22841 | ;; |
| 22842 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22843 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 22844 | version_type=freebsd-elf |
| 22845 | need_lib_prefix=no |
| 22846 | need_version=no |
| 22847 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22848 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22849 | shlibpath_var=LD_LIBRARY_PATH |
| 22850 | hardcode_into_libs=yes |
| 22851 | if test "$with_gnu_ld" = yes; then |
| 22852 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 22853 | shlibpath_overrides_runpath=no |
| 22854 | else |
| 22855 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 22856 | shlibpath_overrides_runpath=yes |
| 22857 | case $host_os in |
| 22858 | sco3.2v5*) |
| 22859 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 22860 | ;; |
| 22861 | esac |
| 22862 | fi |
| 22863 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 22864 | ;; |
| 22865 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22866 | uts4*) |
| 22867 | version_type=linux |
| 22868 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22869 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22870 | shlibpath_var=LD_LIBRARY_PATH |
| 22871 | ;; |
| 22872 | |
| 22873 | *) |
| 22874 | dynamic_linker=no |
| 22875 | ;; |
| 22876 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22877 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 22878 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22879 | test "$dynamic_linker" = no && can_build_shared=no |
| 22880 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22881 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 22882 | if test "$GCC" = yes; then |
| 22883 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 22884 | fi |
| 22885 | |
| 22886 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 22887 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22888 | hardcode_action_F77= |
| 22889 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 22890 | test -n "$runpath_var_F77" || \ |
| 22891 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 22892 | |
| 22893 | # We can hardcode non-existant directories. |
| 22894 | if test "$hardcode_direct_F77" != no && |
| 22895 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 22896 | # have to relink, otherwise we might link with an installed library |
| 22897 | # when we should be linking with a yet-to-be-installed one |
| 22898 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 22899 | test "$hardcode_minus_L_F77" != no; then |
| 22900 | # Linking always hardcodes the temporary library directory. |
| 22901 | hardcode_action_F77=relink |
| 22902 | else |
| 22903 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 22904 | hardcode_action_F77=immediate |
| 22905 | fi |
| 22906 | else |
| 22907 | # We cannot hardcode anything, or else we can only hardcode existing |
| 22908 | # directories. |
| 22909 | hardcode_action_F77=unsupported |
| 22910 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22911 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 22912 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22913 | |
| 22914 | if test "$hardcode_action_F77" = relink; then |
| 22915 | # Fast installation is not supported |
| 22916 | enable_fast_install=no |
| 22917 | elif test "$shlibpath_overrides_runpath" = yes || |
| 22918 | test "$enable_shared" = no; then |
| 22919 | # Fast installation is not necessary |
| 22920 | enable_fast_install=needless |
| 22921 | fi |
| 22922 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22923 | |
| 22924 | # The else clause should only fire when bootstrapping the |
| 22925 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 22926 | # with your package, and you will get complaints that there are |
| 22927 | # no rules to generate ltmain.sh. |
| 22928 | if test -f "$ltmain"; then |
| 22929 | # See if we are running on zsh, and set the options which allow our commands through |
| 22930 | # without removal of \ escapes. |
| 22931 | if test -n "${ZSH_VERSION+set}" ; then |
| 22932 | setopt NO_GLOB_SUBST |
| 22933 | fi |
| 22934 | # Now quote all the things that may contain metacharacters while being |
| 22935 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 22936 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22937 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22938 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22939 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 22940 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 22941 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 22942 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 22943 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 22944 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 22945 | old_postinstall_cmds old_postuninstall_cmds \ |
| 22946 | compiler_F77 \ |
| 22947 | CC_F77 \ |
| 22948 | LD_F77 \ |
| 22949 | lt_prog_compiler_wl_F77 \ |
| 22950 | lt_prog_compiler_pic_F77 \ |
| 22951 | lt_prog_compiler_static_F77 \ |
| 22952 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 22953 | export_dynamic_flag_spec_F77 \ |
| 22954 | thread_safe_flag_spec_F77 \ |
| 22955 | whole_archive_flag_spec_F77 \ |
| 22956 | enable_shared_with_static_runtimes_F77 \ |
| 22957 | old_archive_cmds_F77 \ |
| 22958 | old_archive_from_new_cmds_F77 \ |
| 22959 | predep_objects_F77 \ |
| 22960 | postdep_objects_F77 \ |
| 22961 | predeps_F77 \ |
| 22962 | postdeps_F77 \ |
| 22963 | compiler_lib_search_path_F77 \ |
| 22964 | archive_cmds_F77 \ |
| 22965 | archive_expsym_cmds_F77 \ |
| 22966 | postinstall_cmds_F77 \ |
| 22967 | postuninstall_cmds_F77 \ |
| 22968 | old_archive_from_expsyms_cmds_F77 \ |
| 22969 | allow_undefined_flag_F77 \ |
| 22970 | no_undefined_flag_F77 \ |
| 22971 | export_symbols_cmds_F77 \ |
| 22972 | hardcode_libdir_flag_spec_F77 \ |
| 22973 | hardcode_libdir_flag_spec_ld_F77 \ |
| 22974 | hardcode_libdir_separator_F77 \ |
| 22975 | hardcode_automatic_F77 \ |
| 22976 | module_cmds_F77 \ |
| 22977 | module_expsym_cmds_F77 \ |
| 22978 | lt_cv_prog_compiler_c_o_F77 \ |
| 22979 | exclude_expsyms_F77 \ |
| 22980 | include_expsyms_F77; do |
| 22981 | |
| 22982 | case $var in |
| 22983 | old_archive_cmds_F77 | \ |
| 22984 | old_archive_from_new_cmds_F77 | \ |
| 22985 | archive_cmds_F77 | \ |
| 22986 | archive_expsym_cmds_F77 | \ |
| 22987 | module_cmds_F77 | \ |
| 22988 | module_expsym_cmds_F77 | \ |
| 22989 | old_archive_from_expsyms_cmds_F77 | \ |
| 22990 | export_symbols_cmds_F77 | \ |
| 22991 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 22992 | postinstall_cmds | postuninstall_cmds | \ |
| 22993 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 22994 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 22995 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22996 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22997 | ;; |
| 22998 | *) |
| 22999 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 23000 | ;; |
| 23001 | esac |
| 23002 | done |
| 23003 | |
| 23004 | case $lt_echo in |
| 23005 | *'\$0 --fallback-echo"') |
| 23006 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 23007 | ;; |
| 23008 | esac |
| 23009 | |
| 23010 | cfgfile="$ofile" |
| 23011 | |
| 23012 | cat <<__EOF__ >> "$cfgfile" |
| 23013 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 23014 | |
| 23015 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 23016 | |
| 23017 | # Shell to use when invoking shell scripts. |
| 23018 | SHELL=$lt_SHELL |
| 23019 | |
| 23020 | # Whether or not to build shared libraries. |
| 23021 | build_libtool_libs=$enable_shared |
| 23022 | |
| 23023 | # Whether or not to build static libraries. |
| 23024 | build_old_libs=$enable_static |
| 23025 | |
| 23026 | # Whether or not to add -lc for building shared libraries. |
| 23027 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 23028 | |
| 23029 | # Whether or not to disallow shared libs when runtime libs are static |
| 23030 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 23031 | |
| 23032 | # Whether or not to optimize for fast installation. |
| 23033 | fast_install=$enable_fast_install |
| 23034 | |
| 23035 | # The host system. |
| 23036 | host_alias=$host_alias |
| 23037 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23038 | host_os=$host_os |
| 23039 | |
| 23040 | # The build system. |
| 23041 | build_alias=$build_alias |
| 23042 | build=$build |
| 23043 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23044 | |
| 23045 | # An echo program that does not interpret backslashes. |
| 23046 | echo=$lt_echo |
| 23047 | |
| 23048 | # The archiver. |
| 23049 | AR=$lt_AR |
| 23050 | AR_FLAGS=$lt_AR_FLAGS |
| 23051 | |
| 23052 | # A C compiler. |
| 23053 | LTCC=$lt_LTCC |
| 23054 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23055 | # LTCC compiler flags. |
| 23056 | LTCFLAGS=$lt_LTCFLAGS |
| 23057 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23058 | # A language-specific compiler. |
| 23059 | CC=$lt_compiler_F77 |
| 23060 | |
| 23061 | # Is the compiler the GNU C compiler? |
| 23062 | with_gcc=$GCC_F77 |
| 23063 | |
| 23064 | # An ERE matcher. |
| 23065 | EGREP=$lt_EGREP |
| 23066 | |
| 23067 | # The linker used to build libraries. |
| 23068 | LD=$lt_LD_F77 |
| 23069 | |
| 23070 | # Whether we need hard or soft links. |
| 23071 | LN_S=$lt_LN_S |
| 23072 | |
| 23073 | # A BSD-compatible nm program. |
| 23074 | NM=$lt_NM |
| 23075 | |
| 23076 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23077 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23078 | |
| 23079 | # Used to examine libraries when file_magic_cmd begins "file" |
| 23080 | MAGIC_CMD=$MAGIC_CMD |
| 23081 | |
| 23082 | # Used on cygwin: DLL creation program. |
| 23083 | DLLTOOL="$DLLTOOL" |
| 23084 | |
| 23085 | # Used on cygwin: object dumper. |
| 23086 | OBJDUMP="$OBJDUMP" |
| 23087 | |
| 23088 | # Used on cygwin: assembler. |
| 23089 | AS="$AS" |
| 23090 | |
| 23091 | # The name of the directory that contains temporary libtool files. |
| 23092 | objdir=$objdir |
| 23093 | |
| 23094 | # How to create reloadable object files. |
| 23095 | reload_flag=$lt_reload_flag |
| 23096 | reload_cmds=$lt_reload_cmds |
| 23097 | |
| 23098 | # How to pass a linker flag through the compiler. |
| 23099 | wl=$lt_lt_prog_compiler_wl_F77 |
| 23100 | |
| 23101 | # Object file suffix (normally "o"). |
| 23102 | objext="$ac_objext" |
| 23103 | |
| 23104 | # Old archive suffix (normally "a"). |
| 23105 | libext="$libext" |
| 23106 | |
| 23107 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23108 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23109 | |
| 23110 | # Executable file suffix (normally ""). |
| 23111 | exeext="$exeext" |
| 23112 | |
| 23113 | # Additional compiler flags for building library objects. |
| 23114 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 23115 | pic_mode=$pic_mode |
| 23116 | |
| 23117 | # What is the maximum length of a command? |
| 23118 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 23119 | |
| 23120 | # Does compiler simultaneously support -c and -o options? |
| 23121 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 23122 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23123 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23124 | need_locks=$lt_need_locks |
| 23125 | |
| 23126 | # Do we need the lib prefix for modules? |
| 23127 | need_lib_prefix=$need_lib_prefix |
| 23128 | |
| 23129 | # Do we need a version for libraries? |
| 23130 | need_version=$need_version |
| 23131 | |
| 23132 | # Whether dlopen is supported. |
| 23133 | dlopen_support=$enable_dlopen |
| 23134 | |
| 23135 | # Whether dlopen of programs is supported. |
| 23136 | dlopen_self=$enable_dlopen_self |
| 23137 | |
| 23138 | # Whether dlopen of statically linked programs is supported. |
| 23139 | dlopen_self_static=$enable_dlopen_self_static |
| 23140 | |
| 23141 | # Compiler flag to prevent dynamic linking. |
| 23142 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 23143 | |
| 23144 | # Compiler flag to turn off builtin functions. |
| 23145 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 23146 | |
| 23147 | # Compiler flag to allow reflexive dlopens. |
| 23148 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 23149 | |
| 23150 | # Compiler flag to generate shared objects directly from archives. |
| 23151 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 23152 | |
| 23153 | # Compiler flag to generate thread-safe objects. |
| 23154 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 23155 | |
| 23156 | # Library versioning type. |
| 23157 | version_type=$version_type |
| 23158 | |
| 23159 | # Format of library name prefix. |
| 23160 | libname_spec=$lt_libname_spec |
| 23161 | |
| 23162 | # List of archive names. First name is the real one, the rest are links. |
| 23163 | # The last name is the one that the linker finds with -lNAME. |
| 23164 | library_names_spec=$lt_library_names_spec |
| 23165 | |
| 23166 | # The coded name of the library, if different from the real name. |
| 23167 | soname_spec=$lt_soname_spec |
| 23168 | |
| 23169 | # Commands used to build and install an old-style archive. |
| 23170 | RANLIB=$lt_RANLIB |
| 23171 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 23172 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 23173 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 23174 | |
| 23175 | # Create an old-style archive from a shared archive. |
| 23176 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 23177 | |
| 23178 | # Create a temporary old-style archive to link instead of a shared archive. |
| 23179 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 23180 | |
| 23181 | # Commands used to build and install a shared archive. |
| 23182 | archive_cmds=$lt_archive_cmds_F77 |
| 23183 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 23184 | postinstall_cmds=$lt_postinstall_cmds |
| 23185 | postuninstall_cmds=$lt_postuninstall_cmds |
| 23186 | |
| 23187 | # Commands used to build a loadable module (assumed same as above if empty) |
| 23188 | module_cmds=$lt_module_cmds_F77 |
| 23189 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 23190 | |
| 23191 | # Commands to strip libraries. |
| 23192 | old_striplib=$lt_old_striplib |
| 23193 | striplib=$lt_striplib |
| 23194 | |
| 23195 | # Dependencies to place before the objects being linked to create a |
| 23196 | # shared library. |
| 23197 | predep_objects=$lt_predep_objects_F77 |
| 23198 | |
| 23199 | # Dependencies to place after the objects being linked to create a |
| 23200 | # shared library. |
| 23201 | postdep_objects=$lt_postdep_objects_F77 |
| 23202 | |
| 23203 | # Dependencies to place before the objects being linked to create a |
| 23204 | # shared library. |
| 23205 | predeps=$lt_predeps_F77 |
| 23206 | |
| 23207 | # Dependencies to place after the objects being linked to create a |
| 23208 | # shared library. |
| 23209 | postdeps=$lt_postdeps_F77 |
| 23210 | |
| 23211 | # The library search path used internally by the compiler when linking |
| 23212 | # a shared library. |
| 23213 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 23214 | |
| 23215 | # Method to check whether dependent libraries are shared objects. |
| 23216 | deplibs_check_method=$lt_deplibs_check_method |
| 23217 | |
| 23218 | # Command to use when deplibs_check_method == file_magic. |
| 23219 | file_magic_cmd=$lt_file_magic_cmd |
| 23220 | |
| 23221 | # Flag that allows shared libraries with undefined symbols to be built. |
| 23222 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 23223 | |
| 23224 | # Flag that forces no undefined symbols. |
| 23225 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 23226 | |
| 23227 | # Commands used to finish a libtool library installation in a directory. |
| 23228 | finish_cmds=$lt_finish_cmds |
| 23229 | |
| 23230 | # Same as above, but a single script fragment to be evaled but not shown. |
| 23231 | finish_eval=$lt_finish_eval |
| 23232 | |
| 23233 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 23234 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 23235 | |
| 23236 | # Transform the output of nm in a proper C declaration |
| 23237 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 23238 | |
| 23239 | # Transform the output of nm in a C name address pair |
| 23240 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 23241 | |
| 23242 | # This is the shared library runtime path variable. |
| 23243 | runpath_var=$runpath_var |
| 23244 | |
| 23245 | # This is the shared library path variable. |
| 23246 | shlibpath_var=$shlibpath_var |
| 23247 | |
| 23248 | # Is shlibpath searched before the hard-coded library search path? |
| 23249 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 23250 | |
| 23251 | # How to hardcode a shared library path into an executable. |
| 23252 | hardcode_action=$hardcode_action_F77 |
| 23253 | |
| 23254 | # Whether we should hardcode library paths into libraries. |
| 23255 | hardcode_into_libs=$hardcode_into_libs |
| 23256 | |
| 23257 | # Flag to hardcode \$libdir into a binary during linking. |
| 23258 | # This must work even if \$libdir does not exist. |
| 23259 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 23260 | |
| 23261 | # If ld is used when linking, flag to hardcode \$libdir into |
| 23262 | # a binary during linking. This must work even if \$libdir does |
| 23263 | # not exist. |
| 23264 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 23265 | |
| 23266 | # Whether we need a single -rpath flag with a separated argument. |
| 23267 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 23268 | |
| 23269 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 23270 | # resulting binary. |
| 23271 | hardcode_direct=$hardcode_direct_F77 |
| 23272 | |
| 23273 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 23274 | # resulting binary. |
| 23275 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 23276 | |
| 23277 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 23278 | # the resulting binary. |
| 23279 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 23280 | |
| 23281 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 23282 | # and all subsequent libraries and executables linked against it. |
| 23283 | hardcode_automatic=$hardcode_automatic_F77 |
| 23284 | |
| 23285 | # Variables whose values should be saved in libtool wrapper scripts and |
| 23286 | # restored at relink time. |
| 23287 | variables_saved_for_relink="$variables_saved_for_relink" |
| 23288 | |
| 23289 | # Whether libtool must link a program against all its dependency libraries. |
| 23290 | link_all_deplibs=$link_all_deplibs_F77 |
| 23291 | |
| 23292 | # Compile-time system search path for libraries |
| 23293 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 23294 | |
| 23295 | # Run-time system search path for libraries |
| 23296 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 23297 | |
| 23298 | # Fix the shell variable \$srcfile for the compiler. |
| 23299 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 23300 | |
| 23301 | # Set to yes if exported symbols are required. |
| 23302 | always_export_symbols=$always_export_symbols_F77 |
| 23303 | |
| 23304 | # The commands to list exported symbols. |
| 23305 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 23306 | |
| 23307 | # The commands to extract the exported symbol list from a shared archive. |
| 23308 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 23309 | |
| 23310 | # Symbols that should not be listed in the preloaded symbols. |
| 23311 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 23312 | |
| 23313 | # Symbols that must always be exported. |
| 23314 | include_expsyms=$lt_include_expsyms_F77 |
| 23315 | |
| 23316 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 23317 | |
| 23318 | __EOF__ |
| 23319 | |
| 23320 | |
| 23321 | else |
| 23322 | # If there is no Makefile yet, we rely on a make rule to execute |
| 23323 | # `config.status --recheck' to rerun these tests and create the |
| 23324 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23325 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 23326 | if test -f "$ltmain_in"; then |
| 23327 | test -f Makefile && make "$ltmain" |
| 23328 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23329 | fi |
| 23330 | |
| 23331 | |
| 23332 | ac_ext=c |
| 23333 | ac_cpp='$CPP $CPPFLAGS' |
| 23334 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23335 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23336 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23337 | |
| 23338 | CC="$lt_save_CC" |
| 23339 | |
| 23340 | else |
| 23341 | tagname="" |
| 23342 | fi |
| 23343 | ;; |
| 23344 | |
| 23345 | GCJ) |
| 23346 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23347 | ac_ext=c |
| 23348 | ac_cpp='$CPP $CPPFLAGS' |
| 23349 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23350 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23351 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23352 | |
| 23353 | |
| 23354 | # Source file extension for Java test sources. |
| 23355 | ac_ext=java |
| 23356 | |
| 23357 | # Object file extension for compiled Java test sources. |
| 23358 | objext=o |
| 23359 | objext_GCJ=$objext |
| 23360 | |
| 23361 | # Code to be used in simple compile tests |
| 23362 | lt_simple_compile_test_code="class foo {}\n" |
| 23363 | |
| 23364 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23365 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23366 | |
| 23367 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 23368 | |
| 23369 | # If no C compiler was specified, use CC. |
| 23370 | LTCC=${LTCC-"$CC"} |
| 23371 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23372 | # If no C compiler flags were specified, use CFLAGS. |
| 23373 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 23374 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23375 | # Allow CC to be a program name with arguments. |
| 23376 | compiler=$CC |
| 23377 | |
| 23378 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23379 | # save warnings/boilerplate of simple test code |
| 23380 | ac_outfile=conftest.$ac_objext |
| 23381 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 23382 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 23383 | _lt_compiler_boilerplate=`cat conftest.err` |
| 23384 | $rm conftest* |
| 23385 | |
| 23386 | ac_outfile=conftest.$ac_objext |
| 23387 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 23388 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 23389 | _lt_linker_boilerplate=`cat conftest.err` |
| 23390 | $rm conftest* |
| 23391 | |
| 23392 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23393 | # Allow CC to be a program name with arguments. |
| 23394 | lt_save_CC="$CC" |
| 23395 | CC=${GCJ-"gcj"} |
| 23396 | compiler=$CC |
| 23397 | compiler_GCJ=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23398 | for cc_temp in $compiler""; do |
| 23399 | case $cc_temp in |
| 23400 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 23401 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 23402 | \-*) ;; |
| 23403 | *) break;; |
| 23404 | esac |
| 23405 | done |
| 23406 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 23407 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23408 | |
| 23409 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 23410 | archive_cmds_need_lc_GCJ=no |
| 23411 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23412 | old_archive_cmds_GCJ=$old_archive_cmds |
| 23413 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23414 | |
| 23415 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 23416 | |
| 23417 | if test "$GCC" = yes; then |
| 23418 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 23419 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23420 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23421 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 23422 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23423 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 23424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23425 | else |
| 23426 | lt_cv_prog_compiler_rtti_exceptions=no |
| 23427 | ac_outfile=conftest.$ac_objext |
| 23428 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 23429 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 23430 | # Insert the option either (1) after the last *FLAGS variable, or |
| 23431 | # (2) before a word containing "conftest.", or (3) at the end. |
| 23432 | # Note that $ac_compile itself does not contain backslashes and begins |
| 23433 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 23434 | # The option is referenced via a variable to avoid confusing sed. |
| 23435 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23436 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23437 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 23438 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 23439 | (eval echo "\"\$as_me:23439: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23440 | (eval "$lt_compile" 2>conftest.err) |
| 23441 | ac_status=$? |
| 23442 | cat conftest.err >&5 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 23443 | echo "$as_me:23443: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23444 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 23445 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23446 | # So say no if there are warnings other than the usual output. |
| 23447 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 23448 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 23449 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23450 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 23451 | fi |
| 23452 | fi |
| 23453 | $rm conftest* |
| 23454 | |
| 23455 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23456 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 23457 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23458 | |
| 23459 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 23460 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 23461 | else |
| 23462 | : |
| 23463 | fi |
| 23464 | |
| 23465 | fi |
| 23466 | |
| 23467 | lt_prog_compiler_wl_GCJ= |
| 23468 | lt_prog_compiler_pic_GCJ= |
| 23469 | lt_prog_compiler_static_GCJ= |
| 23470 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23471 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 23472 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23473 | |
| 23474 | if test "$GCC" = yes; then |
| 23475 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23476 | lt_prog_compiler_static_GCJ='-static' |
| 23477 | |
| 23478 | case $host_os in |
| 23479 | aix*) |
| 23480 | # All AIX code is PIC. |
| 23481 | if test "$host_cpu" = ia64; then |
| 23482 | # AIX 5 now supports IA64 processor |
| 23483 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23484 | fi |
| 23485 | ;; |
| 23486 | |
| 23487 | amigaos*) |
| 23488 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 23489 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 23490 | # like `-m68040'. |
| 23491 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 23492 | ;; |
| 23493 | |
| 23494 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 23495 | # PIC is the default for these OSes. |
| 23496 | ;; |
| 23497 | |
| 23498 | mingw* | pw32* | os2*) |
| 23499 | # This hack is so that the source file can tell whether it is being |
| 23500 | # built for inclusion in a dll (and should export symbols for example). |
| 23501 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 23502 | ;; |
| 23503 | |
| 23504 | darwin* | rhapsody*) |
| 23505 | # PIC is the default on this platform |
| 23506 | # Common symbols not allowed in MH_DYLIB files |
| 23507 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 23508 | ;; |
| 23509 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23510 | interix3*) |
| 23511 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 23512 | # Instead, we relocate shared libraries at runtime. |
| 23513 | ;; |
| 23514 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23515 | msdosdjgpp*) |
| 23516 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 23517 | # on systems that don't support them. |
| 23518 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23519 | enable_shared=no |
| 23520 | ;; |
| 23521 | |
| 23522 | sysv4*MP*) |
| 23523 | if test -d /usr/nec; then |
| 23524 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 23525 | fi |
| 23526 | ;; |
| 23527 | |
| 23528 | hpux*) |
| 23529 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 23530 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23531 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23532 | hppa*64*|ia64*) |
| 23533 | # +Z the default |
| 23534 | ;; |
| 23535 | *) |
| 23536 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 23537 | ;; |
| 23538 | esac |
| 23539 | ;; |
| 23540 | |
| 23541 | *) |
| 23542 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 23543 | ;; |
| 23544 | esac |
| 23545 | else |
| 23546 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 23547 | case $host_os in |
| 23548 | aix*) |
| 23549 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23550 | if test "$host_cpu" = ia64; then |
| 23551 | # AIX 5 now supports IA64 processor |
| 23552 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23553 | else |
| 23554 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 23555 | fi |
| 23556 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23557 | darwin*) |
| 23558 | # PIC is the default on this platform |
| 23559 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23560 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23561 | xlc*) |
| 23562 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 23563 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23564 | ;; |
| 23565 | esac |
| 23566 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23567 | |
| 23568 | mingw* | pw32* | os2*) |
| 23569 | # This hack is so that the source file can tell whether it is being |
| 23570 | # built for inclusion in a dll (and should export symbols for example). |
| 23571 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 23572 | ;; |
| 23573 | |
| 23574 | hpux9* | hpux10* | hpux11*) |
| 23575 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23576 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 23577 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23578 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23579 | hppa*64*|ia64*) |
| 23580 | # +Z the default |
| 23581 | ;; |
| 23582 | *) |
| 23583 | lt_prog_compiler_pic_GCJ='+Z' |
| 23584 | ;; |
| 23585 | esac |
| 23586 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 23587 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 23588 | ;; |
| 23589 | |
| 23590 | irix5* | irix6* | nonstopux*) |
| 23591 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23592 | # PIC (with -KPIC) is the default. |
| 23593 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23594 | ;; |
| 23595 | |
| 23596 | newsos6) |
| 23597 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23598 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23599 | ;; |
| 23600 | |
| 23601 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23602 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23603 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23604 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23605 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23606 | lt_prog_compiler_static_GCJ='-static' |
| 23607 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23608 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 23609 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 23610 | # which looks to be a dead project) |
| 23611 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23612 | lt_prog_compiler_pic_GCJ='-fpic' |
| 23613 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23614 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23615 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23616 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23617 | # All Alpha code is PIC. |
| 23618 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23619 | ;; |
| 23620 | esac |
| 23621 | ;; |
| 23622 | |
| 23623 | osf3* | osf4* | osf5*) |
| 23624 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23625 | # All OSF/1 code is PIC. |
| 23626 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23627 | ;; |
| 23628 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23629 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23630 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23631 | lt_prog_compiler_static_GCJ='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23632 | case $cc_basename in |
| 23633 | f77* | f90* | f95*) |
| 23634 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 23635 | *) |
| 23636 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| 23637 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23638 | ;; |
| 23639 | |
| 23640 | sunos4*) |
| 23641 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 23642 | lt_prog_compiler_pic_GCJ='-PIC' |
| 23643 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23644 | ;; |
| 23645 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23646 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23647 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23648 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23649 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23650 | ;; |
| 23651 | |
| 23652 | sysv4*MP*) |
| 23653 | if test -d /usr/nec ;then |
| 23654 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 23655 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23656 | fi |
| 23657 | ;; |
| 23658 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23659 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 23660 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23661 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23662 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23663 | ;; |
| 23664 | |
| 23665 | unicos*) |
| 23666 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23667 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23668 | ;; |
| 23669 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23670 | uts4*) |
| 23671 | lt_prog_compiler_pic_GCJ='-pic' |
| 23672 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23673 | ;; |
| 23674 | |
| 23675 | *) |
| 23676 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23677 | ;; |
| 23678 | esac |
| 23679 | fi |
| 23680 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23681 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 23682 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23683 | |
| 23684 | # |
| 23685 | # Check to make sure the PIC flag actually works. |
| 23686 | # |
| 23687 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23688 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23689 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 23690 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23691 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 23692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23693 | else |
| 23694 | lt_prog_compiler_pic_works_GCJ=no |
| 23695 | ac_outfile=conftest.$ac_objext |
| 23696 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 23697 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 23698 | # Insert the option either (1) after the last *FLAGS variable, or |
| 23699 | # (2) before a word containing "conftest.", or (3) at the end. |
| 23700 | # Note that $ac_compile itself does not contain backslashes and begins |
| 23701 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 23702 | # The option is referenced via a variable to avoid confusing sed. |
| 23703 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23704 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23705 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 23706 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 23707 | (eval echo "\"\$as_me:23707: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23708 | (eval "$lt_compile" 2>conftest.err) |
| 23709 | ac_status=$? |
| 23710 | cat conftest.err >&5 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 23711 | echo "$as_me:23711: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23712 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 23713 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23714 | # So say no if there are warnings other than the usual output. |
| 23715 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 23716 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 23717 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23718 | lt_prog_compiler_pic_works_GCJ=yes |
| 23719 | fi |
| 23720 | fi |
| 23721 | $rm conftest* |
| 23722 | |
| 23723 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23724 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 23725 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23726 | |
| 23727 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 23728 | case $lt_prog_compiler_pic_GCJ in |
| 23729 | "" | " "*) ;; |
| 23730 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 23731 | esac |
| 23732 | else |
| 23733 | lt_prog_compiler_pic_GCJ= |
| 23734 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23735 | fi |
| 23736 | |
| 23737 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23738 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23739 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 23740 | *djgpp*) |
| 23741 | lt_prog_compiler_pic_GCJ= |
| 23742 | ;; |
| 23743 | *) |
| 23744 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 23745 | ;; |
| 23746 | esac |
| 23747 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23748 | # |
| 23749 | # Check to make sure the static flag actually works. |
| 23750 | # |
| 23751 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| 23752 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 23753 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 23754 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 23755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23756 | else |
| 23757 | lt_prog_compiler_static_works_GCJ=no |
| 23758 | save_LDFLAGS="$LDFLAGS" |
| 23759 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 23760 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 23761 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 23762 | # The linker can only warn and ignore the option if not recognized |
| 23763 | # So say no if there are warnings |
| 23764 | if test -s conftest.err; then |
| 23765 | # Append any errors to the config.log. |
| 23766 | cat conftest.err 1>&5 |
| 23767 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 23768 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 23769 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 23770 | lt_prog_compiler_static_works_GCJ=yes |
| 23771 | fi |
| 23772 | else |
| 23773 | lt_prog_compiler_static_works_GCJ=yes |
| 23774 | fi |
| 23775 | fi |
| 23776 | $rm conftest* |
| 23777 | LDFLAGS="$save_LDFLAGS" |
| 23778 | |
| 23779 | fi |
| 23780 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 23781 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
| 23782 | |
| 23783 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 23784 | : |
| 23785 | else |
| 23786 | lt_prog_compiler_static_GCJ= |
| 23787 | fi |
| 23788 | |
| 23789 | |
| 23790 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 23791 | 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] | 23792 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 23793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23794 | else |
| 23795 | lt_cv_prog_compiler_c_o_GCJ=no |
| 23796 | $rm -r conftest 2>/dev/null |
| 23797 | mkdir conftest |
| 23798 | cd conftest |
| 23799 | mkdir out |
| 23800 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 23801 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23802 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 23803 | # Insert the option either (1) after the last *FLAGS variable, or |
| 23804 | # (2) before a word containing "conftest.", or (3) at the end. |
| 23805 | # Note that $ac_compile itself does not contain backslashes and begins |
| 23806 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 23807 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23808 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23809 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 23810 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 23811 | (eval echo "\"\$as_me:23811: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23812 | (eval "$lt_compile" 2>out/conftest.err) |
| 23813 | ac_status=$? |
| 23814 | cat out/conftest.err >&5 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 23815 | echo "$as_me:23815: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23816 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 23817 | then |
| 23818 | # The compiler can only warn and ignore the option if not recognized |
| 23819 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23820 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 23821 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 23822 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23823 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 23824 | fi |
| 23825 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23826 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23827 | $rm conftest* |
| 23828 | # SGI C++ compiler will create directory out/ii_files/ for |
| 23829 | # template instantiation |
| 23830 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 23831 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23832 | cd .. |
| 23833 | rmdir conftest |
| 23834 | $rm conftest* |
| 23835 | |
| 23836 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23837 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 23838 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23839 | |
| 23840 | |
| 23841 | hard_links="nottested" |
| 23842 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 23843 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23844 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 23845 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23846 | hard_links=yes |
| 23847 | $rm conftest* |
| 23848 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 23849 | touch conftest.a |
| 23850 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 23851 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23852 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 23853 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23854 | if test "$hard_links" = no; then |
| 23855 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 23856 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 23857 | need_locks=warn |
| 23858 | fi |
| 23859 | else |
| 23860 | need_locks=no |
| 23861 | fi |
| 23862 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23863 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 23864 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23865 | |
| 23866 | runpath_var= |
| 23867 | allow_undefined_flag_GCJ= |
| 23868 | enable_shared_with_static_runtimes_GCJ=no |
| 23869 | archive_cmds_GCJ= |
| 23870 | archive_expsym_cmds_GCJ= |
| 23871 | old_archive_From_new_cmds_GCJ= |
| 23872 | old_archive_from_expsyms_cmds_GCJ= |
| 23873 | export_dynamic_flag_spec_GCJ= |
| 23874 | whole_archive_flag_spec_GCJ= |
| 23875 | thread_safe_flag_spec_GCJ= |
| 23876 | hardcode_libdir_flag_spec_GCJ= |
| 23877 | hardcode_libdir_flag_spec_ld_GCJ= |
| 23878 | hardcode_libdir_separator_GCJ= |
| 23879 | hardcode_direct_GCJ=no |
| 23880 | hardcode_minus_L_GCJ=no |
| 23881 | hardcode_shlibpath_var_GCJ=unsupported |
| 23882 | link_all_deplibs_GCJ=unknown |
| 23883 | hardcode_automatic_GCJ=no |
| 23884 | module_cmds_GCJ= |
| 23885 | module_expsym_cmds_GCJ= |
| 23886 | always_export_symbols_GCJ=no |
| 23887 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 23888 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 23889 | # included in the symbol list |
| 23890 | include_expsyms_GCJ= |
| 23891 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 23892 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 23893 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 23894 | # as well as any symbol that contains `d'. |
| 23895 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 23896 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 23897 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 23898 | # the symbol is explicitly referenced. Since portable code cannot |
| 23899 | # rely on this symbol name, it's probably fine to never include it in |
| 23900 | # preloaded symbol tables. |
| 23901 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23902 | # Just being paranoid about ensuring that cc_basename is set. |
| 23903 | for cc_temp in $compiler""; do |
| 23904 | case $cc_temp in |
| 23905 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 23906 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 23907 | \-*) ;; |
| 23908 | *) break;; |
| 23909 | esac |
| 23910 | done |
| 23911 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23912 | |
| 23913 | case $host_os in |
| 23914 | cygwin* | mingw* | pw32*) |
| 23915 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 23916 | # When not using gcc, we currently assume that we are using |
| 23917 | # Microsoft Visual C++. |
| 23918 | if test "$GCC" != yes; then |
| 23919 | with_gnu_ld=no |
| 23920 | fi |
| 23921 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23922 | interix*) |
| 23923 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 23924 | with_gnu_ld=yes |
| 23925 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23926 | openbsd*) |
| 23927 | with_gnu_ld=no |
| 23928 | ;; |
| 23929 | esac |
| 23930 | |
| 23931 | ld_shlibs_GCJ=yes |
| 23932 | if test "$with_gnu_ld" = yes; then |
| 23933 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 23934 | wlarc='${wl}' |
| 23935 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23936 | # Set some defaults for GNU ld with shared library support. These |
| 23937 | # are reset later if shared libraries are not supported. Putting them |
| 23938 | # here allows them to be overridden if necessary. |
| 23939 | runpath_var=LD_RUN_PATH |
| 23940 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 23941 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 23942 | # ancient GNU ld didn't support --whole-archive et. al. |
| 23943 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 23944 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 23945 | else |
| 23946 | whole_archive_flag_spec_GCJ= |
| 23947 | fi |
| 23948 | supports_anon_versioning=no |
| 23949 | case `$LD -v 2>/dev/null` in |
| 23950 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 23951 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 23952 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 23953 | *\ 2.11.*) ;; # other 2.11 versions |
| 23954 | *) supports_anon_versioning=yes ;; |
| 23955 | esac |
| 23956 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23957 | # See if GNU ld supports shared libraries. |
| 23958 | case $host_os in |
| 23959 | aix3* | aix4* | aix5*) |
| 23960 | # On AIX/PPC, the GNU linker is very broken |
| 23961 | if test "$host_cpu" != ia64; then |
| 23962 | ld_shlibs_GCJ=no |
| 23963 | cat <<EOF 1>&2 |
| 23964 | |
| 23965 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 23966 | *** to be unable to reliably create shared libraries on AIX. |
| 23967 | *** Therefore, libtool is disabling shared libraries support. If you |
| 23968 | *** really care for shared libraries, you may want to modify your PATH |
| 23969 | *** so that a non-GNU linker is found, and then restart. |
| 23970 | |
| 23971 | EOF |
| 23972 | fi |
| 23973 | ;; |
| 23974 | |
| 23975 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 23976 | 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)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23977 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 23978 | hardcode_minus_L_GCJ=yes |
| 23979 | |
| 23980 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 23981 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 23982 | # to version 4, is to share data among multiple programs linked |
| 23983 | # with the same dynamic library. Since this doesn't match the |
| 23984 | # behavior of shared libraries on other platforms, we can't use |
| 23985 | # them. |
| 23986 | ld_shlibs_GCJ=no |
| 23987 | ;; |
| 23988 | |
| 23989 | beos*) |
| 23990 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 23991 | allow_undefined_flag_GCJ=unsupported |
| 23992 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 23993 | # support --undefined. This deserves some investigation. FIXME |
| 23994 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 23995 | else |
| 23996 | ld_shlibs_GCJ=no |
| 23997 | fi |
| 23998 | ;; |
| 23999 | |
| 24000 | cygwin* | mingw* | pw32*) |
| 24001 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 24002 | # as there is no search path for DLLs. |
| 24003 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24004 | allow_undefined_flag_GCJ=unsupported |
| 24005 | always_export_symbols_GCJ=no |
| 24006 | enable_shared_with_static_runtimes_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24007 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24008 | |
| 24009 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24010 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24011 | # If the export-symbols file already is a .def file (1st line |
| 24012 | # is EXPORTS), use it as is; otherwise, prepend... |
| 24013 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 24014 | cp $export_symbols $output_objdir/$soname.def; |
| 24015 | else |
| 24016 | echo EXPORTS > $output_objdir/$soname.def; |
| 24017 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24018 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24019 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24020 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24021 | ld_shlibs_GCJ=no |
| 24022 | fi |
| 24023 | ;; |
| 24024 | |
| 24025 | interix3*) |
| 24026 | hardcode_direct_GCJ=no |
| 24027 | hardcode_shlibpath_var_GCJ=no |
| 24028 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24029 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24030 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 24031 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 24032 | # default) and relocated if they conflict, which is a slow very memory |
| 24033 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 24034 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 24035 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 24036 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 24037 | archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 24038 | ;; |
| 24039 | |
| 24040 | linux*) |
| 24041 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24042 | tmp_addflag= |
| 24043 | case $cc_basename,$host_cpu in |
| 24044 | pgcc*) # Portland Group C compiler |
| 24045 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 24046 | tmp_addflag=' $pic_flag' |
| 24047 | ;; |
| 24048 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 24049 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 24050 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 24051 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 24052 | tmp_addflag=' -i_dynamic' ;; |
| 24053 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 24054 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 24055 | ifc* | ifort*) # Intel Fortran compiler |
| 24056 | tmp_addflag=' -nofor_main' ;; |
| 24057 | esac |
| 24058 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24059 | |
| 24060 | if test $supports_anon_versioning = yes; then |
| 24061 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 24062 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 24063 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 24064 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 24065 | fi |
| 24066 | else |
| 24067 | ld_shlibs_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24068 | fi |
| 24069 | ;; |
| 24070 | |
| 24071 | netbsd*) |
| 24072 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 24073 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 24074 | wlarc= |
| 24075 | else |
| 24076 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24077 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24078 | fi |
| 24079 | ;; |
| 24080 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24081 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24082 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 24083 | ld_shlibs_GCJ=no |
| 24084 | cat <<EOF 1>&2 |
| 24085 | |
| 24086 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 24087 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 24088 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24089 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 24090 | *** your PATH or compiler configuration so that the native linker is |
| 24091 | *** used, and then restart. |
| 24092 | |
| 24093 | EOF |
| 24094 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24095 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24096 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24097 | else |
| 24098 | ld_shlibs_GCJ=no |
| 24099 | fi |
| 24100 | ;; |
| 24101 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24102 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 24103 | case `$LD -v 2>&1` in |
| 24104 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 24105 | ld_shlibs_GCJ=no |
| 24106 | cat <<_LT_EOF 1>&2 |
| 24107 | |
| 24108 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 24109 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 24110 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24111 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 24112 | *** your PATH or compiler configuration so that the native linker is |
| 24113 | *** used, and then restart. |
| 24114 | |
| 24115 | _LT_EOF |
| 24116 | ;; |
| 24117 | *) |
| 24118 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24119 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 24120 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 24121 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 24122 | else |
| 24123 | ld_shlibs_GCJ=no |
| 24124 | fi |
| 24125 | ;; |
| 24126 | esac |
| 24127 | ;; |
| 24128 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24129 | sunos4*) |
| 24130 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24131 | wlarc= |
| 24132 | hardcode_direct_GCJ=yes |
| 24133 | hardcode_shlibpath_var_GCJ=no |
| 24134 | ;; |
| 24135 | |
| 24136 | *) |
| 24137 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24138 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24139 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24140 | else |
| 24141 | ld_shlibs_GCJ=no |
| 24142 | fi |
| 24143 | ;; |
| 24144 | esac |
| 24145 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24146 | if test "$ld_shlibs_GCJ" = no; then |
| 24147 | runpath_var= |
| 24148 | hardcode_libdir_flag_spec_GCJ= |
| 24149 | export_dynamic_flag_spec_GCJ= |
| 24150 | whole_archive_flag_spec_GCJ= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24151 | fi |
| 24152 | else |
| 24153 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 24154 | case $host_os in |
| 24155 | aix3*) |
| 24156 | allow_undefined_flag_GCJ=unsupported |
| 24157 | always_export_symbols_GCJ=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24158 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24159 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 24160 | # are no directories specified by -L. |
| 24161 | hardcode_minus_L_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24162 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24163 | # Neither direct hardcoding nor static linking is supported with a |
| 24164 | # broken collect2. |
| 24165 | hardcode_direct_GCJ=unsupported |
| 24166 | fi |
| 24167 | ;; |
| 24168 | |
| 24169 | aix4* | aix5*) |
| 24170 | if test "$host_cpu" = ia64; then |
| 24171 | # On IA64, the linker does run time linking by default, so we don't |
| 24172 | # have to do anything special. |
| 24173 | aix_use_runtimelinking=no |
| 24174 | exp_sym_flag='-Bexport' |
| 24175 | no_entry_flag="" |
| 24176 | else |
| 24177 | # If we're using GNU nm, then we don't want the "-C" option. |
| 24178 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 24179 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 24180 | 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' |
| 24181 | else |
| 24182 | 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' |
| 24183 | fi |
| 24184 | aix_use_runtimelinking=no |
| 24185 | |
| 24186 | # Test if we are trying to use run time linking or normal |
| 24187 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 24188 | # need to do runtime linking. |
| 24189 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 24190 | for ld_flag in $LDFLAGS; do |
| 24191 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 24192 | aix_use_runtimelinking=yes |
| 24193 | break |
| 24194 | fi |
| 24195 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24196 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24197 | esac |
| 24198 | |
| 24199 | exp_sym_flag='-bexport' |
| 24200 | no_entry_flag='-bnoentry' |
| 24201 | fi |
| 24202 | |
| 24203 | # When large executables or shared objects are built, AIX ld can |
| 24204 | # have problems creating the table of contents. If linking a library |
| 24205 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 24206 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 24207 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 24208 | |
| 24209 | archive_cmds_GCJ='' |
| 24210 | hardcode_direct_GCJ=yes |
| 24211 | hardcode_libdir_separator_GCJ=':' |
| 24212 | link_all_deplibs_GCJ=yes |
| 24213 | |
| 24214 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24215 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24216 | # We only want to do this on AIX 4.2 and lower, the check |
| 24217 | # below for broken collect2 doesn't work under 4.3+ |
| 24218 | collect2name=`${CC} -print-prog-name=collect2` |
| 24219 | if test -f "$collect2name" && \ |
| 24220 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 24221 | then |
| 24222 | # We have reworked collect2 |
| 24223 | hardcode_direct_GCJ=yes |
| 24224 | else |
| 24225 | # We have old collect2 |
| 24226 | hardcode_direct_GCJ=unsupported |
| 24227 | # It fails to find uninstalled libraries when the uninstalled |
| 24228 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 24229 | # to unsupported forces relinking |
| 24230 | hardcode_minus_L_GCJ=yes |
| 24231 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24232 | hardcode_libdir_separator_GCJ= |
| 24233 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24234 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24235 | esac |
| 24236 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24237 | if test "$aix_use_runtimelinking" = yes; then |
| 24238 | shared_flag="$shared_flag "'${wl}-G' |
| 24239 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24240 | else |
| 24241 | # not using gcc |
| 24242 | if test "$host_cpu" = ia64; then |
| 24243 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 24244 | # chokes on -Wl,-G. The following line is correct: |
| 24245 | shared_flag='-G' |
| 24246 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24247 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24248 | shared_flag='${wl}-G' |
| 24249 | else |
| 24250 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24251 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24252 | fi |
| 24253 | fi |
| 24254 | |
| 24255 | # It seems that -bexpall does not export symbols beginning with |
| 24256 | # underscore (_), so it is better to generate a list of symbols to export. |
| 24257 | always_export_symbols_GCJ=yes |
| 24258 | if test "$aix_use_runtimelinking" = yes; then |
| 24259 | # Warning - without using the other runtime loading flags (-brtl), |
| 24260 | # -berok will link without error, but may produce a broken library. |
| 24261 | allow_undefined_flag_GCJ='-berok' |
| 24262 | # Determine the default libpath from the value encoded in an empty executable. |
| 24263 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24264 | /* confdefs.h. */ |
| 24265 | _ACEOF |
| 24266 | cat confdefs.h >>conftest.$ac_ext |
| 24267 | cat >>conftest.$ac_ext <<_ACEOF |
| 24268 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24269 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24270 | int |
| 24271 | main () |
| 24272 | { |
| 24273 | |
| 24274 | ; |
| 24275 | return 0; |
| 24276 | } |
| 24277 | _ACEOF |
| 24278 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24279 | if { (ac_try="$ac_link" |
| 24280 | case "(($ac_try" in |
| 24281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24282 | *) ac_try_echo=$ac_try;; |
| 24283 | esac |
| 24284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24285 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24286 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24288 | rm -f conftest.er1 |
| 24289 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24291 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24292 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 24293 | { (case "(($ac_try" in |
| 24294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24295 | *) ac_try_echo=$ac_try;; |
| 24296 | esac |
| 24297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24298 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24299 | ac_status=$? |
| 24300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24301 | (exit $ac_status); }; } && |
| 24302 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24303 | { (case "(($ac_try" in |
| 24304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24305 | *) ac_try_echo=$ac_try;; |
| 24306 | esac |
| 24307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24308 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24309 | ac_status=$? |
| 24310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24311 | (exit $ac_status); }; }; then |
| 24312 | |
| 24313 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 24314 | }'` |
| 24315 | # Check for a 64-bit object if we didn't find anything. |
| 24316 | 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; } |
| 24317 | }'`; fi |
| 24318 | else |
| 24319 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24321 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24322 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24323 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24324 | |
| 24325 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24326 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24327 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 24328 | |
| 24329 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24330 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24331 | else |
| 24332 | if test "$host_cpu" = ia64; then |
| 24333 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 24334 | allow_undefined_flag_GCJ="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24335 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24336 | else |
| 24337 | # Determine the default libpath from the value encoded in an empty executable. |
| 24338 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24339 | /* confdefs.h. */ |
| 24340 | _ACEOF |
| 24341 | cat confdefs.h >>conftest.$ac_ext |
| 24342 | cat >>conftest.$ac_ext <<_ACEOF |
| 24343 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24344 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24345 | int |
| 24346 | main () |
| 24347 | { |
| 24348 | |
| 24349 | ; |
| 24350 | return 0; |
| 24351 | } |
| 24352 | _ACEOF |
| 24353 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24354 | if { (ac_try="$ac_link" |
| 24355 | case "(($ac_try" in |
| 24356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24357 | *) ac_try_echo=$ac_try;; |
| 24358 | esac |
| 24359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24360 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24361 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24363 | rm -f conftest.er1 |
| 24364 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24366 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24367 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 24368 | { (case "(($ac_try" in |
| 24369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24370 | *) ac_try_echo=$ac_try;; |
| 24371 | esac |
| 24372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24373 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24374 | ac_status=$? |
| 24375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24376 | (exit $ac_status); }; } && |
| 24377 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24378 | { (case "(($ac_try" in |
| 24379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24380 | *) ac_try_echo=$ac_try;; |
| 24381 | esac |
| 24382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24383 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24384 | ac_status=$? |
| 24385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24386 | (exit $ac_status); }; }; then |
| 24387 | |
| 24388 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 24389 | }'` |
| 24390 | # Check for a 64-bit object if we didn't find anything. |
| 24391 | 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; } |
| 24392 | }'`; fi |
| 24393 | else |
| 24394 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24396 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24397 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24398 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24399 | |
| 24400 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24401 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24402 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 24403 | |
| 24404 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 24405 | # Warning - without using the other run time loading flags, |
| 24406 | # -berok will link without error, but may produce a broken library. |
| 24407 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 24408 | allow_undefined_flag_GCJ=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24409 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24410 | whole_archive_flag_spec_GCJ='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24411 | archive_cmds_need_lc_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24412 | # This is similar to how AIX traditionally builds its shared libraries. |
| 24413 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24414 | fi |
| 24415 | fi |
| 24416 | ;; |
| 24417 | |
| 24418 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24419 | 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)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24420 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24421 | hardcode_minus_L_GCJ=yes |
| 24422 | # see comment about different semantics on the GNU ld section |
| 24423 | ld_shlibs_GCJ=no |
| 24424 | ;; |
| 24425 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24426 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24427 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 24428 | ;; |
| 24429 | |
| 24430 | cygwin* | mingw* | pw32*) |
| 24431 | # When not using gcc, we currently assume that we are using |
| 24432 | # Microsoft Visual C++. |
| 24433 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 24434 | # no search path for DLLs. |
| 24435 | hardcode_libdir_flag_spec_GCJ=' ' |
| 24436 | allow_undefined_flag_GCJ=unsupported |
| 24437 | # Tell ltmain to make .lib files, not .a files. |
| 24438 | libext=lib |
| 24439 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24440 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24441 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24442 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24443 | # The linker will automatically build a .lib file if we build a DLL. |
| 24444 | old_archive_From_new_cmds_GCJ='true' |
| 24445 | # FIXME: Should let the user specify the lib program. |
| 24446 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24447 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24448 | enable_shared_with_static_runtimes_GCJ=yes |
| 24449 | ;; |
| 24450 | |
| 24451 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24452 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24453 | rhapsody* | darwin1.[012]) |
| 24454 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 24455 | ;; |
| 24456 | *) # Darwin 1.3 on |
| 24457 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 24458 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 24459 | else |
| 24460 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 24461 | 10.[012]) |
| 24462 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 24463 | ;; |
| 24464 | 10.*) |
| 24465 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 24466 | ;; |
| 24467 | esac |
| 24468 | fi |
| 24469 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24470 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24471 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24472 | hardcode_direct_GCJ=no |
| 24473 | hardcode_automatic_GCJ=yes |
| 24474 | hardcode_shlibpath_var_GCJ=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24475 | whole_archive_flag_spec_GCJ='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24476 | link_all_deplibs_GCJ=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24477 | if test "$GCC" = yes ; then |
| 24478 | output_verbose_link_cmd='echo' |
| 24479 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 24480 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24481 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24482 | archive_expsym_cmds_GCJ='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}' |
| 24483 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24484 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24485 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24486 | xlc*) |
| 24487 | output_verbose_link_cmd='echo' |
| 24488 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 24489 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24490 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24491 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 24492 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24493 | ;; |
| 24494 | *) |
| 24495 | ld_shlibs_GCJ=no |
| 24496 | ;; |
| 24497 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24498 | fi |
| 24499 | ;; |
| 24500 | |
| 24501 | dgux*) |
| 24502 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24503 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24504 | hardcode_shlibpath_var_GCJ=no |
| 24505 | ;; |
| 24506 | |
| 24507 | freebsd1*) |
| 24508 | ld_shlibs_GCJ=no |
| 24509 | ;; |
| 24510 | |
| 24511 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 24512 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 24513 | # does not break anything, and helps significantly (at the cost of a little |
| 24514 | # extra space). |
| 24515 | freebsd2.2*) |
| 24516 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 24517 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24518 | hardcode_direct_GCJ=yes |
| 24519 | hardcode_shlibpath_var_GCJ=no |
| 24520 | ;; |
| 24521 | |
| 24522 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 24523 | freebsd2*) |
| 24524 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24525 | hardcode_direct_GCJ=yes |
| 24526 | hardcode_minus_L_GCJ=yes |
| 24527 | hardcode_shlibpath_var_GCJ=no |
| 24528 | ;; |
| 24529 | |
| 24530 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24531 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24532 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 24533 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24534 | hardcode_direct_GCJ=yes |
| 24535 | hardcode_shlibpath_var_GCJ=no |
| 24536 | ;; |
| 24537 | |
| 24538 | hpux9*) |
| 24539 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24540 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24541 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24542 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24543 | fi |
| 24544 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24545 | hardcode_libdir_separator_GCJ=: |
| 24546 | hardcode_direct_GCJ=yes |
| 24547 | |
| 24548 | # hardcode_minus_L: Not really in the search PATH, |
| 24549 | # but as the default location of the library. |
| 24550 | hardcode_minus_L_GCJ=yes |
| 24551 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24552 | ;; |
| 24553 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24554 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24555 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24556 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 24557 | else |
| 24558 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 24559 | fi |
| 24560 | if test "$with_gnu_ld" = no; then |
| 24561 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24562 | hardcode_libdir_separator_GCJ=: |
| 24563 | |
| 24564 | hardcode_direct_GCJ=yes |
| 24565 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24566 | |
| 24567 | # hardcode_minus_L: Not really in the search PATH, |
| 24568 | # but as the default location of the library. |
| 24569 | hardcode_minus_L_GCJ=yes |
| 24570 | fi |
| 24571 | ;; |
| 24572 | |
| 24573 | hpux11*) |
| 24574 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 24575 | case $host_cpu in |
| 24576 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24577 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24578 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24579 | ia64*) |
| 24580 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 24581 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24582 | *) |
| 24583 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 24584 | ;; |
| 24585 | esac |
| 24586 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24587 | case $host_cpu in |
| 24588 | hppa*64*) |
| 24589 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24590 | ;; |
| 24591 | ia64*) |
| 24592 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24593 | ;; |
| 24594 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24595 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24596 | ;; |
| 24597 | esac |
| 24598 | fi |
| 24599 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24600 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24601 | hardcode_libdir_separator_GCJ=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24602 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24603 | case $host_cpu in |
| 24604 | hppa*64*|ia64*) |
| 24605 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 24606 | hardcode_direct_GCJ=no |
| 24607 | hardcode_shlibpath_var_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24608 | ;; |
| 24609 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24610 | hardcode_direct_GCJ=yes |
| 24611 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24612 | |
| 24613 | # hardcode_minus_L: Not really in the search PATH, |
| 24614 | # but as the default location of the library. |
| 24615 | hardcode_minus_L_GCJ=yes |
| 24616 | ;; |
| 24617 | esac |
| 24618 | fi |
| 24619 | ;; |
| 24620 | |
| 24621 | irix5* | irix6* | nonstopux*) |
| 24622 | if test "$GCC" = yes; then |
| 24623 | 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' |
| 24624 | else |
| 24625 | 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' |
| 24626 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 24627 | fi |
| 24628 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24629 | hardcode_libdir_separator_GCJ=: |
| 24630 | link_all_deplibs_GCJ=yes |
| 24631 | ;; |
| 24632 | |
| 24633 | netbsd*) |
| 24634 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 24635 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 24636 | else |
| 24637 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 24638 | fi |
| 24639 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24640 | hardcode_direct_GCJ=yes |
| 24641 | hardcode_shlibpath_var_GCJ=no |
| 24642 | ;; |
| 24643 | |
| 24644 | newsos6) |
| 24645 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24646 | hardcode_direct_GCJ=yes |
| 24647 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24648 | hardcode_libdir_separator_GCJ=: |
| 24649 | hardcode_shlibpath_var_GCJ=no |
| 24650 | ;; |
| 24651 | |
| 24652 | openbsd*) |
| 24653 | hardcode_direct_GCJ=yes |
| 24654 | hardcode_shlibpath_var_GCJ=no |
| 24655 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 24656 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24657 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24658 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24659 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24660 | else |
| 24661 | case $host_os in |
| 24662 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 24663 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24664 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24665 | ;; |
| 24666 | *) |
| 24667 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 24668 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24669 | ;; |
| 24670 | esac |
| 24671 | fi |
| 24672 | ;; |
| 24673 | |
| 24674 | os2*) |
| 24675 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24676 | hardcode_minus_L_GCJ=yes |
| 24677 | allow_undefined_flag_GCJ=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24678 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24679 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 24680 | ;; |
| 24681 | |
| 24682 | osf3*) |
| 24683 | if test "$GCC" = yes; then |
| 24684 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 24685 | 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' |
| 24686 | else |
| 24687 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 24688 | 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' |
| 24689 | fi |
| 24690 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24691 | hardcode_libdir_separator_GCJ=: |
| 24692 | ;; |
| 24693 | |
| 24694 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 24695 | if test "$GCC" = yes; then |
| 24696 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 24697 | 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' |
| 24698 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24699 | else |
| 24700 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 24701 | 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' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24702 | 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~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24703 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24704 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24705 | # Both c and cxx compiler support -rpath directly |
| 24706 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 24707 | fi |
| 24708 | hardcode_libdir_separator_GCJ=: |
| 24709 | ;; |
| 24710 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24711 | solaris*) |
| 24712 | no_undefined_flag_GCJ=' -z text' |
| 24713 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24714 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24715 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24716 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 24717 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24718 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24719 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24720 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24721 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 24722 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24723 | fi |
| 24724 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24725 | hardcode_shlibpath_var_GCJ=no |
| 24726 | case $host_os in |
| 24727 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24728 | *) |
| 24729 | # The compiler driver will combine linker options so we |
| 24730 | # cannot just pass the convience library names through |
| 24731 | # without $wl, iff we do not link with $LD. |
| 24732 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 24733 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 24734 | case $wlarc in |
| 24735 | '') |
| 24736 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 24737 | *) |
| 24738 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
| 24739 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24740 | esac |
| 24741 | link_all_deplibs_GCJ=yes |
| 24742 | ;; |
| 24743 | |
| 24744 | sunos4*) |
| 24745 | if test "x$host_vendor" = xsequent; then |
| 24746 | # Use $CC to link under sequent, because it throws in some extra .o |
| 24747 | # files that make .init and .fini sections work. |
| 24748 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24749 | else |
| 24750 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 24751 | fi |
| 24752 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24753 | hardcode_direct_GCJ=yes |
| 24754 | hardcode_minus_L_GCJ=yes |
| 24755 | hardcode_shlibpath_var_GCJ=no |
| 24756 | ;; |
| 24757 | |
| 24758 | sysv4) |
| 24759 | case $host_vendor in |
| 24760 | sni) |
| 24761 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24762 | hardcode_direct_GCJ=yes # is this really true??? |
| 24763 | ;; |
| 24764 | siemens) |
| 24765 | ## LD is ld it makes a PLAMLIB |
| 24766 | ## CC just makes a GrossModule. |
| 24767 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 24768 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 24769 | hardcode_direct_GCJ=no |
| 24770 | ;; |
| 24771 | motorola) |
| 24772 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24773 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 24774 | ;; |
| 24775 | esac |
| 24776 | runpath_var='LD_RUN_PATH' |
| 24777 | hardcode_shlibpath_var_GCJ=no |
| 24778 | ;; |
| 24779 | |
| 24780 | sysv4.3*) |
| 24781 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24782 | hardcode_shlibpath_var_GCJ=no |
| 24783 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 24784 | ;; |
| 24785 | |
| 24786 | sysv4*MP*) |
| 24787 | if test -d /usr/nec; then |
| 24788 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24789 | hardcode_shlibpath_var_GCJ=no |
| 24790 | runpath_var=LD_RUN_PATH |
| 24791 | hardcode_runpath_var=yes |
| 24792 | ld_shlibs_GCJ=yes |
| 24793 | fi |
| 24794 | ;; |
| 24795 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24796 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 24797 | no_undefined_flag_GCJ='${wl}-z,text' |
| 24798 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24799 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24800 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24801 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24802 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24803 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24804 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24805 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24806 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24807 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24808 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24809 | ;; |
| 24810 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24811 | sysv5* | sco3.2v5* | sco5v6*) |
| 24812 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 24813 | # link with -lc, and that would cause any symbols used from libc to |
| 24814 | # always be unresolved, which means just about no library would |
| 24815 | # ever link correctly. If we're not using GNU ld we use -z text |
| 24816 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 24817 | # as -z defs. |
| 24818 | no_undefined_flag_GCJ='${wl}-z,text' |
| 24819 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 24820 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24821 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24822 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 24823 | hardcode_libdir_separator_GCJ=':' |
| 24824 | link_all_deplibs_GCJ=yes |
| 24825 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24826 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24827 | |
| 24828 | if test "$GCC" = yes; then |
| 24829 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24830 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24831 | else |
| 24832 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24833 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24834 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24835 | ;; |
| 24836 | |
| 24837 | uts4*) |
| 24838 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24839 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24840 | hardcode_shlibpath_var_GCJ=no |
| 24841 | ;; |
| 24842 | |
| 24843 | *) |
| 24844 | ld_shlibs_GCJ=no |
| 24845 | ;; |
| 24846 | esac |
| 24847 | fi |
| 24848 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24849 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 24850 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24851 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 24852 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24853 | # |
| 24854 | # Do we need to explicitly link libc? |
| 24855 | # |
| 24856 | case "x$archive_cmds_need_lc_GCJ" in |
| 24857 | x|xyes) |
| 24858 | # Assume -lc should be added |
| 24859 | archive_cmds_need_lc_GCJ=yes |
| 24860 | |
| 24861 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 24862 | case $archive_cmds_GCJ in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24863 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24864 | # FIXME: we may have to deal with multi-command sequences. |
| 24865 | ;; |
| 24866 | '$CC '*) |
| 24867 | # Test whether the compiler implicitly links with -lc since on some |
| 24868 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 24869 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24870 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 24871 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24872 | $rm conftest* |
| 24873 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24874 | |
| 24875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24876 | (eval $ac_compile) 2>&5 |
| 24877 | ac_status=$? |
| 24878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24879 | (exit $ac_status); } 2>conftest.err; then |
| 24880 | soname=conftest |
| 24881 | lib=conftest |
| 24882 | libobjs=conftest.$ac_objext |
| 24883 | deplibs= |
| 24884 | wl=$lt_prog_compiler_wl_GCJ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24885 | pic_flag=$lt_prog_compiler_pic_GCJ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24886 | compiler_flags=-v |
| 24887 | linker_flags=-v |
| 24888 | verstring= |
| 24889 | output_objdir=. |
| 24890 | libname=conftest |
| 24891 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 24892 | allow_undefined_flag_GCJ= |
| 24893 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 24894 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 24895 | ac_status=$? |
| 24896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24897 | (exit $ac_status); } |
| 24898 | then |
| 24899 | archive_cmds_need_lc_GCJ=no |
| 24900 | else |
| 24901 | archive_cmds_need_lc_GCJ=yes |
| 24902 | fi |
| 24903 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 24904 | else |
| 24905 | cat conftest.err 1>&5 |
| 24906 | fi |
| 24907 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24908 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 24909 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24910 | ;; |
| 24911 | esac |
| 24912 | fi |
| 24913 | ;; |
| 24914 | esac |
| 24915 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24916 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 24917 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24918 | library_names_spec= |
| 24919 | libname_spec='lib$name' |
| 24920 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24921 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24922 | postinstall_cmds= |
| 24923 | postuninstall_cmds= |
| 24924 | finish_cmds= |
| 24925 | finish_eval= |
| 24926 | shlibpath_var= |
| 24927 | shlibpath_overrides_runpath=unknown |
| 24928 | version_type=none |
| 24929 | dynamic_linker="$host_os ld.so" |
| 24930 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 24931 | if test "$GCC" = yes; then |
| 24932 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 24933 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 24934 | # if the path contains ";" then we assume it to be the separator |
| 24935 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 24936 | # assumed that no part of a normal pathname contains ";" but that should |
| 24937 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 24938 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 24939 | else |
| 24940 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 24941 | fi |
| 24942 | else |
| 24943 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 24944 | fi |
| 24945 | need_lib_prefix=unknown |
| 24946 | hardcode_into_libs=no |
| 24947 | |
| 24948 | # when you set need_version to no, make sure it does not cause -set_version |
| 24949 | # flags to be left without arguments |
| 24950 | need_version=unknown |
| 24951 | |
| 24952 | case $host_os in |
| 24953 | aix3*) |
| 24954 | version_type=linux |
| 24955 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 24956 | shlibpath_var=LIBPATH |
| 24957 | |
| 24958 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 24959 | soname_spec='${libname}${release}${shared_ext}$major' |
| 24960 | ;; |
| 24961 | |
| 24962 | aix4* | aix5*) |
| 24963 | version_type=linux |
| 24964 | need_lib_prefix=no |
| 24965 | need_version=no |
| 24966 | hardcode_into_libs=yes |
| 24967 | if test "$host_cpu" = ia64; then |
| 24968 | # AIX 5 supports IA64 |
| 24969 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 24970 | shlibpath_var=LD_LIBRARY_PATH |
| 24971 | else |
| 24972 | # With GCC up to 2.95.x, collect2 would create an import file |
| 24973 | # for dependence libraries. The import file would start with |
| 24974 | # the line `#! .'. This would cause the generated library to |
| 24975 | # depend on `.', always an invalid library. This was fixed in |
| 24976 | # development snapshots of GCC prior to 3.0. |
| 24977 | case $host_os in |
| 24978 | aix4 | aix4.[01] | aix4.[01].*) |
| 24979 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 24980 | echo ' yes ' |
| 24981 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 24982 | : |
| 24983 | else |
| 24984 | can_build_shared=no |
| 24985 | fi |
| 24986 | ;; |
| 24987 | esac |
| 24988 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 24989 | # soname into executable. Probably we can add versioning support to |
| 24990 | # collect2, so additional links can be useful in future. |
| 24991 | if test "$aix_use_runtimelinking" = yes; then |
| 24992 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 24993 | # instead of lib<name>.a to let people know that these are not |
| 24994 | # typical AIX shared libraries. |
| 24995 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 24996 | else |
| 24997 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 24998 | # and later when we are not doing run time linking. |
| 24999 | library_names_spec='${libname}${release}.a $libname.a' |
| 25000 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25001 | fi |
| 25002 | shlibpath_var=LIBPATH |
| 25003 | fi |
| 25004 | ;; |
| 25005 | |
| 25006 | amigaos*) |
| 25007 | library_names_spec='$libname.ixlibrary $libname.a' |
| 25008 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25009 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25010 | ;; |
| 25011 | |
| 25012 | beos*) |
| 25013 | library_names_spec='${libname}${shared_ext}' |
| 25014 | dynamic_linker="$host_os ld.so" |
| 25015 | shlibpath_var=LIBRARY_PATH |
| 25016 | ;; |
| 25017 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25018 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25019 | version_type=linux |
| 25020 | need_version=no |
| 25021 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25022 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25023 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 25024 | shlibpath_var=LD_LIBRARY_PATH |
| 25025 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 25026 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 25027 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 25028 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 25029 | # libtool to hard-code these into programs |
| 25030 | ;; |
| 25031 | |
| 25032 | cygwin* | mingw* | pw32*) |
| 25033 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25034 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25035 | need_version=no |
| 25036 | need_lib_prefix=no |
| 25037 | |
| 25038 | case $GCC,$host_os in |
| 25039 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 25040 | library_names_spec='$libname.dll.a' |
| 25041 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25042 | postinstall_cmds='base_file=`basename \${file}`~ |
| 25043 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 25044 | dldir=$destdir/`dirname \$dlpath`~ |
| 25045 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25046 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 25047 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25048 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 25049 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25050 | $rm \$dlpath' |
| 25051 | shlibpath_overrides_runpath=yes |
| 25052 | |
| 25053 | case $host_os in |
| 25054 | cygwin*) |
| 25055 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 25056 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25057 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25058 | ;; |
| 25059 | mingw*) |
| 25060 | # MinGW DLLs use traditional 'lib' prefix |
| 25061 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 25062 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25063 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 25064 | # It is most probably a Windows format PATH printed by |
| 25065 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 25066 | # path with ; separators, and with drive letters. We can handle the |
| 25067 | # drive letters (cygwin fileutils understands them), so leave them, |
| 25068 | # especially as we might pass files found there to a mingw objdump, |
| 25069 | # which wouldn't understand a cygwinified path. Ahh. |
| 25070 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25071 | else |
| 25072 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25073 | fi |
| 25074 | ;; |
| 25075 | pw32*) |
| 25076 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25077 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25078 | ;; |
| 25079 | esac |
| 25080 | ;; |
| 25081 | |
| 25082 | *) |
| 25083 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 25084 | ;; |
| 25085 | esac |
| 25086 | dynamic_linker='Win32 ld.exe' |
| 25087 | # FIXME: first we should search . and the directory the executable is in |
| 25088 | shlibpath_var=PATH |
| 25089 | ;; |
| 25090 | |
| 25091 | darwin* | rhapsody*) |
| 25092 | dynamic_linker="$host_os dyld" |
| 25093 | version_type=darwin |
| 25094 | need_lib_prefix=no |
| 25095 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25096 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25097 | soname_spec='${libname}${release}${major}$shared_ext' |
| 25098 | shlibpath_overrides_runpath=yes |
| 25099 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25100 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25101 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25102 | if test "$GCC" = yes; then |
| 25103 | 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"` |
| 25104 | else |
| 25105 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25106 | fi |
| 25107 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 25108 | ;; |
| 25109 | |
| 25110 | dgux*) |
| 25111 | version_type=linux |
| 25112 | need_lib_prefix=no |
| 25113 | need_version=no |
| 25114 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 25115 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25116 | shlibpath_var=LD_LIBRARY_PATH |
| 25117 | ;; |
| 25118 | |
| 25119 | freebsd1*) |
| 25120 | dynamic_linker=no |
| 25121 | ;; |
| 25122 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25123 | kfreebsd*-gnu) |
| 25124 | version_type=linux |
| 25125 | need_lib_prefix=no |
| 25126 | need_version=no |
| 25127 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25128 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25129 | shlibpath_var=LD_LIBRARY_PATH |
| 25130 | shlibpath_overrides_runpath=no |
| 25131 | hardcode_into_libs=yes |
| 25132 | dynamic_linker='GNU ld.so' |
| 25133 | ;; |
| 25134 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25135 | freebsd* | dragonfly*) |
| 25136 | # DragonFly does not have aout. When/if they implement a new |
| 25137 | # versioning mechanism, adjust this. |
| 25138 | if test -x /usr/bin/objformat; then |
| 25139 | objformat=`/usr/bin/objformat` |
| 25140 | else |
| 25141 | case $host_os in |
| 25142 | freebsd[123]*) objformat=aout ;; |
| 25143 | *) objformat=elf ;; |
| 25144 | esac |
| 25145 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25146 | version_type=freebsd-$objformat |
| 25147 | case $version_type in |
| 25148 | freebsd-elf*) |
| 25149 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25150 | need_version=no |
| 25151 | need_lib_prefix=no |
| 25152 | ;; |
| 25153 | freebsd-*) |
| 25154 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 25155 | need_version=yes |
| 25156 | ;; |
| 25157 | esac |
| 25158 | shlibpath_var=LD_LIBRARY_PATH |
| 25159 | case $host_os in |
| 25160 | freebsd2*) |
| 25161 | shlibpath_overrides_runpath=yes |
| 25162 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25163 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25164 | shlibpath_overrides_runpath=yes |
| 25165 | hardcode_into_libs=yes |
| 25166 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25167 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 25168 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25169 | shlibpath_overrides_runpath=no |
| 25170 | hardcode_into_libs=yes |
| 25171 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25172 | freebsd*) # from 4.6 on |
| 25173 | shlibpath_overrides_runpath=yes |
| 25174 | hardcode_into_libs=yes |
| 25175 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25176 | esac |
| 25177 | ;; |
| 25178 | |
| 25179 | gnu*) |
| 25180 | version_type=linux |
| 25181 | need_lib_prefix=no |
| 25182 | need_version=no |
| 25183 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 25184 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25185 | shlibpath_var=LD_LIBRARY_PATH |
| 25186 | hardcode_into_libs=yes |
| 25187 | ;; |
| 25188 | |
| 25189 | hpux9* | hpux10* | hpux11*) |
| 25190 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 25191 | # link against other versions. |
| 25192 | version_type=sunos |
| 25193 | need_lib_prefix=no |
| 25194 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25195 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25196 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25197 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25198 | hardcode_into_libs=yes |
| 25199 | dynamic_linker="$host_os dld.so" |
| 25200 | shlibpath_var=LD_LIBRARY_PATH |
| 25201 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25202 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25203 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25204 | if test "X$HPUX_IA64_MODE" = X32; then |
| 25205 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 25206 | else |
| 25207 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 25208 | fi |
| 25209 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25210 | ;; |
| 25211 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25212 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25213 | hardcode_into_libs=yes |
| 25214 | dynamic_linker="$host_os dld.sl" |
| 25215 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 25216 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25217 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25218 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25219 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 25220 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25221 | ;; |
| 25222 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25223 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25224 | dynamic_linker="$host_os dld.sl" |
| 25225 | shlibpath_var=SHLIB_PATH |
| 25226 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 25227 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25228 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25229 | ;; |
| 25230 | esac |
| 25231 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 25232 | postinstall_cmds='chmod 555 $lib' |
| 25233 | ;; |
| 25234 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25235 | interix3*) |
| 25236 | version_type=linux |
| 25237 | need_lib_prefix=no |
| 25238 | need_version=no |
| 25239 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25240 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25241 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 25242 | shlibpath_var=LD_LIBRARY_PATH |
| 25243 | shlibpath_overrides_runpath=no |
| 25244 | hardcode_into_libs=yes |
| 25245 | ;; |
| 25246 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25247 | irix5* | irix6* | nonstopux*) |
| 25248 | case $host_os in |
| 25249 | nonstopux*) version_type=nonstopux ;; |
| 25250 | *) |
| 25251 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 25252 | version_type=linux |
| 25253 | else |
| 25254 | version_type=irix |
| 25255 | fi ;; |
| 25256 | esac |
| 25257 | need_lib_prefix=no |
| 25258 | need_version=no |
| 25259 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25260 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25261 | case $host_os in |
| 25262 | irix5* | nonstopux*) |
| 25263 | libsuff= shlibsuff= |
| 25264 | ;; |
| 25265 | *) |
| 25266 | case $LD in # libtool.m4 will add one of these switches to LD |
| 25267 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 25268 | libsuff= shlibsuff= libmagic=32-bit;; |
| 25269 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 25270 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 25271 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 25272 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 25273 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 25274 | esac |
| 25275 | ;; |
| 25276 | esac |
| 25277 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 25278 | shlibpath_overrides_runpath=no |
| 25279 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 25280 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 25281 | hardcode_into_libs=yes |
| 25282 | ;; |
| 25283 | |
| 25284 | # No shared lib support for Linux oldld, aout, or coff. |
| 25285 | linux*oldld* | linux*aout* | linux*coff*) |
| 25286 | dynamic_linker=no |
| 25287 | ;; |
| 25288 | |
| 25289 | # This must be Linux ELF. |
| 25290 | linux*) |
| 25291 | version_type=linux |
| 25292 | need_lib_prefix=no |
| 25293 | need_version=no |
| 25294 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25295 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25296 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 25297 | shlibpath_var=LD_LIBRARY_PATH |
| 25298 | shlibpath_overrides_runpath=no |
| 25299 | # This implies no fast_install, which is unacceptable. |
| 25300 | # Some rework will be needed to allow for fast_install |
| 25301 | # before this can be enabled. |
| 25302 | hardcode_into_libs=yes |
| 25303 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25304 | # Append ld.so.conf contents to the search path |
| 25305 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25306 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25307 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 25308 | fi |
| 25309 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25310 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 25311 | # powerpc, because MkLinux only supported shared libraries with the |
| 25312 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 25313 | # most powerpc-linux boxes support dynamic linking these days and |
| 25314 | # people can always --disable-shared, the test was removed, and we |
| 25315 | # assume the GNU/Linux dynamic linker is in use. |
| 25316 | dynamic_linker='GNU/Linux ld.so' |
| 25317 | ;; |
| 25318 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25319 | knetbsd*-gnu) |
| 25320 | version_type=linux |
| 25321 | need_lib_prefix=no |
| 25322 | need_version=no |
| 25323 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25324 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25325 | shlibpath_var=LD_LIBRARY_PATH |
| 25326 | shlibpath_overrides_runpath=no |
| 25327 | hardcode_into_libs=yes |
| 25328 | dynamic_linker='GNU ld.so' |
| 25329 | ;; |
| 25330 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25331 | netbsd*) |
| 25332 | version_type=sunos |
| 25333 | need_lib_prefix=no |
| 25334 | need_version=no |
| 25335 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 25336 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25337 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 25338 | dynamic_linker='NetBSD (a.out) ld.so' |
| 25339 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25340 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25341 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25342 | dynamic_linker='NetBSD ld.elf_so' |
| 25343 | fi |
| 25344 | shlibpath_var=LD_LIBRARY_PATH |
| 25345 | shlibpath_overrides_runpath=yes |
| 25346 | hardcode_into_libs=yes |
| 25347 | ;; |
| 25348 | |
| 25349 | newsos6) |
| 25350 | version_type=linux |
| 25351 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25352 | shlibpath_var=LD_LIBRARY_PATH |
| 25353 | shlibpath_overrides_runpath=yes |
| 25354 | ;; |
| 25355 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25356 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25357 | version_type=linux |
| 25358 | need_lib_prefix=no |
| 25359 | need_version=no |
| 25360 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25361 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25362 | shlibpath_var=LD_LIBRARY_PATH |
| 25363 | shlibpath_overrides_runpath=yes |
| 25364 | ;; |
| 25365 | |
| 25366 | openbsd*) |
| 25367 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25368 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25369 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25370 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 25371 | case $host_os in |
| 25372 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 25373 | *) need_version=no ;; |
| 25374 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25375 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25376 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 25377 | shlibpath_var=LD_LIBRARY_PATH |
| 25378 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 25379 | case $host_os in |
| 25380 | openbsd2.[89] | openbsd2.[89].*) |
| 25381 | shlibpath_overrides_runpath=no |
| 25382 | ;; |
| 25383 | *) |
| 25384 | shlibpath_overrides_runpath=yes |
| 25385 | ;; |
| 25386 | esac |
| 25387 | else |
| 25388 | shlibpath_overrides_runpath=yes |
| 25389 | fi |
| 25390 | ;; |
| 25391 | |
| 25392 | os2*) |
| 25393 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25394 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25395 | need_lib_prefix=no |
| 25396 | library_names_spec='$libname${shared_ext} $libname.a' |
| 25397 | dynamic_linker='OS/2 ld.exe' |
| 25398 | shlibpath_var=LIBPATH |
| 25399 | ;; |
| 25400 | |
| 25401 | osf3* | osf4* | osf5*) |
| 25402 | version_type=osf |
| 25403 | need_lib_prefix=no |
| 25404 | need_version=no |
| 25405 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25406 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25407 | shlibpath_var=LD_LIBRARY_PATH |
| 25408 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 25409 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 25410 | ;; |
| 25411 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25412 | solaris*) |
| 25413 | version_type=linux |
| 25414 | need_lib_prefix=no |
| 25415 | need_version=no |
| 25416 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25417 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25418 | shlibpath_var=LD_LIBRARY_PATH |
| 25419 | shlibpath_overrides_runpath=yes |
| 25420 | hardcode_into_libs=yes |
| 25421 | # ldd complains unless libraries are executable |
| 25422 | postinstall_cmds='chmod +x $lib' |
| 25423 | ;; |
| 25424 | |
| 25425 | sunos4*) |
| 25426 | version_type=sunos |
| 25427 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25428 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 25429 | shlibpath_var=LD_LIBRARY_PATH |
| 25430 | shlibpath_overrides_runpath=yes |
| 25431 | if test "$with_gnu_ld" = yes; then |
| 25432 | need_lib_prefix=no |
| 25433 | fi |
| 25434 | need_version=yes |
| 25435 | ;; |
| 25436 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25437 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25438 | version_type=linux |
| 25439 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25440 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25441 | shlibpath_var=LD_LIBRARY_PATH |
| 25442 | case $host_vendor in |
| 25443 | sni) |
| 25444 | shlibpath_overrides_runpath=no |
| 25445 | need_lib_prefix=no |
| 25446 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 25447 | runpath_var=LD_RUN_PATH |
| 25448 | ;; |
| 25449 | siemens) |
| 25450 | need_lib_prefix=no |
| 25451 | ;; |
| 25452 | motorola) |
| 25453 | need_lib_prefix=no |
| 25454 | need_version=no |
| 25455 | shlibpath_overrides_runpath=no |
| 25456 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 25457 | ;; |
| 25458 | esac |
| 25459 | ;; |
| 25460 | |
| 25461 | sysv4*MP*) |
| 25462 | if test -d /usr/nec ;then |
| 25463 | version_type=linux |
| 25464 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 25465 | soname_spec='$libname${shared_ext}.$major' |
| 25466 | shlibpath_var=LD_LIBRARY_PATH |
| 25467 | fi |
| 25468 | ;; |
| 25469 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25470 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 25471 | version_type=freebsd-elf |
| 25472 | need_lib_prefix=no |
| 25473 | need_version=no |
| 25474 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25475 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25476 | shlibpath_var=LD_LIBRARY_PATH |
| 25477 | hardcode_into_libs=yes |
| 25478 | if test "$with_gnu_ld" = yes; then |
| 25479 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 25480 | shlibpath_overrides_runpath=no |
| 25481 | else |
| 25482 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 25483 | shlibpath_overrides_runpath=yes |
| 25484 | case $host_os in |
| 25485 | sco3.2v5*) |
| 25486 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 25487 | ;; |
| 25488 | esac |
| 25489 | fi |
| 25490 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 25491 | ;; |
| 25492 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25493 | uts4*) |
| 25494 | version_type=linux |
| 25495 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25496 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25497 | shlibpath_var=LD_LIBRARY_PATH |
| 25498 | ;; |
| 25499 | |
| 25500 | *) |
| 25501 | dynamic_linker=no |
| 25502 | ;; |
| 25503 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25504 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 25505 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25506 | test "$dynamic_linker" = no && can_build_shared=no |
| 25507 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25508 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 25509 | if test "$GCC" = yes; then |
| 25510 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 25511 | fi |
| 25512 | |
| 25513 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 25514 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25515 | hardcode_action_GCJ= |
| 25516 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 25517 | test -n "$runpath_var_GCJ" || \ |
| 25518 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 25519 | |
| 25520 | # We can hardcode non-existant directories. |
| 25521 | if test "$hardcode_direct_GCJ" != no && |
| 25522 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 25523 | # have to relink, otherwise we might link with an installed library |
| 25524 | # when we should be linking with a yet-to-be-installed one |
| 25525 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 25526 | test "$hardcode_minus_L_GCJ" != no; then |
| 25527 | # Linking always hardcodes the temporary library directory. |
| 25528 | hardcode_action_GCJ=relink |
| 25529 | else |
| 25530 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 25531 | hardcode_action_GCJ=immediate |
| 25532 | fi |
| 25533 | else |
| 25534 | # We cannot hardcode anything, or else we can only hardcode existing |
| 25535 | # directories. |
| 25536 | hardcode_action_GCJ=unsupported |
| 25537 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25538 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 25539 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25540 | |
| 25541 | if test "$hardcode_action_GCJ" = relink; then |
| 25542 | # Fast installation is not supported |
| 25543 | enable_fast_install=no |
| 25544 | elif test "$shlibpath_overrides_runpath" = yes || |
| 25545 | test "$enable_shared" = no; then |
| 25546 | # Fast installation is not necessary |
| 25547 | enable_fast_install=needless |
| 25548 | fi |
| 25549 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25550 | |
| 25551 | # The else clause should only fire when bootstrapping the |
| 25552 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 25553 | # with your package, and you will get complaints that there are |
| 25554 | # no rules to generate ltmain.sh. |
| 25555 | if test -f "$ltmain"; then |
| 25556 | # See if we are running on zsh, and set the options which allow our commands through |
| 25557 | # without removal of \ escapes. |
| 25558 | if test -n "${ZSH_VERSION+set}" ; then |
| 25559 | setopt NO_GLOB_SUBST |
| 25560 | fi |
| 25561 | # Now quote all the things that may contain metacharacters while being |
| 25562 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 25563 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25564 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25565 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25566 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 25567 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 25568 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 25569 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 25570 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 25571 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 25572 | old_postinstall_cmds old_postuninstall_cmds \ |
| 25573 | compiler_GCJ \ |
| 25574 | CC_GCJ \ |
| 25575 | LD_GCJ \ |
| 25576 | lt_prog_compiler_wl_GCJ \ |
| 25577 | lt_prog_compiler_pic_GCJ \ |
| 25578 | lt_prog_compiler_static_GCJ \ |
| 25579 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 25580 | export_dynamic_flag_spec_GCJ \ |
| 25581 | thread_safe_flag_spec_GCJ \ |
| 25582 | whole_archive_flag_spec_GCJ \ |
| 25583 | enable_shared_with_static_runtimes_GCJ \ |
| 25584 | old_archive_cmds_GCJ \ |
| 25585 | old_archive_from_new_cmds_GCJ \ |
| 25586 | predep_objects_GCJ \ |
| 25587 | postdep_objects_GCJ \ |
| 25588 | predeps_GCJ \ |
| 25589 | postdeps_GCJ \ |
| 25590 | compiler_lib_search_path_GCJ \ |
| 25591 | archive_cmds_GCJ \ |
| 25592 | archive_expsym_cmds_GCJ \ |
| 25593 | postinstall_cmds_GCJ \ |
| 25594 | postuninstall_cmds_GCJ \ |
| 25595 | old_archive_from_expsyms_cmds_GCJ \ |
| 25596 | allow_undefined_flag_GCJ \ |
| 25597 | no_undefined_flag_GCJ \ |
| 25598 | export_symbols_cmds_GCJ \ |
| 25599 | hardcode_libdir_flag_spec_GCJ \ |
| 25600 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 25601 | hardcode_libdir_separator_GCJ \ |
| 25602 | hardcode_automatic_GCJ \ |
| 25603 | module_cmds_GCJ \ |
| 25604 | module_expsym_cmds_GCJ \ |
| 25605 | lt_cv_prog_compiler_c_o_GCJ \ |
| 25606 | exclude_expsyms_GCJ \ |
| 25607 | include_expsyms_GCJ; do |
| 25608 | |
| 25609 | case $var in |
| 25610 | old_archive_cmds_GCJ | \ |
| 25611 | old_archive_from_new_cmds_GCJ | \ |
| 25612 | archive_cmds_GCJ | \ |
| 25613 | archive_expsym_cmds_GCJ | \ |
| 25614 | module_cmds_GCJ | \ |
| 25615 | module_expsym_cmds_GCJ | \ |
| 25616 | old_archive_from_expsyms_cmds_GCJ | \ |
| 25617 | export_symbols_cmds_GCJ | \ |
| 25618 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 25619 | postinstall_cmds | postuninstall_cmds | \ |
| 25620 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 25621 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 25622 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25623 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25624 | ;; |
| 25625 | *) |
| 25626 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 25627 | ;; |
| 25628 | esac |
| 25629 | done |
| 25630 | |
| 25631 | case $lt_echo in |
| 25632 | *'\$0 --fallback-echo"') |
| 25633 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 25634 | ;; |
| 25635 | esac |
| 25636 | |
| 25637 | cfgfile="$ofile" |
| 25638 | |
| 25639 | cat <<__EOF__ >> "$cfgfile" |
| 25640 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 25641 | |
| 25642 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 25643 | |
| 25644 | # Shell to use when invoking shell scripts. |
| 25645 | SHELL=$lt_SHELL |
| 25646 | |
| 25647 | # Whether or not to build shared libraries. |
| 25648 | build_libtool_libs=$enable_shared |
| 25649 | |
| 25650 | # Whether or not to build static libraries. |
| 25651 | build_old_libs=$enable_static |
| 25652 | |
| 25653 | # Whether or not to add -lc for building shared libraries. |
| 25654 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 25655 | |
| 25656 | # Whether or not to disallow shared libs when runtime libs are static |
| 25657 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 25658 | |
| 25659 | # Whether or not to optimize for fast installation. |
| 25660 | fast_install=$enable_fast_install |
| 25661 | |
| 25662 | # The host system. |
| 25663 | host_alias=$host_alias |
| 25664 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25665 | host_os=$host_os |
| 25666 | |
| 25667 | # The build system. |
| 25668 | build_alias=$build_alias |
| 25669 | build=$build |
| 25670 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25671 | |
| 25672 | # An echo program that does not interpret backslashes. |
| 25673 | echo=$lt_echo |
| 25674 | |
| 25675 | # The archiver. |
| 25676 | AR=$lt_AR |
| 25677 | AR_FLAGS=$lt_AR_FLAGS |
| 25678 | |
| 25679 | # A C compiler. |
| 25680 | LTCC=$lt_LTCC |
| 25681 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25682 | # LTCC compiler flags. |
| 25683 | LTCFLAGS=$lt_LTCFLAGS |
| 25684 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25685 | # A language-specific compiler. |
| 25686 | CC=$lt_compiler_GCJ |
| 25687 | |
| 25688 | # Is the compiler the GNU C compiler? |
| 25689 | with_gcc=$GCC_GCJ |
| 25690 | |
| 25691 | # An ERE matcher. |
| 25692 | EGREP=$lt_EGREP |
| 25693 | |
| 25694 | # The linker used to build libraries. |
| 25695 | LD=$lt_LD_GCJ |
| 25696 | |
| 25697 | # Whether we need hard or soft links. |
| 25698 | LN_S=$lt_LN_S |
| 25699 | |
| 25700 | # A BSD-compatible nm program. |
| 25701 | NM=$lt_NM |
| 25702 | |
| 25703 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25704 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25705 | |
| 25706 | # Used to examine libraries when file_magic_cmd begins "file" |
| 25707 | MAGIC_CMD=$MAGIC_CMD |
| 25708 | |
| 25709 | # Used on cygwin: DLL creation program. |
| 25710 | DLLTOOL="$DLLTOOL" |
| 25711 | |
| 25712 | # Used on cygwin: object dumper. |
| 25713 | OBJDUMP="$OBJDUMP" |
| 25714 | |
| 25715 | # Used on cygwin: assembler. |
| 25716 | AS="$AS" |
| 25717 | |
| 25718 | # The name of the directory that contains temporary libtool files. |
| 25719 | objdir=$objdir |
| 25720 | |
| 25721 | # How to create reloadable object files. |
| 25722 | reload_flag=$lt_reload_flag |
| 25723 | reload_cmds=$lt_reload_cmds |
| 25724 | |
| 25725 | # How to pass a linker flag through the compiler. |
| 25726 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 25727 | |
| 25728 | # Object file suffix (normally "o"). |
| 25729 | objext="$ac_objext" |
| 25730 | |
| 25731 | # Old archive suffix (normally "a"). |
| 25732 | libext="$libext" |
| 25733 | |
| 25734 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25735 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25736 | |
| 25737 | # Executable file suffix (normally ""). |
| 25738 | exeext="$exeext" |
| 25739 | |
| 25740 | # Additional compiler flags for building library objects. |
| 25741 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 25742 | pic_mode=$pic_mode |
| 25743 | |
| 25744 | # What is the maximum length of a command? |
| 25745 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 25746 | |
| 25747 | # Does compiler simultaneously support -c and -o options? |
| 25748 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 25749 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25750 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25751 | need_locks=$lt_need_locks |
| 25752 | |
| 25753 | # Do we need the lib prefix for modules? |
| 25754 | need_lib_prefix=$need_lib_prefix |
| 25755 | |
| 25756 | # Do we need a version for libraries? |
| 25757 | need_version=$need_version |
| 25758 | |
| 25759 | # Whether dlopen is supported. |
| 25760 | dlopen_support=$enable_dlopen |
| 25761 | |
| 25762 | # Whether dlopen of programs is supported. |
| 25763 | dlopen_self=$enable_dlopen_self |
| 25764 | |
| 25765 | # Whether dlopen of statically linked programs is supported. |
| 25766 | dlopen_self_static=$enable_dlopen_self_static |
| 25767 | |
| 25768 | # Compiler flag to prevent dynamic linking. |
| 25769 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 25770 | |
| 25771 | # Compiler flag to turn off builtin functions. |
| 25772 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 25773 | |
| 25774 | # Compiler flag to allow reflexive dlopens. |
| 25775 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 25776 | |
| 25777 | # Compiler flag to generate shared objects directly from archives. |
| 25778 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 25779 | |
| 25780 | # Compiler flag to generate thread-safe objects. |
| 25781 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 25782 | |
| 25783 | # Library versioning type. |
| 25784 | version_type=$version_type |
| 25785 | |
| 25786 | # Format of library name prefix. |
| 25787 | libname_spec=$lt_libname_spec |
| 25788 | |
| 25789 | # List of archive names. First name is the real one, the rest are links. |
| 25790 | # The last name is the one that the linker finds with -lNAME. |
| 25791 | library_names_spec=$lt_library_names_spec |
| 25792 | |
| 25793 | # The coded name of the library, if different from the real name. |
| 25794 | soname_spec=$lt_soname_spec |
| 25795 | |
| 25796 | # Commands used to build and install an old-style archive. |
| 25797 | RANLIB=$lt_RANLIB |
| 25798 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 25799 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 25800 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 25801 | |
| 25802 | # Create an old-style archive from a shared archive. |
| 25803 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 25804 | |
| 25805 | # Create a temporary old-style archive to link instead of a shared archive. |
| 25806 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 25807 | |
| 25808 | # Commands used to build and install a shared archive. |
| 25809 | archive_cmds=$lt_archive_cmds_GCJ |
| 25810 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 25811 | postinstall_cmds=$lt_postinstall_cmds |
| 25812 | postuninstall_cmds=$lt_postuninstall_cmds |
| 25813 | |
| 25814 | # Commands used to build a loadable module (assumed same as above if empty) |
| 25815 | module_cmds=$lt_module_cmds_GCJ |
| 25816 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 25817 | |
| 25818 | # Commands to strip libraries. |
| 25819 | old_striplib=$lt_old_striplib |
| 25820 | striplib=$lt_striplib |
| 25821 | |
| 25822 | # Dependencies to place before the objects being linked to create a |
| 25823 | # shared library. |
| 25824 | predep_objects=$lt_predep_objects_GCJ |
| 25825 | |
| 25826 | # Dependencies to place after the objects being linked to create a |
| 25827 | # shared library. |
| 25828 | postdep_objects=$lt_postdep_objects_GCJ |
| 25829 | |
| 25830 | # Dependencies to place before the objects being linked to create a |
| 25831 | # shared library. |
| 25832 | predeps=$lt_predeps_GCJ |
| 25833 | |
| 25834 | # Dependencies to place after the objects being linked to create a |
| 25835 | # shared library. |
| 25836 | postdeps=$lt_postdeps_GCJ |
| 25837 | |
| 25838 | # The library search path used internally by the compiler when linking |
| 25839 | # a shared library. |
| 25840 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 25841 | |
| 25842 | # Method to check whether dependent libraries are shared objects. |
| 25843 | deplibs_check_method=$lt_deplibs_check_method |
| 25844 | |
| 25845 | # Command to use when deplibs_check_method == file_magic. |
| 25846 | file_magic_cmd=$lt_file_magic_cmd |
| 25847 | |
| 25848 | # Flag that allows shared libraries with undefined symbols to be built. |
| 25849 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 25850 | |
| 25851 | # Flag that forces no undefined symbols. |
| 25852 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 25853 | |
| 25854 | # Commands used to finish a libtool library installation in a directory. |
| 25855 | finish_cmds=$lt_finish_cmds |
| 25856 | |
| 25857 | # Same as above, but a single script fragment to be evaled but not shown. |
| 25858 | finish_eval=$lt_finish_eval |
| 25859 | |
| 25860 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 25861 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 25862 | |
| 25863 | # Transform the output of nm in a proper C declaration |
| 25864 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 25865 | |
| 25866 | # Transform the output of nm in a C name address pair |
| 25867 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 25868 | |
| 25869 | # This is the shared library runtime path variable. |
| 25870 | runpath_var=$runpath_var |
| 25871 | |
| 25872 | # This is the shared library path variable. |
| 25873 | shlibpath_var=$shlibpath_var |
| 25874 | |
| 25875 | # Is shlibpath searched before the hard-coded library search path? |
| 25876 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 25877 | |
| 25878 | # How to hardcode a shared library path into an executable. |
| 25879 | hardcode_action=$hardcode_action_GCJ |
| 25880 | |
| 25881 | # Whether we should hardcode library paths into libraries. |
| 25882 | hardcode_into_libs=$hardcode_into_libs |
| 25883 | |
| 25884 | # Flag to hardcode \$libdir into a binary during linking. |
| 25885 | # This must work even if \$libdir does not exist. |
| 25886 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 25887 | |
| 25888 | # If ld is used when linking, flag to hardcode \$libdir into |
| 25889 | # a binary during linking. This must work even if \$libdir does |
| 25890 | # not exist. |
| 25891 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 25892 | |
| 25893 | # Whether we need a single -rpath flag with a separated argument. |
| 25894 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 25895 | |
| 25896 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 25897 | # resulting binary. |
| 25898 | hardcode_direct=$hardcode_direct_GCJ |
| 25899 | |
| 25900 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 25901 | # resulting binary. |
| 25902 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 25903 | |
| 25904 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 25905 | # the resulting binary. |
| 25906 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 25907 | |
| 25908 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 25909 | # and all subsequent libraries and executables linked against it. |
| 25910 | hardcode_automatic=$hardcode_automatic_GCJ |
| 25911 | |
| 25912 | # Variables whose values should be saved in libtool wrapper scripts and |
| 25913 | # restored at relink time. |
| 25914 | variables_saved_for_relink="$variables_saved_for_relink" |
| 25915 | |
| 25916 | # Whether libtool must link a program against all its dependency libraries. |
| 25917 | link_all_deplibs=$link_all_deplibs_GCJ |
| 25918 | |
| 25919 | # Compile-time system search path for libraries |
| 25920 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 25921 | |
| 25922 | # Run-time system search path for libraries |
| 25923 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 25924 | |
| 25925 | # Fix the shell variable \$srcfile for the compiler. |
| 25926 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 25927 | |
| 25928 | # Set to yes if exported symbols are required. |
| 25929 | always_export_symbols=$always_export_symbols_GCJ |
| 25930 | |
| 25931 | # The commands to list exported symbols. |
| 25932 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 25933 | |
| 25934 | # The commands to extract the exported symbol list from a shared archive. |
| 25935 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 25936 | |
| 25937 | # Symbols that should not be listed in the preloaded symbols. |
| 25938 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 25939 | |
| 25940 | # Symbols that must always be exported. |
| 25941 | include_expsyms=$lt_include_expsyms_GCJ |
| 25942 | |
| 25943 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 25944 | |
| 25945 | __EOF__ |
| 25946 | |
| 25947 | |
| 25948 | else |
| 25949 | # If there is no Makefile yet, we rely on a make rule to execute |
| 25950 | # `config.status --recheck' to rerun these tests and create the |
| 25951 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25952 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 25953 | if test -f "$ltmain_in"; then |
| 25954 | test -f Makefile && make "$ltmain" |
| 25955 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25956 | fi |
| 25957 | |
| 25958 | |
| 25959 | ac_ext=c |
| 25960 | ac_cpp='$CPP $CPPFLAGS' |
| 25961 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25962 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25963 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 25964 | |
| 25965 | CC="$lt_save_CC" |
| 25966 | |
| 25967 | else |
| 25968 | tagname="" |
| 25969 | fi |
| 25970 | ;; |
| 25971 | |
| 25972 | RC) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25973 | ac_ext=c |
| 25974 | ac_cpp='$CPP $CPPFLAGS' |
| 25975 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25976 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25977 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25978 | |
| 25979 | |
| 25980 | # Source file extension for RC test sources. |
| 25981 | ac_ext=rc |
| 25982 | |
| 25983 | # Object file extension for compiled RC test sources. |
| 25984 | objext=o |
| 25985 | objext_RC=$objext |
| 25986 | |
| 25987 | # Code to be used in simple compile tests |
| 25988 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 25989 | |
| 25990 | # Code to be used in simple link tests |
| 25991 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 25992 | |
| 25993 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 25994 | |
| 25995 | # If no C compiler was specified, use CC. |
| 25996 | LTCC=${LTCC-"$CC"} |
| 25997 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25998 | # If no C compiler flags were specified, use CFLAGS. |
| 25999 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 26000 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26001 | # Allow CC to be a program name with arguments. |
| 26002 | compiler=$CC |
| 26003 | |
| 26004 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26005 | # save warnings/boilerplate of simple test code |
| 26006 | ac_outfile=conftest.$ac_objext |
| 26007 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 26008 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26009 | _lt_compiler_boilerplate=`cat conftest.err` |
| 26010 | $rm conftest* |
| 26011 | |
| 26012 | ac_outfile=conftest.$ac_objext |
| 26013 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 26014 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26015 | _lt_linker_boilerplate=`cat conftest.err` |
| 26016 | $rm conftest* |
| 26017 | |
| 26018 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26019 | # Allow CC to be a program name with arguments. |
| 26020 | lt_save_CC="$CC" |
| 26021 | CC=${RC-"windres"} |
| 26022 | compiler=$CC |
| 26023 | compiler_RC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26024 | for cc_temp in $compiler""; do |
| 26025 | case $cc_temp in |
| 26026 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 26027 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 26028 | \-*) ;; |
| 26029 | *) break;; |
| 26030 | esac |
| 26031 | done |
| 26032 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 26033 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26034 | lt_cv_prog_compiler_c_o_RC=yes |
| 26035 | |
| 26036 | # The else clause should only fire when bootstrapping the |
| 26037 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 26038 | # with your package, and you will get complaints that there are |
| 26039 | # no rules to generate ltmain.sh. |
| 26040 | if test -f "$ltmain"; then |
| 26041 | # See if we are running on zsh, and set the options which allow our commands through |
| 26042 | # without removal of \ escapes. |
| 26043 | if test -n "${ZSH_VERSION+set}" ; then |
| 26044 | setopt NO_GLOB_SUBST |
| 26045 | fi |
| 26046 | # Now quote all the things that may contain metacharacters while being |
| 26047 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 26048 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26049 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26050 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26051 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 26052 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 26053 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 26054 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 26055 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 26056 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 26057 | old_postinstall_cmds old_postuninstall_cmds \ |
| 26058 | compiler_RC \ |
| 26059 | CC_RC \ |
| 26060 | LD_RC \ |
| 26061 | lt_prog_compiler_wl_RC \ |
| 26062 | lt_prog_compiler_pic_RC \ |
| 26063 | lt_prog_compiler_static_RC \ |
| 26064 | lt_prog_compiler_no_builtin_flag_RC \ |
| 26065 | export_dynamic_flag_spec_RC \ |
| 26066 | thread_safe_flag_spec_RC \ |
| 26067 | whole_archive_flag_spec_RC \ |
| 26068 | enable_shared_with_static_runtimes_RC \ |
| 26069 | old_archive_cmds_RC \ |
| 26070 | old_archive_from_new_cmds_RC \ |
| 26071 | predep_objects_RC \ |
| 26072 | postdep_objects_RC \ |
| 26073 | predeps_RC \ |
| 26074 | postdeps_RC \ |
| 26075 | compiler_lib_search_path_RC \ |
| 26076 | archive_cmds_RC \ |
| 26077 | archive_expsym_cmds_RC \ |
| 26078 | postinstall_cmds_RC \ |
| 26079 | postuninstall_cmds_RC \ |
| 26080 | old_archive_from_expsyms_cmds_RC \ |
| 26081 | allow_undefined_flag_RC \ |
| 26082 | no_undefined_flag_RC \ |
| 26083 | export_symbols_cmds_RC \ |
| 26084 | hardcode_libdir_flag_spec_RC \ |
| 26085 | hardcode_libdir_flag_spec_ld_RC \ |
| 26086 | hardcode_libdir_separator_RC \ |
| 26087 | hardcode_automatic_RC \ |
| 26088 | module_cmds_RC \ |
| 26089 | module_expsym_cmds_RC \ |
| 26090 | lt_cv_prog_compiler_c_o_RC \ |
| 26091 | exclude_expsyms_RC \ |
| 26092 | include_expsyms_RC; do |
| 26093 | |
| 26094 | case $var in |
| 26095 | old_archive_cmds_RC | \ |
| 26096 | old_archive_from_new_cmds_RC | \ |
| 26097 | archive_cmds_RC | \ |
| 26098 | archive_expsym_cmds_RC | \ |
| 26099 | module_cmds_RC | \ |
| 26100 | module_expsym_cmds_RC | \ |
| 26101 | old_archive_from_expsyms_cmds_RC | \ |
| 26102 | export_symbols_cmds_RC | \ |
| 26103 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 26104 | postinstall_cmds | postuninstall_cmds | \ |
| 26105 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 26106 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 26107 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26108 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26109 | ;; |
| 26110 | *) |
| 26111 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 26112 | ;; |
| 26113 | esac |
| 26114 | done |
| 26115 | |
| 26116 | case $lt_echo in |
| 26117 | *'\$0 --fallback-echo"') |
| 26118 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 26119 | ;; |
| 26120 | esac |
| 26121 | |
| 26122 | cfgfile="$ofile" |
| 26123 | |
| 26124 | cat <<__EOF__ >> "$cfgfile" |
| 26125 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 26126 | |
| 26127 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 26128 | |
| 26129 | # Shell to use when invoking shell scripts. |
| 26130 | SHELL=$lt_SHELL |
| 26131 | |
| 26132 | # Whether or not to build shared libraries. |
| 26133 | build_libtool_libs=$enable_shared |
| 26134 | |
| 26135 | # Whether or not to build static libraries. |
| 26136 | build_old_libs=$enable_static |
| 26137 | |
| 26138 | # Whether or not to add -lc for building shared libraries. |
| 26139 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 26140 | |
| 26141 | # Whether or not to disallow shared libs when runtime libs are static |
| 26142 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 26143 | |
| 26144 | # Whether or not to optimize for fast installation. |
| 26145 | fast_install=$enable_fast_install |
| 26146 | |
| 26147 | # The host system. |
| 26148 | host_alias=$host_alias |
| 26149 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26150 | host_os=$host_os |
| 26151 | |
| 26152 | # The build system. |
| 26153 | build_alias=$build_alias |
| 26154 | build=$build |
| 26155 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26156 | |
| 26157 | # An echo program that does not interpret backslashes. |
| 26158 | echo=$lt_echo |
| 26159 | |
| 26160 | # The archiver. |
| 26161 | AR=$lt_AR |
| 26162 | AR_FLAGS=$lt_AR_FLAGS |
| 26163 | |
| 26164 | # A C compiler. |
| 26165 | LTCC=$lt_LTCC |
| 26166 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26167 | # LTCC compiler flags. |
| 26168 | LTCFLAGS=$lt_LTCFLAGS |
| 26169 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26170 | # A language-specific compiler. |
| 26171 | CC=$lt_compiler_RC |
| 26172 | |
| 26173 | # Is the compiler the GNU C compiler? |
| 26174 | with_gcc=$GCC_RC |
| 26175 | |
| 26176 | # An ERE matcher. |
| 26177 | EGREP=$lt_EGREP |
| 26178 | |
| 26179 | # The linker used to build libraries. |
| 26180 | LD=$lt_LD_RC |
| 26181 | |
| 26182 | # Whether we need hard or soft links. |
| 26183 | LN_S=$lt_LN_S |
| 26184 | |
| 26185 | # A BSD-compatible nm program. |
| 26186 | NM=$lt_NM |
| 26187 | |
| 26188 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26189 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26190 | |
| 26191 | # Used to examine libraries when file_magic_cmd begins "file" |
| 26192 | MAGIC_CMD=$MAGIC_CMD |
| 26193 | |
| 26194 | # Used on cygwin: DLL creation program. |
| 26195 | DLLTOOL="$DLLTOOL" |
| 26196 | |
| 26197 | # Used on cygwin: object dumper. |
| 26198 | OBJDUMP="$OBJDUMP" |
| 26199 | |
| 26200 | # Used on cygwin: assembler. |
| 26201 | AS="$AS" |
| 26202 | |
| 26203 | # The name of the directory that contains temporary libtool files. |
| 26204 | objdir=$objdir |
| 26205 | |
| 26206 | # How to create reloadable object files. |
| 26207 | reload_flag=$lt_reload_flag |
| 26208 | reload_cmds=$lt_reload_cmds |
| 26209 | |
| 26210 | # How to pass a linker flag through the compiler. |
| 26211 | wl=$lt_lt_prog_compiler_wl_RC |
| 26212 | |
| 26213 | # Object file suffix (normally "o"). |
| 26214 | objext="$ac_objext" |
| 26215 | |
| 26216 | # Old archive suffix (normally "a"). |
| 26217 | libext="$libext" |
| 26218 | |
| 26219 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26220 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26221 | |
| 26222 | # Executable file suffix (normally ""). |
| 26223 | exeext="$exeext" |
| 26224 | |
| 26225 | # Additional compiler flags for building library objects. |
| 26226 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 26227 | pic_mode=$pic_mode |
| 26228 | |
| 26229 | # What is the maximum length of a command? |
| 26230 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 26231 | |
| 26232 | # Does compiler simultaneously support -c and -o options? |
| 26233 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 26234 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26235 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26236 | need_locks=$lt_need_locks |
| 26237 | |
| 26238 | # Do we need the lib prefix for modules? |
| 26239 | need_lib_prefix=$need_lib_prefix |
| 26240 | |
| 26241 | # Do we need a version for libraries? |
| 26242 | need_version=$need_version |
| 26243 | |
| 26244 | # Whether dlopen is supported. |
| 26245 | dlopen_support=$enable_dlopen |
| 26246 | |
| 26247 | # Whether dlopen of programs is supported. |
| 26248 | dlopen_self=$enable_dlopen_self |
| 26249 | |
| 26250 | # Whether dlopen of statically linked programs is supported. |
| 26251 | dlopen_self_static=$enable_dlopen_self_static |
| 26252 | |
| 26253 | # Compiler flag to prevent dynamic linking. |
| 26254 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 26255 | |
| 26256 | # Compiler flag to turn off builtin functions. |
| 26257 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 26258 | |
| 26259 | # Compiler flag to allow reflexive dlopens. |
| 26260 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 26261 | |
| 26262 | # Compiler flag to generate shared objects directly from archives. |
| 26263 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 26264 | |
| 26265 | # Compiler flag to generate thread-safe objects. |
| 26266 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 26267 | |
| 26268 | # Library versioning type. |
| 26269 | version_type=$version_type |
| 26270 | |
| 26271 | # Format of library name prefix. |
| 26272 | libname_spec=$lt_libname_spec |
| 26273 | |
| 26274 | # List of archive names. First name is the real one, the rest are links. |
| 26275 | # The last name is the one that the linker finds with -lNAME. |
| 26276 | library_names_spec=$lt_library_names_spec |
| 26277 | |
| 26278 | # The coded name of the library, if different from the real name. |
| 26279 | soname_spec=$lt_soname_spec |
| 26280 | |
| 26281 | # Commands used to build and install an old-style archive. |
| 26282 | RANLIB=$lt_RANLIB |
| 26283 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 26284 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26285 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26286 | |
| 26287 | # Create an old-style archive from a shared archive. |
| 26288 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 26289 | |
| 26290 | # Create a temporary old-style archive to link instead of a shared archive. |
| 26291 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 26292 | |
| 26293 | # Commands used to build and install a shared archive. |
| 26294 | archive_cmds=$lt_archive_cmds_RC |
| 26295 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 26296 | postinstall_cmds=$lt_postinstall_cmds |
| 26297 | postuninstall_cmds=$lt_postuninstall_cmds |
| 26298 | |
| 26299 | # Commands used to build a loadable module (assumed same as above if empty) |
| 26300 | module_cmds=$lt_module_cmds_RC |
| 26301 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 26302 | |
| 26303 | # Commands to strip libraries. |
| 26304 | old_striplib=$lt_old_striplib |
| 26305 | striplib=$lt_striplib |
| 26306 | |
| 26307 | # Dependencies to place before the objects being linked to create a |
| 26308 | # shared library. |
| 26309 | predep_objects=$lt_predep_objects_RC |
| 26310 | |
| 26311 | # Dependencies to place after the objects being linked to create a |
| 26312 | # shared library. |
| 26313 | postdep_objects=$lt_postdep_objects_RC |
| 26314 | |
| 26315 | # Dependencies to place before the objects being linked to create a |
| 26316 | # shared library. |
| 26317 | predeps=$lt_predeps_RC |
| 26318 | |
| 26319 | # Dependencies to place after the objects being linked to create a |
| 26320 | # shared library. |
| 26321 | postdeps=$lt_postdeps_RC |
| 26322 | |
| 26323 | # The library search path used internally by the compiler when linking |
| 26324 | # a shared library. |
| 26325 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 26326 | |
| 26327 | # Method to check whether dependent libraries are shared objects. |
| 26328 | deplibs_check_method=$lt_deplibs_check_method |
| 26329 | |
| 26330 | # Command to use when deplibs_check_method == file_magic. |
| 26331 | file_magic_cmd=$lt_file_magic_cmd |
| 26332 | |
| 26333 | # Flag that allows shared libraries with undefined symbols to be built. |
| 26334 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 26335 | |
| 26336 | # Flag that forces no undefined symbols. |
| 26337 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 26338 | |
| 26339 | # Commands used to finish a libtool library installation in a directory. |
| 26340 | finish_cmds=$lt_finish_cmds |
| 26341 | |
| 26342 | # Same as above, but a single script fragment to be evaled but not shown. |
| 26343 | finish_eval=$lt_finish_eval |
| 26344 | |
| 26345 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 26346 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 26347 | |
| 26348 | # Transform the output of nm in a proper C declaration |
| 26349 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 26350 | |
| 26351 | # Transform the output of nm in a C name address pair |
| 26352 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 26353 | |
| 26354 | # This is the shared library runtime path variable. |
| 26355 | runpath_var=$runpath_var |
| 26356 | |
| 26357 | # This is the shared library path variable. |
| 26358 | shlibpath_var=$shlibpath_var |
| 26359 | |
| 26360 | # Is shlibpath searched before the hard-coded library search path? |
| 26361 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 26362 | |
| 26363 | # How to hardcode a shared library path into an executable. |
| 26364 | hardcode_action=$hardcode_action_RC |
| 26365 | |
| 26366 | # Whether we should hardcode library paths into libraries. |
| 26367 | hardcode_into_libs=$hardcode_into_libs |
| 26368 | |
| 26369 | # Flag to hardcode \$libdir into a binary during linking. |
| 26370 | # This must work even if \$libdir does not exist. |
| 26371 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 26372 | |
| 26373 | # If ld is used when linking, flag to hardcode \$libdir into |
| 26374 | # a binary during linking. This must work even if \$libdir does |
| 26375 | # not exist. |
| 26376 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 26377 | |
| 26378 | # Whether we need a single -rpath flag with a separated argument. |
| 26379 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 26380 | |
| 26381 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 26382 | # resulting binary. |
| 26383 | hardcode_direct=$hardcode_direct_RC |
| 26384 | |
| 26385 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 26386 | # resulting binary. |
| 26387 | hardcode_minus_L=$hardcode_minus_L_RC |
| 26388 | |
| 26389 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 26390 | # the resulting binary. |
| 26391 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 26392 | |
| 26393 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 26394 | # and all subsequent libraries and executables linked against it. |
| 26395 | hardcode_automatic=$hardcode_automatic_RC |
| 26396 | |
| 26397 | # Variables whose values should be saved in libtool wrapper scripts and |
| 26398 | # restored at relink time. |
| 26399 | variables_saved_for_relink="$variables_saved_for_relink" |
| 26400 | |
| 26401 | # Whether libtool must link a program against all its dependency libraries. |
| 26402 | link_all_deplibs=$link_all_deplibs_RC |
| 26403 | |
| 26404 | # Compile-time system search path for libraries |
| 26405 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 26406 | |
| 26407 | # Run-time system search path for libraries |
| 26408 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 26409 | |
| 26410 | # Fix the shell variable \$srcfile for the compiler. |
| 26411 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 26412 | |
| 26413 | # Set to yes if exported symbols are required. |
| 26414 | always_export_symbols=$always_export_symbols_RC |
| 26415 | |
| 26416 | # The commands to list exported symbols. |
| 26417 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 26418 | |
| 26419 | # The commands to extract the exported symbol list from a shared archive. |
| 26420 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 26421 | |
| 26422 | # Symbols that should not be listed in the preloaded symbols. |
| 26423 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 26424 | |
| 26425 | # Symbols that must always be exported. |
| 26426 | include_expsyms=$lt_include_expsyms_RC |
| 26427 | |
| 26428 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 26429 | |
| 26430 | __EOF__ |
| 26431 | |
| 26432 | |
| 26433 | else |
| 26434 | # If there is no Makefile yet, we rely on a make rule to execute |
| 26435 | # `config.status --recheck' to rerun these tests and create the |
| 26436 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26437 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 26438 | if test -f "$ltmain_in"; then |
| 26439 | test -f Makefile && make "$ltmain" |
| 26440 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26441 | fi |
| 26442 | |
| 26443 | |
| 26444 | ac_ext=c |
| 26445 | ac_cpp='$CPP $CPPFLAGS' |
| 26446 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26447 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26448 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26449 | |
| 26450 | CC="$lt_save_CC" |
| 26451 | |
| 26452 | ;; |
| 26453 | |
| 26454 | *) |
| 26455 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 26456 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 26457 | { (exit 1); exit 1; }; } |
| 26458 | ;; |
| 26459 | esac |
| 26460 | |
| 26461 | # Append the new tag name to the list of available tags. |
| 26462 | if test -n "$tagname" ; then |
| 26463 | available_tags="$available_tags $tagname" |
| 26464 | fi |
| 26465 | fi |
| 26466 | done |
| 26467 | IFS="$lt_save_ifs" |
| 26468 | |
| 26469 | # Now substitute the updated list of available tags. |
| 26470 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 26471 | mv "${ofile}T" "$ofile" |
| 26472 | chmod +x "$ofile" |
| 26473 | else |
| 26474 | rm -f "${ofile}T" |
| 26475 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 26476 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 26477 | { (exit 1); exit 1; }; } |
| 26478 | fi |
| 26479 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26480 | |
| 26481 | |
| 26482 | |
| 26483 | # This can be used to rebuild libtool when needed |
| 26484 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 26485 | |
| 26486 | # Always use our own libtool. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26487 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26488 | |
| 26489 | # Prevent multiple expansion |
| 26490 | |
| 26491 | |
| 26492 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26493 | |
| 26494 | |
| 26495 | |
| 26496 | |
| 26497 | |
| 26498 | |
| 26499 | |
| 26500 | |
| 26501 | |
| 26502 | |
| 26503 | |
| 26504 | |
| 26505 | |
| 26506 | |
| 26507 | |
| 26508 | |
| 26509 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26510 | |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 26511 | if test "$lt_cv_dlopen_self" = "yes" ; then |
| 26512 | |
| 26513 | cat >>confdefs.h <<\_ACEOF |
| 26514 | #define CAN_DLOPEN_SELF 1 |
| 26515 | _ACEOF |
| 26516 | |
| 26517 | fi |
| 26518 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26519 | etags_version=`$ETAGS --version 2>&1` |
| 26520 | case "$etags_version" in |
| 26521 | *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;; |
| 26522 | *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;; |
| 26523 | *) ETAGSFLAGS="" ;; |
| 26524 | esac |
| 26525 | ETAGSFLAGS=$ETAGSFLAGS |
| 26526 | |
| 26527 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 26528 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 26529 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 26530 | LLVMGXX="llvm-g++${EXEEXT}" |
| 26531 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 26532 | set dummy $LLVMGCC; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26533 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 26534 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26535 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 26536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26537 | else |
| 26538 | case $LLVMGCC in |
| 26539 | [\\/]* | ?:[\\/]*) |
| 26540 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 26541 | ;; |
| 26542 | *) |
| 26543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26544 | for as_dir in $PATH |
| 26545 | do |
| 26546 | IFS=$as_save_IFS |
| 26547 | test -z "$as_dir" && as_dir=. |
| 26548 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26549 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26550 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
| 26551 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26552 | break 2 |
| 26553 | fi |
| 26554 | done |
| 26555 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26556 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26557 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26558 | ;; |
| 26559 | esac |
| 26560 | fi |
| 26561 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26562 | if test -n "$LLVMGCC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26563 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 26564 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26565 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26566 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26567 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26568 | fi |
| 26569 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26570 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 26571 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 26572 | set dummy $LLVMGXX; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26573 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 26574 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26575 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 26576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26577 | else |
| 26578 | case $LLVMGXX in |
| 26579 | [\\/]* | ?:[\\/]*) |
| 26580 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 26581 | ;; |
| 26582 | *) |
| 26583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26584 | for as_dir in $PATH |
| 26585 | do |
| 26586 | IFS=$as_save_IFS |
| 26587 | test -z "$as_dir" && as_dir=. |
| 26588 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26589 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26590 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
| 26591 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26592 | break 2 |
| 26593 | fi |
| 26594 | done |
| 26595 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26596 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26597 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26598 | ;; |
| 26599 | esac |
| 26600 | fi |
| 26601 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26602 | if test -n "$LLVMGXX"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26603 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 26604 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26605 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26606 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26607 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26608 | fi |
| 26609 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26610 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26611 | else |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 26612 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
| 26613 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26614 | LLVMGCC=$LLVMGCC |
| 26615 | |
| 26616 | LLVMGXX=$LLVMGXX |
| 26617 | |
| 26618 | fi |
| 26619 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26620 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 26621 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26622 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 26623 | ICC=no |
| 26624 | IXX=no |
| 26625 | case $CC in |
| 26626 | icc*|icpc*) |
| 26627 | ICC=yes |
| 26628 | IXX=yes |
| 26629 | ;; |
| 26630 | *) |
| 26631 | ;; |
| 26632 | esac |
| 26633 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 26634 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 26635 | then |
| 26636 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 26637 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 26638 | { (exit 1); exit 1; }; } |
| 26639 | fi |
| 26640 | |
| 26641 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 26642 | then |
| 26643 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 26644 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 26645 | { (exit 1); exit 1; }; } |
| 26646 | fi |
| 26647 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 26648 | if test "$GCC" = "yes" |
| 26649 | then |
Reid Spencer | bc9e49c | 2005-07-27 21:58:38 +0000 | [diff] [blame] | 26650 | gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'` |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 26651 | if test "$gccmajor" -lt "3" |
| 26652 | then |
| 26653 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26654 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 26655 | { (exit 1); exit 1; }; } |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 26656 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26657 | fi |
| 26658 | |
| 26659 | if test -z "$llvm_cv_gnu_make_command" |
| 26660 | then |
| 26661 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 26662 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 26663 | { (exit 1); exit 1; }; } |
| 26664 | fi |
| 26665 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26666 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 26667 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26668 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26669 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26670 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26671 | { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
| 26672 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26673 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
| 26674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26675 | else |
| 26676 | ac_check_lib_save_LIBS=$LIBS |
| 26677 | LIBS="-lelf $LIBS" |
| 26678 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26679 | /* confdefs.h. */ |
| 26680 | _ACEOF |
| 26681 | cat confdefs.h >>conftest.$ac_ext |
| 26682 | cat >>conftest.$ac_ext <<_ACEOF |
| 26683 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26684 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26685 | /* Override any GCC internal prototype to avoid an error. |
| 26686 | Use char because int might match the return type of a GCC |
| 26687 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26688 | #ifdef __cplusplus |
| 26689 | extern "C" |
| 26690 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26691 | char elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26692 | int |
| 26693 | main () |
| 26694 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26695 | return elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26696 | ; |
| 26697 | return 0; |
| 26698 | } |
| 26699 | _ACEOF |
| 26700 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26701 | if { (ac_try="$ac_link" |
| 26702 | case "(($ac_try" in |
| 26703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26704 | *) ac_try_echo=$ac_try;; |
| 26705 | esac |
| 26706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26707 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26708 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26709 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26710 | rm -f conftest.er1 |
| 26711 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26713 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26714 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 26715 | { (case "(($ac_try" in |
| 26716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26717 | *) ac_try_echo=$ac_try;; |
| 26718 | esac |
| 26719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26720 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26721 | ac_status=$? |
| 26722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26723 | (exit $ac_status); }; } && |
| 26724 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26725 | { (case "(($ac_try" in |
| 26726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26727 | *) ac_try_echo=$ac_try;; |
| 26728 | esac |
| 26729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26730 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26731 | ac_status=$? |
| 26732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26733 | (exit $ac_status); }; }; then |
| 26734 | ac_cv_lib_elf_elf_begin=yes |
| 26735 | else |
| 26736 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26738 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26739 | ac_cv_lib_elf_elf_begin=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26740 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26741 | |
| 26742 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26743 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26744 | LIBS=$ac_check_lib_save_LIBS |
| 26745 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26746 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 26747 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26748 | if test $ac_cv_lib_elf_elf_begin = yes; then |
| 26749 | cat >>confdefs.h <<_ACEOF |
| 26750 | #define HAVE_LIBELF 1 |
| 26751 | _ACEOF |
| 26752 | |
| 26753 | LIBS="-lelf $LIBS" |
| 26754 | |
| 26755 | fi |
| 26756 | |
| 26757 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26758 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 26759 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26760 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 26761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26762 | else |
| 26763 | ac_check_lib_save_LIBS=$LIBS |
| 26764 | LIBS="-lm $LIBS" |
| 26765 | cat >conftest.$ac_ext <<_ACEOF |
| 26766 | /* confdefs.h. */ |
| 26767 | _ACEOF |
| 26768 | cat confdefs.h >>conftest.$ac_ext |
| 26769 | cat >>conftest.$ac_ext <<_ACEOF |
| 26770 | /* end confdefs.h. */ |
| 26771 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26772 | /* Override any GCC internal prototype to avoid an error. |
| 26773 | Use char because int might match the return type of a GCC |
| 26774 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26775 | #ifdef __cplusplus |
| 26776 | extern "C" |
| 26777 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26778 | char sin (); |
| 26779 | int |
| 26780 | main () |
| 26781 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26782 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26783 | ; |
| 26784 | return 0; |
| 26785 | } |
| 26786 | _ACEOF |
| 26787 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26788 | if { (ac_try="$ac_link" |
| 26789 | case "(($ac_try" in |
| 26790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26791 | *) ac_try_echo=$ac_try;; |
| 26792 | esac |
| 26793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26794 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26795 | ac_status=$? |
| 26796 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26797 | rm -f conftest.er1 |
| 26798 | cat conftest.err >&5 |
| 26799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26800 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26801 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 26802 | { (case "(($ac_try" in |
| 26803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26804 | *) ac_try_echo=$ac_try;; |
| 26805 | esac |
| 26806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26807 | (eval "$ac_try") 2>&5 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26808 | ac_status=$? |
| 26809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26810 | (exit $ac_status); }; } && |
| 26811 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26812 | { (case "(($ac_try" in |
| 26813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26814 | *) ac_try_echo=$ac_try;; |
| 26815 | esac |
| 26816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26817 | (eval "$ac_try") 2>&5 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26818 | ac_status=$? |
| 26819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26820 | (exit $ac_status); }; }; then |
| 26821 | ac_cv_lib_m_sin=yes |
| 26822 | else |
| 26823 | echo "$as_me: failed program was:" >&5 |
| 26824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26825 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26826 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26827 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26828 | |
| 26829 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26830 | conftest$ac_exeext conftest.$ac_ext |
| 26831 | LIBS=$ac_check_lib_save_LIBS |
| 26832 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26833 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 26834 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26835 | if test $ac_cv_lib_m_sin = yes; then |
| 26836 | cat >>confdefs.h <<_ACEOF |
| 26837 | #define HAVE_LIBM 1 |
| 26838 | _ACEOF |
| 26839 | |
| 26840 | LIBS="-lm $LIBS" |
| 26841 | |
| 26842 | fi |
| 26843 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26844 | if test "$llvm_cv_os_type" == "MingW" ; then |
| 26845 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26846 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 26847 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26848 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26850 | else |
| 26851 | ac_check_lib_save_LIBS=$LIBS |
| 26852 | LIBS="-limagehlp $LIBS" |
| 26853 | cat >conftest.$ac_ext <<_ACEOF |
| 26854 | /* confdefs.h. */ |
| 26855 | _ACEOF |
| 26856 | cat confdefs.h >>conftest.$ac_ext |
| 26857 | cat >>conftest.$ac_ext <<_ACEOF |
| 26858 | /* end confdefs.h. */ |
| 26859 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26860 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26861 | int |
| 26862 | main () |
| 26863 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26864 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26865 | ; |
| 26866 | return 0; |
| 26867 | } |
| 26868 | _ACEOF |
| 26869 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26870 | if { (ac_try="$ac_link" |
| 26871 | case "(($ac_try" in |
| 26872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26873 | *) ac_try_echo=$ac_try;; |
| 26874 | esac |
| 26875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26876 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26877 | ac_status=$? |
| 26878 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26879 | rm -f conftest.er1 |
| 26880 | cat conftest.err >&5 |
| 26881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26882 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26883 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 26884 | { (case "(($ac_try" in |
| 26885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26886 | *) ac_try_echo=$ac_try;; |
| 26887 | esac |
| 26888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26889 | (eval "$ac_try") 2>&5 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26890 | ac_status=$? |
| 26891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26892 | (exit $ac_status); }; } && |
| 26893 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26894 | { (case "(($ac_try" in |
| 26895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26896 | *) ac_try_echo=$ac_try;; |
| 26897 | esac |
| 26898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26899 | (eval "$ac_try") 2>&5 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26900 | ac_status=$? |
| 26901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26902 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26903 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26904 | else |
| 26905 | echo "$as_me: failed program was:" >&5 |
| 26906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26907 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26908 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26909 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26910 | |
| 26911 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26912 | conftest$ac_exeext conftest.$ac_ext |
| 26913 | LIBS=$ac_check_lib_save_LIBS |
| 26914 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26915 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 26916 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26917 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26918 | cat >>confdefs.h <<_ACEOF |
| 26919 | #define HAVE_LIBIMAGEHLP 1 |
| 26920 | _ACEOF |
| 26921 | |
| 26922 | LIBS="-limagehlp $LIBS" |
| 26923 | |
| 26924 | fi |
| 26925 | |
| 26926 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26927 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 26928 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26929 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26931 | else |
| 26932 | ac_check_lib_save_LIBS=$LIBS |
| 26933 | LIBS="-lpsapi $LIBS" |
| 26934 | cat >conftest.$ac_ext <<_ACEOF |
| 26935 | /* confdefs.h. */ |
| 26936 | _ACEOF |
| 26937 | cat confdefs.h >>conftest.$ac_ext |
| 26938 | cat >>conftest.$ac_ext <<_ACEOF |
| 26939 | /* end confdefs.h. */ |
| 26940 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26941 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26942 | int |
| 26943 | main () |
| 26944 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26945 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26946 | ; |
| 26947 | return 0; |
| 26948 | } |
| 26949 | _ACEOF |
| 26950 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26951 | if { (ac_try="$ac_link" |
| 26952 | case "(($ac_try" in |
| 26953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26954 | *) ac_try_echo=$ac_try;; |
| 26955 | esac |
| 26956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26957 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26958 | ac_status=$? |
| 26959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26960 | rm -f conftest.er1 |
| 26961 | cat conftest.err >&5 |
| 26962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26963 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26964 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 26965 | { (case "(($ac_try" in |
| 26966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26967 | *) ac_try_echo=$ac_try;; |
| 26968 | esac |
| 26969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26970 | (eval "$ac_try") 2>&5 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26971 | ac_status=$? |
| 26972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26973 | (exit $ac_status); }; } && |
| 26974 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26975 | { (case "(($ac_try" in |
| 26976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26977 | *) ac_try_echo=$ac_try;; |
| 26978 | esac |
| 26979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26980 | (eval "$ac_try") 2>&5 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26981 | ac_status=$? |
| 26982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26983 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26984 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26985 | else |
| 26986 | echo "$as_me: failed program was:" >&5 |
| 26987 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26988 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26989 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26990 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26991 | |
| 26992 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26993 | conftest$ac_exeext conftest.$ac_ext |
| 26994 | LIBS=$ac_check_lib_save_LIBS |
| 26995 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26996 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 26997 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26998 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26999 | cat >>confdefs.h <<_ACEOF |
| 27000 | #define HAVE_LIBPSAPI 1 |
| 27001 | _ACEOF |
| 27002 | |
| 27003 | LIBS="-lpsapi $LIBS" |
| 27004 | |
| 27005 | fi |
| 27006 | |
| 27007 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27008 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27009 | { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5 |
| 27010 | echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; } |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27011 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 27012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27013 | else |
| 27014 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27015 | cat >conftest.$ac_ext <<_ACEOF |
| 27016 | /* confdefs.h. */ |
| 27017 | _ACEOF |
| 27018 | cat confdefs.h >>conftest.$ac_ext |
| 27019 | cat >>conftest.$ac_ext <<_ACEOF |
| 27020 | /* end confdefs.h. */ |
| 27021 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27022 | /* Override any GCC internal prototype to avoid an error. |
| 27023 | Use char because int might match the return type of a GCC |
| 27024 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27025 | #ifdef __cplusplus |
| 27026 | extern "C" |
| 27027 | #endif |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27028 | char lt_dlopen (); |
| 27029 | int |
| 27030 | main () |
| 27031 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27032 | return lt_dlopen (); |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27033 | ; |
| 27034 | return 0; |
| 27035 | } |
| 27036 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27037 | for ac_lib in '' ltdl; do |
| 27038 | if test -z "$ac_lib"; then |
| 27039 | ac_res="none required" |
| 27040 | else |
| 27041 | ac_res=-l$ac_lib |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27042 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27043 | fi |
| 27044 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27045 | if { (ac_try="$ac_link" |
| 27046 | case "(($ac_try" in |
| 27047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27048 | *) ac_try_echo=$ac_try;; |
| 27049 | esac |
| 27050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27051 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27052 | ac_status=$? |
| 27053 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27054 | rm -f conftest.er1 |
| 27055 | cat conftest.err >&5 |
| 27056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27057 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27058 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27059 | { (case "(($ac_try" in |
| 27060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27061 | *) ac_try_echo=$ac_try;; |
| 27062 | esac |
| 27063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27064 | (eval "$ac_try") 2>&5 |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27065 | ac_status=$? |
| 27066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27067 | (exit $ac_status); }; } && |
| 27068 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27069 | { (case "(($ac_try" in |
| 27070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27071 | *) ac_try_echo=$ac_try;; |
| 27072 | esac |
| 27073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27074 | (eval "$ac_try") 2>&5 |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27075 | ac_status=$? |
| 27076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27077 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27078 | ac_cv_search_lt_dlopen=$ac_res |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27079 | else |
| 27080 | echo "$as_me: failed program was:" >&5 |
| 27081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27082 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27083 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27084 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27085 | |
| 27086 | rm -f core conftest.err conftest.$ac_objext \ |
| 27087 | conftest$ac_exeext |
| 27088 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 27089 | break |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27090 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27091 | done |
| 27092 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 27093 | : |
| 27094 | else |
| 27095 | ac_cv_search_lt_dlopen=no |
| 27096 | fi |
| 27097 | rm conftest.$ac_ext |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27098 | LIBS=$ac_func_search_save_LIBS |
| 27099 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27100 | { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5 |
| 27101 | echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; } |
| 27102 | ac_res=$ac_cv_search_lt_dlopen |
| 27103 | if test "$ac_res" != no; then |
| 27104 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27105 | |
| 27106 | cat >>confdefs.h <<\_ACEOF |
| 27107 | #define HAVE_LT_DLOPEN 1 |
| 27108 | _ACEOF |
| 27109 | |
| 27110 | else |
| 27111 | { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might |
| 27112 | not be available" >&5 |
| 27113 | echo "$as_me: WARNING: lt_dlopen() not found - plugin support might |
| 27114 | not be available" >&2;} |
| 27115 | fi |
| 27116 | |
| 27117 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27118 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 27119 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27120 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27122 | else |
| 27123 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27124 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27125 | /* confdefs.h. */ |
| 27126 | _ACEOF |
| 27127 | cat confdefs.h >>conftest.$ac_ext |
| 27128 | cat >>conftest.$ac_ext <<_ACEOF |
| 27129 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27130 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27131 | /* Override any GCC internal prototype to avoid an error. |
| 27132 | Use char because int might match the return type of a GCC |
| 27133 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27134 | #ifdef __cplusplus |
| 27135 | extern "C" |
| 27136 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27137 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27138 | int |
| 27139 | main () |
| 27140 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27141 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27142 | ; |
| 27143 | return 0; |
| 27144 | } |
| 27145 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27146 | for ac_lib in '' dl; do |
| 27147 | if test -z "$ac_lib"; then |
| 27148 | ac_res="none required" |
| 27149 | else |
| 27150 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27151 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27152 | fi |
| 27153 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27154 | if { (ac_try="$ac_link" |
| 27155 | case "(($ac_try" in |
| 27156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27157 | *) ac_try_echo=$ac_try;; |
| 27158 | esac |
| 27159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27160 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27161 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27163 | rm -f conftest.er1 |
| 27164 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27166 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27167 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27168 | { (case "(($ac_try" in |
| 27169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27170 | *) ac_try_echo=$ac_try;; |
| 27171 | esac |
| 27172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27173 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27174 | ac_status=$? |
| 27175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27176 | (exit $ac_status); }; } && |
| 27177 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27178 | { (case "(($ac_try" in |
| 27179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27180 | *) ac_try_echo=$ac_try;; |
| 27181 | esac |
| 27182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27183 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27184 | ac_status=$? |
| 27185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27186 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27187 | ac_cv_search_dlopen=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27188 | else |
| 27189 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27191 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27192 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27193 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27194 | |
| 27195 | rm -f core conftest.err conftest.$ac_objext \ |
| 27196 | conftest$ac_exeext |
| 27197 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27198 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27199 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27200 | done |
| 27201 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27202 | : |
| 27203 | else |
| 27204 | ac_cv_search_dlopen=no |
| 27205 | fi |
| 27206 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27207 | LIBS=$ac_func_search_save_LIBS |
| 27208 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27209 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 27210 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
| 27211 | ac_res=$ac_cv_search_dlopen |
| 27212 | if test "$ac_res" != no; then |
| 27213 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27214 | |
| 27215 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27216 | #define HAVE_DLOPEN 1 |
| 27217 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27218 | |
| 27219 | else |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27220 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 27221 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27222 | fi |
| 27223 | |
| 27224 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27225 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 27226 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27227 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27229 | else |
| 27230 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27231 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27232 | /* confdefs.h. */ |
| 27233 | _ACEOF |
| 27234 | cat confdefs.h >>conftest.$ac_ext |
| 27235 | cat >>conftest.$ac_ext <<_ACEOF |
| 27236 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27237 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27238 | /* Override any GCC internal prototype to avoid an error. |
| 27239 | Use char because int might match the return type of a GCC |
| 27240 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27241 | #ifdef __cplusplus |
| 27242 | extern "C" |
| 27243 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27244 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27245 | int |
| 27246 | main () |
| 27247 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27248 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27249 | ; |
| 27250 | return 0; |
| 27251 | } |
| 27252 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27253 | for ac_lib in '' malloc; do |
| 27254 | if test -z "$ac_lib"; then |
| 27255 | ac_res="none required" |
| 27256 | else |
| 27257 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27258 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27259 | fi |
| 27260 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27261 | if { (ac_try="$ac_link" |
| 27262 | case "(($ac_try" in |
| 27263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27264 | *) ac_try_echo=$ac_try;; |
| 27265 | esac |
| 27266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27267 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27268 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27270 | rm -f conftest.er1 |
| 27271 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27273 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27274 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27275 | { (case "(($ac_try" in |
| 27276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27277 | *) ac_try_echo=$ac_try;; |
| 27278 | esac |
| 27279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27280 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27281 | ac_status=$? |
| 27282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27283 | (exit $ac_status); }; } && |
| 27284 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27285 | { (case "(($ac_try" in |
| 27286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27287 | *) ac_try_echo=$ac_try;; |
| 27288 | esac |
| 27289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27290 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27291 | ac_status=$? |
| 27292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27293 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27294 | ac_cv_search_mallinfo=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27295 | else |
| 27296 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27298 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27299 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27300 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27301 | |
| 27302 | rm -f core conftest.err conftest.$ac_objext \ |
| 27303 | conftest$ac_exeext |
| 27304 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27305 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27306 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27307 | done |
| 27308 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27309 | : |
| 27310 | else |
| 27311 | ac_cv_search_mallinfo=no |
| 27312 | fi |
| 27313 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27314 | LIBS=$ac_func_search_save_LIBS |
| 27315 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27316 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 27317 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
| 27318 | ac_res=$ac_cv_search_mallinfo |
| 27319 | if test "$ac_res" != no; then |
| 27320 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27321 | |
| 27322 | cat >>confdefs.h <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27323 | #define HAVE_MALLINFO 1 |
| 27324 | _ACEOF |
| 27325 | |
| 27326 | fi |
| 27327 | |
| 27328 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27329 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27330 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27331 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 27332 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27333 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 27334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27335 | else |
| 27336 | ac_check_lib_save_LIBS=$LIBS |
| 27337 | LIBS="-lpthread $LIBS" |
| 27338 | cat >conftest.$ac_ext <<_ACEOF |
| 27339 | /* confdefs.h. */ |
| 27340 | _ACEOF |
| 27341 | cat confdefs.h >>conftest.$ac_ext |
| 27342 | cat >>conftest.$ac_ext <<_ACEOF |
| 27343 | /* end confdefs.h. */ |
| 27344 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27345 | /* Override any GCC internal prototype to avoid an error. |
| 27346 | Use char because int might match the return type of a GCC |
| 27347 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27348 | #ifdef __cplusplus |
| 27349 | extern "C" |
| 27350 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27351 | char pthread_mutex_init (); |
| 27352 | int |
| 27353 | main () |
| 27354 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27355 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27356 | ; |
| 27357 | return 0; |
| 27358 | } |
| 27359 | _ACEOF |
| 27360 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27361 | if { (ac_try="$ac_link" |
| 27362 | case "(($ac_try" in |
| 27363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27364 | *) ac_try_echo=$ac_try;; |
| 27365 | esac |
| 27366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27367 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27368 | ac_status=$? |
| 27369 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27370 | rm -f conftest.er1 |
| 27371 | cat conftest.err >&5 |
| 27372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27373 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27374 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27375 | { (case "(($ac_try" in |
| 27376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27377 | *) ac_try_echo=$ac_try;; |
| 27378 | esac |
| 27379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27380 | (eval "$ac_try") 2>&5 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27381 | ac_status=$? |
| 27382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27383 | (exit $ac_status); }; } && |
| 27384 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27385 | { (case "(($ac_try" in |
| 27386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27387 | *) ac_try_echo=$ac_try;; |
| 27388 | esac |
| 27389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27390 | (eval "$ac_try") 2>&5 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27391 | ac_status=$? |
| 27392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27393 | (exit $ac_status); }; }; then |
| 27394 | ac_cv_lib_pthread_pthread_mutex_init=yes |
| 27395 | else |
| 27396 | echo "$as_me: failed program was:" >&5 |
| 27397 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27398 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27399 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27400 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27401 | |
| 27402 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27403 | conftest$ac_exeext conftest.$ac_ext |
| 27404 | LIBS=$ac_check_lib_save_LIBS |
| 27405 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27406 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 27407 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27408 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
| 27409 | cat >>confdefs.h <<_ACEOF |
| 27410 | #define HAVE_LIBPTHREAD 1 |
| 27411 | _ACEOF |
| 27412 | |
| 27413 | LIBS="-lpthread $LIBS" |
| 27414 | |
| 27415 | fi |
| 27416 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27417 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 27418 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27419 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27421 | else |
| 27422 | ac_func_search_save_LIBS=$LIBS |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27423 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27424 | /* confdefs.h. */ |
| 27425 | _ACEOF |
| 27426 | cat confdefs.h >>conftest.$ac_ext |
| 27427 | cat >>conftest.$ac_ext <<_ACEOF |
| 27428 | /* end confdefs.h. */ |
| 27429 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27430 | /* Override any GCC internal prototype to avoid an error. |
| 27431 | Use char because int might match the return type of a GCC |
| 27432 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27433 | #ifdef __cplusplus |
| 27434 | extern "C" |
| 27435 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27436 | char pthread_mutex_lock (); |
| 27437 | int |
| 27438 | main () |
| 27439 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27440 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27441 | ; |
| 27442 | return 0; |
| 27443 | } |
| 27444 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27445 | for ac_lib in '' pthread; do |
| 27446 | if test -z "$ac_lib"; then |
| 27447 | ac_res="none required" |
| 27448 | else |
| 27449 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27450 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27451 | fi |
| 27452 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27453 | if { (ac_try="$ac_link" |
| 27454 | case "(($ac_try" in |
| 27455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27456 | *) ac_try_echo=$ac_try;; |
| 27457 | esac |
| 27458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27459 | (eval "$ac_link") 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27460 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27462 | rm -f conftest.er1 |
| 27463 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27465 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27466 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27467 | { (case "(($ac_try" in |
| 27468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27469 | *) ac_try_echo=$ac_try;; |
| 27470 | esac |
| 27471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27472 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27473 | ac_status=$? |
| 27474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27475 | (exit $ac_status); }; } && |
| 27476 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27477 | { (case "(($ac_try" in |
| 27478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27479 | *) ac_try_echo=$ac_try;; |
| 27480 | esac |
| 27481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27482 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27483 | ac_status=$? |
| 27484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27485 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27486 | ac_cv_search_pthread_mutex_lock=$ac_res |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27487 | else |
| 27488 | echo "$as_me: failed program was:" >&5 |
| 27489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27490 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27491 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27492 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27493 | |
| 27494 | rm -f core conftest.err conftest.$ac_objext \ |
| 27495 | conftest$ac_exeext |
| 27496 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27497 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27498 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27499 | done |
| 27500 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27501 | : |
| 27502 | else |
| 27503 | ac_cv_search_pthread_mutex_lock=no |
| 27504 | fi |
| 27505 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27506 | LIBS=$ac_func_search_save_LIBS |
| 27507 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27508 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 27509 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
| 27510 | ac_res=$ac_cv_search_pthread_mutex_lock |
| 27511 | if test "$ac_res" != no; then |
| 27512 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27513 | |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 27514 | cat >>confdefs.h <<\_ACEOF |
| 27515 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 27516 | _ACEOF |
| 27517 | |
| 27518 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27519 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27520 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 27521 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27522 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27523 | |
| 27524 | |
| 27525 | |
| 27526 | |
| 27527 | |
| 27528 | ac_header_dirent=no |
| 27529 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 27530 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27531 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 27532 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 27533 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27535 | else |
| 27536 | cat >conftest.$ac_ext <<_ACEOF |
| 27537 | /* confdefs.h. */ |
| 27538 | _ACEOF |
| 27539 | cat confdefs.h >>conftest.$ac_ext |
| 27540 | cat >>conftest.$ac_ext <<_ACEOF |
| 27541 | /* end confdefs.h. */ |
| 27542 | #include <sys/types.h> |
| 27543 | #include <$ac_hdr> |
| 27544 | |
| 27545 | int |
| 27546 | main () |
| 27547 | { |
| 27548 | if ((DIR *) 0) |
| 27549 | return 0; |
| 27550 | ; |
| 27551 | return 0; |
| 27552 | } |
| 27553 | _ACEOF |
| 27554 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27555 | if { (ac_try="$ac_compile" |
| 27556 | case "(($ac_try" in |
| 27557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27558 | *) ac_try_echo=$ac_try;; |
| 27559 | esac |
| 27560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27561 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27562 | ac_status=$? |
| 27563 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27564 | rm -f conftest.er1 |
| 27565 | cat conftest.err >&5 |
| 27566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27567 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27568 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27569 | { (case "(($ac_try" in |
| 27570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27571 | *) ac_try_echo=$ac_try;; |
| 27572 | esac |
| 27573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27574 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27575 | ac_status=$? |
| 27576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27577 | (exit $ac_status); }; } && |
| 27578 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27579 | { (case "(($ac_try" in |
| 27580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27581 | *) ac_try_echo=$ac_try;; |
| 27582 | esac |
| 27583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27584 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27585 | ac_status=$? |
| 27586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27587 | (exit $ac_status); }; }; then |
| 27588 | eval "$as_ac_Header=yes" |
| 27589 | else |
| 27590 | echo "$as_me: failed program was:" >&5 |
| 27591 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27592 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27593 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27594 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27595 | |
| 27596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27597 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27598 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 27599 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 27600 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27601 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 27602 | cat >>confdefs.h <<_ACEOF |
| 27603 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 27604 | _ACEOF |
| 27605 | |
| 27606 | ac_header_dirent=$ac_hdr; break |
| 27607 | fi |
| 27608 | |
| 27609 | done |
| 27610 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 27611 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27612 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 27613 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27614 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27616 | else |
| 27617 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27618 | cat >conftest.$ac_ext <<_ACEOF |
| 27619 | /* confdefs.h. */ |
| 27620 | _ACEOF |
| 27621 | cat confdefs.h >>conftest.$ac_ext |
| 27622 | cat >>conftest.$ac_ext <<_ACEOF |
| 27623 | /* end confdefs.h. */ |
| 27624 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27625 | /* Override any GCC internal prototype to avoid an error. |
| 27626 | Use char because int might match the return type of a GCC |
| 27627 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27628 | #ifdef __cplusplus |
| 27629 | extern "C" |
| 27630 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27631 | char opendir (); |
| 27632 | int |
| 27633 | main () |
| 27634 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27635 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27636 | ; |
| 27637 | return 0; |
| 27638 | } |
| 27639 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27640 | for ac_lib in '' dir; do |
| 27641 | if test -z "$ac_lib"; then |
| 27642 | ac_res="none required" |
| 27643 | else |
| 27644 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27645 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27646 | fi |
| 27647 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27648 | if { (ac_try="$ac_link" |
| 27649 | case "(($ac_try" in |
| 27650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27651 | *) ac_try_echo=$ac_try;; |
| 27652 | esac |
| 27653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27654 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27655 | ac_status=$? |
| 27656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27657 | rm -f conftest.er1 |
| 27658 | cat conftest.err >&5 |
| 27659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27660 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27661 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27662 | { (case "(($ac_try" in |
| 27663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27664 | *) ac_try_echo=$ac_try;; |
| 27665 | esac |
| 27666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27667 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27668 | ac_status=$? |
| 27669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27670 | (exit $ac_status); }; } && |
| 27671 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27672 | { (case "(($ac_try" in |
| 27673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27674 | *) ac_try_echo=$ac_try;; |
| 27675 | esac |
| 27676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27677 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27678 | ac_status=$? |
| 27679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27680 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27681 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27682 | else |
| 27683 | echo "$as_me: failed program was:" >&5 |
| 27684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27685 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27686 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27687 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27688 | |
| 27689 | rm -f core conftest.err conftest.$ac_objext \ |
| 27690 | conftest$ac_exeext |
| 27691 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27692 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27693 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27694 | done |
| 27695 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27696 | : |
| 27697 | else |
| 27698 | ac_cv_search_opendir=no |
| 27699 | fi |
| 27700 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27701 | LIBS=$ac_func_search_save_LIBS |
| 27702 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27703 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 27704 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 27705 | ac_res=$ac_cv_search_opendir |
| 27706 | if test "$ac_res" != no; then |
| 27707 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27708 | |
| 27709 | fi |
| 27710 | |
| 27711 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27712 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 27713 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27714 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27716 | else |
| 27717 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27718 | cat >conftest.$ac_ext <<_ACEOF |
| 27719 | /* confdefs.h. */ |
| 27720 | _ACEOF |
| 27721 | cat confdefs.h >>conftest.$ac_ext |
| 27722 | cat >>conftest.$ac_ext <<_ACEOF |
| 27723 | /* end confdefs.h. */ |
| 27724 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27725 | /* Override any GCC internal prototype to avoid an error. |
| 27726 | Use char because int might match the return type of a GCC |
| 27727 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27728 | #ifdef __cplusplus |
| 27729 | extern "C" |
| 27730 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27731 | char opendir (); |
| 27732 | int |
| 27733 | main () |
| 27734 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27735 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27736 | ; |
| 27737 | return 0; |
| 27738 | } |
| 27739 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27740 | for ac_lib in '' x; do |
| 27741 | if test -z "$ac_lib"; then |
| 27742 | ac_res="none required" |
| 27743 | else |
| 27744 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27745 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27746 | fi |
| 27747 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27748 | if { (ac_try="$ac_link" |
| 27749 | case "(($ac_try" in |
| 27750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27751 | *) ac_try_echo=$ac_try;; |
| 27752 | esac |
| 27753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27754 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27755 | ac_status=$? |
| 27756 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27757 | rm -f conftest.er1 |
| 27758 | cat conftest.err >&5 |
| 27759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27760 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27761 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27762 | { (case "(($ac_try" in |
| 27763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27764 | *) ac_try_echo=$ac_try;; |
| 27765 | esac |
| 27766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27767 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27768 | ac_status=$? |
| 27769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27770 | (exit $ac_status); }; } && |
| 27771 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27772 | { (case "(($ac_try" in |
| 27773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27774 | *) ac_try_echo=$ac_try;; |
| 27775 | esac |
| 27776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27777 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27778 | ac_status=$? |
| 27779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27780 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27781 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27782 | else |
| 27783 | echo "$as_me: failed program was:" >&5 |
| 27784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27785 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27786 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27787 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27788 | |
| 27789 | rm -f core conftest.err conftest.$ac_objext \ |
| 27790 | conftest$ac_exeext |
| 27791 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27792 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27793 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27794 | done |
| 27795 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27796 | : |
| 27797 | else |
| 27798 | ac_cv_search_opendir=no |
| 27799 | fi |
| 27800 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27801 | LIBS=$ac_func_search_save_LIBS |
| 27802 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27803 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 27804 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 27805 | ac_res=$ac_cv_search_opendir |
| 27806 | if test "$ac_res" != no; then |
| 27807 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27808 | |
| 27809 | fi |
| 27810 | |
| 27811 | fi |
| 27812 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27813 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 27814 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27815 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 27816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27817 | else |
| 27818 | ac_ext=c |
| 27819 | ac_cpp='$CPP $CPPFLAGS' |
| 27820 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 27821 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 27822 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 27823 | |
| 27824 | cat >conftest.$ac_ext <<_ACEOF |
| 27825 | /* confdefs.h. */ |
| 27826 | _ACEOF |
| 27827 | cat confdefs.h >>conftest.$ac_ext |
| 27828 | cat >>conftest.$ac_ext <<_ACEOF |
| 27829 | /* end confdefs.h. */ |
| 27830 | #include <sys/mman.h> |
| 27831 | #include <unistd.h> |
| 27832 | #include <fcntl.h> |
| 27833 | int |
| 27834 | main () |
| 27835 | { |
| 27836 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 27837 | ; |
| 27838 | return 0; |
| 27839 | } |
| 27840 | _ACEOF |
| 27841 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27842 | if { (ac_try="$ac_compile" |
| 27843 | case "(($ac_try" in |
| 27844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27845 | *) ac_try_echo=$ac_try;; |
| 27846 | esac |
| 27847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27848 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27849 | ac_status=$? |
| 27850 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27851 | rm -f conftest.er1 |
| 27852 | cat conftest.err >&5 |
| 27853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27854 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27855 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27856 | { (case "(($ac_try" in |
| 27857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27858 | *) ac_try_echo=$ac_try;; |
| 27859 | esac |
| 27860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27861 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27862 | ac_status=$? |
| 27863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27864 | (exit $ac_status); }; } && |
| 27865 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27866 | { (case "(($ac_try" in |
| 27867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27868 | *) ac_try_echo=$ac_try;; |
| 27869 | esac |
| 27870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27871 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27872 | ac_status=$? |
| 27873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27874 | (exit $ac_status); }; }; then |
| 27875 | ac_cv_header_mmap_anon=yes |
| 27876 | else |
| 27877 | echo "$as_me: failed program was:" >&5 |
| 27878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27879 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27880 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27881 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27882 | |
| 27883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27884 | ac_ext=c |
| 27885 | ac_cpp='$CPP $CPPFLAGS' |
| 27886 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 27887 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 27888 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 27889 | |
| 27890 | |
| 27891 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27892 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 27893 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27894 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 27895 | |
| 27896 | cat >>confdefs.h <<\_ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 27897 | #define HAVE_MMAP_ANONYMOUS 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27898 | _ACEOF |
| 27899 | |
| 27900 | fi |
| 27901 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27902 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 27903 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27904 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 27905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27906 | else |
| 27907 | cat >conftest.$ac_ext <<_ACEOF |
| 27908 | /* confdefs.h. */ |
| 27909 | _ACEOF |
| 27910 | cat confdefs.h >>conftest.$ac_ext |
| 27911 | cat >>conftest.$ac_ext <<_ACEOF |
| 27912 | /* end confdefs.h. */ |
| 27913 | #include <sys/types.h> |
| 27914 | #include <sys/stat.h> |
| 27915 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27916 | #if defined S_ISBLK && defined S_IFDIR |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27917 | # if S_ISBLK (S_IFDIR) |
| 27918 | You lose. |
| 27919 | # endif |
| 27920 | #endif |
| 27921 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27922 | #if defined S_ISBLK && defined S_IFCHR |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27923 | # if S_ISBLK (S_IFCHR) |
| 27924 | You lose. |
| 27925 | # endif |
| 27926 | #endif |
| 27927 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27928 | #if defined S_ISLNK && defined S_IFREG |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27929 | # if S_ISLNK (S_IFREG) |
| 27930 | You lose. |
| 27931 | # endif |
| 27932 | #endif |
| 27933 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27934 | #if defined S_ISSOCK && defined S_IFREG |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27935 | # if S_ISSOCK (S_IFREG) |
| 27936 | You lose. |
| 27937 | # endif |
| 27938 | #endif |
| 27939 | |
| 27940 | _ACEOF |
| 27941 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 27942 | $EGREP "You lose" >/dev/null 2>&1; then |
| 27943 | ac_cv_header_stat_broken=yes |
| 27944 | else |
| 27945 | ac_cv_header_stat_broken=no |
| 27946 | fi |
| 27947 | rm -f conftest* |
| 27948 | |
| 27949 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27950 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 27951 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27952 | if test $ac_cv_header_stat_broken = yes; then |
| 27953 | |
| 27954 | cat >>confdefs.h <<\_ACEOF |
| 27955 | #define STAT_MACROS_BROKEN 1 |
| 27956 | _ACEOF |
| 27957 | |
| 27958 | fi |
| 27959 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27960 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 27961 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27962 | if test "${ac_cv_header_stdc+set}" = set; then |
| 27963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27964 | else |
| 27965 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27966 | /* confdefs.h. */ |
| 27967 | _ACEOF |
| 27968 | cat confdefs.h >>conftest.$ac_ext |
| 27969 | cat >>conftest.$ac_ext <<_ACEOF |
| 27970 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27971 | #include <stdlib.h> |
| 27972 | #include <stdarg.h> |
| 27973 | #include <string.h> |
| 27974 | #include <float.h> |
| 27975 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27976 | int |
| 27977 | main () |
| 27978 | { |
| 27979 | |
| 27980 | ; |
| 27981 | return 0; |
| 27982 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27983 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27984 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27985 | if { (ac_try="$ac_compile" |
| 27986 | case "(($ac_try" in |
| 27987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27988 | *) ac_try_echo=$ac_try;; |
| 27989 | esac |
| 27990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27991 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27992 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27994 | rm -f conftest.er1 |
| 27995 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27997 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27998 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27999 | { (case "(($ac_try" in |
| 28000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28001 | *) ac_try_echo=$ac_try;; |
| 28002 | esac |
| 28003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28004 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28005 | ac_status=$? |
| 28006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28007 | (exit $ac_status); }; } && |
| 28008 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28009 | { (case "(($ac_try" in |
| 28010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28011 | *) ac_try_echo=$ac_try;; |
| 28012 | esac |
| 28013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28014 | (eval "$ac_try") 2>&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28015 | ac_status=$? |
| 28016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28017 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28018 | ac_cv_header_stdc=yes |
| 28019 | else |
| 28020 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28021 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28022 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28023 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28024 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28025 | |
| 28026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28027 | |
| 28028 | if test $ac_cv_header_stdc = yes; then |
| 28029 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 28030 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28031 | /* confdefs.h. */ |
| 28032 | _ACEOF |
| 28033 | cat confdefs.h >>conftest.$ac_ext |
| 28034 | cat >>conftest.$ac_ext <<_ACEOF |
| 28035 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28036 | #include <string.h> |
| 28037 | |
| 28038 | _ACEOF |
| 28039 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28040 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28041 | : |
| 28042 | else |
| 28043 | ac_cv_header_stdc=no |
| 28044 | fi |
| 28045 | rm -f conftest* |
| 28046 | |
| 28047 | fi |
| 28048 | |
| 28049 | if test $ac_cv_header_stdc = yes; then |
| 28050 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 28051 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28052 | /* confdefs.h. */ |
| 28053 | _ACEOF |
| 28054 | cat confdefs.h >>conftest.$ac_ext |
| 28055 | cat >>conftest.$ac_ext <<_ACEOF |
| 28056 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28057 | #include <stdlib.h> |
| 28058 | |
| 28059 | _ACEOF |
| 28060 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28061 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28062 | : |
| 28063 | else |
| 28064 | ac_cv_header_stdc=no |
| 28065 | fi |
| 28066 | rm -f conftest* |
| 28067 | |
| 28068 | fi |
| 28069 | |
| 28070 | if test $ac_cv_header_stdc = yes; then |
| 28071 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 28072 | if test "$cross_compiling" = yes; then |
| 28073 | : |
| 28074 | else |
| 28075 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28076 | /* confdefs.h. */ |
| 28077 | _ACEOF |
| 28078 | cat confdefs.h >>conftest.$ac_ext |
| 28079 | cat >>conftest.$ac_ext <<_ACEOF |
| 28080 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28081 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28082 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28083 | #if ((' ' & 0x0FF) == 0x020) |
| 28084 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 28085 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 28086 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28087 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28088 | (('a' <= (c) && (c) <= 'i') \ |
| 28089 | || ('j' <= (c) && (c) <= 'r') \ |
| 28090 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28091 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 28092 | #endif |
| 28093 | |
| 28094 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 28095 | int |
| 28096 | main () |
| 28097 | { |
| 28098 | int i; |
| 28099 | for (i = 0; i < 256; i++) |
| 28100 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28101 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28102 | return 2; |
| 28103 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28104 | } |
| 28105 | _ACEOF |
| 28106 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28107 | if { (ac_try="$ac_link" |
| 28108 | case "(($ac_try" in |
| 28109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28110 | *) ac_try_echo=$ac_try;; |
| 28111 | esac |
| 28112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28113 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28114 | ac_status=$? |
| 28115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28116 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28117 | { (case "(($ac_try" in |
| 28118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28119 | *) ac_try_echo=$ac_try;; |
| 28120 | esac |
| 28121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28122 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28123 | ac_status=$? |
| 28124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28125 | (exit $ac_status); }; }; then |
| 28126 | : |
| 28127 | else |
| 28128 | echo "$as_me: program exited with status $ac_status" >&5 |
| 28129 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28130 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28131 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28132 | ( exit $ac_status ) |
| 28133 | ac_cv_header_stdc=no |
| 28134 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28135 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 28136 | fi |
| 28137 | |
| 28138 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28139 | fi |
| 28140 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28141 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 28142 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28143 | if test $ac_cv_header_stdc = yes; then |
| 28144 | |
| 28145 | cat >>confdefs.h <<\_ACEOF |
| 28146 | #define STDC_HEADERS 1 |
| 28147 | _ACEOF |
| 28148 | |
| 28149 | fi |
| 28150 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28151 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 28152 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28153 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 28154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28155 | else |
| 28156 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28157 | /* confdefs.h. */ |
| 28158 | _ACEOF |
| 28159 | cat confdefs.h >>conftest.$ac_ext |
| 28160 | cat >>conftest.$ac_ext <<_ACEOF |
| 28161 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28162 | #include <sys/types.h> |
| 28163 | #include <sys/wait.h> |
| 28164 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28165 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28166 | #endif |
| 28167 | #ifndef WIFEXITED |
| 28168 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 28169 | #endif |
| 28170 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28171 | int |
| 28172 | main () |
| 28173 | { |
| 28174 | int s; |
| 28175 | wait (&s); |
| 28176 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 28177 | ; |
| 28178 | return 0; |
| 28179 | } |
| 28180 | _ACEOF |
| 28181 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28182 | if { (ac_try="$ac_compile" |
| 28183 | case "(($ac_try" in |
| 28184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28185 | *) ac_try_echo=$ac_try;; |
| 28186 | esac |
| 28187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28188 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28189 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28190 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28191 | rm -f conftest.er1 |
| 28192 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28194 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28195 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28196 | { (case "(($ac_try" in |
| 28197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28198 | *) ac_try_echo=$ac_try;; |
| 28199 | esac |
| 28200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28201 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28202 | ac_status=$? |
| 28203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28204 | (exit $ac_status); }; } && |
| 28205 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28206 | { (case "(($ac_try" in |
| 28207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28208 | *) ac_try_echo=$ac_try;; |
| 28209 | esac |
| 28210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28211 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28212 | ac_status=$? |
| 28213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28214 | (exit $ac_status); }; }; then |
| 28215 | ac_cv_header_sys_wait_h=yes |
| 28216 | else |
| 28217 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28219 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28220 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28221 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28222 | |
| 28223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28224 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28225 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 28226 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28227 | if test $ac_cv_header_sys_wait_h = yes; then |
| 28228 | |
| 28229 | cat >>confdefs.h <<\_ACEOF |
| 28230 | #define HAVE_SYS_WAIT_H 1 |
| 28231 | _ACEOF |
| 28232 | |
| 28233 | fi |
| 28234 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28235 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 28236 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28237 | if test "${ac_cv_header_time+set}" = set; then |
| 28238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28239 | else |
| 28240 | cat >conftest.$ac_ext <<_ACEOF |
| 28241 | /* confdefs.h. */ |
| 28242 | _ACEOF |
| 28243 | cat confdefs.h >>conftest.$ac_ext |
| 28244 | cat >>conftest.$ac_ext <<_ACEOF |
| 28245 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28246 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28247 | #include <sys/time.h> |
| 28248 | #include <time.h> |
| 28249 | |
| 28250 | int |
| 28251 | main () |
| 28252 | { |
| 28253 | if ((struct tm *) 0) |
| 28254 | return 0; |
| 28255 | ; |
| 28256 | return 0; |
| 28257 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28258 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28259 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28260 | if { (ac_try="$ac_compile" |
| 28261 | case "(($ac_try" in |
| 28262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28263 | *) ac_try_echo=$ac_try;; |
| 28264 | esac |
| 28265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28266 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28267 | ac_status=$? |
| 28268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28269 | rm -f conftest.er1 |
| 28270 | cat conftest.err >&5 |
| 28271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28272 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28273 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28274 | { (case "(($ac_try" in |
| 28275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28276 | *) ac_try_echo=$ac_try;; |
| 28277 | esac |
| 28278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28279 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28280 | ac_status=$? |
| 28281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28282 | (exit $ac_status); }; } && |
| 28283 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28284 | { (case "(($ac_try" in |
| 28285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28286 | *) ac_try_echo=$ac_try;; |
| 28287 | esac |
| 28288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28289 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28290 | ac_status=$? |
| 28291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28292 | (exit $ac_status); }; }; then |
| 28293 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28294 | else |
| 28295 | echo "$as_me: failed program was:" >&5 |
| 28296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28297 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28298 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28299 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28300 | |
| 28301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28302 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28303 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 28304 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28305 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28306 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28307 | cat >>confdefs.h <<\_ACEOF |
| 28308 | #define TIME_WITH_SYS_TIME 1 |
| 28309 | _ACEOF |
| 28310 | |
| 28311 | fi |
| 28312 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28313 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28314 | |
| 28315 | |
| 28316 | |
| 28317 | |
| 28318 | |
| 28319 | |
| 28320 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
| 28321 | do |
| 28322 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28323 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28324 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28325 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28326 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28328 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28329 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28330 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28331 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28332 | else |
| 28333 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28334 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28335 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28336 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28337 | /* confdefs.h. */ |
| 28338 | _ACEOF |
| 28339 | cat confdefs.h >>conftest.$ac_ext |
| 28340 | cat >>conftest.$ac_ext <<_ACEOF |
| 28341 | /* end confdefs.h. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28342 | $ac_includes_default |
| 28343 | #include <$ac_header> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28344 | _ACEOF |
| 28345 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28346 | if { (ac_try="$ac_compile" |
| 28347 | case "(($ac_try" in |
| 28348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28349 | *) ac_try_echo=$ac_try;; |
| 28350 | esac |
| 28351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28352 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28353 | ac_status=$? |
| 28354 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28355 | rm -f conftest.er1 |
| 28356 | cat conftest.err >&5 |
| 28357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28358 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28359 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28360 | { (case "(($ac_try" in |
| 28361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28362 | *) ac_try_echo=$ac_try;; |
| 28363 | esac |
| 28364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28365 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28366 | ac_status=$? |
| 28367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28368 | (exit $ac_status); }; } && |
| 28369 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28370 | { (case "(($ac_try" in |
| 28371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28372 | *) ac_try_echo=$ac_try;; |
| 28373 | esac |
| 28374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28375 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28376 | ac_status=$? |
| 28377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28378 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28379 | ac_header_compiler=yes |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28380 | else |
| 28381 | echo "$as_me: failed program was:" >&5 |
| 28382 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28383 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28384 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28385 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28386 | |
| 28387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28388 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28389 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28390 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28391 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28392 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28393 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28394 | cat >conftest.$ac_ext <<_ACEOF |
| 28395 | /* confdefs.h. */ |
| 28396 | _ACEOF |
| 28397 | cat confdefs.h >>conftest.$ac_ext |
| 28398 | cat >>conftest.$ac_ext <<_ACEOF |
| 28399 | /* end confdefs.h. */ |
| 28400 | #include <$ac_header> |
| 28401 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28402 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28403 | case "(($ac_try" in |
| 28404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28405 | *) ac_try_echo=$ac_try;; |
| 28406 | esac |
| 28407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28408 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28409 | ac_status=$? |
| 28410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28411 | rm -f conftest.er1 |
| 28412 | cat conftest.err >&5 |
| 28413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28414 | (exit $ac_status); } >/dev/null; then |
| 28415 | if test -s conftest.err; then |
| 28416 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28417 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28418 | else |
| 28419 | ac_cpp_err= |
| 28420 | fi |
| 28421 | else |
| 28422 | ac_cpp_err=yes |
| 28423 | fi |
| 28424 | if test -z "$ac_cpp_err"; then |
| 28425 | ac_header_preproc=yes |
| 28426 | else |
| 28427 | echo "$as_me: failed program was:" >&5 |
| 28428 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28429 | |
| 28430 | ac_header_preproc=no |
| 28431 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28432 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28433 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28434 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28435 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28436 | |
| 28437 | # So? What about this header? |
| 28438 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28439 | yes:no: ) |
| 28440 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28441 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28442 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28443 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 28444 | ac_header_preproc=yes |
| 28445 | ;; |
| 28446 | no:yes:* ) |
| 28447 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28448 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28449 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28450 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28451 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28452 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28453 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28454 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28455 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28456 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28457 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28458 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28459 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28460 | ## ----------------------------------- ## |
| 28461 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28462 | ## ----------------------------------- ## |
| 28463 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28464 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28465 | ;; |
| 28466 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28467 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28468 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28469 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28471 | else |
| 28472 | eval "$as_ac_Header=\$ac_header_preproc" |
| 28473 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28474 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28475 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28476 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28477 | |
| 28478 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28479 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28480 | cat >>confdefs.h <<_ACEOF |
| 28481 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28482 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28483 | |
| 28484 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28485 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28486 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28487 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28488 | |
| 28489 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28490 | |
| 28491 | |
| 28492 | |
| 28493 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 28494 | for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28495 | do |
| 28496 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28497 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28498 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28499 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28500 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28502 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28503 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28504 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28505 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28506 | else |
| 28507 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28508 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28509 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28510 | cat >conftest.$ac_ext <<_ACEOF |
| 28511 | /* confdefs.h. */ |
| 28512 | _ACEOF |
| 28513 | cat confdefs.h >>conftest.$ac_ext |
| 28514 | cat >>conftest.$ac_ext <<_ACEOF |
| 28515 | /* end confdefs.h. */ |
| 28516 | $ac_includes_default |
| 28517 | #include <$ac_header> |
| 28518 | _ACEOF |
| 28519 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28520 | if { (ac_try="$ac_compile" |
| 28521 | case "(($ac_try" in |
| 28522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28523 | *) ac_try_echo=$ac_try;; |
| 28524 | esac |
| 28525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28526 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28527 | ac_status=$? |
| 28528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28529 | rm -f conftest.er1 |
| 28530 | cat conftest.err >&5 |
| 28531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28532 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28533 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28534 | { (case "(($ac_try" in |
| 28535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28536 | *) ac_try_echo=$ac_try;; |
| 28537 | esac |
| 28538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28539 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28540 | ac_status=$? |
| 28541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28542 | (exit $ac_status); }; } && |
| 28543 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28544 | { (case "(($ac_try" in |
| 28545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28546 | *) ac_try_echo=$ac_try;; |
| 28547 | esac |
| 28548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28549 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28550 | ac_status=$? |
| 28551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28552 | (exit $ac_status); }; }; then |
| 28553 | ac_header_compiler=yes |
| 28554 | else |
| 28555 | echo "$as_me: failed program was:" >&5 |
| 28556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28557 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28558 | ac_header_compiler=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28559 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28560 | |
| 28561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28562 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28563 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28564 | |
| 28565 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28566 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28567 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28568 | cat >conftest.$ac_ext <<_ACEOF |
| 28569 | /* confdefs.h. */ |
| 28570 | _ACEOF |
| 28571 | cat confdefs.h >>conftest.$ac_ext |
| 28572 | cat >>conftest.$ac_ext <<_ACEOF |
| 28573 | /* end confdefs.h. */ |
| 28574 | #include <$ac_header> |
| 28575 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28576 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28577 | case "(($ac_try" in |
| 28578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28579 | *) ac_try_echo=$ac_try;; |
| 28580 | esac |
| 28581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28582 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28583 | ac_status=$? |
| 28584 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28585 | rm -f conftest.er1 |
| 28586 | cat conftest.err >&5 |
| 28587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28588 | (exit $ac_status); } >/dev/null; then |
| 28589 | if test -s conftest.err; then |
| 28590 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28591 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28592 | else |
| 28593 | ac_cpp_err= |
| 28594 | fi |
| 28595 | else |
| 28596 | ac_cpp_err=yes |
| 28597 | fi |
| 28598 | if test -z "$ac_cpp_err"; then |
| 28599 | ac_header_preproc=yes |
| 28600 | else |
| 28601 | echo "$as_me: failed program was:" >&5 |
| 28602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28603 | |
| 28604 | ac_header_preproc=no |
| 28605 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28606 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28607 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28608 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28609 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28610 | |
| 28611 | # So? What about this header? |
| 28612 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28613 | yes:no: ) |
| 28614 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28615 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28616 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28617 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 28618 | ac_header_preproc=yes |
| 28619 | ;; |
| 28620 | no:yes:* ) |
| 28621 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28622 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28623 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28624 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28625 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28626 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28627 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28628 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28629 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28630 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28631 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28632 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28633 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28634 | ## ----------------------------------- ## |
| 28635 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28636 | ## ----------------------------------- ## |
| 28637 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28638 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28639 | ;; |
| 28640 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28641 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28642 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28643 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28645 | else |
| 28646 | eval "$as_ac_Header=\$ac_header_preproc" |
| 28647 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28648 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28649 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28650 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28651 | |
| 28652 | fi |
| 28653 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28654 | cat >>confdefs.h <<_ACEOF |
| 28655 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 28656 | _ACEOF |
| 28657 | |
| 28658 | fi |
| 28659 | |
| 28660 | done |
| 28661 | |
| 28662 | |
| 28663 | |
| 28664 | |
| 28665 | |
| 28666 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 28667 | for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28668 | do |
| 28669 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28670 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28671 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28672 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28673 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28675 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28676 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28677 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28678 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28679 | else |
| 28680 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28681 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28682 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28683 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28684 | /* confdefs.h. */ |
| 28685 | _ACEOF |
| 28686 | cat confdefs.h >>conftest.$ac_ext |
| 28687 | cat >>conftest.$ac_ext <<_ACEOF |
| 28688 | /* end confdefs.h. */ |
| 28689 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28690 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28691 | _ACEOF |
| 28692 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28693 | if { (ac_try="$ac_compile" |
| 28694 | case "(($ac_try" in |
| 28695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28696 | *) ac_try_echo=$ac_try;; |
| 28697 | esac |
| 28698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28699 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28700 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28701 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28702 | rm -f conftest.er1 |
| 28703 | cat conftest.err >&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28705 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28706 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28707 | { (case "(($ac_try" in |
| 28708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28709 | *) ac_try_echo=$ac_try;; |
| 28710 | esac |
| 28711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28712 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28713 | ac_status=$? |
| 28714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28715 | (exit $ac_status); }; } && |
| 28716 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28717 | { (case "(($ac_try" in |
| 28718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28719 | *) ac_try_echo=$ac_try;; |
| 28720 | esac |
| 28721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28722 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28723 | ac_status=$? |
| 28724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28725 | (exit $ac_status); }; }; then |
| 28726 | ac_header_compiler=yes |
| 28727 | else |
| 28728 | echo "$as_me: failed program was:" >&5 |
| 28729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28730 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28731 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28732 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28733 | |
| 28734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28735 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28736 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28737 | |
| 28738 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28739 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28740 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28741 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28742 | /* confdefs.h. */ |
| 28743 | _ACEOF |
| 28744 | cat confdefs.h >>conftest.$ac_ext |
| 28745 | cat >>conftest.$ac_ext <<_ACEOF |
| 28746 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28747 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28748 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28749 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28750 | case "(($ac_try" in |
| 28751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28752 | *) ac_try_echo=$ac_try;; |
| 28753 | esac |
| 28754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28755 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28756 | ac_status=$? |
| 28757 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28758 | rm -f conftest.er1 |
| 28759 | cat conftest.err >&5 |
| 28760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28761 | (exit $ac_status); } >/dev/null; then |
| 28762 | if test -s conftest.err; then |
| 28763 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28764 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28765 | else |
| 28766 | ac_cpp_err= |
| 28767 | fi |
| 28768 | else |
| 28769 | ac_cpp_err=yes |
| 28770 | fi |
| 28771 | if test -z "$ac_cpp_err"; then |
| 28772 | ac_header_preproc=yes |
| 28773 | else |
| 28774 | echo "$as_me: failed program was:" >&5 |
| 28775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28776 | |
| 28777 | ac_header_preproc=no |
| 28778 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28779 | |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28780 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28781 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28782 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28783 | |
| 28784 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28785 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28786 | yes:no: ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28787 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28788 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28789 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28790 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28791 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 28792 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28793 | no:yes:* ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28794 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28795 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28796 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28797 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28798 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28799 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28800 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28801 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28802 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28803 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28804 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28805 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28806 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28807 | ## ----------------------------------- ## |
| 28808 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28809 | ## ----------------------------------- ## |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28810 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28811 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28812 | ;; |
| 28813 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28814 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28815 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28816 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28818 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28819 | eval "$as_ac_Header=\$ac_header_preproc" |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28820 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28821 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28822 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28823 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28824 | |
| 28825 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28826 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28827 | cat >>confdefs.h <<_ACEOF |
| 28828 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 28829 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 28830 | |
| 28831 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 28832 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28833 | done |
| 28834 | |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 28835 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 28836 | |
Reid Spencer | a6d990a | 2006-09-14 06:17:21 +0000 | [diff] [blame] | 28837 | |
| 28838 | for ac_header in sys/types.h malloc/malloc.h mach/mach.h |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28839 | do |
| 28840 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28841 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28842 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28843 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28844 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28846 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28847 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28848 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28849 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28850 | else |
| 28851 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28852 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28853 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28854 | cat >conftest.$ac_ext <<_ACEOF |
| 28855 | /* confdefs.h. */ |
| 28856 | _ACEOF |
| 28857 | cat confdefs.h >>conftest.$ac_ext |
| 28858 | cat >>conftest.$ac_ext <<_ACEOF |
| 28859 | /* end confdefs.h. */ |
| 28860 | $ac_includes_default |
| 28861 | #include <$ac_header> |
| 28862 | _ACEOF |
| 28863 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28864 | if { (ac_try="$ac_compile" |
| 28865 | case "(($ac_try" in |
| 28866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28867 | *) ac_try_echo=$ac_try;; |
| 28868 | esac |
| 28869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28870 | (eval "$ac_compile") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28871 | ac_status=$? |
| 28872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28873 | rm -f conftest.er1 |
| 28874 | cat conftest.err >&5 |
| 28875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28876 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28877 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28878 | { (case "(($ac_try" in |
| 28879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28880 | *) ac_try_echo=$ac_try;; |
| 28881 | esac |
| 28882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28883 | (eval "$ac_try") 2>&5 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28884 | ac_status=$? |
| 28885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28886 | (exit $ac_status); }; } && |
| 28887 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28888 | { (case "(($ac_try" in |
| 28889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28890 | *) ac_try_echo=$ac_try;; |
| 28891 | esac |
| 28892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28893 | (eval "$ac_try") 2>&5 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28894 | ac_status=$? |
| 28895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28896 | (exit $ac_status); }; }; then |
| 28897 | ac_header_compiler=yes |
| 28898 | else |
| 28899 | echo "$as_me: failed program was:" >&5 |
| 28900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28901 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28902 | ac_header_compiler=no |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28903 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28904 | |
| 28905 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28906 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28907 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28908 | |
| 28909 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28910 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28911 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28912 | cat >conftest.$ac_ext <<_ACEOF |
| 28913 | /* confdefs.h. */ |
| 28914 | _ACEOF |
| 28915 | cat confdefs.h >>conftest.$ac_ext |
| 28916 | cat >>conftest.$ac_ext <<_ACEOF |
| 28917 | /* end confdefs.h. */ |
| 28918 | #include <$ac_header> |
| 28919 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28920 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28921 | case "(($ac_try" in |
| 28922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28923 | *) ac_try_echo=$ac_try;; |
| 28924 | esac |
| 28925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28926 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28927 | ac_status=$? |
| 28928 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28929 | rm -f conftest.er1 |
| 28930 | cat conftest.err >&5 |
| 28931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28932 | (exit $ac_status); } >/dev/null; then |
| 28933 | if test -s conftest.err; then |
| 28934 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28935 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28936 | else |
| 28937 | ac_cpp_err= |
| 28938 | fi |
| 28939 | else |
| 28940 | ac_cpp_err=yes |
| 28941 | fi |
| 28942 | if test -z "$ac_cpp_err"; then |
| 28943 | ac_header_preproc=yes |
| 28944 | else |
| 28945 | echo "$as_me: failed program was:" >&5 |
| 28946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28947 | |
| 28948 | ac_header_preproc=no |
| 28949 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28950 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28951 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28952 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28953 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28954 | |
| 28955 | # So? What about this header? |
| 28956 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28957 | yes:no: ) |
| 28958 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28959 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28960 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28961 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 28962 | ac_header_preproc=yes |
| 28963 | ;; |
| 28964 | no:yes:* ) |
| 28965 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28966 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28967 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28968 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28969 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28970 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28971 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28972 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28973 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28974 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28975 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28976 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28977 | ( cat <<\_ASBOX |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28978 | ## ----------------------------------- ## |
| 28979 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28980 | ## ----------------------------------- ## |
| 28981 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28982 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28983 | ;; |
| 28984 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28985 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28986 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28987 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28989 | else |
| 28990 | eval "$as_ac_Header=\$ac_header_preproc" |
| 28991 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28992 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28993 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28994 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28995 | |
| 28996 | fi |
| 28997 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28998 | cat >>confdefs.h <<_ACEOF |
| 28999 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29000 | _ACEOF |
| 29001 | |
| 29002 | fi |
| 29003 | |
| 29004 | done |
| 29005 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29006 | if test "$ENABLE_THREADS" -eq 1 ; then |
| 29007 | |
| 29008 | for ac_header in pthread.h |
| 29009 | do |
| 29010 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29011 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29012 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29013 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29014 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29016 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29017 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29018 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29019 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29020 | else |
| 29021 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29022 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29023 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29024 | cat >conftest.$ac_ext <<_ACEOF |
| 29025 | /* confdefs.h. */ |
| 29026 | _ACEOF |
| 29027 | cat confdefs.h >>conftest.$ac_ext |
| 29028 | cat >>conftest.$ac_ext <<_ACEOF |
| 29029 | /* end confdefs.h. */ |
| 29030 | $ac_includes_default |
| 29031 | #include <$ac_header> |
| 29032 | _ACEOF |
| 29033 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29034 | if { (ac_try="$ac_compile" |
| 29035 | case "(($ac_try" in |
| 29036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29037 | *) ac_try_echo=$ac_try;; |
| 29038 | esac |
| 29039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29040 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29041 | ac_status=$? |
| 29042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29043 | rm -f conftest.er1 |
| 29044 | cat conftest.err >&5 |
| 29045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29046 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29047 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29048 | { (case "(($ac_try" in |
| 29049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29050 | *) ac_try_echo=$ac_try;; |
| 29051 | esac |
| 29052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29053 | (eval "$ac_try") 2>&5 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29054 | ac_status=$? |
| 29055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29056 | (exit $ac_status); }; } && |
| 29057 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29058 | { (case "(($ac_try" in |
| 29059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29060 | *) ac_try_echo=$ac_try;; |
| 29061 | esac |
| 29062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29063 | (eval "$ac_try") 2>&5 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29064 | ac_status=$? |
| 29065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29066 | (exit $ac_status); }; }; then |
| 29067 | ac_header_compiler=yes |
| 29068 | else |
| 29069 | echo "$as_me: failed program was:" >&5 |
| 29070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29071 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29072 | ac_header_compiler=no |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29073 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29074 | |
| 29075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29076 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29077 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29078 | |
| 29079 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29080 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29081 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29082 | cat >conftest.$ac_ext <<_ACEOF |
| 29083 | /* confdefs.h. */ |
| 29084 | _ACEOF |
| 29085 | cat confdefs.h >>conftest.$ac_ext |
| 29086 | cat >>conftest.$ac_ext <<_ACEOF |
| 29087 | /* end confdefs.h. */ |
| 29088 | #include <$ac_header> |
| 29089 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29090 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29091 | case "(($ac_try" in |
| 29092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29093 | *) ac_try_echo=$ac_try;; |
| 29094 | esac |
| 29095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29096 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29097 | ac_status=$? |
| 29098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29099 | rm -f conftest.er1 |
| 29100 | cat conftest.err >&5 |
| 29101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29102 | (exit $ac_status); } >/dev/null; then |
| 29103 | if test -s conftest.err; then |
| 29104 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29105 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29106 | else |
| 29107 | ac_cpp_err= |
| 29108 | fi |
| 29109 | else |
| 29110 | ac_cpp_err=yes |
| 29111 | fi |
| 29112 | if test -z "$ac_cpp_err"; then |
| 29113 | ac_header_preproc=yes |
| 29114 | else |
| 29115 | echo "$as_me: failed program was:" >&5 |
| 29116 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29117 | |
| 29118 | ac_header_preproc=no |
| 29119 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29120 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29121 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29122 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29123 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29124 | |
| 29125 | # So? What about this header? |
| 29126 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29127 | yes:no: ) |
| 29128 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29129 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29130 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29131 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29132 | ac_header_preproc=yes |
| 29133 | ;; |
| 29134 | no:yes:* ) |
| 29135 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29136 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29137 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29138 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29139 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29140 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29141 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29142 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29143 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29144 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29145 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29146 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29147 | ( cat <<\_ASBOX |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29148 | ## ----------------------------------- ## |
| 29149 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29150 | ## ----------------------------------- ## |
| 29151 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29152 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29153 | ;; |
| 29154 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29155 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29156 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29157 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29159 | else |
| 29160 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29161 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29162 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29163 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29164 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29165 | |
| 29166 | fi |
| 29167 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29168 | cat >>confdefs.h <<_ACEOF |
| 29169 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29170 | _ACEOF |
| 29171 | |
| 29172 | fi |
| 29173 | |
| 29174 | done |
| 29175 | |
| 29176 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 29177 | |
| 29178 | |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 29179 | |
| 29180 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 29181 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 29182 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 29183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29184 | else |
| 29185 | |
| 29186 | ac_ext=c |
| 29187 | ac_cpp='$CPP $CPPFLAGS' |
| 29188 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29189 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29190 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29191 | |
| 29192 | CPPFLAGS=-pedantic |
| 29193 | if test "$cross_compiling" = yes; then |
| 29194 | ac_cv_huge_val_sanity=yes |
| 29195 | else |
| 29196 | cat >conftest.$ac_ext <<_ACEOF |
| 29197 | /* confdefs.h. */ |
| 29198 | _ACEOF |
| 29199 | cat confdefs.h >>conftest.$ac_ext |
| 29200 | cat >>conftest.$ac_ext <<_ACEOF |
| 29201 | /* end confdefs.h. */ |
| 29202 | #include <math.h> |
| 29203 | int |
| 29204 | main () |
| 29205 | { |
| 29206 | double x = HUGE_VAL; return x != x; |
| 29207 | ; |
| 29208 | return 0; |
| 29209 | } |
| 29210 | _ACEOF |
| 29211 | rm -f conftest$ac_exeext |
| 29212 | if { (ac_try="$ac_link" |
| 29213 | case "(($ac_try" in |
| 29214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29215 | *) ac_try_echo=$ac_try;; |
| 29216 | esac |
| 29217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29218 | (eval "$ac_link") 2>&5 |
| 29219 | ac_status=$? |
| 29220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29221 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 29222 | { (case "(($ac_try" in |
| 29223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29224 | *) ac_try_echo=$ac_try;; |
| 29225 | esac |
| 29226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29227 | (eval "$ac_try") 2>&5 |
| 29228 | ac_status=$? |
| 29229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29230 | (exit $ac_status); }; }; then |
| 29231 | ac_cv_huge_val_sanity=yes |
| 29232 | else |
| 29233 | echo "$as_me: program exited with status $ac_status" >&5 |
| 29234 | echo "$as_me: failed program was:" >&5 |
| 29235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29236 | |
| 29237 | ( exit $ac_status ) |
| 29238 | ac_cv_huge_val_sanity=no |
| 29239 | fi |
| 29240 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 29241 | fi |
| 29242 | |
| 29243 | |
| 29244 | ac_ext=c |
| 29245 | ac_cpp='$CPP $CPPFLAGS' |
| 29246 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29247 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29248 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29249 | |
| 29250 | |
| 29251 | fi |
| 29252 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 29253 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
| 29254 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 29255 | |
| 29256 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29257 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 29258 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29259 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 29260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29261 | else |
| 29262 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29263 | /* confdefs.h. */ |
| 29264 | _ACEOF |
| 29265 | cat confdefs.h >>conftest.$ac_ext |
| 29266 | cat >>conftest.$ac_ext <<_ACEOF |
| 29267 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29268 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29269 | typedef pid_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29270 | int |
| 29271 | main () |
| 29272 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29273 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29274 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29275 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29276 | return 0; |
| 29277 | ; |
| 29278 | return 0; |
| 29279 | } |
| 29280 | _ACEOF |
| 29281 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29282 | if { (ac_try="$ac_compile" |
| 29283 | case "(($ac_try" in |
| 29284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29285 | *) ac_try_echo=$ac_try;; |
| 29286 | esac |
| 29287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29288 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29289 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29290 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29291 | rm -f conftest.er1 |
| 29292 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29294 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29295 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29296 | { (case "(($ac_try" in |
| 29297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29298 | *) ac_try_echo=$ac_try;; |
| 29299 | esac |
| 29300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29301 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29302 | ac_status=$? |
| 29303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29304 | (exit $ac_status); }; } && |
| 29305 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29306 | { (case "(($ac_try" in |
| 29307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29308 | *) ac_try_echo=$ac_try;; |
| 29309 | esac |
| 29310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29311 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29312 | ac_status=$? |
| 29313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29314 | (exit $ac_status); }; }; then |
| 29315 | ac_cv_type_pid_t=yes |
| 29316 | else |
| 29317 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29318 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29319 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29320 | ac_cv_type_pid_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29321 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29322 | |
| 29323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29324 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29325 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 29326 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29327 | if test $ac_cv_type_pid_t = yes; then |
| 29328 | : |
| 29329 | else |
| 29330 | |
| 29331 | cat >>confdefs.h <<_ACEOF |
| 29332 | #define pid_t int |
| 29333 | _ACEOF |
| 29334 | |
| 29335 | fi |
| 29336 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29337 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 29338 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29339 | if test "${ac_cv_type_size_t+set}" = set; then |
| 29340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29341 | else |
| 29342 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29343 | /* confdefs.h. */ |
| 29344 | _ACEOF |
| 29345 | cat confdefs.h >>conftest.$ac_ext |
| 29346 | cat >>conftest.$ac_ext <<_ACEOF |
| 29347 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29348 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29349 | typedef size_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29350 | int |
| 29351 | main () |
| 29352 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29353 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29354 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29355 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29356 | return 0; |
| 29357 | ; |
| 29358 | return 0; |
| 29359 | } |
| 29360 | _ACEOF |
| 29361 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29362 | if { (ac_try="$ac_compile" |
| 29363 | case "(($ac_try" in |
| 29364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29365 | *) ac_try_echo=$ac_try;; |
| 29366 | esac |
| 29367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29368 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29369 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29370 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29371 | rm -f conftest.er1 |
| 29372 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29374 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29375 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29376 | { (case "(($ac_try" in |
| 29377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29378 | *) ac_try_echo=$ac_try;; |
| 29379 | esac |
| 29380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29381 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29382 | ac_status=$? |
| 29383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29384 | (exit $ac_status); }; } && |
| 29385 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29386 | { (case "(($ac_try" in |
| 29387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29388 | *) ac_try_echo=$ac_try;; |
| 29389 | esac |
| 29390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29391 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29392 | ac_status=$? |
| 29393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29394 | (exit $ac_status); }; }; then |
| 29395 | ac_cv_type_size_t=yes |
| 29396 | else |
| 29397 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29399 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29400 | ac_cv_type_size_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29401 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29402 | |
| 29403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29404 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29405 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 29406 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29407 | if test $ac_cv_type_size_t = yes; then |
| 29408 | : |
| 29409 | else |
| 29410 | |
| 29411 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29412 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29413 | _ACEOF |
| 29414 | |
| 29415 | fi |
| 29416 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29417 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 29418 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29419 | if test "${ac_cv_type_signal+set}" = set; then |
| 29420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29421 | else |
| 29422 | cat >conftest.$ac_ext <<_ACEOF |
| 29423 | /* confdefs.h. */ |
| 29424 | _ACEOF |
| 29425 | cat confdefs.h >>conftest.$ac_ext |
| 29426 | cat >>conftest.$ac_ext <<_ACEOF |
| 29427 | /* end confdefs.h. */ |
| 29428 | #include <sys/types.h> |
| 29429 | #include <signal.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29430 | |
| 29431 | int |
| 29432 | main () |
| 29433 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29434 | return *(signal (0, 0)) (0) == 1; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29435 | ; |
| 29436 | return 0; |
| 29437 | } |
| 29438 | _ACEOF |
| 29439 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29440 | if { (ac_try="$ac_compile" |
| 29441 | case "(($ac_try" in |
| 29442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29443 | *) ac_try_echo=$ac_try;; |
| 29444 | esac |
| 29445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29446 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29447 | ac_status=$? |
| 29448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29449 | rm -f conftest.er1 |
| 29450 | cat conftest.err >&5 |
| 29451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29452 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29453 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29454 | { (case "(($ac_try" in |
| 29455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29456 | *) ac_try_echo=$ac_try;; |
| 29457 | esac |
| 29458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29459 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29460 | ac_status=$? |
| 29461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29462 | (exit $ac_status); }; } && |
| 29463 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29464 | { (case "(($ac_try" in |
| 29465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29466 | *) ac_try_echo=$ac_try;; |
| 29467 | esac |
| 29468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29469 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29470 | ac_status=$? |
| 29471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29472 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29473 | ac_cv_type_signal=int |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29474 | else |
| 29475 | echo "$as_me: failed program was:" >&5 |
| 29476 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29477 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29478 | ac_cv_type_signal=void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29479 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29480 | |
| 29481 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29482 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29483 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 29484 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29485 | |
| 29486 | cat >>confdefs.h <<_ACEOF |
| 29487 | #define RETSIGTYPE $ac_cv_type_signal |
| 29488 | _ACEOF |
| 29489 | |
| 29490 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29491 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 29492 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29493 | if test "${ac_cv_struct_tm+set}" = set; then |
| 29494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29495 | else |
| 29496 | cat >conftest.$ac_ext <<_ACEOF |
| 29497 | /* confdefs.h. */ |
| 29498 | _ACEOF |
| 29499 | cat confdefs.h >>conftest.$ac_ext |
| 29500 | cat >>conftest.$ac_ext <<_ACEOF |
| 29501 | /* end confdefs.h. */ |
| 29502 | #include <sys/types.h> |
| 29503 | #include <time.h> |
| 29504 | |
| 29505 | int |
| 29506 | main () |
| 29507 | { |
| 29508 | struct tm *tp; tp->tm_sec; |
| 29509 | ; |
| 29510 | return 0; |
| 29511 | } |
| 29512 | _ACEOF |
| 29513 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29514 | if { (ac_try="$ac_compile" |
| 29515 | case "(($ac_try" in |
| 29516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29517 | *) ac_try_echo=$ac_try;; |
| 29518 | esac |
| 29519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29520 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29521 | ac_status=$? |
| 29522 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29523 | rm -f conftest.er1 |
| 29524 | cat conftest.err >&5 |
| 29525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29526 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29527 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29528 | { (case "(($ac_try" in |
| 29529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29530 | *) ac_try_echo=$ac_try;; |
| 29531 | esac |
| 29532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29533 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29534 | ac_status=$? |
| 29535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29536 | (exit $ac_status); }; } && |
| 29537 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29538 | { (case "(($ac_try" in |
| 29539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29540 | *) ac_try_echo=$ac_try;; |
| 29541 | esac |
| 29542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29543 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29544 | ac_status=$? |
| 29545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29546 | (exit $ac_status); }; }; then |
| 29547 | ac_cv_struct_tm=time.h |
| 29548 | else |
| 29549 | echo "$as_me: failed program was:" >&5 |
| 29550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29551 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29552 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29553 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29554 | |
| 29555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29556 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29557 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 29558 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29559 | if test $ac_cv_struct_tm = sys/time.h; then |
| 29560 | |
| 29561 | cat >>confdefs.h <<\_ACEOF |
| 29562 | #define TM_IN_SYS_TIME 1 |
| 29563 | _ACEOF |
| 29564 | |
| 29565 | fi |
| 29566 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29567 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 29568 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29569 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 29570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29571 | else |
| 29572 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29573 | /* confdefs.h. */ |
| 29574 | _ACEOF |
| 29575 | cat confdefs.h >>conftest.$ac_ext |
| 29576 | cat >>conftest.$ac_ext <<_ACEOF |
| 29577 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29578 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29579 | typedef int64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29580 | int |
| 29581 | main () |
| 29582 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29583 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29584 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29585 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29586 | return 0; |
| 29587 | ; |
| 29588 | return 0; |
| 29589 | } |
| 29590 | _ACEOF |
| 29591 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29592 | if { (ac_try="$ac_compile" |
| 29593 | case "(($ac_try" in |
| 29594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29595 | *) ac_try_echo=$ac_try;; |
| 29596 | esac |
| 29597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29598 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29599 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29601 | rm -f conftest.er1 |
| 29602 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29604 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29605 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29606 | { (case "(($ac_try" in |
| 29607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29608 | *) ac_try_echo=$ac_try;; |
| 29609 | esac |
| 29610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29611 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29612 | ac_status=$? |
| 29613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29614 | (exit $ac_status); }; } && |
| 29615 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29616 | { (case "(($ac_try" in |
| 29617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29618 | *) ac_try_echo=$ac_try;; |
| 29619 | esac |
| 29620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29621 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29622 | ac_status=$? |
| 29623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29624 | (exit $ac_status); }; }; then |
| 29625 | ac_cv_type_int64_t=yes |
| 29626 | else |
| 29627 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29629 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29630 | ac_cv_type_int64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29631 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29632 | |
| 29633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29634 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29635 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 29636 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29637 | if test $ac_cv_type_int64_t = yes; then |
| 29638 | |
| 29639 | cat >>confdefs.h <<_ACEOF |
| 29640 | #define HAVE_INT64_T 1 |
| 29641 | _ACEOF |
| 29642 | |
| 29643 | |
| 29644 | else |
| 29645 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 29646 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 29647 | { (exit 1); exit 1; }; } |
| 29648 | fi |
| 29649 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29650 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 29651 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29652 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 29653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29654 | else |
| 29655 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29656 | /* confdefs.h. */ |
| 29657 | _ACEOF |
| 29658 | cat confdefs.h >>conftest.$ac_ext |
| 29659 | cat >>conftest.$ac_ext <<_ACEOF |
| 29660 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29661 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29662 | typedef uint64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29663 | int |
| 29664 | main () |
| 29665 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29666 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29667 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29668 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29669 | return 0; |
| 29670 | ; |
| 29671 | return 0; |
| 29672 | } |
| 29673 | _ACEOF |
| 29674 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29675 | if { (ac_try="$ac_compile" |
| 29676 | case "(($ac_try" in |
| 29677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29678 | *) ac_try_echo=$ac_try;; |
| 29679 | esac |
| 29680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29681 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29682 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29683 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29684 | rm -f conftest.er1 |
| 29685 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29687 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29688 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29689 | { (case "(($ac_try" in |
| 29690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29691 | *) ac_try_echo=$ac_try;; |
| 29692 | esac |
| 29693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29694 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29695 | ac_status=$? |
| 29696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29697 | (exit $ac_status); }; } && |
| 29698 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29699 | { (case "(($ac_try" in |
| 29700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29701 | *) ac_try_echo=$ac_try;; |
| 29702 | esac |
| 29703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29704 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29705 | ac_status=$? |
| 29706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29707 | (exit $ac_status); }; }; then |
| 29708 | ac_cv_type_uint64_t=yes |
| 29709 | else |
| 29710 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29712 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29713 | ac_cv_type_uint64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29714 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29715 | |
| 29716 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29717 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29718 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 29719 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29720 | if test $ac_cv_type_uint64_t = yes; then |
| 29721 | |
| 29722 | cat >>confdefs.h <<_ACEOF |
| 29723 | #define HAVE_UINT64_T 1 |
| 29724 | _ACEOF |
| 29725 | |
| 29726 | |
| 29727 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29728 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 29729 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29730 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 29731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29732 | else |
| 29733 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29734 | /* confdefs.h. */ |
| 29735 | _ACEOF |
| 29736 | cat confdefs.h >>conftest.$ac_ext |
| 29737 | cat >>conftest.$ac_ext <<_ACEOF |
| 29738 | /* end confdefs.h. */ |
| 29739 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29740 | typedef u_int64_t ac__type_new_; |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29741 | int |
| 29742 | main () |
| 29743 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29744 | if ((ac__type_new_ *) 0) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29745 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29746 | if (sizeof (ac__type_new_)) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29747 | return 0; |
| 29748 | ; |
| 29749 | return 0; |
| 29750 | } |
| 29751 | _ACEOF |
| 29752 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29753 | if { (ac_try="$ac_compile" |
| 29754 | case "(($ac_try" in |
| 29755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29756 | *) ac_try_echo=$ac_try;; |
| 29757 | esac |
| 29758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29759 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29760 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29761 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29762 | rm -f conftest.er1 |
| 29763 | cat conftest.err >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29765 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29766 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29767 | { (case "(($ac_try" in |
| 29768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29769 | *) ac_try_echo=$ac_try;; |
| 29770 | esac |
| 29771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29772 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29773 | ac_status=$? |
| 29774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29775 | (exit $ac_status); }; } && |
| 29776 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29777 | { (case "(($ac_try" in |
| 29778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29779 | *) ac_try_echo=$ac_try;; |
| 29780 | esac |
| 29781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29782 | (eval "$ac_try") 2>&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29783 | ac_status=$? |
| 29784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29785 | (exit $ac_status); }; }; then |
| 29786 | ac_cv_type_u_int64_t=yes |
| 29787 | else |
| 29788 | echo "$as_me: failed program was:" >&5 |
| 29789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29790 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29791 | ac_cv_type_u_int64_t=no |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29792 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29793 | |
| 29794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29795 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29796 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 29797 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29798 | if test $ac_cv_type_u_int64_t = yes; then |
| 29799 | |
| 29800 | cat >>confdefs.h <<_ACEOF |
| 29801 | #define HAVE_U_INT64_T 1 |
| 29802 | _ACEOF |
| 29803 | |
| 29804 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 29805 | else |
| 29806 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 29807 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 29808 | { (exit 1); exit 1; }; } |
| 29809 | fi |
| 29810 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29811 | fi |
| 29812 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29813 | |
| 29814 | |
| 29815 | |
| 29816 | |
| 29817 | |
| 29818 | |
| 29819 | |
Reid Spencer | f4bb9b1 | 2006-01-19 08:22:40 +0000 | [diff] [blame] | 29820 | |
| 29821 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29822 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29823 | do |
| 29824 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29825 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 29826 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 29827 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29829 | else |
| 29830 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29831 | /* confdefs.h. */ |
| 29832 | _ACEOF |
| 29833 | cat confdefs.h >>conftest.$ac_ext |
| 29834 | cat >>conftest.$ac_ext <<_ACEOF |
| 29835 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29836 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 29837 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 29838 | #define $ac_func innocuous_$ac_func |
| 29839 | |
| 29840 | /* System header to define __stub macros and hopefully few prototypes, |
| 29841 | which can conflict with char $ac_func (); below. |
| 29842 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 29843 | <limits.h> exists even on freestanding compilers. */ |
| 29844 | |
| 29845 | #ifdef __STDC__ |
| 29846 | # include <limits.h> |
| 29847 | #else |
| 29848 | # include <assert.h> |
| 29849 | #endif |
| 29850 | |
| 29851 | #undef $ac_func |
| 29852 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29853 | /* Override any GCC internal prototype to avoid an error. |
| 29854 | Use char because int might match the return type of a GCC |
| 29855 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29856 | #ifdef __cplusplus |
| 29857 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29858 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29859 | char $ac_func (); |
| 29860 | /* The GNU C library defines this for functions which it implements |
| 29861 | to always fail with ENOSYS. Some functions are actually named |
| 29862 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29863 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29864 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29865 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29866 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29867 | int |
| 29868 | main () |
| 29869 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29870 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29871 | ; |
| 29872 | return 0; |
| 29873 | } |
| 29874 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29875 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29876 | if { (ac_try="$ac_link" |
| 29877 | case "(($ac_try" in |
| 29878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29879 | *) ac_try_echo=$ac_try;; |
| 29880 | esac |
| 29881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29882 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29883 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29884 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29885 | rm -f conftest.er1 |
| 29886 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29888 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29889 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29890 | { (case "(($ac_try" in |
| 29891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29892 | *) ac_try_echo=$ac_try;; |
| 29893 | esac |
| 29894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29895 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29896 | ac_status=$? |
| 29897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29898 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29899 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29900 | { (case "(($ac_try" in |
| 29901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29902 | *) ac_try_echo=$ac_try;; |
| 29903 | esac |
| 29904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29905 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29906 | ac_status=$? |
| 29907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29908 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29909 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29910 | else |
| 29911 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29912 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29913 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29914 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29915 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29916 | |
| 29917 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29918 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29919 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29920 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 29921 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29922 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29923 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 29924 | cat >>confdefs.h <<_ACEOF |
| 29925 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29926 | _ACEOF |
| 29927 | |
| 29928 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29929 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29930 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29931 | |
| 29932 | |
| 29933 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 29934 | |
| 29935 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29936 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29937 | for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp |
| 29938 | do |
| 29939 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29940 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 29941 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 29942 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29944 | else |
| 29945 | cat >conftest.$ac_ext <<_ACEOF |
| 29946 | /* confdefs.h. */ |
| 29947 | _ACEOF |
| 29948 | cat confdefs.h >>conftest.$ac_ext |
| 29949 | cat >>conftest.$ac_ext <<_ACEOF |
| 29950 | /* end confdefs.h. */ |
| 29951 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 29952 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 29953 | #define $ac_func innocuous_$ac_func |
| 29954 | |
| 29955 | /* System header to define __stub macros and hopefully few prototypes, |
| 29956 | which can conflict with char $ac_func (); below. |
| 29957 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 29958 | <limits.h> exists even on freestanding compilers. */ |
| 29959 | |
| 29960 | #ifdef __STDC__ |
| 29961 | # include <limits.h> |
| 29962 | #else |
| 29963 | # include <assert.h> |
| 29964 | #endif |
| 29965 | |
| 29966 | #undef $ac_func |
| 29967 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29968 | /* Override any GCC internal prototype to avoid an error. |
| 29969 | Use char because int might match the return type of a GCC |
| 29970 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29971 | #ifdef __cplusplus |
| 29972 | extern "C" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29973 | #endif |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29974 | char $ac_func (); |
| 29975 | /* The GNU C library defines this for functions which it implements |
| 29976 | to always fail with ENOSYS. Some functions are actually named |
| 29977 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29978 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29979 | choke me |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29980 | #endif |
| 29981 | |
| 29982 | int |
| 29983 | main () |
| 29984 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29985 | return $ac_func (); |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29986 | ; |
| 29987 | return 0; |
| 29988 | } |
| 29989 | _ACEOF |
| 29990 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29991 | if { (ac_try="$ac_link" |
| 29992 | case "(($ac_try" in |
| 29993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29994 | *) ac_try_echo=$ac_try;; |
| 29995 | esac |
| 29996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29997 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29998 | ac_status=$? |
| 29999 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30000 | rm -f conftest.er1 |
| 30001 | cat conftest.err >&5 |
| 30002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30003 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30004 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30005 | { (case "(($ac_try" in |
| 30006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30007 | *) ac_try_echo=$ac_try;; |
| 30008 | esac |
| 30009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30010 | (eval "$ac_try") 2>&5 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30011 | ac_status=$? |
| 30012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30013 | (exit $ac_status); }; } && |
| 30014 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30015 | { (case "(($ac_try" in |
| 30016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30017 | *) ac_try_echo=$ac_try;; |
| 30018 | esac |
| 30019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30020 | (eval "$ac_try") 2>&5 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30021 | ac_status=$? |
| 30022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30023 | (exit $ac_status); }; }; then |
| 30024 | eval "$as_ac_var=yes" |
| 30025 | else |
| 30026 | echo "$as_me: failed program was:" >&5 |
| 30027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30028 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30029 | eval "$as_ac_var=no" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30030 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30031 | |
| 30032 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30033 | conftest$ac_exeext conftest.$ac_ext |
| 30034 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30035 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30036 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30037 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30038 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30039 | cat >>confdefs.h <<_ACEOF |
| 30040 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30041 | _ACEOF |
| 30042 | |
| 30043 | fi |
| 30044 | done |
| 30045 | |
| 30046 | |
| 30047 | |
| 30048 | |
| 30049 | |
| 30050 | |
| 30051 | |
| 30052 | |
| 30053 | for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30054 | do |
| 30055 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30056 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30057 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30058 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30060 | else |
| 30061 | cat >conftest.$ac_ext <<_ACEOF |
| 30062 | /* confdefs.h. */ |
| 30063 | _ACEOF |
| 30064 | cat confdefs.h >>conftest.$ac_ext |
| 30065 | cat >>conftest.$ac_ext <<_ACEOF |
| 30066 | /* end confdefs.h. */ |
| 30067 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30068 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30069 | #define $ac_func innocuous_$ac_func |
| 30070 | |
| 30071 | /* System header to define __stub macros and hopefully few prototypes, |
| 30072 | which can conflict with char $ac_func (); below. |
| 30073 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30074 | <limits.h> exists even on freestanding compilers. */ |
| 30075 | |
| 30076 | #ifdef __STDC__ |
| 30077 | # include <limits.h> |
| 30078 | #else |
| 30079 | # include <assert.h> |
| 30080 | #endif |
| 30081 | |
| 30082 | #undef $ac_func |
| 30083 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30084 | /* Override any GCC internal prototype to avoid an error. |
| 30085 | Use char because int might match the return type of a GCC |
| 30086 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30087 | #ifdef __cplusplus |
| 30088 | extern "C" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30089 | #endif |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30090 | char $ac_func (); |
| 30091 | /* The GNU C library defines this for functions which it implements |
| 30092 | to always fail with ENOSYS. Some functions are actually named |
| 30093 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30094 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30095 | choke me |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30096 | #endif |
| 30097 | |
| 30098 | int |
| 30099 | main () |
| 30100 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30101 | return $ac_func (); |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30102 | ; |
| 30103 | return 0; |
| 30104 | } |
| 30105 | _ACEOF |
| 30106 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30107 | if { (ac_try="$ac_link" |
| 30108 | case "(($ac_try" in |
| 30109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30110 | *) ac_try_echo=$ac_try;; |
| 30111 | esac |
| 30112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30113 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30114 | ac_status=$? |
| 30115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30116 | rm -f conftest.er1 |
| 30117 | cat conftest.err >&5 |
| 30118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30119 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30120 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30121 | { (case "(($ac_try" in |
| 30122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30123 | *) ac_try_echo=$ac_try;; |
| 30124 | esac |
| 30125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30126 | (eval "$ac_try") 2>&5 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30127 | ac_status=$? |
| 30128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30129 | (exit $ac_status); }; } && |
| 30130 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30131 | { (case "(($ac_try" in |
| 30132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30133 | *) ac_try_echo=$ac_try;; |
| 30134 | esac |
| 30135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30136 | (eval "$ac_try") 2>&5 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30137 | ac_status=$? |
| 30138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30139 | (exit $ac_status); }; }; then |
| 30140 | eval "$as_ac_var=yes" |
| 30141 | else |
| 30142 | echo "$as_me: failed program was:" >&5 |
| 30143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30144 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30145 | eval "$as_ac_var=no" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30146 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30147 | |
| 30148 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30149 | conftest$ac_exeext conftest.$ac_ext |
| 30150 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30151 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30152 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30153 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30154 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30155 | cat >>confdefs.h <<_ACEOF |
| 30156 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30157 | _ACEOF |
| 30158 | |
| 30159 | fi |
| 30160 | done |
| 30161 | |
| 30162 | |
Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 30163 | |
| 30164 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30165 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 30166 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30167 | do |
| 30168 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30169 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30170 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30171 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30173 | else |
| 30174 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30175 | /* confdefs.h. */ |
| 30176 | _ACEOF |
| 30177 | cat confdefs.h >>conftest.$ac_ext |
| 30178 | cat >>conftest.$ac_ext <<_ACEOF |
| 30179 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30180 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30181 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30182 | #define $ac_func innocuous_$ac_func |
| 30183 | |
| 30184 | /* System header to define __stub macros and hopefully few prototypes, |
| 30185 | which can conflict with char $ac_func (); below. |
| 30186 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30187 | <limits.h> exists even on freestanding compilers. */ |
| 30188 | |
| 30189 | #ifdef __STDC__ |
| 30190 | # include <limits.h> |
| 30191 | #else |
| 30192 | # include <assert.h> |
| 30193 | #endif |
| 30194 | |
| 30195 | #undef $ac_func |
| 30196 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30197 | /* Override any GCC internal prototype to avoid an error. |
| 30198 | Use char because int might match the return type of a GCC |
| 30199 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30200 | #ifdef __cplusplus |
| 30201 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30202 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30203 | char $ac_func (); |
| 30204 | /* The GNU C library defines this for functions which it implements |
| 30205 | to always fail with ENOSYS. Some functions are actually named |
| 30206 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30207 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30208 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30209 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30210 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30211 | int |
| 30212 | main () |
| 30213 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30214 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30215 | ; |
| 30216 | return 0; |
| 30217 | } |
| 30218 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30219 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30220 | if { (ac_try="$ac_link" |
| 30221 | case "(($ac_try" in |
| 30222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30223 | *) ac_try_echo=$ac_try;; |
| 30224 | esac |
| 30225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30226 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30227 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30229 | rm -f conftest.er1 |
| 30230 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30232 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30233 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30234 | { (case "(($ac_try" in |
| 30235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30236 | *) ac_try_echo=$ac_try;; |
| 30237 | esac |
| 30238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30239 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30240 | ac_status=$? |
| 30241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30242 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30243 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30244 | { (case "(($ac_try" in |
| 30245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30246 | *) ac_try_echo=$ac_try;; |
| 30247 | esac |
| 30248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30249 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30250 | ac_status=$? |
| 30251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30252 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30253 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30254 | else |
| 30255 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30257 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30258 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30259 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30260 | |
| 30261 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30262 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30263 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30264 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30265 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30266 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30267 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30268 | cat >>confdefs.h <<_ACEOF |
| 30269 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30270 | _ACEOF |
| 30271 | |
| 30272 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30273 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30274 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30275 | |
| 30276 | |
| 30277 | |
| 30278 | |
| 30279 | |
| 30280 | |
| 30281 | for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp |
| 30282 | do |
| 30283 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30284 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30285 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30286 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30288 | else |
| 30289 | cat >conftest.$ac_ext <<_ACEOF |
| 30290 | /* confdefs.h. */ |
| 30291 | _ACEOF |
| 30292 | cat confdefs.h >>conftest.$ac_ext |
| 30293 | cat >>conftest.$ac_ext <<_ACEOF |
| 30294 | /* end confdefs.h. */ |
| 30295 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30296 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30297 | #define $ac_func innocuous_$ac_func |
| 30298 | |
| 30299 | /* System header to define __stub macros and hopefully few prototypes, |
| 30300 | which can conflict with char $ac_func (); below. |
| 30301 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30302 | <limits.h> exists even on freestanding compilers. */ |
| 30303 | |
| 30304 | #ifdef __STDC__ |
| 30305 | # include <limits.h> |
| 30306 | #else |
| 30307 | # include <assert.h> |
| 30308 | #endif |
| 30309 | |
| 30310 | #undef $ac_func |
| 30311 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30312 | /* Override any GCC internal prototype to avoid an error. |
| 30313 | Use char because int might match the return type of a GCC |
| 30314 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30315 | #ifdef __cplusplus |
| 30316 | extern "C" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30317 | #endif |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30318 | char $ac_func (); |
| 30319 | /* The GNU C library defines this for functions which it implements |
| 30320 | to always fail with ENOSYS. Some functions are actually named |
| 30321 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30322 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30323 | choke me |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30324 | #endif |
| 30325 | |
| 30326 | int |
| 30327 | main () |
| 30328 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30329 | return $ac_func (); |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30330 | ; |
| 30331 | return 0; |
| 30332 | } |
| 30333 | _ACEOF |
| 30334 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30335 | if { (ac_try="$ac_link" |
| 30336 | case "(($ac_try" in |
| 30337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30338 | *) ac_try_echo=$ac_try;; |
| 30339 | esac |
| 30340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30341 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30342 | ac_status=$? |
| 30343 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30344 | rm -f conftest.er1 |
| 30345 | cat conftest.err >&5 |
| 30346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30347 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30348 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30349 | { (case "(($ac_try" in |
| 30350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30351 | *) ac_try_echo=$ac_try;; |
| 30352 | esac |
| 30353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30354 | (eval "$ac_try") 2>&5 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30355 | ac_status=$? |
| 30356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30357 | (exit $ac_status); }; } && |
| 30358 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30359 | { (case "(($ac_try" in |
| 30360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30361 | *) ac_try_echo=$ac_try;; |
| 30362 | esac |
| 30363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30364 | (eval "$ac_try") 2>&5 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30365 | ac_status=$? |
| 30366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30367 | (exit $ac_status); }; }; then |
| 30368 | eval "$as_ac_var=yes" |
| 30369 | else |
| 30370 | echo "$as_me: failed program was:" >&5 |
| 30371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30372 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30373 | eval "$as_ac_var=no" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30374 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30375 | |
| 30376 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30377 | conftest$ac_exeext conftest.$ac_ext |
| 30378 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30379 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30380 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30381 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30382 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30383 | cat >>confdefs.h <<_ACEOF |
| 30384 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30385 | _ACEOF |
| 30386 | |
| 30387 | fi |
| 30388 | done |
| 30389 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30390 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 30391 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 30392 | if test "${llvm_cv_c_printf_a+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30394 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30395 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30396 | ac_cpp='$CPP $CPPFLAGS' |
| 30397 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30398 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30399 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30400 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30401 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 30402 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30403 | else |
| 30404 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30405 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30406 | /* confdefs.h. */ |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30407 | _ACEOF |
| 30408 | cat confdefs.h >>conftest.$ac_ext |
| 30409 | cat >>conftest.$ac_ext <<_ACEOF |
| 30410 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30411 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30412 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30413 | #include <stdlib.h> |
| 30414 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30415 | int |
| 30416 | main () |
| 30417 | { |
| 30418 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30419 | volatile double A, B; |
| 30420 | char Buffer[100]; |
| 30421 | A = 1; |
| 30422 | A /= 10.0; |
| 30423 | sprintf(Buffer, "%a", A); |
| 30424 | B = atof(Buffer); |
| 30425 | if (A != B) |
| 30426 | return (1); |
| 30427 | if (A != 0x1.999999999999ap-4) |
| 30428 | return (1); |
| 30429 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30430 | ; |
| 30431 | return 0; |
| 30432 | } |
| 30433 | _ACEOF |
| 30434 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30435 | if { (ac_try="$ac_link" |
| 30436 | case "(($ac_try" in |
| 30437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30438 | *) ac_try_echo=$ac_try;; |
| 30439 | esac |
| 30440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30441 | (eval "$ac_link") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30442 | ac_status=$? |
| 30443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30444 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30445 | { (case "(($ac_try" in |
| 30446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30447 | *) ac_try_echo=$ac_try;; |
| 30448 | esac |
| 30449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30450 | (eval "$ac_try") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30451 | ac_status=$? |
| 30452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30453 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 30454 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30455 | else |
| 30456 | echo "$as_me: program exited with status $ac_status" >&5 |
| 30457 | echo "$as_me: failed program was:" >&5 |
| 30458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30459 | |
| 30460 | ( exit $ac_status ) |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 30461 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30462 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30463 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30464 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30465 | |
| 30466 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30467 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30468 | ac_cpp='$CPP $CPPFLAGS' |
| 30469 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30470 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30471 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30472 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30473 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30474 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 30475 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 30476 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30477 | |
| 30478 | cat >>confdefs.h <<\_ACEOF |
| 30479 | #define HAVE_PRINTF_A 1 |
| 30480 | _ACEOF |
| 30481 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30482 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30483 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30484 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 30485 | # for constant arguments. Useless! |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30486 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 30487 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30488 | if test "${ac_cv_working_alloca_h+set}" = set; then |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30490 | else |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30491 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30492 | /* confdefs.h. */ |
| 30493 | _ACEOF |
| 30494 | cat confdefs.h >>conftest.$ac_ext |
| 30495 | cat >>conftest.$ac_ext <<_ACEOF |
| 30496 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30497 | #include <alloca.h> |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30498 | int |
| 30499 | main () |
| 30500 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30501 | char *p = (char *) alloca (2 * sizeof (int)); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30502 | if (p) return 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30503 | ; |
| 30504 | return 0; |
| 30505 | } |
| 30506 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30507 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30508 | if { (ac_try="$ac_link" |
| 30509 | case "(($ac_try" in |
| 30510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30511 | *) ac_try_echo=$ac_try;; |
| 30512 | esac |
| 30513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30514 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30515 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30516 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30517 | rm -f conftest.er1 |
| 30518 | cat conftest.err >&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30520 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30521 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30522 | { (case "(($ac_try" in |
| 30523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30524 | *) ac_try_echo=$ac_try;; |
| 30525 | esac |
| 30526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30527 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30528 | ac_status=$? |
| 30529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30530 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30531 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30532 | { (case "(($ac_try" in |
| 30533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30534 | *) ac_try_echo=$ac_try;; |
| 30535 | esac |
| 30536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30537 | (eval "$ac_try") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30538 | ac_status=$? |
| 30539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30540 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30541 | ac_cv_working_alloca_h=yes |
| 30542 | else |
| 30543 | echo "$as_me: failed program was:" >&5 |
| 30544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30545 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30546 | ac_cv_working_alloca_h=no |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30547 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30548 | |
| 30549 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30550 | conftest$ac_exeext conftest.$ac_ext |
| 30551 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30552 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 30553 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30554 | if test $ac_cv_working_alloca_h = yes; then |
| 30555 | |
| 30556 | cat >>confdefs.h <<\_ACEOF |
| 30557 | #define HAVE_ALLOCA_H 1 |
| 30558 | _ACEOF |
| 30559 | |
| 30560 | fi |
| 30561 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30562 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 30563 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30564 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 30565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30566 | else |
| 30567 | cat >conftest.$ac_ext <<_ACEOF |
| 30568 | /* confdefs.h. */ |
| 30569 | _ACEOF |
| 30570 | cat confdefs.h >>conftest.$ac_ext |
| 30571 | cat >>conftest.$ac_ext <<_ACEOF |
| 30572 | /* end confdefs.h. */ |
| 30573 | #ifdef __GNUC__ |
| 30574 | # define alloca __builtin_alloca |
| 30575 | #else |
| 30576 | # ifdef _MSC_VER |
| 30577 | # include <malloc.h> |
| 30578 | # define alloca _alloca |
| 30579 | # else |
| 30580 | # if HAVE_ALLOCA_H |
| 30581 | # include <alloca.h> |
| 30582 | # else |
| 30583 | # ifdef _AIX |
| 30584 | #pragma alloca |
| 30585 | # else |
| 30586 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 30587 | char *alloca (); |
| 30588 | # endif |
| 30589 | # endif |
| 30590 | # endif |
| 30591 | # endif |
| 30592 | #endif |
| 30593 | |
| 30594 | int |
| 30595 | main () |
| 30596 | { |
| 30597 | char *p = (char *) alloca (1); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30598 | if (p) return 0; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30599 | ; |
| 30600 | return 0; |
| 30601 | } |
| 30602 | _ACEOF |
| 30603 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30604 | if { (ac_try="$ac_link" |
| 30605 | case "(($ac_try" in |
| 30606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30607 | *) ac_try_echo=$ac_try;; |
| 30608 | esac |
| 30609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30610 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30611 | ac_status=$? |
| 30612 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30613 | rm -f conftest.er1 |
| 30614 | cat conftest.err >&5 |
| 30615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30616 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30617 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30618 | { (case "(($ac_try" in |
| 30619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30620 | *) ac_try_echo=$ac_try;; |
| 30621 | esac |
| 30622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30623 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30624 | ac_status=$? |
| 30625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30626 | (exit $ac_status); }; } && |
| 30627 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30628 | { (case "(($ac_try" in |
| 30629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30630 | *) ac_try_echo=$ac_try;; |
| 30631 | esac |
| 30632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30633 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30634 | ac_status=$? |
| 30635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30636 | (exit $ac_status); }; }; then |
| 30637 | ac_cv_func_alloca_works=yes |
| 30638 | else |
| 30639 | echo "$as_me: failed program was:" >&5 |
| 30640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30641 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30642 | ac_cv_func_alloca_works=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30643 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30644 | |
| 30645 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30646 | conftest$ac_exeext conftest.$ac_ext |
| 30647 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30648 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 30649 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30650 | |
| 30651 | if test $ac_cv_func_alloca_works = yes; then |
| 30652 | |
| 30653 | cat >>confdefs.h <<\_ACEOF |
| 30654 | #define HAVE_ALLOCA 1 |
| 30655 | _ACEOF |
| 30656 | |
| 30657 | else |
| 30658 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 30659 | # that cause trouble. Some versions do not even contain alloca or |
| 30660 | # contain a buggy version. If you still want to use their alloca, |
| 30661 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 30662 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30663 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30664 | |
| 30665 | cat >>confdefs.h <<\_ACEOF |
| 30666 | #define C_ALLOCA 1 |
| 30667 | _ACEOF |
| 30668 | |
| 30669 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30670 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 30671 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30672 | if test "${ac_cv_os_cray+set}" = set; then |
| 30673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30674 | else |
| 30675 | cat >conftest.$ac_ext <<_ACEOF |
| 30676 | /* confdefs.h. */ |
| 30677 | _ACEOF |
| 30678 | cat confdefs.h >>conftest.$ac_ext |
| 30679 | cat >>conftest.$ac_ext <<_ACEOF |
| 30680 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30681 | #if defined CRAY && ! defined CRAY2 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30682 | webecray |
| 30683 | #else |
| 30684 | wenotbecray |
| 30685 | #endif |
| 30686 | |
| 30687 | _ACEOF |
| 30688 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 30689 | $EGREP "webecray" >/dev/null 2>&1; then |
| 30690 | ac_cv_os_cray=yes |
| 30691 | else |
| 30692 | ac_cv_os_cray=no |
| 30693 | fi |
| 30694 | rm -f conftest* |
| 30695 | |
| 30696 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30697 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 30698 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30699 | if test $ac_cv_os_cray = yes; then |
| 30700 | for ac_func in _getb67 GETB67 getb67; do |
| 30701 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30702 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30703 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30704 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30706 | else |
| 30707 | cat >conftest.$ac_ext <<_ACEOF |
| 30708 | /* confdefs.h. */ |
| 30709 | _ACEOF |
| 30710 | cat confdefs.h >>conftest.$ac_ext |
| 30711 | cat >>conftest.$ac_ext <<_ACEOF |
| 30712 | /* end confdefs.h. */ |
| 30713 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30714 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30715 | #define $ac_func innocuous_$ac_func |
| 30716 | |
| 30717 | /* System header to define __stub macros and hopefully few prototypes, |
| 30718 | which can conflict with char $ac_func (); below. |
| 30719 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30720 | <limits.h> exists even on freestanding compilers. */ |
| 30721 | |
| 30722 | #ifdef __STDC__ |
| 30723 | # include <limits.h> |
| 30724 | #else |
| 30725 | # include <assert.h> |
| 30726 | #endif |
| 30727 | |
| 30728 | #undef $ac_func |
| 30729 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30730 | /* Override any GCC internal prototype to avoid an error. |
| 30731 | Use char because int might match the return type of a GCC |
| 30732 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30733 | #ifdef __cplusplus |
| 30734 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30735 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30736 | char $ac_func (); |
| 30737 | /* The GNU C library defines this for functions which it implements |
| 30738 | to always fail with ENOSYS. Some functions are actually named |
| 30739 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30740 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30741 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30742 | #endif |
| 30743 | |
| 30744 | int |
| 30745 | main () |
| 30746 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30747 | return $ac_func (); |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30748 | ; |
| 30749 | return 0; |
| 30750 | } |
| 30751 | _ACEOF |
| 30752 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30753 | if { (ac_try="$ac_link" |
| 30754 | case "(($ac_try" in |
| 30755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30756 | *) ac_try_echo=$ac_try;; |
| 30757 | esac |
| 30758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30759 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30760 | ac_status=$? |
| 30761 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30762 | rm -f conftest.er1 |
| 30763 | cat conftest.err >&5 |
| 30764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30765 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30766 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30767 | { (case "(($ac_try" in |
| 30768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30769 | *) ac_try_echo=$ac_try;; |
| 30770 | esac |
| 30771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30772 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30773 | ac_status=$? |
| 30774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30775 | (exit $ac_status); }; } && |
| 30776 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30777 | { (case "(($ac_try" in |
| 30778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30779 | *) ac_try_echo=$ac_try;; |
| 30780 | esac |
| 30781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30782 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30783 | ac_status=$? |
| 30784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30785 | (exit $ac_status); }; }; then |
| 30786 | eval "$as_ac_var=yes" |
| 30787 | else |
| 30788 | echo "$as_me: failed program was:" >&5 |
| 30789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30790 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30791 | eval "$as_ac_var=no" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30792 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30793 | |
| 30794 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30795 | conftest$ac_exeext conftest.$ac_ext |
| 30796 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30797 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30798 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30799 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30800 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30801 | |
| 30802 | cat >>confdefs.h <<_ACEOF |
| 30803 | #define CRAY_STACKSEG_END $ac_func |
| 30804 | _ACEOF |
| 30805 | |
| 30806 | break |
| 30807 | fi |
| 30808 | |
| 30809 | done |
| 30810 | fi |
| 30811 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30812 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 30813 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30814 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 30815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30816 | else |
| 30817 | if test "$cross_compiling" = yes; then |
| 30818 | ac_cv_c_stack_direction=0 |
| 30819 | else |
| 30820 | cat >conftest.$ac_ext <<_ACEOF |
| 30821 | /* confdefs.h. */ |
| 30822 | _ACEOF |
| 30823 | cat confdefs.h >>conftest.$ac_ext |
| 30824 | cat >>conftest.$ac_ext <<_ACEOF |
| 30825 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30826 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30827 | int |
| 30828 | find_stack_direction () |
| 30829 | { |
| 30830 | static char *addr = 0; |
| 30831 | auto char dummy; |
| 30832 | if (addr == 0) |
| 30833 | { |
| 30834 | addr = &dummy; |
| 30835 | return find_stack_direction (); |
| 30836 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30837 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30838 | return (&dummy > addr) ? 1 : -1; |
| 30839 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30840 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30841 | int |
| 30842 | main () |
| 30843 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30844 | return find_stack_direction () < 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30845 | } |
| 30846 | _ACEOF |
| 30847 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30848 | if { (ac_try="$ac_link" |
| 30849 | case "(($ac_try" in |
| 30850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30851 | *) ac_try_echo=$ac_try;; |
| 30852 | esac |
| 30853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30854 | (eval "$ac_link") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30855 | ac_status=$? |
| 30856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30857 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30858 | { (case "(($ac_try" in |
| 30859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30860 | *) ac_try_echo=$ac_try;; |
| 30861 | esac |
| 30862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30863 | (eval "$ac_try") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30864 | ac_status=$? |
| 30865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30866 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30867 | ac_cv_c_stack_direction=1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30868 | else |
| 30869 | echo "$as_me: program exited with status $ac_status" >&5 |
| 30870 | echo "$as_me: failed program was:" >&5 |
| 30871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30872 | |
| 30873 | ( exit $ac_status ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30874 | ac_cv_c_stack_direction=-1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30875 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30876 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30877 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30878 | |
| 30879 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30880 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30881 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 30882 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30883 | |
| 30884 | cat >>confdefs.h <<_ACEOF |
| 30885 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 30886 | _ACEOF |
| 30887 | |
| 30888 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30889 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30890 | |
| 30891 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30892 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 30893 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30894 | if test "${ac_cv_func_rand48+set}" = set; then |
| 30895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30896 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30897 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30898 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30899 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30900 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30901 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30902 | |
| 30903 | cat >conftest.$ac_ext <<_ACEOF |
| 30904 | /* confdefs.h. */ |
| 30905 | _ACEOF |
| 30906 | cat confdefs.h >>conftest.$ac_ext |
| 30907 | cat >>conftest.$ac_ext <<_ACEOF |
| 30908 | /* end confdefs.h. */ |
| 30909 | #include <stdlib.h> |
| 30910 | int |
| 30911 | main () |
| 30912 | { |
| 30913 | srand48(0);lrand48();drand48(); |
| 30914 | ; |
| 30915 | return 0; |
| 30916 | } |
| 30917 | _ACEOF |
| 30918 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30919 | if { (ac_try="$ac_compile" |
| 30920 | case "(($ac_try" in |
| 30921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30922 | *) ac_try_echo=$ac_try;; |
| 30923 | esac |
| 30924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30925 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30926 | ac_status=$? |
| 30927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30928 | rm -f conftest.er1 |
| 30929 | cat conftest.err >&5 |
| 30930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30931 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30932 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 30933 | { (case "(($ac_try" in |
| 30934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30935 | *) ac_try_echo=$ac_try;; |
| 30936 | esac |
| 30937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30938 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30939 | ac_status=$? |
| 30940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30941 | (exit $ac_status); }; } && |
| 30942 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30943 | { (case "(($ac_try" in |
| 30944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30945 | *) ac_try_echo=$ac_try;; |
| 30946 | esac |
| 30947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30948 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30949 | ac_status=$? |
| 30950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30951 | (exit $ac_status); }; }; then |
| 30952 | ac_cv_func_rand48=yes |
| 30953 | else |
| 30954 | echo "$as_me: failed program was:" >&5 |
| 30955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30956 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30957 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30958 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30959 | |
| 30960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30961 | ac_ext=c |
| 30962 | ac_cpp='$CPP $CPPFLAGS' |
| 30963 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30964 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30965 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30966 | |
| 30967 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30968 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 30969 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30970 | |
| 30971 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 30972 | |
| 30973 | cat >>confdefs.h <<\_ACEOF |
| 30974 | #define HAVE_RAND48 1 |
| 30975 | _ACEOF |
| 30976 | |
| 30977 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30978 | |
| 30979 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30980 | { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 30981 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30982 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 30983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30984 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30985 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30986 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30987 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30988 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30989 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30990 | |
| 30991 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30992 | /* confdefs.h. */ |
| 30993 | _ACEOF |
| 30994 | cat confdefs.h >>conftest.$ac_ext |
| 30995 | cat >>conftest.$ac_ext <<_ACEOF |
| 30996 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30997 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30998 | int |
| 30999 | main () |
| 31000 | { |
| 31001 | using namespace Outer::Inner; return i; |
| 31002 | ; |
| 31003 | return 0; |
| 31004 | } |
| 31005 | _ACEOF |
| 31006 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31007 | if { (ac_try="$ac_compile" |
| 31008 | case "(($ac_try" in |
| 31009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31010 | *) ac_try_echo=$ac_try;; |
| 31011 | esac |
| 31012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31013 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31014 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31015 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31016 | rm -f conftest.er1 |
| 31017 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31019 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31020 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31021 | { (case "(($ac_try" in |
| 31022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31023 | *) ac_try_echo=$ac_try;; |
| 31024 | esac |
| 31025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31026 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31027 | ac_status=$? |
| 31028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31029 | (exit $ac_status); }; } && |
| 31030 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31031 | { (case "(($ac_try" in |
| 31032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31033 | *) ac_try_echo=$ac_try;; |
| 31034 | esac |
| 31035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31036 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31037 | ac_status=$? |
| 31038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31039 | (exit $ac_status); }; }; then |
| 31040 | ac_cv_cxx_namespaces=yes |
| 31041 | else |
| 31042 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31044 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31045 | ac_cv_cxx_namespaces=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31046 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31047 | |
| 31048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31049 | ac_ext=c |
| 31050 | ac_cpp='$CPP $CPPFLAGS' |
| 31051 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31052 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31053 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31054 | |
| 31055 | |
| 31056 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31057 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 31058 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31059 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 31060 | |
| 31061 | cat >>confdefs.h <<\_ACEOF |
| 31062 | #define HAVE_NAMESPACES |
| 31063 | _ACEOF |
| 31064 | |
| 31065 | fi |
| 31066 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31067 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 |
| 31068 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; } |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31069 | if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31071 | else |
| 31072 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31073 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31074 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31075 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31076 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31077 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31078 | |
| 31079 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31080 | /* confdefs.h. */ |
| 31081 | _ACEOF |
| 31082 | cat confdefs.h >>conftest.$ac_ext |
| 31083 | cat >>conftest.$ac_ext <<_ACEOF |
| 31084 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31085 | #include <ext/hash_map> |
| 31086 | #ifdef HAVE_NAMESPACES |
| 31087 | using namespace std; |
| 31088 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31089 | int |
| 31090 | main () |
| 31091 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31092 | hash_map<int, int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31093 | ; |
| 31094 | return 0; |
| 31095 | } |
| 31096 | _ACEOF |
| 31097 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31098 | if { (ac_try="$ac_compile" |
| 31099 | case "(($ac_try" in |
| 31100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31101 | *) ac_try_echo=$ac_try;; |
| 31102 | esac |
| 31103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31104 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31105 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31106 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31107 | rm -f conftest.er1 |
| 31108 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31110 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31111 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31112 | { (case "(($ac_try" in |
| 31113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31114 | *) ac_try_echo=$ac_try;; |
| 31115 | esac |
| 31116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31117 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31118 | ac_status=$? |
| 31119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31120 | (exit $ac_status); }; } && |
| 31121 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31122 | { (case "(($ac_try" in |
| 31123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31124 | *) ac_try_echo=$ac_try;; |
| 31125 | esac |
| 31126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31127 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31128 | ac_status=$? |
| 31129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31130 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31131 | ac_cv_cxx_have_std_ext_hash_map=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31132 | else |
| 31133 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31134 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31135 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31136 | ac_cv_cxx_have_std_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31137 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31138 | |
| 31139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31140 | ac_ext=c |
| 31141 | ac_cpp='$CPP $CPPFLAGS' |
| 31142 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31143 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31144 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31145 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31146 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31147 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 |
| 31148 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31149 | if test "$ac_cv_cxx_have_std_ext_hash_map" = yes |
| 31150 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31151 | |
| 31152 | cat >>confdefs.h <<\_ACEOF |
| 31153 | #define HAVE_STD_EXT_HASH_MAP 1 |
| 31154 | _ACEOF |
| 31155 | |
| 31156 | else |
| 31157 | |
| 31158 | cat >>confdefs.h <<\_ACEOF |
| 31159 | #define HAVE_STD_EXT_HASH_MAP 0 |
| 31160 | _ACEOF |
| 31161 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31162 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31163 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31164 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 |
| 31165 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; } |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31166 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then |
| 31167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31168 | else |
| 31169 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31170 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31171 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31172 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31173 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31174 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31175 | |
| 31176 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31177 | /* confdefs.h. */ |
| 31178 | _ACEOF |
| 31179 | cat confdefs.h >>conftest.$ac_ext |
| 31180 | cat >>conftest.$ac_ext <<_ACEOF |
| 31181 | /* end confdefs.h. */ |
| 31182 | #include <ext/hash_map> |
| 31183 | #ifdef HAVE_NAMESPACES |
| 31184 | using namespace __gnu_cxx; |
| 31185 | #endif |
| 31186 | int |
| 31187 | main () |
| 31188 | { |
| 31189 | hash_map<int,int> t; |
| 31190 | ; |
| 31191 | return 0; |
| 31192 | } |
| 31193 | _ACEOF |
| 31194 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31195 | if { (ac_try="$ac_compile" |
| 31196 | case "(($ac_try" in |
| 31197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31198 | *) ac_try_echo=$ac_try;; |
| 31199 | esac |
| 31200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31201 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31202 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31204 | rm -f conftest.er1 |
| 31205 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31207 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31208 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31209 | { (case "(($ac_try" in |
| 31210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31211 | *) ac_try_echo=$ac_try;; |
| 31212 | esac |
| 31213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31214 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31215 | ac_status=$? |
| 31216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31217 | (exit $ac_status); }; } && |
| 31218 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31219 | { (case "(($ac_try" in |
| 31220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31221 | *) ac_try_echo=$ac_try;; |
| 31222 | esac |
| 31223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31224 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31225 | ac_status=$? |
| 31226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31227 | (exit $ac_status); }; }; then |
| 31228 | ac_cv_cxx_have_gnu_ext_hash_map=yes |
| 31229 | else |
| 31230 | echo "$as_me: failed program was:" >&5 |
| 31231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31232 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31233 | ac_cv_cxx_have_gnu_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31234 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31235 | |
| 31236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31237 | ac_ext=c |
| 31238 | ac_cpp='$CPP $CPPFLAGS' |
| 31239 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31240 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31241 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31242 | |
| 31243 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31244 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 |
| 31245 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31246 | if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes |
| 31247 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31248 | |
| 31249 | cat >>confdefs.h <<\_ACEOF |
| 31250 | #define HAVE_GNU_EXT_HASH_MAP 1 |
| 31251 | _ACEOF |
| 31252 | |
| 31253 | else |
| 31254 | |
| 31255 | cat >>confdefs.h <<\_ACEOF |
| 31256 | #define HAVE_GNU_EXT_HASH_MAP 0 |
| 31257 | _ACEOF |
| 31258 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31259 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31260 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31261 | { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 |
| 31262 | echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; } |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31263 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then |
| 31264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31265 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31266 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31267 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31268 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31269 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31270 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31271 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31272 | |
| 31273 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31274 | /* confdefs.h. */ |
| 31275 | _ACEOF |
| 31276 | cat confdefs.h >>conftest.$ac_ext |
| 31277 | cat >>conftest.$ac_ext <<_ACEOF |
| 31278 | /* end confdefs.h. */ |
| 31279 | #include <hash_map> |
| 31280 | int |
| 31281 | main () |
| 31282 | { |
| 31283 | hash_map<int,int> t; |
| 31284 | ; |
| 31285 | return 0; |
| 31286 | } |
| 31287 | _ACEOF |
| 31288 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31289 | if { (ac_try="$ac_compile" |
| 31290 | case "(($ac_try" in |
| 31291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31292 | *) ac_try_echo=$ac_try;; |
| 31293 | esac |
| 31294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31295 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31296 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31297 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31298 | rm -f conftest.er1 |
| 31299 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31301 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31302 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31303 | { (case "(($ac_try" in |
| 31304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31305 | *) ac_try_echo=$ac_try;; |
| 31306 | esac |
| 31307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31308 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31309 | ac_status=$? |
| 31310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31311 | (exit $ac_status); }; } && |
| 31312 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31313 | { (case "(($ac_try" in |
| 31314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31315 | *) ac_try_echo=$ac_try;; |
| 31316 | esac |
| 31317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31318 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31319 | ac_status=$? |
| 31320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31321 | (exit $ac_status); }; }; then |
| 31322 | ac_cv_cxx_have_global_hash_map=yes |
| 31323 | else |
| 31324 | echo "$as_me: failed program was:" >&5 |
| 31325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31326 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31327 | ac_cv_cxx_have_global_hash_map=no |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31328 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31329 | |
| 31330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31331 | ac_ext=c |
| 31332 | ac_cpp='$CPP $CPPFLAGS' |
| 31333 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31334 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31335 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31336 | |
| 31337 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31338 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 |
| 31339 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31340 | if test "$ac_cv_cxx_have_global_hash_map" = yes |
| 31341 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31342 | |
| 31343 | cat >>confdefs.h <<\_ACEOF |
| 31344 | #define HAVE_GLOBAL_HASH_MAP 1 |
| 31345 | _ACEOF |
| 31346 | |
| 31347 | else |
| 31348 | |
| 31349 | cat >>confdefs.h <<\_ACEOF |
| 31350 | #define HAVE_GLOBAL_HASH_MAP 0 |
| 31351 | _ACEOF |
| 31352 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31353 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31354 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31355 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 |
| 31356 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; } |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31357 | if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31359 | else |
| 31360 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31361 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31362 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31363 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31364 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31365 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31366 | |
| 31367 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31368 | /* confdefs.h. */ |
| 31369 | _ACEOF |
| 31370 | cat confdefs.h >>conftest.$ac_ext |
| 31371 | cat >>conftest.$ac_ext <<_ACEOF |
| 31372 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31373 | #include <ext/hash_set> |
| 31374 | #ifdef HAVE_NAMESPACES |
| 31375 | using namespace std; |
| 31376 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31377 | int |
| 31378 | main () |
| 31379 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31380 | hash_set<int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31381 | ; |
| 31382 | return 0; |
| 31383 | } |
| 31384 | _ACEOF |
| 31385 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31386 | if { (ac_try="$ac_compile" |
| 31387 | case "(($ac_try" in |
| 31388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31389 | *) ac_try_echo=$ac_try;; |
| 31390 | esac |
| 31391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31392 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31393 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31395 | rm -f conftest.er1 |
| 31396 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31398 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31399 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31400 | { (case "(($ac_try" in |
| 31401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31402 | *) ac_try_echo=$ac_try;; |
| 31403 | esac |
| 31404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31405 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31406 | ac_status=$? |
| 31407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31408 | (exit $ac_status); }; } && |
| 31409 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31410 | { (case "(($ac_try" in |
| 31411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31412 | *) ac_try_echo=$ac_try;; |
| 31413 | esac |
| 31414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31415 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31416 | ac_status=$? |
| 31417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31418 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31419 | ac_cv_cxx_have_std_ext_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31420 | else |
| 31421 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31423 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31424 | ac_cv_cxx_have_std_ext_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31425 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31426 | |
| 31427 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31428 | ac_ext=c |
| 31429 | ac_cpp='$CPP $CPPFLAGS' |
| 31430 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31431 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31433 | |
| 31434 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31435 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 |
| 31436 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31437 | if test "$ac_cv_cxx_have_std_ext_hash_set" = yes |
| 31438 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31439 | |
| 31440 | cat >>confdefs.h <<\_ACEOF |
| 31441 | #define HAVE_STD_EXT_HASH_SET 1 |
| 31442 | _ACEOF |
| 31443 | |
| 31444 | else |
| 31445 | |
| 31446 | cat >>confdefs.h <<\_ACEOF |
| 31447 | #define HAVE_STD_EXT_HASH_SET 0 |
| 31448 | _ACEOF |
| 31449 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31450 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31451 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31452 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 |
| 31453 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; } |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31454 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then |
| 31455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31456 | else |
| 31457 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31458 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31459 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31460 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31461 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31462 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31463 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31464 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31465 | /* confdefs.h. */ |
| 31466 | _ACEOF |
| 31467 | cat confdefs.h >>conftest.$ac_ext |
| 31468 | cat >>conftest.$ac_ext <<_ACEOF |
| 31469 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31470 | #include <ext/hash_set> |
| 31471 | #ifdef HAVE_NAMESPACES |
| 31472 | using namespace __gnu_cxx; |
| 31473 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31474 | int |
| 31475 | main () |
| 31476 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31477 | hash_set<int> t; |
| 31478 | ; |
| 31479 | return 0; |
| 31480 | } |
| 31481 | _ACEOF |
| 31482 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31483 | if { (ac_try="$ac_compile" |
| 31484 | case "(($ac_try" in |
| 31485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31486 | *) ac_try_echo=$ac_try;; |
| 31487 | esac |
| 31488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31489 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31490 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31491 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31492 | rm -f conftest.er1 |
| 31493 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31495 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31496 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31497 | { (case "(($ac_try" in |
| 31498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31499 | *) ac_try_echo=$ac_try;; |
| 31500 | esac |
| 31501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31502 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31503 | ac_status=$? |
| 31504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31505 | (exit $ac_status); }; } && |
| 31506 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31507 | { (case "(($ac_try" in |
| 31508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31509 | *) ac_try_echo=$ac_try;; |
| 31510 | esac |
| 31511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31512 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31513 | ac_status=$? |
| 31514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31515 | (exit $ac_status); }; }; then |
| 31516 | ac_cv_cxx_have_gnu_ext_hash_set=yes |
| 31517 | else |
| 31518 | echo "$as_me: failed program was:" >&5 |
| 31519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31520 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31521 | ac_cv_cxx_have_gnu_ext_hash_set=no |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31522 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31523 | |
| 31524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31525 | ac_ext=c |
| 31526 | ac_cpp='$CPP $CPPFLAGS' |
| 31527 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31528 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31529 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31530 | |
| 31531 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31532 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 |
| 31533 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31534 | if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes |
| 31535 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31536 | |
| 31537 | cat >>confdefs.h <<\_ACEOF |
| 31538 | #define HAVE_GNU_EXT_HASH_SET 1 |
| 31539 | _ACEOF |
| 31540 | |
| 31541 | else |
| 31542 | |
| 31543 | cat >>confdefs.h <<\_ACEOF |
| 31544 | #define HAVE_GNU_EXT_HASH_SET 0 |
| 31545 | _ACEOF |
| 31546 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31547 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31548 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31549 | { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 |
| 31550 | echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; } |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31551 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then |
| 31552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31553 | else |
| 31554 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31555 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31556 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31557 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31558 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31559 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31560 | |
| 31561 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31562 | /* confdefs.h. */ |
| 31563 | _ACEOF |
| 31564 | cat confdefs.h >>conftest.$ac_ext |
| 31565 | cat >>conftest.$ac_ext <<_ACEOF |
| 31566 | /* end confdefs.h. */ |
| 31567 | #include <hash_set> |
| 31568 | int |
| 31569 | main () |
| 31570 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31571 | hash_set<int> t; return 0; |
| 31572 | ; |
| 31573 | return 0; |
| 31574 | } |
| 31575 | _ACEOF |
| 31576 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31577 | if { (ac_try="$ac_compile" |
| 31578 | case "(($ac_try" in |
| 31579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31580 | *) ac_try_echo=$ac_try;; |
| 31581 | esac |
| 31582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31583 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31584 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31585 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31586 | rm -f conftest.er1 |
| 31587 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31589 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31590 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31591 | { (case "(($ac_try" in |
| 31592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31593 | *) ac_try_echo=$ac_try;; |
| 31594 | esac |
| 31595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31596 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31597 | ac_status=$? |
| 31598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31599 | (exit $ac_status); }; } && |
| 31600 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31601 | { (case "(($ac_try" in |
| 31602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31603 | *) ac_try_echo=$ac_try;; |
| 31604 | esac |
| 31605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31606 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31607 | ac_status=$? |
| 31608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31609 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31610 | ac_cv_cxx_have_global_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31611 | else |
| 31612 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31614 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31615 | ac_cv_cxx_have_global_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31616 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31617 | |
| 31618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31619 | ac_ext=c |
| 31620 | ac_cpp='$CPP $CPPFLAGS' |
| 31621 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31622 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31623 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31624 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31625 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31626 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 |
| 31627 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31628 | if test "$ac_cv_cxx_have_global_hash_set" = yes |
| 31629 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31630 | |
| 31631 | cat >>confdefs.h <<\_ACEOF |
| 31632 | #define HAVE_GLOBAL_HASH_SET 1 |
| 31633 | _ACEOF |
| 31634 | |
| 31635 | else |
| 31636 | |
| 31637 | cat >>confdefs.h <<\_ACEOF |
| 31638 | #define HAVE_GLOBAL_HASH_SET 0 |
| 31639 | _ACEOF |
| 31640 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31641 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31642 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31643 | { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 31644 | echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31645 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then |
| 31646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31647 | else |
| 31648 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31649 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31650 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31651 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31652 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31653 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31654 | |
| 31655 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31656 | /* confdefs.h. */ |
| 31657 | _ACEOF |
| 31658 | cat confdefs.h >>conftest.$ac_ext |
| 31659 | cat >>conftest.$ac_ext <<_ACEOF |
| 31660 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31661 | #include <iterator> |
| 31662 | #ifdef HAVE_NAMESPACES |
| 31663 | using namespace std; |
| 31664 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31665 | int |
| 31666 | main () |
| 31667 | { |
| 31668 | iterator<int,int,int> t; return 0; |
| 31669 | ; |
| 31670 | return 0; |
| 31671 | } |
| 31672 | _ACEOF |
| 31673 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31674 | if { (ac_try="$ac_compile" |
| 31675 | case "(($ac_try" in |
| 31676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31677 | *) ac_try_echo=$ac_try;; |
| 31678 | esac |
| 31679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31680 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31681 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31683 | rm -f conftest.er1 |
| 31684 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31686 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31687 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31688 | { (case "(($ac_try" in |
| 31689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31690 | *) ac_try_echo=$ac_try;; |
| 31691 | esac |
| 31692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31693 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31694 | ac_status=$? |
| 31695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31696 | (exit $ac_status); }; } && |
| 31697 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31698 | { (case "(($ac_try" in |
| 31699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31700 | *) ac_try_echo=$ac_try;; |
| 31701 | esac |
| 31702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31703 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31704 | ac_status=$? |
| 31705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31706 | (exit $ac_status); }; }; then |
| 31707 | ac_cv_cxx_have_std_iterator=yes |
| 31708 | else |
| 31709 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31711 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31712 | ac_cv_cxx_have_std_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31713 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31714 | |
| 31715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31716 | ac_ext=c |
| 31717 | ac_cpp='$CPP $CPPFLAGS' |
| 31718 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31719 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31720 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31721 | |
| 31722 | |
| 31723 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31724 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 |
| 31725 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 31726 | if test "$ac_cv_cxx_have_std_iterator" = yes |
| 31727 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 31728 | |
| 31729 | cat >>confdefs.h <<\_ACEOF |
| 31730 | #define HAVE_STD_ITERATOR 1 |
| 31731 | _ACEOF |
| 31732 | |
| 31733 | else |
| 31734 | |
| 31735 | cat >>confdefs.h <<\_ACEOF |
| 31736 | #define HAVE_STD_ITERATOR 0 |
| 31737 | _ACEOF |
| 31738 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31739 | fi |
| 31740 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31741 | { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 31742 | echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31743 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 31744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31745 | else |
| 31746 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31747 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31748 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31749 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31750 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31751 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31752 | |
| 31753 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31754 | /* confdefs.h. */ |
| 31755 | _ACEOF |
| 31756 | cat confdefs.h >>conftest.$ac_ext |
| 31757 | cat >>conftest.$ac_ext <<_ACEOF |
| 31758 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31759 | #include <iterator> |
| 31760 | #ifdef HAVE_NAMESPACES |
| 31761 | using namespace std; |
| 31762 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31763 | int |
| 31764 | main () |
| 31765 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 31766 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31767 | ; |
| 31768 | return 0; |
| 31769 | } |
| 31770 | _ACEOF |
| 31771 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31772 | if { (ac_try="$ac_compile" |
| 31773 | case "(($ac_try" in |
| 31774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31775 | *) ac_try_echo=$ac_try;; |
| 31776 | esac |
| 31777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31778 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31779 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31781 | rm -f conftest.er1 |
| 31782 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31784 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31785 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31786 | { (case "(($ac_try" in |
| 31787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31788 | *) ac_try_echo=$ac_try;; |
| 31789 | esac |
| 31790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31791 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31792 | ac_status=$? |
| 31793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31794 | (exit $ac_status); }; } && |
| 31795 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31796 | { (case "(($ac_try" in |
| 31797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31798 | *) ac_try_echo=$ac_try;; |
| 31799 | esac |
| 31800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31801 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31802 | ac_status=$? |
| 31803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31804 | (exit $ac_status); }; }; then |
| 31805 | ac_cv_cxx_have_bi_iterator=yes |
| 31806 | else |
| 31807 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31809 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31810 | ac_cv_cxx_have_bi_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31811 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31812 | |
| 31813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31814 | ac_ext=c |
| 31815 | ac_cpp='$CPP $CPPFLAGS' |
| 31816 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31817 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31818 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31819 | |
| 31820 | |
| 31821 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31822 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 31823 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 31824 | if test "$ac_cv_cxx_have_bi_iterator" = yes |
| 31825 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 31826 | |
| 31827 | cat >>confdefs.h <<\_ACEOF |
| 31828 | #define HAVE_BI_ITERATOR 1 |
| 31829 | _ACEOF |
| 31830 | |
| 31831 | else |
| 31832 | |
| 31833 | cat >>confdefs.h <<\_ACEOF |
| 31834 | #define HAVE_BI_ITERATOR 0 |
| 31835 | _ACEOF |
| 31836 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31837 | fi |
| 31838 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31839 | { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 31840 | echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31841 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 31842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31843 | else |
| 31844 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31845 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31846 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31847 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31848 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31849 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31850 | |
| 31851 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31852 | /* confdefs.h. */ |
| 31853 | _ACEOF |
| 31854 | cat confdefs.h >>conftest.$ac_ext |
| 31855 | cat >>conftest.$ac_ext <<_ACEOF |
| 31856 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31857 | #include <iterator> |
| 31858 | #ifdef HAVE_NAMESPACES |
| 31859 | using namespace std; |
| 31860 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31861 | int |
| 31862 | main () |
| 31863 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 31864 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31865 | ; |
| 31866 | return 0; |
| 31867 | } |
| 31868 | _ACEOF |
| 31869 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31870 | if { (ac_try="$ac_compile" |
| 31871 | case "(($ac_try" in |
| 31872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31873 | *) ac_try_echo=$ac_try;; |
| 31874 | esac |
| 31875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31876 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31877 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31878 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31879 | rm -f conftest.er1 |
| 31880 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31882 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31883 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31884 | { (case "(($ac_try" in |
| 31885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31886 | *) ac_try_echo=$ac_try;; |
| 31887 | esac |
| 31888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31889 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31890 | ac_status=$? |
| 31891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31892 | (exit $ac_status); }; } && |
| 31893 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31894 | { (case "(($ac_try" in |
| 31895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31896 | *) ac_try_echo=$ac_try;; |
| 31897 | esac |
| 31898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31899 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31900 | ac_status=$? |
| 31901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31902 | (exit $ac_status); }; }; then |
| 31903 | ac_cv_cxx_have_fwd_iterator=yes |
| 31904 | else |
| 31905 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31907 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31908 | ac_cv_cxx_have_fwd_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31909 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31910 | |
| 31911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31912 | ac_ext=c |
| 31913 | ac_cpp='$CPP $CPPFLAGS' |
| 31914 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31915 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31916 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31917 | |
| 31918 | |
| 31919 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31920 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 31921 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 31922 | if test "$ac_cv_cxx_have_fwd_iterator" = yes |
| 31923 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 31924 | |
| 31925 | cat >>confdefs.h <<\_ACEOF |
| 31926 | #define HAVE_FWD_ITERATOR 1 |
| 31927 | _ACEOF |
| 31928 | |
| 31929 | else |
| 31930 | |
| 31931 | cat >>confdefs.h <<\_ACEOF |
| 31932 | #define HAVE_FWD_ITERATOR 0 |
| 31933 | _ACEOF |
| 31934 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31935 | fi |
| 31936 | |
| 31937 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31938 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 31939 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31940 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 31941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31942 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31943 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31944 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31945 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31946 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31947 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31948 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31949 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31950 | /* confdefs.h. */ |
| 31951 | _ACEOF |
| 31952 | cat confdefs.h >>conftest.$ac_ext |
| 31953 | cat >>conftest.$ac_ext <<_ACEOF |
| 31954 | /* end confdefs.h. */ |
| 31955 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31956 | int |
| 31957 | main () |
| 31958 | { |
| 31959 | float f; isnan(f); |
| 31960 | ; |
| 31961 | return 0; |
| 31962 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31963 | _ACEOF |
| 31964 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31965 | if { (ac_try="$ac_compile" |
| 31966 | case "(($ac_try" in |
| 31967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31968 | *) ac_try_echo=$ac_try;; |
| 31969 | esac |
| 31970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31971 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31972 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31974 | rm -f conftest.er1 |
| 31975 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31977 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31978 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31979 | { (case "(($ac_try" in |
| 31980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31981 | *) ac_try_echo=$ac_try;; |
| 31982 | esac |
| 31983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31984 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31985 | ac_status=$? |
| 31986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31987 | (exit $ac_status); }; } && |
| 31988 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31989 | { (case "(($ac_try" in |
| 31990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31991 | *) ac_try_echo=$ac_try;; |
| 31992 | esac |
| 31993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31994 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31995 | ac_status=$? |
| 31996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31997 | (exit $ac_status); }; }; then |
| 31998 | ac_cv_func_isnan_in_math_h=yes |
| 31999 | else |
| 32000 | echo "$as_me: failed program was:" >&5 |
| 32001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32002 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32003 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32004 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32005 | |
| 32006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32007 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32008 | ac_cpp='$CPP $CPPFLAGS' |
| 32009 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32010 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32011 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32012 | |
| 32013 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32014 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 32015 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32016 | |
| 32017 | |
| 32018 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32019 | |
| 32020 | cat >>confdefs.h <<\_ACEOF |
| 32021 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 32022 | _ACEOF |
| 32023 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32024 | fi |
| 32025 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32026 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 32027 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32028 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 32029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32030 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32031 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32032 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32033 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32034 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32035 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32036 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32037 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32038 | /* confdefs.h. */ |
| 32039 | _ACEOF |
| 32040 | cat confdefs.h >>conftest.$ac_ext |
| 32041 | cat >>conftest.$ac_ext <<_ACEOF |
| 32042 | /* end confdefs.h. */ |
| 32043 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32044 | int |
| 32045 | main () |
| 32046 | { |
| 32047 | float f; isnan(f); |
| 32048 | ; |
| 32049 | return 0; |
| 32050 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32051 | _ACEOF |
| 32052 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32053 | if { (ac_try="$ac_compile" |
| 32054 | case "(($ac_try" in |
| 32055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32056 | *) ac_try_echo=$ac_try;; |
| 32057 | esac |
| 32058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32059 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32060 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32062 | rm -f conftest.er1 |
| 32063 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32065 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32066 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32067 | { (case "(($ac_try" in |
| 32068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32069 | *) ac_try_echo=$ac_try;; |
| 32070 | esac |
| 32071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32072 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32073 | ac_status=$? |
| 32074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32075 | (exit $ac_status); }; } && |
| 32076 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32077 | { (case "(($ac_try" in |
| 32078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32079 | *) ac_try_echo=$ac_try;; |
| 32080 | esac |
| 32081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32082 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32083 | ac_status=$? |
| 32084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32085 | (exit $ac_status); }; }; then |
| 32086 | ac_cv_func_isnan_in_cmath=yes |
| 32087 | else |
| 32088 | echo "$as_me: failed program was:" >&5 |
| 32089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32090 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32091 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32092 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32093 | |
| 32094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32095 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32096 | ac_cpp='$CPP $CPPFLAGS' |
| 32097 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32098 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32099 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32100 | |
| 32101 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32102 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 32103 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32104 | |
| 32105 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32106 | |
| 32107 | cat >>confdefs.h <<\_ACEOF |
| 32108 | #define HAVE_ISNAN_IN_CMATH 1 |
| 32109 | _ACEOF |
| 32110 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32111 | fi |
| 32112 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32113 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 32114 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32115 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 32116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32117 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32118 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32119 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32120 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32121 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32122 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32123 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32124 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32125 | /* confdefs.h. */ |
| 32126 | _ACEOF |
| 32127 | cat confdefs.h >>conftest.$ac_ext |
| 32128 | cat >>conftest.$ac_ext <<_ACEOF |
| 32129 | /* end confdefs.h. */ |
| 32130 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32131 | int |
| 32132 | main () |
| 32133 | { |
| 32134 | float f; std::isnan(f); |
| 32135 | ; |
| 32136 | return 0; |
| 32137 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32138 | _ACEOF |
| 32139 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32140 | if { (ac_try="$ac_compile" |
| 32141 | case "(($ac_try" in |
| 32142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32143 | *) ac_try_echo=$ac_try;; |
| 32144 | esac |
| 32145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32146 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32147 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32148 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32149 | rm -f conftest.er1 |
| 32150 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32152 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32153 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32154 | { (case "(($ac_try" in |
| 32155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32156 | *) ac_try_echo=$ac_try;; |
| 32157 | esac |
| 32158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32159 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32160 | ac_status=$? |
| 32161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32162 | (exit $ac_status); }; } && |
| 32163 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32164 | { (case "(($ac_try" in |
| 32165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32166 | *) ac_try_echo=$ac_try;; |
| 32167 | esac |
| 32168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32169 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32170 | ac_status=$? |
| 32171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32172 | (exit $ac_status); }; }; then |
| 32173 | ac_cv_func_std_isnan_in_cmath=yes |
| 32174 | else |
| 32175 | echo "$as_me: failed program was:" >&5 |
| 32176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32177 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32178 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32179 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32180 | |
| 32181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32182 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32183 | ac_cpp='$CPP $CPPFLAGS' |
| 32184 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32185 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32186 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32187 | |
| 32188 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32189 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 32190 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32191 | |
| 32192 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32193 | |
| 32194 | cat >>confdefs.h <<\_ACEOF |
| 32195 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 32196 | _ACEOF |
| 32197 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32198 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32199 | |
| 32200 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32201 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 32202 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32203 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 32204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32205 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32206 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32207 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32208 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32209 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32210 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32211 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32212 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32213 | /* confdefs.h. */ |
| 32214 | _ACEOF |
| 32215 | cat confdefs.h >>conftest.$ac_ext |
| 32216 | cat >>conftest.$ac_ext <<_ACEOF |
| 32217 | /* end confdefs.h. */ |
| 32218 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32219 | int |
| 32220 | main () |
| 32221 | { |
| 32222 | float f; isinf(f); |
| 32223 | ; |
| 32224 | return 0; |
| 32225 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32226 | _ACEOF |
| 32227 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32228 | if { (ac_try="$ac_compile" |
| 32229 | case "(($ac_try" in |
| 32230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32231 | *) ac_try_echo=$ac_try;; |
| 32232 | esac |
| 32233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32234 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32235 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32236 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32237 | rm -f conftest.er1 |
| 32238 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32240 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32241 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32242 | { (case "(($ac_try" in |
| 32243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32244 | *) ac_try_echo=$ac_try;; |
| 32245 | esac |
| 32246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32247 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32248 | ac_status=$? |
| 32249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32250 | (exit $ac_status); }; } && |
| 32251 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32252 | { (case "(($ac_try" in |
| 32253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32254 | *) ac_try_echo=$ac_try;; |
| 32255 | esac |
| 32256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32257 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32258 | ac_status=$? |
| 32259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32260 | (exit $ac_status); }; }; then |
| 32261 | ac_cv_func_isinf_in_math_h=yes |
| 32262 | else |
| 32263 | echo "$as_me: failed program was:" >&5 |
| 32264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32265 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32266 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32267 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32268 | |
| 32269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32270 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32271 | ac_cpp='$CPP $CPPFLAGS' |
| 32272 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32273 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32274 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32275 | |
| 32276 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32277 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 32278 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32279 | |
| 32280 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32281 | |
| 32282 | cat >>confdefs.h <<\_ACEOF |
| 32283 | #define HAVE_ISINF_IN_MATH_H 1 |
| 32284 | _ACEOF |
| 32285 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32286 | fi |
| 32287 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32288 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 32289 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32290 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 32291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32292 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32293 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32294 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32295 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32296 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32297 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32298 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32299 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32300 | /* confdefs.h. */ |
| 32301 | _ACEOF |
| 32302 | cat confdefs.h >>conftest.$ac_ext |
| 32303 | cat >>conftest.$ac_ext <<_ACEOF |
| 32304 | /* end confdefs.h. */ |
| 32305 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32306 | int |
| 32307 | main () |
| 32308 | { |
| 32309 | float f; isinf(f); |
| 32310 | ; |
| 32311 | return 0; |
| 32312 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32313 | _ACEOF |
| 32314 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32315 | if { (ac_try="$ac_compile" |
| 32316 | case "(($ac_try" in |
| 32317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32318 | *) ac_try_echo=$ac_try;; |
| 32319 | esac |
| 32320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32321 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32322 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32323 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32324 | rm -f conftest.er1 |
| 32325 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32327 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32328 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32329 | { (case "(($ac_try" in |
| 32330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32331 | *) ac_try_echo=$ac_try;; |
| 32332 | esac |
| 32333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32334 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32335 | ac_status=$? |
| 32336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32337 | (exit $ac_status); }; } && |
| 32338 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32339 | { (case "(($ac_try" in |
| 32340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32341 | *) ac_try_echo=$ac_try;; |
| 32342 | esac |
| 32343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32344 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32345 | ac_status=$? |
| 32346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32347 | (exit $ac_status); }; }; then |
| 32348 | ac_cv_func_isinf_in_cmath=yes |
| 32349 | else |
| 32350 | echo "$as_me: failed program was:" >&5 |
| 32351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32352 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32353 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32354 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32355 | |
| 32356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32357 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32358 | ac_cpp='$CPP $CPPFLAGS' |
| 32359 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32360 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32361 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32362 | |
| 32363 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32364 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 32365 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32366 | |
| 32367 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32368 | |
| 32369 | cat >>confdefs.h <<\_ACEOF |
| 32370 | #define HAVE_ISINF_IN_CMATH 1 |
| 32371 | _ACEOF |
| 32372 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32373 | fi |
| 32374 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32375 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 32376 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32377 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 32378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32379 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32380 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32381 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32382 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32383 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32384 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32385 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32386 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32387 | /* confdefs.h. */ |
| 32388 | _ACEOF |
| 32389 | cat confdefs.h >>conftest.$ac_ext |
| 32390 | cat >>conftest.$ac_ext <<_ACEOF |
| 32391 | /* end confdefs.h. */ |
| 32392 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32393 | int |
| 32394 | main () |
| 32395 | { |
| 32396 | float f; std::isinf(f)} |
| 32397 | ; |
| 32398 | return 0; |
| 32399 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32400 | _ACEOF |
| 32401 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32402 | if { (ac_try="$ac_compile" |
| 32403 | case "(($ac_try" in |
| 32404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32405 | *) ac_try_echo=$ac_try;; |
| 32406 | esac |
| 32407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32408 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32409 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32411 | rm -f conftest.er1 |
| 32412 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32414 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32415 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32416 | { (case "(($ac_try" in |
| 32417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32418 | *) ac_try_echo=$ac_try;; |
| 32419 | esac |
| 32420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32421 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32422 | ac_status=$? |
| 32423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32424 | (exit $ac_status); }; } && |
| 32425 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32426 | { (case "(($ac_try" in |
| 32427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32428 | *) ac_try_echo=$ac_try;; |
| 32429 | esac |
| 32430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32431 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32432 | ac_status=$? |
| 32433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32434 | (exit $ac_status); }; }; then |
| 32435 | ac_cv_func_std_isinf_in_cmath=yes |
| 32436 | else |
| 32437 | echo "$as_me: failed program was:" >&5 |
| 32438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32439 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32440 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32441 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32442 | |
| 32443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32444 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32445 | ac_cpp='$CPP $CPPFLAGS' |
| 32446 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32447 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32448 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32449 | |
| 32450 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32451 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 32452 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32453 | |
| 32454 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32455 | |
| 32456 | cat >>confdefs.h <<\_ACEOF |
| 32457 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 32458 | _ACEOF |
| 32459 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32460 | fi |
| 32461 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32462 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 32463 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32464 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 32465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32466 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32467 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32468 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32469 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32470 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32471 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32472 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32473 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32474 | /* confdefs.h. */ |
| 32475 | _ACEOF |
| 32476 | cat confdefs.h >>conftest.$ac_ext |
| 32477 | cat >>conftest.$ac_ext <<_ACEOF |
| 32478 | /* end confdefs.h. */ |
| 32479 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32480 | int |
| 32481 | main () |
| 32482 | { |
| 32483 | float f; finite(f); |
| 32484 | ; |
| 32485 | return 0; |
| 32486 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32487 | _ACEOF |
| 32488 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32489 | if { (ac_try="$ac_compile" |
| 32490 | case "(($ac_try" in |
| 32491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32492 | *) ac_try_echo=$ac_try;; |
| 32493 | esac |
| 32494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32495 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32496 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32497 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32498 | rm -f conftest.er1 |
| 32499 | cat conftest.err >&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32501 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32502 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32503 | { (case "(($ac_try" in |
| 32504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32505 | *) ac_try_echo=$ac_try;; |
| 32506 | esac |
| 32507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32508 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32509 | ac_status=$? |
| 32510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32511 | (exit $ac_status); }; } && |
| 32512 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32513 | { (case "(($ac_try" in |
| 32514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32515 | *) ac_try_echo=$ac_try;; |
| 32516 | esac |
| 32517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32518 | (eval "$ac_try") 2>&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32519 | ac_status=$? |
| 32520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32521 | (exit $ac_status); }; }; then |
| 32522 | ac_cv_func_finite_in_ieeefp_h=yes |
| 32523 | else |
| 32524 | echo "$as_me: failed program was:" >&5 |
| 32525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32526 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32527 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32528 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32529 | |
| 32530 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32531 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32532 | ac_cpp='$CPP $CPPFLAGS' |
| 32533 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32534 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32535 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32536 | |
| 32537 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32538 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 32539 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32540 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 32541 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32542 | |
| 32543 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 32544 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32545 | _ACEOF |
| 32546 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32547 | fi |
| 32548 | |
| 32549 | |
| 32550 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32551 | |
| 32552 | |
| 32553 | for ac_header in stdlib.h unistd.h |
| 32554 | do |
| 32555 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32556 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 32557 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 32558 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 32559 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32561 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32562 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 32563 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32564 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32565 | else |
| 32566 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32567 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 32568 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32569 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32570 | /* confdefs.h. */ |
| 32571 | _ACEOF |
| 32572 | cat confdefs.h >>conftest.$ac_ext |
| 32573 | cat >>conftest.$ac_ext <<_ACEOF |
| 32574 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32575 | $ac_includes_default |
| 32576 | #include <$ac_header> |
| 32577 | _ACEOF |
| 32578 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32579 | if { (ac_try="$ac_compile" |
| 32580 | case "(($ac_try" in |
| 32581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32582 | *) ac_try_echo=$ac_try;; |
| 32583 | esac |
| 32584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32585 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32586 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32587 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32588 | rm -f conftest.er1 |
| 32589 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32591 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32592 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32593 | { (case "(($ac_try" in |
| 32594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32595 | *) ac_try_echo=$ac_try;; |
| 32596 | esac |
| 32597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32598 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32599 | ac_status=$? |
| 32600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32601 | (exit $ac_status); }; } && |
| 32602 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32603 | { (case "(($ac_try" in |
| 32604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32605 | *) ac_try_echo=$ac_try;; |
| 32606 | esac |
| 32607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32608 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32609 | ac_status=$? |
| 32610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32611 | (exit $ac_status); }; }; then |
| 32612 | ac_header_compiler=yes |
| 32613 | else |
| 32614 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32616 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32617 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32618 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32619 | |
| 32620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 32621 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 32622 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32623 | |
| 32624 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32625 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 32626 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32627 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32628 | /* confdefs.h. */ |
| 32629 | _ACEOF |
| 32630 | cat confdefs.h >>conftest.$ac_ext |
| 32631 | cat >>conftest.$ac_ext <<_ACEOF |
| 32632 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32633 | #include <$ac_header> |
| 32634 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32635 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 32636 | case "(($ac_try" in |
| 32637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32638 | *) ac_try_echo=$ac_try;; |
| 32639 | esac |
| 32640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32641 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32642 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32643 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32644 | rm -f conftest.er1 |
| 32645 | cat conftest.err >&5 |
| 32646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32647 | (exit $ac_status); } >/dev/null; then |
| 32648 | if test -s conftest.err; then |
| 32649 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32650 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32651 | else |
| 32652 | ac_cpp_err= |
| 32653 | fi |
| 32654 | else |
| 32655 | ac_cpp_err=yes |
| 32656 | fi |
| 32657 | if test -z "$ac_cpp_err"; then |
| 32658 | ac_header_preproc=yes |
| 32659 | else |
| 32660 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32662 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32663 | ac_header_preproc=no |
| 32664 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32665 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32666 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32667 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 32668 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32669 | |
| 32670 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32671 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 32672 | yes:no: ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32673 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 32674 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32675 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 32676 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 32677 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 32678 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32679 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 32680 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 32681 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32682 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 32683 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 32684 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 32685 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 32686 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 32687 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 32688 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 32689 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32690 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 32691 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32692 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32693 | ## ----------------------------------- ## |
| 32694 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 32695 | ## ----------------------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32696 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32697 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32698 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32699 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32700 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 32701 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 32702 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32704 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32705 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32706 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32707 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 32708 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32709 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32710 | |
| 32711 | fi |
| 32712 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 32713 | cat >>confdefs.h <<_ACEOF |
| 32714 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 32715 | _ACEOF |
| 32716 | |
| 32717 | fi |
| 32718 | |
| 32719 | done |
| 32720 | |
| 32721 | |
| 32722 | for ac_func in getpagesize |
| 32723 | do |
| 32724 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32725 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32726 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32727 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32729 | else |
| 32730 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32731 | /* confdefs.h. */ |
| 32732 | _ACEOF |
| 32733 | cat confdefs.h >>conftest.$ac_ext |
| 32734 | cat >>conftest.$ac_ext <<_ACEOF |
| 32735 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32736 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32737 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32738 | #define $ac_func innocuous_$ac_func |
| 32739 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32740 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32741 | which can conflict with char $ac_func (); below. |
| 32742 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32743 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32744 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32745 | #ifdef __STDC__ |
| 32746 | # include <limits.h> |
| 32747 | #else |
| 32748 | # include <assert.h> |
| 32749 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32750 | |
| 32751 | #undef $ac_func |
| 32752 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32753 | /* Override any GCC internal prototype to avoid an error. |
| 32754 | Use char because int might match the return type of a GCC |
| 32755 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32756 | #ifdef __cplusplus |
| 32757 | extern "C" |
| 32758 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32759 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32760 | /* The GNU C library defines this for functions which it implements |
| 32761 | to always fail with ENOSYS. Some functions are actually named |
| 32762 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32763 | #if defined __stub_$ac_func || defined __stub___$ac_func |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32764 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32765 | #endif |
| 32766 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32767 | int |
| 32768 | main () |
| 32769 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32770 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32771 | ; |
| 32772 | return 0; |
| 32773 | } |
| 32774 | _ACEOF |
| 32775 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32776 | if { (ac_try="$ac_link" |
| 32777 | case "(($ac_try" in |
| 32778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32779 | *) ac_try_echo=$ac_try;; |
| 32780 | esac |
| 32781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32782 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32783 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32785 | rm -f conftest.er1 |
| 32786 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32788 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32789 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32790 | { (case "(($ac_try" in |
| 32791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32792 | *) ac_try_echo=$ac_try;; |
| 32793 | esac |
| 32794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32795 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32796 | ac_status=$? |
| 32797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32798 | (exit $ac_status); }; } && |
| 32799 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32800 | { (case "(($ac_try" in |
| 32801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32802 | *) ac_try_echo=$ac_try;; |
| 32803 | esac |
| 32804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32805 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32806 | ac_status=$? |
| 32807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32808 | (exit $ac_status); }; }; then |
| 32809 | eval "$as_ac_var=yes" |
| 32810 | else |
| 32811 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32813 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32814 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32815 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32816 | |
| 32817 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32818 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32819 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32820 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32821 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32822 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32823 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32824 | cat >>confdefs.h <<_ACEOF |
| 32825 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32826 | _ACEOF |
| 32827 | |
| 32828 | fi |
| 32829 | done |
| 32830 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32831 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 32832 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32833 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 32834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32835 | else |
| 32836 | if test "$cross_compiling" = yes; then |
| 32837 | ac_cv_func_mmap_fixed_mapped=no |
| 32838 | else |
| 32839 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32840 | /* confdefs.h. */ |
| 32841 | _ACEOF |
| 32842 | cat confdefs.h >>conftest.$ac_ext |
| 32843 | cat >>conftest.$ac_ext <<_ACEOF |
| 32844 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32845 | $ac_includes_default |
| 32846 | /* malloc might have been renamed as rpl_malloc. */ |
| 32847 | #undef malloc |
| 32848 | |
| 32849 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 32850 | Here is a matrix of mmap possibilities: |
| 32851 | mmap private not fixed |
| 32852 | mmap private fixed at somewhere currently unmapped |
| 32853 | mmap private fixed at somewhere already mapped |
| 32854 | mmap shared not fixed |
| 32855 | mmap shared fixed at somewhere currently unmapped |
| 32856 | mmap shared fixed at somewhere already mapped |
| 32857 | For private mappings, we should verify that changes cannot be read() |
| 32858 | back from the file, nor mmap's back from the file at a different |
| 32859 | address. (There have been systems where private was not correctly |
| 32860 | implemented like the infamous i386 svr4.0, and systems where the |
| 32861 | VM page cache was not coherent with the file system buffer cache |
| 32862 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 32863 | For shared mappings, we should conversely verify that changes get |
| 32864 | propagated back to all the places they're supposed to be. |
| 32865 | |
| 32866 | Grep wants private fixed already mapped. |
| 32867 | The main things grep needs to know about mmap are: |
| 32868 | * does it exist and is it safe to write into the mmap'd area |
| 32869 | * how to use it (BSD variants) */ |
| 32870 | |
| 32871 | #include <fcntl.h> |
| 32872 | #include <sys/mman.h> |
| 32873 | |
| 32874 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 32875 | char *malloc (); |
| 32876 | #endif |
| 32877 | |
| 32878 | /* This mess was copied from the GNU getpagesize.h. */ |
| 32879 | #if !HAVE_GETPAGESIZE |
| 32880 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 32881 | # if !HAVE_SYS_PARAM_H |
| 32882 | # define HAVE_SYS_PARAM_H 1 |
| 32883 | # endif |
| 32884 | |
| 32885 | # ifdef _SC_PAGESIZE |
| 32886 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 32887 | # else /* no _SC_PAGESIZE */ |
| 32888 | # if HAVE_SYS_PARAM_H |
| 32889 | # include <sys/param.h> |
| 32890 | # ifdef EXEC_PAGESIZE |
| 32891 | # define getpagesize() EXEC_PAGESIZE |
| 32892 | # else /* no EXEC_PAGESIZE */ |
| 32893 | # ifdef NBPG |
| 32894 | # define getpagesize() NBPG * CLSIZE |
| 32895 | # ifndef CLSIZE |
| 32896 | # define CLSIZE 1 |
| 32897 | # endif /* no CLSIZE */ |
| 32898 | # else /* no NBPG */ |
| 32899 | # ifdef NBPC |
| 32900 | # define getpagesize() NBPC |
| 32901 | # else /* no NBPC */ |
| 32902 | # ifdef PAGESIZE |
| 32903 | # define getpagesize() PAGESIZE |
| 32904 | # endif /* PAGESIZE */ |
| 32905 | # endif /* no NBPC */ |
| 32906 | # endif /* no NBPG */ |
| 32907 | # endif /* no EXEC_PAGESIZE */ |
| 32908 | # else /* no HAVE_SYS_PARAM_H */ |
| 32909 | # define getpagesize() 8192 /* punt totally */ |
| 32910 | # endif /* no HAVE_SYS_PARAM_H */ |
| 32911 | # endif /* no _SC_PAGESIZE */ |
| 32912 | |
| 32913 | #endif /* no HAVE_GETPAGESIZE */ |
| 32914 | |
| 32915 | int |
| 32916 | main () |
| 32917 | { |
| 32918 | char *data, *data2, *data3; |
| 32919 | int i, pagesize; |
| 32920 | int fd; |
| 32921 | |
| 32922 | pagesize = getpagesize (); |
| 32923 | |
| 32924 | /* First, make a file with some known garbage in it. */ |
| 32925 | data = (char *) malloc (pagesize); |
| 32926 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32927 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32928 | for (i = 0; i < pagesize; ++i) |
| 32929 | *(data + i) = rand (); |
| 32930 | umask (0); |
| 32931 | fd = creat ("conftest.mmap", 0600); |
| 32932 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32933 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32934 | if (write (fd, data, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32935 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32936 | close (fd); |
| 32937 | |
| 32938 | /* Next, try to mmap the file at a fixed address which already has |
| 32939 | something else allocated at it. If we can, also make sure that |
| 32940 | we see the same garbage. */ |
| 32941 | fd = open ("conftest.mmap", O_RDWR); |
| 32942 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32943 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32944 | data2 = (char *) malloc (2 * pagesize); |
| 32945 | if (!data2) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32946 | return 1; |
| 32947 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32948 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32949 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32950 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32951 | for (i = 0; i < pagesize; ++i) |
| 32952 | if (*(data + i) != *(data2 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32953 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32954 | |
| 32955 | /* Finally, make sure that changes to the mapped area do not |
| 32956 | percolate back to the file as seen by read(). (This is a bug on |
| 32957 | some variants of i386 svr4.0.) */ |
| 32958 | for (i = 0; i < pagesize; ++i) |
| 32959 | *(data2 + i) = *(data2 + i) + 1; |
| 32960 | data3 = (char *) malloc (pagesize); |
| 32961 | if (!data3) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32962 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32963 | if (read (fd, data3, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32964 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32965 | for (i = 0; i < pagesize; ++i) |
| 32966 | if (*(data + i) != *(data3 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32967 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32968 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32969 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32970 | } |
| 32971 | _ACEOF |
| 32972 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32973 | if { (ac_try="$ac_link" |
| 32974 | case "(($ac_try" in |
| 32975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32976 | *) ac_try_echo=$ac_try;; |
| 32977 | esac |
| 32978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32979 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32980 | ac_status=$? |
| 32981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32982 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32983 | { (case "(($ac_try" in |
| 32984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32985 | *) ac_try_echo=$ac_try;; |
| 32986 | esac |
| 32987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32988 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32989 | ac_status=$? |
| 32990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32991 | (exit $ac_status); }; }; then |
| 32992 | ac_cv_func_mmap_fixed_mapped=yes |
| 32993 | else |
| 32994 | echo "$as_me: program exited with status $ac_status" >&5 |
| 32995 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32997 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32998 | ( exit $ac_status ) |
| 32999 | ac_cv_func_mmap_fixed_mapped=no |
| 33000 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33001 | rm -f core *.core core.conftest.* 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] | 33002 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33003 | |
| 33004 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33005 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33006 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 33007 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33008 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 33009 | |
| 33010 | cat >>confdefs.h <<\_ACEOF |
| 33011 | #define HAVE_MMAP 1 |
| 33012 | _ACEOF |
| 33013 | |
| 33014 | fi |
| 33015 | rm -f conftest.mmap |
| 33016 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33017 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 33018 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33019 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 33020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33021 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33022 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33023 | ac_cpp='$CPP $CPPFLAGS' |
| 33024 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33025 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33026 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33027 | |
| 33028 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 33029 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33030 | else |
| 33031 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33032 | |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33033 | /* confdefs.h. */ |
| 33034 | _ACEOF |
| 33035 | cat confdefs.h >>conftest.$ac_ext |
| 33036 | cat >>conftest.$ac_ext <<_ACEOF |
| 33037 | /* end confdefs.h. */ |
| 33038 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33039 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 33040 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33041 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33042 | |
| 33043 | int |
| 33044 | main () |
| 33045 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33046 | |
| 33047 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33048 | fd = creat ("foo",0777); |
| 33049 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 33050 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 33051 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33052 | ; |
| 33053 | return 0; |
| 33054 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33055 | _ACEOF |
| 33056 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33057 | if { (ac_try="$ac_link" |
| 33058 | case "(($ac_try" in |
| 33059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33060 | *) ac_try_echo=$ac_try;; |
| 33061 | esac |
| 33062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33063 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33064 | ac_status=$? |
| 33065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33066 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33067 | { (case "(($ac_try" in |
| 33068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33069 | *) ac_try_echo=$ac_try;; |
| 33070 | esac |
| 33071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33072 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33073 | ac_status=$? |
| 33074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33075 | (exit $ac_status); }; }; then |
| 33076 | ac_cv_func_mmap_file=yes |
| 33077 | else |
| 33078 | echo "$as_me: program exited with status $ac_status" >&5 |
| 33079 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33080 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33081 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33082 | ( exit $ac_status ) |
| 33083 | ac_cv_func_mmap_file=no |
| 33084 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33085 | rm -f core *.core core.conftest.* 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] | 33086 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33087 | |
| 33088 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33089 | ac_ext=c |
| 33090 | ac_cpp='$CPP $CPPFLAGS' |
| 33091 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33092 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33093 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33094 | |
| 33095 | |
| 33096 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33097 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 33098 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33099 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 33100 | |
| 33101 | cat >>confdefs.h <<\_ACEOF |
| 33102 | #define HAVE_MMAP_FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33103 | _ACEOF |
| 33104 | |
| 33105 | MMAP_FILE=yes |
| 33106 | |
| 33107 | fi |
| 33108 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33109 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 33110 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 33111 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 33112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33113 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 33114 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 33115 | ac_cv_need_dev_zero_for_mmap=yes |
| 33116 | else |
| 33117 | ac_cv_need_dev_zero_for_mmap=no |
| 33118 | fi |
| 33119 | |
| 33120 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33121 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 33122 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 33123 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 33124 | |
| 33125 | cat >>confdefs.h <<\_ACEOF |
| 33126 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 33127 | _ACEOF |
| 33128 | |
| 33129 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33130 | { echo "$as_me:$LINENO: checking for mprotect" >&5 |
| 33131 | echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33132 | if test "${ac_cv_func_mprotect+set}" = set; then |
| 33133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33134 | else |
| 33135 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33136 | /* confdefs.h. */ |
| 33137 | _ACEOF |
| 33138 | cat confdefs.h >>conftest.$ac_ext |
| 33139 | cat >>conftest.$ac_ext <<_ACEOF |
| 33140 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33141 | /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect. |
| 33142 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 33143 | #define mprotect innocuous_mprotect |
| 33144 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33145 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33146 | which can conflict with char mprotect (); below. |
| 33147 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 33148 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33149 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33150 | #ifdef __STDC__ |
| 33151 | # include <limits.h> |
| 33152 | #else |
| 33153 | # include <assert.h> |
| 33154 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33155 | |
| 33156 | #undef mprotect |
| 33157 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33158 | /* Override any GCC internal prototype to avoid an error. |
| 33159 | Use char because int might match the return type of a GCC |
| 33160 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33161 | #ifdef __cplusplus |
| 33162 | extern "C" |
| 33163 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33164 | char mprotect (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33165 | /* The GNU C library defines this for functions which it implements |
| 33166 | to always fail with ENOSYS. Some functions are actually named |
| 33167 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33168 | #if defined __stub_mprotect || defined __stub___mprotect |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33169 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33170 | #endif |
| 33171 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33172 | int |
| 33173 | main () |
| 33174 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33175 | return mprotect (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33176 | ; |
| 33177 | return 0; |
| 33178 | } |
| 33179 | _ACEOF |
| 33180 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33181 | if { (ac_try="$ac_link" |
| 33182 | case "(($ac_try" in |
| 33183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33184 | *) ac_try_echo=$ac_try;; |
| 33185 | esac |
| 33186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33187 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33188 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33189 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33190 | rm -f conftest.er1 |
| 33191 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33193 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33194 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 33195 | { (case "(($ac_try" in |
| 33196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33197 | *) ac_try_echo=$ac_try;; |
| 33198 | esac |
| 33199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33200 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33201 | ac_status=$? |
| 33202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33203 | (exit $ac_status); }; } && |
| 33204 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33205 | { (case "(($ac_try" in |
| 33206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33207 | *) ac_try_echo=$ac_try;; |
| 33208 | esac |
| 33209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33210 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33211 | ac_status=$? |
| 33212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33213 | (exit $ac_status); }; }; then |
| 33214 | ac_cv_func_mprotect=yes |
| 33215 | else |
| 33216 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33218 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33219 | ac_cv_func_mprotect=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33220 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33221 | |
| 33222 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33223 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33224 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33225 | { echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 |
| 33226 | echo "${ECHO_T}$ac_cv_func_mprotect" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33227 | if test $ac_cv_func_mprotect = yes; then |
| 33228 | : |
| 33229 | else |
| 33230 | { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 |
| 33231 | echo "$as_me: error: Function mprotect() required but not found" >&2;} |
| 33232 | { (exit 1); exit 1; }; } |
| 33233 | fi |
| 33234 | |
| 33235 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33236 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 33237 | then |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 33238 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 33239 | echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 33240 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33241 | if test "$ac_cv_func_mmap_file" = "no" |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 33242 | then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33243 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 33244 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 33245 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33246 | |
| 33247 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33248 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 33249 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33250 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 33251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33252 | else |
| 33253 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 33254 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33255 | cp /dev/null conftest.c |
Chris Lattner | 74878f4 | 2006-02-27 05:39:00 +0000 | [diff] [blame] | 33256 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33257 | if test $? -eq 0 ; then |
| 33258 | llvm_cv_llvmgcc_sanity="yes" |
| 33259 | fi |
| 33260 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 33261 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33262 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33263 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 33264 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33265 | |
| 33266 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 33267 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33268 | LLVMCC1=$llvmcc1path |
| 33269 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 33270 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33271 | LLVMCC1PLUS=$llvmcc1pluspath |
| 33272 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 33273 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 33274 | LLVMGCCDIR=$llvmgccdir |
| 33275 | |
Reid Spencer | b5d75b8 | 2006-05-09 00:31:01 +0000 | [diff] [blame] | 33276 | llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'` |
Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 33277 | llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'` |
| 33278 | LLVMGCC_VERSION=$llvmgccversion |
| 33279 | |
| 33280 | LLVMGCC_MAJVERS=$llvmgccmajvers |
| 33281 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 33282 | fi |
| 33283 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 33284 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 33285 | |
| 33286 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33287 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33288 | # information into substitutions that will end up in Makefile.config.in |
| 33289 | # that these configured values can be used by the makefiles |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 33290 | if test "${prefix}" == "NONE" ; then |
| 33291 | prefix="/usr/local" |
| 33292 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33293 | eval LLVM_PREFIX="${prefix}"; |
| 33294 | eval LLVM_BINDIR="${prefix}/bin"; |
| 33295 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 33296 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 33297 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 33298 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33299 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 33300 | eval LLVM_INFODIR="${prefix}/info"; |
| 33301 | eval LLVM_MANDIR="${prefix}/man"; |
| 33302 | LLVM_CONFIGTIME=`date` |
| 33303 | |
| 33304 | |
| 33305 | |
| 33306 | |
| 33307 | |
| 33308 | |
| 33309 | |
| 33310 | |
| 33311 | |
| 33312 | |
| 33313 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33314 | # Place the various directores into the config.h file as #defines so that we |
| 33315 | # can know about the installation paths within LLVM. |
| 33316 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33317 | cat >>confdefs.h <<_ACEOF |
| 33318 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 33319 | _ACEOF |
| 33320 | |
| 33321 | |
| 33322 | cat >>confdefs.h <<_ACEOF |
| 33323 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 33324 | _ACEOF |
| 33325 | |
| 33326 | |
| 33327 | cat >>confdefs.h <<_ACEOF |
| 33328 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 33329 | _ACEOF |
| 33330 | |
| 33331 | |
| 33332 | cat >>confdefs.h <<_ACEOF |
| 33333 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 33334 | _ACEOF |
| 33335 | |
| 33336 | |
| 33337 | cat >>confdefs.h <<_ACEOF |
| 33338 | #define LLVM_DATADIR "$LLVM_DOCSDIR" |
| 33339 | _ACEOF |
| 33340 | |
| 33341 | |
| 33342 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 33343 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33344 | _ACEOF |
| 33345 | |
| 33346 | |
| 33347 | cat >>confdefs.h <<_ACEOF |
| 33348 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 33349 | _ACEOF |
| 33350 | |
| 33351 | |
| 33352 | cat >>confdefs.h <<_ACEOF |
| 33353 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 33354 | _ACEOF |
| 33355 | |
| 33356 | |
| 33357 | cat >>confdefs.h <<_ACEOF |
| 33358 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 33359 | _ACEOF |
| 33360 | |
| 33361 | |
| 33362 | cat >>confdefs.h <<_ACEOF |
| 33363 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 33364 | _ACEOF |
| 33365 | |
| 33366 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33367 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33368 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33369 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33370 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33371 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33372 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33373 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33374 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33375 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33376 | ac_config_headers="$ac_config_headers include/llvm/ADT/iterator" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33377 | |
| 33378 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33379 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33380 | |
| 33381 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 33382 | ac_config_files="$ac_config_files llvm.spec" |
| 33383 | |
| 33384 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33385 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 33386 | |
| 33387 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33388 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 33389 | |
| 33390 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33391 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 33392 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33393 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33394 | |
| 33395 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33396 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33397 | |
| 33398 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33399 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33400 | |
| 33401 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33402 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33403 | |
| 33404 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33405 | ac_config_commands="$ac_config_commands runtime/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33406 | |
| 33407 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33408 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33409 | |
| 33410 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33411 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33412 | |
| 33413 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33414 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33415 | |
| 33416 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33417 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33418 | |
| 33419 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33420 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33421 | |
| 33422 | |
| 33423 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33424 | cat >confcache <<\_ACEOF |
| 33425 | # This file is a shell script that caches the results of configure |
| 33426 | # tests run on this system so they can be shared between configure |
| 33427 | # scripts and configure runs, see configure's option --config-cache. |
| 33428 | # It is not useful on other systems. If it contains results you don't |
| 33429 | # want to keep, you may remove or edit it. |
| 33430 | # |
| 33431 | # config.status only pays attention to the cache file if you give it |
| 33432 | # the --recheck option to rerun configure. |
| 33433 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33434 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33435 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 33436 | # following values. |
| 33437 | |
| 33438 | _ACEOF |
| 33439 | |
| 33440 | # The following way of writing the cache mishandles newlines in values, |
| 33441 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33442 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33443 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 33444 | # and sets the high bit in the cache file unless we assign to the vars. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33445 | ( |
| 33446 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 33447 | eval ac_val=\$$ac_var |
| 33448 | case $ac_val in #( |
| 33449 | *${as_nl}*) |
| 33450 | case $ac_var in #( |
| 33451 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 33452 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 33453 | esac |
| 33454 | case $ac_var in #( |
| 33455 | _ | IFS | as_nl) ;; #( |
| 33456 | *) $as_unset $ac_var ;; |
| 33457 | esac ;; |
| 33458 | esac |
| 33459 | done |
| 33460 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33461 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33462 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 33463 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33464 | # `set' does not quote correctly, so add quotes (double-quote |
| 33465 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 33466 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33467 | "s/'/'\\\\''/g; |
| 33468 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33469 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33470 | *) |
| 33471 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33472 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33473 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33474 | esac | |
| 33475 | sort |
| 33476 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33477 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33478 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33479 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33480 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33481 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 33482 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33483 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 33484 | :end' >>confcache |
| 33485 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 33486 | if test -w "$cache_file"; then |
| 33487 | test "x$cache_file" != "x/dev/null" && |
| 33488 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 33489 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33490 | cat confcache >$cache_file |
| 33491 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33492 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 33493 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33494 | fi |
| 33495 | fi |
| 33496 | rm -f confcache |
| 33497 | |
| 33498 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 33499 | # Let make expand exec_prefix. |
| 33500 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 33501 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33502 | DEFS=-DHAVE_CONFIG_H |
| 33503 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33504 | ac_libobjs= |
| 33505 | ac_ltlibobjs= |
| 33506 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 33507 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33508 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 33509 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 33510 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 33511 | # will be set to the directory where LIBOBJS objects are built. |
| 33512 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 33513 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33514 | done |
| 33515 | LIBOBJS=$ac_libobjs |
| 33516 | |
| 33517 | LTLIBOBJS=$ac_ltlibobjs |
| 33518 | |
| 33519 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 33520 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| 33521 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 33522 | Usually this means the macro was only invoked conditionally." >&5 |
| 33523 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 33524 | Usually this means the macro was only invoked conditionally." >&2;} |
| 33525 | { (exit 1); exit 1; }; } |
| 33526 | fi |
| 33527 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| 33528 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 33529 | Usually this means the macro was only invoked conditionally." >&5 |
| 33530 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 33531 | Usually this means the macro was only invoked conditionally." >&2;} |
| 33532 | { (exit 1); exit 1; }; } |
| 33533 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33534 | |
| 33535 | : ${CONFIG_STATUS=./config.status} |
| 33536 | ac_clean_files_save=$ac_clean_files |
| 33537 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 33538 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 33539 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 33540 | cat >$CONFIG_STATUS <<_ACEOF |
| 33541 | #! $SHELL |
| 33542 | # Generated by $as_me. |
| 33543 | # Run this file to recreate the current configuration. |
| 33544 | # Compiler output produced by configure, useful for debugging |
| 33545 | # configure, is in config.log if it exists. |
| 33546 | |
| 33547 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33548 | ac_cs_recheck=false |
| 33549 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33550 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 33551 | _ACEOF |
| 33552 | |
| 33553 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33554 | ## --------------------- ## |
| 33555 | ## M4sh Initialization. ## |
| 33556 | ## --------------------- ## |
| 33557 | |
| 33558 | # Be Bourne compatible |
| 33559 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 33560 | emulate sh |
| 33561 | NULLCMD=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33562 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 33563 | # is contrary to our usage. Disable this feature. |
| 33564 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33565 | setopt NO_GLOB_SUBST |
| 33566 | else |
| 33567 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33568 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33569 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33570 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33571 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33572 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33573 | # PATH needs CR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33574 | # Avoid depending upon Character Ranges. |
| 33575 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 33576 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 33577 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 33578 | as_cr_digits='0123456789' |
| 33579 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 33580 | |
| 33581 | # The user is always right. |
| 33582 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33583 | echo "#! /bin/sh" >conf$$.sh |
| 33584 | echo "exit 0" >>conf$$.sh |
| 33585 | chmod +x conf$$.sh |
| 33586 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33587 | PATH_SEPARATOR=';' |
| 33588 | else |
| 33589 | PATH_SEPARATOR=: |
| 33590 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33591 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33592 | fi |
| 33593 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33594 | # Support unset when possible. |
| 33595 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 33596 | as_unset=unset |
| 33597 | else |
| 33598 | as_unset=false |
| 33599 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33600 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33601 | |
| 33602 | # IFS |
| 33603 | # We need space, tab and new line, in precisely that order. Quoting is |
| 33604 | # there to prevent editors from complaining about space-tab. |
| 33605 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 33606 | # splitting by setting IFS to empty value.) |
| 33607 | as_nl=' |
| 33608 | ' |
| 33609 | IFS=" "" $as_nl" |
| 33610 | |
| 33611 | # Find who we are. Look in the path if we contain no directory separator. |
| 33612 | case $0 in |
| 33613 | *[\\/]* ) as_myself=$0 ;; |
| 33614 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33615 | for as_dir in $PATH |
| 33616 | do |
| 33617 | IFS=$as_save_IFS |
| 33618 | test -z "$as_dir" && as_dir=. |
| 33619 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 33620 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33621 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33622 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33623 | ;; |
| 33624 | esac |
| 33625 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 33626 | # in which case we are not to be found in the path. |
| 33627 | if test "x$as_myself" = x; then |
| 33628 | as_myself=$0 |
| 33629 | fi |
| 33630 | if test ! -f "$as_myself"; then |
| 33631 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 33632 | { (exit 1); exit 1; } |
| 33633 | fi |
| 33634 | |
| 33635 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33636 | for as_var in ENV MAIL MAILPATH |
| 33637 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 33638 | done |
| 33639 | PS1='$ ' |
| 33640 | PS2='> ' |
| 33641 | PS4='+ ' |
| 33642 | |
| 33643 | # NLS nuisances. |
| 33644 | for as_var in \ |
| 33645 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 33646 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 33647 | LC_TELEPHONE LC_TIME |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33648 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33649 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 33650 | eval $as_var=C; export $as_var |
| 33651 | else |
| 33652 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 33653 | fi |
| 33654 | done |
| 33655 | |
| 33656 | # Required to use basename. |
| 33657 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 33658 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 33659 | as_expr=expr |
| 33660 | else |
| 33661 | as_expr=false |
| 33662 | fi |
| 33663 | |
| 33664 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 33665 | as_basename=basename |
| 33666 | else |
| 33667 | as_basename=false |
| 33668 | fi |
| 33669 | |
| 33670 | |
| 33671 | # Name of the executable. |
| 33672 | as_me=`$as_basename -- "$0" || |
| 33673 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 33674 | X"$0" : 'X\(//\)$' \| \ |
| 33675 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 33676 | echo X/"$0" | |
| 33677 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 33678 | s//\1/ |
| 33679 | q |
| 33680 | } |
| 33681 | /^X\/\(\/\/\)$/{ |
| 33682 | s//\1/ |
| 33683 | q |
| 33684 | } |
| 33685 | /^X\/\(\/\).*/{ |
| 33686 | s//\1/ |
| 33687 | q |
| 33688 | } |
| 33689 | s/.*/./; q'` |
| 33690 | |
| 33691 | # CDPATH. |
| 33692 | $as_unset CDPATH |
| 33693 | |
| 33694 | |
| 33695 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33696 | as_lineno_1=$LINENO |
| 33697 | as_lineno_2=$LINENO |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33698 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33699 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33700 | |
| 33701 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 33702 | # uniformly replaced by the line number. The first 'sed' inserts a |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33703 | # line-number line after each line using $LINENO; the second 'sed' |
| 33704 | # does the real work. The second script uses 'N' to pair each |
| 33705 | # line-number line with the line containing $LINENO, and appends |
| 33706 | # trailing '-' during substitution so that $LINENO is not a special |
| 33707 | # case at line end. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33708 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33709 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 33710 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 33711 | sed -n ' |
| 33712 | p |
| 33713 | /[$]LINENO/= |
| 33714 | ' <$as_myself | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33715 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33716 | s/[$]LINENO.*/&-/ |
| 33717 | t lineno |
| 33718 | b |
| 33719 | :lineno |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33720 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33721 | :loop |
| 33722 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33723 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33724 | s/-\n.*// |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33725 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33726 | chmod +x "$as_me.lineno" || |
| 33727 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33728 | { (exit 1); exit 1; }; } |
| 33729 | |
| 33730 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 33731 | # (the dirname of $[0] is not the place where we might find the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33732 | # original and so on. Autoconf is especially sensitive to this). |
| 33733 | . "./$as_me.lineno" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33734 | # Exit status is that of the last command. |
| 33735 | exit |
| 33736 | } |
| 33737 | |
| 33738 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33739 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 33740 | as_dirname=dirname |
| 33741 | else |
| 33742 | as_dirname=false |
| 33743 | fi |
| 33744 | |
| 33745 | ECHO_C= ECHO_N= ECHO_T= |
| 33746 | case `echo -n x` in |
| 33747 | -n*) |
| 33748 | case `echo 'x\c'` in |
| 33749 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 33750 | *) ECHO_C='\c';; |
| 33751 | esac;; |
| 33752 | *) |
| 33753 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33754 | esac |
| 33755 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33756 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 33757 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33758 | as_expr=expr |
| 33759 | else |
| 33760 | as_expr=false |
| 33761 | fi |
| 33762 | |
| 33763 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33764 | if test -d conf$$.dir; then |
| 33765 | rm -f conf$$.dir/conf$$.file |
| 33766 | else |
| 33767 | rm -f conf$$.dir |
| 33768 | mkdir conf$$.dir |
| 33769 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33770 | echo >conf$$.file |
| 33771 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33772 | as_ln_s='ln -s' |
| 33773 | # ... but there are two gotchas: |
| 33774 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 33775 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 33776 | # In both cases, we have to default to `cp -p'. |
| 33777 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33778 | as_ln_s='cp -p' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33779 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 33780 | as_ln_s=ln |
| 33781 | else |
| 33782 | as_ln_s='cp -p' |
| 33783 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33784 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 33785 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33786 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33787 | if mkdir -p . 2>/dev/null; then |
| 33788 | as_mkdir_p=: |
| 33789 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33790 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33791 | as_mkdir_p=false |
| 33792 | fi |
| 33793 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33794 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 33795 | # systems may use methods other than mode bits to determine executability. |
| 33796 | cat >conf$$.file <<_ASEOF |
| 33797 | #! /bin/sh |
| 33798 | exit 0 |
| 33799 | _ASEOF |
| 33800 | chmod +x conf$$.file |
| 33801 | if test -x conf$$.file >/dev/null 2>&1; then |
| 33802 | as_executable_p="test -x" |
| 33803 | else |
| 33804 | as_executable_p=: |
| 33805 | fi |
| 33806 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33807 | |
| 33808 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33809 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33810 | |
| 33811 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33812 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33813 | |
| 33814 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33815 | exec 6>&1 |
| 33816 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33817 | # Save the log message, to keep $[0] and so on meaningful, and to |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33818 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33819 | # values after options handling. |
| 33820 | ac_log=" |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 33821 | This file was extended by llvm $as_me 1.9cvs, which was |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33822 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33823 | |
| 33824 | CONFIG_FILES = $CONFIG_FILES |
| 33825 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 33826 | CONFIG_LINKS = $CONFIG_LINKS |
| 33827 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 33828 | $ $0 $@ |
| 33829 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33830 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 33831 | " |
| 33832 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33833 | _ACEOF |
| 33834 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33835 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33836 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33837 | config_files="$ac_config_files" |
| 33838 | config_headers="$ac_config_headers" |
| 33839 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33840 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33841 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33842 | |
| 33843 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33844 | ac_cs_usage="\ |
| 33845 | \`$as_me' instantiates files from templates according to the |
| 33846 | current configuration. |
| 33847 | |
| 33848 | Usage: $0 [OPTIONS] [FILE]... |
| 33849 | |
| 33850 | -h, --help print this help, then exit |
| 33851 | -V, --version print version number, then exit |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33852 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33853 | -d, --debug don't remove temporary files |
| 33854 | --recheck update $as_me by reconfiguring in the same conditions |
| 33855 | --file=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33856 | instantiate the configuration file FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33857 | --header=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33858 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33859 | |
| 33860 | Configuration files: |
| 33861 | $config_files |
| 33862 | |
| 33863 | Configuration headers: |
| 33864 | $config_headers |
| 33865 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 33866 | Configuration commands: |
| 33867 | $config_commands |
| 33868 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33869 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33870 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33871 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33872 | cat >>$CONFIG_STATUS <<_ACEOF |
| 33873 | ac_cs_version="\\ |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 33874 | llvm config.status 1.9cvs |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33875 | configured by $0, generated by GNU Autoconf 2.60, |
| 33876 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33877 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33878 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33879 | This config.status script is free software; the Free Software Foundation |
| 33880 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33881 | |
| 33882 | ac_pwd='$ac_pwd' |
| 33883 | srcdir='$srcdir' |
| 33884 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33885 | _ACEOF |
| 33886 | |
| 33887 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 33888 | # If no file are specified by the user, then we need to provide default |
| 33889 | # value. By we need to know if files were specified by the user. |
| 33890 | ac_need_defaults=: |
| 33891 | while test $# != 0 |
| 33892 | do |
| 33893 | case $1 in |
| 33894 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33895 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 33896 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33897 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33898 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33899 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33900 | ac_option=$1 |
| 33901 | ac_optarg=$2 |
| 33902 | ac_shift=shift |
| 33903 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33904 | esac |
| 33905 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33906 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33907 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33908 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 33909 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33910 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 33911 | echo "$ac_cs_version"; exit ;; |
| 33912 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33913 | debug=: ;; |
| 33914 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33915 | $ac_shift |
| 33916 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33917 | ac_need_defaults=false;; |
| 33918 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33919 | $ac_shift |
| 33920 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33921 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33922 | --he | --h) |
| 33923 | # Conflict between --help and --header |
| 33924 | { echo "$as_me: error: ambiguous option: $1 |
| 33925 | Try \`$0 --help' for more information." >&2 |
| 33926 | { (exit 1); exit 1; }; };; |
| 33927 | --help | --hel | -h ) |
| 33928 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33929 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 33930 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 33931 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33932 | |
| 33933 | # This is an error. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33934 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 33935 | Try \`$0 --help' for more information." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33936 | { (exit 1); exit 1; }; } ;; |
| 33937 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33938 | *) ac_config_targets="$ac_config_targets $1" |
| 33939 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33940 | |
| 33941 | esac |
| 33942 | shift |
| 33943 | done |
| 33944 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33945 | ac_configure_extra_args= |
| 33946 | |
| 33947 | if $ac_cs_silent; then |
| 33948 | exec 6>/dev/null |
| 33949 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 33950 | fi |
| 33951 | |
| 33952 | _ACEOF |
| 33953 | cat >>$CONFIG_STATUS <<_ACEOF |
| 33954 | if \$ac_cs_recheck; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33955 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 33956 | CONFIG_SHELL=$SHELL |
| 33957 | export CONFIG_SHELL |
| 33958 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33959 | fi |
| 33960 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33961 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33962 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 33963 | exec 5>>config.log |
| 33964 | { |
| 33965 | echo |
| 33966 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 33967 | ## Running $as_me. ## |
| 33968 | _ASBOX |
| 33969 | echo "$ac_log" |
| 33970 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33971 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33972 | _ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 33973 | cat >>$CONFIG_STATUS <<_ACEOF |
| 33974 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33975 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 33976 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 33977 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 33978 | |
| 33979 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33980 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33981 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33982 | |
| 33983 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33984 | for ac_config_target in $ac_config_targets |
| 33985 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33986 | case $ac_config_target in |
| 33987 | "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
| 33988 | "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; |
| 33989 | "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;; |
| 33990 | "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;; |
| 33991 | "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;; |
| 33992 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 33993 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33994 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
| 33995 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 33996 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 33997 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 33998 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 33999 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 34000 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
| 34001 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
| 34002 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 34003 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
| 34004 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 34005 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 34006 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
| 34007 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34008 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 34009 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 34010 | { (exit 1); exit 1; }; };; |
| 34011 | esac |
| 34012 | done |
| 34013 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34014 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34015 | # If the user did not use the arguments to specify the items to instantiate, |
| 34016 | # then the envvar interface is used. Set only those that are not. |
| 34017 | # We use the long form for the default assignment because of an extremely |
| 34018 | # bizarre bug on SunOS 4.1.3. |
| 34019 | if $ac_need_defaults; then |
| 34020 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 34021 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34022 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34023 | fi |
| 34024 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34025 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34026 | # simply because there is no reason against having it here, and in addition, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34027 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34028 | # Hook for its removal unless debugging. |
| 34029 | # Note that there is a small window in which the directory will not be cleaned: |
| 34030 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34031 | $debug || |
| 34032 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34033 | tmp= |
| 34034 | trap 'exit_status=$? |
| 34035 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 34036 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34037 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 34038 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34039 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34040 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34041 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34042 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34043 | test -n "$tmp" && test -d "$tmp" |
| 34044 | } || |
| 34045 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34046 | tmp=./conf$$-$RANDOM |
| 34047 | (umask 077 && mkdir "$tmp") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34048 | } || |
| 34049 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34050 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34051 | { (exit 1); exit 1; } |
| 34052 | } |
| 34053 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34054 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34055 | # Set up the sed scripts for CONFIG_FILES section. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34056 | # |
| 34057 | |
| 34058 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 34059 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34060 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34061 | |
| 34062 | _ACEOF |
| 34063 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34064 | |
| 34065 | |
| 34066 | ac_delim='%!_!# ' |
| 34067 | for ac_last_try in false false false false false :; do |
| 34068 | cat >conf$$subs.sed <<_ACEOF |
| 34069 | SHELL!$SHELL$ac_delim |
| 34070 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 34071 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 34072 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 34073 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 34074 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 34075 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 34076 | exec_prefix!$exec_prefix$ac_delim |
| 34077 | prefix!$prefix$ac_delim |
| 34078 | program_transform_name!$program_transform_name$ac_delim |
| 34079 | bindir!$bindir$ac_delim |
| 34080 | sbindir!$sbindir$ac_delim |
| 34081 | libexecdir!$libexecdir$ac_delim |
| 34082 | datarootdir!$datarootdir$ac_delim |
| 34083 | datadir!$datadir$ac_delim |
| 34084 | sysconfdir!$sysconfdir$ac_delim |
| 34085 | sharedstatedir!$sharedstatedir$ac_delim |
| 34086 | localstatedir!$localstatedir$ac_delim |
| 34087 | includedir!$includedir$ac_delim |
| 34088 | oldincludedir!$oldincludedir$ac_delim |
| 34089 | docdir!$docdir$ac_delim |
| 34090 | infodir!$infodir$ac_delim |
| 34091 | htmldir!$htmldir$ac_delim |
| 34092 | dvidir!$dvidir$ac_delim |
| 34093 | pdfdir!$pdfdir$ac_delim |
| 34094 | psdir!$psdir$ac_delim |
| 34095 | libdir!$libdir$ac_delim |
| 34096 | localedir!$localedir$ac_delim |
| 34097 | mandir!$mandir$ac_delim |
| 34098 | DEFS!$DEFS$ac_delim |
| 34099 | ECHO_C!$ECHO_C$ac_delim |
| 34100 | ECHO_N!$ECHO_N$ac_delim |
| 34101 | ECHO_T!$ECHO_T$ac_delim |
| 34102 | LIBS!$LIBS$ac_delim |
| 34103 | build_alias!$build_alias$ac_delim |
| 34104 | host_alias!$host_alias$ac_delim |
| 34105 | target_alias!$target_alias$ac_delim |
| 34106 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 34107 | subdirs!$subdirs$ac_delim |
| 34108 | build!$build$ac_delim |
| 34109 | build_cpu!$build_cpu$ac_delim |
| 34110 | build_vendor!$build_vendor$ac_delim |
| 34111 | build_os!$build_os$ac_delim |
| 34112 | host!$host$ac_delim |
| 34113 | host_cpu!$host_cpu$ac_delim |
| 34114 | host_vendor!$host_vendor$ac_delim |
| 34115 | host_os!$host_os$ac_delim |
| 34116 | target!$target$ac_delim |
| 34117 | target_cpu!$target_cpu$ac_delim |
| 34118 | target_vendor!$target_vendor$ac_delim |
| 34119 | target_os!$target_os$ac_delim |
| 34120 | OS!$OS$ac_delim |
| 34121 | LINKALL!$LINKALL$ac_delim |
| 34122 | NOLINKALL!$NOLINKALL$ac_delim |
| 34123 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 34124 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 34125 | ARCH!$ARCH$ac_delim |
| 34126 | ENDIAN!$ENDIAN$ac_delim |
| 34127 | CC!$CC$ac_delim |
| 34128 | CFLAGS!$CFLAGS$ac_delim |
| 34129 | LDFLAGS!$LDFLAGS$ac_delim |
| 34130 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 34131 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 34132 | EXEEXT!$EXEEXT$ac_delim |
| 34133 | OBJEXT!$OBJEXT$ac_delim |
| 34134 | CPP!$CPP$ac_delim |
| 34135 | GREP!$GREP$ac_delim |
| 34136 | EGREP!$EGREP$ac_delim |
| 34137 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 34138 | BUILD_CC!$BUILD_CC$ac_delim |
| 34139 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 34140 | CVSBUILD!$CVSBUILD$ac_delim |
| 34141 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 34142 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
| 34143 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
| 34144 | JIT!$JIT$ac_delim |
| 34145 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 34146 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 34147 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
| 34148 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 34149 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
| 34150 | CXX!$CXX$ac_delim |
| 34151 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 34152 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 34153 | LEX!$LEX$ac_delim |
| 34154 | LEXLIB!$LEXLIB$ac_delim |
| 34155 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim |
| 34156 | FLEX!$FLEX$ac_delim |
| 34157 | YACC!$YACC$ac_delim |
| 34158 | YFLAGS!$YFLAGS$ac_delim |
| 34159 | BISON!$BISON$ac_delim |
| 34160 | NM!$NM$ac_delim |
| 34161 | ifGNUmake!$ifGNUmake$ac_delim |
| 34162 | LN_S!$LN_S$ac_delim |
| 34163 | CMP!$CMP$ac_delim |
| 34164 | CP!$CP$ac_delim |
| 34165 | DATE!$DATE$ac_delim |
| 34166 | _ACEOF |
| 34167 | |
| 34168 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 34169 | break |
| 34170 | elif $ac_last_try; then |
| 34171 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 34172 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 34173 | { (exit 1); exit 1; }; } |
| 34174 | else |
| 34175 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34176 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34177 | done |
| 34178 | |
| 34179 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 34180 | if test -n "$ac_eof"; then |
| 34181 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 34182 | ac_eof=`expr $ac_eof + 1` |
| 34183 | fi |
| 34184 | |
| 34185 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34186 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 34187 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 34188 | _ACEOF |
| 34189 | sed ' |
| 34190 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 34191 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 34192 | :n |
| 34193 | t n |
| 34194 | s/'"$ac_delim"'$/,g/; t |
| 34195 | s/$/\\/; p |
| 34196 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 34197 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 34198 | rm -f conf$$subs.sed |
| 34199 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34200 | CEOF$ac_eof |
| 34201 | _ACEOF |
| 34202 | |
| 34203 | |
| 34204 | ac_delim='%!_!# ' |
| 34205 | for ac_last_try in false false false false false :; do |
| 34206 | cat >conf$$subs.sed <<_ACEOF |
| 34207 | FIND!$FIND$ac_delim |
| 34208 | MKDIR!$MKDIR$ac_delim |
| 34209 | MV!$MV$ac_delim |
| 34210 | RANLIB!$RANLIB$ac_delim |
| 34211 | RM!$RM$ac_delim |
| 34212 | SED!$SED$ac_delim |
| 34213 | TAR!$TAR$ac_delim |
| 34214 | BINPWD!$BINPWD$ac_delim |
| 34215 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 34216 | DOT!$DOT$ac_delim |
| 34217 | GV!$GV$ac_delim |
| 34218 | DOTTY!$DOTTY$ac_delim |
| 34219 | PERL!$PERL$ac_delim |
| 34220 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 34221 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 34222 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 34223 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 34224 | BZIP2!$BZIP2$ac_delim |
| 34225 | DOXYGEN!$DOXYGEN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34226 | GROFF!$GROFF$ac_delim |
| 34227 | GZIP!$GZIP$ac_delim |
| 34228 | POD2HTML!$POD2HTML$ac_delim |
| 34229 | POD2MAN!$POD2MAN$ac_delim |
| 34230 | RUNTEST!$RUNTEST$ac_delim |
| 34231 | TCLSH!$TCLSH$ac_delim |
| 34232 | ZIP!$ZIP$ac_delim |
| 34233 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 34234 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 34235 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 34236 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 34237 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 34238 | ECHO!$ECHO$ac_delim |
| 34239 | AR!$AR$ac_delim |
| 34240 | STRIP!$STRIP$ac_delim |
| 34241 | CXXCPP!$CXXCPP$ac_delim |
| 34242 | F77!$F77$ac_delim |
| 34243 | FFLAGS!$FFLAGS$ac_delim |
| 34244 | ac_ct_F77!$ac_ct_F77$ac_delim |
| 34245 | LIBTOOL!$LIBTOOL$ac_delim |
| 34246 | ETAGSFLAGS!$ETAGSFLAGS$ac_delim |
| 34247 | LLVMGCC!$LLVMGCC$ac_delim |
| 34248 | LLVMGXX!$LLVMGXX$ac_delim |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 34249 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34250 | ALLOCA!$ALLOCA$ac_delim |
| 34251 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 34252 | LLVMCC1!$LLVMCC1$ac_delim |
| 34253 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 34254 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
| 34255 | LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim |
| 34256 | LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim |
| 34257 | SHLIBEXT!$SHLIBEXT$ac_delim |
| 34258 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 34259 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 34260 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 34261 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 34262 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 34263 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 34264 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 34265 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 34266 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 34267 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 34268 | LIBOBJS!$LIBOBJS$ac_delim |
| 34269 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 34270 | _ACEOF |
| 34271 | |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame^] | 34272 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34273 | break |
| 34274 | elif $ac_last_try; then |
| 34275 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 34276 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 34277 | { (exit 1); exit 1; }; } |
| 34278 | else |
| 34279 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 34280 | fi |
| 34281 | done |
| 34282 | |
| 34283 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 34284 | if test -n "$ac_eof"; then |
| 34285 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 34286 | ac_eof=`expr $ac_eof + 1` |
| 34287 | fi |
| 34288 | |
| 34289 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34290 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 34291 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 34292 | _ACEOF |
| 34293 | sed ' |
| 34294 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 34295 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 34296 | :n |
| 34297 | t n |
| 34298 | s/'"$ac_delim"'$/,g/; t |
| 34299 | s/$/\\/; p |
| 34300 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 34301 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 34302 | rm -f conf$$subs.sed |
| 34303 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34304 | :end |
| 34305 | s/|#_!!_#|//g |
| 34306 | CEOF$ac_eof |
| 34307 | _ACEOF |
| 34308 | |
| 34309 | |
| 34310 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 34311 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 34312 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 34313 | # (actually we leave an empty line to preserve line numbers). |
| 34314 | if test "x$srcdir" = x.; then |
| 34315 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 34316 | s/:*\$(srcdir):*/:/ |
| 34317 | s/:*\${srcdir}:*/:/ |
| 34318 | s/:*@srcdir@:*/:/ |
| 34319 | s/^\([^=]*=[ ]*\):*/\1/ |
| 34320 | s/:*$// |
| 34321 | s/^[^=]*=[ ]*$// |
| 34322 | }' |
| 34323 | fi |
| 34324 | |
| 34325 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34326 | fi # test -n "$CONFIG_FILES" |
| 34327 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34328 | |
| 34329 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 34330 | do |
| 34331 | case $ac_tag in |
| 34332 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 34333 | esac |
| 34334 | case $ac_mode$ac_tag in |
| 34335 | :[FHL]*:*);; |
| 34336 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 34337 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 34338 | { (exit 1); exit 1; }; };; |
| 34339 | :[FH]-) ac_tag=-:-;; |
| 34340 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 34341 | esac |
| 34342 | ac_save_IFS=$IFS |
| 34343 | IFS=: |
| 34344 | set x $ac_tag |
| 34345 | IFS=$ac_save_IFS |
| 34346 | shift |
| 34347 | ac_file=$1 |
| 34348 | shift |
| 34349 | |
| 34350 | case $ac_mode in |
| 34351 | :L) ac_source=$1;; |
| 34352 | :[FH]) |
| 34353 | ac_file_inputs= |
| 34354 | for ac_f |
| 34355 | do |
| 34356 | case $ac_f in |
| 34357 | -) ac_f="$tmp/stdin";; |
| 34358 | *) # Look for the file first in the build tree, then in the source tree |
| 34359 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 34360 | # because $ac_f cannot contain `:'. |
| 34361 | test -f "$ac_f" || |
| 34362 | case $ac_f in |
| 34363 | [\\/$]*) false;; |
| 34364 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 34365 | esac || |
| 34366 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 34367 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 34368 | { (exit 1); exit 1; }; };; |
| 34369 | esac |
| 34370 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 34371 | done |
| 34372 | |
| 34373 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 34374 | # use $as_me), people would be surprised to read: |
| 34375 | # /* config.h. Generated by config.status. */ |
| 34376 | configure_input="Generated from "`IFS=: |
| 34377 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 34378 | if test x"$ac_file" != x-; then |
| 34379 | configure_input="$ac_file. $configure_input" |
| 34380 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 34381 | echo "$as_me: creating $ac_file" >&6;} |
| 34382 | fi |
| 34383 | |
| 34384 | case $ac_tag in |
| 34385 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 34386 | esac |
| 34387 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34388 | esac |
| 34389 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34390 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34391 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34392 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 34393 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34394 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34395 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34396 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 34397 | s//\1/ |
| 34398 | q |
| 34399 | } |
| 34400 | /^X\(\/\/\)[^/].*/{ |
| 34401 | s//\1/ |
| 34402 | q |
| 34403 | } |
| 34404 | /^X\(\/\/\)$/{ |
| 34405 | s//\1/ |
| 34406 | q |
| 34407 | } |
| 34408 | /^X\(\/\).*/{ |
| 34409 | s//\1/ |
| 34410 | q |
| 34411 | } |
| 34412 | s/.*/./; q'` |
| 34413 | { as_dir="$ac_dir" |
| 34414 | case $as_dir in #( |
| 34415 | -*) as_dir=./$as_dir;; |
| 34416 | esac |
| 34417 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34418 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34419 | while :; do |
| 34420 | case $as_dir in #( |
| 34421 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 34422 | *) as_qdir=$as_dir;; |
| 34423 | esac |
| 34424 | as_dirs="'$as_qdir' $as_dirs" |
| 34425 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34426 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34427 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 34428 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34429 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34430 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34431 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 34432 | s//\1/ |
| 34433 | q |
| 34434 | } |
| 34435 | /^X\(\/\/\)[^/].*/{ |
| 34436 | s//\1/ |
| 34437 | q |
| 34438 | } |
| 34439 | /^X\(\/\/\)$/{ |
| 34440 | s//\1/ |
| 34441 | q |
| 34442 | } |
| 34443 | /^X\(\/\).*/{ |
| 34444 | s//\1/ |
| 34445 | q |
| 34446 | } |
| 34447 | s/.*/./; q'` |
| 34448 | test -d "$as_dir" && break |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34449 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34450 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 34451 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 34452 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34453 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34454 | ac_builddir=. |
| 34455 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34456 | case "$ac_dir" in |
| 34457 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 34458 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34459 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34460 | # A ".." for each directory in $ac_dir_suffix. |
| 34461 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 34462 | case $ac_top_builddir_sub in |
| 34463 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 34464 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 34465 | esac ;; |
| 34466 | esac |
| 34467 | ac_abs_top_builddir=$ac_pwd |
| 34468 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 34469 | # for backward compatibility: |
| 34470 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34471 | |
| 34472 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34473 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34474 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34475 | ac_top_srcdir=$ac_top_builddir_sub |
| 34476 | ac_abs_top_srcdir=$ac_pwd ;; |
| 34477 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34478 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34479 | ac_top_srcdir=$srcdir |
| 34480 | ac_abs_top_srcdir=$srcdir ;; |
| 34481 | *) # Relative name. |
| 34482 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 34483 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 34484 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34485 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34486 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34487 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34488 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34489 | case $ac_mode in |
| 34490 | :F) |
| 34491 | # |
| 34492 | # CONFIG_FILE |
| 34493 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34494 | |
| 34495 | case $INSTALL in |
| 34496 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34497 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34498 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34499 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34500 | |
| 34501 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 34502 | # If the template does not know about datarootdir, expand it. |
| 34503 | # FIXME: This hack should be removed a few years after 2.60. |
| 34504 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 34505 | |
| 34506 | case `sed -n '/datarootdir/ { |
| 34507 | p |
| 34508 | q |
| 34509 | } |
| 34510 | /@datadir@/p |
| 34511 | /@docdir@/p |
| 34512 | /@infodir@/p |
| 34513 | /@localedir@/p |
| 34514 | /@mandir@/p |
| 34515 | ' $ac_file_inputs` in |
| 34516 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 34517 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 34518 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 34519 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 34520 | _ACEOF |
| 34521 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34522 | ac_datarootdir_hack=' |
| 34523 | s&@datadir@&$datadir&g |
| 34524 | s&@docdir@&$docdir&g |
| 34525 | s&@infodir@&$infodir&g |
| 34526 | s&@localedir@&$localedir&g |
| 34527 | s&@mandir@&$mandir&g |
| 34528 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 34529 | esac |
| 34530 | _ACEOF |
| 34531 | |
| 34532 | # Neutralize VPATH when `$srcdir' = `.'. |
| 34533 | # Shell code in configure.ac might set extrasub. |
| 34534 | # FIXME: do we really want to maintain this feature? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34535 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34536 | sed "$ac_vpsub |
| 34537 | $extrasub |
| 34538 | _ACEOF |
| 34539 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 34540 | :t |
| 34541 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34542 | s&@configure_input@&$configure_input&;t t |
| 34543 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 34544 | s&@srcdir@&$ac_srcdir&;t t |
| 34545 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 34546 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 34547 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 34548 | s&@builddir@&$ac_builddir&;t t |
| 34549 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 34550 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 34551 | s&@INSTALL@&$ac_INSTALL&;t t |
| 34552 | $ac_datarootdir_hack |
| 34553 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34554 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34555 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 34556 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 34557 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 34558 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 34559 | which seems to be undefined. Please make sure it is defined." >&5 |
| 34560 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 34561 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34562 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34563 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34564 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34565 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 34566 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34567 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34568 | ;; |
| 34569 | :H) |
| 34570 | # |
| 34571 | # CONFIG_HEADER |
| 34572 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34573 | _ACEOF |
| 34574 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34575 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 34576 | # substitutes the proper values into config.h.in to produce config.h. |
| 34577 | rm -f conftest.defines conftest.tail |
| 34578 | # First, append a space to every undef/define line, to ease matching. |
| 34579 | echo 's/$/ /' >conftest.defines |
| 34580 | # Then, protect against being on the right side of a sed subst, or in |
| 34581 | # an unquoted here document, in config.status. If some macros were |
| 34582 | # called several times there might be several #defines for the same |
| 34583 | # symbol, which is useless. But do not sort them, since the last |
| 34584 | # AC_DEFINE must be honored. |
| 34585 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 34586 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 34587 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 34588 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 34589 | # just an empty string. |
| 34590 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 34591 | ac_dB='\\)[ (].*,\\1define\\2' |
| 34592 | ac_dC=' ' |
| 34593 | ac_dD=' ,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34594 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34595 | uniq confdefs.h | |
| 34596 | sed -n ' |
| 34597 | t rset |
| 34598 | :rset |
| 34599 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 34600 | t ok |
| 34601 | d |
| 34602 | :ok |
| 34603 | s/[\\&,]/\\&/g |
| 34604 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 34605 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 34606 | ' >>conftest.defines |
| 34607 | |
| 34608 | # Remove the space that was appended to ease matching. |
| 34609 | # Then replace #undef with comments. This is necessary, for |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34610 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 34611 | # on some systems where configure will not decide to define it. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34612 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 34613 | echo 's/ $// |
| 34614 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34615 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34616 | # Break up conftest.defines: |
| 34617 | ac_max_sed_lines=50 |
| 34618 | |
| 34619 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 34620 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 34621 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 34622 | # et cetera. |
| 34623 | ac_in='$ac_file_inputs' |
| 34624 | ac_out='"$tmp/out1"' |
| 34625 | ac_nxt='"$tmp/out2"' |
| 34626 | |
| 34627 | while : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34628 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34629 | # Write a here document: |
| 34630 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34631 | # First, check the format of the line: |
| 34632 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 34633 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 34634 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 34635 | b |
| 34636 | :def |
| 34637 | _ACEOF |
| 34638 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34639 | echo 'CEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34640 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 34641 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 34642 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 34643 | grep . conftest.tail >/dev/null || break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34644 | rm -f conftest.defines |
| 34645 | mv conftest.tail conftest.defines |
| 34646 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34647 | rm -f conftest.defines conftest.tail |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34648 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34649 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34650 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34651 | if test x"$ac_file" != x-; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34652 | echo "/* $configure_input */" >"$tmp/config.h" |
| 34653 | cat "$ac_result" >>"$tmp/config.h" |
| 34654 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34655 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 34656 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 34657 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34658 | rm -f $ac_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34659 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34660 | fi |
| 34661 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34662 | echo "/* $configure_input */" |
| 34663 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34664 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34665 | rm -f "$tmp/out12" |
| 34666 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34667 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34668 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 34669 | echo "$as_me: executing $ac_file commands" >&6;} |
| 34670 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34671 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34672 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34673 | |
| 34674 | case $ac_file$ac_mode in |
| 34675 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
| 34676 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; |
| 34677 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
| 34678 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; |
| 34679 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
| 34680 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;; |
| 34681 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
| 34682 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; |
| 34683 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
| 34684 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; |
| 34685 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
| 34686 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; |
| 34687 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
| 34688 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; |
| 34689 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
| 34690 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; |
| 34691 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
| 34692 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; |
| 34693 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
| 34694 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; |
| 34695 | |
| 34696 | esac |
| 34697 | done # for ac_tag |
| 34698 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34699 | |
| 34700 | { (exit 0); exit 0; } |
| 34701 | _ACEOF |
| 34702 | chmod +x $CONFIG_STATUS |
| 34703 | ac_clean_files=$ac_clean_files_save |
| 34704 | |
| 34705 | |
| 34706 | # configure is writing to config.log, and then calls config.status. |
| 34707 | # config.status does its own redirection, appending to config.log. |
| 34708 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 34709 | # by configure, so config.status won't be able to write to it; its |
| 34710 | # output is simply discarded. So we exec the FD to /dev/null, |
| 34711 | # effectively closing config.log, so it can be properly (re)opened and |
| 34712 | # appended to by config.status. When coming back to configure, we |
| 34713 | # need to make the FD available again. |
| 34714 | if test "$no_create" != yes; then |
| 34715 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34716 | ac_config_status_args= |
| 34717 | test "$silent" = yes && |
| 34718 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34719 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34720 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34721 | exec 5>>config.log |
| 34722 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 34723 | # would make configure fail if this is the last instruction. |
| 34724 | $ac_cs_success || { (exit 1); exit 1; } |
| 34725 | fi |
| 34726 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34727 | # |
| 34728 | # CONFIG_SUBDIRS section. |
| 34729 | # |
| 34730 | if test "$no_recursion" != yes; then |
| 34731 | |
| 34732 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 34733 | ac_sub_configure_args= |
| 34734 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34735 | eval "set x $ac_configure_args" |
| 34736 | shift |
| 34737 | for ac_arg |
| 34738 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34739 | if test -n "$ac_prev"; then |
| 34740 | ac_prev= |
| 34741 | continue |
| 34742 | fi |
| 34743 | case $ac_arg in |
| 34744 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 34745 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 34746 | ac_prev=cache_file ;; |
| 34747 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 34748 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 34749 | | --c=*) |
| 34750 | ;; |
| 34751 | --config-cache | -C) |
| 34752 | ;; |
| 34753 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 34754 | ac_prev=srcdir ;; |
| 34755 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 34756 | ;; |
| 34757 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 34758 | ac_prev=prefix ;; |
| 34759 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 34760 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34761 | *) |
| 34762 | case $ac_arg in |
| 34763 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 34764 | esac |
| 34765 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34766 | esac |
| 34767 | done |
| 34768 | |
| 34769 | # Always prepend --prefix to ensure using the same prefix |
| 34770 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34771 | ac_arg="--prefix=$prefix" |
| 34772 | case $ac_arg in |
| 34773 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 34774 | esac |
| 34775 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34776 | |
| 34777 | ac_popdir=`pwd` |
| 34778 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 34779 | |
| 34780 | # Do not complain, so a configure script can configure whichever |
| 34781 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34782 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34783 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34784 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
| 34785 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 34786 | echo "$ac_msg" >&6 |
| 34787 | { as_dir="$ac_dir" |
| 34788 | case $as_dir in #( |
| 34789 | -*) as_dir=./$as_dir;; |
| 34790 | esac |
| 34791 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34792 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34793 | while :; do |
| 34794 | case $as_dir in #( |
| 34795 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 34796 | *) as_qdir=$as_dir;; |
| 34797 | esac |
| 34798 | as_dirs="'$as_qdir' $as_dirs" |
| 34799 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34800 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34801 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 34802 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34803 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34804 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34805 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 34806 | s//\1/ |
| 34807 | q |
| 34808 | } |
| 34809 | /^X\(\/\/\)[^/].*/{ |
| 34810 | s//\1/ |
| 34811 | q |
| 34812 | } |
| 34813 | /^X\(\/\/\)$/{ |
| 34814 | s//\1/ |
| 34815 | q |
| 34816 | } |
| 34817 | /^X\(\/\).*/{ |
| 34818 | s//\1/ |
| 34819 | q |
| 34820 | } |
| 34821 | s/.*/./; q'` |
| 34822 | test -d "$as_dir" && break |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34823 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34824 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 34825 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 34826 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34827 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34828 | ac_builddir=. |
| 34829 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34830 | case "$ac_dir" in |
| 34831 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 34832 | *) |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34833 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34834 | # A ".." for each directory in $ac_dir_suffix. |
| 34835 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 34836 | case $ac_top_builddir_sub in |
| 34837 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 34838 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 34839 | esac ;; |
| 34840 | esac |
| 34841 | ac_abs_top_builddir=$ac_pwd |
| 34842 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 34843 | # for backward compatibility: |
| 34844 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34845 | |
| 34846 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34847 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34848 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34849 | ac_top_srcdir=$ac_top_builddir_sub |
| 34850 | ac_abs_top_srcdir=$ac_pwd ;; |
| 34851 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34852 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34853 | ac_top_srcdir=$srcdir |
| 34854 | ac_abs_top_srcdir=$srcdir ;; |
| 34855 | *) # Relative name. |
| 34856 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 34857 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 34858 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34859 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34860 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34861 | |
| 34862 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34863 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34864 | |
| 34865 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34866 | if test -f "$ac_srcdir/configure.gnu"; then |
| 34867 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 34868 | elif test -f "$ac_srcdir/configure"; then |
| 34869 | ac_sub_configure=$ac_srcdir/configure |
| 34870 | elif test -f "$ac_srcdir/configure.in"; then |
| 34871 | # This should be Cygnus configure. |
| 34872 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34873 | else |
| 34874 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 34875 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 34876 | ac_sub_configure= |
| 34877 | fi |
| 34878 | |
| 34879 | # The recursion is here. |
| 34880 | if test -n "$ac_sub_configure"; then |
| 34881 | # Make the cache file name correct relative to the subdirectory. |
| 34882 | case $cache_file in |
| 34883 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34884 | *) # Relative name. |
| 34885 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34886 | esac |
| 34887 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34888 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 34889 | echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34890 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34891 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 34892 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34893 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34894 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 34895 | { (exit 1); exit 1; }; } |
| 34896 | fi |
| 34897 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34898 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34899 | done |
| 34900 | fi |
| 34901 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 34902 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34903 | if test "$llvm_cv_llvmgcc_sanity" = "no" ; then |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 34904 | { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5 |
| 34905 | echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;} |
Chris Lattner | b56371e | 2006-10-02 17:24:55 +0000 | [diff] [blame] | 34906 | { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvm-gcc and llvm-g++ in" >&5 |
| 34907 | echo "$as_me: WARNING: ***** working. Please make sure you have llvm-gcc and llvm-g++ in" >&2;} |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34908 | { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5 |
| 34909 | echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;} |
| 34910 | { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5 |
| 34911 | echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;} |
| 34912 | { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5 |
| 34913 | echo "$as_me: WARNING: ***** build the llvm tools." >&2;} |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 34914 | fi |